/*
Theme Name: Golden Reel Ledger
Theme URI: https://goldenreelwins.uk
Author: Golden Reel Wins
Template: astra
Version: 1.0.5
Text Domain: gilded
Description: Dark neon-gold child theme for goldenreelwins.uk. Charcoal ground, gold accent, Playfair Display headings, vinyl-row board slot, own footer, single header and nav contract.
*/

/* ---------- tokens ---------- */
:root {
  --gr-bg: #141416;
  --gr-panel: #1e1e22;
  --gr-panel-2: #232328;
  --gr-gold: #d4a437;
  --gr-gold-soft: #e8c979;
  --gr-cream: #f4efe3;
  --gr-muted: #a9a290;
  --gr-danger: #c0564f;
  --gr-mint: #3e6b58;
  --gr-radius: 10px;
  --gr-chip-radius: 999px;
  --gr-font-head: 'Playfair Display', Georgia, serif;
  --gr-font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Astra container fix (mandatory) ---------- */
#content .ast-container, .ast-container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}
#primary, .site-main, #main {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
}

/* one content measure: a visibly framed sheet, bounded and centred at every width */
#primary, .site-main, #main {
  max-width: 1240px !important;
  margin-inline: auto !important;
}
#primary .gld-page, .site-main .gld-page, .gld-page {
  max-width: 1240px;
  margin-inline: auto;
  background: #1b1b21;
  border-inline: 2px solid rgba(212, 164, 55, .55);
  box-shadow: 0 0 0 1px #000, 0 0 34px rgba(212, 164, 55, .10);
  padding: 24px 40px 48px;
  box-sizing: border-box;
}

/* hide the parent masthead shell: the theme prints its own header */
.ast-main-header-wrap, .main-header-bar-wrap, #masthead .main-header-bar { display: none !important; }

/* ---------- base ---------- */
html, body { overflow-x: clip; }
body {
  background: var(--gr-bg);
  color: var(--gr-cream);
  font-family: var(--gr-font-body);
  font-variant-numeric: tabular-nums;
  line-height: 1.65;
  margin: 0;
}
h1, h2, h3, .gr-brand-line {
  font-family: var(--gr-font-head);
  color: var(--gr-gold-soft);
  line-height: 1.2;
}
/* content colour wins over any parent-theme white on the dark ground */
#content, #primary, .site-main, .entry-content { color: var(--gr-cream); }
#content h1, #primary h1, .site-main h1,
#content h2, #primary h2, .site-main h2,
#content h3, #primary h3, .site-main h3 { color: var(--gr-gold-soft); }
#content a, #primary a, .site-main a { color: var(--gr-gold-soft); }
#content a:hover, #primary a:hover { color: var(--gr-gold); }
a { color: var(--gr-gold-soft); }
a:hover { color: var(--gr-gold); }

/* ---------- single header ---------- */
.gr-header { background: var(--gr-panel); border-bottom: 1px solid #2c2c33; }
.gr-brand-row { text-align: center; padding: 22px 16px 10px; }
.gr-brand-line {
  font-size: 1.9rem;
  letter-spacing: .04em;
  margin: 0;
}
.gr-brand-line .gr-reel-mark { color: var(--gr-gold); }
.gr-tagline { color: var(--gr-muted); margin: 4px 0 0; font-size: .95rem; }
.gr-nav-row { display: flex; flex-wrap: wrap; justify-content: center; padding: 6px 16px 14px; }
.gr-nav {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px 22px; margin: 0; padding: 0;
}
.gr-nav-item { position: relative; }
.gr-nav-item > a {
  color: var(--gr-cream); text-decoration: none; font-weight: 600;
  padding: 6px 2px; display: inline-block; white-space: nowrap;
}
.gr-nav-item > a:hover { color: var(--gr-gold); }
.gr-has-sub > a::after { content: " \25BE"; color: var(--gr-gold); font-size: .8em; }
.gr-subnav {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--gr-panel-2); border: 1px solid #34343c; border-radius: var(--gr-radius);
  list-style: none; margin: 0; padding: 8px 0; min-width: 260px; max-height: 70vh; overflow-y: auto;
  z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.gr-has-sub:hover .gr-subnav, .gr-has-sub:focus-within .gr-subnav { display: block; }
.gr-subnav li a {
  display: block; padding: 7px 18px; color: var(--gr-cream); text-decoration: none; white-space: nowrap;
}
.gr-subnav li a:hover { background: #2a2a31; color: var(--gr-gold); }

/* static fallback bar (used when the pages plugin is inactive) */
.gr-fallback-nav {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px;
  margin: 0; padding: 6px 16px 14px;
}
.gr-fallback-nav a { color: var(--gr-cream); text-decoration: none; font-weight: 600; }

/* ---------- content blocks ---------- */
.gld-page { padding-bottom: 48px; }
.gld-crumbs ol {
  list-style: none; display: inline-flex; flex-wrap: wrap; gap: 4px 10px;
  margin: 18px 0; padding: 0; color: var(--gr-muted);
}
.gld-crumbs li { display: inline-flex; align-items: center; }
.gld-crumbs li + li::before {
  content: "\25C6"; color: var(--gr-gold); font-size: .6em; margin-right: 10px;
}
.gld-crumbs a { color: var(--gr-muted); text-decoration: none; }
.gld-crumbs a:hover { color: var(--gr-gold); }
.gld-hero { margin: 12px 0 8px; }
.gld-hero h1 { font-size: 2.3rem; margin: 0 0 10px; }
.gld-kicker {
  color: var(--gr-gold); text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; margin: 0 0 6px;
}
.gld-standfirst { color: var(--gr-muted); font-size: 1.12rem; max-width: 100%; }
.gld-board-lead { color: var(--gr-muted); font-style: italic; }
.gld-toc {
  background: var(--gr-panel); border: 1px solid #2c2c33; border-radius: var(--gr-radius);
  padding: 14px 20px; margin: 18px 0;
}
.gld-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 36px; }
.gld-toc a { color: var(--gr-cream); text-decoration: none; }
.gld-toc a:hover { color: var(--gr-gold); }
.gld-section { margin: 26px 0; }
.gld-section h2 { font-size: 1.5rem; border-bottom: 1px solid #2c2c33; padding-bottom: 6px; }
.gld-section h3 { font-size: 1.15rem; }
.gld-prose p { margin: 0 0 14px; }

/* figures and tables: full-width objects with their own edges */
.gld-figure { background: var(--gr-panel); border: 1px solid #2c2c33; border-radius: var(--gr-radius); padding: 18px; margin: 20px 0; }
.gld-figure figcaption, .gld-figure .gld-fig-caption { color: var(--gr-muted); font-size: .9rem; margin-top: 10px; }
.gld-figure img, .gld-figure svg { width: 100%; height: auto; display: block; border-radius: 6px; }
.gld-scroll { overflow-x: auto; margin: 20px 0; border-radius: var(--gr-radius); border: 1px solid #2c2c33; }
.gld-scroll table { border-collapse: collapse; width: 100%; min-width: 640px; background: var(--gr-panel); }
.gld-scroll th, .gld-scroll td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #2c2c33; }
.gld-scroll th { color: var(--gr-gold-soft); font-family: var(--gr-font-head); }
.gld-scroll tr:last-child td { border-bottom: none; }

/* FAQ: the site's one markup, h3.gld-q + p.gld-a */
.gld-faq-item { margin: 14px 0; }
.gld-faq-item .gld-q, .gld-faq-item .gr-q {
  color: var(--gr-gold-soft); font-size: 1.05rem; margin: 0 0 6px; font-family: var(--gr-font-head);
}
.gld-faq-item .gld-a, .gld-faq-item .gr-a { margin: 0; }
.gld-faq-item .gld-a p, .gld-faq-item .gr-a p { margin: 0 0 8px; }

/* offshore honesty aside: exactly one per page, visually distinct */
.gld-offshore {
  background: rgba(192, 86, 79, .12);
  border: 1px solid var(--gr-danger);
  border-radius: var(--gr-radius);
  padding: 14px 18px; margin: 20px 0;
}
.gld-offshore p { margin: 0 0 8px; }
.gld-offshore p:last-child { margin: 0; }

/* calculator shell */
.gld-calc {
  background: var(--gr-panel); border: 1px solid #2c2c33; border-radius: var(--gr-radius);
  padding: 18px 20px; margin: 20px 0;
}
.gld-calc label { display: block; margin: 10px 0 4px; color: var(--gr-muted); }
.gld-calc input {
  background: var(--gr-bg); color: var(--gr-cream); border: 1px solid #34343c;
  border-radius: 6px; padding: 8px 10px; width: 160px; max-width: 100%;
}
.gld-calc .gld-calc-result { color: var(--gr-gold-soft); font-weight: 700; margin-top: 12px; }
.gld-calc .gld-calc-note { color: var(--gr-muted); font-size: .9rem; }

/* onward links and colophon */
.gld-onward { margin: 26px 0; }
.gld-onward ul, .gld-onward-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 36px; }
.gld-onward li { margin: 6px 0; }
.gld-colophon {
  border-top: 1px solid #2c2c33; color: var(--gr-muted);
  font-size: .9rem; padding-top: 14px; margin-top: 30px;
}

/* two-column list with a visible column rule (a legal inset object) */
.gld-cols-2 { columns: 2; column-gap: 48px; column-rule: 1px solid #2c2c33; }

/* ---------- board (ranking board styles) ---------- */
.gr-board { margin: 26px 0; }
.gr-board-head h2 {
  font-family: var(--gr-font-head); color: var(--gr-gold-soft);
  font-size: 1.7rem; margin: 0 0 8px;
}
.gr-board-note { color: var(--gr-muted); font-size: .95rem; max-width: 72ch; margin: 0 0 18px; }
.gr-board-rows { display: flex; flex-direction: column; gap: 16px; }
.gr-vinyl {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center;
  background: var(--gr-panel); border: 1px solid #2c2c33; border-left: 3px solid var(--gr-gold);
  border-radius: var(--gr-radius); padding: 18px 22px; box-sizing: border-box;
}
.gr-ring {
  width: 84px; height: 84px; border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--gr-panel) 0 54%, transparent 55%),
    conic-gradient(var(--gr-gold) calc(var(--gr-ring, 80) * 1%), #33333c 0);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px #000, 0 0 14px rgba(212,164,55,.18);
}
.gr-ring-num { color: var(--gr-gold-soft); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.gr-vinyl-main { min-width: 0; }
.gr-rank {
  display: inline-block; background: var(--gr-panel-2); color: var(--gr-gold-soft);
  border: 1px solid #34343c; border-radius: var(--gr-chip-radius);
  font-size: .78rem; font-weight: 700; padding: 2px 10px; margin-bottom: 6px;
}
.gr-vinyl h3.gr-brand { margin: 0 0 4px; font-size: 1.3rem; }
.gr-offer { color: var(--gr-cream); margin: 0 0 10px; font-weight: 600; }
.gr-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gr-chip {
  background: var(--gr-panel-2); border: 1px solid #34343c; border-radius: var(--gr-chip-radius);
  color: var(--gr-muted); font-size: .8rem; padding: 3px 11px; white-space: nowrap;
}
.gr-vinyl-cta { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.gr-lic { color: var(--gr-muted); font-size: .78rem; max-width: 170px; }
.gr-cta {
  display: inline-block; background: var(--gr-gold); color: #141416;
  font-weight: 700; text-decoration: none; letter-spacing: .02em;
  padding: 11px 22px; border-radius: 8px; white-space: nowrap;
  box-shadow: 0 2px 12px rgba(212,164,55,.35);
}
.gr-cta:hover { background: var(--gr-gold-soft); color: #141416; }
.gr-calc-note, .gr-calc-noscript { color: var(--gr-muted); font-size: .88rem; }
.gr-calc-result { color: var(--gr-gold-soft); font-weight: 700; }

/* footer: quiet, on-brand, own footer contract */
.site-footer, .gr-footer { background: var(--gr-panel); border-top: 1px solid var(--gr-gold); color: var(--gr-muted); }
.site-footer a, .gr-footer a { color: var(--gr-muted); }
.site-footer a:hover, .gr-footer a:hover { color: var(--gr-gold); }
.gr-footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 26px 20px 30px;
  text-align: center;
}
.gr-footer-brand {
  font-family: var(--gr-font-head); color: var(--gr-gold-soft);
  font-size: 1.05rem; margin: 0 0 6px; letter-spacing: .04em;
}
.gr-footer-brand .gr-reel-mark { color: var(--gr-gold); }
.gr-footer-copy { margin: 0 0 4px; font-size: .9rem; }
.gr-footer-legal { margin: 0; font-size: .82rem; opacity: .85; }

/* Astra footer fallback: if the parent's footer shell still renders, paint it dark */
#colophon, .ast-footer-copyright, .site-primary-footer-wrap, .ast-builder-footer-widget-area {
  background: var(--gr-panel) !important; color: var(--gr-muted) !important;
  border-top: none !important;
}

/* responsive for board and footer */
@media (max-width: 768px) {
  .gr-vinyl { grid-template-columns: 64px 1fr; }
  .gr-ring { width: 60px; height: 60px; }
  .gr-vinyl-cta { grid-column: 1 / -1; }
  .gr-footer-inner { padding: 20px 14px 24px; }
}

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  .gld-hero h1 { font-size: 1.7rem; }
  .gld-toc ol, .gld-onward ul, .gld-onward-list, .gld-cols-2 { columns: 1; }
  .gr-brand-line { font-size: 1.5rem; }
  .gld-page { padding: 16px 20px 40px; }
}