/* British Gaming Guide — main stylesheet. System fonts only: no web-font requests. */
:root {
  --navy: #14213d;
  --navy-2: #1d2e52;
  --ink: #1b2230;
  --muted: #545d6d;
  --paper: #f7f4ee;
  --card: #ffffff;
  --line: #ddd6c8;
  --claret: #a61f37;
  --claret-dark: #861829;
  --focus: #f2b632;
  --ok: #1f6b45;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --wrap: 1160px;
  --narrow: 760px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--claret); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--claret-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; font-weight: 700; letter-spacing: -.005em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap--narrow { max-width: var(--narrow); }

/* Top line */
.topline { background: var(--navy); color: #e7e3da; font-size: .875rem; }
.topline__inner { display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding-top: .4rem; padding-bottom: .4rem; flex-wrap: wrap; }
.topline p { margin: 0; }
.topline a { color: #fff; }
.age-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 2.1em; height: 2.1em; padding: 0 .3em; border-radius: 50%; border: 2px solid currentColor; font-weight: 800; font-size: .75rem; margin-right: .4rem; font-family: var(--sans); }
.age-badge--lg { font-size: 1.05rem; min-width: 3.2rem; height: 3.2rem; color: var(--navy); background: #fff; border-color: var(--claret); margin: 0; flex: 0 0 auto; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand:hover { color: var(--navy); }
.brand__mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.brand__tag { font-size: .78rem; color: var(--muted); }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav__list a { display: block; padding: .55rem .75rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 6px; }
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current-page-ancestor > a { background: var(--paper); color: var(--navy); box-shadow: inset 0 -2px 0 var(--claret); }
.nav-toggle { display: none; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .75rem; font: 600 .95rem var(--sans); color: var(--navy); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 880px) {
  .brand__tag { display: none; }
  .nav-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(20,33,61,.08); }
  .js .nav.is-open { display: block; }
  .nav__list { flex-direction: column; padding: .5rem 1.25rem 1rem; }
  .nav__list a { padding: .8rem .5rem; border-bottom: 1px solid #efeae0; border-radius: 0; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .nav { width: 100%; }
  html:not(.js) .nav-toggle { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .8rem 1.3rem; border-radius: 8px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; line-height: 1.2; text-align: center; }
.btn--primary { background: var(--claret); color: #fff; }
.btn--primary:hover { background: var(--claret-dark); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--disabled { background: #e9e5dc; color: #4d5462; border: 2px dashed #bdb5a5; cursor: not-allowed; font-weight: 600; font-size: .92rem; width: 100%; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #ece8df; padding: 3.5rem 0 3.25rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.035); pointer-events: none; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: #f0c9cf; margin: 0 0 .75rem; }
.hero__title { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 0 0 1rem; max-width: 22ch; }
.hero__lede { font-size: 1.15rem; max-width: 60ch; margin: 0 0 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Sections */
.section { padding: 3rem 0; }
.section--alt { background: #efe9de; }
.section--steps { background: #fff; border-bottom: 1px solid var(--line); }
.section__title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 .5rem; }
.section__head { margin-bottom: 1.75rem; max-width: 70ch; }
.section__intro { color: var(--muted); margin: 0; }
.section__foot { margin-top: 1.5rem; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { padding: 1.25rem 1.25rem 1rem; border-top: 3px solid var(--claret); background: var(--paper); border-radius: 0 0 var(--radius) var(--radius); }
.step h3 { margin: .3rem 0 .4rem; font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); }
.step__n { font-family: var(--serif); font-size: 1.6rem; color: var(--claret); font-weight: 700; }

/* Brand cards */
.brand-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.brand-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .7rem; }
.brand-card__head { display: flex; gap: .8rem; align-items: center; }
.brand-card__name { margin: 0; font-size: 1.3rem; }
.brand-card__name a { color: var(--navy); text-decoration: none; }
.brand-card__name a:hover { text-decoration: underline; }
.brand-card__domain { margin: 0; color: var(--muted); font-size: .9rem; }
.brand-card__summary { margin: 0; }
.brand-card__more { margin: auto 0 0; }
.mark { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font: 800 .95rem/1 var(--sans); letter-spacing: .02em; color: #fff; flex: 0 0 auto; }
.mark--md { width: 52px; height: 52px; }
.mark--lg { width: 76px; height: 76px; font-size: 1.25rem; border-radius: 12px; }
.mark--amber { background: #8a4b08; } .mark--gold { background: #6b5514; } .mark--teal { background: #0f5c5c; }
.mark--rose { background: #9b2a5a; } .mark--violet { background: #4b3a8c; } .mark--slate { background: #334155; }
.licence-chip { margin: 0; display: flex; flex-wrap: wrap; column-gap: .4rem; align-items: baseline; font-size: .85rem; font-weight: 600; color: var(--ok); background: #e8f3ec; border-radius: 6px; padding: .35rem .65rem; }
.licence-chip__date { color: #3e5a49; font-weight: 400; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tags li { font-size: .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; color: var(--muted); }

/* Guide list */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.guide-list a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0; text-decoration: none; color: var(--ink); }
.guide-list a:hover { border-left-color: var(--claret); }
.guide-list__title { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.guide-list__blurb { color: var(--muted); font-size: .95rem; }

/* Safer gambling block */
.safer { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .safer { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.helplines { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 1.25rem 0; }
.helpline { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.helpline h3 { margin: 0 0 .25rem; font-size: 1rem; font-family: var(--sans); }
.helpline__num { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; margin: 0 0 .35rem; }
.helpline__num a { color: var(--navy); text-decoration: none; }
.helpline p:last-child { margin: 0; font-size: .92rem; color: var(--muted); }

/* Pages */
.page__head { background: #fff; border-bottom: 1px solid var(--line); padding: 1.5rem 0 1.4rem; margin-bottom: 2rem; }
.page__title { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: .3rem 0 .4rem; }
.page__meta { color: var(--muted); font-size: .9rem; margin: 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: #9a9384; }
.crumbs a { color: var(--muted); }
.prose { padding-bottom: 3rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.55rem; margin-top: 2.2rem; margin-bottom: .2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; margin-bottom: .1rem; }
.prose p, .prose li { max-width: 70ch; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .35rem; }
.prose .lede { font-size: 1.2rem; color: #2c3445; }
.prose table, .facts { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid #ece6da; vertical-align: top; }
.prose thead th { background: #f1ece2; color: var(--navy); }
.prose caption { caption-side: top; text-align: left; font-size: .88rem; color: var(--muted); padding-bottom: .4rem; }
.table-scroll { overflow-x: auto; }
.callout { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; }
.callout > :first-child { margin-top: 0; }
.callout--warn { border-left-color: var(--claret); background: #fbf2f3; }
.callout--verify { border-left-color: var(--ok); }
.callout h2 { font-size: 1.25rem; }
.key-points { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.key-points h2 { font-size: 1.1rem; margin: 0 0 .4rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--claret); }
.key-points ul { margin: 0; }
.disclosure { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }

/* Review */
.review__head { background: #fff; border-bottom: 1px solid var(--line); padding: 1.5rem 0 1.6rem; margin-bottom: 2rem; }
.review__title-row { display: flex; gap: 1.1rem; align-items: flex-start; margin-top: .5rem; }
.review__summary { font-size: 1.1rem; margin: 0 0 .4rem; max-width: 65ch; }
.review__layout { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .review__layout { grid-template-columns: minmax(0, 1fr) 340px; } .review__aside { order: 2; } .review__body { order: 1; } .factbox { position: sticky; top: 96px; } }
.review__body > section:first-child h2 { margin-top: 0; }
.factbox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem; }
.factbox__title { font-size: 1.15rem; margin: 0 0 .6rem; }
.factbox dl { margin: 0 0 1rem; display: grid; grid-template-columns: 1fr; }
.factbox dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin-top: .7rem; }
.factbox dd { margin: .1rem 0 0; }
.factbox dd ul { margin: 0; padding-left: 1.1rem; }
.cta { border-top: 1px solid var(--line); padding-top: 1rem; }
.cta__note, .cta__terms { font-size: .82rem; color: var(--muted); margin: .5rem 0 0; }
.cta__offer { margin: .6rem 0 0; }
.ad-label { display: inline-block; background: var(--navy); color: #fff; font-weight: 700; font-size: .72rem; padding: .05rem .35rem; border-radius: 3px; margin-right: .25rem; }
.related__list { padding-left: 1.2rem; }
.sources p { font-size: .95rem; color: var(--muted); }

/* Forms */
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; max-width: 640px; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field__opt, .field__hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field__hint { margin: .3rem 0 0; }
.field input[type=text], .field input[type=email], .field select, .field textarea { width: 100%; font: inherit; padding: .65rem .75rem; border: 1px solid #b9b19f; border-radius: 6px; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; }
.field--check { display: flex; gap: .6rem; align-items: flex-start; }
.field--check input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.field--check label { font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1rem; }
.notice p { margin: 0; }
.notice--ok { background: #e8f3ec; border: 1px solid #b7d8c4; }
.notice--error { background: #fbf2f3; border: 1px solid #e3b5bd; }

/* Footer */
.site-footer { background: var(--navy); color: #d9d5cc; margin-top: 0; }
.site-footer a { color: #fff; }
.rg-band { background: #0d1830; border-bottom: 1px solid rgba(255,255,255,.08); padding: 2rem 0; }
.rg-band__inner { display: grid; gap: 1.5rem; }
.rg-band__lead { display: flex; gap: 1rem; align-items: flex-start; }
.rg-band__title { color: #fff; font-size: 1.35rem; margin: 0 0 .3rem; }
.rg-band__lead p { margin: 0; max-width: 70ch; }
.rg-band__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.rg-band__links a { display: flex; flex-direction: column; gap: .15rem; padding: .8rem 1rem; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; text-decoration: none; height: 100%; }
.rg-band__links a:hover { border-color: #fff; background: rgba(255,255,255,.04); }
.rg-band__links strong { font-size: 1.05rem; }
.rg-band__links span { font-size: .85rem; color: #c3c0b8; }
.footer-grid { display: grid; gap: 2rem; padding-top: 2.25rem; padding-bottom: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.2rem; margin: 0 0 .5rem; }
.footer-about p { font-size: .93rem; max-width: 62ch; }
.footer-disclosure { color: #bdb9b0; }
.footer-nav__title { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .6rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: .35rem 0; }
.footer-nav a { text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; padding-bottom: 1.5rem; font-size: .85rem; color: #bdb9b0; }
.footer-base p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header, .topline, .nav-toggle, .rg-band__links, .cta { display: none; } body { background: #fff; } }
.related--guides { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.related--guides .related__list li { margin-bottom: .5rem; }
