:root {
  --eb-bg: #f6f4ef;
  --eb-surface: #fffdfa;
  --eb-text: #171717;
  --eb-muted: #635d56;
  --eb-border: #e5ded1;
  --eb-line: #f1e5d2;
  --eb-red: #c72720;
  --eb-orange: #f17622;
  --eb-gold: #ffbf3f;
  --eb-ink: #15120f;
  --eb-footer: #15120f;
  --eb-radius: 8px;
  --eb-shadow: 0 18px 44px rgba(36, 25, 12, .12);
  --eb-container: min(1120px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--eb-bg);
  color: var(--eb-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #9f1d18;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #6f120f;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  background: #fff;
  color: var(--eb-text);
  box-shadow: var(--eb-shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 250, .96);
  border-bottom: 1px solid var(--eb-border);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  width: var(--eb-container);
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-branding,
.brand-link,
.custom-logo-link {
  flex: 0 0 auto;
  min-width: 0;
  max-width: min(58vw, 260px);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--eb-ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-logo__mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--eb-red);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

.brand-logo__text {
  font-size: 1.12rem;
  letter-spacing: 0;
}

.custom-logo,
.custom-logo-link img,
.site-branding img,
.brand-logo img,
.footer-brand img,
.site-footer__brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 56px;
  object-fit: contain;
}

.footer-brand img,
.site-footer__brand img {
  max-width: 150px;
  max-height: 48px;
}

.primary-nav__list,
.footer-nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--eb-text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--eb-red);
}

.site-main {
  min-height: 62vh;
}

.article-shell,
.archive-list,
.archive-hero,
.page-hero {
  width: var(--eb-container);
  margin: 0 auto;
}

.hero-band {
  width: var(--eb-container);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 44%);
  gap: 24px;
  align-items: stretch;
  background: linear-gradient(135deg, #fff9ed 0%, #ffffff 48%, #ffe3b0 100%);
  border: 1px solid #edd3a8;
  border-radius: var(--eb-radius);
  box-shadow: var(--eb-shadow);
  overflow: hidden;
}

.hero-band--guide {
  grid-template-columns: 1fr;
}

.hero-band--guide .hero-band__content {
  max-width: 920px;
}

.hero-band__content {
  padding: clamp(26px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-band__content h1,
.page-hero h1,
.archive-hero h1 {
  margin: 0;
  max-width: 920px;
  color: var(--eb-ink);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-band__content h1 {
  max-width: 760px;
}

.hero-band--guide .hero-band__content h1 {
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--eb-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-lede,
.page-hero p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--eb-muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: var(--eb-radius);
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  text-align: center;
  white-space: normal;
}

.button--primary,
.wp-block-button__link,
.wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--eb-red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(199, 39, 32, .24);
}

.button--primary:hover,
.wp-block-button__link:hover {
  background: #9f1d18;
  color: #fff;
}

.button--secondary {
  background: #fff;
  color: var(--eb-red);
  border-color: var(--eb-red);
}

.button--secondary:hover {
  background: #fff4eb;
}

.hero-band__media {
  min-height: 360px;
  margin: 0;
  background: #201a16;
}

.hero-band__media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
}

.content-frame {
  margin: 28px auto 54px;
  padding: clamp(20px, 3vw, 38px);
  background: var(--eb-surface);
  border: 1px solid var(--eb-border);
  border-radius: var(--eb-radius);
  box-shadow: 0 14px 34px rgba(41, 28, 10, .08);
}

.content-frame > *:first-child {
  margin-top: 0;
}

.content-frame > *:last-child {
  margin-bottom: 0;
}

.breadcrumb {
  width: var(--eb-container);
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--eb-muted);
  font-size: .9rem;
}

.breadcrumb a {
  color: var(--eb-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--eb-red);
}

.breadcrumb__sep {
  color: #9a8d7d;
}

.guide-disclosure,
.editorial-box,
.source-note,
.scenario-box,
.warning-box {
  margin: 24px 0;
  padding: 18px;
  border-radius: var(--eb-radius);
  border: 1px solid var(--eb-border);
  background: #fffaf2;
}

.guide-disclosure {
  border-color: #d8c19c;
  background: #fff7e7;
}

.warning-box {
  border-color: #e9b6ae;
  background: #fff4f1;
}

.trust-strip,
.task-grid,
.route-grid,
.check-grid,
.source-grid,
.metric-grid {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.trust-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.task-grid,
.route-grid,
.source-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-grid,
.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-strip span,
.task-card,
.route-card,
.check-card,
.source-card,
.metric-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #efd5ad;
  border-radius: var(--eb-radius);
  background: #fffaf2;
}

.trust-strip span {
  display: block;
  color: var(--eb-ink);
  font-weight: 800;
  text-align: center;
}

.task-card,
.route-card,
.source-card {
  text-decoration: none;
}

.task-card h3,
.route-card h3,
.source-card h3,
.check-card h3,
.metric-card h3 {
  margin-top: 0;
}

.task-card p,
.route-card p,
.source-card p,
.check-card p,
.metric-card p {
  margin-bottom: 0;
}

.process-steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin: 24px 0;
  padding-left: 0;
  list-style: none;
}

.process-steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 56px;
  border: 1px solid var(--eb-border);
  border-radius: var(--eb-radius);
  background: #fffdfa;
}

.process-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 17px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--eb-red);
  color: #fff;
  font-weight: 800;
}

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: 22px;
  align-items: start;
  margin: 24px 0;
}

.layout-split aside {
  padding: 18px;
  border: 1px solid #efd5ad;
  border-radius: var(--eb-radius);
  background: #fff7e7;
}

.content-frame details {
  break-inside: avoid;
}

.content-frame h2 {
  margin: 42px 0 16px;
  padding-top: 12px;
  border-top: 2px solid var(--eb-line);
  color: var(--eb-red);
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.content-frame h3 {
  margin: 28px 0 10px;
  color: var(--eb-ink);
  font-size: 1.25rem;
  line-height: 1.25;
}

.content-frame p,
.content-frame li {
  color: #2d2a27;
}

.content-frame strong {
  color: #181411;
}

.content-frame ul,
.content-frame ol {
  padding-left: 1.3em;
}

.wp-block-group,
.wp-block-columns {
  margin: 24px 0;
}

.wp-block-group.is-style-card,
.brand-card,
.wp-block-column {
  padding: 18px;
  background: #fffaf2;
  border: 1px solid #f0dcc0;
  border-radius: var(--eb-radius);
}

.wp-block-columns {
  gap: 18px;
}

.wp-block-image {
  margin: 28px auto;
}

.wp-block-image img,
.featured-media img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--eb-radius);
  border: 1px solid var(--eb-border);
  box-shadow: 0 12px 30px rgba(32, 22, 12, .12);
}

.wp-block-image figcaption {
  margin-top: 8px;
  color: var(--eb-muted);
  font-size: .9rem;
  text-align: center;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--eb-border);
  border-radius: var(--eb-radius);
}

.content-frame table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
}

.content-frame th,
.content-frame td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--eb-border);
  text-align: left;
  vertical-align: top;
}

.content-frame th {
  background: #fff1da;
  color: var(--eb-ink);
  font-weight: 800;
}

.content-frame tr:last-child td {
  border-bottom: 0;
}

.wp-block-details,
.faq-item {
  margin: 12px 0;
  padding: 16px 18px;
  background: #fffaf2;
  border: 1px solid #efd5ad;
  border-radius: var(--eb-radius);
}

.wp-block-details summary,
.faq-item summary {
  cursor: pointer;
  color: var(--eb-ink);
  font-weight: 800;
}

.wp-block-details p,
.faq-item p {
  margin-bottom: 0;
}

.page-hero,
.archive-hero {
  margin-top: 32px;
  padding: clamp(24px, 4vw, 44px);
  background: #fffdfa;
  border: 1px solid var(--eb-border);
  border-radius: var(--eb-radius);
  box-shadow: 0 12px 30px rgba(41, 28, 10, .08);
}

.page-hero .button {
  margin-top: 22px;
}

.featured-media {
  width: var(--eb-container);
  margin: 24px auto 0;
}

.archive-list {
  margin-top: 26px;
  margin-bottom: 54px;
  display: grid;
  gap: 18px;
}

.archive-card {
  padding: 22px;
  background: #fffdfa;
  border: 1px solid var(--eb-border);
  border-radius: var(--eb-radius);
}

.archive-card h2 {
  margin-top: 0;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.search-field {
  min-height: 44px;
  min-width: min(340px, 70vw);
  padding: 10px 12px;
  border: 1px solid var(--eb-border);
  border-radius: var(--eb-radius);
}

.search-form button {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--eb-radius);
  background: var(--eb-red);
  color: #fff;
  font-weight: 800;
}

.site-footer {
  margin-top: 56px;
  background: var(--eb-footer);
  color: #f8f2ea;
}

.site-footer__inner {
  width: var(--eb-container);
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(220px, 1fr) minmax(240px, 1.2fr);
  gap: 28px;
}

.site-footer a {
  color: #fff3df;
}

.site-footer p {
  margin: 12px 0 0;
  color: #d9cbbb;
  font-size: .94rem;
}

.footer-nav__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-nav a {
  color: #fff3df;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--eb-gold);
}

@media (max-width: 920px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }

  .hero-band {
    grid-template-columns: 1fr;
  }

  .hero-band__media,
  .hero-band__media img {
    min-height: 260px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .task-grid,
  .route-grid,
  .check-grid,
  .source-grid,
  .metric-grid,
  .layout-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-branding,
  .brand-link,
  .custom-logo-link {
    max-width: min(58vw, 160px);
  }

  .custom-logo,
  .custom-logo-link img,
  .site-branding img,
  .brand-logo img {
    max-width: 140px;
    max-height: 44px;
  }

  .primary-nav__list {
    gap: 6px 12px;
  }

  .primary-nav a {
    min-height: 32px;
    font-size: 13px;
  }

  .hero-band {
    margin-top: 18px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button,
  .wp-block-button__link {
    width: 100%;
  }

  .content-frame {
    padding: 18px;
  }

  .content-frame table {
    min-width: 560px;
  }

  .footer-nav__list {
    grid-template-columns: 1fr;
  }
}
