/* ==========================================================================
   TheBizVia — main stylesheet
   --------------------------------------------------------------------------
    1. Design tokens        11. Blog toolbar & filters
    2. Base                 12. Sidebar & widgets
    3. Accessibility        13. Advertisement placeholders
    4. Layout               14. Article (blog detail)
    5. Top bar & header     15. Forms
    6. Buttons              16. Contact popup (dialog)
    7. Section headings     17. Cookie banner
    8. Stories & cards      18. Footer
    9. Intro & page heroes  19. Static pages (about, legal, contact)
   10. Chips & tags         20. Responsive & print
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --navy: #0a2540;
  --navy-deep: #061a2f;
  --navy-soft: #12395f;
  --amber: #f2a900;
  --amber-hover: #ffc233;
  --amber-soft: #fff4d6;
  --blue: #0b57d0;
  --ink: #14202e;
  --muted: #4b5b6d;
  --line: #dde3ea;
  --line-strong: #b6c0cc;
  --control: #7a8898;
  --wash: #f2f4f7;
  --paper: #ffffff;
  --ok: #136c43;
  --bad: #b42318;
  --focus: #0b57d0;

  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --space: clamp(36px, 6vw, 72px);
  --radius: 4px;
  --radius-lg: 8px;
}

/* 2. Base ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font: 400 1rem/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  animation: page-in .45s ease-out both;
}

@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.2rem; }

p, ul, ol, figure, blockquote, address { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .15em; }
a:hover { color: var(--navy); }
[hidden] { display: none !important; }
main:focus { outline: none; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* 3. Accessibility ------------------------------------------------------- */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.topbar :focus-visible,
.intro :focus-visible,
.site-footer :focus-visible,
.cookie :focus-visible,
.cta-band :focus-visible,
.widget--cta :focus-visible { outline-color: var(--amber); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  padding: 10px 16px; border-radius: 0 0 6px 6px;
  background: var(--amber); color: var(--navy); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; }

.noscript {
  margin: 0; padding: 12px var(--gutter); text-align: center;
  background: var(--amber-soft); color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 4. Layout -------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 800px); }

.section { padding: var(--space) 0; }
.section > .container,
.contact-grid { animation: rise-in .6s .18s ease-out both; }
.section--tight { padding: calc(var(--space) / 2) 0; }
.section--wash { background: var(--wash); }

.grid { display: grid; gap: 36px var(--gutter); grid-template-columns: 1fr; }
.layout { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
.sidebar { display: grid; gap: 32px; align-content: start; }
.stack > * + * { margin-top: 1.25rem; }
.empty-note { color: var(--muted); }

.empty {
  padding: 48px 20px; text-align: center; background: var(--wash); border-radius: var(--radius-lg);
}
.empty h3 { margin-bottom: .4em; }

/* 5. Top bar & header ---------------------------------------------------- */
.topbar { background: var(--navy-deep); color: #cdd6e0; font-size: .8125rem; }
.topbar a { color: #e6ecf3; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; }
.topbar__topics { display: none; }
.topbar__topics ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.topbar__mail { display: none; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand__text { font: 800 1.6rem/1 var(--serif); letter-spacing: -.02em; }
.brand__text b { font-weight: 400; }
.brand--light, .brand--light:hover { color: #fff; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 5px; width: 22px; }
.nav-toggle__bars span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.is-open .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: absolute; inset: 100% 0 auto 0; display: none;
  padding: 8px var(--gutter) 24px; background: var(--paper);
  border-bottom: 1px solid var(--line); box-shadow: 0 16px 28px rgba(6, 26, 47, .14);
}
.primary-nav.is-open { display: block; }
.primary-nav ul { display: grid; margin: 0 0 16px; padding: 0; list-style: none; }
.primary-nav li + li { border-top: 1px solid var(--line); }
.primary-nav a {
  display: block; padding: 14px 4px; font-weight: 600; color: var(--ink); text-decoration: none;
  border-left: 4px solid transparent; padding-left: 12px;
}
.primary-nav a:hover { color: var(--blue); }
.primary-nav a[aria-current="page"] { border-left-color: var(--amber); color: var(--navy); }
.primary-nav__cta { width: 100%; }

/* 6. Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: .65rem 1.25rem;
  font: 700 .95rem/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 6px; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-soft); color: #fff; }
.btn--amber { background: var(--amber); color: var(--navy); }
.btn--amber:hover { background: var(--amber-hover); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--control); }
.btn--ghost:hover { background: var(--wash); color: var(--navy); }
.btn--small { min-height: 36px; padding: .35rem .9rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.link-button {
  padding: 0; background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer;
}

/* 7. Section headings ---------------------------------------------------- */
.section-head {
  position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 20px; margin-bottom: 24px; padding-top: 16px; border-top: 1px solid var(--line-strong);
}
.section-head::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 72px; height: 5px; background: var(--amber);
}
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; }
.section-intro { max-width: 62ch; color: var(--muted); font-size: 1.05rem; }

/* 8. Stories & cards ----------------------------------------------------- */
.meta { display: flex; flex-wrap: wrap; margin: 0; font-size: .85rem; color: var(--muted); }
.meta span { margin-left: .75rem; padding-left: .75rem; border-left: 1px solid var(--line-strong); }

.card { display: flex; flex-direction: column; }
.card__media,
.lead__media,
.story__media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--wash); }
.card__media,
.lead__media,
.story__media { transition: box-shadow .25s ease, transform .25s ease; }
.card__media img,
.lead__media img,
.story__media img { transition: transform .45s ease; }
.card:hover .card__media,
.lead:hover .lead__media,
.story:hover .story__media { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(6, 26, 47, .14); }
.card:hover .card__media img,
.lead:hover .lead__media img,
.story:hover .story__media img { transform: scale(1.035); }
.card__media { aspect-ratio: 16 / 10; }
.card__media img,
.lead__media img,
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; align-items: flex-start; padding-top: 14px; }
.card__title { margin: 0 0 .4em; font-size: 1.28rem; }
.card__title a,
.lead__title a,
.story__title a { color: var(--navy); text-decoration: none; }
.card__title a:hover,
.lead__title a:hover,
.story__title a:hover { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; }
.card__excerpt { margin: 0 0 .8em; color: var(--muted); }

.top-stories { display: grid; gap: 32px var(--gutter); grid-template-columns: minmax(0, 1fr); }
.top-stories__side { display: grid; gap: 24px; align-content: start; }

.lead__media { aspect-ratio: 16 / 9; }
.lead__body { padding-top: 18px; }
.lead__title { margin: .1em 0 .4em; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; }
.lead__excerpt { max-width: 60ch; margin-bottom: .9em; font-size: 1.08rem; color: var(--muted); }

.story { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; }
.story + .story { padding-top: 24px; border-top: 1px solid var(--line); }
.story__media { aspect-ratio: 4 / 3; align-self: start; }
.story__title { margin: 0 0 .35em; font-size: 1.1rem; line-height: 1.25; }
.story__body { display: flex; flex-direction: column; align-items: flex-start; }

/* 9. Intro & page heroes ------------------------------------------------- */
.intro { background: var(--navy); color: #d6dfea; border-bottom: 5px solid var(--amber); }
.intro__inner { padding: clamp(32px, 6vw, 56px) 0; }
.intro__title { max-width: 22ch; margin-bottom: .45em; color: #fff; font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.1; }
.intro__text { max-width: 60ch; margin-bottom: 1.4em; font-size: 1.1rem; }

.page-hero { background: var(--wash); border-bottom: 1px solid var(--line); }
.page-hero__inner { padding: clamp(28px, 5vw, 48px) 0; }
.page-hero__body { padding-left: clamp(14px, 3vw, 24px); border-left: 6px solid var(--amber); }
.page-hero__body { animation: rise-in .55s .08s ease-out both; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero p { max-width: 62ch; margin: 0; font-size: 1.1rem; color: var(--muted); }

.breadcrumb { margin-bottom: 14px; font-size: .875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin: 0 .55em; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }

/* 10. Chips & tags ------------------------------------------------------- */
.tag {
  display: inline-block; margin-bottom: .45rem; padding-left: 9px;
  border-left: 4px solid var(--amber); font-size: .875rem; font-weight: 700; line-height: 1.25;
  color: var(--blue); text-decoration: none;
}
.tag:hover { color: var(--navy); text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 15px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--navy); text-decoration: none; cursor: pointer;
}
.chip:hover { background: var(--wash); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip__count { font-size: .78rem; font-weight: 600; opacity: .75; }
.intro .chip { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.intro .chip:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* 11. Blog toolbar & filters --------------------------------------------- */
.toolbar { display: grid; gap: 16px; margin-bottom: 28px; }
.toolbar__row { display: flex; flex-wrap: wrap; gap: 12px; }
.search { position: relative; flex: 1 1 260px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 44px; }
.select { flex: 0 0 auto; min-width: 170px; }
.results-count { margin: 0 0 20px; font-size: .95rem; color: var(--muted); }
.load-more { margin-top: 36px; text-align: center; }

/* 12. Sidebar & widgets -------------------------------------------------- */
.widget { padding-top: 14px; border-top: 4px solid var(--navy); }
.widget__title { margin-bottom: .6em; font-size: 1.15rem; }
.widget p { color: var(--muted); }

.headlines, .topic-list { margin: 0; padding: 0; list-style: none; }
.headline { padding: 12px 0; border-bottom: 1px solid var(--line); }
.headline a { display: block; font-weight: 600; line-height: 1.35; color: var(--ink); text-decoration: none; }
.headline a:hover { color: var(--blue); text-decoration: underline; }
.headline time { display: block; margin-top: 3px; font-size: .8rem; color: var(--muted); }

.topic-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.topic-list a { font-weight: 600; text-decoration: none; }
.topic-list a:hover { text-decoration: underline; }
.count { min-width: 28px; padding: 1px 8px; border-radius: 999px; background: var(--wash); font-size: .8rem; font-weight: 700; text-align: center; color: var(--muted); }

.widget--cta { padding: 22px; background: var(--navy); border-top: 4px solid var(--amber); border-radius: var(--radius); color: #d6dfea; }
.widget--cta .widget__title { color: #fff; }
.widget--cta p { color: #d6dfea; }

/* 13. Advertisement placeholders ----------------------------------------- */
.ad-slot { margin: 28px auto; text-align: center; }
.ad-slot__label { display: block; margin-bottom: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .03em; color: var(--muted); }
.ad-slot__box {
  display: grid; place-items: center; width: 100%; margin-inline: auto; padding: 0;
  background: transparent; border: 0; border-radius: 0;
  font-size: .85rem; color: var(--muted);
}
.ad-slot--leaderboard .ad-slot__box { max-width: 728px; min-height: 0; }
.ad-slot--banner .ad-slot__box { max-width: 970px; min-height: 0; }
.ad-slot--rectangle { margin: 0 auto; }
.ad-slot--rectangle .ad-slot__box { max-width: 300px; min-height: 0; }
.spotify-ad {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 90px; padding: 8px 12px;
  box-sizing: border-box; overflow: hidden; border-radius: 4px; background: #191414; color: #fff;
  text-align: left; text-decoration: none;
}
.spotify-ad img { width: 72px; height: 72px; flex-shrink: 0; object-fit: cover; border-radius: 4px; }
.spotify-ad__copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.spotify-ad__brand { margin-bottom: 3px; color: #1db954; font-size: 18px; }
.spotify-ad__headline { font-size: 18px; line-height: 1.2; }
.spotify-ad__description { margin-top: 3px; font-size: 13px; opacity: .8; }
.spotify-ad__button { flex-shrink: 0; padding: 10px 20px; border-radius: 25px; background: #1db954; color: #000; font-size: 14px; font-weight: 700; white-space: nowrap; }
.spotify-ad:hover .spotify-ad__button, .spotify-ad:focus-visible .spotify-ad__button { background: #1ed760; }
.ultahost-ad {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 90px; padding: 8px 10px;
  box-sizing: border-box; overflow: hidden; border: 1px solid #ddd; border-radius: 4px; background: #fff;
  color: #333; text-align: left; text-decoration: none;
}
.ultahost-ad img { width: 120px; height: 72px; flex-shrink: 0; object-fit: cover; border-radius: 3px; }
.ultahost-ad__copy { display: flex; min-width: 0; flex: 1; flex-direction: column; overflow: hidden; }
.ultahost-ad__headline, .ultahost-ad__description { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ultahost-ad__headline { font-size: 20px; line-height: 1.2; }
.ultahost-ad__description { margin-top: 4px; color: #666; font-size: 14px; }
.ultahost-ad__button { flex-shrink: 0; padding: 10px 18px; border-radius: 20px; background: #0056b3; color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.ultahost-ad:hover .ultahost-ad__button, .ultahost-ad:focus-visible .ultahost-ad__button { background: #004494; }
.ad-slot--rectangle .ultahost-ad { min-height: 250px; flex-direction: column; align-items: stretch; gap: 10px; padding: 10px; }
.ad-slot--rectangle .ultahost-ad img { width: 100%; height: 82px; }
.ad-slot--rectangle .ultahost-ad__headline, .ad-slot--rectangle .ultahost-ad__description { white-space: normal; }
.ad-slot--rectangle .ultahost-ad__button { align-self: center; text-align: center; }
.zillow-ad {
  display: flex; align-items: center; width: 100%; max-width: 728px; aspect-ratio: 728 / 90; gap: 12px; padding: 8px 10px;
  box-sizing: border-box; overflow: hidden; border: 1px solid #ddd; border-radius: 4px; background: #fff;
  color: #333; cursor: pointer; text-align: left; text-decoration: none;
}
.zillow-ad img { width: 120px; height: 72px; flex-shrink: 0; object-fit: cover; border-radius: 3px; }
.zillow-ad__copy { flex-grow: 1; min-width: 0; overflow: hidden; }
.zillow-ad__brand { display: block; color: #006aff; font-size: 20px; line-height: 1.2; }
.zillow-ad__description { display: block; margin-top: 4px; overflow: hidden; color: #333; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.zillow-ad__button { flex-shrink: 0; padding: 10px 18px; border-radius: 20px; background: #006aff; color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.zillow-ad:hover .zillow-ad__button, .zillow-ad:focus-visible .zillow-ad__button { background: #0052cc; }
.ad-slot--rectangle .zillow-ad { max-width: 300px; aspect-ratio: auto; min-height: 250px; flex-direction: column; align-items: stretch; gap: 10px; padding: 10px; }
.ad-slot--rectangle .zillow-ad img { width: 100%; height: 100px; }
.ad-slot--rectangle .zillow-ad__description { white-space: normal; }
.ad-slot--rectangle .zillow-ad__button { align-self: center; }
@media (max-width: 560px) {
  .spotify-ad { gap: 9px; padding-inline: 8px; }
  .spotify-ad img { width: 56px; height: 56px; }
  .spotify-ad__brand, .spotify-ad__headline { font-size: 15px; }
  .spotify-ad__description { font-size: 11px; }
  .spotify-ad__button { padding: 8px 10px; font-size: 12px; }
  .ultahost-ad { gap: 8px; padding-inline: 8px; }
  .ultahost-ad img { width: 90px; height: 60px; }
  .ultahost-ad__headline { font-size: 16px; }
  .ultahost-ad__description { font-size: 12px; }
  .ultahost-ad__button { padding: 8px 10px; font-size: 12px; }
  .zillow-ad { gap: 8px; padding-inline: 8px; }
  .zillow-ad img { width: 90px; height: 60px; }
  .zillow-ad__brand { font-size: 16px; }
  .zillow-ad__description { font-size: 12px; }
  .zillow-ad__button { padding: 8px 10px; font-size: 12px; }
}

/* 14. Article (blog detail) ---------------------------------------------- */
.post-layout { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); padding-bottom: var(--space); }
.post { min-width: 0; }
.post__header { margin-bottom: 24px; }
.post__title { margin-bottom: .35em; font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.12; }
.post__dek { font: 400 1.25rem/1.5 var(--serif); color: var(--muted); }
.post__meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; font-size: .9rem; color: var(--muted); }
.post__meta > * + * { margin-left: .85rem; padding-left: .85rem; border-left: 1px solid var(--line-strong); }
.post__figure { margin: 0 0 32px; }
.post__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--wash); }
figcaption { margin-top: 8px; font: 400 .85rem/1.4 var(--sans); color: var(--muted); }

.prose { max-width: 70ch; font: 400 1.1875rem/1.75 var(--serif); color: #1c2733; }
.prose > * { max-width: 100%; }
.prose h2 { margin: 2em 0 .6em; font-size: clamp(1.5rem, 2.6vw, 1.85rem); }
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.3rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.15em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--navy); font-weight: 700; }
.prose a { color: var(--blue); }
.prose strong { color: var(--navy); }
.prose blockquote { margin: 1.8em 0; padding: .2em 0 .2em 1.2em; border-left: 5px solid var(--amber); font-size: 1.25rem; font-style: italic; color: var(--navy); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; height: auto; border-radius: var(--radius); background: var(--wash); }
.prose .note { margin-top: 2.5em; padding-top: 1em; border-top: 1px solid var(--line); font: 400 .9rem/1.55 var(--sans); color: var(--muted); }

.callout { margin: 0 0 2em; padding: 18px 22px; background: var(--amber-soft); border-left: 5px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; font: 400 1rem/1.6 var(--sans); }
.callout__title { margin: 0 0 .5em; font: 700 1.05rem/1.3 var(--serif); color: var(--navy); }
.callout ul { margin: 0; }
.callout li { margin-bottom: .35em; }

.table-wrap { margin: 1.8em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font: 400 .95rem/1.5 var(--sans); }
.table-wrap caption { padding-bottom: 8px; text-align: left; font-weight: 700; color: var(--navy); }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--navy); color: #fff; border-bottom: 0; }
.table-wrap tbody th { background: var(--wash); color: var(--navy); }

.toc { max-width: 70ch; margin: 0 0 2em; padding: 14px 18px; background: var(--wash); border-radius: var(--radius); font-family: var(--sans); }
.toc summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.toc ol { margin: .8em 0 0; padding-left: 1.3em; }
.toc li { margin-bottom: .35em; }

.post__footer { display: grid; gap: 28px; max-width: 70ch; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.post__footer-title { margin-bottom: .6em; font: 700 1rem/1.3 var(--sans); color: var(--navy); }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.author-box { display: flex; gap: 16px; padding: 20px; background: var(--wash); border-radius: var(--radius-lg); }
.author-box img { flex: none; width: 56px; height: 56px; }
.author-box p { margin: 0 0 .4em; font-size: .95rem; color: var(--muted); }
.author-box p.author-box__name { font: 700 1.05rem/1.3 var(--serif); color: var(--navy); }
.author-box__role { font-weight: 600; }

.notfound { padding: 24px 0 8px; }
.notfound__grid { margin-top: 32px; }

.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 250; height: 4px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }

/* 15. Forms -------------------------------------------------------------- */
.form { display: grid; gap: 16px; position: relative; }
.field { display: grid; gap: 6px; }
.field__label { font-size: .92rem; font-weight: 700; color: var(--navy); }
.field__input,
.search input,
.select select {
  width: 100%; min-height: 46px; padding: .65rem .85rem;
  background: var(--paper); border: 1px solid var(--control); border-radius: 6px;
}
.select select { appearance: auto; }
textarea.field__input { min-height: 130px; resize: vertical; }
.field__input:focus-visible,
.search input:focus-visible,
.select select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field__input[aria-invalid="true"] { border-color: var(--bad); border-width: 2px; }
.field__error { margin: 0; font-size: .875rem; font-weight: 600; color: var(--bad); }

.field--check { grid-template-columns: 22px minmax(0, 1fr); align-items: start; column-gap: 10px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.field--check label { font-size: .92rem; line-height: 1.5; }
.field--check .field__error { grid-column: 1 / -1; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { min-height: 1.4em; margin: 0; font-size: .92rem; font-weight: 600; }
.form__status.is-success { color: var(--ok); }
.form__status.is-error { color: var(--bad); }
.form__status.is-info { color: var(--muted); }

/* 16. Contact popup (dialog) --------------------------------------------- */
html.modal-open { overflow: hidden; }
.modal {
  width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: auto;
  color: var(--ink); background: var(--paper); border: 0; border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(6, 26, 47, .35);
}
.modal::backdrop { background: rgba(6, 26, 47, .62); }
.modal[open] { animation: modal-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal__inner { position: relative; padding: 30px 28px 28px; border-top: 6px solid var(--amber); }
.modal__title { margin: 0 40px .3em 0; font-size: 1.6rem; }
.modal__text { margin-bottom: 1.2em; color: var(--muted); }
.modal__close {
  position: absolute; top: 14px; right: 12px; display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0; background: transparent; border: 0; border-radius: 6px;
  color: var(--navy); cursor: pointer;
}
.modal__close:hover { background: var(--wash); }

/* 17. Cookie banner ------------------------------------------------------ */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200;
  max-width: 980px; margin-inline: auto; padding: 18px 20px;
  background: var(--navy-deep); color: #e3e9f1; border-radius: var(--radius-lg);
  border-top: 4px solid var(--amber); box-shadow: 0 16px 40px rgba(6, 26, 47, .4);
}
.cookie__inner { display: grid; gap: 14px; align-items: center; }
.cookie__title { margin: 0 0 .25em; font: 700 1.05rem/1.3 var(--serif); color: #fff; }
.cookie__text p { margin: 0; font-size: .92rem; }
.cookie a { color: #fff; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie .btn--primary { background: var(--amber); color: var(--navy); }
.cookie .btn--primary:hover { background: var(--amber-hover); }
.cookie .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.cookie .btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* 18. Footer ------------------------------------------------------------- */
.site-footer { margin-top: 0; padding-top: var(--space); background: var(--navy-deep); color: #cdd6e0; }
.site-footer a { color: #e6ecf3; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
.site-footer__brand p { max-width: 38ch; margin: 14px 0; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer__title { margin-bottom: .7em; font: 700 1rem/1.3 var(--sans); color: #fff; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: .5em; }
.site-footer__cta { margin-top: 12px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .85rem;
}
.site-footer__bottom p { margin: 0; }

/* 19. Static pages ------------------------------------------------------- */
.split { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--wash); }
.copy { max-width: 66ch; }
.copy p { font-size: 1.05rem; }

.features { display: grid; gap: 28px var(--gutter); grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.feature { padding-top: 14px; border-top: 3px solid var(--amber); }
.feature h3 { margin-bottom: .35em; }
.feature p { margin-bottom: .6em; color: var(--muted); }
.feature a { font-weight: 600; }

.steps { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 60px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 1.1rem var(--serif);
}
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); }

.cta-band { padding: var(--space) 0; background: var(--navy); color: #d6dfea; border-top: 5px solid var(--amber); }
.cta-band__inner { display: grid; gap: 20px; align-items: center; }
.cta-band h2 { margin-bottom: .3em; color: #fff; }
.cta-band p { max-width: 56ch; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.legal { padding: var(--space) 0; }
.legal__meta { margin-bottom: 2em; padding: 12px 16px; background: var(--wash); border-left: 5px solid var(--amber); font-size: .95rem; color: var(--muted); }
.legal h2 { margin: 2em 0 .5em; font-size: 1.45rem; }
.legal h3 { margin: 1.4em 0 .4em; font-size: 1.15rem; }
.legal p, .legal li { font-size: 1.02rem; }
.legal li { margin-bottom: .45em; }

.contact-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); padding: var(--space) 0; }
.info-list { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.info-card { padding-left: 16px; border-left: 4px solid var(--amber); }
.info-card h2 { margin-bottom: .25em; font-size: 1.15rem; }
.info-card p, .info-card address { margin: 0; font-style: normal; color: var(--muted); }
.panel { padding: clamp(20px, 4vw, 32px); background: var(--paper); border: 1px solid var(--line-strong); border-top: 6px solid var(--amber); border-radius: var(--radius-lg); }
.panel h2 { font-size: 1.5rem; }

/* 20. Responsive & print ------------------------------------------------- */
@media (min-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie__inner { grid-template-columns: 1fr auto; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar__mail { display: inline; }
  .story { grid-template-columns: 150px minmax(0, 1fr); }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; display: flex; align-items: center; gap: 20px; padding: 0;
    background: transparent; border: 0; box-shadow: none;
  }
  .primary-nav ul { display: flex; gap: 2px; margin: 0; }
  .primary-nav li + li { border-top: 0; }
  .primary-nav a { padding: 8px 12px; border-left: 0; border-bottom: 3px solid transparent; }
  .primary-nav a[aria-current="page"] { border-bottom-color: var(--amber); }
  .primary-nav__cta { width: auto; }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
  .split--reverse > :first-child { order: 2; }
  .cta-band__inner { grid-template-columns: 1fr auto; }
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
}

@media (min-width: 1000px) {
  .topbar__topics { display: block; }
  .top-stories { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
  .top-stories__side { padding-left: 40px; border-left: 1px solid var(--line-strong); }
  .layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .post-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 519px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .brand__text { font-size: 1.4rem; }
  .modal__inner { padding: 26px 20px 22px; }
  .author-box { flex-direction: column; }
}

@media print {
  .topbar, .site-header, .site-footer, .ad-slot, .cookie, .modal, .sidebar, .share,
  .read-progress, .cta-band, .skip-link, #related-section { display: none !important; }
  body { color: #000; }
  .prose { max-width: none; font-size: 12pt; }
  a { color: inherit; }
}
