/* Layout concept: the covers' split, a dark field of huge condensed type over a color band, carried down the page.
   Each book keeps its own cover pair (navy+orange story, slate+teal build, yellow+charcoal pass on). */
:root {
  --font-display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --bg: #f4f6fa;
  --surface: #ffffff;
  --fg: #0b1326;
  --muted: #485268;
  --rule: #d8dde8;
  --hero: #071530;
  --on-dark: #ffffff;
  --on-dark-muted: #b9c3da;

  --orange: #ff6a0a;
  --orange-ink: #b84300;
  --teal: #1fbf9f;
  --teal-ink: #0a7660;
  --yellow: #ffc92e;
  --charcoal: #1c1c1f;
  --slate: #2c3e54;
  --good: #0f9a7e;
  --warn: #e55a00;
  --focus: #0b5fff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08101f; --surface: #101a31; --fg: #eaeef7; --muted: #a8b3cb; --rule: #25324f;
    --hero: #0c2050; --orange-ink: #ff8f45; --teal-ink: #46dcbb; --good: #35d0b0; --warn: #ff8a3d; --focus: #7aa7ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08101f; --surface: #101a31; --fg: #eaeef7; --muted: #a8b3cb; --rule: #25324f;
  --hero: #0c2050; --orange-ink: #ff8f45; --teal-ink: #46dcbb; --good: #35d0b0; --warn: #ff8a3d; --focus: #7aa7ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 1.125rem; line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
img { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: .14em; font-size: .85rem; margin: 0 0 .75rem;
}
h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; line-height: 1; margin: 0; text-wrap: balance; }
h2 { font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: .005em; }
.lede { font-size: 1.25rem; max-width: 62ch; }
p { margin: 0 0 1em; }
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: .95rem; text-decoration: none; padding: .85rem 1.3rem;
  border: 2px solid currentColor; border-radius: 2px; cursor: pointer; background: transparent; color: inherit;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--fill { background: var(--orange); border-color: var(--orange); color: var(--hero); }
.btn--fill:hover { background: #ff8238; border-color: #ff8238; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */
.hero { background: var(--hero); color: var(--on-dark); padding-block: 1.25rem 4rem; }
.topbar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; padding-bottom: 3rem; }
.wordmark { font-family: var(--font-display); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; font-size: 1rem; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; }
.nav a { text-decoration: none; color: var(--on-dark-muted); padding: .25rem 0; }
.nav a:hover { color: var(--on-dark); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; }
.hero h1 { font-weight: 700; font-size: clamp(3.1rem, 8.4vw, 6.6rem); letter-spacing: .005em; line-height: .94; margin-bottom: 1.5rem; }
.hero .sub { font-size: 1.3rem; color: var(--on-dark-muted); max-width: 34ch; margin-bottom: 1.75rem; }
.fan { display: flex; justify-content: center; align-items: center; padding: 1rem .5rem 1.5rem; }
.fan a { display: block; width: 36%; margin-left: -7%; transition: transform .2s; }
.fan a:first-child { margin-left: 0; transform: rotate(-5deg) translateY(16px); }
.fan a:nth-child(2) { transform: scale(1.1); position: relative; z-index: 2; }
.fan a:nth-child(3) { transform: rotate(5deg) translateY(16px); }
.fan a:hover { transform: translateY(-6px) scale(1.04); z-index: 3; }
.fan img { width: 100%; height: auto; border-radius: 2px; box-shadow: 0 14px 30px rgba(0,0,0,.45); }

.band { background: var(--orange); color: var(--hero); padding-block: 2.25rem; }
.band blockquote { margin: 0; max-width: 28ch; font-style: italic; font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.2; text-wrap: balance; }
.band cite { display: block; margin-top: .9rem; font-family: var(--font-display); font-style: normal; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; }

/* ---------- Sections ---------- */
section { padding-block: 4.5rem; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.intro h2 { margin-bottom: 1rem; }
.story { border-left: 4px solid var(--orange); padding-left: 1.5rem; }
.story p:last-child { margin-bottom: 0; }
.story .q { font-style: italic; font-size: 1.3rem; }

.books { display: grid; gap: 2rem; margin-top: 3rem; }
.book {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; background: var(--surface);
  border: 1px solid var(--rule); border-top: 8px solid var(--accent); padding: 1.75rem;
}
.book--story { --accent: var(--orange); --accent-ink: var(--orange-ink); }
.book--build { --accent: var(--teal); --accent-ink: var(--teal-ink); }
.book--pass { --accent: var(--yellow); --accent-ink: var(--fg); }
.book .stage { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; font-weight: 600; color: var(--accent-ink); margin: 0 0 .5rem; }
.book h3 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; margin-bottom: .5rem; }
.book .tag { font-style: italic; color: var(--muted); margin-bottom: 1rem; }
.book .cover img { width: 100%; height: auto; box-shadow: 0 8px 22px rgba(7,21,48,.25); }
.book ul { margin: 0 0 1.25rem; padding-left: 1.2rem; color: var(--muted); font-size: 1rem; }
.book li { margin-bottom: .25rem; }
.book .note { font-size: .95rem; color: var(--muted); margin: -.5rem 0 1.25rem; }
.book .btn { color: var(--fg); }
.book .btn:hover { background: var(--fg); color: var(--surface); }

/* Scorecard */
.tool { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tool-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
.tool-head .eyebrow { color: var(--teal-ink); }
.score { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: start; }
.row { padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.row:first-child { padding-top: 0; }
.row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.row label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: 1.05rem; }
.row output { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.row p { margin: .15rem 0 .6rem; font-size: 1rem; color: var(--muted); }
input[type=range] { width: 100%; accent-color: var(--teal-ink); height: 1.75rem; margin: 0; }
.result { background: var(--hero); color: var(--on-dark); padding: 1.75rem; position: sticky; top: 1rem; }
.result .big { font-family: var(--font-display); font-weight: 700; font-size: 4.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.result .big small { font-size: 1.5rem; color: var(--on-dark-muted); font-weight: 500; }
.result .label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--on-dark-muted); margin-bottom: .25rem; }
.bars { margin: 1.25rem 0; display: grid; gap: .6rem; }
.bar { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 1.6rem; align-items: center; gap: .6rem; font-size: .9rem; }
.bar span:first-child { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--on-dark-muted); }
.bar .track { position: relative; height: .65rem; background: rgba(255,255,255,.16); }
.bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--good); }
.bar.low .fill { background: var(--warn); }
.bar .mark { position: absolute; top: -3px; bottom: -3px; left: 70%; width: 2px; background: #fff; opacity: .85; }
.bar b { font-family: var(--font-display); font-variant-numeric: tabular-nums; text-align: right; }
.legend { font-size: .85rem; color: var(--on-dark-muted); margin: 0 0 1.25rem; }
.actions h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; margin: 0 0 .5rem; }
.actions ul { margin: 0; padding-left: 1.1rem; font-size: 1rem; }
.actions li { margin-bottom: .6rem; }
.actions li strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.result .btn { margin-top: 1rem; font-size: .85rem; padding: .65rem 1rem; }
#copy-fallback { display: block; width: 100%; margin-top: .75rem; font: inherit; font-size: .9rem; min-height: 7rem; background: #fff; color: #0b1326; border: 0; padding: .6rem; }
.question { margin-top: 2.5rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--teal); font-style: italic; max-width: 70ch; }

/* Folder checklist */
.folder { background: var(--charcoal); color: #f4f4f4; }
.folder .eyebrow { color: var(--yellow); }
.folder h2 { color: var(--yellow); margin-bottom: 1rem; }
.folder-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
.seg { display: inline-flex; border: 2px solid var(--yellow); margin: 1rem 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: .9rem; padding: .55rem 1.1rem; cursor: pointer; color: var(--yellow); }
.seg input:checked + label { background: var(--yellow); color: var(--charcoal); }
.seg input:focus-visible + label { outline: 3px solid #fff; outline-offset: 2px; }
.progress { height: .6rem; background: rgba(255,255,255,.18); margin: .5rem 0 .4rem; }
.progress i { display: block; height: 100%; background: var(--yellow); width: 0; transition: width .25s; }
.count { font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; color: #d7d7d7; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { border-bottom: 1px solid rgba(255,255,255,.16); }
.checks label { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; cursor: pointer; align-items: start; }
.checks input { width: 1.4rem; height: 1.4rem; margin: .2rem 0 0; accent-color: var(--yellow); }
.checks strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; display: block; font-size: 1.05rem; }
.checks span { font-size: 1rem; color: #d7d7d7; }
.checks input:checked ~ div strong { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .7; }
.fine { font-size: .9rem; color: #c9c9c9; margin-top: 1.25rem; }

/* Conversations */
.convos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 2.5rem; }
.convo { background: var(--surface); padding: 1.25rem 1.25rem 1.4rem; }
.convo .who { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--orange-ink); margin: 0 0 .35rem; }
.convo h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .4rem; line-height: 1.1; }
.convo p { font-size: .98rem; color: var(--muted); margin: 0; }
.more { margin-top: 1.5rem; font-style: italic; color: var(--muted); }

/* Follow (see "Watch and follow" at the end of this file) */

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 4rem; align-items: start; }
.about h2 { margin-bottom: 1.5rem; }
.route { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--orange); }
.route li { padding: 0 0 1.5rem 1.25rem; position: relative; }
.route li::before { content: ""; position: absolute; left: -9px; top: .5rem; width: 15px; height: 15px; background: var(--orange); }
.route li:last-child { padding-bottom: 0; }
.route b { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: 1.15rem; font-weight: 600; }
.route span { font-size: 1rem; color: var(--muted); }

.site-footer { background: var(--hero); color: var(--on-dark-muted); padding-block: 2.5rem 3rem; font-size: .95rem; }
.site-footer .foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem; }
.site-footer .wordmark { color: var(--on-dark); }
.site-footer p { margin: 0 0 .75rem; }
.site-footer a { color: var(--on-dark); }

@media (max-width: 860px) {
  .hero-grid, .intro, .tool-head, .score, .folder-grid, .about, .site-footer .foot { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .fan { max-width: 480px; margin: 0 auto; }
  .hero--compact .fan { max-width: 330px; margin-top: .5rem; }
  .book { grid-template-columns: minmax(0, 1fr); }
  .book .cover { max-width: 200px; }
  .convos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .follow-grid { grid-template-columns: minmax(0, 1fr); }
  .result { position: static; }
  section { padding-block: 3.25rem; }
}
@media (max-width: 520px) {
  body { font-size: 1.05rem; }
  .convos { grid-template-columns: minmax(0, 1fr); }
  .bar { grid-template-columns: 6.6rem minmax(0, 1fr) 1.6rem; }
  .topbar { padding-bottom: 2rem; }
}

/* ---------- WordPress additions ---------- */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; }
.skip-link:focus { clip: auto; clip-path: none; background: #fff; color: #000; display: block; height: auto; left: 8px; top: 8px; width: auto; padding: .75rem 1rem; z-index: 100000; font-family: var(--font-display); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.nav .current-menu-item > a { color: var(--on-dark); }
.hero--slim { padding-bottom: 1.25rem; }
.hero--slim .topbar { padding-bottom: 0; }

/* Inner pages and posts */
.page-main { padding-block: 3.5rem 5rem; }
.entry-wrap { max-width: 760px; }
.page-title { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 700; margin-bottom: 1.5rem; }
.entry { margin-bottom: 3rem; }
.entry-title { font-size: 1.8rem; font-weight: 700; margin-bottom: .25rem; }
.entry-title a { text-decoration: none; }
.entry-title a:hover { text-decoration: underline; }
.entry-meta { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--muted); margin: 0 0 1rem; }
.entry-content h2, .entry-content h3 { margin: 2rem 0 .75rem; text-transform: none; line-height: 1.15; }
.entry-content h2 { font-size: 1.8rem; }
.entry-content h3 { font-size: 1.4rem; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content a { color: var(--orange-ink); }
.entry-content blockquote { border-left: 4px solid var(--orange); margin: 1.5rem 0; padding-left: 1.25rem; font-style: italic; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption, .gallery-caption { font-size: .9rem; color: var(--muted); }
.pagination .nav-links { display: flex; gap: 1rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; }
.pagination a, .pagination .current { padding: .3rem .6rem; }
.admin-bar .skip-link:focus { top: 40px; }


/* ---------- Blog ---------- */
.role { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; color: var(--muted); margin: -.75rem 0 1.25rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.home-blog { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.home-blog .btn { color: var(--fg); }
.home-blog .btn:hover { background: var(--fg); color: var(--surface); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); }
.home-blog .card { background: var(--bg); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hero); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-media--empty { display: grid; place-items: center; width: 100%; height: 100%; background: var(--hero); border-bottom: 6px solid var(--orange); }
.card-media--empty span { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em; color: var(--on-dark-muted); font-size: .95rem; }
.card-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-cat { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--orange-ink); margin: 0; }
.card-title { font-size: 1.45rem; font-weight: 600; line-height: 1.1; margin: 0; text-transform: none; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-excerpt { font-size: 1rem; color: var(--muted); margin: 0; flex: 1; }
.card-meta { font-size: .85rem; color: var(--muted); margin: 0; }
.cards-ad { grid-column: 1 / -1; }

.archive-head { margin-bottom: 2rem; max-width: 780px; }
.archive-head .page-title { margin-bottom: 1rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2.5rem; padding: 0; }
.chip { display: inline-block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 500; text-decoration: none; padding: .5rem .9rem; border: 2px solid var(--rule); }
.chip:hover { border-color: var(--fg); }
.chip.is-current { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pagination .page-numbers { font-family: var(--font-display); letter-spacing: .08em; text-decoration: none; padding: .45rem .85rem; border: 2px solid var(--rule); }
.pagination .page-numbers.current { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Breadcrumbs */
.crumbs { margin-bottom: 1.5rem; font-size: .9rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--rule); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }

/* Post */
.post { max-width: 740px; margin: 0 auto; }
.post-head .eyebrow a { color: var(--orange-ink); text-decoration: none; }
.post-title { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 700; line-height: 1.02; margin-bottom: 1rem; }
.post-meta { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--muted); margin: 0 0 1.75rem; }
.post-image { margin: 0 0 2rem; }
.post-image img { width: 100%; height: auto; }
.post-content { font-size: 1.2rem; line-height: 1.75; }
.post-content p { margin-bottom: 1.3em; }
.post-content ul, .post-content ol { margin: 0 0 1.4em; padding-left: 1.4rem; }
.post-content li { margin-bottom: .4em; }
.post-content h2 { font-size: 2rem; text-transform: uppercase; margin: 2.4rem 0 1rem; }
.post-content h3 { font-size: 1.45rem; text-transform: uppercase; margin: 2rem 0 .75rem; }
.post-content table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; }
.post-content th, .post-content td { border: 1px solid var(--rule); padding: .5rem .75rem; text-align: left; }
.post-content figure { margin: 2rem 0; }
.disclaimer { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 1rem; margin: 2.5rem 0 1.5rem; }
.post-foot { display: grid; gap: .75rem; margin-bottom: 2.5rem; }
.post-foot p { margin: 0; }
.post-tags a { display: inline-block; margin: 0 .5rem .35rem 0; font-size: .9rem; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; align-items: baseline; }
.share span { color: var(--muted); }
.author-box { background: var(--surface); border: 1px solid var(--rule); border-left: 6px solid var(--orange); padding: 1.5rem 1.75rem; }
.author-box h2 { font-size: 1.6rem; margin-bottom: .6rem; }
.author-box p { font-size: 1rem; }
.author-box p:last-child { margin-bottom: 0; }

.book-cta { max-width: 1000px; margin: 3.5rem auto 0; background: var(--hero); color: var(--on-dark); padding: 2rem; }
.book-cta h2 { font-size: 2rem; margin-bottom: 1.5rem; }
.book-cta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.mini-book { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 1rem; text-decoration: none; align-items: start; }
.mini-book img { width: 74px; height: auto; box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.mini-book span { font-size: .95rem; line-height: 1.4; color: var(--on-dark-muted); }
.mini-book strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; color: var(--on-dark); font-size: 1.05rem; margin-bottom: .25rem; }
.mini-book em { display: block; font-family: var(--font-display); font-style: normal; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--orange); margin-top: .5rem; }
.mini-book:hover strong { text-decoration: underline; }

.related { margin-top: 4rem; }
.related h2 { font-size: 2rem; margin-bottom: 1.5rem; }

/* Comments */
.comments-area { max-width: 740px; margin: 4rem auto 0; }
.comments-area h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { border-bottom: 1px solid var(--rule); padding: 1rem 0; font-size: 1rem; }
.comment-respond input[type=text], .comment-respond input[type=email], .comment-respond input[type=url], .comment-respond textarea { width: 100%; font: inherit; background: var(--surface); color: var(--fg); border: 2px solid var(--rule); padding: .65rem .8rem; }
.comment-respond .submit { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; background: var(--orange); color: var(--hero); border: 0; padding: .8rem 1.3rem; cursor: pointer; }
.comment-respond label { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .25rem; }

/* Search form */
.search-form { display: flex; gap: .5rem; max-width: 520px; }
.search-form label { flex: 1; }
.search-field { width: 100%; font: inherit; background: var(--surface); color: var(--fg); border: 2px solid var(--rule); padding: .7rem .9rem; }
.search-submit { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; background: var(--fg); color: var(--bg); border: 0; padding: 0 1.2rem; cursor: pointer; }

/* Ads: keep layout stable, hide when Google has nothing to show */
.ad { margin: 2.25rem 0; text-align: center; overflow: hidden; }
.ad-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--muted); margin: 0 0 .35rem; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }

@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .book-cta-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .post-content { font-size: 1.1rem; }
  .book-cta { padding: 1.5rem; }
}

/* ---------- Home: compact hero, featured post, book tabs ---------- */
.hero--compact { padding-bottom: 2.75rem; }
.hero-copy { max-width: 820px; padding-top: 1.5rem; }
.hero-copy h1 { font-weight: 700; font-size: clamp(2.4rem, 6.4vw, 4.6rem); letter-spacing: .005em; line-height: .98; margin-bottom: 1rem; }
.hero-copy .sub { font-size: 1.2rem; color: var(--on-dark-muted); max-width: 52ch; margin-bottom: 1.5rem; }
.hero-copy .btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.chips--sub { margin-top: -1.5rem; }
.chips--sub .chip { font-size: .78rem; padding: .4rem .75rem; border-width: 1px; }
.home-blog .chips { margin-bottom: 2rem; }

.card--featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.card--featured .card-media { aspect-ratio: auto; min-height: 320px; height: 100%; }
.card--featured .card-media img { height: 100%; }
.card--featured .card-media--empty { min-height: 320px; border-bottom: 0; border-left: 8px solid var(--orange); }
.card--featured .card-body { padding: 2rem 2.25rem; justify-content: center; gap: .75rem; }
.card--featured .card-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.02; }
.card--featured .card-excerpt { font-size: 1.1rem; flex: 0 0 auto; }
.cards--after-feature { margin-top: 2rem; }

.tabs { margin-top: 3rem; }
.tablist { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-bottom: 2px solid var(--rule); }
.tabs.is-ready .tablist { display: grid; }
.tab {
  --accent: var(--orange); --accent-ink: var(--orange-ink);
  display: flex; align-items: center; gap: .9rem; text-align: left; cursor: pointer; font: inherit; color: var(--muted);
  background: transparent; border: 0; border-bottom: 6px solid transparent; margin-bottom: -2px; padding: .9rem 1rem;
}
.tab--build { --accent: var(--teal); --accent-ink: var(--teal-ink); }
.tab--pass { --accent: var(--yellow); --accent-ink: var(--fg); }
.tab img { width: 44px; height: auto; flex: none; box-shadow: 0 3px 8px rgba(7,21,48,.3); }
.tab-text { display: grid; gap: .1rem; min-width: 0; }
.tab small { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 600; }
.tab b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; font-size: 1.05rem; line-height: 1.15; }
.tab:hover { color: var(--fg); background: var(--surface); }
.tab[aria-selected="true"] { color: var(--fg); background: var(--surface); border-bottom-color: var(--accent); }
.tab:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.tabpanel { padding-top: 2rem; }
.tabpanel:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.tabs.is-ready .tabpanel[hidden] { display: none; }

@media (max-width: 860px) {
  .card--featured { grid-template-columns: minmax(0, 1fr); }
  .card--featured .card-media, .card--featured .card-media--empty { min-height: 0; aspect-ratio: 16 / 10; }
  .card--featured .card-media--empty { border-left: 0; border-bottom: 6px solid var(--orange); }
  .card--featured .card-body { padding: 1.35rem; }
}
@media (max-width: 640px) {
  .tab { flex-direction: column; align-items: flex-start; gap: .4rem; padding: .7rem .6rem; }
  .tab img { display: none; }
  .tab b { font-size: .9rem; }
  .tab small { font-size: .65rem; letter-spacing: .1em; }
}

/* ---------- Hero books: floating, clickable ---------- */
.hero--compact .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2rem; }
.hero--compact .fan { max-width: 430px; width: 100%; justify-self: end; padding: .5rem .5rem 1.5rem; }
.fan a img { animation: jb-float 6s ease-in-out infinite; }
.fan a:nth-child(2) img { animation-delay: -2s; animation-duration: 7s; }
.fan a:nth-child(3) img { animation-delay: -4s; }
@keyframes jb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.fan a:hover img, .fan a:focus-visible img { animation-play-state: paused; box-shadow: 0 18px 34px rgba(255,106,10,.45); }
.fan a:focus-visible { outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) { .fan a img { animation: none; } }

/* ---------- Watch and follow ---------- */
.follow { background: var(--slate); color: #fff; }
.follow h2 { margin-bottom: .75rem; }
.follow-lede { font-size: 1.15rem; color: #eef2f8; max-width: 62ch; margin: 0 0 2rem; }
.follow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.follow-grid--videos { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.follow-card { background: var(--hero); color: #fff; border-top: 6px solid var(--orange); padding: 1.75rem; }
.follow-card--yt { border-top-color: #ff4a3d; }
.follow-card--fb { border-top-color: #5b9dff; }
.follow-card h3 { font-size: 1.7rem; font-weight: 700; margin-bottom: .5rem; color: #fff; }
.follow-card p { margin: 0 0 1.25rem; color: #eef2f8; font-size: 1.05rem; }
.follow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }

/* Buttons that look like buttons, and change colour when you point at them */
.btn-sub {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; cursor: pointer;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: 1rem;
  padding: .85rem 1.3rem; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn-sub .ico { flex: none; }
.btn-sub:hover, .btn-sub:focus-visible { transform: translateY(-2px); }
/* --ico-cut is the colour of the shape cut out of the icon, so it always matches the button behind it */
.btn-sub--yt { background: #d61f1f; color: #fff; border-color: #d61f1f; --ico-cut: #d61f1f; }
.btn-sub--yt:hover, .btn-sub--yt:focus-visible { background: #fff; color: #b01212; border-color: #b01212; --ico-cut: #fff; }
.btn-sub--fb { background: #1459c7; color: #fff; border-color: #1459c7; --ico-cut: #1459c7; }
.btn-sub--fb:hover, .btn-sub--fb:focus-visible { background: #fff; color: #0f47a1; border-color: #0f47a1; --ico-cut: #fff; }
.btn-sub--tool { background: var(--orange); color: #071530; border-color: var(--orange); }
.btn-sub--tool:hover, .btn-sub--tool:focus-visible { background: #071530; color: #fff; border-color: #071530; }
.text-link { color: #fff; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.text-link:hover, .text-link:focus-visible { color: var(--yellow); }

/* Video thumbnails */
.video-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.video-list--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video { display: grid; gap: .6rem; text-decoration: none; color: inherit; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border: 3px solid transparent; transition: border-color .15s; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s, opacity .15s; }
.video-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 32px; margin: -16px 0 0 -23px; background: rgba(214,31,31,.92); border-radius: 8px; transition: background-color .15s, transform .15s; }
.video-play::after { content: ""; position: absolute; left: 18px; top: 8px; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.video-title { font-family: var(--font-display); font-weight: 500; letter-spacing: .02em; font-size: 1.05rem; line-height: 1.2; color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.video:hover .video-thumb, .video:focus-visible .video-thumb { border-color: var(--yellow); }
.video:hover .video-thumb img { transform: scale(1.04); }
.video:hover .video-play, .video:focus-visible .video-play { background: #fff; transform: scale(1.1); }
.video:hover .video-play::after, .video:focus-visible .video-play::after { border-left-color: #d61f1f; }
.video:hover .video-title, .video:focus-visible .video-title { color: var(--yellow); text-decoration-color: currentColor; }

/* ---------- Article sidebar ---------- */
.post-layout { display: grid; grid-template-columns: minmax(0, 740px) 300px; gap: 3rem; justify-content: center; align-items: start; }
.post-layout .post { max-width: none; margin: 0; }
.sidebar { display: grid; gap: 1.5rem; }
.side-box { background: var(--surface); border: 1px solid var(--rule); border-top: 6px solid var(--orange); padding: 1.35rem; }
.side-box--yt { border-top-color: #d61f1f; }
.side-box--fb { border-top-color: #1459c7; }
.side-box h2 { font-size: 1.35rem; font-weight: 700; line-height: 1.1; margin-bottom: .5rem; text-transform: uppercase; }
.side-box p { font-size: .98rem; color: var(--muted); margin: 0 0 1rem; }
.side-box .video-list { margin-bottom: 1.25rem; }
.side-box .video-title { font-size: .98rem; color: var(--fg); }
.side-box .video:hover .video-title, .side-box .video:focus-visible .video-title { color: #b01212; }
.side-box .video:hover .video-thumb, .side-box .video:focus-visible .video-thumb { border-color: #d61f1f; }
.side-box .btn-sub { width: 100%; justify-content: center; }
.side-box .btn-sub--yt:hover, .side-box .btn-sub--fb:hover, .side-box .btn-sub--yt:focus-visible, .side-box .btn-sub--fb:focus-visible { background: var(--surface); --ico-cut: var(--surface); }

@media (min-width: 1000px) and (min-height: 820px) { .sidebar { position: sticky; top: 1.5rem; } }
@media (max-width: 999px) {
  .post-layout { grid-template-columns: minmax(0, 740px); }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2.5rem; }
  .side-box--yt { grid-column: 1 / -1; }
  .side-box--yt .video-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero--compact .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero--compact .fan { justify-self: center; }
  .follow-grid, .follow-grid--videos { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .video-list--row { grid-template-columns: minmax(0, 1fr); }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .side-box--yt .video-list { grid-template-columns: minmax(0, 1fr); }
  .btn-sub { width: 100%; justify-content: center; }
  .follow-actions { align-items: stretch; }
  .follow-actions .text-link { text-align: center; }
}

/* ---------- Free tools hub: Legacy Audit + Conversation Deck ---------- */
.hub-section { background: var(--bg); }
.hub-head { max-width: 760px; }
.hub-head .eyebrow { color: var(--orange-ink); }
.hub-head h2 { margin-bottom: 1rem; }
.hub { margin-top: 2.5rem; }
.hub-tablist { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.hub.is-ready .hub-tablist { display: grid; }
.hub-tab {
  display: flex; align-items: center; gap: 1rem; text-align: left; cursor: pointer; font: inherit;
  color: var(--fg); background: var(--surface); border: 2px solid var(--rule); border-bottom: 6px solid var(--rule);
  padding: 1rem 1.25rem; border-radius: 2px;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.hub-tab:hover { border-color: var(--orange); transform: translateY(-2px); }
.hub-tab[aria-selected="true"] { background: var(--hero); color: #fff; border-color: var(--hero); border-bottom-color: var(--orange); transform: none; }
.hub-tab:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hub-ico {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,106,10,.14); color: var(--orange-ink); transition: background-color .15s, color .15s;
}
.hub-tab[aria-selected="true"] .hub-ico, .hub-tab:hover .hub-ico { background: var(--orange); color: #071530; }
.hub-tab-text { display: grid; gap: .15rem; min-width: 0; }
.hub-tab small { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 600; color: var(--muted); }
.hub-tab[aria-selected="true"] small { color: var(--on-dark-muted); }
.hub-tab b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.2rem; line-height: 1.1; font-weight: 600; }
.hub-panel {
  background: var(--surface); border: 1px solid var(--rule); border-top: 8px solid var(--orange);
  padding: clamp(1.25rem, 3.5vw, 2.75rem);
}
#deck.hub-panel { border-top-color: var(--teal); }
.hub:not(.is-ready) .hub-panel + .hub-panel { margin-top: 1.5rem; }
.hub.is-ready .hub-panel[hidden] { display: none; }
.hub-panel:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.hub-more { margin: 1.5rem 0 0; font-size: 1rem; color: var(--muted); }
.hub-more a { color: var(--orange-ink); font-weight: 600; text-underline-offset: 3px; }
.hub-more a:hover { color: var(--fg); }

.btn--line { color: var(--fg); border-color: var(--fg); }
.btn--line:hover { background: var(--fg); color: var(--surface); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--fill:disabled:hover { background: var(--orange); border-color: var(--orange); }
.btn--line:disabled:hover { background: transparent; color: var(--fg); }
.text-btn { background: none; border: 0; font: inherit; font-size: 1rem; color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: .35rem .5rem; }
.text-btn:hover { color: var(--fg); }

/* Audit */
.audit { max-width: 860px; margin: 0 auto; scroll-margin-top: 1rem; }
.audit-slide + .audit-slide { margin-top: 2.5rem; }
.audit.is-ready .audit-slide + .audit-slide { margin-top: 0; }
.audit.is-ready .audit-slide[hidden] { display: none; }
.audit.is-ready .audit-slide { animation: jb-slide .35s ease both; }
.audit.is-ready.is-back .audit-slide { animation-name: jb-slide-back; }
@keyframes jb-slide { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes jb-slide-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .audit.is-ready .audit-slide, .deck.is-ready .deck-card { animation: none; } }
.audit:not(.is-ready) .audit-nav, .audit:not(.is-ready) .audit-start { display: none; }
.audit h3:focus { outline: none; }
.audit-nojs { background: var(--bg); border-left: 4px solid var(--orange); padding: .75rem 1rem; margin-top: 1rem; text-align: left; font-size: 1rem; }

.audit-intro { text-align: center; padding-block: .5rem; }
.audit-intro .eyebrow { color: var(--orange-ink); }
.audit-intro h3 { font-size: clamp(1.9rem, 4.6vw, 3rem); margin-bottom: 1rem; }
.audit-intro .lede { margin-inline: auto; }
.audit-pillars { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: 0; margin: 1.5rem 0 2rem; }
.audit-pillars li {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 500;
  padding: .4rem .8rem; border: 1px solid var(--rule); background: var(--bg);
}
.audit-start { font-size: 1.1rem; padding: 1rem 2.2rem; }
.audit-fine { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; }

.audit-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.audit-step { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; font-weight: 600; margin: 0; color: var(--orange-ink); }
.audit-chip { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 500; background: var(--hero); color: #fff; padding: .3rem .75rem; }
.audit-progress { height: 6px; background: var(--rule); margin: .75rem 0 1.5rem; }
.audit-progress i { display: block; height: 100%; background: var(--orange); }
.audit-q h3 { font-family: var(--font-body); text-transform: none; line-height: 1.3; font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 600; text-wrap: pretty; }
.audit-why { font-size: .98rem; color: var(--muted); font-style: italic; margin: .9rem 0 1.5rem; }

.opts { display: grid; gap: .75rem; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-body {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; border: 2px solid var(--rule);
  background: var(--bg); border-radius: 2px; transition: border-color .15s, background-color .15s, transform .15s;
}
.opt-mark { flex: none; width: 22px; height: 22px; margin-top: .12rem; border-radius: 50%; border: 2px solid var(--muted); background: var(--surface); }
.opt-text b { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; line-height: 1.2; margin-bottom: .2rem; font-weight: 600; }
.opt-text span { display: block; font-size: 1rem; color: var(--muted); line-height: 1.45; }
.opt:hover .opt-body { border-color: var(--orange); background: var(--surface); transform: translateX(3px); }
.opt:hover .opt-mark { border-color: var(--orange); }
.opt input:checked + .opt-body { border-color: var(--orange); background: rgba(255,106,10,.10); }
.opt input:checked + .opt-body .opt-mark { border-color: var(--orange); background: var(--orange); box-shadow: inset 0 0 0 4px var(--surface); }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--focus); outline-offset: 2px; }
.audit-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }

.audit-result h3 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 1.5rem; }
.audit-result .eyebrow { color: var(--orange-ink); }
.res-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; align-items: start; }
.res-card { background: var(--hero); color: #fff; padding: 1.75rem; text-align: center; }
.res-card .eyebrow { color: var(--on-dark-muted); margin-bottom: .5rem; }
.gauge { position: relative; width: 170px; height: 170px; margin: .25rem auto 1rem; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 12; }
.gauge .g-bg { stroke: rgba(255,255,255,.16); }
.gauge .g-fg { stroke: var(--orange); stroke-dasharray: 339.29; stroke-dashoffset: 339.29; transition: stroke-dashoffset 1s ease; }
.gauge-num { position: absolute; inset: 0; display: grid; place-content: center; font-family: var(--font-display); font-weight: 700; font-size: 2.9rem; line-height: 1; }
.gauge-num small { display: block; font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: .3rem; }
.res-card .res-band { text-align: center; font-family: var(--font-display); text-transform: uppercase; font-size: 1.8rem; line-height: 1.05; color: var(--yellow); margin: 0 0 .75rem; font-weight: 700; }
.res-card p { color: var(--on-dark-muted); font-size: 1.02rem; margin: 0; text-align: left; }
.res-pillars h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin: 0 0 1rem; color: var(--muted); font-weight: 600; }
.pillar { margin-bottom: 1.15rem; }
.pillar-top { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; font-weight: 600; }
.pillar-top b { color: var(--teal-ink); white-space: nowrap; }
.pillar--weak .pillar-top b { color: var(--orange-ink); }
.pbar { height: 10px; background: var(--rule); margin: .35rem 0 .45rem; }
.pbar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .7s ease; }
.pillar--weak .pbar i { background: var(--orange); }
.pillar p { font-size: .95rem; color: var(--muted); margin: 0; line-height: 1.45; }
.res-read {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 1.25rem; align-items: center; margin-top: 2rem;
  padding: 1.25rem; background: var(--bg); border: 1px solid var(--rule); border-left: 6px solid var(--orange);
}
.res-read img { width: 92px; height: auto; box-shadow: 0 6px 16px rgba(7,21,48,.3); }
.res-read .eyebrow { margin-bottom: .25rem; color: var(--orange-ink); }
.res-read h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.35rem; margin: 0 0 .4rem; font-weight: 600; }
.res-read p { margin: 0 0 .75rem; font-size: 1rem; color: var(--muted); }
.res-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.res-links a { color: var(--orange-ink); font-weight: 600; text-underline-offset: 3px; font-size: 1rem; }
.res-links a:hover { color: var(--fg); }
.res-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.res-actions .btn { font-size: .85rem; padding: .7rem 1.1rem; }
.res-actions textarea { width: 100%; min-height: 8rem; font: inherit; font-size: .95rem; padding: .75rem; border: 2px solid var(--rule); background: var(--bg); color: var(--fg); }

/* Deck */
.deck { max-width: 860px; margin: 0 auto; }
.deck-head .eyebrow { color: var(--orange-ink); }
.deck-head h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .75rem; }
.deck-topics { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 1.25rem; }
.deck:not(.is-ready) .deck-topics, .deck:not(.is-ready) .deck-controls, .deck:not(.is-ready) .deck-extra { display: none; }
.deck-topic {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; font-weight: 600;
  padding: .55rem .9rem; border: 2px solid var(--rule); background: var(--surface); color: var(--fg); cursor: pointer; border-radius: 999px;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.deck-topic span { opacity: .65; margin-left: .2rem; }
.deck-topic:hover { border-color: var(--accent); background: var(--bg); transform: translateY(-2px); }
.deck-topic[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #071530; transform: none; }
.deck-topic:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.deck-stage:focus { outline: none; }
.deck-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.deck-card {
  position: relative; overflow: hidden; background: #0a1530; color: #fff; border-top: 8px solid var(--accent);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.deck-card::before {
  content: "\201C"; position: absolute; top: -.35rem; right: 1.1rem; font-family: var(--font-display); font-size: 9rem; line-height: 1;
  color: var(--accent); opacity: .22; pointer-events: none;
}
.deck.is-ready .deck-card[hidden] { display: none; }
.deck.is-ready .deck-card { animation: jb-slide .35s ease both; }
.deck.is-ready.is-back .deck-card { animation-name: jb-slide-back; }
.deck-kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; margin: 0; position: relative; }
.deck-kicker b { color: var(--accent); font-weight: 600; }
.deck-kicker span { color: #b9c3da; font-size: .8rem; }
.deck-kicker span::before { content: "\00b7"; margin: 0 .55rem; }
.deck-q { position: relative; font-size: clamp(1.45rem, 3.6vw, 2.15rem); line-height: 1.3; font-weight: 600; margin: 1rem 0 1.25rem; text-wrap: pretty; }
.deck-why { position: relative; color: #c8d1e6; font-size: 1.02rem; font-style: italic; margin: 0 0 1.25rem; }
.deck-why cite { display: block; font-style: normal; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--accent); margin-top: .4rem; }
.deck-tipbtn {
  display: none; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 600;
  background: transparent; color: #fff; border: 2px solid var(--accent); padding: .6rem 1rem; cursor: pointer; border-radius: 2px;
  transition: background-color .15s, color .15s;
}
.deck.is-ready .deck-tipbtn { display: inline-block; }
.deck-tipbtn:hover, .deck-tipbtn[aria-expanded="true"] { background: var(--accent); color: #071530; }
.deck-tipbtn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.deck-tip { position: relative; margin-top: 1rem; padding: 1rem 1.1rem; background: rgba(255,255,255,.08); border-left: 4px solid var(--accent); font-size: 1rem; color: #e8edf8; }
.deck-tip b { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--accent); margin-bottom: .25rem; font-weight: 600; }
.deck.is-ready .deck-tip { display: none; }
.deck.is-ready .deck-card.tip-open .deck-tip { display: block; }
.deck-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.deck-count { text-align: center; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; color: var(--muted); margin: 0; }
.deck-extra { text-align: center; margin: .75rem 0 0; }

@media (max-width: 760px) {
  .res-top { grid-template-columns: minmax(0, 1fr); }
  .res-read { grid-template-columns: 70px minmax(0, 1fr); gap: 1rem; padding: 1rem; align-items: start; }
  .res-read img { width: 70px; }
}
@media (max-width: 640px) {
  .hub-tab { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .8rem .75rem; }
  .hub-ico { width: 38px; height: 38px; }
  .hub-ico svg { width: 22px; height: 22px; }
  .hub-tab b { font-size: 1rem; }
  .hub-tab small { font-size: .65rem; letter-spacing: .1em; }
  .audit-nav .btn { flex: 1; padding-inline: .5rem; font-size: .82rem; letter-spacing: .04em; white-space: nowrap; }
  .deck-controls .btn { padding: .75rem .85rem; font-size: .85rem; }
  .deck-count { font-size: .75rem; letter-spacing: .08em; }
  .deck-card::before { font-size: 6rem; }
}
