:root {
  --bg: #061813;
  --bg-2: #0b241c;
  --surface: #102d23;
  --surface-2: #15392c;
  --line: rgba(226, 247, 234, 0.14);
  --text: #f5fff9;
  --muted: #b9d6c9;
  --accent: #f4c542;
  --accent-2: #39d98a;
  --danger: #ffb36b;
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, rgba(57, 217, 138, 0.18), transparent 34rem), var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

a {
  color: inherit;
  text-decoration-color: rgba(244, 197, 66, 0.55);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

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

.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 {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--accent);
  color: #102014;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 24, 19, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.site-footer__inner,
.hero-section,
.content-shell {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
}

.brand,
.brand__fallback,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #f68d2e);
  color: #102014;
}

.brand__text,
.footer-brand {
  font-size: 1.15rem;
}

.custom-logo,
.custom-logo-link img,
.site-branding img,
.brand-logo img,
.footer-brand img {
  display: block;
  width: auto;
  max-width: 176px;
  max-height: 52px;
}

.primary-nav ul,
.footer-nav ul {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a,
.footer-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.primary-nav a:hover,
.footer-nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.hero-section {
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 44px;
  padding: 56px 0 42px;
}

.hero-section__copy {
  max-width: 680px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  line-height: 1.22;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 4.75rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  padding-top: 18px;
}

h3 {
  font-size: 1.2rem;
}

.hero-section__lead {
  max-width: 62ch;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

.primary-cta,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(135deg, var(--accent), #f68d2e);
  color: #102014;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(244, 197, 66, 0.18);
}

.primary-cta:hover,
.wp-block-button__link:hover {
  color: #102014;
  transform: translateY(-1px);
}

.hero-section__media,
.page-featured-image,
.wp-block-image {
  border-radius: 8px;
  overflow: hidden;
}

.hero-image,
.page-featured-image img,
.wp-block-image img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.hero-section__media {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(57, 217, 138, 0.12), rgba(244, 197, 66, 0.08));
  padding: 8px;
}

.content-shell {
  padding: 28px 0 72px;
}

.page-shell {
  max-width: 920px;
}

.page-hero {
  padding: 46px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.content-shell p,
.content-shell li {
  color: var(--muted);
}

.content-shell > p,
.content-shell > ul,
.content-shell > ol,
.content-shell > figure,
.content-shell > .wp-block-group,
.content-shell > .wp-block-table {
  margin-bottom: 22px;
}

.wp-block-group,
.post-card,
.wp-block-table table,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(16, 45, 35, 0.92), rgba(11, 36, 28, 0.92));
}

.wp-block-group {
  padding: 22px;
}

.guide-grid,
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-card,
.topic-card,
.checklist-panel,
.notice-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(16, 45, 35, 0.94), rgba(11, 36, 28, 0.94));
  padding: 18px;
}

.guide-card h3,
.topic-card h3 {
  margin-bottom: 8px;
}

.guide-card p,
.topic-card p,
.checklist-panel p,
.notice-panel p {
  margin-bottom: 0;
}

.notice-panel {
  border-color: rgba(244, 197, 66, 0.35);
  background: rgba(244, 197, 66, 0.08);
}

.wp-block-table {
  overflow-x: auto;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.wp-block-table td,
.wp-block-table th {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.wp-block-table th {
  color: var(--text);
  text-align: left;
}

.wp-block-quote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: rgba(244, 197, 66, 0.08);
  color: var(--text);
}

.faq-item {
  padding: 18px;
  margin: 14px 0;
}

.faq-item h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card {
  padding: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #04110d;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 34px 0;
}

.site-footer p {
  max-width: 58ch;
  margin: 10px 0 0;
  color: var(--muted);
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-field {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.search-submit {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: #102014;
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header__inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

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

  .primary-nav ul {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero-section {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .hero-section__media {
    order: -1;
  }

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

  .footer-nav ul {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .guide-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }
}
