*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --navy: #1A1A2E;
  --gold: #E8C547;
  --cream: #F5F0E8;
  --text: #1A1A2E;
  --muted: #5a5a72;
  --border: #d4cebf;
  --col-max: 720px;
  --sidebar-w: 200px;
  --gap: 1.5rem;
}

html {
  font-size: 17px;
  line-height: 1.65;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  overflow-x: hidden;
}

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

a {
  color: var(--navy);
  text-decoration: underline;
}

a:hover {
  color: #c9a830;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 1rem;
  z-index: 999;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  height: 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  text-decoration: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 1.05rem;
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: auto;
}

.brand img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 2px solid var(--gold);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* CTA buttons in header */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  height: 40px;
  min-width: 44px;
  border-radius: 4px;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.15s;
}

.cta:hover {
  opacity: 0.85;
}

.cta-signup {
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
}

.cta-login {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

/* Desktop nav */
.main-nav {
  background: var(--navy);
  border-top: 1px solid rgba(232,197,71,0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 1rem;
  max-width: 100%;
  overflow: hidden;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── HERO ── */
.home-hero {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.home-hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-text {
  position: relative;
  padding: 2rem 1.5rem 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.inner-hero {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.inner-hero .hero-img--inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.inner-hero__text {
  position: relative;
  padding: 1.5rem 1.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.page-header {
  background: var(--navy);
  color: var(--cream);
  padding: 2rem 1.5rem;
}

.page-header h1 {
  max-width: 760px;
  margin: 0.25rem 0 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  line-height: 1.2;
  margin: 2rem 0 0.25rem;
}

h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 1.25rem 0 0.4rem;
}

hr {
  border: none;
  border-top: 2px solid var(--gold);
  margin: 0.35rem 0 1.25rem;
}

.byline {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.75);
  margin: 0.35rem 0 0;
}

.byline time {
  color: var(--gold);
}

/* ── MAIN LAYOUT ── */
main {
  width: 100%;
  overflow-x: hidden;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

.wrap > article {
  width: 100%;
}

.wrap > article > section {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

/* sidebar left */
.sidebar-left {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  align-self: flex-start;
}

.sidebar-inner {
  background: var(--navy);
  border-radius: 4px;
  padding: 1rem;
}

.sidebar-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.sidebar-link {
  display: block;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(245,240,232,0.1);
  line-height: 1.35;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.sidebar-link:hover {
  color: var(--gold);
}

.sidebar-link--parent {
  color: var(--gold);
  border-bottom: none;
  margin-top: 0.5rem;
}

/* section body */
.article-body {
  flex: 1;
  min-width: 0;
  max-width: var(--col-max);
  overflow-x: hidden;
}

.article-body p,
.article-body li {
  max-width: 100%;
}

/* tables */
.article-body table,
.ranking-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.article-body table th,
.article-body table td,
.ranking-content table th,
.ranking-content table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  white-space: normal;
  min-width: 80px;
}

.article-body table th,
.ranking-content table th {
  background: var(--navy);
  color: var(--cream);
}

/* ── CHILD CARDS ── */
.child-cards {
  margin-top: 2.5rem;
  width: 100%;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

.card-list li {
  width: 100%;
}

.card-list li > section {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 2px;
}

.card-list li > section h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.card-list li > section h3 a {
  text-decoration: none;
  color: var(--navy);
}

.card-list li > section h3 a:hover {
  color: #c9a830;
  text-decoration: underline;
}

.card-list li > section p {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.card-list li > section small {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── FAQ ── */
.faq-body details {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.faq-body summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding: 0.25rem 0;
}

.faq-body summary::-webkit-details-marker {
  display: none;
}

/* ── AUTHOR SECTION ── */
.author-section {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--navy);
  color: var(--cream);
  border-radius: 4px;
}

.author-section h2 {
  margin: 0 0 0.25rem;
  color: var(--gold);
}

.author-credentials {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: rgba(245,240,232,0.8);
}

.author-bio {
  margin: 0;
  line-height: 1.65;
}

/* ── RELATED ── */
.related-reviews {
  margin-top: 2.5rem;
}

/* ── RANKING ── */
.ranking-content {
  width: 100%;
  overflow-x: hidden;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 2rem 1rem;
  margin-top: 3rem;
  width: 100%;
  overflow-x: hidden;
}

.site-footer > p {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.site-footer > small {
  display: block;
  font-size: 0.78rem;
  color: rgba(245,240,232,0.6);
  margin-top: 1rem;
  line-height: 1.5;
}

.footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem !important;
  margin-bottom: 0.75rem !important;
}

.footer-links-label {
  font-size: 0.72rem !important;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem !important;
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-nav-links a {
  color: rgba(245,240,232,0.8);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.2rem 0;
  display: inline-block;
}

.footer-nav-links a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-trust-line {
  font-size: 0.82rem !important;
  color: rgba(245,240,232,0.7) !important;
}

.footer-trust-line a {
  color: var(--gold);
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 0;
  min-height: 44px;
  line-height: 44px;
}

.footer-trust-line a:hover {
  text-decoration: underline;
}

.rg-notice {
  color: rgba(245,240,232,0.55) !important;
}

/* ── MISC ── */
.stage-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

/* ── FOOTER NAV (outside footer element) ── */
.pre-footer-nav {
  background: var(--navy);
  border-top: 1px solid rgba(232,197,71,0.15);
  padding: 1.5rem 1rem;
  width: 100%;
  overflow-x: hidden;
}

.pre-footer-nav nav {
  max-width: 1100px;
  margin: 0 auto;
}

.pre-footer-nav nav dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin: 0;
  padding: 0;
}

.pre-footer-nav nav dt {
  margin: 0;
  padding: 0;
}

.pre-footer-nav nav dt a,
.pre-footer-nav nav dd a {
  display: inline-flex;
  align-items: center;
  color: rgba(245,240,232,0.75);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  white-space: nowrap;
  transition: color 0.15s;
}

.pre-footer-nav nav dt a:hover,
.pre-footer-nav nav dd a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    order: 2;
  }

  .cta-signup {
    order: 3;
  }

  .cta-login {
    order: 4;
  }

  .header-inner {
    padding: 0 0.75rem;
    gap: 0.4rem;
  }

  .cta {
    font-size: 0.78rem;
    padding: 0 0.5rem;
    height: 40px;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    padding: 0;
    border-top: 1px solid rgba(232,197,71,0.2);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(245,240,232,0.08);
    border-left: none;
    font-size: 0.9rem;
    white-space: normal;
    min-height: 44px;
    align-items: center;
  }

  .wrap {
    padding: 1.25rem 0.75rem;
  }

  .wrap > article > section {
    flex-direction: column;
  }

  .sidebar-left {
    width: 100%;
    position: static;
    order: 2;
  }

  .sidebar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.75rem;
  }

  .sidebar-label {
    width: 100%;
    margin-bottom: 0.4rem;
  }

  .sidebar-link {
    border-bottom: none;
    border: 1px solid rgba(245,240,232,0.15);
    border-radius: 3px;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-height: 44px;
  }

  .article-body {
    order: 1;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
  }

  .home-hero {
    min-height: 260px;
  }

  .hero-text {
    padding: 1.25rem 0.75rem 1.75rem;
  }

  .inner-hero__text {
    padding: 1rem 0.75rem 1.5rem;
  }

  .page-header {
    padding: 1.5rem 0.75rem;
  }

  .card-list {
    grid-template-columns: 1fr;
  }

  .pre-footer-nav nav dl {
    flex-direction: column;
    gap: 0;
  }

  .pre-footer-nav nav dt a,
  .pre-footer-nav nav dd a {
    padding: 0.6rem 0.5rem;
    min-height: 44px;
    white-space: normal;
  }

  .footer-trust-line a {
    line-height: 1.4;
    height: auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  h1 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .ranking-content,
  .article-body {
    overflow-x: hidden;
    max-width: 100vw;
  }
}

@media (min-width: 769px) {
  .card-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* scrollable table wrapper on mobile */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}.tbl-scroll{overflow-x:auto;max-width:100%}