/* ==========================================================================
   Articles — hub, topic pages and article pages.
   Shared by custodycommander.com and courtbriefly.com (keep both copies
   identical); brand colors come from each site's styles.css tokens.
   ========================================================================== */

:root { --star: #f2b01e; --article-w: 45rem; --side-w: 19rem; }

/* ---------- Article hero ---------- */
.article-hero {
  background: radial-gradient(1200px 400px at 85% -10%, var(--accent-soft), transparent 60%), linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.6rem, 1rem + 2.5vw, 3.2rem) 0 clamp(1.8rem, 1rem + 3vw, 3.4rem);
}
.article-hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .article-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3.5rem; } }
.article-hero h1 { font-size: clamp(1.9rem, 1.35rem + 2.3vw, 3.05rem); letter-spacing: -0.025em; margin: 0.9rem 0 0.7rem; }
.article-dek { font-size: var(--fs-lg); color: var(--ink-soft); margin: 0 0 1.3rem; max-width: 40rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: var(--fs-xs); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-deep); text-decoration: underline; }
.cat-pill { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; padding: 0.32rem 0.8rem 0.32rem 0.6rem; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-deep); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em; text-decoration: none; }
.cat-pill svg { width: 16px; height: 16px; }
.cat-pill:hover { background: var(--accent); color: #fff; }
.byline { display: flex; align-items: center; gap: 0.75rem; font-size: var(--fs-sm); color: var(--muted); line-height: 1.35; }
.byline svg { border-radius: 9px; flex: none; }
.byline strong { display: block; color: var(--ink); font-weight: 650; }
.byline strong a { color: inherit; text-decoration: none; }
.byline span { display: block; }
.article-cover { margin: 0; }
.article-cover img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--navy-800); }

/* ---------- Layout ---------- */
.article-layout { display: grid; gap: 2.5rem; padding-block: clamp(1.8rem, 1rem + 2.5vw, 3rem) 1rem; }
@media (min-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, var(--article-w)) var(--side-w); justify-content: center; gap: 3.5rem; }
}
.article-main { min-width: 0; }
.article-side { display: none; }
@media (min-width: 1080px) {
  .article-side { display: block; position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: none; padding-bottom: 1rem; }
  .article-side::-webkit-scrollbar { display: none; }
  .toc-mobile { display: none; }
}

/* ---------- Quick answer ---------- */
.qa { position: relative; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 1.35rem 1.5rem 1.2rem; margin-bottom: 1.6rem; }
.qa-label { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0 0 0.5rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
.qa-label svg { width: 18px; height: 18px; }
.qa-answer { font-size: 1.12rem; line-height: 1.65; color: var(--ink); margin: 0 0 0.9rem; font-weight: 500; }
.qa-points { list-style: none; margin: 0; padding: 0.9rem 0 0; border-top: 1px dashed var(--line-strong); display: grid; gap: 0.5rem; }
.qa-points li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-soft); }
.qa-points svg { width: 19px; height: 19px; flex: none; margin-top: 0.15rem; color: var(--ok); }

/* ---------- Table of contents ---------- */
.toc p, .toc-mobile summary { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.7rem; }
.toc ol, .toc-mobile ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 0.15rem; }
.toc li, .toc-mobile li { counter-increment: toc; }
.toc a, .toc-mobile a { display: flex; gap: 0.6rem; padding: 0.32rem 0.6rem; border-radius: 8px; font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); text-decoration: none; border-left: 2px solid transparent; }
.toc a::before, .toc-mobile a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; font-size: 0.75rem; color: var(--line-strong); padding-top: 0.12rem; }
.toc a:hover, .toc-mobile a:hover { background: var(--accent-soft); color: var(--ink); }
.toc a.active { color: var(--ink); font-weight: 600; background: var(--accent-soft); border-left-color: var(--accent); }
.toc a.active::before { color: var(--accent-deep); }
.toc-mobile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-bottom: 1.6rem; }
.toc-mobile summary { cursor: pointer; margin: 0; list-style: none; display: flex; justify-content: space-between; }
.toc-mobile summary::after { content: "+"; font-size: 1.1rem; color: var(--accent); }
.toc-mobile[open] summary::after { content: "–"; }
.toc-mobile ol { margin-top: 0.7rem; }

/* ---------- Article body typography ---------- */
.article-body { font-size: 1.08rem; line-height: 1.78; color: var(--ink); }
.article-body > p:first-child { font-size: 1.17rem; color: var(--ink); }
.article-body p { margin: 0 0 1.15em; }
.article-body h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); margin: 2.3em 0 0.6em; scroll-margin-top: 90px; }
.article-body h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.32rem); margin: 1.7em 0 0.5em; scroll-margin-top: 90px; }
.article-body a:not(.btn), .article-faq a { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.article-body a:not(.btn):hover { color: var(--accent); }
.article-body .promo a.promo-link { text-decoration: none; }
.article-body .promo a.promo-link:hover { text-decoration: underline; }
.article-body .promo-feature a.btn-outline-light { color: #fff; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin: 0 0 1.3em; }
.article-body li { margin-bottom: 0.45em; }
.article-body li::marker { color: var(--accent); font-weight: 700; }
.article-body strong { color: var(--ink); }
.article-body blockquote { margin: 1.6em 0; padding: 0.4em 0 0.4em 1.3em; border-left: 4px solid var(--accent); color: var(--ink-soft); font-size: 1.12rem; font-style: italic; }
.article-body code { font-size: 0.9em; background: #f1eee7; border-radius: 5px; padding: 0.1em 0.35em; }

.article-body ul.checklist { list-style: none; padding: 1.1rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 0.6rem; }
.article-body ul.checklist li { display: block; position: relative; padding-left: 2rem; margin: 0; color: var(--ink); }
.article-body ul.checklist li::before { content: ""; position: absolute; left: 0; top: 0.28em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l2.9 2.9 6-6.3' stroke='%23fff' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

.article-body ol.step-list { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 0.9rem; }
.article-body ol.step-list > li { counter-increment: step; position: relative; margin: 0; padding: 1rem 1.2rem 1rem 3.7rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.article-body ol.step-list > li::before { content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--navy-800); color: #fff; font-weight: 800; font-size: 0.95rem; display: grid; place-items: center; line-height: 1; }
.article-body ol.step-list > li > strong:first-child { display: block; margin-bottom: 0.15rem; }

.article-body aside.tip, .article-body aside.caution { margin: 1.6em 0; padding: 1rem 1.2rem 1rem 3.3rem; border-radius: var(--radius); position: relative; font-size: 1rem; }
.article-body aside.tip { background: var(--ok-soft); border: 1px solid #c4e2d1; }
.article-body aside.caution { background: #fbeee9; border: 1px solid #f0cfc4; }
.article-body aside.tip::before, .article-body aside.caution::before { content: ""; position: absolute; left: 1.05rem; top: 1.1rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background-position: center; background-size: 100%; background-repeat: no-repeat; }
.article-body aside.tip::before { background-color: var(--ok); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); background-size: 70%; }
.article-body aside.caution::before { background-color: var(--warn); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v8M12 18h.01'/%3E%3C/svg%3E"); background-size: 80%; }
.article-body aside p:last-child { margin-bottom: 0; }

.article-body .example { margin: 1.6em 0; padding: 1.1rem 1.3rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--indigo); box-shadow: var(--shadow-sm); font-size: 1rem; }
.article-body .example p:last-child { margin-bottom: 0; }
.article-body .example-label { display: inline-block; margin: 0 0 0.6rem !important; padding: 0.15rem 0.6rem; border-radius: var(--radius-pill); background: #e9edf6; color: var(--indigo-deep); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

.table-scroll { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; min-width: 30rem; }
.article-body th { background: var(--navy-800); color: #fff; text-align: left; font-weight: 650; padding: 0.7rem 0.9rem; }
.article-body td { padding: 0.7rem 0.9rem; border-top: 1px solid var(--line); vertical-align: top; }
.article-body tbody tr:nth-child(even) td { background: #fbfaf7; }

/* ---------- FAQ ---------- */
.article-faq { margin-top: 2.6rem; }
.article-faq h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); scroll-margin-top: 90px; }
.article-faq .faq details > div p { margin: 0; font-size: 1rem; line-height: 1.7; }

/* ---------- Promos (house ads) ---------- */
.promo { --promo-pad: clamp(1.2rem, 0.8rem + 1.6vw, 2rem); }
.promo-stars { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.5rem; }
.promo-stars li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.97rem; line-height: 1.5; }
.promo-stars .star { width: 18px; height: 18px; flex: none; margin-top: 0.15rem; color: var(--star); filter: drop-shadow(0 1px 1px rgba(0,0,0,.12)); }
.promo-stars.two-col { grid-template-columns: 1fr; }
@media (min-width: 640px) { .promo-stars.two-col { grid-template-columns: 1fr 1fr; gap: 0.6rem 1.4rem; } }
.promo-brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 0.95rem; letter-spacing: -0.01em; color: var(--ink); }
.promo-brand svg { border-radius: 7px; }
.promo-brand.light { color: #fff; }
.promo-tool { display: inline-block; margin-left: 0.5rem; padding: 0.15rem 0.6rem; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-deep); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle; }
.promo-title { font-size: clamp(1.18rem, 1.05rem + 0.6vw, 1.42rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.015em; margin: 0.75rem 0 0.9rem; color: var(--ink); }
.promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.1rem; }
.promo-link { font-size: var(--fs-sm); font-weight: 600; color: var(--accent-deep); text-decoration: none; }
.promo-link:hover { text-decoration: underline; }
.promo-fine { font-size: var(--fs-xs); color: var(--muted); margin: 0.8rem 0 0; }
.promo-art svg, .promo-device svg, .promo-side-art svg { width: 100%; height: auto; display: block; }

/* Ad 1 — inline card after the intro */
.promo-inline { display: grid; gap: 1.2rem; align-items: center; margin: 2rem 0 2.2rem; padding: var(--promo-pad); border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(135deg, #fff 0%, #fff 45%, var(--accent-soft) 140%); box-shadow: var(--shadow-md); position: relative; overflow: hidden; font-size: 1rem; line-height: 1.55; }
.promo-inline::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--indigo-bright, var(--indigo))); }
.promo-inline .promo-art { max-width: 280px; justify-self: center; }
@media (min-width: 680px) { .promo-inline { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.8rem; } }
@media (max-width: 679px) { .promo-inline .promo-art { display: none; } }

/* Ad 2 — two-column feature panel mid-article */
.promo-feature { margin: 2.6rem 0; padding: var(--promo-pad); border-radius: var(--radius-lg); color: #c9d3e6; background: radial-gradient(600px 300px at 100% 0%, rgba(255,255,255,0.08), transparent 60%), linear-gradient(140deg, var(--navy-900) 0%, var(--navy-800) 100%); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 1rem; line-height: 1.6; }
.promo-feature { container-type: inline-size; }
.promo-feature-grid { display: grid; gap: 1.4rem; align-items: center; margin-bottom: 1.4rem; }
.promo-feature-grid .promo-stars { margin: 0; }
@container (min-width: 560px) { .promo-feature-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; } }
.promo-eyebrow { margin: 1rem 0 0.3rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--star); }
.promo-title-lg { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2.05rem); max-width: 30ch; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: #fff; margin: 0 0 0.8rem; }
.promo-copy { margin: 0 0 1.1rem; }
.promo-feature .promo-stars li { color: #fff; }
.promo-device { background: #fff; border-radius: 18px; padding: 1rem; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6); transform: rotate(1.5deg); }
.promo-visual { position: relative; }
.promo-visual::after { content: ""; position: absolute; inset: auto -30% -40% auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, var(--accent) 0%, transparent 65%); opacity: 0.25; z-index: -1; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.promo-trust { list-style: none; padding: 1rem 0 0; margin: 1.3rem 0 0; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: var(--fs-xs); color: #c9d3e6; }
.promo-trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.promo-trust svg { width: 15px; height: 15px; color: #3fae75; }

/* Ad 3 — closing CTA with pricing */
.promo-final { margin: 3rem 0 2rem; padding: clamp(1.5rem, 1rem + 2.5vw, 2.8rem); border-radius: 26px; background: radial-gradient(700px 320px at 0% 0%, var(--accent-soft), transparent 70%), #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; font-size: 1rem; line-height: 1.6; }
.promo-final::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--accent); opacity: 0.07; }
.promo-final { container-type: inline-size; }
.promo-final-grid { display: grid; gap: 1.8rem; position: relative; z-index: 1; }
.pc-rows { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin-bottom: 0.9rem; }
@container (max-width: 879px) {
  .pc-row { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0.3rem; }
  .pc-row b { order: -1; font-size: 1.45rem; letter-spacing: -0.02em; }
}
@container (min-width: 880px) {
  .promo-final-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr); align-items: center; gap: 2.5rem; }
  .pc-rows { grid-template-columns: 1fr; }
}
.promo-logo-lg { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.promo-logo-lg svg { border-radius: 12px; box-shadow: var(--shadow-md); }
.promo-title-xl { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; margin: 1rem 0 0.7rem; color: var(--ink); }
.promo-final .promo-copy { color: var(--ink-soft); }
.promo-pricecard { background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow-lg); }
.pc-label { margin: 0 0 0.8rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--star); }
.pc-row { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding: 0.85rem 0.95rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); }
.pc-row strong { display: block; font-size: 0.98rem; color: #fff; }
.pc-row span { display: block; font-size: 0.78rem; color: #aab6cc; }
.pc-row b { font-size: 1.15rem; white-space: nowrap; }
.pc-row.featured { background: rgba(255,255,255,0.08); border-color: var(--accent); }
.pc-btn { width: 100%; }

/* Sidebar promo */
.promo-side { margin-top: 1.4rem; padding: 0 1.1rem 1.1rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); font-size: 0.95rem; overflow: hidden; }
.promo-side .promo-brand { display: flex; margin: 0 -1.1rem; padding: 0.75rem 1.1rem; background: var(--navy-900); color: #fff; font-size: 0.9rem; }
.promo-side-art { display: none; }
.promo-side .promo-title { font-size: 1.08rem; margin-top: 0.6rem; }
.promo-side .promo-stars { gap: 0.4rem; margin-bottom: 0.9rem; }
.promo-side .promo-stars li { font-size: 0.86rem; line-height: 1.4; }
.promo-side .btn { width: 100%; }

/* Mobile sticky CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom)); background: var(--navy-900); color: #fff; box-shadow: 0 -10px 30px -12px rgba(0,0,0,0.45); transform: translateY(110%); transition: transform 0.3s ease; }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta-inner { display: flex; align-items: center; gap: 0.7rem; max-width: 46rem; margin: 0 auto; font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.sticky-cta-inner svg { border-radius: 7px; flex: none; }
.sticky-cta-inner span { flex: 1; }
.sticky-cta .btn { flex: none; }
.sticky-close { flex: none; background: none; border: 0; color: #aab6cc; font-size: 1.5rem; line-height: 1; padding: 0.2rem 0.3rem; cursor: pointer; }
@media (min-width: 1080px) { .sticky-cta { display: none; } }

/* ---------- About / share ---------- */
.article-about { margin: 2rem 0 1rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.about-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.about-head svg { border-radius: 10px; }
.about-head strong { display: block; color: var(--ink); }
.about-head span { font-size: var(--fs-xs); color: var(--muted); }
.article-disclaimer { font-size: var(--fs-xs); line-height: 1.6; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.share span { font-weight: 700; color: var(--ink); margin-right: 0.2rem; }
.share a, .share button { padding: 0.35rem 0.8rem; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: #fff; color: var(--ink-soft); font: 600 0.82rem/1.2 var(--font); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ---------- Cards ---------- */
.a-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.a-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.a-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.a-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--navy-800); }
.a-card-body { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.05rem 1.15rem 1.15rem; flex: 1; }
.a-card-cat { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent-deep); }
.a-card-title { font-size: 1.07rem; font-weight: 750; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.a-card-desc { font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.a-card-meta { margin-top: auto; padding-top: 0.3rem; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.a-card[hidden] { display: none; }

/* ---------- Related ---------- */
.related { background: var(--surface); border-top: 1px solid var(--line); padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.related-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; }
.related-head h2 { margin: 0; font-size: var(--fs-h2); }
.related-head a { font-weight: 700; color: var(--accent-deep); text-decoration: none; }

/* ---------- Hub & topic pages ---------- */
.hub-hero { padding: clamp(2.5rem, 1.8rem + 4vw, 5rem) 0 clamp(2rem, 1.5rem + 3vw, 3.5rem); color: #c9d3e6; background: radial-gradient(900px 400px at 90% 0%, rgba(255,255,255,0.08), transparent 60%), linear-gradient(150deg, var(--navy-900), var(--navy-800)); }
.hub-hero .crumbs, .hub-hero .crumbs a { color: #9fb0cc; }
.hub-hero .eyebrow { color: var(--star); margin-top: 1.4rem; }
.hub-hero .eyebrow::before { background: var(--star); }
.hub-hero h1 { color: #fff; font-size: var(--fs-h1); max-width: 22ch; margin: 0.5rem 0 0.8rem; }
.hub-hero .lede { font-size: var(--fs-lg); max-width: 44rem; margin: 0 0 1.6rem; }
.hub-search { position: relative; max-width: 36rem; margin-bottom: 1.3rem; }
.hub-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.hub-search input { width: 100%; padding: 0.95rem 1.1rem 0.95rem 2.9rem; border-radius: var(--radius-pill); border: 0; font: 500 1rem/1.3 var(--font); color: var(--ink); background: #fff; box-shadow: var(--shadow-lg); }
.hub-search input:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.topic-chips a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.22); color: #fff; font-size: 0.86rem; font-weight: 600; text-decoration: none; background: rgba(255,255,255,0.05); }
.topic-chips a svg { width: 16px; height: 16px; opacity: 0.85; }
.topic-chips a:hover, .topic-chips a[aria-current="page"] { background: #fff; color: var(--navy-900); }
.articles-hub .section { padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
.articles-hub .hub-topic:nth-of-type(even) { background: var(--surface); }
.hub-sec-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.hub-sec-head h2 { margin: 0 0 0.3rem; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.hub-sec-head p { margin: 0; color: var(--ink-soft); max-width: 46rem; font-size: 0.98rem; }
.hub-sec-head > div { flex: 1; }
.hub-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-deep); }
.hub-icon svg { width: 24px; height: 24px; }
.hub-more { flex: none; align-self: center; font-weight: 700; color: var(--accent-deep); text-decoration: none; white-space: nowrap; }
.hub-empty { padding: 3rem 0; text-align: center; color: var(--muted); }
@media (max-width: 640px) { .hub-more { display: none; } }

/* ---------- Homepage "latest articles" block ---------- */
.home-articles .a-grid, .a-grid.featured { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.home-articles .a-grid { margin-top: 0.5rem; }
.home-articles .center { margin-top: 2rem; }

@media print { .promo, .sticky-cta, .article-side, .related, .share, .toc-mobile { display: none !important; } }

/* ---------- In-body call to action ---------- */
.article-body p.cta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 1.6em 0 1.8em; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--line); }
.article-body p.cta-inline a.btn { color: #fff; text-decoration: none; }
.article-body p.cta-inline span { font-size: var(--fs-xs); color: var(--ink-soft); }

/* ---------- Safety banner (abuse & protective-order articles) ---------- */
.safety-banner { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1.4rem; padding: 0.9rem 1.1rem; border-radius: var(--radius); background: #fff6e8; border: 1px solid #f1d9b0; font-size: 0.92rem; line-height: 1.55; color: var(--ink); }
.safety-banner svg { width: 22px; height: 22px; flex: none; margin-top: 0.1rem; color: var(--accent-deep); }
.safety-banner p { margin: 0; }
.safety-banner a { color: var(--accent-deep); font-weight: 700; }
.safety-banner kbd { font: 700 0.8rem/1 var(--font); padding: 0.15rem 0.4rem; border-radius: 5px; border: 1px solid var(--line-strong); background: #fff; }

/* ---------- Free template download box ---------- */
.tpl-box { margin: 2rem 0 2.2rem; border-radius: var(--radius-lg); border: 2px dashed var(--line-strong); background: #fff; overflow: hidden; font-size: 1rem; line-height: 1.55; }
.tpl-head { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.4rem 0.4rem; }
.tpl-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy-800); color: #fff; }
.tpl-icon svg { width: 28px; height: 28px; }
.tpl-kicker { margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok); }
.tpl-title { margin: 0.15rem 0 0.3rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.tpl-desc { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.tpl-files { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0.9rem 1.4rem 0.4rem 1.4rem; }
.tpl-box .tpl-files { padding-left: calc(1.4rem + 52px + 1rem); }
@media (max-width: 560px) { .tpl-box .tpl-files { padding-left: 1.4rem; } }
.tpl-file, .article-body a.tpl-file { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 1rem; border-radius: var(--radius-pill); background: var(--navy-800); color: #fff; font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.tpl-file svg { width: 18px; height: 18px; }
.tpl-file:hover, .article-body a.tpl-file:hover { background: var(--navy-900); color: #fff; }
.tpl-note { margin: 0.4rem 1.4rem 1.1rem; font-size: var(--fs-xs); color: var(--muted); }
.tpl-box .tpl-note { margin-left: calc(1.4rem + 52px + 1rem); }
@media (max-width: 560px) { .tpl-box .tpl-note { margin-left: 1.4rem; } }
.tpl-pitch { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem 1.4rem 1.3rem; background: var(--accent-soft); border-top: 1px solid var(--line); }
.tpl-pitch svg { flex: none; border-radius: 9px; }
.tpl-pitch p { margin: 0 0 0.7rem; font-size: 0.97rem; }
.tpl-pitch .btn, .article-body .tpl-pitch a.btn { color: #fff; text-decoration: none; }
.tpl-pitch-note { display: inline-block; margin-left: 0.8rem; font-size: var(--fs-xs); color: var(--ink-soft); }

/* ---------- Templates page ---------- */
.tpl-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.tpl-card { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.4rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tpl-card h2 { margin: 0.3rem 0 0; font-size: 1.15rem; }
.tpl-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.tpl-card .tpl-files { padding: 0.4rem 0 0; }
.tpl-used { font-size: 0.85rem !important; margin-top: auto !important; padding-top: 0.5rem; }
.tpl-used a { color: var(--accent-deep); }
.topic-chips a.chip-templates { background: var(--star); border-color: var(--star); color: var(--navy-900); }
.topic-chips a.chip-templates svg { opacity: 1; }

.promo-feature .promo-fine.light { color: #aab6cc; margin-top: 0.9rem; }
