/* Layout scaffolding for the real multi-page site, on top of theme.css (brand tokens, badges, buttons). */

html, body { max-width: 100%; overflow-x: hidden; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 2px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.site-nav { display: flex; align-items: center; gap: 26px; flex-shrink: 0; }
.nav-toggle { display: none; flex-shrink: 0; }
.iconbtn svg { width: 20px; height: 20px; flex-shrink: 0; }
.header-inner .lockup { min-width: 0; flex-shrink: 1; overflow: hidden; }
.header-inner .lockup img { flex-shrink: 0; }

@media (max-width: 760px) {
  .site-nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 2px solid var(--line); flex-direction: column; align-items: flex-start; padding: 16px 20px 20px; gap: 16px; display: none; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .header-inner .lockup-sub { display: none; }
}

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-inner { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.hero h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.12; margin: 0; }
.hero p.lead { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 0; max-width: 560px; }
.hero-stats { display: flex; gap: 28px; margin-top: 8px; flex-wrap: wrap; }
.stat-num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 26px; color: var(--brand-deep); line-height: 1; }
.stat-label { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.search-box { display: flex; gap: 10px; max-width: 480px; margin-top: 6px; width: 100%; }
.search-box input { flex: 1; min-width: 0; border: 2px solid var(--ink); border-radius: 999px; padding: 0 18px; height: 48px; font-family: 'Poppins', sans-serif; font-size: 15px; background: var(--card); color: var(--ink); }
.search-box .iconbtn-search { flex-shrink: 0; width: 48px; height: 48px; min-height: 48px; padding: 0; }
.search-box .iconbtn-search svg { width: 20px; height: 20px; }
@media (max-width: 480px) {
  .search-box { flex-wrap: wrap; }
  .search-box input { flex-basis: 100%; }
  .search-box .btn { flex: 1; }
}

/* Section rhythm */
/* Only set top and bottom here: sections that also carry .wrap need to keep its left and right padding. */
section.block { padding-top: 36px; padding-bottom: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 22px; }

/* Claim card grid */
.claim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .claim-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .claim-grid { grid-template-columns: 1fr; } }

.claim-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); height: 100%; }
.claim-card .claim-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15.5px; line-height: 1.35; margin: 0; }
.claim-card .cat-row, .topic-claim-card .cat-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.eyebrow.also { opacity: .85; }
.topic-claim-card .cat-row { justify-content: space-between; }
.topic-claim-card .dots { margin-left: auto; }

/* Pillar chip rail (home) */
.pillar-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 700px) { .pillar-rail { grid-template-columns: repeat(2, 1fr); } }
/* Desktop shows every category. Phones show five plus a "More categories" card. */
.pillar-card.pillar-more { display: none; }
@media (max-width: 700px) { .pillar-card.pillar-extra { display: none; } .pillar-card.pillar-more { display: flex; } }
.pillar-more .pic.more { background: var(--surface-2, #eee); }
.pillar-more .pic.more svg { fill: var(--ink); }
.pillar-card { padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-decoration: none; color: var(--ink); }
.pillar-card .pic { width: 40px; height: 40px; }
.pillar-card .pic svg { width: 22px !important; height: 22px !important; }
.pillar-card .pname { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 15px; }
.pillar-card .pcount { font-size: 12.5px; color: var(--ink-soft); }

/* Browse: category navigation (click = go view that category, not a toggle) */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.cat-nav .chip { cursor: pointer; }
.cat-nav .chip.on { background: var(--ink); color: var(--paper); }

/* Browse: verdict filter, visually distinct from category nav so it reads as a filter, not a section */
.filter-row { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 2px dashed var(--line); border-radius: 14px; }
.filter-row .filter-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.filter-row .funnel { display: inline-flex; width: 14px; height: 14px; }
.filter-row .funnel svg { width: 14px; height: 14px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { cursor: pointer; font-size: 12px; padding: 6px 12px 6px 10px; background: transparent; border-style: dashed; color: var(--ink-soft); }
.filter-chip.on { background: var(--ink); color: var(--paper); border-style: solid; }
.result-count { font-size: 13px; color: var(--ink-soft); margin: 4px 0 16px; }
.empty-state { padding: 40px 0; text-align: center; color: var(--ink-soft); display: none; }

/* Verdict scale legend (how-we-rate + home) */
.vscale-row { display: flex; align-items: center; gap: 10px; margin: 14px 0 18px; }
.vscale-row .vscale { flex: 1; }
.legend-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 900px) { .legend-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .legend-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .legend-grid { grid-template-columns: 1fr; } }
.legend-off-grid { display: grid; grid-template-columns: repeat(2, minmax(0,340px)); gap: 12px; margin-top: 10px; }
@media (max-width: 620px) { .legend-off-grid { grid-template-columns: 1fr; } }
.legend-card { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.legend-card p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }

/* Claim detail */
.claim-detail { padding-top: 30px; padding-bottom: 60px; }
.claim-detail-inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 13.5px; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.claim-detail h1 { font-size: clamp(24px, 4vw, 32px); line-height: 1.2; margin: 0; }
.verdict-panel { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.info-panel { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.info-panel .eyebrow { color: var(--brand-deep); }
.info-panel.safety { border-color: var(--v-mfalse-line); }
.info-panel.safety .eyebrow { color: var(--v-mfalse-text); }
.sources-list { display: flex; flex-direction: column; gap: 10px; }
.source-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; }
.source-item a { color: var(--brand-deep); font-weight: 600; text-decoration: none; }
.source-item a:hover { text-decoration: underline; }
.meta-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 2px solid var(--line); padding-top: 16px; font-size: 13px; color: var(--ink-soft); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }

/* Footer */
.foot-inner { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 44px; padding-bottom: 44px; justify-content: space-between; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; max-width: 280px; min-width: 220px; flex-shrink: 0; }
.foot-col { min-width: 140px; }
.foot-tag { font-size: 13px; opacity: 0.75; margin: 0; }
.foot-col { display: flex; flex-direction: column; }

/* Suggest page */
/* 600px matches the content width of the centered hero column above it, so the form lines up with the heading. */
.suggest-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

/* ---- Card Format modules (claim detail) ---- */
.facts-panel { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.facts-panel .facts-text { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.confidence-row { display: flex; flex-direction: column; gap: 6px; }
.confidence-row .ev { font-size: 13px; }
.confidence-why { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }

.bigger-picture { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.bigger-picture .eyebrow { color: var(--ink-soft); }
.bigger-picture p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

.context-module { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; border-left: 4px solid var(--brand-deep); border-radius: 10px 16px 16px 10px; }
.context-module .eyebrow { color: var(--brand-deep); }
.context-module p { margin: 0; font-size: 14px; line-height: 1.5; }

.benefit-module { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; background: var(--true-bg); border-color: var(--brand-deep); }
.benefit-module .question { margin: 0; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15.5px; color: var(--ink); }
.benefit-module p.answer { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }

.care-module { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; border-color: var(--v-mfalse-line); }
.care-module .eyebrow { color: var(--v-mfalse-text); }
.care-module .care-item { margin: 0; font-size: 14px; line-height: 1.55; }
.care-module .care-item b { font-weight: 800; }

.meaning-module { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.meaning-module .eyebrow { color: var(--brand-deep); }
.meaning-module p { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 600; }

.nextstep-module { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.nextstep-module p { margin: 0; font-size: 14.5px; line-height: 1.5; }

/* ---- Similar claims (claim detail page) ---- */
.topic-claim-grid { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 860px) {
  .topic-claim-grid { display: grid; grid-template-columns: repeat(2, 1fr); align-items: stretch; }
}
.topic-claim-card { padding: 18px; display: flex; flex-direction: column; gap: 11px; text-decoration: none; color: var(--ink); }
.topic-claim-card .claim-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.3; margin: 0; }
.topic-claim-card .summary { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.topic-bottom-line { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.topic-bottom-line .eyebrow { color: var(--ink-soft); }
.topic-bottom-line p { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 600; }

/* Suggest a claim form extras */
.suggest-form .req { color: #C0392B; }
.suggest-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.suggest-form .btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Suggested next step block on claim pages: set apart from the verdict and evidence */
.hm-suggest { margin: 28px 0 8px; padding: 22px 22px 24px; border: 2px solid var(--brand); border-radius: 18px; background: linear-gradient(180deg, #EAF9E5, #F6FCF3); box-shadow: var(--shadow); }
.hm-suggest .ns-head { margin-bottom: 16px; }
.hm-suggest .ns-eyebrow { display: block; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 6px; }
.hm-suggest p { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.hm-suggest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 720px) { .hm-suggest ul { grid-template-columns: repeat(2, 1fr); } }
.hm-suggest .ns-item { height: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; text-decoration: none; color: var(--ink); box-shadow: 3px 3px 0 rgba(26,26,26,.12); }
.hm-suggest .ns-item:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(26,26,26,.18); }
.hm-suggest .ns-ico { flex: none; width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; }
.hm-suggest .t-nu .ns-ico { background: #DDF5D6; color: #1E6E1A; }
.hm-suggest .t-tool .ns-ico { background: #DCEBFB; color: #1F5FA8; }
.hm-suggest .t-mv .ns-ico { background: #FFE9C7; color: #9A5B00; }
.hm-suggest .t-road .ns-ico { background: #EADFFB; color: #5B2A9E; }
.hm-suggest .ns-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.hm-suggest .ns-title { font-size: 18px; font-weight: 800; line-height: 1.2; color: var(--brand-deep); }
.hm-suggest .ns-meta { font-size: 14px; color: var(--ink-soft); line-height: 1.3; }
.hm-suggest .paid-tag, .hm-suggest .free-tag { align-self: flex-start; margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; }
.hm-suggest .paid-tag { border: 1.5px solid var(--ink-soft); color: var(--ink-soft); }
.hm-suggest .free-tag { background: var(--brand); border: 1.5px solid var(--brand); color: #10261A; }
.hm-suggest .ns-arrow { flex: none; font-size: 22px; font-weight: 800; color: var(--brand-deep); }
:root[data-theme="dark"] .hm-suggest { background: linear-gradient(180deg, #1F3A1E, #1B2A1C); }
:root[data-theme="dark"] .hm-suggest .ns-item { border-color: var(--line); box-shadow: 3px 3px 0 rgba(0,0,0,.4); }
:root[data-theme="dark"] .hm-suggest .t-nu .ns-ico { background: #26422A; color: #9CE888; }
:root[data-theme="dark"] .hm-suggest .t-tool .ns-ico { background: #1F3350; color: #8EC1F5; }
:root[data-theme="dark"] .hm-suggest .t-mv .ns-ico { background: #46361A; color: #FFC04D; }
:root[data-theme="dark"] .hm-suggest .t-road .ns-ico { background: #33294D; color: #CDB9FB; }

/* ---- "See the evidence" link at the bottom right of every claim card ---- */
.card-go { margin-top: auto; align-self: flex-end; display: inline-flex; align-items: center; gap: 7px; padding-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--brand-deep); }
.card-go svg { width: 18px; height: 18px; transition: transform .15s ease; }
.claim-card:hover .card-go svg, .claim-card:focus-visible .card-go svg,
.topic-claim-card:hover .card-go svg, .topic-claim-card:focus-visible .card-go svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .card-go svg { transition: none; } }
