/* Editorial pages (features, use cases, comparison, calculator, guides). Loaded after site.css.
   Read mode for guides: a 70ch column, hairline tables, quiet answer box. */
.c-hero-cta { margin-top: 1.75rem; }
.c-byline { margin: 1rem 0 0; color: var(--grey); font-size: .9375rem; }
.c-byline span { color: var(--stout); font-weight: 500; }
.c-hero-read { padding-bottom: 1.5rem; }
.c-hero-read .display-xl { max-width: 24ch; }
.c-body { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(56px, 6vw, 96px); }
.c-body-read { max-width: calc(72ch + 2 * var(--gutter)); margin-left: 0; }
@media (min-width: 1240px) { .c-body-read { margin-left: max(0px, calc((100vw - var(--wrap)) / 2 - var(--gutter))); } }

/* Short answer + table of contents */
.c-answer { margin: 0 0 2rem; padding: 1.25rem 1.5rem; background: var(--chalk); border-left: 3px solid var(--lime); border-radius: 0 var(--r-card) var(--r-card) 0; }
.c-answer-h { margin: 0 0 .4rem; font-size: .875rem; font-weight: 600; letter-spacing: 0; color: var(--grey); }
.c-answer p { margin: 0; font-size: 1.0625rem; }
.c-toc { margin: 0 0 2.5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--hair); border-radius: var(--r-card); }
.c-toc-h { margin: 0 0 .5rem; font-size: 1rem; font-weight: 600; }
.c-toc ol { margin: 0; padding-left: 1.25rem; display: grid; gap: .35rem; }
.c-toc a { color: var(--stout); text-decoration-color: var(--hair-strong); }

/* Sections */
.c-section { padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--hair); scroll-margin-top: 80px; }
.c-section:first-of-type { border-top: 0; }
.c-section.has-snippet { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .c-section.has-snippet { grid-template-columns: 1fr; } }
.c-prose { max-width: 70ch; }
.c-prose h2 { margin: 0 0 .85rem; font-family: var(--font-head); font-weight: 700; font-variation-settings: "opsz" 96; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.875rem); letter-spacing: -.015em; line-height: 1.15; text-wrap: balance; }
.c-prose h3 { margin: 1.75rem 0 .5rem; font-family: var(--font-head); font-weight: 600; font-variation-settings: "opsz" 32; font-size: 1.125rem; }
.c-prose p, .c-prose li { color: #2E2B27; }
.c-prose ul, .c-prose ol { margin: 0 0 1em; padding-left: 1.25rem; display: grid; gap: .45rem; }
.c-prose a { color: var(--stout); text-decoration-color: rgba(43, 75, 255, .5); text-decoration-thickness: 1px; }
.c-prose a:hover { text-decoration-color: var(--cobalt); }
.c-prose blockquote { margin: 1.25rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--hair-strong); color: var(--grey); }
.c-table { width: 100%; overflow-x: auto; margin: 1.25rem 0; -webkit-overflow-scrolling: touch; }
.c-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9375rem; }
.c-table th, .c-table td { padding: .7rem .75rem .7rem 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.c-table thead th { font-size: .875rem; font-weight: 600; color: var(--grey); border-bottom-color: var(--hair-strong); }
.c-table tbody th { font-weight: 600; }
.c-snippet { display: flex; justify-content: center; min-width: 0; }
.c-snippet .board-snippet { width: 100%; }

/* Snippet helpers (house theme variables via .mt-anchor / .mt-casa) */
.cs-gap { margin-top: 1rem; }
.cs-list { display: grid; gap: 0; padding: .5rem 1.25rem; }
.cs-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.cs-row:last-child { border-bottom: 0; }
.cs-row.is-off .cs-name { color: var(--muted); }
.cs-name { margin: 0; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9375rem; }
.cs-name .icon { width: 18px; height: 18px; color: var(--muted); }
.cs-sub { margin: .1rem 0 0; color: var(--muted); font-size: .8125rem; }
.cs-price { margin: 0; font-weight: 500; white-space: nowrap; }
.cs-price s { color: var(--muted); font-weight: 400; font-size: .8125rem; }
.cs-badge { display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--primary); color: var(--on-primary); font-size: .75rem; font-weight: 500; }
.cs-badge .icon { width: 14px; height: 14px; }
.cs-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--surface-3); color: var(--muted); font-size: .6875rem; font-weight: 500; }
.cs-switch { position: relative; flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--line-strong); }
.cs-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.cs-switch.is-on { background: var(--primary); }
.cs-switch.is-on::after { left: 19px; }
.cs-note { margin: 0; padding: .75rem .9rem; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: .8125rem; }
.cs-cards { position: relative; display: flex; justify-content: center; width: 100%; }
.cs-cards .tent { position: relative; transform: none; }

/* Key facts, FAQ, related */
.c-facts { margin: 0 0 2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--hair); border-radius: var(--r-card); background: var(--white); }
.c-facts .h3 { margin-bottom: .75rem; }
.c-facts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.c-facts-list li { display: flex; gap: .6rem; align-items: flex-start; }
.c-facts-list .icon { margin-top: .15em; color: #5E7F00; }
.c-body-read .c-facts { margin-top: 2.5rem; }
.c-faqs { padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--hair); }
.c-faqs .display-m { margin-bottom: 1.25rem; }
.c-related { margin-top: clamp(32px, 4vw, 56px); padding-top: 1.5rem; border-top: 1px solid var(--hair); }
.c-related ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .25rem 2rem; }
.c-related .text-link { color: var(--stout); }

/* Guides hub */
.c-guide-list { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.c-guide-card { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--hair); border-radius: var(--r-card); background: var(--white); }
.c-guide-card .h3 { margin: 0 0 .5rem; }
.c-guide-card .h3 a { text-decoration: none; }
.c-guide-card .h3 a:hover { text-decoration: underline; }
.c-guide-card p { margin: 0 0 .75rem; color: var(--grey); font-size: .9375rem; }
.c-guide-meta { margin-top: auto !important; font-size: .8125rem !important; }

/* Calculator */
.calc { margin: 0 0 2.5rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--hair); border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow); }
.calc .h3 { margin-bottom: 1rem; }
.calc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
@media (max-width: 640px) { .calc-form { grid-template-columns: 1fr; } }
.calc-field { display: grid; gap: .35rem; align-content: start; }
.calc-field label { font-weight: 500; font-size: .9375rem; }
.calc-in { position: relative; display: flex; align-items: center; }
.calc-in input { width: 100%; height: 48px; padding: 0 .9rem; font: inherit; font-variant-numeric: tabular-nums; border: 1px solid var(--hair-strong); border-radius: var(--r-btn); background: var(--white); }
.calc-in.is-money input { padding-left: 1.7rem; }
.calc-in.is-money span { position: absolute; left: .85rem; color: var(--grey); }
.calc-field.has-error input { border-color: var(--error); }
.calc-hint { font-size: .8125rem; color: var(--grey); }
.calc-actions { grid-column: 1 / -1; }
.calc-result { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: 12px; background: var(--chalk); }
.calc-msg { margin: 0; color: var(--grey); }
.calc-dl { margin: 0; display: grid; gap: .1rem; }
.calc-dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--hair); }
.calc-dl dt { color: #3B3833; }
.calc-dl dd { margin: 0; font-weight: 600; white-space: nowrap; }
.calc-dl .calc-net { border-bottom: 0; font-size: 1.125rem; }
.calc-disclaimer { display: flex; gap: .5rem; align-items: flex-start; margin: 1rem 0 0; font-size: .875rem; color: var(--grey); }
.calc-disclaimer .icon { width: 18px; height: 18px; margin-top: 1px; flex: none; }
