/* ---------------------------------------------------------------------------
 * /system-design-interview-guide/ -- the Interview Prep Playbook.
 *
 * ===========================================================================
 * 1. THE CASCADE RULE THIS FILE EXISTS TO RESPECT -- READ BEFORE EDITING
 * ===========================================================================
 *
 * This page's body is inside `.content`, and content.css styles the generic
 * elements THROUGH `.content`:
 *
 *     .content a           { color: var(--accent); }          (0,1,1)
 *     .content ul, ol      { max-width: var(--prose);
 *                            padding-left: var(--sp-5);
 *                            color: var(--text-muted);
 *                            margin-bottom: var(--sp-4); }    (0,1,1)
 *     .content h2          { border-bottom; margin; }         (0,1,1)
 *     .content p           { max-width: var(--prose); }       (0,1,1)
 *
 * A BARE CLASS is (0,1,0) and therefore LOSES to all of those, even though
 * this stylesheet loads last -- source order only breaks ties at equal
 * specificity. Two things went wrong the first time this page was built and
 * both were invisible in the markup:
 *
 *   1. `.btn-primary` from core.css sets `color: var(--accent-contrast)` at
 *      (0,1,0). Inside `.content` it lost to `.content a`, so the label was
 *      painted --accent ON an --accent fill: measured contrast 1.00. The
 *      button rendered as an empty purple rectangle. core.css's `.btn` family
 *      is built for chrome OUTSIDE `.content`; every other page that wants a
 *      filled button inside content re-asserts the colour at `.content a.X`
 *      (see `.content a.course-btn-primary`, course.css:254) or ships a
 *      prefixed variant (`.hm-btn-primary`, `.mk-btn-primary`).
 *
 *   2. The semantic `<ul>`/`<ol>` grids inherited the prose measure and the
 *      list indent, so each was 756px wide and indented 24px while its
 *      sibling `<div>` grids ran the full 1232px. The five-cell 45-minute
 *      strip wrapped 4 + 1 into a narrow column. `.content ol.course-howto
 *      { padding: 0 }` in course.css is the same release.
 *
 * So: ANY rule here that sets `color` on an `<a>`, or `max-width` / `padding`
 * / `margin` / `color` on a `<ul>`, `<ol>`, `<p>`, `<h2>` or `<h3>`, MUST be
 * written `.content .ig-x` or `.content a.ig-x` to clear (0,1,1). Rules that
 * only set properties content.css does not touch stay unprefixed -- an
 * INHERITED value loses to any direct match, so `.ig-phase b { color }` is
 * enough to beat the colour inherited from `.content ul`.
 *
 * ===========================================================================
 * 2. WHY THE LAYOUT LOOKS LIKE THIS
 * ===========================================================================
 *
 * The page mirrors the homepage's section language rather than inventing one,
 * because a reader arrives here from the homepage and the two should not feel
 * like different products. home.css is loaded only on `/`, so the classes
 * cannot be reused -- what is reused is the shape, one-for-one:
 *
 *     .hm-section      -> .ig-sec       1px top rule, --sp-7 of padding under
 *     .hm-section-head -> .ig-sec-head  intro capped at 760px, NOT full width
 *     .hm-kicker       -> .ig-kick      uppercase accent eyebrow, no dash
 *     .hm-h2           -> .ig-h2        --fs-2xl, tight tracking, no border
 *     .hm-link         -> .ig-link      accent link with a trailing arrow
 *     .hm-stats        -> .ig-stats     grid over a border-top
 *
 * The capped intro against full-width grids is deliberate and is the house
 * answer to the wide-screen problem: prose stays at a readable measure
 * (--prose is 80ch) while anything tabular or card-shaped uses the whole
 * 1232px. The head ROW is what pays for the leftover space -- the intro sits
 * left, a contextual link sits right, which is `.hm-section-head-row`.
 *
 * Lists that were plain prose lists at 756px -- the four scoring criteria, the
 * six mistakes, the daily routine, the eight FAQs -- are card grids now. As
 * narrow lists on a 1232px page they left the right half of four separate
 * sections empty and made the page about a third longer than it needed to be.
 * They are still semantic <ol>/<ul>; only the presentation changed.
 *
 * ===========================================================================
 * 3. COLOUR
 * ===========================================================================
 *
 * Surfaces are flat, per core.css: "There is no glass, no blur, no accent glow
 * and no gradient on a content surface; depth is a 1px border plus a shallow
 * shadow, in both themes." No gradients here, and no hardcoded colours -- the
 * block this file replaced read `var(--bg-card, rgba(25,25,35,0.6))`, a legacy
 * alias with a dark literal fallback that would have rendered a near-black
 * card on the light theme.
 *
 * NOTHING HERE COLOURS TEXT WITH --text-dim. Measured against the surface each
 * label actually sits on:
 *
 *     --text-dim on dark --bg        4.72  passes
 *     --text-dim on dark --surface   4.36  FAILS the 4.5 floor for <18px text
 *     --text-dim on light --bg       3.88  FAILS
 *     --text-muted                   5.6 - 15  passes everywhere
 *
 * core.css already calls --text-dim the control-boundary token: it is a border
 * and affordance colour that happens to be legible on the dark page
 * background, not a text colour. Quiet labels are muted and earn their
 * hierarchy from size, weight and letter-spacing.
 *
 * Verified by probe, not by reading: a headless-Chrome pass reads every
 * label's resolved colour, composites the translucent chip fills over their
 * real backgrounds, and asserts WCAG contrast against the per-size threshold,
 * then asserts each grid's resolved width and column count and scans for
 * horizontal overflow -- both themes, six viewports.
 * ------------------------------------------------------------------------- */

/* ===========================================================================
   Section scaffolding
   =========================================================================== */
.ig-sec { position: relative; margin-top: var(--sp-6); padding: var(--sp-7) 0 0; }
.ig-sec::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--border);
}
/* The first section opens straight after the hero's own rule, so it does not
   need a second one. */
.ig-sec.is-first { margin-top: var(--sp-5); padding-top: 0; }
.ig-sec.is-first::before { display: none; }

.ig-sec-head { max-width: 760px; margin-bottom: var(--sp-5); }
.ig-sec-head-row {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap;
}
.ig-sec-head-row > div { max-width: 760px; }

.content .ig-kick {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  margin: 0 0 var(--sp-3); max-width: none;
  font-size: var(--fs-xs); font-weight: 750; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-dim);
}
/* NO ::before DASH. The 20x2px bar that used to sit in front of this label
   read as a stray long hyphen, and it was drawn 42 times across six pages.
   The uppercase, letter-spaced, accent colour already marks the label as an
   eyebrow; the rule was decoration on top of a treatment that works without
   it. `display: inline-flex` and `gap` stay above: the gap has no second item
   to act on, and inline-flex keeps the shrink-to-fit box the label wants. */

/* No bottom border. `.content h2` rules one off under every heading, which
   fights the section's own top rule two lines above it. */
.content .ig-h2 {
  margin: 0 0 var(--sp-3); padding: 0; border: 0;
  font-size: var(--fs-2xl); line-height: 1.15; letter-spacing: -0.025em; color: var(--text);
}
.content .ig-h3 { margin: var(--sp-6) 0 var(--sp-3); padding: 0; border: 0; font-size: var(--fs-lg); letter-spacing: -0.01em; }
/* A reading measure, not `none`. Inside a section head the parent's 760px cap
   already applies, but `.ig-sub` is also used standalone between blocks, and
   released to `none` those paragraphs ran the full 1232px -- about 170
   characters on one line. 72ch is under the 760px cap, so the head is
   unaffected. */
/* 62ch, NOT 72ch, and `ch` is why: it is the advance width of "0", which in
   this stack is about 0.55em, while average lowercase prose runs nearer
   0.46em. So 72ch measured roughly 95 CHARACTERS a line -- the first line of
   step 1 was exactly 96 -- against the 55-75 that is comfortable. 62ch lands
   at about 72 characters. The 760px parent cap stays: it is what keeps the
   head narrower than the card grids beside it. */
.content .ig-sub { margin: 0; max-width: 62ch; color: var(--text-muted); font-size: var(--fs-md); line-height: 1.65; }
.content a.ig-link {
  display: inline-flex; align-items: center; gap: var(--sp-1h);
  color: var(--accent); font-weight: 650; font-size: var(--fs-sm); white-space: nowrap;
}
.content a.ig-link:hover { text-decoration: underline; }

/* ===========================================================================
   Hero
   =========================================================================== */
.ig-hero { padding: var(--sp-5) 0 0; }
.content .ig-hero h1 {
  margin: 0 0 var(--sp-4); padding: 0; border: 0;
  font-size: var(--fs-3xl); line-height: 1.06; letter-spacing: -0.035em;
}
.ig-eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin: 0 0 var(--sp-4); padding: var(--sp-1h) var(--sp-3);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em;
  color: var(--text-muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-full);
}
/* No status dot. The pill used to lead with an --success circle and a glow
   ring, which everywhere else on this site means something is live -- a
   connected mock, a running judge. In front of "Written for 2026 interview
   loops" it indicated nothing. */
.content .ig-lede { margin: 0 0 var(--sp-5); max-width: 56ch; font-size: var(--fs-md); line-height: 1.7; color: var(--text-muted); }
.ig-hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Counted facts, not claims: every number comes from sc-counts.html. Numbers
   are --text rather than accent, as on the homepage -- the accent belongs to
   the kickers and links, and four large accent numbers in the hero compete
   with the one action the reader is supposed to take. */
.content .ig-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, max-content));
  gap: var(--sp-3) var(--sp-6); margin: var(--sp-6) 0 0;
  padding: var(--sp-4) 0 0; max-width: none; list-style: none;
  border-top: 1px solid var(--border);
}
.content .ig-stats li { display: flex; flex-direction: column; font-size: var(--fs-sm); color: var(--text-muted); }
.ig-stats b { font-size: var(--fs-xl); font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* The four steps, as jump links. The page is long and `hide_toc: true` means
   there is no rail to orient against. */
.content .ig-steps {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin: var(--sp-5) 0 0; padding: 0; max-width: none; list-style: none;
}
/* The stats follow the chips, so the rule above them separates the hero's
   action block from its proof block rather than sitting under the lede. */
.content .ig-steps + .ig-stats { margin-top: var(--sp-5); }
.content a.ig-step {
  display: inline-flex; align-items: baseline; gap: var(--sp-2);
  padding: var(--sp-2) 13px; font-size: var(--fs-sm); font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-full);
}
.content a.ig-step:hover { border-color: var(--border-accent); background: var(--surface-2); color: var(--text); }
.ig-step i { font-style: normal; font-size: var(--fs-xs); font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ===========================================================================
   Card grids
   ---------------------------------------------------------------------------
   Explicit column counts, not `auto-fit`. With `auto-fit` + minmax the track
   count is a function of container width, so the four round cards became
   3 + 1 and the three plan cards 2 + 1 between 760px and 1020px -- an orphan
   at a width nobody tests. Stating the counts makes the breakpoints at the
   bottom of this file the whole story.
   =========================================================================== */
.ig-grid { display: grid; gap: var(--sp-3); margin: 0; }
.ig-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ig-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ig-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* .card supplies padding, border and radius. Flexing lets a bottom-anchored
   line sit on the bottom edge whatever the body's length, so a row of four
   stays aligned. */
.ig-grid > .card { display: flex; flex-direction: column; }
.content .ig-grid h3 { margin: 0 0 var(--sp-2); padding: 0; border: 0; font-size: var(--fs-md); letter-spacing: -0.01em; }
.content .ig-grid p { margin: 0 0 var(--sp-3); max-width: none; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; }
.ig-kicker { display: block; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: var(--sp-2); }
.content .ig-grid .ig-go { margin-top: auto; font-size: var(--fs-sm); font-weight: 650; color: var(--accent); }
/* A card-shaped link reads as a card, not as a link: --text for the heading,
   the same choice `.content a.course-lesson` makes. Without this, `.content a`
   paints every card heading accent-blue. */
.content a.card-link { color: var(--text); }

/* Plan tiers */
.content .ig-tier-card h3 { margin: 0; display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap; }
.ig-yoe { font-size: var(--fs-xs); font-weight: 500; color: var(--text-muted); }
.ig-weeks { font-size: var(--fs-xl); font-weight: 800; color: var(--accent); letter-spacing: -0.02em; margin: var(--sp-2) 0 var(--sp-3); }
.content .ig-tier-card ul { margin: 0; padding-left: var(--sp-4); max-width: none; }
.content .ig-tier-card li { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; margin-bottom: var(--sp-2); }

/* ===========================================================================
   Numbered card lists -- the scoring criteria and the six mistakes
   ---------------------------------------------------------------------------
   Semantic <ol>, presented as cards with the marker drawn by a counter so the
   number can sit inside the card instead of in the list gutter.
   =========================================================================== */
.content .ig-num {
  display: grid; gap: var(--sp-3); margin: 0; padding: 0; max-width: none;
  list-style: none; counter-reset: ig-n;
}
.ig-num-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ig-num-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* THE <li> IS NOT A GRID, and that is the point. It was, with the counter in
   column one and the content expected in column two -- but a grid container
   makes a grid item out of EVERY child box including anonymous ones, so the
   <b> took column two, the text after it took the next cell, and item 3's two
   <em>s and its <a> each became a row of their own. The card rendered as a
   right-aligned label over five ragged lines.
   Normal flow plus an absolutely positioned marker keeps the content inline,
   which is what prose needs. The left padding reserves the marker's 26px plus
   its gap. */
.content .ig-num > li {
  counter-increment: ig-n;
  position: relative; margin: 0;
  padding: var(--sp-4) var(--sp-4) var(--sp-4) calc(var(--sp-4) + 26px + var(--sp-3));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6;
}
.content .ig-num > li::before {
  content: counter(ig-n);
  position: absolute; left: var(--sp-4); top: var(--sp-4);
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--accent); background: var(--accent-subtle); border: 1px solid var(--border-accent);
}
.ig-num b { display: block; color: var(--text); font-weight: 700; font-size: var(--fs-base); margin-bottom: 3px; }
.content .ig-num em { color: var(--text); font-style: italic; }

/* ===========================================================================
   The 45-minute strip
   ---------------------------------------------------------------------------
   Five cells, one per phase, read left to right as a timeline. Five across
   only fits above ~1040px; below that it is 3 + 2, then 2 + 2 + 1.
   =========================================================================== */
.content .ig-phases {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sp-2); margin: 0; padding: 0; max-width: none; list-style: none;
}
.ig-phase { padding: var(--sp-3) var(--sp-4) var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.ig-min { display: inline-block; font-size: var(--fs-xs); font-weight: 750; color: var(--accent); background: var(--accent-subtle); border: 1px solid var(--border-accent); border-radius: var(--r-full); padding: 1px var(--sp-2); margin-bottom: var(--sp-2); }
/* --text, not inherited. `.content ul` sets color: var(--text-muted) on the
   list and a <b> with no colour rule of its own inherits it, which left the
   phase name the same gray as its body copy and the strip with no hierarchy. */
.ig-phase b { display: block; font-size: var(--fs-sm); color: var(--text); margin-bottom: 3px; }
.content .ig-phase p { margin: 0; max-width: none; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.55; }

/* ===========================================================================
   The curated track
   ---------------------------------------------------------------------------
   Rows, not bullets, because each row carries four facts a reader chooses on:
   the pattern it teaches, the difficulty, the length, and whether they have
   done it. The last is live for a signed-in reader -- the <ol> sits inside
   `data-progress-key="hld-progress"` and assets/js/progress-rail.js paints and
   toggles every .prog-dot in that scope. No new JavaScript: that file is
   loaded unconditionally by _layouts/default.html.
   =========================================================================== */
.ig-track { margin: 0; }
.ig-track-sec + .ig-track-sec { margin-top: var(--sp-5); }
.content .ig-track-sec h3 {
  display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap;
  margin: 0 0 var(--sp-2); padding: 0; border: 0; font-size: var(--fs-md);
}
.ig-track-sec h3 span { font-size: var(--fs-xs); font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; }
.content .ig-items {
  margin: 0; padding: 0; max-width: none; list-style: none;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
}
/* The number column is sized, not auto. Left to `auto` it resolved to 8.6px
   against a single digit and would have clipped rows 10 to 12; `ch` on
   tabular figures is exactly two digits wide. The body is capped at a measure
   so the note does not stretch to 900px on a wide screen, and the free space
   is taken by the spacer column rather than by the prose. */
.ig-item {
  display: grid;
  grid-template-columns: var(--target-min) 2ch minmax(0, 64ch) minmax(var(--sp-4), 1fr) auto;
  align-items: start; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4);
}
.ig-item + .ig-item { border-top: 1px solid var(--border); }
.ig-item:hover { background: var(--surface-2); }
.ig-n { font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; text-align: right; padding-top: 2px; }
.ig-body { min-width: 0; grid-column: 3; }
.content a.ig-title { font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.content a.ig-title:hover { color: var(--accent); text-decoration: underline; }
.content .ig-note { margin: var(--sp-0) 0 0; max-width: none; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5; }
.ig-meta { grid-column: 5; display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; justify-content: flex-end; }
.ig-mins { font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* The toggle, styled the way every other consumer styles it. core.css owns
   .prog-dot but deliberately not .prog-toggle: the control's box is sized by
   whoever puts it in a row (compare `.section-rail-item .prog-toggle` in
   content.css and `.course-lesson-row .prog-toggle` in course.css).
   --target-min is the hit target. `disabled` is server-rendered and changes
   only cursor and opacity, so enabling it once auth resolves shifts no
   layout. */
.ig-item .prog-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--target-min); height: var(--target-min);
  padding: 0; background: none; border: 0; border-radius: var(--r-full); cursor: pointer;
}
.ig-item .prog-toggle[disabled] { cursor: default; opacity: 0.45; }
.ig-item .prog-toggle:not([disabled]):hover .prog-dot { border-color: var(--accent); }
.ig-item .prog-toggle:focus-visible { outline: var(--focus-ring); outline-offset: calc(var(--focus-ring-offset) * -1); }

/* Per-row practice links. Hidden below the narrow breakpoint: the row already
   carries a title, a note, a badge and a reading time at 360px, and nobody
   starts the simulator on a phone. */
.ig-do { display: flex; gap: var(--sp-3); }
.content .ig-do a { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); }
.content .ig-do a:hover { color: var(--accent); text-decoration: underline; }

/* ===========================================================================
   Tool strip
   =========================================================================== */
.content .ig-tools {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3); margin: 0; padding: 0; max-width: none; list-style: none;
}
.content a.ig-tool {
  display: flex; flex-direction: column; gap: var(--sp-0);
  padding: var(--sp-4); color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.content a.ig-tool:hover { border-color: var(--border-accent); background: var(--surface-2); }
.ig-tool b { font-size: var(--fs-base); font-weight: 700; color: var(--text); }
.ig-tool span { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; }
/* Free / sign-in / Pro, stated on the tool itself. Getting this wrong is what
   sends a reader to a 403 they cannot act on: og-worker answers 401
   auth_required for a signed-out reader and 403 pro_required for a free one,
   and only the second means "buy something". */
.ig-tool em { font-style: normal; font-size: var(--fs-xs); font-weight: 750; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: var(--sp-2); }

/* ===========================================================================
   Daily routine
   =========================================================================== */
.content .ig-routine {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3); margin: 0; padding: 0; max-width: none; list-style: none;
}
.ig-routine li { padding: var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.ig-routine b { display: block; font-size: var(--fs-xl); font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.ig-routine span { display: block; margin-top: 3px; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; }

/* ===========================================================================
   FAQ
   ---------------------------------------------------------------------------
   Two columns, because eight question-and-answer pairs at the 80ch prose
   measure ran to roughly two full screens of single-column text with the
   right half of the page empty. Left visible rather than put behind
   <details>: the answers are the FAQPage schema's `acceptedAnswer` text and
   the two have to stay word-for-word identical.
   =========================================================================== */
/* Mirrors `.hm-faq` on the homepage down to the rotating "+", because the site
   should not ship two different FAQ accordions.
   ---------------------------------------------------------------------------
   content.css ALREADY styles `.content details` generically -- its own
   padding, a muted small-caps summary, a `▸` marker, and a border plus margin
   under an open summary -- and every one of those rules reaches these
   elements. Each override below names the rule it beats, because the
   specificity arithmetic is the only thing making it work and it is not
   obvious: a class outranks an element, so `.content .ig-faq-item summary`
   (0,2,1) beats `.content details summary` (0,1,2) despite looking shorter. */
.content .ig-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin: 0; max-width: none; align-items: start; }
/* `overflow: hidden` so the summary's hover tint is clipped by the card's own
   radius -- without it a full-bleed row background pokes out of the corners,
   which is the note home.css leaves at the same rule. */
.content details.ig-faq-item {
  overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color var(--dur-fast) var(--ease);
}
.content details.ig-faq-item[open] { border-color: var(--border-strong); }
/* Beats `.content details summary` (0,1,2). */
.content .ig-faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4); min-height: 44px; cursor: pointer; list-style: none;
  color: var(--text); font-size: var(--fs-base); font-weight: 650;
  transition: background var(--dur-fast) var(--ease);
}
.content .ig-faq-item summary:hover { background: var(--surface-2); }
.ig-faq-item summary::-webkit-details-marker { display: none; }
/* Kills content.css's `▸` at `.content details summary::before` (0,1,2).
   WITHOUT THIS the marker is a THIRD flex item, and under
   `justify-content: space-between` it sat at the left edge with the question
   pushed to the middle of the row and the "+" at the right -- which is exactly
   how the first version of this rendered. course.css:125 does the same thing
   for the course stages, for the same reason. */
.content .ig-faq-item summary::before { content: none; display: none; }
.content .ig-faq-item summary h3 { margin: 0; padding: 0; border: 0; font-size: var(--fs-base); font-weight: 650; color: var(--text); line-height: 1.45; }
.content .ig-faq-item summary::after {
  content: "+"; flex: none; font-size: var(--fs-lg); line-height: 1; color: var(--text-muted);
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.content .ig-faq-item summary:hover::after,
.content .ig-faq-item[open] summary::after { color: var(--accent); }
.content .ig-faq-item[open] summary::after { transform: rotate(45deg); }
/* Beats `.content details[open] summary` (0,2,2) at (0,3,1). That rule adds a
   border-bottom and a --sp-3 bottom margin, which double-spaced the answer
   against its own top padding. */
.content .ig-faq-item[open] summary { border-bottom: 0; margin-bottom: 0; }
/* Beats `.content details > *:not(summary)` (0,1,1), which sets its own
   padding on the answer. */
.content .ig-faq-item p { margin: 0; padding: 0 var(--sp-4) var(--sp-4); max-width: none; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; }
.content .ig-faq-item summary:focus-visible { outline: var(--focus-ring); outline-offset: -2px; border-radius: var(--r-md); }

/* ===========================================================================
   Callouts
   ---------------------------------------------------------------------------
   Two columns at wide widths: the pitch left, the actions right. As a single
   stacked column the box was 1232px wide with a 78ch paragraph and a pair of
   buttons under it, so the right half was empty.
   =========================================================================== */
.ig-call {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-5);
  align-items: center; margin: 0;
  padding: var(--sp-5); border: 1px solid var(--border-accent);
  border-radius: var(--r-lg); background: var(--accent-subtle);
}
.ig-call-1col { grid-template-columns: minmax(0, 1fr); }
.content .ig-call h3 { margin: 0 0 var(--sp-2); padding: 0; border: 0; font-size: var(--fs-lg); letter-spacing: -0.01em; }
.content .ig-call p { margin: 0; max-width: 72ch; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; }
.content .ig-call p + p { margin-top: var(--sp-3); }
.ig-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
/* Stacked actions in the right column read as a choice, not a sentence. */
.ig-call > .ig-actions { flex-direction: column; align-items: stretch; }
.ig-call > .ig-actions .btn { justify-content: center; }

/* ===========================================================================
   Re-asserting what `.content a` takes away
   ---------------------------------------------------------------------------
   content.css has TWO rules that strip properties off any <a> on this page,
   both at (0,1,1), which beats core.css's component classes at (0,1,0):

     .content a { color: var(--accent); }                   content.css:367
     @media (max-width: 768px) {
       .content a { padding: var(--sp-0) 0; }   /* touch targets */  content.css:1765
     }

   The colour one made the primary CTA --accent text on an --accent fill:
   1.00:1, an empty purple rectangle.

   The padding one is worse because it only shows up below 769px, so it is
   invisible on the machine the page is built on. It is meant for inline prose
   links -- a 2px vertical pad to fatten the tap target -- but it applies to
   EVERY <a> in the article, so on a phone it silently stripped 24px of padding
   off each card-shaped link and all horizontal padding off every button. The
   round cards had their text against the border while the plan cards next to
   them, being <div>s, kept theirs; the hero buttons had their labels running
   edge to edge inside the fill.

   These re-assertions restate core.css's own values at (0,2,1), unconditionally
   rather than inside a media query, so desktop is unchanged by construction
   and the mobile override no longer reaches them. `.btn-lg` must follow `.btn`:
   they are the same specificity, so source order is what separates them.
   =========================================================================== */
.content a.btn, .content a.btn:hover { color: var(--text); }
.content a.btn-primary, .content a.btn-primary:hover { color: var(--accent-contrast); }
.content a.btn { padding: 0.6rem 1.1rem; }
.content a.btn-lg { padding: 0.8rem 1.6rem; }
.content a.card { padding: var(--sp-5); }

/* ===========================================================================
   Breakpoints -- each one a width at which a stated column count stops
   fitting.
   =========================================================================== */
@media (max-width: 1040px) {
  .content .ig-phases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ig-num-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .ig-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .ig-call { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .ig-call > .ig-actions { flex-direction: row; align-items: center; }
}
@media (max-width: 820px) {
  .content .ig-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content .ig-faq { grid-template-columns: minmax(0, 1fr); }
  .content .ig-routine { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  /* Three plan cards go straight to one. At two, the third is an orphan on a
     row of its own at double the width of its siblings. */
  .ig-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .ig-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ig-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .ig-num-3, .ig-num-2 { grid-template-columns: minmax(0, 1fr); }
  .content .ig-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
  .ig-sec { padding-top: var(--sp-6); }

  /* Phases go to ONE column, not two. At two they were 179px wide and 202px
     tall -- an eighteen-word paragraph in a column narrow enough to break it
     over seven lines, five times over. One per row is shorter overall and
     readable, and the chip sits beside the name rather than above it. */
  .content .ig-phases { grid-template-columns: minmax(0, 1fr); }
  .ig-phase { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 var(--sp-3); padding: var(--sp-3) var(--sp-4); }
  .ig-min { grid-row: 1; margin-bottom: 0; align-self: center; }
  .ig-phase b { grid-row: 1; align-self: center; margin-bottom: 0; }
  .content .ig-phase p { grid-column: 2; margin-top: 3px; }

  /* Tool cards stay TWO up. Each is a name, one line of description and an
     access label; at one per row the two tool sections ran to 1620px of the
     page between them. */
  .content .ig-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
  .content a.ig-tool { padding: var(--sp-3); }
  .ig-tool b { font-size: var(--fs-sm); }
  .ig-tool span { font-size: var(--fs-xs); }

  /* Full-width stacked actions. Side by side the two buttons summed to 317 of
     366 available pixels, so both labels sat hard against their fill edges. */
  .ig-hero-actions { flex-direction: column; align-items: stretch; }
  .ig-hero-actions .btn { justify-content: center; }
  .ig-call > .ig-actions { flex-direction: column; align-items: stretch; }
  .ig-call > .ig-actions .btn { justify-content: center; }

  /* Two by two, not three and an orphan. */
  .content .ig-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content a.ig-step { justify-content: center; }

  .ig-call { padding: var(--sp-4); }
  .content .ig-call p { max-width: none; }

  /* The number stays with the toggle and the meta row wraps under the body, so
     a row is two lines rather than four at 360px. */
  .ig-item { grid-template-columns: var(--target-min) 2ch minmax(0, 1fr); padding: var(--sp-3); }
  .ig-meta { grid-column: 2 / -1; justify-content: flex-start; margin-top: var(--sp-1); }
  .ig-do { display: none; }

  /* Cards lose their generous padding on a phone; the re-assertion above
     restores core.css's 24px, which is more than a 366px card wants. */
  .content a.card, .ig-grid > .card { padding: var(--sp-4); }
  .content .ig-num > li { padding: var(--sp-3) var(--sp-4) var(--sp-4) calc(var(--sp-3) + 26px + var(--sp-2)); }
  .content .ig-num > li::before { left: var(--sp-3); top: var(--sp-3); }
}
