:root {
  --bg: #090909;
  --bg-2: #111317;
  --surface: #17191f;
  --surface-2: #20242c;
  --text: #f6f1e7;
  --muted: #c9c1b4;
  --gold: #f3c75e;
  --gold-2: #d79d2f;
  --teal: #4ac8b1;
  --red: #c94e57;
  --border: rgba(243, 199, 94, 0.22);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 9, 9, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.site-footer__inner,
.site-main {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

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

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

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

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

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

.primary-menu a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--text);
  font-size: 0.94rem;
  text-decoration: none;
}

.primary-menu a:hover,
.footer-menu a:hover {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
}

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

.site-main {
  padding: 52px 0 72px;
}

.site-main--front {
  padding-top: 0;
}

.longform-entry {
  overflow: hidden;
}

.entry-header {
  max-width: 860px;
  margin: 0 auto 28px;
  text-align: center;
}

.entry-title,
.entry-content h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.entry-content h2 {
  margin: 60px 0 18px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.entry-content h3 {
  margin: 28px 0 12px;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0;
}

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

.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > table,
.entry-content > .wp-block-group,
.entry-content > .wp-block-buttons,
.entry-content > .wp-block-details {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .wp-block-image,
.entry-media {
  max-width: 1040px;
  margin: 34px auto;
}

.entry-content > .wp-block-image img,
.entry-media img {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.entry-content .wp-block-group {
  padding: 28px;
  background: linear-gradient(145deg, rgba(32, 36, 44, 0.96), rgba(17, 19, 23, 0.98));
  border: 1px solid var(--border);
  border-radius: 8px;
}

.entry-content .hero-panel {
  width: min(100vw, 100%);
  max-width: none;
  min-height: min(720px, calc(100vh - 72px));
  margin: 0 calc(50% - 50vw) 52px;
  padding: 74px max(24px, calc((100vw - var(--container)) / 2)) 42px;
  display: grid;
  align-content: center;
  background:
    linear-gradient(180deg, rgba(9, 9, 9, 0.38), rgba(9, 9, 9, 0.98)),
    linear-gradient(135deg, #17191f 0%, #0d1015 46%, #221a10 100%);
  border: 0;
  border-radius: 0;
  text-align: center;
}

.entry-content .hero-panel p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content .hero-panel .wp-block-image {
  max-width: 960px;
  margin: 34px auto 0;
}

.entry-content .hero-panel .wp-block-image img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.entry-content .snapshot-grid,
.entry-content .quick-grid,
.entry-content .feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.entry-content .snapshot-grid > *,
.entry-content .quick-grid > *,
.entry-content .feature-grid > * {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.entry-content .status-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.entry-content .status-table th,
.entry-content .status-table td {
  padding: 14px 16px;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.entry-content .status-table th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.wp-block-button__link,
.entry-content .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  color: #17100a;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(215, 157, 47, 0.24);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  box-shadow: none;
}

.entry-content details {
  max-width: 860px;
  padding: 18px 20px;
  margin: 12px auto;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.entry-content summary {
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
}

.site-footer {
  background: #0c0c0d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  padding: 42px 0;
}

.footer-brand p,
.footer-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-menu {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-menu a {
  color: var(--muted);
  text-decoration: none;
}

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

.post-card a {
  display: block;
  height: 100%;
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.search-form {
  display: flex;
  max-width: 620px;
  gap: 10px;
  margin: 22px auto;
}

.search-field {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.search-form button {
  min-height: 46px;
  padding: 0 18px;
  color: #17100a;
  font-weight: 800;
  background: var(--gold);
  border: 0;
  border-radius: 8px;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

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

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

  .primary-menu,
  .footer-menu,
  .site-footer__inner {
    display: block;
  }

  .primary-menu li + li,
  .footer-menu li + li {
    margin-top: 10px;
  }

  .entry-content .snapshot-grid,
  .entry-content .quick-grid,
  .entry-content .feature-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .entry-content .hero-panel {
    min-height: auto;
    padding-top: 48px;
  }

  .entry-content .hero-panel .wp-block-image img {
    aspect-ratio: 4 / 3;
  }

  .entry-content .wp-block-group {
    padding: 20px;
  }
}

@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;
  }

  .site-main {
    width: min(100% - 22px, var(--container));
    padding-bottom: 48px;
  }

  .entry-content > .wp-block-group {
    margin-left: 0;
    margin-right: 0;
  }

  .entry-content .status-table,
  .entry-content .status-table tbody,
  .entry-content .status-table tr,
  .entry-content .status-table th,
  .entry-content .status-table td {
    display: block;
    width: 100%;
  }

  .entry-content .status-table th {
    border-bottom: 0;
  }
}

.guide-87a {
  overflow-wrap: anywhere;
}

.guide-87a-note,
.guide-87a-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.guide-87a-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.guide-87a-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-87a-card h3 {
  margin-top: 0;
}

.guide-87a-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.guide-87a-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.guide-87a-table th,
.guide-87a-table td {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.guide-87a-table th {
  background: rgba(255, 255, 255, 0.08);
}

.guide-87a-checklist {
  padding-left: 1.4rem;
}

.guide-87a-checklist li + li {
  margin-top: 8px;
}

.guide-87a details {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.035);
}

.guide-87a details + details {
  margin-top: 12px;
}

.guide-87a summary {
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 768px) {
  .guide-87a-grid,
  .guide-87a-grid--two {
    grid-template-columns: 1fr;
  }

  .guide-87a-table {
    min-width: 560px;
  }
}
