/* MarkupSchema's own parts (parts.js). Loads after g.css, fasra.css and os/ui/ui.css. Tokens only: every size, gap,
   colour and font here comes from g-design or fasra.css, so each rule can move into os/ui/ui.css as it is. */

/* Wordmark: Fasra's accent and the name in the brand serif. The leaf is the one wordmark.js draws over Fasra's a
   (the same curve at the same 32 degrees, traced into the mask below), cut from the orb's grainy gradient in the
   product's colours (the ones its orb has on Fasra's products page). */
.ms-mark { position: relative; justify-self: start; gap: var(--sp-2); color: var(--text-primary); }
/* The name is the link home, and it reaches over the leaf, so the whole mark is one target and one focus ring. */
.ms-home { color: inherit; text-decoration: none; outline: none; }
.ms-home::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius-sm); }
.ms-home:focus-visible::before { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ms-leaf { --c: var(--chart-3); --c2: var(--chart-4); --blur: 4px; width: 28px; height: auto; aspect-ratio: 85.1 / 56; border-radius: 0; box-shadow: none;
  --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 85.1 56' preserveAspectRatio='none'%3E%3Cpath d='M2.1 55.7C-9.3 15 27.3 1.7 85.1 0C59.8 31.1 30.2 59.2 2.1 55.7Z'/%3E%3C/svg%3E");
  -webkit-mask: var(--shape) center / 100% 100% no-repeat; mask: var(--shape) center / 100% 100% no-repeat; }
.ms-leaf::after { border-radius: 0; background-image: var(--grain); background-size: 70px; }
/* Whose product it is, under a pointer in the top bar, and a link to Fasra. It sits on the name's baseline in a box
   with no width and is wiped in from the name's side, so it takes no room and nothing beside it moves. While it is
   wiped away the link takes no pointer: Safari's engine would press the link through its clipped label. Narrow bars
   and touch never show it: the footer names Fasra there. */
.ms-by { display: none; }
@media (hover: hover) and (min-width: 1100px) {
  .top .ms-by { display: inline-block; width: 0; font-family: var(--font-ui); font-size: 13px; letter-spacing: 0; color: var(--text-secondary); text-decoration: none; outline: none; pointer-events: none; }
  /* The mark reaches a step past the name, so the pointer never leaves it on the way to the label. */
  .top .ms-mark { padding-right: var(--sp-1); }
  .top .ms-by span { display: inline-block; margin-left: var(--sp-1); padding: 0 var(--sp-1); border-radius: var(--radius-sm); clip-path: inset(0 100% 0 0); transition: clip-path var(--mo-quick) var(--ease-out), color var(--mo-quick) var(--ease-out); }
  .top .ms-mark:hover .ms-by, .top .ms-mark:focus-within .ms-by { pointer-events: auto; }
  .top .ms-mark:hover .ms-by span, .top .ms-mark:focus-within .ms-by span { clip-path: inset(0); }
  .top .ms-by:hover span { color: var(--text-primary); }
  .top .ms-by:focus-visible span { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
}
.ms-word { font-family: var(--font-brand); font-weight: 400; font-size: 24px; line-height: var(--lh-5); letter-spacing: -0.01em; white-space: nowrap; }
/* The name is wider than Fasra's mark: on the narrowest phones it steps down so the header's button stays on screen. */
@media (max-width: 360px) { .top .ms-word { font-size: 18px; } .top .ms-leaf { width: 22px; } }
.ms-foot .ms-mark { display: inline-flex; align-items: center; min-height: var(--h-4); }
.ms-foot .base { align-items: center; gap: var(--sp-4); padding-inline: 0; }

/* Text and actions */
.ms-text { display: grid; gap: var(--sp-2); font-size: 14px; line-height: var(--lh-3); }
.ms-text p { margin: 0; max-width: 40em; }
.ms-text.quiet { color: var(--text-secondary); font-size: 13px; line-height: var(--lh-2); }
.ms-text a, .ms-note a { color: var(--leaf-text); text-underline-offset: 3px; }
.ms-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.ui-empty .ms-acts { justify-content: center; }
.ms-note { margin: 0; font-size: 13px; line-height: var(--lh-2); color: var(--text-secondary); }
.ms-text ol { margin: 0; padding-left: var(--sp-5); max-width: 44em; display: grid; gap: var(--sp-2); }
.ms-text b { font-weight: 500; }
.ms-text h3 { margin: 0; font-size: 14px; line-height: var(--lh-2); font-weight: 600; color: var(--text-primary); }
.ms-noscript { margin-top: var(--sp-5); }

/* Form: fields one under another, the action last. */
.ms-form { display: grid; gap: var(--sp-4); }
.ms-form .ui-field, .ms-form .input, .ms-form .select, .ms-form .textarea { width: 100%; box-sizing: border-box; }
.ms-paste { font-family: var(--font-mono); font-size: 12px; line-height: var(--lh-2); }

/* Rows: a head (name, then tags) at the height of a closed Disclosure, and tag rows with their label. */
.ms-rowh { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); min-width: 0; font-size: 14px; line-height: var(--lh-2); }
.ms-rowh-t { min-width: 0; font-weight: 500; overflow-wrap: anywhere; color: var(--text-primary); }
.ms-row { border-top: 1px solid var(--border-subtle); }
.ms-row > .ms-rowh { min-height: var(--h-4); padding-block: var(--sp-2); box-sizing: border-box; }
.ms-row-n { margin: 0; padding-bottom: var(--sp-3); max-width: 44em; font-size: 13px; line-height: var(--lh-2); color: var(--text-secondary); }
.ui-disclose summary .ms-row-n { display: block; padding: 2px 0 0; font-weight: 400; }
.ms-tags { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: var(--sp-1) var(--sp-3); align-items: start; font-size: 13px; line-height: var(--lh-3); }
.ms-tags-k { color: var(--text-secondary); }
.ms-tags-v { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); min-width: 0; min-height: var(--lh-3); color: var(--text-primary); }
.ms-tags-n { flex-basis: 100%; color: var(--text-secondary); line-height: var(--lh-2); overflow-wrap: anywhere; }
.ms-tags.bare { grid-template-columns: minmax(0, 1fr); }
.ms-tagrows { display: grid; gap: var(--sp-2); }
@media (max-width: 720px) { .ms-tags { grid-template-columns: minmax(0, 1fr); } .ms-tagrows { gap: var(--sp-3); } }

/* Hero: the words on the left, the figure on the right, as on Fasra's products page. */
.ms-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-7); align-items: center; padding: var(--sp-6) 0 var(--sp-4); }
.ms-hero-t { display: grid; gap: var(--sp-4); justify-items: start; min-width: 0; }
.ms-hero-k { font-size: 13px; line-height: var(--lh-2); color: var(--text-secondary); }
.ms-hero h1 { margin: calc(-1 * var(--sp-2)) 0 0; font-family: var(--font-brand); font-weight: 400; font-size: 48px; line-height: 56px; letter-spacing: -0.01em; text-wrap: balance; }
.ms-hero-s { margin: 0; max-width: 30em; font-size: 16px; line-height: var(--lh-4); color: var(--text-secondary); }
.ms-hero .ui-ig { width: 100%; box-sizing: border-box; }
.ms-hero-f { min-width: 0; }
@media (max-width: 1079px) {
  .ms-hero { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
}
@media (max-width: 720px) {
  .ms-hero { padding-top: var(--sp-4); }
  .ms-hero h1 { font-size: 40px; line-height: 48px; }
  .ms-hero-s { font-size: 15px; line-height: var(--lh-3); }
}

/* Specimen: a page beside its JSON-LD. Side by side from 600px of its own width, one over the other below. */
.ms-spec { margin: 0; box-sizing: border-box; width: 100%; container-type: inline-size; overflow: hidden; border-radius: 12px; background: var(--surface-1); border: 1px solid var(--border-subtle); }
.ms-spec-h { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border-subtle); font-size: 13px; line-height: var(--lh-2); font-weight: 500; }
.ms-spec-b { display: grid; grid-template-columns: minmax(0, 1fr); }
.ms-spec-page, .ms-spec-code { display: grid; align-content: start; gap: var(--sp-3); min-width: 0; padding: var(--sp-4); }
.ms-spec-code { border-top: 1px solid var(--border-subtle); background: var(--surface-2); }
@container (min-width: 600px) {
  .ms-spec-b { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .ms-spec-code { border-top: 0; border-left: 1px solid var(--border-subtle); }
}
.ms-spec-k { font-size: 12px; line-height: var(--lh-1); color: var(--text-secondary); }
.ms-spec-site { display: flex; align-items: center; gap: var(--sp-2); }
.ms-spec-url { flex: 1; min-width: 0; padding: 0 var(--sp-3); border-radius: var(--radius-full); border: 1px solid var(--border-subtle); background: var(--surface-2); font-size: 12px; line-height: var(--lh-3); color: var(--text-secondary); overflow-wrap: anywhere; }
.ms-spec-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.ms-spec-facts li { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: 13px; line-height: var(--lh-2); }
.ms-spec-facts li.title { font-family: var(--font-brand); font-size: 20px; line-height: var(--lh-4); padding-bottom: var(--sp-1); }
.ms-spec-facts li.title .ms-mk { margin-top: var(--sp-1); }
.ms-spec pre { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: var(--lh-3); color: var(--text-primary); white-space: pre-wrap; overflow-wrap: anywhere; }
.ms-ln { display: flex; align-items: flex-start; gap: var(--sp-2); }
.ms-ln > .ms-mk, .ms-ln > .ms-mk-gap { margin-top: 2px; }
.ms-ln { gap: 0; }
.ms-ln > .ms-mk, .ms-ln > .ms-mk-gap { margin-right: var(--sp-2); }
.ms-ind { flex: none; white-space: pre; }
.ms-ln > span:last-child { min-width: 0; white-space: pre-wrap; }
/* A mark is a numbered chip in the gutter. The gap keeps unmarked lines on the same indent. */
.ms-mk, .ms-mk-gap { flex: none; box-sizing: border-box; width: 20px; height: 20px; }
.ms-mk { display: inline-grid; place-items: center; border-radius: var(--radius-full); border: 1px solid var(--leaf); color: var(--leaf-text); background: var(--surface-1); font-family: var(--font-ui); font-size: 11px; line-height: var(--lh-1); font-weight: 600; }
.ms-spec figcaption { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border-subtle); font-size: 12px; line-height: var(--lh-2); color: var(--text-secondary); }

/* Code */
.ms-code { margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-card); background: var(--surface-2); border: 1px solid var(--border-subtle); font-family: var(--font-mono); font-size: 12px; line-height: var(--lh-2); color: var(--text-primary); white-space: pre-wrap; overflow-wrap: anywhere; }
.ms-code.fold { max-height: 320px; overflow: auto; }

/* Steps: three across from 720px of the page, one under another below. */
.ms-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.ms-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3); align-items: start; }
.ms-steps-n { display: grid; place-items: center; width: var(--h-2); height: var(--h-2); border-radius: var(--radius-full); background: var(--surface-2); border: 1px solid var(--border-subtle); font-size: 13px; line-height: var(--lh-2); font-weight: 500; }
.ms-steps b { display: block; padding-top: var(--sp-1); font-size: 14px; line-height: var(--lh-3); font-weight: 500; }
.ms-steps p { margin: 0; font-size: 13px; line-height: var(--lh-2); color: var(--text-secondary); }
@media (max-width: 720px) { .ms-steps { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); } }

/* Phone: a link that stands on its own line is a control, so it gets the library's 40px (links inside a sentence
   keep the line). The header sits outside main.ui, so its buttons take the same height here. */
@media (pointer: coarse), (max-width: 720px) {
  .ms-more, .ms-foot ul a { display: inline-flex; align-items: center; min-height: var(--h-4); }
  .ms-foot ul { gap: 0; }
  .top .end .btn { min-height: var(--h-4); }
}

/* The generator's compare bar: the view switch, then one plain sentence on what changed. */
.ms-cmp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); }
.ms-cmp-say { flex: 1 1 280px; margin: 0; font-size: 14px; line-height: var(--lh-2); color: var(--text-secondary); }
/* Side by side, both panel titles sit on one line although only ours carries a button in its head. */
.ms-cmp .ui-panel-h { align-items: center; min-height: 28px; }
/* Switching between plain words and code wipes the new view down from its top edge, no fade. */
.ms-cmp :is(.ui-tree, .ui-code) { animation: ms-wipe var(--dur-sheet) var(--ease-out) backwards; }
@keyframes ms-wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) { .ms-cmp :is(.ui-tree, .ui-code) { animation: none; } }
/* Where to paste the tag: the picker in the panel head, then numbered steps in one column. */
.ms-where .ui-panel-h { align-items: center; min-height: 28px; }
.ms-where-s { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); max-width: 44em; }
.ms-where-s li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3); align-items: start; font-size: 14px; line-height: var(--lh-2); color: var(--text-primary); }
.ms-where-i { display: grid; place-items: center; width: var(--h-1); height: var(--h-1); border-radius: var(--radius-full); background: var(--surface-2); border: 1px solid var(--border-subtle); font-size: 12px; line-height: 1; font-weight: 500; }
.ms-where-n { margin: 0; max-width: 44em; font-size: 13px; line-height: var(--lh-2); color: var(--text-secondary); }
/* A finished run's failed pages, together under their count, below the pages that got schema. */
.ms-fails-h { margin: var(--sp-5) 0 0; padding-bottom: var(--sp-2); font-family: var(--font-ui); font-size: 14px; line-height: var(--lh-2); font-weight: 500; color: var(--text-primary); }

/* Prose: long text in one column of about 44em, headings in the UI face, an aside boxed in the text. */
.ms-prose { display: grid; gap: var(--sp-3); max-width: 40em; font-size: 15px; line-height: var(--lh-4); color: var(--text-primary); }
.ms-prose > * { margin: 0; }
.ms-prose h2 { margin-top: var(--sp-5); font-family: var(--font-ui); font-size: 18px; line-height: var(--lh-4); font-weight: 500; }
.ms-prose h3 { margin-top: var(--sp-3); font-family: var(--font-ui); font-size: 15px; line-height: var(--lh-3); font-weight: 500; }
.ms-prose > :first-child { margin-top: 0; }
.ms-prose p, .ms-prose li { color: var(--text-secondary); }
.ms-prose b, .ms-prose strong { font-weight: 500; color: var(--text-primary); }
.ms-prose ul, .ms-prose ol { padding-left: var(--sp-5); display: grid; gap: var(--sp-1); }
.ms-prose a { color: var(--leaf-text); text-underline-offset: 3px; overflow-wrap: anywhere; }
.ms-prose code { font-family: var(--font-mono); font-size: 13px; }
.ms-prose p.note { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-card); background: var(--surface-2); border: 1px solid var(--border-subtle); font-size: 14px; line-height: var(--lh-3); }
.ms-prose .ui-table, .ms-prose table { width: 100%; }
@media (max-width: 720px) { .ms-prose { font-size: 14px; line-height: var(--lh-3); } .ms-prose h2 { font-size: 17px; } }
.ms-prose-t { min-width: 0; overflow-x: auto; }
.ms-prose table { border-collapse: collapse; font-size: 13px; line-height: var(--lh-2); }
.ms-prose th, .ms-prose td { padding: var(--sp-2) var(--sp-3) var(--sp-2) 0; border-bottom: 1px solid var(--border-subtle); text-align: left; vertical-align: top; overflow-wrap: break-word; }
.ms-prose th { font-weight: 500; color: var(--text-primary); }
.ms-prose td { color: var(--text-secondary); }
/* Contents: the headings of a long page as links. */
/* The contents come first in the page, so a phone reads them above the text. Side by side they sit on the right. */
.ms-doc-cols > .ui-cols-w { flex-direction: row-reverse; }
.ms-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-1); }
.ms-toc a { display: block; padding: var(--sp-1) 0; font-size: 13px; line-height: var(--lh-2); color: var(--text-secondary); text-decoration: none; }
.ms-toc a:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.ms-prose h2 { scroll-margin-top: var(--sp-7); }
@media (pointer: coarse), (max-width: 720px) { .ms-toc ul { gap: 0; } .ms-toc a { display: flex; align-items: center; min-height: var(--h-4); padding: 0; } }
/* A hero with no figure (the legal, about and docs pages) gives its words the whole width. */
.ms-hero:not(:has(> .ms-hero-f)) { grid-template-columns: minmax(0, 1fr); }
.ms-hero:not(:has(> .ms-hero-f)) h1 { max-width: 20em; }

/* Contact: the honeypot field sits off screen (people never see it, bots fill it), a taller message box, and the
   links beside the form as rows of a bold name over one line. */
.ms-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ms-msg { min-height: 160px; resize: vertical; }
.ms-points { list-style: none; margin: 0; padding: 0; display: grid; }
.ms-points li + li { border-top: 1px solid var(--border-subtle); }
.ms-points a { display: grid; gap: 2px; padding: var(--sp-2) 0; min-height: var(--h-4); box-sizing: border-box; text-decoration: none; color: var(--text-primary); font-size: 14px; line-height: var(--lh-2); }
.ms-points b { font-weight: 500; }
.ms-points span { color: var(--text-secondary); font-size: 13px; }
.ms-points a:hover b { color: var(--leaf-text); text-decoration: underline; text-underline-offset: 3px; }

/* CookieSettings: sits in the prose flow like the old button did. */
.ms-cc { margin: var(--sp-3) 0 var(--sp-4); }
.ms-cc .btn { min-height: 40px; }
.ms-cc .ms-note { margin-top: var(--sp-2); }

/* PlanCard, PlanRow: cards share a row height and put their action at the foot. */
.ms-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--sp-4); align-items: stretch; }
.ms-plan { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-4); border-radius: var(--radius-card); background: var(--surface-1); border: 1px solid var(--border-subtle); min-width: 0; }
.ms-plan.featured { border-color: var(--leaf); box-shadow: inset 0 0 0 1px var(--leaf); }
.ms-plan-h { display: grid; gap: var(--sp-2); align-content: start; }
.ms-plan h3 { margin: 0; display: flex; align-items: center; gap: var(--sp-2); font-family: var(--font-ui); font-size: 16px; line-height: var(--lh-2); font-weight: 600; letter-spacing: 0; }
.ms-plan-p { margin: 0; display: flex; align-items: baseline; gap: var(--sp-1); }
.ms-plan-p b { font-family: var(--font-brand); font-size: var(--h-2); line-height: 1.1; font-weight: 400; font-variant-numeric: lining-nums; }
.ms-plan-p span, .ms-plan-d { color: var(--text-secondary); font-size: 13px; line-height: var(--lh-2); }
.ms-plan-d { margin: 0; }
.ms-plan-g { display: grid; gap: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--border-subtle); }
.ms-plan h4 { margin: 0; font-size: 12px; line-height: var(--lh-1); font-weight: 500; color: var(--text-secondary); }
.ms-plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sp-2); }
.ms-plan li { display: grid; grid-template-columns: 15px 1fr; gap: var(--sp-2); font-size: 13px; line-height: var(--lh-2); }
.ms-plan li svg { margin-top: 3px; color: var(--leaf-text); }
.ms-plan li.not { color: var(--text-secondary); }
.ms-plan li.not svg { color: var(--text-secondary); }
.ms-plan-a { margin-top: auto; display: grid; gap: var(--sp-2); }
/* Side by side, the cards share their rows (heading, lists, action), so the lists start level and every button
   sits on one line with its note under it. Without subgrid each card keeps its own rows and pins its action low. */
@supports (grid-template-rows: subgrid) {
  .ms-plan { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  .ms-plan-a { margin-top: 0; align-content: start; }
}
.ms-plan-b { display: grid; gap: var(--sp-4); align-content: start; }
/* Four cards go four across, then two by two, then one: three across would leave the last card on a row alone. */
.ms-plans:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .ms-plans:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ms-plans:has(> :nth-child(4):last-child) { grid-template-columns: minmax(0, 1fr); } }
.ms-plan-a .btn { min-height: 40px; width: 100%; justify-content: center; }

/* PickList */
.ms-pick { margin: 0; display: grid; gap: var(--sp-4); }
.ms-pick > div { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, var(--col-text)); gap: var(--sp-2) var(--sp-5); }
.ms-pick dt { font-weight: 600; font-size: 14px; line-height: var(--lh-3); }
.ms-pick dd { margin: 0; font-size: 14px; line-height: var(--lh-3); }
.ms-pick a { color: var(--leaf-text); text-underline-offset: 3px; }
@media (max-width: 640px) { .ms-pick > div { grid-template-columns: minmax(0, 1fr); } }

/* Cites */
.ms-cites { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--sp-4); }
.ms-cites li { display: grid; gap: var(--sp-1); align-content: start; }
.ms-cites b { font-family: var(--font-brand); font-size: var(--h-2); line-height: 1.1; font-weight: 400; font-variant-numeric: lining-nums; }
.ms-cites span { font-size: 13px; line-height: var(--lh-2); color: var(--text-secondary); }

/* The signed-in visitor's own plan, above the cards. */
.ms-mine { display: grid; gap: var(--sp-3); }
.ms-mine-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); }
.ms-mine-h > div { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.ms-mine-a { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.ms-mine-a .btn { min-height: 40px; }
.ms-plan li code { overflow-wrap: anywhere; }
/* Docs reference (parts/docs.js): endpoints as a method tag over the path, labelled code samples, the error codes. */
.ms-doc { display: grid; gap: var(--sp-4); max-width: none; }
.ms-doc > p, .ms-ep > p { margin: 0; max-width: 44em; }
.ms-doc code { overflow-wrap: anywhere; }
.ms-ep { display: grid; gap: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--border-subtle); }
.ms-doc > .ms-ep:first-child { padding-top: 0; border-top: 0; }
.ms-ep-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2); }
.ms-ep-h code { font-size: 13px; color: var(--text-primary); }
.ms-ep-m { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 1px var(--sp-2); border-radius: var(--radius); border: 1px solid var(--border-subtle); color: var(--text-secondary); }
.ms-ep-m.post { color: var(--leaf-text); }
.ms-doc-code { margin: 0; display: grid; gap: var(--sp-1); min-width: 0; }
.ms-doc-code figcaption { font-size: 12px; color: var(--text-secondary); }
.ms-doc-code figcaption span { color: var(--leaf-text); }
.ms-doc-tools code { display: inline-block; margin: 0 var(--sp-1) var(--sp-1) 0; }
.ms-doc-err { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-3); }
.ms-doc-err div { display: flex; gap: var(--sp-2); align-items: baseline; }
.ms-doc-err dt { font-family: var(--font-mono); font-weight: 600; color: var(--text-primary); }
.ms-doc-err dd { margin: 0; color: var(--text-secondary); font-size: 14px; }
/* On a phone three columns leave no room for a tool's name, so each row stacks: category, what it does, its tools. */
.ms-doc-tools code { overflow-wrap: normal; white-space: nowrap; }
@media (max-width: 720px) {
  .ms-doc table, .ms-doc tbody { display: block; }
  .ms-doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ms-doc tbody tr { display: grid; gap: var(--sp-2); padding: var(--sp-3) 0; border-bottom: 1px solid var(--border-subtle); }
  .ms-doc tbody tr:first-child { padding-top: 0; }
  .ms-doc tbody td { display: block; padding: 0; border: 0; }
  .ms-doc tbody td:first-child { font-size: 14px; font-weight: 600; color: var(--text-primary); }
  .ms-doc tbody td:nth-child(2) { order: 3; }
}
.ms-doc .ms-code { white-space: pre; overflow-wrap: normal; overflow-x: auto; }
