/*
Theme Name: OpusFair
Theme URI: https://opusfair.com/
Author: OpusFair
Author URI: https://opusfair.com/
Description: A licence-first comparison theme for Australian wagering. Builds its own pages, navigation and footer on activation, with certificate-style licence records, a blurred 18+ age gate and built-in safer-gambling components.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: opusfair
Tags: one-column, custom-menu, full-width-template, translation-ready
*/

/* ---------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------- */

:root {
  --ink:        #0a1220;
  --ink-2:      #101b2d;
  --ink-3:      #1a2740;
  --paper:      #ffffff;
  --paper-2:    #f8fafc;
  --band:       #eaeef3;
  --rule:       #d6dee7;
  --rule-2:     #e6ecf1;
  --muted:      #55637a;
  --muted-2:    #7c8aa0;

  --blue:       #1b34c4;
  --blue-ink:   #142a9e;
  --blue-tint:  #edf0fe;
  --verified:   #1f8a70;
  --flag:       #c0173f;
  --flag-wash:  #fbeef1;
  --flag-line:  #eecdd6;

  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rail: 190px;
  --gap: 3rem;
  --measure: 64ch;
  --pad: 5.5rem;
}

/* ---------------------------------------------------------------
   2. Base
   --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .9375rem;
  line-height: 1.65;
  counter-reset: section;
  -webkit-font-smoothing: antialiased;
}

/* status ribbon: verified green, then blue, then ink */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--verified) 0 9%,
    var(--blue) 9% 38%,
    var(--ink) 38% 100%);
  z-index: 60;
}

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

h1, h2, h3, h4 { margin: 0 0 .6em; letter-spacing: -.028em; }
h1 { font-size: clamp(2.25rem, 1.35rem + 3vw, 3.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.04em; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.4vw, 2.15rem); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; letter-spacing: -.015em; }
h4 { font-size: .875rem; font-weight: 700; }

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-underline-offset: .17em; }
a:hover { color: var(--blue); }
strong { font-weight: 700; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.15rem; max-width: var(--measure); }
li { margin-bottom: .35em; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: .5rem; top: .75rem; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 999; }

.mono { font-family: var(--mono); font-size: .85em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* small caps data label, used throughout */
.tag {
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------
   3. Layout
   --------------------------------------------------------------- */

.wrap { width: min(1160px, 100% - 3.5rem); margin-inline: auto; }

.sec { padding: var(--pad) 0; }
.sec[id] { scroll-margin-top: 4rem; }
.sec-tight { padding: 3.5rem 0; }
.sec-wash { background: var(--band); }
.sec-soft { background: var(--paper-2); }

.sec-head {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gap);
  border-top: 1px solid var(--rule);
  padding-top: 1.6rem;
  margin-bottom: 2.75rem;
}

/* the left rail reads as a document index: 01 over the section name */
.sec-label {
  margin: 0;
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
.sec-label::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  display: block;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--blue);
  margin-bottom: .55rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--rule);
  max-width: 2.6rem;
}

.sec-head h2 { margin-bottom: .55rem; }
.lede { font-size: 1.0625rem; line-height: 1.6; color: var(--muted); max-width: 54ch; margin-bottom: 0; }

.sec-body { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: var(--gap); }
.rail { min-width: 0; }
.rail-note { font-size: .8125rem; line-height: 1.6; color: var(--muted); margin: 0; padding-left: .9rem; border-left: 2px solid var(--rule); }

.note { font-size: .8125rem; line-height: 1.7; color: var(--muted); max-width: 62ch; margin: 1.75rem 0 0; }
.mt-lg { margin-top: 2.25rem; }
.mt-md { margin-top: 1.5rem; }
.stack > * + * { margin-top: 1.5rem; }

@media (max-width: 900px) {
  :root { --pad: 3.25rem; }
  .wrap { width: calc(100% - 2.5rem); }
  .sec-head, .sec-body { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .sec-head { margin-bottom: 1.75rem; padding-top: 1.15rem; }
  .sec-label { display: flex; align-items: baseline; gap: .7rem; }
  .sec-label::before { margin: 0; padding: 0; border: 0; max-width: none; }
  .rail:empty { display: none; }
}

/* ---------------------------------------------------------------
   4. Header
   --------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 66px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; border-radius: 6px; }
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--ink); }
.brand-name i { font-style: normal; color: var(--blue); }
.brand-region {
  font-family: var(--mono);
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: .2rem .32rem;
  line-height: 1;
  border-radius: 3px;
}

.nav-list { display: flex; align-items: center; gap: 1.7rem; list-style: none; margin: 0; padding: 0; max-width: none; }
.nav-list li { margin: 0; }
.nav-list a {
  position: relative;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: .3rem 0;
  display: inline-block;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.nav-list a:hover::after,
.nav-list .current-menu-item > a::after,
.nav-list .current_page_item > a::after { transform: scaleX(1); }
.nav-list li:last-child a { color: var(--flag); }
.nav-list li:last-child a::after { background: var(--flag); }

.nav-toggle {
  display: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  padding: .5rem .85rem;
  border-radius: 3px;
  cursor: pointer;
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .25rem 0 1rem; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: calc(100% - 2.5rem); margin-inline: auto; }
  .nav-list a { padding: .8rem 0; border-bottom: 1px solid var(--rule-2); width: 100%; }
  .nav-list a::after { display: none; }
}

/* ---------------------------------------------------------------
   5. Heroes
   --------------------------------------------------------------- */

.hero {
  padding: 4.5rem 0 3.75rem;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(120% 90% at 88% 0%, var(--blue-tint) 0%, rgba(237,240,254,0) 58%),
    var(--paper-2);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 3.5rem; align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero-lede { font-size: 1.0625rem; line-height: 1.6; color: var(--muted); max-width: 42ch; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.5rem;
  padding: .4rem .75rem .4rem .6rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--verified); flex: none; box-shadow: 0 0 0 3px rgba(31,138,112,.16); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.5rem;
  margin: 2rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  max-width: none;
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-facts li { margin: 0; }
.hero-facts b { font-weight: 500; color: var(--ink); }

.page-hero {
  padding: 4rem 0 3.25rem;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(100% 120% at 92% 0%, var(--blue-tint) 0%, rgba(237,240,254,0) 55%),
    var(--paper-2);
}
.page-hero .kicker {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.page-hero .kicker::after { content: ""; display: block; width: 26px; height: 2px; background: var(--blue); margin-top: .75rem; }
.page-hero h1 { max-width: 17ch; margin-bottom: 1.1rem; }
.page-hero .lede { font-size: 1.0625rem; max-width: 52ch; }
.page-hero .stamp {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.75rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  max-width: 26rem;
}

/* the accent full stop on display headings */
.hero h1::after, .page-hero h1::after { content: "."; color: var(--flag); }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .page-hero { padding: 2.75rem 0 2.25rem; }
}

/* ---------------------------------------------------------------
   6. Licence record — styled as a register certificate
   --------------------------------------------------------------- */

.record {
  position: relative;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(31,138,112,.06) 0%, rgba(31,138,112,0) 30%),
    var(--ink-2);
  color: #d5dfea;
  border-top: 3px solid var(--verified);
  box-shadow: 0 20px 45px -30px rgba(10,18,32,.75);
  overflow: hidden;
}

.record-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.65rem;
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.record-top span:first-child { color: #8fb0f0; }

.record-body { position: relative; padding: .25rem 1.65rem 1.35rem; }
.record-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.record-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; color: #fff; margin: 0; }
.record-tag { font-family: var(--mono); font-size: .625rem; letter-spacing: .14em; color: var(--muted-2); }

.record-seal {
  position: absolute;
  right: 1.1rem;
  bottom: .6rem;
  width: 108px;
  height: 108px;
  opacity: .11;
  pointer-events: none;
}

.record-fields { margin: 0; position: relative; z-index: 1; }
.record-row { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 1rem; padding: .6rem 0; border-top: 1px solid rgba(255,255,255,.07); }
.record-row dt {
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1.75;
}
.record-row dd { margin: 0; font-size: .8125rem; line-height: 1.6; color: #eef3f8; }

.record-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.65rem;
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .8125rem;
  color: #c6d3e0;
}
.record-foot a {
  margin-left: auto;
  color: #8fb0f0;
  text-decoration: none;
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.record-foot a:hover { color: #fff; }
.seal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--verified); flex: none; box-shadow: 0 0 0 3px rgba(31,138,112,.22); }

@media (max-width: 640px) {
  .record-row { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .record-top, .record-body, .record-foot { padding-inline: 1.2rem; }
  .record-foot a { margin-left: 0; }
  .record-seal { display: none; }
}

/* ---------------------------------------------------------------
   7. Buttons
   --------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .8rem 1.35rem;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.btn:hover { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }

.btn-quiet { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.btn-quiet:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.6rem 0 0; }

.disclaimer {
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: .9rem 0 0;
}

.textlink { font-size: .875rem; font-weight: 600; color: var(--blue); text-decoration: none; border-bottom: 1px solid var(--blue-tint); padding-bottom: 2px; }
.textlink:hover { border-bottom-color: var(--blue); }

/* ---------------------------------------------------------------
   8. Steps, schedules, tables
   --------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.step { position: relative; background: var(--paper); padding: 1.5rem 1.6rem; }
.step::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--blue); }
.step-no { font-family: var(--mono); font-size: .625rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); display: block; margin-bottom: .7rem; }
.step h3 { margin-bottom: .45rem; }
.step p { font-size: .8125rem; line-height: 1.65; color: var(--muted); margin: 0; }

.schedule { margin: 0; padding: 0; list-style: none; max-width: none; }
.schedule-item { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 2rem; padding: 1.3rem 0; border-top: 1px solid var(--rule); margin: 0; }
.schedule-item:last-child { border-bottom: 1px solid var(--rule); }
.schedule-item h3 { margin: 0; }
.schedule-item p { margin: 0; font-size: .875rem; color: var(--muted); }
.schedule-item .step-no { margin-bottom: .3rem; }

.datatable { width: 100%; border-collapse: collapse; font-size: .875rem; }
.datatable th, .datatable td { text-align: left; vertical-align: top; padding: .85rem 1rem; border-bottom: 1px solid var(--rule); }
.datatable tr:first-child th, .datatable tr:first-child td { border-top: 1px solid var(--rule); }
.datatable th {
  width: 14.5rem;
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 0;
  line-height: 2;
}
.datatable td { color: var(--muted); }
.datatable td.mono, .datatable td strong { color: var(--ink); }
.datatable tbody tr:nth-child(odd) { background: var(--paper-2); }
.sec-wash .datatable tbody tr:nth-child(odd) { background: var(--paper); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); gap: 1.5rem; align-items: start; }

.verdict { position: relative; border: 1px solid var(--rule); background: var(--paper); padding: 1.35rem 1.5rem; }
.verdict::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--verified); }
.verdict.against::before { background: var(--flag); }
.verdict h3 {
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--verified);
  margin-bottom: 1rem;
}
.verdict.against h3 { color: var(--flag); }
.verdict ul { list-style: none; padding: 0; margin: 0; }
.verdict li { position: relative; padding-left: 1.2rem; font-size: .8125rem; line-height: 1.6; color: var(--muted); margin-bottom: .65rem; }
.verdict li:last-child { margin-bottom: 0; }
.verdict li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6rem; height: 1px; background: var(--verified); }
.verdict.against li::before { background: var(--flag); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(20.5rem, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--rule); padding: 1.35rem 1.45rem; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .8125rem; line-height: 1.65; color: var(--muted); margin: 0; }
.card a { color: var(--flag); text-decoration: none; }
.card .mono { display: inline-block; margin-top: .8rem; font-size: .75rem; letter-spacing: .04em; }

.signs { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.sign {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1rem 1.15rem 1rem 1.35rem;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--muted);
}
.sign::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--flag); }

/* ---------------------------------------------------------------
   9. Operator listing
   --------------------------------------------------------------- */

.listing { border: 1px solid var(--rule); background: var(--paper); box-shadow: 0 18px 40px -34px rgba(10,18,32,.5); }
.listing-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.6rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.listing-top span:first-child { color: var(--flag); }
.listing-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: 1.5rem 1.6rem; }
.listing-main h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.045em; margin: 0 0 .35rem; }
.listing-main h3 a { text-decoration: none; }
.listing-sub { font-size: .8125rem; color: var(--muted); margin: 0; }
.rating { text-align: right; border-left: 1px solid var(--rule); padding-left: 1.6rem; min-width: 9.5rem; }
.rating-value { font-size: 2.1rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; display: block; }
.rating-scale { font-family: var(--mono); font-size: .5625rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.meter { display: block; height: 3px; background: var(--rule-2); margin-top: .6rem; }
.meter span { display: block; height: 100%; width: var(--v, 0%); background: var(--verified); }

.listing-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); }
.spec { background: var(--paper); padding: .95rem 1.6rem; }
.spec dt { font-family: var(--mono); font-size: .5625rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.spec dd { margin: 0; font-size: .8125rem; font-weight: 600; }
.listing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; padding: 1.2rem 1.6rem; border-top: 1px solid var(--rule); }
.listing-actions .disclaimer { margin: 0 0 0 auto; }

@media (max-width: 760px) {
  .listing-main { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
  .rating { border-left: 0; padding-left: 0; text-align: left; }
  .schedule-item { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .listing-actions .disclaimer { margin-left: 0; }
}

/* ---------------------------------------------------------------
   10. Offer, callout, safer gambling
   --------------------------------------------------------------- */

.offer { border: 1px solid var(--rule); background: var(--paper); padding: 1.5rem 1.6rem; }
.offer-label { font-family: var(--mono); font-size: .625rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 .55rem; }
.offer h3 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.04em; margin: 0 0 .6rem; }
.offer p { font-size: .875rem; color: var(--muted); }

.callout { position: relative; border: 1px solid var(--rule); background: var(--paper); padding: 1.5rem 1.6rem; }
.callout::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--blue); }
.callout h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.035em; margin-bottom: .45rem; }
.callout p { font-size: .875rem; color: var(--muted); }

.safer { background: var(--flag-wash); }
.safer .sec-head { border-top-color: var(--flag-line); }
.safer .sec-label { color: var(--flag); }
.safer .sec-label::before { color: var(--flag); border-bottom-color: var(--flag-line); }
.safer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.safer-card { position: relative; background: var(--paper); border: 1px solid var(--flag-line); padding: 1.25rem 1.4rem; }
.safer-card::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--flag); }
.safer-card h3 { margin-bottom: .4rem; }
.safer-card p { font-size: .8125rem; line-height: 1.6; color: var(--muted); margin: 0 0 .7rem; }
.safer-card a { color: var(--flag); font-family: var(--mono); font-size: .75rem; text-decoration: none; letter-spacing: .04em; }

.helpline { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.35rem; }
.helpline a {
  font-family: var(--mono);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid var(--flag-line);
  background: var(--paper);
  color: var(--flag);
  padding: .75rem 1.05rem;
}
.helpline a:hover { border-color: var(--flag); }

/* ---------------------------------------------------------------
   11. FAQ
   --------------------------------------------------------------- */

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 3rem 1.15rem 0; position: relative; font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after,
.faq summary::before { content: ""; position: absolute; right: .5rem; top: 50%; background: var(--muted); transition: transform .18s ease, background .18s ease; }
.faq summary::after { width: 11px; height: 1px; transform: translateY(-50%); }
.faq summary::before { width: 1px; height: 11px; right: 1rem; transform: translateY(-50%); }
.faq details[open] summary::before { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.faq details[open] summary { color: var(--blue); }
.faq details[open] summary::after { background: var(--blue); }
.faq-body { padding: 0 3rem 1.35rem 0; font-size: .875rem; color: var(--muted); line-height: 1.7; }

/* ---------------------------------------------------------------
   12. Prose
   --------------------------------------------------------------- */

.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.4; margin: 2.75rem 0 .7rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.85rem 0 .5rem; }
.prose p, .prose li { color: var(--muted); font-size: .875rem; line-height: 1.75; }
.prose a { color: var(--blue); }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.25rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .75em; width: .65rem; height: 1px; background: var(--blue); }

.numbered { counter-reset: clause; }
.numbered h2 { counter-increment: clause; }
.numbered h2::before {
  content: counter(clause, decimal-leading-zero);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--blue);
  margin-right: .7rem;
  letter-spacing: .04em;
}

.inbox { position: relative; border: 1px solid var(--rule); background: var(--paper); padding: 1.5rem 1.6rem; }
.inbox::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--blue); }
.inbox p { margin: 0 0 .55rem; font-family: var(--mono); font-size: .625rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.inbox a { font-size: 1.55rem; font-weight: 700; letter-spacing: -.04em; color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--blue-tint); }
.inbox a:hover { border-bottom-color: var(--blue); }

/* ---------------------------------------------------------------
   13. Footer
   --------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #9dacc0; padding: 3.75rem 0 2.5rem; font-size: .8125rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 2.5rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name i { color: #8fb0f0; }
.site-footer .brand-region { border-color: rgba(255,255,255,.16); color: #8494ab; }
.footer-line { margin: 1.25rem 0 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.035em; color: #fff; max-width: 22ch; }
.footer-col h4 { font-family: var(--mono); font-size: .625rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #7b8ba2; margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: #c6d3e0; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-help { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; padding: 1.35rem 0; border-top: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-help a { color: #c6d3e0; text-decoration: none; font-size: .8125rem; }
.footer-help a:hover { color: #fff; text-decoration: underline; }
.badge18 { display: inline-block; background: var(--flag); color: #fff; font-family: var(--mono); font-size: .625rem; font-weight: 500; padding: .28rem .48rem; border-radius: 3px; line-height: 1.2; }

.footer-legal { padding-top: 1.35rem; font-size: .6875rem; line-height: 1.75; color: #7b8ba2; }
.footer-legal p { max-width: 92ch; }
.footer-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 1.35rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.09);
  font-family: var(--mono); font-size: .625rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}

@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------
   14. Age gate — the page behind it stays blurred until confirmed
   --------------------------------------------------------------- */

html.age-pending, html.age-pending body { overflow: hidden; height: 100%; }

html.age-pending .masthead,
html.age-pending #main,
html.age-pending .site-footer {
  filter: blur(14px) saturate(.55) brightness(1.04);
  opacity: .5;
  pointer-events: none;
  user-select: none;
  transition: filter .45s ease, opacity .45s ease;
}
html.age-pending .masthead { position: static; }

.masthead, #main, .site-footer { transition: filter .45s ease, opacity .45s ease; }

.agegate { position: fixed; inset: 0; z-index: 100; background: rgba(10,18,32,.45); display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.agegate.show { display: flex; }
.agegate-panel {
  position: relative;
  background: var(--paper);
  border-top: 3px solid var(--flag);
  max-width: 27rem;
  width: 100%;
  padding: 1.9rem;
  box-shadow: 0 40px 90px -30px rgba(10,18,32,.55);
}
.agegate-label { font-family: var(--mono); font-size: .625rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--flag); margin: 0 0 .85rem; }
.agegate-panel h2 { font-size: 1.5rem; margin-bottom: .8rem; max-width: 17ch; }
.agegate-panel p { font-size: .8125rem; line-height: 1.65; color: var(--muted); margin-bottom: 1.4rem; }
.agegate-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.agegate-actions .btn { flex: 1 1 auto; text-align: center; }

/* ---------------------------------------------------------------
   15. Misc
   --------------------------------------------------------------- */

.crumbs { font-family: var(--mono); font-size: .625rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.35rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

.advisory { font-family: var(--mono); font-size: .625rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--flag); margin: 0 0 1.1rem; }

.entry-content img { margin: 1.5rem 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
