/* ============================================================
   The Crazy Studio — token layer
   Child theme: [your-child-theme]/assets/css/tokens.css

   Level 1 primitives (palette, fonts, sizes, spacing) live in
   theme.json. WordPress emits them as --wp--preset--* variables.
   This file is Level 2 only: semantic aliases + helper classes.

   Nothing here redeclares --wp--preset--* values. One source of truth.

   ------------------------------------------------------------
   UPDATED 2026-08-04. Changes, all in sections 6 and 7:
     1. .tcs-tldr        NEW component. Stacked TL;DR, larger type.
     2. .tcs-table       Cell padding fixed, core borders removed,
                         inner <table> targeted, mobile scroll added.
     3. .wp-block-quote  Line-height only. Size moved to theme.json
                         so the editor can still override it.
     4. .tcs-faq         NEW component. Styled FAQ list with the
                         .tcs-tick yellow bar above each question.
     5. Link hover       Dark text, yellow 3px underline. Applied to
                         body links (section 5), the TOC sidebar
                         (section 7) and the site menu (section 6e).
                         Paired with theme.json elements.link:hover
                         moving from accent-4 to contrast.
   ============================================================ */


/* ------------------------------------------------------------
   1. COLOR SEMANTICS
   Greys are derived from the palette with color-mix. No raw hex
   except the two status colours, which sit outside the palette.
   ------------------------------------------------------------ */

:root {
  /* Brand aliases */
  --tcs-black:       var(--wp--preset--color--contrast);
  --tcs-white:       var(--wp--preset--color--base);
  --tcs-paper:       var(--wp--preset--color--accent-5);
  --tcs-yellow:      var(--wp--preset--color--accent-1);
  --tcs-yellow-deep: var(--wp--preset--color--accent-3);
  --tcs-yellow-wash: var(--wp--preset--color--accent-2);

  /* Yellow that is legible as TEXT on a light field (7.9:1).
     Plain --tcs-yellow is 1.5:1 and must never be used for type. */
  --tcs-yellow-ink:  color-mix(in srgb, var(--wp--preset--color--accent-3) 40%, var(--wp--preset--color--contrast));

  /* Derived neutral ramp */
  --tcs-grey-950: color-mix(in srgb, var(--wp--preset--color--contrast) 96%, var(--wp--preset--color--base));
  --tcs-grey-900: color-mix(in srgb, var(--wp--preset--color--contrast) 92%, var(--wp--preset--color--base));
  --tcs-grey-800: color-mix(in srgb, var(--wp--preset--color--contrast) 85%, var(--wp--preset--color--base));
  --tcs-grey-700: color-mix(in srgb, var(--wp--preset--color--contrast) 75%, var(--wp--preset--color--base));
  --tcs-grey-600: var(--wp--preset--color--accent-4);
  --tcs-grey-500: color-mix(in srgb, var(--wp--preset--color--accent-4) 88%, var(--wp--preset--color--base)); /* 88% clears AA at 4.6:1 */
  --tcs-grey-400: color-mix(in srgb, var(--wp--preset--color--accent-4) 60%, var(--wp--preset--color--base));
  --tcs-grey-300: color-mix(in srgb, var(--wp--preset--color--accent-4) 42%, var(--wp--preset--color--base));
  --tcs-grey-200: color-mix(in srgb, var(--wp--preset--color--accent-4) 24%, var(--wp--preset--color--base));
  --tcs-grey-150: color-mix(in srgb, var(--wp--preset--color--accent-4) 17%, var(--wp--preset--color--base));
  --tcs-grey-100: color-mix(in srgb, var(--wp--preset--color--accent-4) 12%, var(--wp--preset--color--base));
  --tcs-grey-50:  color-mix(in srgb, var(--wp--preset--color--accent-4) 7%,  var(--wp--preset--color--base));

  /* Semantic — light field */
  --bg:             var(--wp--preset--color--base);
  --surface:        var(--wp--preset--color--base);
  --surface-muted:  var(--wp--preset--color--accent-5);
  --surface-sunken: var(--tcs-grey-100);

  --text:           var(--wp--preset--color--contrast);
  --text-strong:    var(--wp--preset--color--contrast);
  --text-muted:     var(--wp--preset--color--accent-4);  /* 6.7:1 */
  --text-subtle:    var(--tcs-grey-500);                 /* 4.6:1 */
  --text-faint:     var(--tcs-grey-400);                 /* 2.7:1 — rules and dividers only, never type */
  --text-inverse:   var(--wp--preset--color--base);

  --line:           var(--wp--preset--color--accent-6);
  --line-strong:    color-mix(in srgb, currentColor 35%, transparent);
  --line-ink:       currentColor;

  --accent:         var(--wp--preset--color--accent-1);
  --accent-strong:  var(--wp--preset--color--accent-3);
  --on-accent:      var(--wp--preset--color--contrast);
  --signal:         var(--wp--preset--color--accent-1);
  --highlight:      var(--wp--preset--color--accent-2);

  /* Status — outside the palette, forms only */
  --positive:       #2E7D52;
  --warning:        var(--wp--preset--color--accent-3);
  --critical:       #B23A2E;

  /* Focus — black on light fields, 19.7:1 */
  --focus-ring:     var(--wp--preset--color--contrast);
}

/* Dark field — add the class "tcs-dark" to a Group block */
.tcs-dark {
  color: var(--text);
  background-color: var(--wp--preset--color--contrast);

  --bg:             var(--wp--preset--color--contrast);
  --surface:        var(--tcs-grey-950);
  --surface-muted:  var(--tcs-grey-900);
  --surface-sunken: var(--wp--preset--color--contrast);

  --text:           var(--wp--preset--color--accent-5);
  --text-strong:    var(--wp--preset--color--base);
  --text-muted:     var(--tcs-grey-300);
  --text-subtle:    var(--tcs-grey-400);
  --text-faint:     var(--tcs-grey-500);
  --text-inverse:   var(--wp--preset--color--contrast);

  --accent:         var(--wp--preset--color--accent-1);
  --accent-strong:  var(--wp--preset--color--accent-1);
  --on-accent:      var(--wp--preset--color--contrast);
  --highlight:      color-mix(in srgb, var(--wp--preset--color--accent-1) 22%, transparent);

  /* Yellow ring on black is 13.1:1. Black would be invisible here. */
  --focus-ring:     var(--wp--preset--color--accent-1);
}

.tcs-dark :is(h1, h2, h3, h4, h5, h6) { color: var(--text-strong); }
.tcs-dark .tcs-key { color: var(--tcs-yellow); }

/* The theme's default (unstyled) button fills with the "contrast" colour —
   the same black .tcs-dark uses for its own background, so an unstyled
   button would disappear on a dark section. Signal and Outline buttons
   already carry their own visible colour and are excluded. */
.tcs-dark .wp-element-button:not(.is-style-outline):not(.is-style-signal) {
  background-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--contrast);
}
.tcs-dark .wp-element-button:not(.is-style-outline):not(.is-style-signal):hover {
  background-color: var(--wp--preset--color--accent-3);
  color: var(--wp--preset--color--contrast);
}


/* ------------------------------------------------------------
   2. TYPOGRAPHY SEMANTICS
   Aliases only. Actual sizes and families come from theme.json.
   ------------------------------------------------------------ */

:root {
  --font-display: var(--wp--preset--font-family--poppins);
  --font-sans:    var(--wp--preset--font-family--manrope);
  --font-mono:    var(--wp--preset--font-family--fira-code);

  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-body:     300;
  --fw-heading:  700;

  /* Display size — hero only, applied via .tcs-display */
  --text-mega:   var(--wp--custom--text-display);

  --text-h1:     var(--wp--preset--font-size--xx-large);
  --text-h2:     var(--wp--preset--font-size--x-large);
  --text-h3:     var(--wp--preset--font-size--large);
  --text-h4:     var(--wp--preset--font-size--medium);
  --text-h5:     var(--wp--preset--font-size--small);

  --text-lead:   var(--wp--preset--font-size--x-large);
  --text-body:   var(--wp--preset--font-size--large);
  --text-sm:     var(--wp--preset--font-size--medium);
  --text-xs:     var(--wp--preset--font-size--small);
  --text-eyebrow: var(--wp--preset--font-size--small);

  --lh-display:  1.05;
  --lh-heading:  1.125;
  --lh-snug:     1.2;
  --lh-body:     1.4;

  /* Relative units so tracking scales with size */
  --ls-display:  -0.03em;
  --ls-heading:  -0.02em;
  --ls-body:     -0.1px;
  --ls-eyebrow:  1.4px;
  --ls-label:    0.5px;

  --measure:     var(--wp--style--global--content-size);
}


/* ------------------------------------------------------------
   3. SPACING SEMANTICS
   ------------------------------------------------------------ */

:root {
  --space-2:   var(--wp--preset--spacing--20);
  --space-4:   var(--wp--preset--spacing--30);
  --space-6:   var(--wp--preset--spacing--40);
  --space-7:   var(--wp--preset--spacing--50);
  --space-8:   var(--wp--preset--spacing--60);
  --space-9:   var(--wp--preset--spacing--70);
  --space-10:  var(--wp--preset--spacing--80);

  --flow:      var(--wp--style--block-gap);

  --section-y:       var(--wp--preset--spacing--80);
  --section-y-tight: var(--wp--preset--spacing--70);

  --container:      var(--wp--style--global--wide-size);
  --container-read: var(--wp--style--global--content-size);
  --gutter:         var(--wp--preset--spacing--50);
}


/* ------------------------------------------------------------
   4. EFFECTS
   ------------------------------------------------------------ */

:root {
  --radius-none: 0;
  --radius-card: 0.25rem;
  --radius-pill: 100px;

  --border-hair: 1px;
  --border-bold: 2px;

  --shadow-none: none;
  --shadow-sm:   0 1px 2px color-mix(in srgb, var(--wp--preset--color--contrast) 5%, transparent);
  --shadow-md:   0 8px 24px -12px color-mix(in srgb, var(--wp--preset--color--contrast) 18%, transparent);

  --ease-flow:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast:   140ms;
  --dur-base:   260ms;

  --focus-width:  2px;
  --focus-offset: 2px;
}


/* ------------------------------------------------------------
   5. BASE
   Only what theme.json cannot set. Body and heading typography
   are deliberately absent — theme.json already owns those.
   ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Post titles opt out of balance and take pretty instead.

   balance makes every line roughly equal length rather than filling
   each line before wrapping, which is right for a short hero heading
   and wrong for a twelve-word post title: the break lands mid-phrase
   because the browser is solving for even line widths, not for sense.

   It is also inconsistent past four lines, which is where Chrome stops
   balancing and silently falls back, so long and short titles on the
   same archive page wrap by different rules.

   pretty keeps normal line filling and only protects the last line
   against orphans. Applies to the archive and the single-post template,
   both of which use .wp-block-post-title. Every other heading keeps
   balance. */
.wp-block-post-title { text-wrap: pretty; }

/* Links keep their dark text on hover. The underline is what changes:
   it turns yellow and thickens to 3px, the same bar weight as
   .tcs-tick. Colour stays put because #FCCD22 as type on white is
   ~1.5:1 and unreadable — see "The yellow rule" in CSS-CLASSES.md.

   Thickening matters. A 1px yellow underline on white reads as the
   underline disappearing rather than changing, so the hover state
   would feel like a bug. At 3px it reads as a deliberate marker. */
a {
  text-underline-offset: 0.18em;
  transition:
    color var(--dur-fast) var(--ease-flow),
    text-decoration-color var(--dur-fast) var(--ease-flow),
    text-decoration-thickness var(--dur-fast) var(--ease-flow);
}

a:hover {
  text-decoration-color: var(--tcs-yellow);
  text-decoration-thickness: 3px;
}

/* On black the bright yellow is safe at 13:1, so the underline can
   carry more weight there without the thickening crutch. */
.tcs-dark a:hover { text-decoration-color: var(--tcs-yellow); }

img, svg, video { display: block; max-width: 100%; }

::selection { background: var(--tcs-yellow); color: var(--tcs-black); }

:focus-visible {
  outline: var(--focus-width) solid var(--focus-ring);
  outline-offset: var(--focus-offset);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ------------------------------------------------------------
   6. HELPER CLASSES
   Add these under a block's Advanced > Additional CSS class(es).
   ------------------------------------------------------------ */

/* Hero headline only. Nothing else on the site uses this size. */
.tcs-display {
  font-size: var(--text-mega);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}

/* The centred thesis line. One per page.
   Needs a container of 1000px or more, or the 34ch cap never binds. */
.tcs-statement {
  max-width: min(34ch, 100%);
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--text-strong);
  text-align: center;
  text-wrap: pretty;
}

/* Ranged-left variant: type "tcs-statement is-left" */
.tcs-statement.is-left {
  margin-inline: 0;
  text-align: left;
}

/* Yellow tick above a heading.
   Applied to the heading itself, so no extra block is needed. */
.tcs-tick::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  margin-bottom: var(--space-4);
  background: var(--tcs-yellow);
}

/* Numbered marker for the service cards: 01 — 02 — 03 —
   The em dash is added by CSS, so type only the digits. */
.tcs-numeral {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--fw-heading);
  letter-spacing: var(--ls-label);
  font-variant-numeric: tabular-nums;
  color: var(--tcs-yellow-ink);
}
.tcs-numeral::after {
  content: " \2014";
  color: var(--text-faint);
  font-weight: var(--fw-regular);
}
.tcs-dark .tcs-numeral { color: var(--tcs-yellow); }

/* Tracked kicker / eyebrow above a heading */
.tcs-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Yellow signal dot */
.tcs-dot {
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  border-radius: var(--radius-pill);
  background: var(--tcs-yellow);
  vertical-align: middle;
}

/* Yellow highlight behind a key word */
.tcs-mark {
  background: var(--tcs-yellow);
  color: var(--on-accent);
  padding: 0 0.12em;
}

/* Yellow keyword as type — uses the legible ink value, not raw yellow */
.tcs-key { color: var(--tcs-yellow-ink); }

/* Card: flat, hairline, no shadow */
.tcs-card {
  background: var(--surface);
  border: var(--border-hair) solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-7);
  transition: border-color var(--dur-base) var(--ease-flow);
}
.tcs-card:hover { border-color: var(--line-strong); }

/* Hairline list — the homepage symptoms block */
.tcs-rule-list > * {
  border-top: var(--border-hair) solid var(--line);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  margin: 0;
}

/* Reading column */
.tcs-prose { max-width: var(--measure); }
.tcs-prose > * + * { margin-top: var(--flow); }


/* ============================================================
   6a. TL;DR BOX  — "The short version"
   Add "tcs-tldr" to the Group block that wraps the summary.

   The block is authored as one wp:columns row per question, with
   a 28% label column. This stacks those columns into a single
   readable flow: question above, answer below.

   flex-basis carries !important because the editor writes the
   28% as an inline style, which no class selector can outrank.
   ============================================================ */

.tcs-tldr {
  --tldr-gap: var(--space-6);
}

/* Stack each question/answer pair */
.tcs-tldr .wp-block-columns {
  display: block;
  margin-block: 0;
}
.tcs-tldr .wp-block-column {
  flex-basis: auto !important;
  margin-block: 0;
}

/* Hairline between pairs, so the stack still reads as a list */
.tcs-tldr .wp-block-columns + .wp-block-columns {
  margin-top: var(--tldr-gap);
  padding-top: var(--tldr-gap);
  border-top: var(--border-hair) solid var(--line);
}

/* The question. Sentence case reads better than the eyebrow's
   uppercase once these are full questions rather than short labels,
   so the transform is deliberately cancelled here. */
.tcs-tldr .tcs-key,
.tcs-tldr .tcs-eyebrow.tcs-key {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-heading);
  text-transform: none;
  color: var(--text-strong);
  margin-bottom: var(--space-2);
}

/* The answer. Up one step from the authored "small". */
.tcs-tldr .wp-block-column p:not(.tcs-key):not(.tcs-eyebrow) {
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: var(--text-muted);
  margin-block: 0;
}

/* The box's own "The short version" header keeps the eyebrow look */
.tcs-tldr > .tcs-eyebrow {
  margin-bottom: var(--space-4);
}


/* ============================================================
   6b. ARTICLE TABLE
   Tracked uppercase headers, hairline row rules, muted body text.
   Add "tcs-table" to a Table block. The class lands on the
   <figure>, so the inner <table> is targeted explicitly.
   ============================================================ */

/* Horizontal scroll belongs to the table, not the page. Without
   this a wide table drags the whole document sideways on mobile. */
.tcs-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tcs-table table {
  width: 100%;
  min-width: 34rem;          /* below this, scroll rather than crush */
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: 1.55;
}

/* WordPress core puts a 1px border on every cell. The design uses
   horizontal rules only, so the core grid is cleared first. */
.tcs-table th,
.tcs-table td {
  border: 0;
}

.tcs-table th {
  padding: 0 var(--space-4) var(--space-2) var(--space-4);
  border-bottom: var(--border-bold) solid var(--text-strong);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--text-strong);
  text-align: left;
  vertical-align: bottom;
}

.tcs-table td {
  padding: var(--space-4);
  border-bottom: var(--border-hair) solid var(--line);
  vertical-align: top;
  color: var(--text-muted);
}

/* Flush the outer edges so the table still aligns to the text column */
.tcs-table th:first-child,
.tcs-table td:first-child { padding-left: 0; }
.tcs-table th:last-child,
.tcs-table td:last-child  { padding-right: 0; }

/* Modifier: bolds and inks the first column, for tables where it names
   a category. Combine as "tcs-table tcs-table-key-col". */
.tcs-table-key-col td:first-child {
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}


/* ============================================================
   6c. PULL QUOTE
   Size is deliberately NOT set here. It belongs in theme.json,
   under styles.blocks.core/quote.typography.fontSize (now "large").

   Why: WordPress emits its font-size presets as utility classes
   carrying !important —

       .has-large-font-size { font-size: … !important; }

   — so nothing in this file can outrank a size chosen in the
   editor, whatever its specificity. Setting the size here would
   either do nothing, or (if forced with !important) permanently
   break the editor's Typography > Size control for quotes.

   Leaving it to theme.json gives the behaviour you want:
     - no size chosen  ->  theme.json default (large) applies
     - size chosen     ->  the editor wins, as it should

   NOTE: existing posts hard-code "fontSize":"x-large" on the
   quote's paragraph. Clear that in Typography > Size (set it back
   to Default) for the theme.json default to take effect.

   Only line-height is set below, since no preset class competes
   for that property.
   ============================================================ */

.wp-block-quote p {
  line-height: var(--lh-heading);
}


/* ============================================================
   6d. FAQ
   Add "tcs-faq" to a Group block wrapping the question paragraphs.
   Each paragraph is authored as <strong>Question</strong><br>Answer,
   so the strong is promoted to a display-font question line.
   ============================================================ */

.tcs-faq {
  display: grid;
  gap: 0;
  margin-block: var(--space-6);
}

.tcs-faq > p {
  margin: 0;
  padding: var(--space-6) 0;
  border-top: var(--border-hair) solid var(--line);
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: var(--text-muted);
}

.tcs-faq > p:last-child {
  border-bottom: var(--border-hair) solid var(--line);
}

/* The question line */
.tcs-faq > p > strong {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-heading);
  color: var(--text-strong);
}

/* Yellow tick above each question, same marker as .tcs-tick.
   The strong is already display:block, so the bar stacks above
   the question text without any extra markup. */
.tcs-faq > p > strong::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  margin-bottom: var(--space-4);
  background: var(--tcs-yellow);
}

/* With a tick marking every question, the top hairline doubles up.
   The first row keeps its rule to close the gap under the H2; the
   rest rely on the tick and the row padding for separation. */
.tcs-faq > p + p { border-top: 0; }

/* The <br> after the question is redundant once the strong is a
   block, and would otherwise add a stray empty line. */
.tcs-faq > p > strong + br { display: none; }


/* ============================================================
   6e. SITE NAVIGATION
   Menu links carry no underline at rest, then take the same yellow
   marker on hover as body and sidebar links. Both selectors are
   needed: core/navigation renders the anchor inside a
   .wp-block-navigation-item__content wrapper in most layouts, but
   falls back to a bare <a> in some.
   ============================================================ */

.wp-block-navigation a,
.wp-block-navigation .wp-block-navigation-item__content {
  text-decoration: none;
  transition:
    color var(--dur-fast) var(--ease-flow),
    text-decoration-color var(--dur-fast) var(--ease-flow);
}

.wp-block-navigation a:hover,
.wp-block-navigation .wp-block-navigation-item__content:hover {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: var(--tcs-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.28em;
}

/* Inside a dark header the text flips to the light value */
.tcs-dark .wp-block-navigation a:hover,
.tcs-dark .wp-block-navigation .wp-block-navigation-item__content:hover {
  color: var(--text-strong);
}


/* ------------------------------------------------------------
   7. ARTICLE SIDEBAR
   Wrapping markup and heading ids are generated by
   tcs_add_post_toc() in functions.php — nothing to add per-post.
   ------------------------------------------------------------ */

.tcs-post-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--container-read)) minmax(190px, 230px);
  gap: var(--space-9);
  align-items: start;
  justify-content: center;
}
.tcs-post-body { min-width: 0; }

.tcs-post-toc {
  position: sticky;
  top: 108px;
  display: grid;
  gap: var(--space-4);
  padding-left: var(--space-4);
  border-left: var(--border-hair) solid var(--line);
  min-width: 0;
}
.tcs-toc-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--text-subtle);
}
.tcs-toc-nav {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-xs);
  line-height: 1.4;
}
.tcs-toc-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-flow);
}

/* Sidebar links sit unstyled until hover, then pick up the same
   yellow underline as body links. The colour also darkens here,
   because these start muted rather than at full contrast. */
.tcs-toc-nav a:hover {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: var(--tcs-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
}

@media (max-width: 1100px) {
  .tcs-post-grid { grid-template-columns: minmax(0, var(--container-read)); }
  .tcs-post-toc { display: none; }
}