/*
Theme Name: ACE COMBAT 8 Guide
Theme URI: https://acecombat8.guide/
Description: Kadence child theme for acecombat8.guide \2014 practical Ace Combat 8: Wings of Theve guides.
Author: ACE COMBAT 8 Guide
Template: kadence
Version: 1.0.0
Text Domain: acecombat8-guide
*/

/* Brand tokens \2014 matched to Kadence global palette */
:root {
  --ac8-blue: #3A7CA5;
  --ac8-blue-dark: #1E4E6E;
  --ac8-blue-btn: #1E4E6E;
  --ac8-ink: #0B1220;
  --ac8-muted: #64748B;
  --ac8-surface: #E8EEF4;
  --ac8-border: #C5D0DC;
  --ac8-accent: #3A7CA5;
  --ac8-on-dark: #ffffff;
  --ac8-on-dark-muted: #94A3B8;
}

body {
  color: var(--ac8-ink);
}

a {
  color: var(--ac8-blue);
}

a:hover,
a:focus {
  color: var(--ac8-blue-dark);
}

/* Header dossier CTA */
.ac8-header-cta .button,
.ac8-header-cta .kb-button,
.ac8-header-cta a.wp-block-button__link {
  background: var(--ac8-blue-btn) !important;
  border-color: var(--ac8-blue-btn) !important;
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ac8-header-cta .button:hover,
.ac8-header-cta .kb-button:hover,
.ac8-header-cta a.wp-block-button__link:hover {
  background: var(--ac8-blue-dark) !important;
  border-color: var(--ac8-blue-dark) !important;
}

/* Verified / evidence badges */
.ac8-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--ac8-border);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ac8-ink);
  background: #fff;
}

.ac8-badge--official {
  border-color: var(--ac8-blue);
  color: var(--ac8-blue-dark);
  background: #CCFBF1;
}

.ac8-badge--reported {
  border-color: #9a3412;
  color: #9a3412;
  background: #fff7ed;
}

.ac8-badge--unknown {
  border-color: var(--ac8-muted);
  color: var(--ac8-ink);
  background: #eef2f6;
}

/* Cross-site callout */
.ac8-dossier-callout {
  border-left: 3px solid var(--ac8-blue);
  background: var(--ac8-surface);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.ac8-dossier-callout strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ac8-ink);
}

/* Journey steps */
.ac8-journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .ac8-journey {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .ac8-journey {
    grid-template-columns: 1fr;
  }
}

.ac8-journey__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.25rem;
  margin: 0 0.4rem 0.5rem 0;
  padding: 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
  background: var(--ac8-blue-dark);
  border-radius: 2px;
  vertical-align: middle;
}

.ac8-journey__num + .ac8-badge {
  display: inline-flex;
  vertical-align: middle;
  margin-bottom: 0.5rem;
}

/* Intent ranking list \2014 compact rows */
.ac8-intent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ac8-border);
}

.ac8-intent-list li {
  display: grid;
  grid-template-columns: 1.85rem minmax(0, 1fr) auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--ac8-border);
}

.ac8-intent-list__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ac8-blue-dark);
  background: var(--ac8-surface);
  border: 1px solid var(--ac8-border);
  border-radius: 2px;
}

.ac8-intent-list a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--ac8-ink);
}

.ac8-intent-list a:hover {
  color: var(--ac8-blue);
}

.ac8-intent-list__tag {
  font-size: 0.7rem;
  color: var(--ac8-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  white-space: nowrap;
  align-self: center;
}

/* Homepage hero */
.ac8-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding: 4rem 0 3.5rem;
  background:
    linear-gradient(180deg, rgba(11, 28, 44, 0.2) 0%, rgba(11, 18, 32, 0.9) 70%, #0B1220 100%),
    radial-gradient(ellipse at 75% 10%, rgba(245, 158, 11, 0.32), transparent 42%),
    radial-gradient(ellipse at 15% 45%, rgba(94, 234, 212, 0.2), transparent 48%),
    linear-gradient(155deg, #0B1C2C 0%, #1E3A5F 40%, #3A7CA5 68%, #F59E0B 140%);
  color: var(--ac8-on-dark);
  overflow: hidden;
}

/* Compact hero for category / hub pages */
.ac8-hero--hub {
  min-height: 0;
  padding: 3rem 0 2.5rem;
  align-items: flex-end;
}

.ac8-hero--hub .ac8-hero__brand {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.ac8-hero--hub .ac8-hero__lede {
  max-width: 38rem;
}

.ac8-hero__inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.ac8-hero__brand {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
  line-height: 1.1;
  color: #fff;
}

.ac8-hero__lede {
  max-width: 36rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ac8-on-dark-muted);
  opacity: 1;
  margin: 0 0 1.5rem;
}

.ac8-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ac8-hero__actions a {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}

.ac8-hero__actions .ac8-btn-primary {
  background: #fff;
  color: var(--ac8-ink);
  border: 1px solid #fff;
}

.ac8-hero__actions .ac8-btn-primary:hover {
  background: #E8EEF4;
  color: var(--ac8-ink);
}

.ac8-hero__actions .ac8-btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.ac8-hero__actions .ac8-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ac8-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ac8-on-dark-muted);
  opacity: 1;
}

.ac8-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

/* WordPress wpautop inserts <br> between meta spans \2014 keep chips in a row */
.ac8-hero__meta br {
  display: none;
}

.ac8-hero__meta span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
}

/* Stats strip under hero */
.ac8-stats {
  background: #070B12;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ac8-stats__inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.ac8-stats__inner--4 {
  grid-template-columns: repeat(4, 1fr);
}

.ac8-stat {
  padding: 1.1rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.ac8-stat:last-child {
  border-right: none;
}

.ac8-stat__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ac8-on-dark-muted);
  margin-bottom: 0.25rem;
}

.ac8-stat__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 900px) {
  .ac8-stats__inner {
    grid-template-columns: repeat(3, 1fr);
  }
  .ac8-stats__inner--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .ac8-stat:nth-child(3n) {
    border-right: none;
  }
  .ac8-stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 560px) {
  .ac8-stats__inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .ac8-stat:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
  .ac8-stat:nth-child(2n) {
    border-right: none;
  }
}

/* Journey as clickable cards */
.ac8-journey__step {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--ac8-border);
  border-top: 3px solid var(--ac8-blue);
  background: #fff;
  padding: 0.9rem 0.95rem 1rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

/* wpautop may insert <br> inside steps \2014 keep num + badge on one row */
.ac8-journey__step br,
.ac8-journey br,
.ac8-tiles br {
  display: none;
}

.ac8-journey__step:hover {
  border-color: var(--ac8-blue);
  transform: translateY(-2px);
  color: inherit;
}

.ac8-journey__step .ac8-badge {
  margin-bottom: 0.5rem;
  padding: 0.12rem 0.4rem;
  font-size: 0.68rem;
}

.ac8-journey__step h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: var(--ac8-ink);
}

.ac8-journey__step p {
  margin: 0;
  color: var(--ac8-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Topic tiles (db.wiki style) */
.ac8-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

@media (max-width: 900px) {
  .ac8-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .ac8-tiles {
    grid-template-columns: 1fr;
  }
}

.ac8-tile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--ac8-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.ac8-tile:hover {
  border-color: var(--ac8-blue);
  color: inherit;
}

.ac8-tile strong {
  color: var(--ac8-ink);
  font-size: 1rem;
}

.ac8-tile span {
  color: var(--ac8-muted);
  font-size: 0.85rem;
}

/* Intent list with body block \2014 badge + title share one row */
.ac8-intent-list__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.5rem;
  row-gap: 0.15rem;
  align-items: baseline;
  min-width: 0;
}

.ac8-intent-list__body .ac8-badge {
  grid-row: 1;
  grid-column: 1;
  align-self: baseline;
  padding: 0.12rem 0.4rem;
  font-size: 0.68rem;
}

.ac8-intent-list__body a {
  grid-row: 1;
  grid-column: 2;
  min-width: 0;
}

.ac8-intent-list__body p {
  grid-row: 2;
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ac8-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

/* Fact grid */
.ac8-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ac8-border);
  border: 1px solid var(--ac8-border);
  margin: 1.5rem 0 0;
}

.ac8-facts > div {
  background: #fff;
  padding: 0.9rem 1rem;
}

.ac8-facts span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ac8-muted);
  margin-bottom: 0.2rem;
}

.ac8-facts strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ac8-ink);
}

@media (max-width: 800px) {
  .ac8-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Video embed */
.ac8-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--ac8-border);
  overflow: hidden;
}

.ac8-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ac8-video__note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--ac8-muted);
}

/* FAQ accordion */
.ac8-faq {
  border-top: 1px solid var(--ac8-border);
}

.ac8-faq__item {
  border-bottom: 1px solid var(--ac8-border);
  background: #fff;
  padding: 0;
}

.ac8-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: var(--ac8-ink);
}

.ac8-faq__item summary::-webkit-details-marker {
  display: none;
}

.ac8-faq__item summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: var(--ac8-blue);
}

.ac8-faq__item[open] summary::after {
  content: "\2212";
}

.ac8-faq__item p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  color: var(--ac8-muted);
  max-width: 46rem;
}

/* Front-page full-bleed helpers for new blocks */
body.home .entry-content .ac8-stats,
body.home .entry-content .ac8-section,
body.home .entry-content .ac8-section--muted {
  width: 100%;
  max-width: 100%;
}

/* Section CTAs (light background) */
.ac8-section .ac8-hero__actions .ac8-btn-primary,
.ac8-section .ac8-btn-primary {
  background: var(--ac8-blue-btn);
  color: #fff;
  border: 1px solid var(--ac8-blue-btn);
}

.ac8-section .ac8-hero__actions .ac8-btn-secondary,
.ac8-section .ac8-btn-secondary {
  background: #fff;
  color: var(--ac8-blue-dark);
  border: 1px solid var(--ac8-blue-dark);
}

.ac8-hero__actions .ac8-btn-primary:hover,
.ac8-section .ac8-btn-primary:hover {
  background: var(--ac8-blue-dark);
  border-color: var(--ac8-blue-dark);
  color: #fff;
}

.ac8-section .ac8-btn-secondary:hover {
  background: var(--ac8-blue-dark);
  color: #fff;
  border-color: var(--ac8-blue-dark);
}

.ac8-section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--ac8-ink);
}

.ac8-section__sub {
  margin: 0 0 2rem;
  color: var(--ac8-muted);
  max-width: 40rem;
}

.ac8-faq__item p,
.ac8-intent-list__body p,
.ac8-journey__step p,
.ac8-tile span,
.ac8-video__note,
.ac8-footer-disclaimer {
  color: var(--ac8-muted);
}

.ac8-dossier-callout {
  color: var(--ac8-ink);
}

.ac8-dossier-callout a {
  color: var(--ac8-blue-dark);
  font-weight: 600;
  text-decoration: underline;
}

/* Guide article prose */
.ac8-guide {
  max-width: 46rem;
}

.ac8-guide h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.ac8-guide h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.ac8-guide ul,
.ac8-guide ol {
  padding-left: 1.25rem;
}

.ac8-guide li {
  margin-bottom: 0.35rem;
}

.ac8-guide table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.ac8-guide th,
.ac8-guide td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--ac8-border);
  vertical-align: top;
}

.ac8-guide thead th {
  color: var(--ac8-ink);
  font-weight: 700;
  border-bottom: 2px solid var(--ac8-blue);
  background: var(--ac8-surface);
}

.ac8-guide tbody tr:last-child td {
  border-bottom: none;
}

/* Footer bar */
.ac8-footer-bar {
  border-top: 1px solid var(--ac8-border);
  background: var(--ac8-surface);
  padding: 1.75rem 0 1.25rem;
}

.ac8-footer-bar__inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.ac8-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.ac8-footer-nav a {
  color: var(--ac8-ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.ac8-footer-nav a:hover {
  color: var(--ac8-blue);
}

.ac8-footer-disclaimer {
  font-size: 0.85rem;
  color: var(--ac8-muted);
  max-width: 40rem;
  margin: 0;
  line-height: 1.5;
}

.site-footer a {
  text-decoration: none;
}

/* Hide Kadence default "Theme by" footer credit */
.site-footer .site-info,
.site-footer .footer-html {
  display: none !important;
}

/* Intent list mobile \2014 keep tag with content, not under rank */
@media (max-width: 640px) {
  .ac8-intent-list li {
    grid-template-columns: 1.75rem minmax(0, 1fr);
    gap: 0.25rem 0.6rem;
    padding: 0.5rem 0;
  }

  .ac8-intent-list__tag {
    grid-column: 2;
    justify-self: start;
  }

  .ac8-intent-list__body {
    grid-template-columns: 1fr;
    row-gap: 0.12rem;
  }

  .ac8-intent-list__body .ac8-badge,
  .ac8-intent-list__body a,
  .ac8-intent-list__body p {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Section rhythm */
.ac8-section {
  padding: 3.5rem 0;
}

.ac8-section--muted {
  background: var(--ac8-surface);
}

.ac8-section__inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
}



/* === Ace Combat aerial overrides === */
:root {
  --ac8-hud: #5EEAD4;
  --ac8-afterburner: #F59E0B;
  --ac8-sky-deep: #0B1C2C;
}
.ac8-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #5EEAD4, #F59E0B, transparent);
  opacity: 0.9;
  z-index: 2;
}
.ac8-hero__eyebrow { color: #5EEAD4 !important; letter-spacing: 0.14em !important; font-weight: 700 !important; }
.ac8-hero__meta span {
  border-color: rgba(94, 234, 212, 0.45) !important;
  color: #E0F2FE !important;
  background: rgba(11, 28, 44, 0.5) !important;
}
.ac8-hero__actions .ac8-btn-primary,
.ac8-section .ac8-btn-primary,
a.ac8-btn-primary {
  background: #F59E0B !important;
  border-color: #F59E0B !important;
  color: #0B1220 !important;
  font-weight: 700 !important;
  border-radius: 2px !important;
}
.ac8-hero__actions .ac8-btn-primary:hover,
.ac8-section .ac8-btn-primary:hover {
  background: #FBBF24 !important;
  color: #0B1220 !important;
}
.ac8-hero__actions .ac8-btn-secondary {
  border-color: rgba(94, 234, 212, 0.8) !important;
  color: #fff !important;
}
.ac8-stats { background: #070B12 !important; border-bottom: 1px solid rgba(94, 234, 212, 0.25) !important; }
.ac8-stat__label { color: #2DD4BF !important; letter-spacing: 0.08em !important; }
.ac8-journey__num { background: #F59E0B !important; color: #0B1220 !important; }
.ac8-journey__step { border-top-color: #2DD4BF !important; }
.ac8-journey__step:hover { border-color: #2DD4BF !important; box-shadow: 0 8px 24px rgba(11,28,44,0.12); }
.ac8-intent-list__rank { background: #0B1C2C !important; color: #fff !important; border-color: #1E3A5F !important; }
.ac8-badge--official { border-color: #2DD4BF !important; color: #0F766E !important; background: #CCFBF1 !important; }
.ac8-badge--reported { border-color: #F59E0B !important; color: #92400E !important; background: #FEF3C7 !important; }
.ac8-tile { border-left: 3px solid #3A7CA5 !important; }
.ac8-tile:hover { border-left-color: #F59E0B !important; }
.ac8-guide thead th { border-bottom-color: #F59E0B !important; }
.ac8-faq__item summary::after { color: #F59E0B !important; }
.ac8-footer-bar { background: #0B1C2C !important; color: #94A3B8 !important; }
.ac8-footer-nav a { color: #E8F4FC !important; }
.ac8-footer-nav a:hover { color: #F59E0B !important; }
.ac8-footer-disclaimer { color: #94A3B8 !important; }
.ac8-guide-theme #wrapper, .ac8-guide-theme .site { background: #F4F7FA; }