/*
Theme Name: Nordic Ace
Theme URI: https://example.com/nordic-ace
Author: Nordic Ace Studio
Description: Modern, mobile-first WordPress theme for online casino review websites, tuned for the Canadian (English) market. Includes casino rating tables, a comparison tool, scoring breakdowns, curated collections and an expert trust section.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nordic-ace
Tags: custom-colors, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   0. Tokens
   ========================================================= */
:root {
  --na-ink: #0e1420;          /* page background */
  --na-surface: #161e2e;      /* cards, tables */
  --na-surface-2: #1d2739;    /* raised elements */
  --na-line: #2a3448;         /* hairlines */
  --na-gold: #d8b45e;         /* brand accent */
  --na-gold-soft: #e8c87a;
  --na-cta: #2fbf71;          /* action green */
  --na-cta-dark: #249a5b;
  --na-text: #f2ede3;         /* cream body text */
  --na-muted: #8a94a6;
  --na-danger: #d96a5c;
  --na-radius: 14px;
  --na-radius-sm: 8px;
  --na-font-display: "Fraunces", Georgia, serif;
  --na-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --na-max: 1360px;
}

/* =========================================================
   1. Base
   ========================================================= */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--na-ink);
  color: var(--na-text);
  font-family: var(--na-font-body);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "tnum" 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--na-gold-soft); text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--na-gold);
  outline-offset: 2px;
}
h1, h2, h3, h4 {
  font-family: var(--na-font-display);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
p { margin: 0 0 1.1em; }
.na-wrap { max-width: var(--na-max); margin: 0 auto; padding: 0 18px; }
.na-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--na-gold);
  margin-bottom: .6em;
}
.na-muted { color: var(--na-muted); }

/* =========================================================
   2. Header / navigation
   ========================================================= */
.na-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(14, 20, 32, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--na-line);
}
.na-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 62px;
}
.na-logo {
  font-family: var(--na-font-display);
  font-size: 1.35rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: .45em;
}
.na-logo__mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--na-gold-soft), var(--na-gold) 60%, #a5843b);
  display: inline-block; flex: none;
  box-shadow: inset 0 0 0 2px rgba(14,20,32,.35);
}
.na-nav { display: none; }
.na-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.na-nav a { color: var(--na-text); font-size: .93rem; font-weight: 500; }
.na-nav a:hover { color: var(--na-gold-soft); }
.na-burger {
  background: none; border: 1px solid var(--na-line); border-radius: var(--na-radius-sm);
  color: var(--na-text); padding: 8px 10px; cursor: pointer; line-height: 0;
}
.na-mobile-nav {
  display: none; border-top: 1px solid var(--na-line);
  background: var(--na-surface);
}
.na-mobile-nav.is-open { display: block; }
.na-mobile-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.na-mobile-nav a {
  display: block; padding: 12px 18px; color: var(--na-text);
  border-bottom: 1px solid var(--na-line); font-weight: 500;
}
@media (min-width: 900px) {
  .na-nav { display: block; }
  .na-burger, .na-mobile-nav { display: none !important; }
}

/* =========================================================
   3. Hero
   ========================================================= */
.na-hero { padding: 46px 0 34px; position: relative; overflow: hidden; }
.na-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 260px at 85% -10%, rgba(216,180,94,.14), transparent 70%),
    radial-gradient(500px 240px at -5% 110%, rgba(47,191,113,.08), transparent 70%);
  pointer-events: none;
}
.na-hero__inner { position: relative; max-width: 720px; }
.na-hero p.lead { font-size: 1.05rem; color: var(--na-muted); max-width: 56ch; }
.na-hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px;
  font-size: .82rem; color: var(--na-muted);
}
.na-hero__meta strong { color: var(--na-gold-soft); font-weight: 600; }

/* =========================================================
   4. Buttons
   ========================================================= */
.na-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  border: none; transition: transform .12s ease, box-shadow .12s ease;
}
.na-btn--cta {
  background: linear-gradient(180deg, var(--na-cta), var(--na-cta-dark));
  color: #08130c;
  box-shadow: 0 4px 14px rgba(47,191,113,.28);
}
.na-btn--cta:hover { color: #08130c; transform: translateY(-1px); }
.na-btn--ghost {
  background: transparent; color: var(--na-gold-soft);
  border: 1px solid var(--na-gold);
}
.na-btn--ghost:hover { background: rgba(216,180,94,.1); color: var(--na-gold-soft); }
.na-btn--sm { padding: 9px 16px; font-size: .85rem; }

/* =========================================================
   5. Rating table (toplist)
   ========================================================= */
.na-toplist { margin: 26px 0; display: grid; gap: 14px; }
.na-casino-row {
  background: var(--na-surface);
  border: 1px solid var(--na-line);
  border-radius: var(--na-radius);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  position: relative;
}
.na-casino-row.is-top {
  border-color: var(--na-gold);
  box-shadow: 0 0 0 1px var(--na-gold), 0 10px 30px rgba(0,0,0,.35);
}
.na-casino-row__rank {
  position: absolute; top: -10px; left: 14px;
  background: var(--na-surface-2); border: 1px solid var(--na-line);
  color: var(--na-muted); font-size: .72rem; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; letter-spacing: .06em;
}
.na-casino-row.is-top .na-casino-row__rank {
  background: var(--na-gold); color: #1a1405; border-color: var(--na-gold);
}
.na-casino-row__head { display: flex; align-items: center; gap: 14px; }
.na-casino-row__logo {
  width: 64px; height: 64px; flex: none;
  border-radius: var(--na-radius-sm);
  background: var(--na-surface-2);
  border: 1px solid var(--na-line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.na-casino-row__logo img { width: 100%; height: 100%; object-fit: cover; }
.na-casino-row__logo span {
  font-family: var(--na-font-display); font-size: 1.5rem; color: var(--na-gold);
}
.na-casino-row__name { font-size: 1.12rem; margin: 0; }
.na-casino-row__name a { color: #fff; }
.na-casino-row__lic { font-size: .78rem; color: var(--na-muted); }
.na-casino-row__facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px;
  font-size: .86rem;
}
.na-fact b { display: block; color: var(--na-muted); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.na-fact span { color: var(--na-text); font-weight: 600; }
.na-casino-row__bonus {
  background: rgba(216,180,94,.08);
  border: 1px dashed rgba(216,180,94,.45);
  border-radius: var(--na-radius-sm);
  padding: 10px 12px; font-size: .9rem; font-weight: 600;
  color: var(--na-gold-soft);
}
.na-casino-row__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.na-compare-toggle {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .82rem; color: var(--na-muted); cursor: pointer;
  user-select: none;
}
.na-compare-toggle input { accent-color: var(--na-gold); width: 16px; height: 16px; }

@media (min-width: 760px) {
  .na-casino-row {
    grid-template-columns: minmax(200px, 1.2fr) 1.4fr minmax(120px, .7fr) auto;
    align-items: center;
  }
  .na-casino-row__facts { grid-template-columns: repeat(2, 1fr); }
  .na-casino-row__actions { flex-direction: column; align-items: stretch; }
}

/* =========================================================
   6. Score coin + breakdown (signature)
   ========================================================= */
.na-score-coin {
  width: 58px; height: 58px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #f4dfa4, var(--na-gold) 55%, #9b7c37 100%);
  color: #1a1405;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; flex: none;
  box-shadow: inset 0 0 0 3px rgba(26,20,5,.18), 0 4px 12px rgba(0,0,0,.4);
}
.na-score-coin b { font-size: 1.15rem; line-height: 1; }
.na-score-coin i { font-style: normal; font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; }
.na-score-coin--lg { width: 84px; height: 84px; }
.na-score-coin--lg b { font-size: 1.7rem; }

.na-breakdown { display: grid; gap: 12px; margin: 18px 0; }
.na-breakdown__row { display: grid; grid-template-columns: 110px 1fr 42px; align-items: center; gap: 12px; }
.na-breakdown__label { font-size: .82rem; color: var(--na-muted); font-weight: 600; }
.na-breakdown__val { font-size: .88rem; font-weight: 700; color: var(--na-gold-soft); text-align: right; }
.na-segbar { display: flex; gap: 4px; }
.na-segbar i {
  height: 8px; flex: 1; border-radius: 3px;
  background: var(--na-line);
}
.na-segbar i.on { background: linear-gradient(90deg, var(--na-gold), var(--na-gold-soft)); }
.na-segbar i.half { background: linear-gradient(90deg, var(--na-gold) 50%, var(--na-line) 50%); }

/* =========================================================
   7. Single casino review
   ========================================================= */
.na-review-hero {
  background: var(--na-surface);
  border: 1px solid var(--na-line);
  border-radius: var(--na-radius);
  padding: 22px;
  display: grid; gap: 18px;
  margin: 26px 0;
}
@media (min-width: 760px) {
  .na-review-hero { grid-template-columns: auto 1fr auto; align-items: center; }
}
.na-proscons { display: grid; gap: 16px; margin: 26px 0; }
@media (min-width: 700px) { .na-proscons { grid-template-columns: 1fr 1fr; } }
.na-proscons__col {
  background: var(--na-surface); border: 1px solid var(--na-line);
  border-radius: var(--na-radius); padding: 18px;
}
.na-proscons__col h3 { font-size: 1rem; display: flex; gap: .5em; align-items: center; }
.na-proscons ul { margin: 0; padding: 0; list-style: none; }
.na-proscons li { padding: 7px 0 7px 24px; position: relative; font-size: .93rem; border-bottom: 1px solid var(--na-line); }
.na-proscons li:last-child { border-bottom: none; }
.na-proscons--pro li::before { content: "+"; position: absolute; left: 4px; color: var(--na-cta); font-weight: 800; }
.na-proscons--con li::before { content: "–"; position: absolute; left: 4px; color: var(--na-danger); font-weight: 800; }

.na-factsheet {
  width: 100%; border-collapse: collapse; margin: 22px 0;
  background: var(--na-surface); border-radius: var(--na-radius); overflow: hidden;
  font-size: .92rem;
}
.na-factsheet th, .na-factsheet td { padding: 12px 16px; border-bottom: 1px solid var(--na-line); text-align: left; }
.na-factsheet th { color: var(--na-muted); font-weight: 600; width: 42%; }
.na-factsheet tr:last-child th, .na-factsheet tr:last-child td { border-bottom: none; }

/* =========================================================
   8. Comparison tool
   ========================================================= */
.na-compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--na-surface-2);
  border-top: 1px solid var(--na-gold);
  padding: 12px 18px;
  display: none;
  align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 -8px 24px rgba(0,0,0,.4);
}
.na-compare-bar.is-visible { display: flex; }
.na-compare-bar__label { font-size: .88rem; font-weight: 600; }
.na-compare-bar__label b { color: var(--na-gold-soft); }

.na-compare-modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(8, 12, 20, .82);
  display: none; align-items: flex-end; justify-content: center;
  padding: 0;
}
@media (min-width: 760px) { .na-compare-modal { align-items: center; padding: 24px; } }
.na-compare-modal.is-open { display: flex; }
.na-compare-modal__panel {
  background: var(--na-ink);
  border: 1px solid var(--na-line);
  border-radius: var(--na-radius) var(--na-radius) 0 0;
  width: 100%; max-width: 960px; max-height: 88vh;
  overflow: auto; padding: 20px;
}
@media (min-width: 760px) { .na-compare-modal__panel { border-radius: var(--na-radius); } }
.na-compare-modal__close {
  float: right; background: none; border: 1px solid var(--na-line);
  color: var(--na-text); border-radius: 50%; width: 34px; height: 34px;
  cursor: pointer; font-size: 1rem;
}
.na-compare-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 14px; }
.na-compare-table th, .na-compare-table td {
  padding: 11px 12px; border-bottom: 1px solid var(--na-line);
  text-align: left; vertical-align: top;
}
.na-compare-table thead th { color: #fff; font-family: var(--na-font-display); font-size: 1rem; }
.na-compare-table tbody th { color: var(--na-muted); font-weight: 600; white-space: nowrap; }
.na-compare-table .is-best { color: var(--na-gold-soft); font-weight: 700; }

/* =========================================================
   9. Collections
   ========================================================= */
.na-collections { display: grid; gap: 16px; margin: 26px 0; grid-template-columns: 1fr; }
@media (min-width: 640px) { .na-collections { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .na-collections { grid-template-columns: repeat(3, 1fr); } }
.na-collection-card {
  background: linear-gradient(160deg, var(--na-surface), var(--na-surface-2));
  border: 1px solid var(--na-line);
  border-radius: var(--na-radius);
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s ease, transform .15s ease;
}
.na-collection-card:hover { border-color: var(--na-gold); transform: translateY(-2px); }
.na-collection-card h3 { margin: 0; font-size: 1.1rem; }
.na-collection-card p { font-size: .88rem; color: var(--na-muted); margin: 0; flex: 1; }
.na-collection-card__count { font-size: .76rem; color: var(--na-gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* =========================================================
   10. Expert trust section
   ========================================================= */
.na-trust {
  border-top: 1px solid var(--na-line);
  border-bottom: 1px solid var(--na-line);
  background: linear-gradient(180deg, rgba(216,180,94,.05), transparent);
  padding: 42px 0; margin: 40px 0;
}
.na-trust__grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .na-trust__grid { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.na-expert { display: flex; gap: 16px; align-items: flex-start; }
.na-expert__avatar {
  width: 72px; height: 72px; border-radius: 50%; flex: none; overflow: hidden;
  border: 2px solid var(--na-gold);
  background: var(--na-surface-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--na-font-display); font-size: 1.6rem; color: var(--na-gold);
}
.na-expert__avatar img { width: 100%; height: 100%; object-fit: cover; }
.na-expert__name { font-weight: 700; color: #fff; margin: 0; font-size: 1.05rem; }
.na-expert__role { font-size: .8rem; color: var(--na-gold); font-weight: 600; }
.na-expert__bio { font-size: .9rem; color: var(--na-muted); margin: .4em 0 0; }
.na-trust__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.na-trust__points li {
  display: flex; gap: 12px; align-items: flex-start; font-size: .92rem;
}
.na-trust__points svg { flex: none; margin-top: 3px; }

/* =========================================================
   11. Content / blog / footer
   ========================================================= */
.na-content { padding: 10px 0 50px; }
.na-article { max-width: 760px; margin-left: auto; margin-right: auto; }
.na-article h2 { margin-top: 1.6em; }
.na-article table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .92rem; }
.na-article th, .na-article td { border: 1px solid var(--na-line); padding: 10px 12px; text-align: left; }
.na-article th { background: var(--na-surface-2); color: #fff; }

.na-post-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 24px 0; }
@media (min-width: 700px) { .na-post-grid { grid-template-columns: repeat(3, 1fr); } }
.na-post-card {
  background: var(--na-surface); border: 1px solid var(--na-line);
  border-radius: var(--na-radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.na-post-card__body { padding: 16px; }
.na-post-card h3 { font-size: 1.02rem; }
.na-post-card time { font-size: .76rem; color: var(--na-muted); }

.na-footer {
  border-top: 1px solid var(--na-line);
  background: #0a0f19;
  padding: 40px 0 26px; margin-top: 40px;
  font-size: .86rem; color: var(--na-muted);
}
.na-footer__grid { display: grid; gap: 26px; }
@media (min-width: 760px) { .na-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.na-footer h4 { font-size: .95rem; }
.na-footer ul { list-style: none; margin: 0; padding: 0; }
.na-footer li { margin-bottom: 8px; }
.na-footer a { color: var(--na-muted); }
.na-footer a:hover { color: var(--na-gold-soft); }
.na-footer__legal {
  border-top: 1px solid var(--na-line); margin-top: 28px; padding-top: 18px;
  font-size: .78rem; line-height: 1.7;
}
.na-badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--na-danger); color: var(--na-danger);
  font-weight: 800; font-size: .8rem; margin-right: 10px; vertical-align: middle;
}

/* WP core niceties */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
}
.alignwide { max-width: var(--na-max); }
.wp-block-table td, .wp-block-table th { border-color: var(--na-line); }

/* =========================================================
   12. Author (E-E-A-T)
   ========================================================= */
.na-byline {
  font-size: .84rem; color: var(--na-muted); margin: 4px 0 14px;
}
.na-byline a { color: var(--na-gold-soft); font-weight: 600; }
.na-byline time { color: var(--na-muted); }

.na-author-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--na-surface); border: 1px solid var(--na-line);
  border-radius: var(--na-radius); padding: 20px; margin: 30px 0;
}
.na-author-box__avatar { flex: none; }
.na-author-box__avatar img {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid var(--na-gold); object-fit: cover;
}
.na-author-box__label {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--na-gold); margin: 0 0 4px;
}
.na-author-box__name { margin: 0; font-size: 1.05rem; font-weight: 700; }
.na-author-box__name a { color: #fff; }
.na-author-box__role { font-size: .8rem; color: var(--na-gold); font-weight: 600; }
.na-author-box__bio { font-size: .9rem; color: var(--na-muted); margin: .5em 0 0; }
.na-author-box__social { margin: .6em 0 0; font-size: .82rem; }
.na-author-box__social a {
  display: inline-block; margin-right: 14px; color: var(--na-gold-soft);
  border-bottom: 1px solid rgba(216,180,94,.4);
}

.na-author-hero {
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center;
  background: var(--na-surface); border: 1px solid var(--na-line);
  border-radius: var(--na-radius); padding: 26px; margin: 26px 0 18px;
}
.na-author-hero__avatar img {
  width: 128px; height: 128px; border-radius: 50%;
  border: 3px solid var(--na-gold); object-fit: cover;
}
.na-author-hero__role { color: var(--na-gold); font-weight: 600; font-size: .9rem; margin: 0 0 .5em; }
.na-author-hero__bio { color: var(--na-muted); max-width: 60ch; margin: 0; font-size: .95rem; }

.na-author-creds { display: flex; flex-wrap: wrap; gap: 10px; }
.na-author-creds__item {
  background: rgba(216,180,94,.08); border: 1px solid rgba(216,180,94,.4);
  color: var(--na-gold-soft); font-size: .82rem; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
}

/* Header CTA */
.na-header__cta { display: none; }
@media (min-width: 560px) { .na-header__cta { display: inline-flex; } }

/* =========================================================
   13. Page layouts: full width & sidebar
   ========================================================= */
.na-layout {
  display: grid; gap: 28px; align-items: start;
  padding: 26px 0 50px;
}
@media (min-width: 1000px) {
  .na-layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
}
.na-main { min-width: 0; }
.na-sidebar { display: grid; gap: 18px; }
@media (min-width: 1000px) {
  .na-sidebar { position: sticky; top: 82px; }
}
.na-widget {
  background: var(--na-surface); border: 1px solid var(--na-line);
  border-radius: var(--na-radius); padding: 18px;
}
.na-widget__title {
  font-family: var(--na-font-display); color: #fff;
  font-size: 1.02rem; margin: 0 0 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--na-line);
}
.na-widget ul { list-style: none; margin: 0; padding: 0; }
.na-widget li { padding: 8px 0; border-bottom: 1px solid var(--na-line); font-size: .9rem; }
.na-widget li:last-child { border-bottom: none; }
.na-widget a { color: var(--na-text); }
.na-widget a:hover { color: var(--na-gold-soft); }

/* =========================================================
   14. Mobile polish
   ========================================================= */
@media (max-width: 560px) {
  .na-wrap { padding: 0 14px; }
  .na-casino-row { padding: 14px; }
  .na-casino-row__actions { flex-direction: row; }
  .na-casino-row__actions .na-btn { flex: 1 1 130px; justify-content: center; }
  .na-factsheet th, .na-factsheet td,
  .na-compare-table th, .na-compare-table td { padding: 9px 10px; font-size: .84rem; }
  .na-hero { padding: 32px 0 24px; }
  .na-review-hero { padding: 16px; }
  .na-author-hero { padding: 18px; }
  .na-author-hero__avatar img { width: 96px; height: 96px; }
  .na-trust { padding: 30px 0; }
  .na-footer { padding: 30px 0 22px; }
}

/* =========================================================
   15. Dropdown menus
   ========================================================= */
.na-nav li { position: relative; }
.na-nav .menu-item-has-children > a::after {
  content: ""; display: inline-block; margin-left: 7px;
  width: 7px; height: 7px;
  border-right: 2px solid var(--na-muted);
  border-bottom: 2px solid var(--na-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .15s ease;
}
.na-nav .menu-item-has-children:hover > a::after,
.na-nav .menu-item-has-children:focus-within > a::after {
  transform: rotate(225deg) translateY(-1px);
  border-color: var(--na-gold);
}
.na-nav .sub-menu {
  display: none;
  position: absolute; top: calc(100% + 12px); left: -16px;
  flex-direction: column; gap: 0;
  min-width: 230px;
  background: var(--na-surface-2);
  border: 1px solid var(--na-line);
  border-radius: var(--na-radius-sm);
  padding: 8px;
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
  z-index: 65;
}
/* invisible hover bridge so the dropdown doesn't close in the gap (top-level only) */
.na-nav > .menu > .menu-item-has-children > .sub-menu::before {
  content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.na-nav li:hover > .sub-menu,
.na-nav li:focus-within > .sub-menu { display: flex; }
.na-nav .sub-menu li { width: 100%; }
.na-nav .sub-menu a {
  display: block; padding: 10px 12px; border-radius: 6px;
  font-size: .88rem; color: var(--na-text);
}
.na-nav .sub-menu a:hover { background: rgba(216,180,94,.1); color: var(--na-gold-soft); }

/* Level 3+ : open sideways as a flyout instead of stacking downward */
.na-nav .sub-menu .sub-menu {
  top: -9px; left: calc(100% + 6px);
}
/* hover bridge for nested flyouts sits on the left gap */
.na-nav .sub-menu .menu-item-has-children > .sub-menu::before {
  content: ""; position: absolute; top: 0; left: -8px; width: 8px; height: 100%;
}
/* nested parent gets a right-pointing caret instead of a down one */
.na-nav .sub-menu .menu-item-has-children > a { display: flex; align-items: center; justify-content: space-between; }
.na-nav .sub-menu .menu-item-has-children > a::after {
  margin-left: 10px;
  transform: rotate(-45deg) translateX(-2px);
}
.na-nav .sub-menu .menu-item-has-children:hover > a::after,
.na-nav .sub-menu .menu-item-has-children:focus-within > a::after {
  transform: rotate(-45deg) translateX(-2px);
  border-color: var(--na-gold);
}
/* if a flyout would overflow the right edge, flip it to open leftward */
.na-nav .sub-menu.na-flip-left .sub-menu,
.na-nav .sub-menu .sub-menu.na-flip-left {
  left: auto; right: calc(100% + 6px);
}

/* Mobile: nested items, progressively indented per level */
.na-mobile-nav .sub-menu { list-style: none; margin: 0; padding: 0; background: #10182a; }
.na-mobile-nav .sub-menu a { padding-left: 34px; font-weight: 400; font-size: .92rem; color: var(--na-muted); }
.na-mobile-nav .sub-menu a:hover { color: var(--na-gold-soft); }
/* level 3 sits deeper and on a slightly darker panel */
.na-mobile-nav .sub-menu .sub-menu { background: #0c1322; }
.na-mobile-nav .sub-menu .sub-menu a { padding-left: 52px; font-size: .88rem; }
/* level 4+ (rare, but supported) */
.na-mobile-nav .sub-menu .sub-menu .sub-menu { background: #0a101d; }
.na-mobile-nav .sub-menu .sub-menu .sub-menu a { padding-left: 70px; }
.na-mobile-nav .menu-item-has-children > a::after {
  content: ""; display: inline-block; margin-left: 8px;
  width: 6px; height: 6px;
  border-right: 2px solid var(--na-muted);
  border-bottom: 2px solid var(--na-muted);
  transform: rotate(45deg) translateY(-2px);
}

/* =========================================================
   16. Mobile menu accordion
   ========================================================= */
.na-mobile-nav .menu-item-has-children { position: relative; }
.na-mobile-nav .menu-item-has-children > a { padding-right: 60px; }
.na-mobile-nav .menu-item-has-children > a::after { content: none; }
.na-submenu-toggle {
  position: absolute; top: 6px; right: 12px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--na-surface-2);
  border: 1px solid var(--na-line);
  border-radius: var(--na-radius-sm);
  color: var(--na-muted);
  cursor: pointer;
  transition: transform .15s ease, color .15s ease;
}
.na-mobile-nav .is-open > .na-submenu-toggle {
  transform: rotate(180deg);
  color: var(--na-gold);
  border-color: var(--na-gold);
}
.na-mobile-nav .sub-menu { display: none; }
.na-mobile-nav .is-open > .sub-menu { display: block; }
