/* Peso Certo Blog — visual language shared with the landing page (peso-certo.com) */

@font-face { font-family: 'Red Hat Text'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/red-hat-text-latin.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/montserrat-latin.woff2') format('woff2'); }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/onest-latin.woff2') format('woff2'); }

:root {
  --ink: #242220;
  --ink-2: #38312c;
  --muted: #545454;
  --blue: #2f7dbb;
  --blue-deep: #1f5f9c;
  --blue-note: #6b93b6;
  --tint: #dbeaf7;
  --sky: #edf5fb;
  --green: #2e936f;
  --green-soft: #deede0;
  --cream: #faf9f7;
  --line: rgba(36, 34, 32, 0.1);
  --line-strong: rgba(36, 34, 32, 0.2);
  --shadow-card: 0 10px 30px rgba(42, 116, 168, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(42, 116, 168, 0.14);
  --gradient-cta: linear-gradient(180deg, #2f7dbb 0%, #1f5f9c 100%);
  --font-body: 'Red Hat Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-kicker: 'Onest', 'Red Hat Text', system-ui, sans-serif;
  --font-logo: 'Montserrat', 'Red Hat Text', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; border-radius: 6px; }

.icon { width: 20px; height: 20px; flex: 0 0 auto; }

.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Type scale */
.kicker {
  font-family: var(--font-kicker);
  font-size: 11px; font-weight: 500; line-height: 16px;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ink);
}
.kicker-muted { color: var(--muted); }
.display { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.07; letter-spacing: -0.03em; }
.h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -0.025em; }
.h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; }
.h4 { font-size: 20px; line-height: 1.35; letter-spacing: -0.02em; }
.accent { color: var(--blue); }
.accent-green { color: var(--green); }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 24px;
  border: 0; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: 0.6px; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), filter 0.2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn-primary { background: var(--gradient-cta); color: #fff; box-shadow: 0 10px 24px rgba(31, 95, 156, 0.24); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31, 95, 156, 0.32); }
.btn-primary:hover .icon:last-child { transform: translateX(3px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: rgba(255, 255, 255, 0.7); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover, .btn-ghost[aria-current] { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; box-shadow: none; }
.btn-sm.btn-ghost { box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 13px; letter-spacing: 0.7px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue-deep); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.text-link .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

.tag {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 4px 12px; border-radius: 999px;
  background: var(--tint); color: var(--blue-deep);
  font-size: 10px; font-weight: 600; line-height: 1.4; letter-spacing: 0.13em; text-transform: uppercase;
}
.tag-link { text-decoration: none; }
.tag-link:hover { background: #cde1f3; }

.icon-circle {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--tint); color: var(--blue);
}
.icon-circle .icon { width: 22px; height: 22px; }
.icon-circle-lg { width: 56px; height: 56px; margin-bottom: 20px; background: #fff; box-shadow: var(--shadow-card); }
.icon-circle-lg .icon { width: 26px; height: 26px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.chip .icon { width: 18px; height: 18px; color: var(--blue); }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-current] { background: var(--ink); color: #fff; box-shadow: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--font-logo); font-size: 22px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.logo-tag {
  font-family: var(--font-kicker); font-size: 10px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--blue-deep);
}
.menu-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.menu-button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 12px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
  cursor: pointer; user-select: none;
}
.menu-button .icon { width: 18px; height: 18px; }
.menu-close, .menu-toggle:checked + .menu-button .menu-open { display: none; }
.menu-toggle:checked + .menu-button .menu-close { display: inline-flex; }
.menu-open { display: inline-flex; }
.menu-toggle:focus-visible + .menu-button { outline: 2px solid var(--blue-deep); outline-offset: 3px; }
.site-nav {
  display: none;
  position: absolute; top: 100%; left: -16px; right: -16px;
  padding: 12px 16px 24px;
  background: #fff; box-shadow: 0 1px 0 var(--line), 0 24px 40px rgba(36, 34, 32, 0.08);
}
.menu-toggle:checked ~ .site-nav { display: block; }
.nav-links { list-style: none; }
.nav-links a {
  display: flex; align-items: center; min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 16px; font-weight: 600; text-decoration: none;
}
.nav-links a[aria-current] { color: var(--blue-deep); }
.nav-actions { display: grid; gap: 10px; margin-top: 20px; }
.nav-actions .btn { min-height: 48px; }

/* Hero */
.page-hero, .article-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #edf5fb 0%, #f4f8fc 55%, #fafcfe 100%);
}
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-art > span, .cta-art > span { position: absolute; }
.art-blob { border-radius: 50%; }
.art-blob-tl { top: -260px; left: -220px; width: 760px; height: 620px; background: radial-gradient(closest-side, rgba(205, 226, 244, 0.95), rgba(205, 226, 244, 0)); }
.art-arc { border-radius: 50%; opacity: 0.55; }
.art-arc-tr { top: -560px; right: -620px; width: 900px; height: 900px; border: 90px solid #bedaf1; filter: blur(6px); }
.art-arc-tr::after { content: ''; position: absolute; inset: 70px; border: 40px solid #d6e8f7; border-radius: 50%; }
.art-dots { display: none; width: 150px; height: 130px; background: radial-gradient(circle, rgba(104, 150, 190, 0.6) 1.2px, transparent 1.7px) 0 0 / 16px 16px; }
.art-dots-br { right: 56px; bottom: 48px; }


.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-actions .btn { width: 100%; }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 14px; list-style: none; text-align: left; }
.topic-card {
  display: flex; flex-direction: column; height: 100%;
  padding: 22px 22px 24px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.topic-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.topic-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.topic-number { font-family: var(--font-kicker); font-size: 11px; font-weight: 500; letter-spacing: 1.6px; color: var(--muted); }
.topic-title { margin-bottom: 8px; font-size: 18px; line-height: 24px; letter-spacing: -0.02em; }
.topic-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.topic-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; font-size: 13px; font-weight: 600; color: var(--blue-deep); }
.topic-more .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.topic-card:hover .topic-more .icon { transform: translateX(3px); }

/* Sections */
.section { padding: 72px 0; }
.section-top { padding-top: 48px; }
.section-cream { background: radial-gradient(ellipse at 50% 0, var(--green-soft), transparent 65%), var(--cream); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.section-head .h2 { margin-top: 12px; }
.section-head-center { flex-direction: column; align-items: center; text-align: center; }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px; background: #fff;
  text-decoration: none;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.post-card:hover { border-color: transparent; box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.post-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky); }
.post-card-media img, .feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.post-card:hover .post-card-media img, .feature-card:hover .feature-media img { transform: scale(1.03); }
.post-card-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 22px 24px 24px; }
.post-card-title { font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; }
.post-card:hover .post-card-title { color: var(--blue-deep); }
.post-card-text { font-size: 15px; line-height: 1.55; color: var(--muted); }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }
.post-card-meta span + span::before { content: '·'; margin-right: 14px; }

.feature-card {
  display: grid; overflow: hidden; margin-bottom: 20px;
  border-radius: 28px; background: var(--cream);
  text-decoration: none;
  transition: box-shadow 0.2s var(--ease);
}
.feature-card:hover { box-shadow: var(--shadow-card-hover); }
.feature-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky); }
.feature-body { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 32px; }
.feature-text { font-size: 16px; line-height: 1.6; color: var(--muted); }
.feature-body .btn { align-self: flex-start; margin-top: 8px; }

/* Trust */
.trust { display: grid; gap: 28px; }
.trust-head .h2 { margin-top: 12px; }
.trust-body { display: grid; gap: 16px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.trust-body .text-link { justify-self: start; margin-top: 6px; }

/* CTA panel */
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 28px; justify-items: start;
  padding: 40px 24px; border-radius: 28px;
  background: linear-gradient(135deg, #e7f2fb 0%, #f3f8fc 100%);
  border: 1px solid #c7ddef;
}
.cta-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.art-arc-cta { top: -260px; right: -300px; width: 520px; height: 520px; border: 60px solid rgba(190, 218, 241, 0.8); filter: blur(4px); }
.art-dots-cta { right: 28px; bottom: 24px; width: 110px; height: 90px; }
.cta-copy { display: grid; gap: 14px; }
.cta-copy p:not(.kicker) { font-size: 16px; line-height: 1.65; color: var(--ink-2); }

/* Page hero (listings, static pages) */
.page-hero { padding: 56px 0 48px; }
.page-hero .display { margin-top: 14px; font-size: clamp(32px, 4.6vw, 52px); }
.page-hero .lede { margin-top: 16px; }
.home-hero .hero-actions { justify-content: flex-start; }
.home-hero-grid { display: grid; gap: 32px; }
.home-hero-copy .display { margin-top: 14px; }
.home-hero-copy .lede { margin-top: 16px; }
.home-hero-copy .lede strong { font-weight: 600; color: var(--ink); }
.home-hero-media { position: relative; margin: 0; }
.home-hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 15%;
  border-radius: 24px; background: var(--sky);
  box-shadow: 0 24px 60px rgba(42, 116, 168, 0.18);
}
.media-badge {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: #fff; box-shadow: 0 8px 24px rgba(36, 34, 32, 0.12);
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.media-badge .icon { width: 18px; height: 18px; color: var(--green); }
.home-hero .art-dots-br { top: 40px; bottom: auto; }
.page-hero-center { text-align: center; }
.page-hero-center .page-hero-inner { display: flex; flex-direction: column; align-items: center; }
.page-hero-center .hero-actions .btn { width: auto; }
.result-count { margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.other-topics { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.other-topics ul { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; list-style: none; }
.other-topics-top { margin: 0 0 28px; padding: 0; border: 0; }
.other-topics-top ul { margin-top: 0; }

.empty-state { padding: 48px 24px; border-radius: 20px; background: var(--cream); text-align: center; }
.empty-state h2, .empty-state h3 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); }
.empty-state .btn { margin-top: 20px; }

/* Search */
.search-form { width: 100%; margin-top: 28px; text-align: left; }
.search-form label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.search-field {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 6px; border-radius: 999px; background: #fff;
  box-shadow: 0 10px 30px rgba(42, 116, 168, 0.12), inset 0 0 0 1px var(--line-strong);
}
.search-field:focus-within { box-shadow: 0 10px 30px rgba(42, 116, 168, 0.16), inset 0 0 0 2px var(--blue); }
.search-icon { display: inline-flex; padding-left: 12px; color: var(--muted); }
.search-field input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; font-size: 16px; }
.search-field input:focus { outline: none; }
.search-field .btn { flex: 0 0 auto; }
.search-results { display: grid; gap: 12px; }
.search-results > h2 { font-size: 14px; font-weight: 600; color: var(--muted); }
.search-results > p { color: var(--muted); }
.result-link {
  display: grid; gap: 6px; padding: 20px 24px;
  border: 1px solid var(--line); border-radius: 18px; background: #fff;
  text-decoration: none; transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.result-link:hover { border-color: transparent; box-shadow: var(--shadow-card-hover); }
.result-link h3 { font-size: 18px; line-height: 1.35; }
.result-link:hover h3 { color: var(--blue-deep); }
.result-link p { font-size: 15px; color: var(--muted); }
.result-link .tag { justify-self: start; margin-bottom: 4px; }

/* Article */
.article-hero { padding: 28px 0 88px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; font-size: 13px; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { content: ''; width: 6px; height: 6px; margin: 0 10px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.6; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs li:last-child { display: none; }
.breadcrumbs [aria-current] { overflow: hidden; max-width: 36ch; text-overflow: ellipsis; white-space: nowrap; }
.article-head .tag { margin-top: 28px; }
.article-title { margin-top: 16px; font-size: clamp(32px, 4.8vw, 54px); }
.article-head .lede { margin-top: 18px; }
.byline { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; list-style: none; font-size: 14px; color: var(--muted); }
.byline li { display: inline-flex; align-items: center; gap: 8px; }
.byline .icon { width: 17px; height: 17px; color: var(--blue); }
.reviewed { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 14px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }
.reviewed .icon { color: var(--green); }

.article-wrap { padding-bottom: 72px; }
.article-figure { position: relative; z-index: 1; margin: -56px 0 40px; }
.article-image { width: 100%; border-radius: 24px; box-shadow: 0 24px 60px rgba(42, 116, 168, 0.16); background: var(--sky); }
.article-figure figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }

.notice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 20px 22px; margin-bottom: 40px;
  border: 1px solid rgba(47, 125, 187, 0.18); border-radius: 18px;
  background: var(--sky);
  font-size: 15px; line-height: 1.6; color: var(--ink-2);
}
.notice strong { color: var(--ink); }
.notice-cta { grid-column: 2; justify-self: start; }
.notice .icon-circle { width: 36px; height: 36px; background: #fff; }
.notice .icon-circle .icon { width: 20px; height: 20px; }

/* Long-form prose */
.prose { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(24px, 2.8vw, 30px); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); }
.prose h3 { margin-top: 1.8em; font-size: 21px; line-height: 1.35; letter-spacing: -0.015em; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--blue); }
.prose small { font-size: 14px; color: var(--muted); }
.prose blockquote {
  margin: 2em 0; padding: 24px 26px;
  border-radius: 20px; background: var(--cream);
  border-left: 4px solid var(--green);
  font-size: 17px; line-height: 1.65;
}
.prose blockquote > * + * { margin-top: 0.7em; }
.prose blockquote p:first-child strong { font-family: var(--font-kicker); font-size: 11px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: var(--green); }
.prose blockquote ul { list-style: none; padding: 0; }
.prose blockquote li { position: relative; padding-left: 28px; }
.prose blockquote li::before {
  content: ''; position: absolute; left: 2px; top: 0.5em;
  width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.5; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.prose thead th { background: var(--sky); font-weight: 600; color: var(--ink); text-align: left; }
.prose th, .prose td { min-width: 160px; padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* FAQ */
.faq { margin-top: 64px; }
.faq .h3 { margin: 10px 0 20px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 48px; padding: 20px 4px;
  font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em;
  list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: 0 0 10px; width: 10px; height: 10px; margin-top: -4px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { margin-top: 6px; transform: rotate(225deg); }
.faq summary:hover { color: var(--blue-deep); }
.faq details p { padding: 0 4px 22px; font-size: 16px; line-height: 1.7; color: var(--muted); }

/* Author */
.author-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 56px; padding: 28px 24px; border-radius: 24px; background: var(--cream); }
.author-mark {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient-cta); color: #fff;
  font-family: var(--font-logo); font-size: 17px; font-weight: 800; letter-spacing: -0.02em;
}
.author-box .h4 { margin: 8px 0 10px; }
.author-box p:not(.kicker) { font-size: 15px; line-height: 1.65; color: var(--muted); }
.author-box .text-link { margin-top: 14px; font-size: 15px; }

/* Related */
.related { margin-top: 72px; }
.related .h3 { margin: 10px 0 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; list-style: none; }
.related-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%;
  padding: 20px 22px; border-radius: 18px; background: #fff;
  box-shadow: var(--shadow-card);
  font-size: 16px; font-weight: 600; line-height: 1.4; text-decoration: none;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.related-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); color: var(--blue-deep); }
.related-arrow { display: inline-grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--blue-deep); }
.related-arrow .icon { width: 18px; height: 18px; }
.cta-panel-article { margin-top: 56px; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-top { display: grid; gap: 20px; margin-top: 48px; }
.footer-brand p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.pill-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 26px; border-radius: 999px;
  background: #fafafa; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
.pill-link:hover { background: var(--sky); }
.pill-link .icon { width: 22px; height: 22px; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px; margin-top: 44px; }
.footer-nav ul { display: grid; gap: 2px; margin-top: 12px; list-style: none; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { display: grid; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--muted); }
.footer-legal strong { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 28px; padding: 24px 0 36px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.footer-bottom p:last-child { color: var(--muted); font-weight: 500; }

/* Desktop */
@media (min-width:900px) {
  :root { --header-h: 72px; }
  .wrap { width: min(1120px, calc(100% - 64px)); }
  .menu-toggle, .menu-button { display: none; }
  .site-nav, .menu-toggle:checked ~ .site-nav { position: static; display: flex; align-items: center; gap: 28px; padding: 0; background: none; box-shadow: none; }
  .nav-links { display: flex; gap: 4px; }
  .nav-links a { position: relative; min-height: 40px; padding: 0 12px; border: 0; font-size: 14px; color: var(--ink-2); }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a[aria-current] { color: var(--ink); }
  .nav-links a[aria-current]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--blue); }
  .nav-actions { display: flex; gap: 8px; margin: 0; }
  .nav-actions .btn { min-height: 40px; }
  .nav-actions .btn .icon { width: 16px; height: 16px; }

  .art-arc { opacity: 1; }
  .art-dots { display: block; }
  .topic-grid { gap: 20px; }

  .section { padding: 112px 0; }
  .section-top { padding-top: 64px; }
  .section-head { margin-bottom: 40px; }
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .feature-card { grid-template-columns: 1.15fr 1fr; align-items: stretch; border-radius: 40px; margin-bottom: 24px; }
  .feature-media { aspect-ratio: auto; min-height: 360px; }
  .feature-body { justify-content: center; padding: 48px 56px; }

  .trust { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }

  .cta-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; padding: 64px 72px; border-radius: 40px; }
  .cta-panel-article { padding: 48px 56px; }

  .page-hero { padding: 88px 0 72px; }
  .hero-actions .btn { width: auto; }
  .home-hero { padding: 64px 0; }
  .home-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: 64px; }
  .home-hero-media img { aspect-ratio: 4 / 5; border-radius: 32px; }
  .media-badge { left: -24px; bottom: 32px; }
  .article-hero { padding: 36px 0 120px; }
  .breadcrumbs li:last-child { display: inline-flex; }
  .article-head .tag { margin-top: 44px; }
  .article-figure { margin: -80px 0 56px; }
  .article-image { border-radius: 32px; }
  .notice { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 24px; padding: 22px 26px; }
  .notice-cta { grid-column: auto; }
  .prose blockquote { padding: 28px 32px; }
  .author-box { padding: 32px; }
  .faq summary { font-size: 20px; padding: 22px 4px; }

  .footer-top { grid-template-columns: 1fr auto; align-items: center; margin-top: 64px; }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 200px)); gap: 40px; }
}

/* Narrow desktop: keep the long CTA label on one line */
@media (min-width:900px) and (max-width:1179px) {
  .logo-tag, .nav-home { display: none; }
  .site-nav, .menu-toggle:checked ~ .site-nav { gap: 16px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 0 8px; }
  .nav-links a[aria-current]::after { left: 8px; right: 8px; }
  .nav-actions .btn-ghost { width: 40px; padding: 0; }
  .nav-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .topic-card:hover, .post-card:hover, .related-card:hover { transform: none; }
  .post-card:hover .post-card-media img, .feature-card:hover .feature-media img { transform: none; }
}

@media print {
  .site-header, .site-footer, .hero-art, .cta-panel, .related, .skip-link { display: none !important; }
  .article-hero { padding: 0; background: none; }
  .article-figure { margin: 16px 0; }
}
