/* ==========================================================================
   The Lead Gen Company - guide.css
   Publisher template for /guides pages (approved December 2026).
   Load order on a guide page:
     1. css/leadhq-lab.css   site base: tokens, header, footer, form, cookie banner
     2. css/guide.css        this file: article layout, light theme, sidebar,
                             form popover, sortable tables
   Pages using it need <body class="pub">.
   ========================================================================== */

/* ==========================================================================
   Guides layer: reading bar, byline, article body, boxes, tables, review cards
   ========================================================================== */
/* overflow-x: clip rather than hidden, so the contents rail can stick */
html, body { overflow-x: clip; }

/* ---------- reading progress ---------- */
.readbar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--lime); box-shadow: var(--glow-sm);
  z-index: 99; transition: width .1s linear;
}

/* ---------- author byline on dark ---------- */
.byline {
  display: flex; align-items: center; gap: 14px;
  padding-top: 20px; margin-top: 4px;
  border-top: 1px solid var(--line);
}
.byline__pic {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--lime); color: #08120a;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: .88rem;
  box-shadow: var(--glow-sm);
}
.byline__who { font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.byline__who a { color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--lime-dim); }
.byline__who a:hover { color: var(--lime); border-bottom-color: var(--lime); }
.byline__meta {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .02em;
  color: var(--ink-3); margin-top: 4px;
}
.byline__meta em { font-style: normal; color: var(--lime); }

/* ---------- quote console: heading lives inside the panel ---------- */
.console--quote { position: relative; }
.console--quote::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(184,255,58,.10);
}
.console--quote .console__body { padding-top: 24px; }

/* ==========================================================================
   THE PAPER BOX
   Light content area on the dark page. Faint square grid, no ruled lines.
   Design tokens are re-declared here so every child inherits the light theme.
   ========================================================================== */
.paper-section { padding: 0 0 90px; position: relative; z-index: 1; }

.paper {
  /* light-theme token overrides, inherited by everything inside */
  --ink:      #101a2e;
  --ink-2:    #3f4d66;
  --ink-3:    #78859c;
  --line:     #e3e7ee;
  --line-2:   #ccd3e0;
  --panel:    #ffffff;
  --panel-2:  #fbfbf7;
  --paper-bg: #fcfbf7;
  --accent:   #4d7a05;
  --accent-soft: #f3ffdd;
  --link:     #2a5fb5;
  --warn:     #b8562c;
  --bad:      #c0392b;

  position: relative;
  isolation: isolate;
  background: var(--paper-bg);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.9), 0 0 0 1px rgba(184,255,58,.08);
  color: var(--ink);
}
/* the faint squares, same 44px module as the site grid */
.paper::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(16,26,46,.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,26,46,.038) 1px, transparent 1px);
  background-size: 44px 44px;
}
.paper__inner { position: relative; z-index: 1; padding: 54px 46px 60px; }
@media (max-width: 900px) { .paper__inner { padding: 34px 24px 40px; } .paper { border-radius: 16px; } }
@media (max-width: 520px) { .paper__inner { padding: 26px 18px 34px; } }

/* ---------- base type inside the paper ---------- */
.paper p { margin: 0 0 1.1em; color: var(--ink-2); font-size: 1.02rem; line-height: 1.68; }
.paper strong { color: var(--ink); font-weight: 600; }
.paper a { color: var(--link); text-decoration: none; border-bottom: 1px solid rgba(42,95,181,.3); }
.paper a:hover { color: #1c4a92; border-bottom-color: var(--link); }
.paper h2, .paper h3, .paper h4 { color: var(--ink); line-height: 1.12; }
.paper h4 { font-size: 1.04rem; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.paper ul, .paper ol { padding-left: 22px; color: var(--ink-2); margin: 0 0 1.15em; }
.paper li { margin-bottom: 9px; line-height: 1.62; }
.paper li::marker { color: var(--accent); }
.paper :focus-visible { outline: 2.5px solid var(--orange); outline-offset: 3px; border-radius: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- article grid + contents rail ---------- */
.article { display: grid; grid-template-columns: 198px minmax(0,1fr); gap: 42px; align-items: start; }
.article > * { min-width: 0; }
@media (max-width: 1040px) { .article { grid-template-columns: minmax(0,1fr); gap: 0; } }

.article__body { position: relative; min-width: 0; max-width: 100%; }
.article__body > h2 { margin: 54px 0 16px; scroll-margin-top: 92px; font-size: clamp(1.55rem,1.1rem + 1.7vw,2.25rem); letter-spacing: -.025em; }
.article__body > h2:first-of-type { margin-top: 0; }
.article__body > h3 { margin: 34px 0 12px; scroll-margin-top: 92px; font-size: clamp(1.15rem,1rem + .6vw,1.42rem); }

.h2num {
  display: block; margin-bottom: 9px;
  font-family: var(--mono); font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}

.toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; }
.toc::-webkit-scrollbar { width: 4px; }
.toc::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
@media (max-width: 1040px) {
  .toc { position: static; margin-bottom: 32px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; }
}
.toc__ttl { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0 0 2px; }
.toc a { display: block; position: relative; padding: 6px 8px 6px 30px; border-radius: 7px; font-size: .86rem; line-height: 1.4; color: var(--ink-2); border-bottom: 0; }
.toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 8px; top: 7px; font-family: var(--mono); font-size: .64rem; color: var(--ink-3); }
.toc a:hover { background: #f1f3ec; color: var(--ink); }
.toc a.is-current { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.toc a.is-current::before { color: var(--accent); }

/* ---------- share row ---------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 32px; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.share__lbl { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.share a, .share button {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--panel); color: var(--ink-2); cursor: pointer;
}
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); }
.share svg { width: 14px; height: 14px; }

/* ---------- highlight boxes ---------- */
.answerbox { background: var(--accent-soft); border: 1px solid #b6da79; border-left: 5px solid var(--accent); border-radius: 12px; padding: 22px 26px; margin: 0 0 28px; }
.answerbox p:last-child { margin-bottom: 0; }
.answerbox .kicker { display: block; font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

.notebox { background: var(--panel); border: 1px solid var(--line-2); border-left: 4px solid var(--orange); border-radius: 10px; padding: 18px 22px; margin: 26px 0; }
.notebox p:last-child, .notebox ol:last-child, .notebox ul:last-child { margin-bottom: 0; }
.notebox h4 { margin-bottom: 8px; }
.notebox--flag { border-left-color: var(--bad); background: #fff8f7; }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); -webkit-overflow-scrolling: touch; }
.paper table { border-collapse: collapse; width: 100%; min-width: 660px; font-size: .87rem; line-height: 1.5; }
.paper thead th {
  text-align: left; padding: 11px 13px; background: #f2f4ec; border-bottom: 1.5px solid var(--line-2);
  font-family: var(--mono); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 700; white-space: nowrap;
}
.paper tbody td { padding: 11px 13px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.paper tbody tr:last-child td { border-bottom: 0; }
.paper tbody tr:hover { background: #fbfcf7; }
.paper tbody td:first-child { color: var(--ink); font-weight: 600; }
.num { font-family: var(--mono); white-space: nowrap; }
.tbl-score { font-family: var(--mono); font-weight: 700; color: var(--ink); }
.tbl-note { display: block; font-size: .77rem; color: var(--ink-3); font-weight: 400; margin-top: 3px; }
.row-own { background: var(--accent-soft) !important; }
.tag-own { display: inline-block; font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--lime); padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }

/* ---------- specimen scorecards ---------- */
.spec { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; margin: 0 0 26px; overflow: hidden; box-shadow: 0 12px 30px -22px rgba(16,26,46,.5); }
.spec__head { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; padding: 22px 24px 18px; border-bottom: 1px dashed var(--line-2); background: #fbfbf5; }
.spec__rank { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.spec__head h3 { margin: 0 0 6px; font-size: 1.42rem; }
.spec__best { margin: 0; font-size: .92rem; font-weight: 600; color: var(--accent); }
.spec__score { text-align: center; flex: none; }
.spec__score .val { display: block; font-family: var(--mono); font-weight: 700; font-size: 2.05rem; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.spec__score .val sub { font-size: .82rem; font-weight: 400; color: var(--ink-3); vertical-align: baseline; }
.spec__score .lbl { display: block; margin-top: 5px; font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.spec__body { padding: 22px 24px 24px; }
.spec__body p { font-size: .97rem; }
.spec__body p:last-child { margin-bottom: 0; }

.spec__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 0 22px; }
.spec__meta > div { background: #fbfbf5; padding: 13px 15px; }
.spec__meta dt { font-family: var(--mono); font-size: .61rem; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.spec__meta dd { margin: 0; font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.4; }

.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 26px; margin: 0 0 22px; }
@media (max-width: 640px) { .bars { grid-template-columns: 1fr; } }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.bar__k { font-family: var(--mono); font-size: .71rem; letter-spacing: .03em; color: var(--ink-3); }
.bar__v { font-family: var(--mono); font-size: .76rem; font-weight: 700; color: var(--ink); }
.bar__t { grid-column: 1 / -1; height: 6px; background: #eceff4; border-radius: 999px; overflow: hidden; }
.bar__f { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.bar__f.mid { background: var(--orange); }
.bar__f.low { background: #d16a5f; }

.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 20px; }
@media (max-width: 640px) { .pc { grid-template-columns: 1fr; } }
.pc h4 { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.pc--pro h4 { color: var(--accent); }
.pc--con h4 { color: var(--warn); }
.pc ul { list-style: none; margin: 0; padding: 0; }
.pc li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: .89rem; line-height: 1.5; }
.pc li::before { position: absolute; left: 0; top: 0; font-family: var(--mono); font-weight: 700; }
.pc--pro li::before { content: "+"; color: var(--accent); }
.pc--con li::before { content: "-"; color: var(--warn); }

.spec--own { border: 2px solid var(--ink); }
.spec--own .spec__head { background: var(--accent-soft); }

/* ---------- FAQ (light re-colour of the base accordion) ---------- */
.faq details { border-color: var(--line-2); background: var(--panel); }
.faq details[open] { border-color: #b6da79; background: var(--panel); }
.faq summary { padding: 18px 24px; font-weight: 700; font-size: 1.02rem; letter-spacing: -.015em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { color: var(--accent); }
.faq details > div { padding: 0 24px 22px; }
.faq details p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  .faq summary { padding: 16px 18px; font-size: .97rem; gap: 12px; }
  .faq details > div { padding: 0 18px 18px; }
}

/* ---------- in-article CTA, deliberately dark for contrast ---------- */
.ctastrip { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: #0b1122; border-radius: 14px; padding: 32px 34px; margin: 44px 0; }
@media (max-width: 760px) { .ctastrip { grid-template-columns: 1fr; padding: 26px 22px; } }
.ctastrip h3 { color: #fff; margin: 0 0 8px; }
.ctastrip p { color: #a9b6cd; margin: 0; font-size: .95rem; max-width: 52ch; }
.ctastrip .btn { white-space: nowrap; }

/* ---------- method + sources ---------- */
.method { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 26px 28px; margin: 32px 0; }
.method h3 { margin: 0 0 12px; }
.srclist { list-style: none; padding: 0; margin: 0; column-count: 2; column-gap: 34px; }
@media (max-width: 760px) { .srclist { column-count: 1; } }
.srclist li { font-size: .83rem; color: var(--ink-3); margin-bottom: 7px; break-inside: avoid; }

.paper .byline { border-top: 1px solid var(--line-2); }
.paper .byline__pic { background: var(--ink); color: var(--lime); box-shadow: none; }
.paper .byline__who { color: var(--ink-2); }
.paper .byline__who a { color: var(--ink); border-bottom: 2px solid #d5ff85; }
.paper .byline__who a:hover { color: var(--ink); border-bottom-color: var(--orange); }
.paper .byline__meta { color: var(--ink-3); }
.paper .byline__meta em { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .readbar { transition: none; }
}

/* header CTA must stay on one line once the nav links drop away */
@media (max-width: 560px) {
  .lab-header .btn--go { font-size: .78rem; padding: 10px 13px; white-space: nowrap; }
  .lab-header .brand { font-size: 1.1rem; }
  .lab-header .brand svg { width: 21px; height: 21px; }
}

/* ==========================================================================
   Publisher template: white page, blog layout, sidebar, form popover
   ========================================================================== */
body.pub {
  --pub-bg:      #ffffff;
  --pub-tint:    #f5f6f8;
  --pub-ink:     #0f1726;
  --pub-ink-2:   #3c4759;
  --pub-ink-3:   #6b7588;
  --pub-line:    #e4e7ec;
  --pub-line-2:  #cfd5df;
  --pub-accent:  #14703f;   /* kicker / small accents: corporate green */
  --pub-cta:     #15703d;   /* the CTA green: solid, white text (6.1:1 contrast) */
  --pub-cta-2:   #0f5a30;
  --pub-link:    #1f56b3;
  background: var(--pub-bg);
}
body.pub .readbar { background: var(--pub-cta); box-shadow: none; }

/* header and footer stay dark: give them solid backgrounds now the page is white */
body.pub .lab-header { background: #070b15; }
body.pub .lab-footer { background: #070b15; border-top: 0; margin-top: 0; }

/* everything inside main uses light tokens (same names the paper box uses) */
body.pub main {
  --ink: var(--pub-ink); --ink-2: var(--pub-ink-2); --ink-3: var(--pub-ink-3);
  --line: var(--pub-line); --line-2: var(--pub-line-2);
  background: var(--pub-bg); color: var(--pub-ink); position: relative; z-index: 1;
}

.pubcrumb { font-size: .84rem; color: var(--pub-ink-3); margin-bottom: 22px; }
.pubcrumb a { color: var(--pub-ink-3); text-decoration: none; }
.pubcrumb a:hover { color: var(--pub-ink); text-decoration: underline; }
.pubcrumb i { font-style: normal; margin: 0 7px; color: var(--pub-line-2); }

.pubkicker { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .9rem; font-weight: 700; }
.pubkicker a { color: var(--pub-accent); text-decoration: none; }
.pubkicker span { color: var(--pub-ink-3); font-weight: 600; padding-left: 12px; border-left: 1px solid var(--pub-line-2); }

.pubdek { font-size: 1.18rem; line-height: 1.55; color: var(--pub-ink-2); margin: 0 0 24px; max-width: 60ch; }
.pubdek strong { color: var(--pub-ink); }

.pubmeta { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--pub-line); border-bottom: 1px solid var(--pub-line); margin-bottom: 26px; }
.pubmeta__pic { width: 42px; height: 42px; border-radius: 50%; background: var(--pub-ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }
.pubmeta__who { font-size: .92rem; color: var(--pub-ink-2); line-height: 1.45; }
.pubmeta__who a { color: var(--pub-ink); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--pub-line-2); }
.pubmeta__who small { display: block; font-size: .84rem; color: var(--pub-ink-3); }

/* top picks box, right of the headline */
.picks { background: #fff; border: 1px solid var(--pub-line); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -28px rgba(15,23,38,.35); }
.picks__ttl { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px 12px; border-bottom: 1px solid var(--pub-line); }
.picks__ttl b { font-size: 1rem; color: var(--pub-ink); letter-spacing: -.01em; }
.picks__ttl small { font-size: .78rem; color: var(--pub-ink-3); }
.picks ol { list-style: none; margin: 0; padding: 0; }
.picks li { border-bottom: 1px solid var(--pub-line); }
.picks li:last-child { border-bottom: 0; }
.picks li a { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 14px 20px; text-decoration: none; color: inherit; }
.picks li a:hover { background: var(--pub-tint); }
.picks__n { font-weight: 800; font-size: .95rem; color: var(--pub-ink-3); }
.picks__name { font-weight: 700; color: var(--pub-ink); font-size: .98rem; line-height: 1.25; }
.picks__name small { display: block; font-weight: 500; font-size: .8rem; color: var(--pub-ink-3); margin-top: 2px; }
.picks__score { font-weight: 800; font-size: 1.05rem; color: #fff; background: var(--pub-ink); border-radius: 8px; padding: 6px 8px; min-width: 44px; text-align: center; letter-spacing: -.02em; }
.picks li:first-child .picks__score { background: var(--pub-cta); }
.picks__foot { display: block; padding: 12px 20px; font-size: .86rem; font-weight: 700; color: var(--pub-link); text-decoration: none; background: var(--pub-tint); }
.picks__foot:hover { text-decoration: underline; }

/* ---------- article: the paper box becomes the page ---------- */
body.pub .paper-section { padding: 0 0 80px; }
body.pub .paper {
  --paper-bg: #fff; --accent: #14703f; --accent-soft: #eef7f1; --link: var(--pub-link);
  background: #fff; border: 0; border-radius: 0; box-shadow: none;
}
body.pub .paper::before { display: none; }
body.pub .paper__inner { padding: 46px 0 20px; }
body.pub .paper p { font-size: 1.08rem; line-height: 1.75; color: #283244; }
body.pub .paper li { font-size: 1.04rem; line-height: 1.7; color: #283244; }
body.pub .paper h2 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.05rem); letter-spacing: -.035em; }
body.pub .article { grid-template-columns: 220px minmax(0, 760px); gap: 64px; justify-content: center; }
@media (max-width: 1000px) { body.pub .article { grid-template-columns: 1fr; } }

/* mid-article CTA strips: light, with the green button */
body.pub .ctastrip { background: #f1f8f3; border: 1px solid #cfe7d7; border-left: 4px solid var(--pub-cta); border-radius: 12px; }
body.pub .ctastrip h3 { color: var(--pub-ink); }
body.pub .ctastrip p { color: var(--pub-ink-2); }

/* ---------- form popover ---------- */
.leadmodal { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); overflow: visible; color: inherit; }
.leadmodal::backdrop { background: rgba(7,11,21,.72); backdrop-filter: blur(4px); }
.leadmodal[open] { animation: modalIn .22s cubic-bezier(.2,.7,.2,1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.leadmodal__box { position: relative; max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: 16px; }
.leadmodal .console { margin: 0; }
.leadmodal__x {
  position: absolute; top: 10px; right: 10px; z-index: 5; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background .15s ease;
}
.leadmodal__x:hover { background: rgba(255,255,255,.2); }
.leadmodal__x svg { width: 16px; height: 16px; }
.leadmodal__x:focus-visible { outline: 3px solid var(--pub-cta); outline-offset: 2px; }
.leadmodal .console__top { padding-right: 56px; }
body.modal-open { overflow: hidden; }
body.pub .leadmodal .console__top { padding-right: 62px; }
.leadmodal__x { top: 7px; right: 9px; width: 34px; height: 34px; }

/* ==========================================================================
   Blog-post layout: header starts the article, sidebar on the right
   ========================================================================== */
body.pub .paper__inner { padding-top: 30px; }
body.pub .article.article--pub {
  grid-template-columns: minmax(0, 760px) 300px;
  grid-template-areas: "head side" "body side";
  grid-template-rows: auto 1fr;
  column-gap: 64px; row-gap: 0;
  justify-content: space-between;
}
.article--pub > .pubhead { grid-area: head; }
.article--pub > .article__body { grid-area: body; }
.article--pub > .pubside { grid-area: side; align-self: stretch; padding-top: 52px; }

.pubhead { padding-bottom: 8px; }
.pubhead .pubcrumb { margin-bottom: 26px; }
.pubhead h1 { color: var(--pub-ink); font-size: clamp(2.1rem, 1.4rem + 2.2vw, 3.1rem); line-height: 1.07; letter-spacing: -.04em; margin: 0 0 18px; }
.pubhead .pubdek { font-size: 1.2rem; }
.pubhead .pubmeta { margin-bottom: 30px; }

/* sidebar: picks scroll away, contents stick */
.pubside .picks { margin-bottom: 28px; box-shadow: none; }
.pubside .toc { top: 92px; padding: 18px 16px 14px; border: 1px solid var(--pub-line); border-radius: 14px; background: #fff; }
.pubside .toc__ttl { font-family: var(--display); font-size: 1rem; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--pub-ink); padding: 0 8px; }
.pubside .toc a.is-current { background: #e4f2e8; }
.pubside .toc a.is-current::before { color: var(--pub-accent); }

@media (max-width: 1040px) {
  body.pub .article.article--pub { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "side" "body"; grid-template-rows: auto; }
  .article--pub > .pubside { padding-top: 0; }
  .pubside .toc { position: static; max-height: none; margin-bottom: 34px; }
}
/* the article's underlined-link style shouldn't reach the header chrome or sidebar */
body.pub .paper .pubcrumb a, body.pub .paper .pubkicker a, body.pub .paper .pubside a { border-bottom: 0; }
body.pub .paper .pubkicker a { color: var(--pub-accent); }
body.pub .paper .picks li a { color: inherit; }
body.pub .paper .picks__foot { color: var(--pub-link); }

/* in-article CTA buttons: the green button, white text, no link underline */
body.pub .paper .ctastrip .btn {
  background: var(--pub-cta); color: #fff; border: 0; border-bottom: 0; box-shadow: none;
  font-family: var(--display); font-weight: 700; border-radius: 10px; padding: 14px 22px;
}
body.pub .paper .ctastrip .btn:hover { background: var(--pub-cta-2); color: #fff; transform: translateY(-1px); }

/* ==========================================================================
   Lead form popover, light to match the page
   ========================================================================== */
body.pub .leadmodal {
  --panel: #fff; --ink: var(--pub-ink); --ink-2: var(--pub-ink-2); --ink-3: var(--pub-ink-3);
  --line: var(--pub-line); --line-2: var(--pub-line-2);
  --lime: var(--pub-cta); --glow-sm: none; --danger: #c0392b;
}
body.pub .leadmodal .console { background: #fff; border: 0; border-radius: 16px; box-shadow: 0 30px 70px -30px rgba(7,11,21,.6); }
body.pub .leadmodal .console__top { padding: 18px 26px; border-bottom: 1px solid var(--pub-line); min-height: 0; }
.leadmodal__ttl { font-family: var(--display); font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; color: var(--pub-ink); }
body.pub .leadmodal .console__body { padding: 22px 26px 26px; }

body.pub .leadmodal .lf-progress { background: var(--pub-tint); border: 0; height: 6px; }
body.pub .leadmodal .lf-count { font-family: var(--sans); font-size: .8rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--pub-ink-3); }
body.pub .leadmodal .lf-q { color: var(--pub-ink); font-size: 1.25rem; letter-spacing: -.02em; }

body.pub .leadmodal .lf-option { background: #fff; border: 1.5px solid var(--pub-line-2); border-radius: 10px; color: var(--pub-ink); }
body.pub .leadmodal .lf-option:hover { border-color: var(--pub-cta); background: #f1f8f3; }
body.pub .leadmodal .lf-option.is-selected, body.pub .leadmodal .lf-option:has(input:checked) { border-color: var(--pub-cta); background: #e4f2e8; box-shadow: none; }
body.pub .leadmodal .lf-option.is-selected::before, body.pub .leadmodal .lf-option:has(input:checked)::before {
  border-color: var(--pub-cta);
  background: var(--pub-cta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

body.pub .leadmodal .field label { font-family: var(--sans); font-size: .88rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--pub-ink-2); }
body.pub .leadmodal .field input { background: #fff; border: 1.5px solid var(--pub-line-2); border-radius: 10px; color: var(--pub-ink); }
body.pub .leadmodal .field input:focus { border-color: var(--pub-cta); box-shadow: 0 0 0 3px rgba(21,112,61,.2); }

body.pub .leadmodal .lead-submit {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: #fff;
  background: var(--pub-cta); border-color: var(--pub-cta); border-radius: 10px;
  box-shadow: none;
}
body.pub .leadmodal .lead-submit:hover { background: var(--pub-cta-2); border-color: var(--pub-cta-2); }
body.pub .leadmodal .lead-submit::before { display: none; }
body.pub .leadmodal .lf-back { font-family: var(--sans); font-weight: 600; color: var(--pub-ink-3); letter-spacing: 0; }
body.pub .leadmodal .lf-back:hover { color: var(--pub-ink); }
body.pub .leadmodal p, body.pub .leadmodal small { color: var(--pub-ink-3); }
body.pub .leadmodal a[href^="tel"] { color: var(--pub-ink); font-weight: 700; }

/* close button, light */
body.pub .leadmodal__x { top: 12px; right: 14px; border-color: var(--pub-line); background: #fff; color: var(--pub-ink); }
body.pub .leadmodal__x:hover { background: var(--pub-tint); }

/* header CTA: green on guide pages, no glow spilling onto the white page */
body.pub .lab-header .btn--go {
  background: var(--pub-cta); border-color: var(--pub-cta); color: #fff; box-shadow: none;
}
body.pub .lab-header .btn--go:hover { background: var(--pub-cta-2); border-color: var(--pub-cta-2); color: #fff; box-shadow: none; }

/* article boxes: lime outlines become the corporate green */
body.pub .answerbox, body.pub .faq details[open] { border-color: #b9dcc5; }
body.pub .answerbox { border-left-color: var(--accent); }

/* ==========================================================================
   Button hover sheen and focus ring
   ========================================================================== */
/* ---- CTA hover sheen and focus ring ---- */
.btn--go, .btn--ghost { position: relative; overflow: hidden; }
.btn--go::after, .btn--ghost::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.38) 50%, transparent 62%);
  transform: translateX(-120%);
}
.btn--ghost::after { background: linear-gradient(105deg, transparent 38%, rgba(184,255,58,.22) 50%, transparent 62%); }
.btn--go:hover::after, .btn--ghost:hover::after { transform: translateX(120%); transition: transform 760ms cubic-bezier(.22,.61,.36,1); }
.btn--go:active, .btn--ghost:active { transform: translateY(0) scale(.985); transition: transform 90ms cubic-bezier(.22,.61,.36,1); }
.btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .btn--go::after, .btn--ghost::after { display: none; } }

/* ==========================================================================
   Sortable comparison tables
   ========================================================================== */
.lgc-sort-hint {
  font-family: var(--mono);
  font-size: .74rem;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0 0 10px;
}

/* hint as the table's own caption bar inside .tablewrap */
.tablewrap > .lgc-sort-hint {
  margin: 0;
  padding: 11px 14px;
  font-size: .66rem;
  line-height: 1.55;
  border-bottom: 1px solid var(--line-2);
  background: var(--panel);
  border-radius: 12px 12px 0 0;
  position: sticky;   /* stays in view when the table scrolls sideways */
  left: 0;
}

/* the button fills the header cell so the whole cell is the hit area */
.lgc-sortable th { padding: 0 !important; }

.lgc-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.lgc-sort:hover {
  color: var(--accent, var(--lime));
  background: color-mix(in srgb, var(--accent, var(--lime)) 8%, transparent);
}
.lgc-sort:focus-visible {
  outline: 2px solid var(--accent, var(--lime));
  outline-offset: -2px;
}

/* sort indicator: paired chevrons, one when active */
.lgc-sort__ind {
  flex: 0 0 auto;
  width: 9px;
  height: 12px;
  opacity: .34;
  background: currentColor;
  transition: opacity .15s var(--ease);
  clip-path: polygon(50% 0, 100% 42%, 0 42%, 50% 0,
                     50% 100%, 0 58%, 100% 58%, 50% 100%);
}
.lgc-sort:hover .lgc-sort__ind { opacity: .7; }
.lgc-sort[data-dir="asc"] .lgc-sort__ind {
  opacity: 1;
  clip-path: polygon(50% 12%, 100% 78%, 0 78%);
}
.lgc-sort[data-dir="desc"] .lgc-sort__ind {
  opacity: 1;
  clip-path: polygon(0 22%, 100% 22%, 50% 88%);
}
.lgc-sortable th[aria-sort="ascending"] .lgc-sort,
.lgc-sortable th[aria-sort="descending"] .lgc-sort {
  color: var(--accent, var(--lime));
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .lgc-sort, .lgc-sort__ind { transition: none; }
}

/* ==========================================================================
   Fixes and final colour pass (all orange / lime accents -> corporate green)
   ========================================================================== */
/* the site base paints graph paper and a glow on body: not on guide pages */
body.pub::before, body.pub::after { display: none; }

/* neutral info boxes: slate stripe instead of orange */
body.pub .notebox { border-left-color: #94a0b4; }
body.pub .notebox--flag { border-left-color: var(--bad); }

/* score bars: dark green (8+), light green (5-7), soft red (under 5) */
body.pub .bar__f { background: var(--pub-cta); }
body.pub .bar__f.mid { background: #7fb592; }
body.pub .bar__f.low { background: #d16a5f; }

/* review card headers and meta: neutral grey instead of cream */
body.pub .spec__head, body.pub .spec__meta > div { background: #f7f8fa; }
body.pub .spec--own .spec__head { background: var(--accent-soft); }
body.pub .paper thead th { background: #f3f5f8; }
body.pub .paper tbody tr:hover { background: #fafbfc; }
body.pub .toc a:hover { background: #f3f5f8; }

/* author box at the foot of the article */
body.pub .paper .byline__pic { background: var(--pub-ink); color: #fff; }
body.pub .paper .byline__who a { border-bottom: 2px solid #b9dcc5; }
body.pub .paper .byline__who a:hover { border-bottom-color: var(--pub-cta); }
body.pub .paper .byline__meta em { color: var(--pub-accent); }
body.pub .tag-own { color: #fff; background: var(--pub-cta); }

/* focus rings */
body.pub .paper :focus-visible, body.pub .btn:focus-visible { outline: 2.5px solid var(--pub-cta); outline-offset: 3px; }

/* calculators and open FAQ items */
body.pub .calcverdict--ok { border-color: #b9dcc5; color: #0f5a30; }
body.pub .calcf input[type="number"]:focus, body.pub .calctable input:focus { border-color: var(--pub-cta); box-shadow: 0 0 0 3px rgba(21,112,61,.2); }
body.pub .faq summary::after { color: var(--pub-cta); }

/* close button: small and quiet, so the form is the focus, not the exit */
body.pub .leadmodal__x {
  top: 14px; right: 14px; width: 28px; height: 28px;
  border: 0; background: transparent; color: #a3acbb; box-shadow: none;
}
body.pub .leadmodal__x svg { width: 13px; height: 13px; }
body.pub .leadmodal__x:hover { background: var(--pub-tint); color: var(--pub-ink-2); }
body.pub .leadmodal__x:focus { outline: none; }
body.pub .leadmodal__x:focus-visible { outline: 1.5px solid var(--pub-line-2); outline-offset: 1px; }
.leadmodal__ttl:focus { outline: none; }

/* ==========================================================================
   Article intro with drop cap
   ========================================================================== */
body.pub .paper p.lede { margin: 0 0 40px; }   /* same size, font and colour as the body copy */
body.pub .paper p.lede::first-letter {
  float: left; font-family: "Times New Roman", Times, "Liberation Serif", Georgia, serif;
  font-weight: 400; font-style: normal; color: var(--pub-ink);
  font-size: 5.9em; line-height: .74; margin: .055em .07em 0 -.03em;
}

/* ==========================================================================
   Key points: numbered rows, bold lead line, thin rules, one dark border
   ========================================================================== */
.keypoints {
  background: #fafdfb;                 /* the summary mint, about 70% lighter */
  border: 1px solid #cfe7d7; border-left: 5px solid var(--pub-cta); border-radius: 12px;
  padding: 24px 30px 8px; margin: 0 0 32px;
}
.keypoints__ttl { display: block; font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pub-cta); margin-bottom: 6px; }
body.pub .paper .keypoints__list { list-style: none; margin: 0; padding: 0; counter-reset: kp; }
body.pub .paper .keypoints__list li {
  counter-increment: kp; position: relative; margin: 0; padding: 16px 0 16px 52px;
  font-size: 1.08rem; line-height: 1.62; color: var(--pub-ink-2); border-bottom: 1px solid #dcebe1;
}
body.pub .paper .keypoints__list li:last-child { border-bottom: 0; }
body.pub .paper .keypoints__list li::before {
  content: counter(kp, decimal-leading-zero); position: absolute; left: 0; top: 16px;
  font-family: var(--display); font-weight: 800; color: var(--pub-cta); font-size: 1.08rem;
}
body.pub .paper .keypoints__list strong { color: var(--pub-ink); font-weight: 700; }
body.pub .paper .keypoints__list a { color: var(--pub-ink); border-bottom: 2px solid var(--pub-cta); }
body.pub .paper .keypoints__list a:hover { color: var(--pub-cta); }

@media (max-width: 640px) {
  .keypoints { padding: 20px 18px 4px 16px; }
  body.pub .paper .keypoints__list li { padding-left: 40px; }
}
