:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --ink: #13201d;
  --muted: #5e6861;
  --line: #dce3da;
  --green: #0c6f59;
  --green-dark: #084437;
  --gold: #c88a22;
  --red: #8b2f2f;
  --shadow: 0 18px 45px rgba(15, 28, 26, 0.12);
  --radius: 8px;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(200, 138, 34, 0.65);
  outline-offset: 3px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 244, 238, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(190px, auto) 1fr auto;
  gap: 18px;
  align-items: center;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  max-width: 176px;
  max-height: 58px;
  object-fit: contain;
}

.brand-text {
  display: inline-grid;
  place-items: center;
  min-width: 112px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(12, 111, 89, 0.38);
  border-radius: var(--radius);
  background: #102620;
  color: #fff;
  font-weight: 800;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
}

.primary-nav {
  justify-self: center;
  min-width: 0;
  max-width: 100%;
}

.primary-nav ul,
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav .menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
  max-width: 100%;
}

.primary-nav a {
  display: block;
  padding: 8px 9px;
  border-radius: var(--radius);
  color: #263632;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.primary-nav a:hover {
  background: rgba(12, 111, 89, 0.1);
}

.header-cta,
.button,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.header-cta,
.button--primary,
.search-form button {
  background: var(--green);
  color: #fff;
}

.button--secondary {
  background: #fff;
  border-color: rgba(12, 111, 89, 0.28);
  color: var(--green-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero-section {
  padding: 58px 0 48px;
  background: linear-gradient(135deg, #f6f4ee 0%, #edf5ee 54%, #fbf0dc 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid,
.visual-grid,
.guide-grid,
.why-grid,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
}

.visual-grid--reverse {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  font-size: clamp(36px, 6vw, 68px);
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
}

h3 {
  font-size: 21px;
}

.hero-copy p,
.section-head p,
.page-hero p,
.visual-grid p,
.guide-copy p {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 18px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-strip span {
  padding: 8px 10px;
  border: 1px solid rgba(12, 111, 89, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.hero-media,
.guide-media,
.post-card__media {
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfe9e3;
  box-shadow: var(--shadow);
}

.hero-image,
.module-image,
.post-card__fallback {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.section {
  padding: 64px 0;
}

.section--muted {
  background: #ffffff;
}

.section--responsible {
  background: #102620;
  color: #fff;
}

.section--responsible p,
.section--responsible .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.section-head {
  margin-bottom: 24px;
}

.section-head--split {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.action-grid,
.feature-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.action-tile,
.topic-card,
.post-card,
.faq-list details,
.article-note,
.note-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(19, 32, 29, 0.08);
}

.action-tile {
  display: grid;
  min-height: 260px;
  padding: 14px;
  gap: 12px;
  text-decoration: none;
  overflow: hidden;
}

.action-tile strong,
.action-tile span {
  display: block;
}

.action-tile strong {
  font-size: 22px;
}

.action-tile__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  background: #dfe9e3;
}

.action-tile span,
.topic-card p,
.post-card p,
.faq-list p,
.article-note p,
.note-band span {
  color: var(--muted);
}

.topic-card {
  min-height: 230px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.text-link {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

.text-link::after {
  content: " ->";
}

.visual-band {
  background: #f8fbf8;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
}

.check-list--large {
  font-size: 18px;
}

.post-card {
  overflow: hidden;
}

.post-card__body {
  padding: 18px;
}

.post-card__body h2 {
  font-size: 22px;
}

.post-card__body a {
  text-decoration: none;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.page-hero {
  padding: 54px 0;
  background: #102620;
  color: #fff;
}

.page-hero p,
.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.page-intro {
  max-width: 860px;
}

.page-intro p {
  color: rgba(255, 255, 255, 0.86);
}

.page-content-section {
  padding: 0 0 64px;
}

.page-content {
  max-width: 860px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(19, 32, 29, 0.08);
}

.page-content h2,
.page-content h3 {
  margin-top: 28px;
  color: var(--ink);
}

.page-content h2:first-child,
.page-content h3:first-child,
.page-content p:first-child {
  margin-top: 0;
}

.page-content a {
  color: var(--green-dark);
  font-weight: 800;
}

.page-content ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--ink);
}

.page-content li + li {
  margin-top: 8px;
}

.page-content .wp-block-table {
  max-width: 100%;
  margin: 16px 0 0;
  overflow-x: auto;
}

.page-content table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: var(--ink);
}

.page-content th,
.page-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.page-content th {
  color: var(--ink);
  background: #eef5ef;
}

.page-content .note-band {
  margin-top: 18px;
  background: #fff;
  border-color: rgba(139, 47, 47, 0.18);
  box-shadow: none;
}

.page-content .note-band strong {
  color: var(--red);
}

.page-content .note-band span {
  color: var(--ink);
}

.page-modules {
  padding: 48px 0 64px;
}

.note-band {
  margin-top: 22px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  border-color: rgba(139, 47, 47, 0.18);
}

.note-band strong {
  color: var(--red);
  white-space: nowrap;
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding: 54px 0;
}

.entry-content {
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 28px;
}

.article-note {
  padding: 22px;
  align-self: start;
}

.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-field {
  min-height: 44px;
  width: min(320px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
}

.site-footer {
  padding: 52px 0 24px;
  background: #0e1c19;
  color: #fff;
}

.site-footer p,
.site-footer li,
.site-footer a,
.risk-line {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
  text-decoration: none;
}

.site-footer .menu {
  display: grid;
  gap: 8px;
}

.footer-grid {
  align-items: start;
  grid-template-columns: 1.2fr 0.7fr 1fr;
}

.footer-grid h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.error-hero .search-form {
  margin: 24px 0;
}

@media (max-width: 1200px) {
  .header-inner {
    grid-template-columns: minmax(160px, auto) auto auto;
  }

  .menu-toggle {
    display: inline-block;
    justify-self: end;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .menu {
    display: grid;
    justify-content: stretch;
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .visual-grid,
  .visual-grid--reverse,
  .guide-grid,
  .why-grid,
  .footer-grid,
  .content-wrap {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .action-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .section-head--split,
  .footer-bottom {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .hero-section {
    padding-top: 42px;
  }

  h1 {
    font-size: 38px;
  }

  .section {
    padding: 46px 0;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 24px, var(--wrap));
  }

  .brand-sub {
    display: none;
  }

  .hero-actions,
  .search-form,
  .note-band {
    display: grid;
    align-items: stretch;
  }

  .button,
  .search-form button,
  .search-field {
    width: 100%;
  }

  .page-content {
    padding: 24px 18px;
  }

  .page-content table {
    min-width: 480px;
  }

  h1 {
    font-size: 34px;
  }
}
