/* Forikar — template chrome: age bar, header/nav, hero + feature case,
   toplist, TOC, fact boxes, footer. Ported from the reference template. */

/* ---- top age bar ---- */
.site-age {
  background: var(--navy-ink);
  color: #c9d4e4;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  padding: 5px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}
.site-age a { color: var(--gold); text-decoration: none; }
.site-age strong { color: #fff; }
.age-pill {
  background: var(--danger);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.72rem;
  line-height: 1.5;
}

/* ---- header / nav ---- */
.site-header {
  background: var(--navy-deep);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  font-family: var(--font-display);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.4px;
}
.brand .tld { color: var(--gold); font-weight: 600; font-size: 0.95rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font: 600 0.85rem var(--font-body);
  cursor: pointer;
  align-items: center;
  gap: 8px;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: #fff;
  position: relative;
  content: "";
}
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after { position: absolute; top: 5px; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav-list > li { position: relative; }
.nav-list a {
  color: #e8edf5;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  display: inline-block;
  border-radius: 7px;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--gold); }
.nav-group-head { display: flex; align-items: center; }
.nav-subtoggle {
  background: none;
  border: 0;
  color: #e8edf5;
  cursor: pointer;
  padding: 4px;
  margin-left: -6px;
}
.nav-subtoggle::after {
  content: "▾";
  font-size: 0.7rem;
  display: inline-block;
  transition: transform 0.15s;
}
.nav-subtoggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.nav-submenu {
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(8, 20, 35, 0.18);
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  display: none;
  z-index: 60;
}
.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu,
.nav-submenu.open { display: block; }
.nav-submenu a { color: var(--navy); display: block; padding: 6px 10px; font-weight: 500; }
.nav-submenu a:hover { background: var(--bg-soft); color: var(--navy); }
.nav-subheading {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--slate-soft);
  padding: 8px 10px 2px;
}

/* ---- hero ---- */
.hero {
  background: linear-gradient(155deg, var(--navy-ink) 0%, var(--navy-deep) 55%, var(--navy) 100%);
  color: #fff;
  padding: 34px 0 30px;
}
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1.4px;
  color: var(--gold);
  margin: 0 0 8px;
}
.hero h1 { color: #fff; margin: 0 0 12px; }
.hero-copy > p { color: #c9d4e4; max-width: 640px; margin: 0 0 14px; }
.hero-copy > .fold-answer { color: #e8edf5; font-size: 0.95rem; line-height: 1.45; max-width: 680px; margin: 0 0 12px; }
.hero .trust-strip { border: 0; background: none; padding: 0; margin: 0 0 16px; }
.hero .chip { background: rgba(255, 255, 255, 0.08); color: #e8edf5; border-color: rgba(255, 255, 255, 0.18); }

.author-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 9px 14px;
  max-width: 560px;
  font-size: 0.84rem;
}
.author-chip img { border-radius: 50%; }
.ac-who { display: flex; flex-direction: column; line-height: 1.35; }
.ac-who a { color: #fff; text-decoration: none; }
.ac-who span { color: #9fb0c6; }
.ac-upd { margin-left: auto; display: flex; flex-direction: column; text-align: right; line-height: 1.35; }
.ac-upd b { color: var(--gold); font-weight: 600; }
.ac-upd span { color: #9fb0c6; }
.ac-upd a { color: #c9d4e4; }

/* ---- editor's choice aside ---- */
.feature-case { align-self: stretch; }
.feature-case-inner {
  background: #fff;
  color: var(--navy);
  border-radius: 14px;
  border: 2px solid var(--gold);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: 0 16px 40px rgba(8, 20, 35, 0.35);
}
.fc-head {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1.4px;
  color: var(--gold);
  font-weight: 700;
}
.fc-brand { display: flex; align-items: center; gap: 12px; }
.fc-logo img, .fc-logo .op-mono { width: 96px; height: 50px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: #fff; }
.fc-id b { font-family: var(--font-display); font-size: 1.1rem; display: block; }
.fc-id span { font-size: 0.8rem; color: var(--slate); }
.fc-stars { font-weight: 700; }
.fc-stars .stars { color: var(--gold); letter-spacing: 2px; }
.fc-offer { margin: 0; font-weight: 700; font-size: 1.02rem; }
.fc-offer-sub { margin: 0; font-size: 0.78rem; color: var(--slate-soft); }
.fc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fc-tile {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  text-align: center;
  line-height: 1.3;
}
.fc-tile b { display: block; font-size: 0.78rem; }
.fc-tile span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 1px; color: var(--slate-soft); }
.case-terms { color: var(--slate-soft); text-align: center; }

/* ---- pick-your-game toplist ---- */
.toplist { list-style: none; margin: 18px 0 26px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.toplist li {
  display: grid;
  grid-template-columns: 44px 130px 1fr auto auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  position: relative;
}
.toplist li.top-pick { border: 2px solid var(--gold); background: var(--gold-soft); }
.top-pick-badge {
  position: absolute;
  top: -10px;
  left: 14px;
  background: var(--gold);
  color: var(--navy-ink);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 1px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 8px;
}
.toplist .rank { font-size: 1.5rem; text-align: center; }
.toplist .op-logo img { width: 125px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: #fff; }
.toplist .name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.toplist .bestfor { font-size: 0.88rem; color: var(--slate); }
.toplist .verified { font-size: 0.8rem; color: var(--cta-dark); font-weight: 600; }
.op-stats { font-size: 0.8rem; color: var(--slate); max-width: 170px; }
.op-stats b { display: block; color: var(--navy); }

/* ---- TOC ---- */
.toc {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  padding: 0 16px;
  margin: 20px 0;
}
.toc summary { font-weight: 700; padding: 11px 0; cursor: pointer; font-size: 0.95rem; }
.toc-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate-soft);
  margin-left: 8px;
}
.toc-links { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 4px 0 14px; }
.toc-links a { font-size: 0.86rem; text-decoration: none; }
.toc-links a:hover { text-decoration: underline; }

/* ---- fact / why-trust boxes ---- */
.fact-box, .why-trust {
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  background: var(--bg-soft);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.95rem;
}
.why-trust { border-left-color: var(--navy); }

/* ---- breadcrumb ---- */
.breadcrumb { font-size: 0.82rem; color: var(--slate); margin: 16px 0 0; }
.breadcrumb a { color: var(--slate); }
.hero .breadcrumb { display: block; margin: 0 0 12px; color: #c9d4e4; line-height: 1.4; }
.hero .breadcrumb a { color: #e8edf5; text-underline-offset: 3px; }
.hero .breadcrumb a:hover { color: var(--gold); }

/* ---- footer ---- */
.site-footer { background: var(--navy-ink); color: #aebacb; margin-top: 52px; font-size: 0.88rem; }
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 10px;
}
.site-footer h4 { color: #fff; font-size: 0.95rem; margin: 0 0 9px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 5px 0; }
.site-footer a { color: #dce4ef; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.rg-bar { border-top: 1px solid #1d3350; padding-top: 16px; padding-bottom: 22px; font-size: 0.8rem; }
.rg-bar .row { display: flex; gap: 12px; align-items: flex-start; }
.badge-18 {
  background: var(--danger);
  color: #fff;
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 8px;
  flex-shrink: 0;
}

/* ---- responsive ---- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-case { max-width: 420px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-submenu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin-left: 10px; background: transparent; }
  .nav-submenu a { color: #e8edf5; }
  .nav-submenu a:hover { background: rgba(255, 255, 255, 0.07); color: var(--gold); }
  .nav-group:hover .nav-submenu { display: none; }
  .nav-group:focus-within .nav-submenu { display: none; }
  .nav-submenu.open { display: block; }
  .toplist li { grid-template-columns: 36px 1fr; grid-auto-rows: auto; }
  .toplist .op-logo { grid-column: 2; }
  .toplist .op-id { grid-column: 2; }
  .op-stats { max-width: none; grid-column: 1 / -1; }
  .toplist .op-cta { grid-column: 1 / -1; }
  .ac-upd { text-align: left; margin-left: 0; }
  .author-chip { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .site-age { flex-wrap: nowrap; gap: 5px; padding: 4px 6px; font-size: 0.68rem; }
  .site-age .age-long { display: none; }
  .site-header .wrap { padding-top: 7px; padding-bottom: 7px; }
  .brand { font-size: 1.2rem; }
  .hero { padding: 14px 0 12px; }
  .hero-grid { display: block; }
  .hero-kicker, .hero .trust-strip, .hero .feature-case { display: none; }
  .hero h1 { font-size: 1.32rem; line-height: 1.18; margin: 0 0 6px; }
  .hero-copy > p:not(.fold-answer) { display: none; }
  .hero-copy > .fold-answer { display: block; max-width: none; font-size: 0.82rem; line-height: 1.35; margin: 0 0 8px; }
  .author-chip { flex-wrap: nowrap; gap: 7px; border: 0; background: none; padding: 3px 0 0; font-size: 0.72rem; }
  .author-chip img { width: 30px; height: 30px; }
  .ac-who span, .ac-upd span { display: none; }
  .ac-upd { margin-left: auto; text-align: right; }
  .breadcrumb { display: none; }
  .hero .breadcrumb { display: block; margin: 0 0 5px; font-size: 0.76rem; line-height: 1.3; }
  .money-page main > .wrap > h2:first-of-type { font-size: 1.1rem; line-height: 1.22; margin: 12px 0 7px; }
  .money-page .toplist { margin-top: 8px; }
}

@media (max-width: 350px) {
  .toplist .op-stats { display: none; }
}
