/* ==========================================================================
   M3 Learning Center — the two reference pages

   Loaded by /brand/ and /brand/social/, not by site.css. Everything here is
   specific to a long reference document — swatch grids, spec tables, do/don't
   panels, asset cards — and there is no reason for the other nine pages to
   carry it.

   The .bg- half belongs to the guidelines; the .sk- half, near the bottom,
   belongs to the social kit. They share this file because the kit page is
   built from the guidelines' own sections, panels and captions, and a second
   stylesheet that imported half of this one would be worse than one file with
   two prefixes in it.

   It reuses the tokens and components in site.css rather than redefining them:
   this page has to BE the design system it documents, or the document is
   wrong the first time someone compares the two.

   The print block at the bottom is not decoration. This page is meant to be
   handed to printers, and a printer's normal move is to save it as a PDF and
   attach it to the job. See the README.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout — sticky contents rail beside the document
   -------------------------------------------------------------------------- */

.bg-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.bg-toc {
  display: none;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 8px 0 40px;
}

.bg-toc__head {
  font-family: var(--font-heading);
  font-size: var(--eyebrow-size);
  font-weight: var(--eyebrow-weight);
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.bg-toc__list { list-style: none; margin: 0; padding: 0; }

.bg-toc__link {
  display: flex;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: var(--small-size);
  line-height: 1.35;
  color: var(--text-body);
}

.bg-toc__link:hover { background: var(--surface); color: var(--text-link); }

.bg-toc__num {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

/* The two-column layout, and the rail that fills the first column.
   THIS BLOCK MUST STAY AFTER the `.bg-toc { display: none }` above it. Both
   rules are a single class, so the later one wins — put this first and the
   rail is hidden at every width, which drops it out of the grid and makes
   .bg-doc the first item. The whole document then renders inside a 216px
   column and the page looks broken. That is not hypothetical; it shipped. */
@media (min-width: 1000px) {
  .bg-shell { grid-template-columns: 216px minmax(0, 1fr); gap: 48px; }
  .bg-toc { display: block; grid-column: 1; }
  /* Pinned rather than left to auto-placement. If the rail is ever hidden
     again, the document keeps its own column instead of sliding into the
     216px one — an empty gutter rather than an unreadable page. */
  .bg-doc { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   Document rhythm

   Sections are separated by a rule rather than by alternating bands: a
   reference document is scanned, not scrolled through, and banding a
   twelve-section page turns it into a liquorice allsort.
   -------------------------------------------------------------------------- */

/* Screen-reader-only, for the <caption> every data table needs and no sighted
   reader wants. site.css has no such helper because no other page has a table
   whose heading is already stated in the prose above it. */
.bg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.bg-doc { padding-bottom: 40px; }

.bg-section { padding: 52px 0; border-top: 1px solid var(--border-divider); }
.bg-section:first-child { border-top: none; padding-top: 34px; }

.bg-section__num {
  font-family: var(--font-heading);
  font-size: var(--eyebrow-size);
  font-weight: var(--eyebrow-weight);
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  color: var(--text-eyebrow);
  margin: 0 0 14px;
}

.bg-section > h2 {
  margin: 0 0 16px;
  font-size: var(--h2-size);
  line-height: var(--h2-leading);
  letter-spacing: var(--h2-tracking);
  max-width: 22ch;
}

.bg-lede {
  margin: 0 0 32px;
  font-size: var(--lead-size);
  line-height: var(--lead-leading);
  color: var(--text-body);
  max-width: var(--measure);
}

.bg-h3 {
  font-family: var(--font-heading);
  font-size: var(--h4-size);
  font-weight: var(--h4-weight);
  letter-spacing: var(--h4-tracking);
  line-height: var(--h4-leading);
  color: var(--text-heading);
  margin: 40px 0 12px;
}

.bg-p { margin: 0 0 16px; max-width: var(--measure); }
.bg-note { font-size: var(--small-size); color: var(--text-muted); max-width: var(--measure); }

/* A pointer out of the document to somewhere else. Tinted rather than boxed in
   a panel, so it reads as an aside within the section instead of as one of the
   section's own specimens. */
.bg-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 22px;
  padding: 14px 16px;
  max-width: var(--measure);
  border: 1px solid var(--border-card);
  border-left: 3px solid var(--purple-600);
  border-radius: var(--radius-card);
  background: var(--tint-purple);
  font-size: var(--small-size);
  line-height: 1.55;
  color: var(--text-body);
}

.bg-callout > i { color: var(--purple-600); margin-top: 3px; flex: none; }

/* --------------------------------------------------------------------------
   Generic panel grid
   -------------------------------------------------------------------------- */

.bg-grid { display: grid; gap: 16px; margin: 0 0 8px; }

/* --2 is exactly two columns, not "as many as fit". The lockup specimens are
   deliberate pairs — horizontal light/reversed, then stacked light/reversed —
   and auto-fit put three in the first row and orphaned the fourth, which
   splits the pair the reader is meant to compare. The others (--3, --4) are
   loose sets of equal panels, so auto-fit is right for them. */
.bg-grid--2 { grid-template-columns: minmax(0, 1fr); }
.bg-grid--3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.bg-grid--4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* After the base rules above, never before — see the note on the contents
   rail for what happens when a media query is placed ahead of what it
   overrides. */
@media (min-width: 640px) {
  .bg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.bg-panel {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 18px;
  background: var(--surface-card);
}

.bg-panel__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  margin: 0 0 6px;
}

.bg-panel__body { margin: 0; font-size: var(--small-size); line-height: 1.5; color: var(--text-body); }

/* --------------------------------------------------------------------------
   Logo specimens

   A checkerboard behind the reversed and one-color marks, because the mark's
   letterforms are negative space: on a plain white card the white variant is
   invisible and the page appears broken.
   -------------------------------------------------------------------------- */

.bg-specimen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 26px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  background: var(--white);
}

.bg-specimen--dark { background: var(--ink); border-color: var(--ink); }
.bg-specimen--tall { min-height: 210px; }
.bg-specimen img { display: block; max-width: 100%; height: auto; }

.bg-caption {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

.bg-caption b { color: var(--text-heading); font-weight: 600; }

/* Clear-space diagram.

   The dashed rule is the OUTER limit of the keep-out zone, so it must sit a
   clear space away from the artwork on all four sides — it is not a box drawn
   around the logo.

   Built as padding on a wrapper rather than an absolutely positioned inset,
   because percentage insets do not measure what this diagram needs: `left`
   and `right` percentages resolve against the containing block's width but
   `top` and `bottom` against its height, so any single percentage is only
   correct for one artwork aspect ratio and silently wrong for every other.
   Padding on a wrapper is one length applied to all four sides, which is
   exactly the rule being illustrated, and it holds for any artwork.

   --art is the rendered artwork width, set per diagram in the markup.
   --clear is derived from it, so the two can never drift apart. */
.bg-clearspace {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: var(--surface);
  border-radius: var(--radius-card);
}

.bg-clearspace__zone {
  /* The mark's rule: a quarter of the mark's own width. */
  --clear: calc(var(--art) / 4);
  display: block;
  padding: var(--clear);
  border: 1.5px dashed var(--purple-600);
  border-radius: 2px;
  line-height: 0;
}

/* The stacked lockup's rule is a quarter of the CUBE's width, not the
   lockup's. In m3-lockup-stacked.svg the cube is 300 units of a 600-unit
   canvas — exactly half — so a quarter of the cube is an eighth of the
   artwork. Check this against the SVG if the lockup is ever redrawn. */
.bg-clearspace__zone--cube { --clear: calc(var(--art) / 8); }

.bg-clearspace__zone img { display: block; width: var(--art); height: auto; }

/* The two diagrams hold artwork of different heights, so without this their
   boxes end at different points and the captions below them stop lining up —
   a poor look on the one page whose subject is alignment. The figure is the
   grid item and already stretches to the row; this passes that height down. */
.bg-figure { display: flex; flex-direction: column; margin: 0; }
.bg-figure > .bg-clearspace { flex: 1; }

/* --------------------------------------------------------------------------
   Color
   -------------------------------------------------------------------------- */

.bg-swatch {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-card);
}

.bg-swatch__chip { height: 104px; }

.bg-swatch__meta { padding: 14px 16px 16px; }

.bg-swatch__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  margin: 0 0 2px;
}

.bg-hex {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.bg-swatch__role { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-body); }

.bg-ratio { margin: 10px 0 0; font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.bg-pass { color: var(--success); font-weight: 600; }
.bg-fail { color: var(--error); font-weight: 600; }

/* Small round chip used in the token tables. */
.bg-dot {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(20, 16, 36, 0.12);
  vertical-align: -6px;
  margin-right: 8px;
}

/* Proportion bar — the ~70/14/8/5/3 balance, drawn to scale. */
.bg-proportion {
  display: flex;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-card);
  margin: 0 0 12px;
}

.bg-proportion span { display: block; }

.bg-proportion__key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-muted); }

.bg-gradient-strip {
  height: 88px;
  border-radius: var(--radius-card);
  background: var(--brand-gradient-h);
  margin: 0 0 12px;
}

/* --------------------------------------------------------------------------
   Typography specimens
   -------------------------------------------------------------------------- */

.bg-typerow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--border-divider);
}

@media (min-width: 720px) {
  .bg-typerow { grid-template-columns: minmax(0, 1fr) 260px; align-items: baseline; }
}

.bg-typerow__spec {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.bg-typerow__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-heading);
  margin: 0 0 2px;
}

/* --------------------------------------------------------------------------
   Do / don't
   -------------------------------------------------------------------------- */

.bg-dont {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--small-size);
  line-height: 1.45;
  background: var(--surface-card);
}

.bg-dont__x {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--error-bg);
  color: var(--error);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.bg-voice { border: 1px solid var(--border-card); border-radius: var(--radius-card); overflow: hidden; }
/* max-width:none because site.css caps every <p> at the reading measure, and
   this one is a full-bleed header band inside a bordered card, not a line of
   prose. On /brand/ the voice cards sit in a two-column grid narrower than the
   measure, so the cap never bit and the band looked correct; used full-width
   on /brand/social/ the tint stopped three-quarters of the way across. */
.bg-voice__topic {
  max-width: none;
  padding: 12px 16px;
  background: var(--surface);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--text-heading);
}
.bg-voice__row { padding: 14px 16px; border-top: 1px solid var(--border-divider); font-size: var(--small-size); line-height: 1.55; }
.bg-voice__tag {
  display: block;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.bg-voice__tag--no { color: var(--error); }
.bg-voice__tag--yes { color: var(--success); }

/* --------------------------------------------------------------------------
   Graphic language demonstrations
   -------------------------------------------------------------------------- */

.bg-demo { height: 128px; border-radius: var(--radius-card); border: 1px solid var(--border-card); overflow: hidden; }
.bg-demo--iso { background-color: var(--white); background-image: var(--iso-grid); }
.bg-demo--planes { background: var(--three-plane); }
.bg-demo--watermark { position: relative; background: var(--surface); }
.bg-demo--watermark img { position: absolute; right: -34px; bottom: -46px; width: 190px; opacity: 0.12; }

/* Icon specimens. .m3-chip is a fixed 44px square built to hold a glyph and
   nothing else, so the label is a sibling, not a child — put text inside the
   chip and it overflows the square and collides with the next one. */
.bg-iconrow { display: flex; flex-wrap: wrap; gap: 14px 24px; margin: 0 0 14px; }

.bg-iconspec { display: flex; align-items: center; gap: 10px; }

.bg-iconspec__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--text-heading);
}

.bg-radius {
  height: 78px;
  background: var(--tint-purple);
  border: 1px solid var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--purple-700);
}

/* --------------------------------------------------------------------------
   Downloads
   -------------------------------------------------------------------------- */

.bg-dl {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  text-decoration: none;
  background: var(--surface-card);
  color: var(--text-body);
}

.bg-dl:hover { border-color: var(--purple-600); }

.bg-dl__preview {
  flex: 0 0 auto;
  width: 62px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: var(--surface);
}

.bg-dl__preview--dark { background: var(--ink); }
.bg-dl__preview img { max-width: 100%; max-height: 100%; }

.bg-dl__name { font-family: var(--font-mono); font-size: 13px; color: var(--text-heading); word-break: break-all; }
.bg-dl__use { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* Shown only on paper. Declared here, BEFORE the print block, so the
   override there wins on source order and does not have to rely on
   !important to do it. */
.bg-print-only { display: none; }

/* --------------------------------------------------------------------------
   Social media kit — /brand/social/ only

   Placed before the print block below, deliberately: the print rules have to
   come last to win on source order without reaching for !important.
   -------------------------------------------------------------------------- */

/* Numbered steps. A real <ol>, so the numbers are content rather than
   decoration and survive with CSS off — the counter here only restyles them. */
.sk-steps {
  list-style: none;
  counter-reset: sk-step;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}

.sk-steps > li {
  counter-increment: sk-step;
  position: relative;
  padding: 0 0 18px 44px;
}

.sk-steps > li::before {
  content: counter(sk-step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--tint-purple);
  color: var(--purple-600);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sk-steps > li:last-child { padding-bottom: 0; }

.sk-steps__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  margin: 0 0 4px;
}

.sk-steps__body { margin: 0; font-size: var(--small-size); line-height: 1.55; color: var(--text-body); }

.sk-steps--tight > li { padding-bottom: 12px; }

/* --------------------------------------------------------------------------
   Asset cards

   The <img> in each is the full-size PNG, not a thumbnail, because the page
   tells the reader to right-click and copy it. Only the display size is
   reduced — max-height rather than width, so a 2000x323 lockup and a
   1080x1920 story both sit sensibly in the same row.
   -------------------------------------------------------------------------- */

.sk-kit {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 0 0 10px;
}

.sk-asset {
  margin: 0;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-card);
  display: flex;
  flex-direction: column;
}

/* A fixed height, not a minimum. The kit mixes a 2000x323 lockup with a
   1080x1920 story, and with min-height each card sized to its own artwork —
   so the rule under the picture landed at a different height in every card of
   the same row, which reads as a broken grid rather than as varied artwork. */
.sk-asset__art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  flex: none;
  padding: 18px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border-card);
}

.sk-asset__art img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }

/* A transparent PNG has to be shown on a checkerboard or the reader cannot
   tell that the background is missing rather than white — which is the single
   fact that decides whether they use the file correctly. */
.sk-asset__art--check {
  background-color: var(--white);
  background-image:
    linear-gradient(45deg, #ECE9F2 25%, transparent 25%, transparent 75%, #ECE9F2 75%),
    linear-gradient(45deg, #ECE9F2 25%, transparent 25%, transparent 75%, #ECE9F2 75%);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
}

.sk-asset__art--dark { background: var(--ink); border-bottom-color: var(--ink); }
.sk-asset__art--plain { background: var(--surface); }

.sk-asset__meta { padding: 14px 16px 15px; display: flex; flex-direction: column; flex: 1; }

.sk-asset__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  margin: 0 0 5px;
}

.sk-asset__use { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--text-body); flex: 1; }

.sk-asset__foot {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sk-asset__dl {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-link);
  text-decoration: none;
  white-space: nowrap;
}

.sk-asset__dl:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Color cards with a copy shortcut
   -------------------------------------------------------------------------- */

.sk-color {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-card);
}

/* The rule under the chip is what makes the white swatch a swatch. Without it
   #FFFFFF on a white card is an empty space, and the one color most likely to
   be used wrongly looks like a rendering fault. */
.sk-color__chip { display: block; height: 76px; border-bottom: 1px solid var(--border-card); }
.sk-color__meta { padding: 14px 16px 16px; }

.sk-color__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-heading);
  margin: 0 0 8px;
}

.sk-color__hex { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.sk-color__use { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--text-body); }
.sk-color__where { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.sk-color__where b { color: var(--text-heading); font-weight: 600; }

.sk-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  min-height: 30px;
  border: 1px solid var(--border-input);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text-body);
  cursor: pointer;
}

/* The attribute has to beat the display above, or the button shows before the
   script has decided it can work. */
.sk-copy[hidden] { display: none; }

.sk-copy:hover { border-color: var(--purple-600); color: var(--text-link); }
.sk-copy.is-copied { border-color: var(--success); color: var(--success); }

/* --------------------------------------------------------------------------
   Recipes — the artwork beside its steps
   -------------------------------------------------------------------------- */

.sk-recipe {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 0 0 12px;
  padding: 20px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-panel);
  background: var(--surface-card);
}

.sk-recipe__art { display: flex; align-items: flex-start; justify-content: center; }

.sk-recipe__art img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: var(--radius-card);
}

/* After the base rules, never before — see the note on the contents rail for
   what a media query placed ahead of what it overrides does to this page. */
@media (min-width: 720px) {
  .sk-recipe { grid-template-columns: 260px minmax(0, 1fr); gap: 26px; }
}

/* Mock-ups of the two recipes that have no single file to show. Built in CSS
   rather than shipped as images: they are diagrams of a layout, and a picture
   of one would be a third copy of the rules to keep in step. */
.sk-demo {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.sk-demo--photo { background: var(--surface); }

.sk-demo__photo {
  flex: 1;
  background-color: #D8D3E4;
  background-image: var(--placeholder-stripes);
}

.sk-demo__bar {
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding: 16px 14px 18px;
}

.sk-demo--ink {
  background: var(--ink);
  justify-content: center;
  gap: 10px;
  padding: 22px 18px;
  aspect-ratio: 1 / 1;
}

.sk-demo__eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-cyan);
}

.sk-demo__head {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-on-dark);
}

.sk-demo__btn {
  align-self: flex-start;
  margin-top: 4px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  border-radius: 999px;
  padding: 8px 14px;
}

/* --------------------------------------------------------------------------
   The Claude briefing block, and the example requests
   -------------------------------------------------------------------------- */

.sk-prompt {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-card);
  margin: 0 0 18px;
}

.sk-prompt__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: none;
  margin: 0;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-card);
}

.sk-prompt__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-heading);
}

.sk-prompt__label > i { color: var(--purple-600); margin-right: 7px; }

/* The block a reader is told to copy. It scrolls sideways inside its own box
   rather than stretching the page: the briefing has fixed-width columns in it
   and must not be re-wrapped, because what is copied is what gets pasted. */
.sk-prompt__body {
  margin: 0;
  padding: 16px 14px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-body);
  white-space: pre;
  tab-size: 2;
}

.sk-example {
  border: 1px solid var(--border-card);
  border-left: 3px solid var(--purple-600);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  padding: 14px 16px;
  margin: 0 0 12px;
  max-width: var(--measure);
}

.sk-example__what {
  margin: 0 0 7px;
  max-width: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-heading);
}

/* Quoted rather than styled as code: it is a sentence to say, not a command
   to type exactly, and monospace would suggest the opposite. */
.sk-example__say {
  margin: 0;
  max-width: none;
  font-size: var(--small-size);
  line-height: 1.6;
  color: var(--text-body);
  font-style: italic;
}

.sk-example__say::before { content: "\201C"; }
.sk-example__say::after  { content: "\201D"; }

/* --------------------------------------------------------------------------
   Print

   The document is expected to be saved as a PDF and attached to a print job,
   so this is a real stylesheet, not a courtesy.

   print-color-adjust is the load-bearing line. Browsers drop background
   colors when printing, which on this page would blank every swatch, the
   gradient and the three-plane rule — that is, precisely the parts a printer
   opened it for. `exact` forces them through.
   -------------------------------------------------------------------------- */

@media print {
  @page { margin: 14mm 13mm; }

  html, body { background: #FFFFFF; }

  /* Chrome that means nothing on paper. */
  .m3-header, .m3-footer, .m3-skip, .m3-notice, .bg-toc, .bg-print-hide { display: none !important; }

  /* Backgrounds must survive, or the color sections print blank. */
  .bg-swatch__chip, .bg-dot, .bg-proportion, .bg-proportion span, .bg-gradient-strip,
  .bg-demo, .bg-demo--iso, .bg-demo--planes, .bg-radius, .bg-specimen--dark,
  .bg-clearspace, .bg-voice__topic, .bg-dl__preview, .bg-dl__preview--dark,
  .bg-dont__x, .m3-band--dark, .m3-pill, .m3-btn {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .bg-shell { display: block; max-width: none; padding: 0; }
  .bg-doc { padding-bottom: 0; }

  /* Each numbered section starts a page. A reference document is looked
     things up in, and a section that starts mid-page is hard to find again. */
  .bg-section { break-before: page; padding: 0 0 18px; border-top: none; }
  .bg-section:first-child { break-before: avoid; }

  /* Never split a specimen, a swatch or a table row across a page. */
  .bg-panel, .bg-swatch, .bg-specimen, .bg-dont, .bg-voice, .bg-dl,
  .bg-typerow, .bg-clearspace, tr, figure {
    break-inside: avoid;
  }

  .bg-h3, h2, h3 { break-after: avoid; }

  /* Interactive affordances read as noise on paper. */
  .bg-dl { border-color: #CFC9DE; }
  a { text-decoration: none; color: inherit; }

  /* The URL every printed copy should carry back to the live document. */
  .bg-print-only { display: block !important; }

  .bg-grid--2, .bg-grid--3, .bg-grid--4 { grid-template-columns: repeat(2, 1fr); }

  .bg-lede, .bg-p, .bg-note { max-width: none; }

  body { font-size: 10.5pt; line-height: 1.5; }
  .bg-section > h2 { font-size: 20pt; }
  .bg-h3 { font-size: 12pt; margin-top: 20px; }
}

