/* 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: the product's orb (its colours on Fasra's products page) and the name in the brand serif. */
.ms-mark { gap: var(--sp-2); text-decoration: none; color: var(--text-primary); }
.ms-orb { --c: var(--chart-3); --c2: var(--chart-4); width: 20px; height: 20px; --blur: 4px; }
.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; }
.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); }

/* 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); white-space: pre-wrap; overflow-wrap: anywhere; }

/* 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); }
}
