/* Insights: the index and each article. Loaded after styles.css on those pages only. */
.ins-hero .wrap{max-width:860px}
.ins-hero h1{max-width:16em}
.ins-topics{display:flex;flex-wrap:wrap;gap:8px;margin-top:-4px}

.art-head{padding-top:56px;padding-bottom:8px}
.art-head h1{font:700 clamp(32px,4.6vw,48px)/1.08 var(--f-head);letter-spacing:-.025em;margin-bottom:18px;max-width:18em}
.art-head .lede{margin-bottom:14px}
.art-crumb{font-size:14px;color:var(--muted);margin-bottom:18px}
.art-crumb a{color:var(--ink-2);text-decoration:none}
.art-crumb a:hover{text-decoration:underline}
.art-meta{font-size:14px;color:var(--muted)}
.art-grid{display:grid;grid-template-columns:minmax(0,680px);padding-top:32px;padding-bottom:96px}
.art-toc{font-size:14px}
.art-toc p{font-weight:600;margin-bottom:10px}
.art-toc ol{list-style:none;display:grid;gap:8px;border-left:2px solid var(--line);padding-left:14px}
.art-toc a{color:var(--muted);text-decoration:none}
.art-toc a:hover{color:var(--ink)}
.prose{font-size:18px;line-height:1.7;color:var(--ink-2)}
.prose > * + *{margin-top:18px}
.prose h2{font:700 27px/1.2 var(--f-head);letter-spacing:-.015em;color:var(--ink);margin-top:44px;scroll-margin-top:96px}
.prose h3{font:600 20px/1.3 var(--f-head);color:var(--ink);margin-top:28px}
.prose strong{color:var(--ink);font-weight:600}
.prose ul,.prose ol{padding-left:24px;display:grid;gap:8px}
.prose ul.check{list-style:none;padding-left:0}
.prose ul.check li{position:relative;padding-left:32px}
.prose ul.check li:before{content:"";position:absolute;left:0;top:.32em;width:18px;height:18px;border:1.6px solid var(--accent);border-radius:4px}
.art-cta{margin-top:48px!important;background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:24px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;box-shadow:var(--lift)}
.art-cta p{font:600 18px/1.35 var(--f-head);color:var(--ink);margin:0}
@media (max-width:860px){
  .art-head{padding-top:32px}
  .prose{font-size:17px}
}

/* Topic clusters: index sections, the guide's "In this guide", "More in" and "Other guides" */
.ins-sec{padding:8px 0 56px}
.ins-sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:28px;margin-bottom:20px}
.ins-sec-h h2{font:700 28px/1.2 var(--f-head);letter-spacing:-.015em}
.ins-sec-h p{color:var(--muted);font-size:15px;max-width:34em}
.ins-sec .ins-list{padding-bottom:0}
.ins-topic{display:inline-flex;align-items:center;gap:8px;padding:7px 12px 7px 14px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--ink);text-decoration:none;font-size:14px}
.ins-topic span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.ins-topic:hover{border-color:var(--ink-2)}
.ins-sec-h h2 a{color:inherit;text-decoration:none}
.ins-sec-h h2 a:hover{text-decoration:underline;text-underline-offset:5px}
.art-all{margin-top:14px;font-size:15px}
.ins-other .ins-topics{margin-top:0}
.art-part{margin-top:14px;font-size:15px;color:var(--muted)}
.art-part a{color:var(--ink);font-weight:600}
.art-inside,.art-more{margin-top:8px!important}
.art-more{margin-top:48px!important}
.art-more h2{margin-top:0!important;font-size:22px!important}
.art-inside-h{font:600 14px/1.3 var(--f-body,inherit);color:var(--muted);text-transform:none;margin-bottom:12px}
.art-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;margin-top:12px}
.art-cards .ins-card{padding:18px;gap:8px}
.art-cards .ins-card h3{font-size:17px}
.art-cards .ins-card p{font-size:14px;line-height:1.5}
.art-guides{margin-top:36px!important;font-size:16px}
.art-guides ul{padding-left:18px}
.prose blockquote{border-left:3px solid var(--accent);padding:4px 0 4px 18px;color:var(--ink);font-style:italic}
.prose code{font-family:var(--f-mono,monospace);font-size:.88em;background:var(--accent-wash);padding:1px 6px;border-radius:4px}


/* Article layout: one reading column, centred, with a side rail (contents, then the offer) on wide screens.
   Narrower screens get the contents folded above the text and the offer at the end only. */
.art .wrap{max-width:1180px}
.art-head,.art-grid{max-width:1084px;margin:0 auto}
.art-head > *{max-width:680px}
.art-toc-m{border:1px solid var(--line);border-radius:12px;background:var(--card);padding:12px 16px;font-size:15px}
.art-toc-m summary{cursor:pointer;font-weight:600;color:var(--ink)}
.art-toc-m ol{list-style:none;padding:10px 0 2px;display:grid;gap:6px}
.art-toc-m a{color:var(--muted);text-decoration:none}
.art-rail{display:none}
@media (min-width:1140px){
  .art-grid{grid-template-columns:minmax(0,680px) 300px;gap:104px}
  .art-toc-m{display:none}
  .art-rail{display:flex;flex-direction:column;gap:36px;position:sticky;top:104px;align-self:start;transition:opacity .4s ease}
  .art-rail.wait .offer{opacity:0;pointer-events:none}
  .art-rail .offer{transition:opacity .4s ease}
}

/* The offer: at the end of every article (inside its "how we do it" section), and under the contents in the rail */
.offer{border-radius:18px;padding:28px}
.offer p{margin:0}
.offer-end{background:var(--card);border:1px solid var(--line);box-shadow:var(--lift)}
.prose .offer-end{margin-top:32px!important}
.offer-h{font:700 21px/1.25 var(--f-head);color:var(--ink);letter-spacing:-.015em}
.offer-sub{font-size:15px;line-height:1.5;color:var(--muted);margin-top:8px!important}
.offer-f{display:flex;gap:8px;margin-top:20px;background:var(--ground);border:1.5px solid var(--ink-2);border-radius:12px;padding:5px}
.offer-f input[type=text]{flex:1;min-width:0;border:0;background:transparent;font:16px var(--f-body);height:46px;padding:0 12px;color:var(--ink)}
.offer-f input[type=text]:focus{outline:none}
.offer-f .btn{min-height:46px;white-space:nowrap}
.offer-price{font-size:14px;line-height:1.6;color:var(--ink-2);margin-top:14px!important}
.offer-sample{font-size:15px;margin-top:12px!important}
.offer-team{font-size:13px;color:var(--muted);margin-top:10px!important}
/* the rail card: dark, like the guide cards, with room to breathe */
.offer-rail{background:var(--ink);color:#f4f1ea;box-shadow:0 18px 40px rgba(20,18,14,.18)}
.offer-rail .offer-h{color:#fff;font-size:20px}
.offer-rail .offer-sub{color:rgba(244,241,234,.66)}
.offer-rail .offer-f{flex-direction:column;background:none;border:0;padding:0;gap:10px}
.offer-rail .offer-f input[type=text]{flex:none;height:48px;border-radius:12px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);color:#fff}
.offer-rail .offer-f input[type=text]::placeholder{color:rgba(244,241,234,.5)}
.offer-rail .offer-f input[type=text]:focus{border-color:rgba(255,255,255,.55)}
.offer-rail .btn-primary{width:100%;justify-content:center;min-height:48px;background:#fff;color:var(--ink);box-shadow:none}
.offer-rail .offer-price{color:rgba(244,241,234,.78);font-size:13px}
.offer-rail .offer-sample a{color:#fff;text-decoration-color:rgba(255,255,255,.4)}
.offer-rail .offer-team{color:rgba(244,241,234,.55)}
@media (max-width:520px){
  .offer{padding:22px}
  .offer-end .offer-f{flex-direction:column;background:transparent;border:0;padding:0}
  .offer-end .offer-f input[type=text]{flex:none;height:48px;border:1.5px solid var(--ink-2);border-radius:12px;background:var(--ground)}
  .offer-end .offer-f .btn{justify-content:center}
}
.prose .ins-card h3{margin-top:0}
@media (max-width:1139px){ .art-head,.art-grid{max-width:680px} }
.offer-also{font-size:13px;color:var(--muted);margin-top:6px!important}
.offer-also a{color:inherit}
.offer-rail .offer-also,.offer-rail .offer-also a{color:rgba(244,241,234,.6)}
@media (min-width:1140px){ .art-rail.calm .offer{opacity:0;pointer-events:none} }
/* keep the rail inside a laptop screen: the card carries only what decides */
.offer-rail .offer-sub,.offer-rail .offer-also,.offer-rail .offer-team{display:none}
.offer-rail{padding:24px}
.art-rail .art-toc ol{gap:6px}
.art-rail .art-toc{font-size:13.5px}
.offer-store{font-size:14px;margin-top:6px!important}
.offer-store a{color:var(--ink-2)}
.offer-price-s{display:none}
.offer-rail .offer-price{display:none}
.offer-rail .offer-price-s{display:block;font-size:13px;line-height:1.55;color:rgba(244,241,234,.78);margin-top:12px!important}
.offer-rail .offer-h{font-size:19px}
.offer-rail{padding:22px}
.offer-team a{color:inherit}
/* Tables in articles (pipe tables in the Markdown); scroll sideways inside their box on a phone, never the page */
.prose .tbl{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:var(--card)}
.prose table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.5}
.prose th,.prose td{text-align:left;vertical-align:top;padding:10px 14px;border-bottom:1px solid var(--line-2)}
.prose th{font-weight:600;color:var(--ink);background:var(--card-2,transparent);white-space:nowrap}
.prose tbody tr:last-child td{border-bottom:0}
.prose td:first-child{color:var(--ink);font-weight:500}
@media (max-width:640px){.prose table{font-size:14px;min-width:560px}}
/* Questions at the end of an article */
.prose .qa{padding:18px 0;border-bottom:1px solid var(--line)}
.prose .qa h3{font:600 19px/1.35 var(--f-head);letter-spacing:-.005em;margin:0 0 6px}
.prose .qa p{font-size:17px;margin:0}
