/* ==========================================================================
   c-articles.css: style C for the pages NOT rebuilt in Stage 1 (Stage 2, 2 Nov 2026)
   Loaded LAST on: blog posts (both templates) and category indexes, blog.html, the /c/
   candlestick pages, glossary, free samples and the three *-sample pages, companion pages,
   search, errata, videos, thank-you, 404 and the held pivot pages.
   It sits on top of the old page CSS (v3-content.css, v3-blog.css, css/pages/*.css) and pulls
   it into the C system (tt-c.css): headline weight 500, no ALL-CAPS labels, no italic accent
   words, no grid-paper heroes or gradients, no lifting shadowed cards, pill buttons, the
   navy closing band as a rounded panel, one reading measure. Page layouts stay as they were.
   Selectors repeat the old ones' weight (":root.v3 body ...") so this file wins by order;
   !important only where the old file used it.
   Contents
     1  Shared type and labels          5  Blog index (blog.html)
     2  Heroes and bands                6  Candlestick pages (/c/)
     3  Blog posts                      7  Glossary
     4  Category indexes                8  Samples, companion, search, 404, thank-you, videos
   ========================================================================== */

/* 1  Shared type and labels ------------------------------------------------ */
:root.v3 body main :is(h1, h2) { font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; }
:root.v3 body main :is(h1, h2) em, :root.v3 body main .display em { font-style: normal !important; color: inherit !important; }
:root.v3 body main h3 { font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
:root.v3 body main h4 { font-family: var(--sans); font-weight: 600; letter-spacing: 0; text-transform: none; }
:root.v3 body .container { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* v3-content.css makes every <strong> navy (":root.v3 body strong"); on navy that hid
   "Risk warning." in the C footer of every Stage 2 page. Bold inherits on dark ground. */
:root.v3 body :is(.c-foot, .c-panel.navy, .cta-section, section.cta, .sp-end, .cp-end, .vd-read, .article-cta) :is(strong, b) { color: inherit; }
:root.v3 body .c-foot .c-legal p :is(strong, b) { color: #fff; }

/* the old small labels were ALL CAPS with wide tracking: sentence case, as in tt-c */
:root.v3 body :is(.hero-category, .related-card-category, .blog-card-category, .nav-direction, .share-label,
  .bl-feature-meta, .bl-post-cat, .bl-cat-n, .gl-top-stat span, .gl-term-ex span, .result-category,
  .search-count, .sr-cats span, .nf-search label, .vd-level, .vd-screen-title small, .vd-where,
  .cp-pdf span, .cp-pdf em, .sp-side h3, .sp-side-h, .tl-out-label, .tl-how h3, .article-count) {
  text-transform: none !important; letter-spacing: 0 !important;
}
:root.v3 body :is(.hero-category, .related-card-category, .blog-card-category, .bl-post-cat, .result-category) {
  font: 600 var(--fs-s)/1.4 var(--sans) !important; color: var(--slate) !important; background: none !important; padding: 0 !important;
}
:root.v3 body :is(.hero-category, .blog-card-category, .articles-section .blog-card-category)::before { display: none !important; }
:root.v3 body .nav-direction { font-size: var(--fs-s); font-weight: 600; color: var(--slate); }

/* links and focus as in tt-c */
:root.fam-blog body :is(.article-body, .article-content) a:not([class*="btn"]) { color: var(--link) !important; }
:root.v3 body :is(.bl-risk, .gl-risk, .c-riskline) a { color: inherit !important; text-decoration: underline; }
:root.v3 body :focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

/* buttons: the old square buttons become the C pill */
:root.v3 body main :is(.btn-cta, .btn-subscribe, .btn-amazon, .sp-btn, .sp-btn-out, .cp-btn, .cp-btn-out, a.btn, button.btn) {
  border-radius: var(--r-pill) !important; min-height: 48px; padding: 12px 22px; display: inline-flex; align-items: center;
  justify-content: center; gap: 10px; font: 600 .97rem/1.2 var(--sans); text-decoration: none; transform: none !important; box-shadow: none !important;
}

/* the one-line risk warning in a band or under a button row */
:root.v3 body .c-riskline { font-size: var(--fs-s); line-height: 1.55; color: var(--slate); max-width: 46rem; margin: 18px 0 0; }

/* byline with the portrait (V16) */
.c-byline { display: inline-flex; align-items: center; gap: 10px; }
.c-byline-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.c-byline a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule-2); }
.c-byline a:hover { border-bottom-color: var(--navy); }

/* 2  Heroes and bands ------------------------------------------------------ */
/* no grid-paper lines, no glows: white paper with one hairline */
:root.v3 body :is(.article-hero, .category-hero, .page-header, .bl-top, .gl-top, .sp-top, .cp-top, .nf-top, .sr-top,
  .ty-top, .tl-top, .vd-top, .wbk-top, [class$="-hero"])::before { display: none !important; }
:root.v3 body :is(.article-hero, .category-hero, .page-header, .bl-top, .gl-top, .sp-top, .cp-top, .nf-top, .sr-top, .ty-top, .tl-top) {
  background: #fff !important; border-bottom: 1px solid var(--rule);
}

/* the closing band: a navy panel inside the page width, as section.cta in tt-c */
:root.v3 body :is(.cta-section, section.cta) {
  background: none !important; padding: var(--space) 0 0 !important; border: 0 !important;
}
:root.v3 body :is(.cta-section, section.cta) > .container,
:root.v3 body :is(.cta-section, section.cta) > .wrap {
  background: var(--navy); color: var(--on-navy); border-radius: var(--r-l); padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px);
  max-width: calc(var(--wrap) - 2 * var(--gutter));
}
:root.v3 body :is(.cta-section, section.cta) h2 { color: #fff; font-size: var(--fs-h2); margin: 0 0 12px; max-width: 26ch; }
:root.v3 body :is(.cta-section, section.cta) p { color: var(--on-navy) !important; max-width: 44rem; }
:root.v3 body :is(.cta-section, section.cta) em { font-style: normal; color: #fff; }
:root.v3 body :is(.cta-section, section.cta) .c-riskline { color: var(--on-navy-2) !important; margin-top: 22px; }
:root.v3 body :is(.cta-section, section.cta) .container::after { content: none !important; display: none !important; }
:root.v3 body :is(.cta-section, section.cta) :is(a.btn-cta, a.btn-primary) {
  background: #fff !important; color: var(--navy) !important; border: 2px solid #fff !important; margin: 0 10px 10px 0 !important;
}
:root.v3 body :is(.cta-section, section.cta) :is(a.btn-cta.btn-cta-secondary, a.btn-ghost, a.btn-secondary) {
  background: transparent !important; color: #fff !important; border: 2px solid #fff !important;
}
:root.v3 body :is(.cta-section, section.cta) a:is(.btn-cta, .btn-primary, .btn-ghost, .btn-secondary):hover { background: var(--navy-2) !important; color: #fff !important; }
:root.v3 body :is(.cta-section, section.cta) a:not([class*="btn"]) { color: #fff; }

/* 3  Blog posts ------------------------------------------------------------ */
:root.fam-blog body .article-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 44px); }
:root.fam-blog body .article-hero .hero-category { display: block; margin: 0 0 12px; }
:root.fam-blog body .hero-title { font-size: var(--fs-h1); line-height: 1.08; font-weight: 500; max-width: 20ch; margin: 0 0 16px; }
:root.fam-blog body .hero-description { font-size: var(--fs-l); line-height: 1.55; color: var(--slate); max-width: 38rem; }
:root.fam-blog body .hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); max-width: 38rem; }
:root.fam-blog body .hero-meta-item { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-s); color: var(--slate); }
:root.fam-blog body .hero-meta-item svg { color: var(--slate); }

:root.fam-blog body .breadcrumb-section { border-bottom: 1px solid var(--rule); padding: 10px 0; }
:root.fam-blog body .breadcrumb-section .breadcrumb a { color: var(--slate); }

/* long-form reading column: the book page measure */
:root.fam-blog body main.container { padding-top: clamp(32px, 4vw, 56px); padding-bottom: 0; }
:root.fam-blog body :is(.article-body, .article-content) { max-width: 42rem; font-size: 1.0625rem; line-height: 1.75; color: #22374C; }
:root.fam-blog body :is(.article-body, .article-content) > p:first-child,
:root.fam-blog body .article-content > .article-meta + p { font-size: var(--fs-l); line-height: 1.6; color: var(--navy); }
:root.fam-blog body :is(.article-body, .article-content) h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2rem); line-height: 1.18; margin: 2.4em 0 .6em; max-width: none;
}
:root.fam-blog body :is(.article-body, .article-content) h2::before { width: 40px; height: 3px; background: var(--signal); margin-bottom: 18px; }
:root.fam-blog body :is(.article-body, .article-content) h3 { font: 600 1.25rem/1.35 var(--sans); margin: 1.8em 0 .5em; color: var(--navy); }
:root.fam-blog body :is(.article-body, .article-content) h4 {
  font: 600 1.0625rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--navy); margin: 1.6em 0 .4em;
}
:root.fam-blog body :is(.article-body, .article-content) li::marker { color: var(--slate); }
:root.fam-blog body :is(.article-body, .article-content) a:not([class*="btn"]) { color: var(--link); text-decoration-color: currentColor; }
:root.fam-blog body :is(.article-body, .article-content) blockquote { font-style: normal; font-family: var(--serif); border-left-color: var(--signal); }

/* tables: a scroll region on phones, no column hidden */
:root.fam-blog body .c-tablewrap { margin: 28px 0 32px; overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-s); }
:root.fam-blog body .c-tablewrap:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
:root.fam-blog body :is(.article-body, .article-content) .c-tablewrap table {
  display: table; width: 100%; max-width: none; margin: 0; border: 0; overflow: visible; font-size: .9375rem;
}
:root.fam-blog body :is(.article-body, .article-content) th { background: var(--sky); color: var(--navy); font-size: var(--fs-s); letter-spacing: 0; }

/* code: the fences rebuilt in Stage 2 (P2-1) */
:root.fam-blog body :is(.article-body, .article-content) pre {
  border-radius: var(--r-s); background: var(--navy); border-color: var(--navy); box-shadow: none;
}
:root.fam-blog body :is(.article-body, .article-content) pre:has(code[class*="language-"])::before { letter-spacing: 0; text-transform: none; font-size: 12px; }

/* callouts: one quiet panel style; the colour bar says what kind */
:root.fam-blog body :is(.article-body, .article-content) :is(.warning-box, .tip-box, .key-takeaway, .pro-box, .con-box, .info-box, .example-box, .verdict-box, .pattern-box, .emotion-box) {
  border: 0 !important; border-inline-start: 4px solid var(--signal) !important; border-radius: 0 var(--r-m) var(--r-m) 0 !important; background: var(--sky-2) !important;
}
:root.fam-blog body :is(.article-body, .article-content) :is(.warning-box, .con-box) { border-inline-start-color: #B3261E !important; background: #FBF3F2 !important; }
:root.fam-blog body :is(.article-body, .article-content) :is(.tip-box, .pro-box, .key-takeaway, .verdict-box) { border-inline-start-color: var(--b2) !important; background: var(--b2-soft) !important; }
:root.fam-blog body :is(.article-body, .article-content) .emotion-box { border-inline-start-color: var(--b3) !important; background: var(--b3-soft) !important; }
:root.fam-blog body :is(.article-body, .article-content) .formula-box { border-radius: var(--r-m) !important; border-left-color: var(--signal) !important; }
:root.fam-blog body .article-body h2#key-takeaways + :is(ul, ol) { border: 0; border-radius: var(--r-m); background: var(--b2-soft); border-top: 0; }
/* the article risk box (full warning, kept word for word) */
:root.fam-blog body :is(.article-body, .article-content) .disclaimer {
  border: 1px solid var(--rule) !important; border-inline-start: 4px solid #B3261E !important; border-radius: 0 var(--r-s) var(--r-s) 0;
  color: var(--slate); background: #fff !important;
}

/* older template (blog/*.html): meta line */
:root.fam-blog body .article-content .article-meta { align-items: center; color: var(--slate); }
:root.fam-blog body .article-content .article-cta { border-radius: var(--r-l); border-left: 0; }
:root.fam-blog body .article-content .article-cta .btn { border-radius: var(--r-pill); }
:root.fam-blog body .article-content .related-list a::after { content: none; }

/* prev / next and related links: plain rows, no lifting cards */
:root.fam-blog body .article-nav { max-width: 42rem; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
:root.fam-blog body .article-nav .nav-link { border: 1px solid var(--rule); border-radius: var(--r-m); background: #fff; box-shadow: none !important; transform: none !important; }
:root.fam-blog body .article-nav .nav-link:hover { border-color: var(--signal); }
:root.fam-blog body .nav-title { font: 600 1.0625rem/1.35 var(--sans); color: var(--navy); }
:root.fam-blog body .related-section { max-width: 42rem; }
:root.fam-blog body .related-title { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; }
:root.fam-blog body .related-section .related-grid { gap: 0; grid-template-columns: 1fr !important; border-top: 1px solid var(--rule); }
:root.fam-blog body .related-card {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; padding: 16px 0; border: 0 !important;
  border-bottom: 1px solid var(--rule) !important; border-radius: 0; background: none !important; box-shadow: none !important; transform: none !important;
  text-decoration: none;
}
:root.fam-blog body .related-card-category { grid-column: 1 / -1; margin: 0 !important; }
:root.fam-blog body .related-card-title { font: 600 1.0625rem/1.4 var(--sans) !important; margin: 0 !important; color: var(--link) !important; }
:root.fam-blog body .related-card:hover .related-card-title { color: var(--navy) !important; text-decoration: underline; }
:root.fam-blog body .related-card-meta { font-size: var(--fs-s); color: var(--slate); }

/* sidebar: quiet list + one sky panel (no navy box, no sticky) */
:root.fam-blog body .main-content { gap: clamp(40px, 6vw, 88px); }
:root.fam-blog body .sidebar-widget { border: 0; border-top: 3px solid var(--navy); border-radius: 0; padding: 18px 0 8px; background: none; box-shadow: none; }
:root.fam-blog body .sidebar-title { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; border: 0; padding: 0; margin: 0 0 6px; }
:root.fam-blog body .sidebar-list a { color: var(--link); text-decoration: none; }
:root.fam-blog body .sidebar-list a:hover { text-decoration: underline; color: var(--navy); }
:root.fam-blog body .sidebar-widget:has(.btn-subscribe) {
  background: var(--sky) !important; border: 0 !important; border-radius: var(--r-l); padding: 24px !important; margin-top: 32px;
}
:root.fam-blog body .sidebar-widget:has(.btn-subscribe) .sidebar-title { color: var(--navy) !important; }
:root.fam-blog body .sidebar-widget:has(.btn-subscribe) p { color: var(--navy) !important; font-size: var(--fs-s) !important; }
:root.fam-blog body .sidebar-widget .btn-subscribe { width: 100%; background: var(--navy) !important; color: #fff !important; border: 2px solid var(--navy) !important; }
:root.fam-blog body .sidebar-widget .btn-subscribe:hover { background: var(--navy-2) !important; }

/* 4  Category indexes (blog/<topic>/) -------------------------------------- */
:root.fam-blog body .category-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
:root.fam-blog body .category-hero .hero-text::before { content: none !important; display: none !important; }
:root.fam-blog body .category-hero h1 { font-size: var(--fs-h1); font-weight: 500; }
:root.fam-blog body .category-hero .hero-text p { color: var(--slate); font-size: var(--fs-l); }
:root.fam-blog body .category-hero .article-count { border-radius: var(--r-pill); background: var(--sky); border: 0; color: var(--navy); }
:root.fam-blog body .category-hero .article-count::before { display: none; }
:root.fam-blog body .category-hero .breadcrumb a { color: var(--slate); }
:root.fam-blog body .articles-section { padding: clamp(32px, 4vw, 56px) 0 0; }
:root.fam-blog body .articles-section .blog-card {
  border: 1px solid var(--rule); border-radius: var(--r-m); background: #fff; box-shadow: none !important; transform: none !important; transition: border-color .15s;
}
:root.fam-blog body .articles-section .blog-card::before { display: none; }
:root.fam-blog body .articles-section .blog-card:hover { border-color: var(--signal); }
:root.fam-blog body .articles-section .blog-card h3 { font: 600 1.1875rem/1.35 var(--sans); }
:root.fam-blog body .articles-section .blog-card p { color: var(--slate); }
:root.fam-blog body .articles-section .blog-card .read-more { color: var(--link); font-weight: 600; }

/* 5  Blog index (blog.html) ------------------------------------------------ */
:root.page-blog body .bl-top { padding: clamp(36px, 5vw, 64px) 0 clamp(36px, 5vw, 56px); }
:root.page-blog body :is(.bl-feature, [class*="bl-feature"]) { box-shadow: none !important; border-left: 0 !important; border-radius: var(--r-l); }
:root.page-blog body .bl-feature svg, :root.page-blog body [class*="bl-feature"] svg[class*="line"] { display: none; }
:root.page-blog body .bl-post { border-radius: var(--r-m); box-shadow: none !important; transform: none !important; }
:root.page-blog body .bl-post:hover { border-color: var(--signal) !important; }
:root.page-blog body .bl-post-cat::before, :root.page-blog body [class*="bl-cat"]::before { display: none !important; }
:root.page-blog body :is(.bl-filter, .bl-filters) :is(a, button) { border-radius: var(--r-pill); }
:root.page-blog body .bl-risk { font-size: var(--fs-s); color: var(--slate); }

/* 6  Candlestick pages (/c/): css/pages/candle.css already uses the C tokens; the shared rules
   above (headline weight, hero, closing band) are all it needs. */

/* 7  Glossary --------------------------------------------------------------- */
:root.page-glossary body .gl-top { padding: clamp(36px, 5vw, 64px) 0 clamp(32px, 4vw, 48px); }
:root.page-glossary body .gl-letter-head span[aria-hidden] { font-weight: 500; color: var(--navy); }
:root.page-glossary body :is(.gl-term-def, .gl-term-ex) { font-family: var(--sans); }
:root.page-glossary body .gl-term-name { font: 600 1.1875rem/1.3 var(--sans); }
:root.page-glossary body .gl-nav, :root.page-glossary body [class*="gl-az"] { box-shadow: none !important; }
:root.page-glossary body .gl-term-ex { border-radius: 0 var(--r-s) var(--r-s) 0; }
:root.page-glossary body .gl-risk { font-size: var(--fs-s); color: var(--slate); }

/* 8  Samples, companion, search, 404, thank-you, videos --------------------- */
/* the sample chapters keep the book's reading face (Iowan/Georgia stack in sample.css) */
:root.v3 body .fs-ch { font-family: var(--sans) !important; font-style: normal !important; color: var(--slate); }
:root.v3 body .sp-text h2::before { background: var(--signal); }
:root.v3 body .sp-text :is(h4, h5) { letter-spacing: 0 !important; text-transform: none !important; font-size: 1.0625rem !important; }
:root.v3 body :is(.sp-cover, .cp-cover, .cp-pdf, .sp-book img) { box-shadow: none !important; }
:root.v3 body :is(.sp-end, .cp-end, .vd-read) { background: var(--navy) !important; }
:root.v3 body .sr-row { box-shadow: none !important; border-radius: var(--r-pill); overflow: hidden; border-color: var(--rule-2); }
:root.v3 body .vd-player, :root.v3 body .vd-item { box-shadow: none !important; transform: none !important; }
:root.v3 body .vd-screen img, :root.v3 body .vd-thumb img { box-shadow: none; }
:root.v3 body .tl-risk { color: var(--slate) !important; }   /* held pivot pages: the band behind it is gone */
:root.v3 body .tl-risk a { color: var(--link); }
:root.v3 body .c-redirect { padding-bottom: var(--space); }

/* phones */
@media (max-width: 680px) {
  :root.fam-blog body .article-nav { grid-template-columns: 1fr; }
  :root.fam-blog body .hero-title { font-size: 2.125rem; }
  :root.v3 body :is(.cta-section, section.cta) > .container { border-radius: var(--r-m); margin-inline: 16px; padding-inline: 20px; }
  :root.fam-blog body .sidebar-column { grid-template-columns: 1fr; }
}
@media print {
  :root.v3 body :is(.cta-section, section.cta) > .container { background: none; color: #000; border: 1px solid #000; }
}

/* chrome guard: old page CSS (":root.v3 body h2", ".btn" sizes) must not reach the C header/footer */
:root.v3 body .c-foot h2 { font-family: var(--sans); font-weight: 600; letter-spacing: normal; }
:root.v3 body .c-mast .btn { font-size: .92rem; }
