/* infoMogli v2 — practical web-technology publication.
   Extends styles.css: teal accent + the homepage sections. */

:root{
  /* ── Cool technical palette ───────────────────────────
     Overrides the warm tokens in styles.css. Contrast ratios
     measured against --bg (#F7F8FA). */

  --bg:        #F7F8FA;   /* page */
  --surface:   #FFFFFF;   /* cards */
  --surface-2: #EEF2F7;   /* diagram fields, inset blocks */

  --ink:   #171A1F;       /* primary text — 15.9:1 */
  --ink-2: #4A5158;       /* body secondary — 7.6:1 */
  --ink-3: #626A73;       /* meta & small labels — 5.2:1 */
  --ink-4: #9AA1A9;       /* decorative rules and dots only */

  --hair:   #DDE1E6;      /* borders, dividers */
  --hair-2: #C7CDD4;      /* stronger borders, inputs */

  --accent:      #2563EB; /* links, connectors, active states */
  --accent-ink:  #1D4ED8; /* hover, heading emphasis */
  --accent-soft: #EFF6FF; /* soft label + icon fields */

  --teal:    #0F766E;     /* secondary technical / data */
  --success: #15803D;

  /* Legacy warm aliases, remapped cool so inherited rules
     in styles.css and the page stylesheets stay correct. */
  --warm:      #C7CDD4;
  --warm-soft: #EEF2F7;
}

/* ── Inherited-rule corrections ─────────────────────── */
/* [hidden] must win over author-level display rules (e.g. .cta-success). */
[hidden]{ display: none !important; }

/* .sec-num inherits --ink-4 (3.17:1) from styles.css — below WCAG AA at 10.5px.
   --ink-3 measures 6.72:1 and matches the sibling .kicker. The ::before rule
   stays --ink-4: decorative, so exempt. */
.sec-num{ color: var(--ink-3); }

/* ── Accessibility ──────────────────────────────────── */
.skip-link{
  position: absolute; left: 12px; top: -48px;
  z-index: 300;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: var(--r);
  font-family: var(--sans); font-size: 14px;
  transition: top .18s ease;
}
.skip-link:focus{ top: 12px; text-decoration: none; color: var(--bg); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Nav ────────────────────────────────────────────── */
.nav-links a.on{ color: var(--accent-ink); font-weight: 500; }
.nav-links a:not(.nav-cta)::after{ background: var(--accent); }

/* Subscribe CTA (desktop).
   The base style in styles.css is a pale outline that reads as a tertiary
   control and gets lost beside the search field. The design system already
   answers this: .btn-primary is solid ink, and the MOBILE version of this
   same button (further down this file) is already solid ink. This brings
   desktop in line with both, rather than introducing a new treatment.
   Height matches the adjacent .search field so the header row aligns.

   Selector is `.nav-links a.nav-cta`, not `.nav-cta`: styles.css sets
   `.nav-links a { color: var(--ink-2) }`, which at 0,1,1 outranks a bare
   `.nav-cta` at 0,1,0 and would keep the label grey. */
.nav-links a.nav-cta{
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background .2s ease;
}
.nav-links a.nav-cta:hover{
  background: color-mix(in oklab, var(--ink) 86%, white);
  border-color: color-mix(in oklab, var(--ink) 86%, white);
  color: var(--bg);
  text-decoration: none;
}

/* Mobile nav toggle — hidden on desktop */
.nav-toggle{
  display: none;
  align-items: center; gap: 8px;
  height: 44px; padding: 0 14px;
  border: 1px solid var(--hair-2);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans); font-size: 14px;
  cursor: pointer;
}
.nav-toggle .bars{ display: grid; gap: 3px; }
.nav-toggle .bars i{ display: block; width: 14px; height: 1.5px; background: currentColor; }

/* ── Hero ───────────────────────────────────────────── */
.hero h1{ max-width: 15ch; }
.hero .lede{ max-width: 46ch; }

.stack-line{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chip-mono{
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  padding: 3px 9px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  color: var(--ink-2); background: var(--bg);
}
.chip-mono.acc{
  color: var(--accent-ink);
  border-color: color-mix(in oklab, var(--accent) 28%, var(--hair));
  background: var(--accent-soft);
}

/* ── Topic navigation strip ─────────────────────────── */
.topic-nav{
  margin-top: 64px;
  padding: 16px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px; align-items: center;
}
.topic-nav .lbl{
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
}
.topic-nav ul{
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 0;
}
.topic-nav li{ display: flex; align-items: center; }
.topic-nav li + li::before{
  content: "·";
  color: var(--ink-4);
  margin: 0 12px;
}
.topic-nav a,
.topic-nav span{
  font-family: var(--sans); font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.topic-nav a:hover{
  color: var(--accent-ink);
  border-bottom-color: color-mix(in oklab, var(--accent) 45%, transparent);
  text-decoration: none;
}

/* ── Learn by area ──────────────────────────────────── */
.topics-grid{
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.topic{
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 28px 28px 30px;
  display: flex; flex-direction: column;
  min-height: 236px;
  text-decoration: none; color: var(--ink);
  position: relative;
  transition: background .22s ease, box-shadow .22s ease;
}
.topic::before{
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent);
  transform: scaleY(0); transform-origin: 0 0;
  transition: transform .28s ease;
}
.topic:hover{
  background: color-mix(in oklab, var(--surface) 88%, var(--accent-soft));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 12%, transparent);
  text-decoration: none; color: var(--ink);
}
.topic:hover::before{ transform: scaleY(1); }
.topic:hover h3{ color: var(--accent-ink); }
.topic:hover .topic-arrow{ transform: translate(3px,-3px); color: var(--accent); }
.topic-head{ display: flex; justify-content: space-between; align-items: flex-start; }
.topic .num{
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.topic-arrow{ color: var(--ink-4); transition: transform .25s ease, color .25s ease; }
.topic h3{
  margin: 16px 0 0 0;
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  letter-spacing: -0.014em; line-height: 1.24;
  transition: color .2s ease;
}
.topic p{
  margin-top: 9px;
  font-family: var(--serif); font-size: 15.5px; line-height: 1.58;
  color: var(--ink-2);
}
.topic .subtopics{
  margin-top: auto; padding-top: 16px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .06em; color: var(--ink-3);
  line-height: 1.7;
}
.topic .subtopics b{ color: var(--ink-2); font-weight: 400; }

/* ── Homepage polish pass ───────────────────────────────
   Metadata contrast, hover/focus clarity, tightened rhythm. */
.kicker-row{ color: var(--ink-3) !important; }
.kicker-row .neutral{ color: var(--ink-3); font-weight: 500; }
.article .foot span:first-child,
.res .foot span:first-child,
.note-row .when,
.tool-action .meta-mono{ color: var(--ink-3); font-weight: 500; }

/* Card hover: quieter than a float — border + very slight bg shift only. */
.article:hover{ transform: none; box-shadow: none; border-color: var(--hair-2); background: var(--surface); }
.res:hover{ transform: none; box-shadow: none; border-color: var(--hair-2); }
.topic:hover, .tool-item:hover{ box-shadow: none; }

/* Links: visible, not just a colour swap. */
.article a:hover, .res .go, .note-row:hover .nt{ text-decoration-thickness: 1px; }
.foot a, .foot .go{ transition: color .16s ease; }

/* Single-item tools/resources already get a wide feature layout;
   make sure the grid gap doesn't leave a visible seam at that width. */
.tools-flex[data-count="1"], .res-flex[data-count="1"]{ gap: 0; }

/* ── Article cards ──────────────────────────────────── */
/* Covers hold real technical diagrams now, not uppercase text labels — the
   inherited uppercase would corrupt file paths and shell commands. */
.article .cover{
  background: var(--surface-2);
  background-image: none;
  text-transform: none;
  letter-spacing: normal;
}
.article .cover svg text{
  text-transform: none;
  letter-spacing: normal;
}
.article .cover svg{ width: 82%; max-width: 300px; }
.article.feature .cover{ aspect-ratio: 16 / 8; }
.article.feature .cover svg{ width: 78%; max-width: 660px; }
.article .kicker-row{
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 12px;
}
.article .kicker-row .sep{ color: var(--ink-4); }
.article .kicker-row .neutral{ color: var(--ink-3); }

/* ── Tools ──────────────────────────────────────────── */
/* The grid adapts to how many tools actually exist. */
.tools-flex{
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.tools-flex[data-count="1"]{ grid-template-columns: 1fr; }
.tools-flex[data-count="2"]{ grid-template-columns: repeat(2, 1fr); }
.tools-flex[data-count="3"]{ grid-template-columns: repeat(3, 1fr); }

.tool-item{
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 30px 32px 32px;
  background: var(--surface);
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  position: relative;
  transition: background .22s ease, box-shadow .22s ease;
}
.tool-item::before{
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent);
  transform: scaleY(0); transform-origin: 0 0;
  transition: transform .28s ease;
}
.tool-item:hover{
  background: color-mix(in oklab, var(--surface) 82%, var(--accent-soft));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 14%, transparent);
  text-decoration: none; color: var(--ink);
}
.tool-item:hover::before{ transform: scaleY(1); }
.tool-item:hover h3{ color: var(--accent-ink); }

/* A single tool gets a two-column feature layout instead of a lonely cell. */
.tools-flex[data-count="1"] .tool-item{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 0;
}
.tools-flex[data-count="1"] .tool-item h3{ font-size: 26px; }
.tools-flex[data-count="1"] .tool-item p{ font-size: 16.5px; max-width: 42ch; }

.tool-icon{
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid color-mix(in oklab, var(--accent) 22%, var(--hair));
  background: var(--accent-soft);
  border-radius: var(--r);
  color: var(--accent-ink);
  flex: 0 0 auto;
}
.tool-top{
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.tool-item h3{
  margin: 18px 0 0 0;
  font-family: var(--serif); font-size: 21px; font-weight: 500;
  letter-spacing: -0.014em; line-height: 1.26;
  transition: color .2s ease;
}
.tool-item p{
  margin-top: 10px;
  font-family: var(--serif); font-size: 16px; line-height: 1.58;
  color: var(--ink-2);
}
.tool-action{
  margin-top: 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 14px;
  color: var(--accent);
}
.tool-action .meta-mono{
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.tag-free{
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  color: var(--accent-ink);
  border: 1px solid color-mix(in oklab, var(--accent) 28%, var(--hair));
  background: var(--accent-soft);
}

/* Right-hand checklist preview inside the single-tool feature */
.tool-preview{
  border: 1px solid var(--hair);
  border-radius: var(--r);
  background: var(--surface);
  padding: 18px 20px;
}
.tool-preview .ph{
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}
.tool-preview ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tool-preview li{
  display: grid; grid-template-columns: 16px 1fr auto;
  gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--ink-2);
}
.tool-preview .mk{
  width: 12px; height: 12px; border-radius: 3px;
  border: 1px solid var(--hair-2);
  display: grid; place-items: center;
}
.tool-preview li.pass .mk{ background: var(--accent-soft); border-color: var(--accent); }
.tool-preview li.pass .mk::after{
  content: ""; width: 5px; height: 3px;
  border-left: 1.4px solid var(--accent); border-bottom: 1.4px solid var(--accent);
  transform: rotate(-45deg) translate(0, -1px);
}
.tool-preview .st{
  font-size: 10px; letter-spacing: .1em; color: var(--ink-3);
}
.tool-preview li.pass .st{ color: var(--accent-ink); }

/* ── Resources ──────────────────────────────────────── */
.res-flex{ display: grid; gap: var(--grid-gap); }
.res-flex[data-count="1"]{ grid-template-columns: minmax(0, 620px); }
.res-flex[data-count="2"]{ grid-template-columns: repeat(2, 1fr); }
.res-flex[data-count="3"]{ grid-template-columns: repeat(3, 1fr); }

.res{
  display: flex; flex-direction: column;
  border: 1px solid var(--hair);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px 30px 30px;
  text-decoration: none; color: var(--ink);
  transition: border-color .26s ease, transform .26s ease, box-shadow .26s ease;
}
.res:hover{
  border-color: var(--hair-2);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -26px rgba(20,30,50,.26);
  text-decoration: none; color: var(--ink);
}
.res:hover h3{ color: var(--accent-ink); }
.res-head{ display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.res .kind{
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.price{
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--hair-2);
  color: var(--ink-2); background: var(--bg);
  white-space: nowrap;
}
.price.free{
  color: var(--accent-ink);
  border-color: color-mix(in oklab, var(--accent) 28%, var(--hair));
  background: var(--accent-soft);
}
.res h3{
  margin: 16px 0 0 0;
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  letter-spacing: -0.014em; line-height: 1.26;
  transition: color .2s ease;
}
.res p{
  margin-top: 10px;
  font-family: var(--serif); font-size: 16px; line-height: 1.58;
  color: var(--ink-2);
}
.res .foot{
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.res .foot .go{
  font-family: var(--sans); font-size: 13.5px;
  letter-spacing: 0; text-transform: none;
  color: var(--accent);
}

/* ── Notes & updates ────────────────────────────────── */
.notes{ border-top: 1px solid var(--hair); }
.note-row{
  display: grid; grid-template-columns: 118px 1fr auto;
  gap: 24px; align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--hair) 72%, var(--bg));
  text-decoration: none; color: var(--ink);
  transition: padding .24s ease, background .22s ease;
}
.note-row:hover{
  background: color-mix(in oklab, var(--surface) 50%, transparent);
  padding-left: 8px; padding-right: 8px;
  text-decoration: none; color: var(--ink);
}
.note-row:hover .nt{ color: var(--accent-ink); }
.note-row:hover .n-arrow{ transform: translateX(4px); color: var(--accent); }
.note-row .when{
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}
.note-row .nt{
  font-family: var(--serif); font-size: 18.5px; font-weight: 500;
  letter-spacing: -0.012em; line-height: 1.3;
  transition: color .2s ease;
}
.note-row .n-right{
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink);
  white-space: nowrap;
}
.n-arrow{ color: var(--ink-4); transition: transform .22s ease, color .22s ease; }

/* ── About ──────────────────────────────────────────── */
.cred{
  display: grid; grid-template-columns: 1fr 1.35fr;
  gap: 64px; align-items: start;
  padding-top: 26px;
  border-top: 1px solid var(--hair);
}
.cred-headline{
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 20ch;
  margin: 0;
  text-wrap: balance;
}
.cred-intro .kicker{ display: block; margin-bottom: 10px; }
.cred-body p{
  font-family: var(--serif); font-size: 18px; line-height: 1.66;
  color: var(--ink-2); max-width: 54ch; margin: 0;
}
.cred-body p + p{ margin-top: 14px; }
.cred-body .em{ font-style: italic; color: var(--ink); }
.cred-stack{ margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--hair-2); }
.cred-stack .lbl{
  display: block; margin-bottom: 12px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.cred-stack .row{ display: flex; flex-wrap: wrap; gap: 6px; }
.cred-foot{
  margin-top: 26px;
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
}
.cred-sig{
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3);
}
.cred-sig .hand{
  font-family: var(--serif); font-style: italic;
  font-size: 24px; color: var(--ink);
  letter-spacing: -0.01em; text-transform: none;
}
.cred-more{
  font-family: var(--sans); font-size: 14px;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 7px;
}

/* ── Newsletter ─────────────────────────────────────── */
.cta::after{ content: ""; display: none; }
.cta-input:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 16%, transparent);
}

/* ── Footer ─────────────────────────────────────────── */
.foot-statement{
  font-family: var(--serif); font-style: italic;
  font-size: 17px; line-height: 1.5;
  color: var(--ink-2);
  max-width: 34ch; margin-top: 14px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px){
  .topics-grid{ grid-template-columns: repeat(2, 1fr); }
  .tools-flex[data-count="3"]{ grid-template-columns: repeat(2, 1fr); }
  .res-flex[data-count="3"]{ grid-template-columns: repeat(2, 1fr); }
  .tools-flex[data-count="1"] .tool-item{ grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 960px){
  .cred{ grid-template-columns: 1fr; gap: 28px; }
  .cred-headline{ font-size: 28px; max-width: 32ch; }
  .note-row{ grid-template-columns: 100px 1fr; gap: 18px; }
  .note-row .n-right{ grid-column: 2 / -1; padding-top: 8px; }
  .topic-nav{ margin-top: 48px; grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 720px){
  /* Mobile nav: collapse the link row behind a toggle */
  .nav-toggle{ display: inline-flex; }
  .nav-links{
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hair);
    padding: 8px 20px 18px;
    box-shadow: 0 18px 32px -28px rgba(20,30,50,.3);
  }
  .nav[data-open="true"] .nav-links{ display: flex; }
  .nav-inner{ position: relative; }
  .nav-links a{
    padding: 13px 0;
    border-bottom: 1px solid var(--hair);
    font-size: 16px;
    min-height: 46px;
    display: flex; align-items: center;
  }
  .nav-links a.hide-md{ display: flex; }
  .nav-links a:not(.nav-cta)::after{ display: none; }
  .nav-links .search{
    display: flex; margin-top: 14px; min-width: 0; height: 44px;
  }
  /* Matches the desktop rule's specificity (.nav-links a.nav-cta) so source
     order decides inside this media query — a media query adds no
     specificity of its own, so a weaker selector here would lose. */
  .nav-links a.nav-cta{
    margin-top: 12px;
    justify-content: center;
    height: auto;
    min-height: 46px;
    border: 1px solid var(--ink);
    background: var(--ink); color: var(--bg);
  }
  .nav-links .kbd{ display: none; }

  .topic-nav{ padding: 14px 0; }
  .topic-nav a,
  .topic-nav span{ font-size: 15px; padding: 5px 0; }
  .topic-nav li + li::before{ margin: 0 10px; }

  .topics-grid{ grid-template-columns: 1fr; border-left: none; }
  .topic{ border-right: none; min-height: 0; padding: 24px 0; }

  .article.feature .cover{ aspect-ratio: 16 / 9; }
  .article.feature .cover svg{ width: 86%; }

  .tools-flex{ grid-template-columns: 1fr !important; border-left: none; }
  .tool-item{ border-right: none; padding: 24px 0 26px; }
  .tools-flex[data-count="1"] .tool-item{ grid-template-columns: 1fr; gap: 22px; }
  .tools-flex[data-count="1"] .tool-item h3{ font-size: 22px; }
  .tools-flex[data-count="1"] .tool-item p{ font-size: 16px; }

  .res-flex{ grid-template-columns: 1fr !important; gap: 18px; }
  .res{ padding: 22px; }

  .note-row{ grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .note-row:hover{ padding-left: 0; padding-right: 0; }
  .note-row .when{ order: -1; }

  .cred-body p{ font-size: 17px; max-width: none; }
  .cred-foot{ gap: 16px; }
  .stack-line{ gap: 5px; }
}


/* ── Palette follow-through ─────────────────────────── */

/* Newsletter + panel surfaces: flat, no tinted gradient wash. */
.cta{
  background: var(--surface) !important;
  background-image: none !important;
}

/* Article + related covers: flat pale cool field instead of the warm ramp. */
.article .cover,
.related-card .cov,
.rn-card .cov,
.starter .cov,
.feature-card .cov,
.list-thumb{
  background: var(--surface-2) !important;
  background-image: none !important;
}

/* Teal stays available as the secondary technical colour, used sparingly. */
.chip-mono.teal{
  color: var(--teal);
  border-color: color-mix(in srgb, var(--teal) 30%, var(--hair));
  background: color-mix(in srgb, var(--teal) 7%, var(--surface));
}

/* Status / result colours for tool UI. */
.status.ok,
.tool-preview li.pass .st{ color: var(--success); }
.tool-preview li.pass .mk{
  background: color-mix(in srgb, var(--success) 10%, var(--surface));
  border-color: var(--success);
}
.tool-preview li.pass .mk::after{
  border-left-color: var(--success);
  border-bottom-color: var(--success);
}

/* Primary buttons stay near-black — blue is for links and details. */
.btn-primary{ background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-primary:hover{
  background: #23272E;
  border-color: #23272E;
  color: #fff;
}
