/* UK Gambling Help — warm editorial theme
   Earth tones, maroon, blush. Instrument Serif (display) + Instrument Sans (UI).
   Minimal, typographic, long-scroll. */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --paper: #f7f2ea;
  --paper-2: #f0e8dd;
  --card: #fffdfa;
  --ink: #4a1c24;
  --ink-soft: #7a5a56;
  --ink-faint: #a99287;
  --maroon: #5c1f2b;
  --blush: #e8cfc6;
  --clay: #b4735c;
  --rose: #c0697a;
  --line-c: #ddcdbe;
  --line: 1px solid var(--line-c);
  --radius: 4px;
  --wrap: 980px;
  --measure: 680px;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono: var(--sans);
  --hand: var(--display);
  --shadow: none;
  --shadow-sm: none;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
hr { border: 0; border-top: var(--line); margin: 2rem 0; }

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-c); transition: border-color .2s ease, color .2s ease; }
a:hover { color: var(--clay); border-bottom-color: var(--clay); }

.wrap { width: min(100% - 2.6rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.6rem, var(--measure)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--maroon); color: var(--paper); padding: .6rem 1rem; z-index: 300; font-size: .85rem; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 1px solid var(--clay); outline-offset: 4px; }

/* small caps label — the editorial signature */
.eyebrow, .kicker, .badge, .breadcrumbs, .trust, .hero-card .sub,
footer.site h4, .field label, .metric span, .marquee {
  font-family: var(--sans); font-size: .68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em;
}

/* ---------- Crisis bar ---------- */
.crisis { background: var(--maroon); color: #f2e6dd; font-size: .78rem; letter-spacing: .02em; padding: .6rem 0; }
.crisis .wrap { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; align-items: center; justify-content: center; text-align: center; }
.crisis a { color: #fff; border-bottom-color: rgba(255, 255, 255, .3); }
.crisis a:hover { color: #fff; border-bottom-color: #fff; }
.crisis strong { color: #fff; font-weight: 500; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 242, 234, .92); backdrop-filter: blur(10px); border-bottom: var(--line); }
.site-header .wrap { width: min(100% - 3rem, 1280px); display: flex; align-items: center; gap: 2rem; min-height: 76px; }

.brand { display: block; border: 0; flex: none; line-height: 1; }
.brand:hover { color: var(--ink); }
.brand .name { display: block; font-family: var(--display); font-size: 1.32rem; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.brand .name span { display: block; font-family: var(--sans); font-size: .55rem; text-transform: uppercase; letter-spacing: .2em; color: var(--ink-faint); margin-top: .4rem; white-space: nowrap; }

nav.main { margin-left: auto; }
nav.main ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
nav.main li { white-space: nowrap; }
nav.main a { border: 0; font-size: .7rem; text-transform: uppercase; letter-spacing: .11em; color: var(--ink-soft); padding-bottom: 3px; }
nav.main a:hover { color: var(--ink); }
nav.main a.active { color: var(--ink); border-bottom: 1px solid var(--clay); }

.nav-cta { margin-left: 0; flex: none; padding: .68rem 1.3rem; font-size: .64rem; letter-spacing: .13em; }

.burger { display: none; margin-left: auto; background: none; border: var(--line); border-radius: 999px; padding: .35rem .9rem; font: inherit; font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink);
  font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .16em;
  padding: .78rem 1.6rem; cursor: pointer; white-space: nowrap; transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary { background: var(--maroon); border-color: var(--maroon); color: #fbf6f0; }
.btn-primary:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn-yellow { background: var(--blush); border-color: var(--blush); }
.btn-yellow:hover { background: var(--ink); border-color: var(--ink); }
.btn-teal { background: transparent; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-lg { padding: .9rem 2rem; font-size: .74rem; }

/* ---------- Hero ---------- */
.hero { padding: 7rem 0 5rem; text-align: center; }
.hero-grid { display: block; max-width: var(--measure); margin-inline: auto; }

.eyebrow { display: inline-block; color: var(--ink-faint); margin-bottom: 2rem; }
.eyebrow::before, .eyebrow::after { content: '\2014'; margin: 0 .7rem; color: var(--line-c); }

h1 {
  font-family: var(--display); font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(2.9rem, 8vw, 5.2rem); line-height: 1.02; margin: 0 0 1.6rem;
}
.mark-hl { font-style: italic; color: var(--clay); }
.hero p.lede { font-size: 1.05rem; color: var(--ink-soft); max-width: 46ch; margin: 0 auto 2.4rem; }
.hand { font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--ink-faint); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-bottom: 2.6rem; }
.trust { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; justify-content: center; list-style: none; padding: 0; margin: 0; color: var(--ink-faint); }

.hero-card {
  margin: 3.4rem auto 0; max-width: 440px; background: var(--card);
  border: var(--line); border-radius: var(--radius); padding: 2rem 2rem 1.8rem; text-align: center;
}
.hero-card h2 { font-family: var(--sans); font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-faint); margin: 0 0 1rem; }
.hero-card .num { display: block; font-family: var(--display); font-size: clamp(2rem, 5vw, 2.7rem); line-height: 1.1; border: 0; margin: .2rem 0 .4rem; }
.hero-card .num:hover { color: var(--clay); }
.hero-card .sub { color: var(--ink-faint); margin: 0 0 .3rem; }
.hero-card hr { margin: 1.4rem 0; }

.sticker { display: none; }

/* ---------- Sticky editorial statement ---------- */
.bigtext { background: var(--maroon); color: #f4e9e1; padding: 6rem 0; text-align: center; }
.bigtext .sticky {
  position: sticky; top: 38vh; pointer-events: none;
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(3.4rem, 12vw, 8rem); line-height: .95;
  color: rgba(255, 255, 255, .09);
}
.bigtext .panel { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; }
.bigtext .panel h2, .bigtext .panel h3 { color: #fff; }
.bigtext .panel p { color: rgba(255, 255, 255, .74); }
.bigtext .panel p:last-child { margin-bottom: 0; }
.bigtext .btn { border-color: rgba(255, 255, 255, .4); color: #fff; background: transparent; }
.bigtext .btn:hover { background: #fff; color: var(--maroon); border-color: #fff; }

/* ---------- Metrics ---------- */
.metrics { background: var(--paper); border-top: var(--line); border-bottom: var(--line); padding: 3rem 0; }
.metrics .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.metric + .metric { border-left: var(--line); }
.metric b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.6vw, 2.8rem); line-height: 1; }
.metric span { display: block; margin-top: .7rem; color: var(--ink-faint); }

/* ---------- Marquee ---------- */
.marquee { border-bottom: var(--line); background: var(--paper-2); color: var(--ink-faint); overflow: hidden; white-space: nowrap; padding: .8rem 0; font-size: .64rem; letter-spacing: .24em; }
.marquee-track { display: inline-block; animation: slide 52s linear infinite; }
.marquee span { padding: 0 1.2rem; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 5.5rem 0; }
section.tint { background: var(--paper-2); }

.sec-head { max-width: var(--measure); margin: 0 auto 3rem; text-align: center; }
.kicker { display: block; color: var(--clay); margin-bottom: 1.1rem; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1rem; }
h3 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .6rem; }
h4 { font-size: .95rem; font-weight: 600; margin: 0 0 .35rem; }
p { margin: 0 0 1.1rem; }
.sec-head p { color: var(--ink-soft); margin-bottom: 0; }

.grid { display: grid; gap: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(2, 1fr); }

/* cards read as an editorial ruled grid, not boxes */
.card { background: transparent; border: 0; border-top: var(--line); padding: 2rem 2rem 2rem 0; }
.g2 > .card:nth-child(odd), .g3 > .card:nth-child(3n+1), .g4 > .card:nth-child(odd) { padding-right: 2.6rem; }
.g2 > .card:nth-child(even), .g4 > .card:nth-child(even) { padding-left: 2.6rem; border-left: var(--line); }
.g3 > .card:not(:nth-child(3n+1)) { padding-left: 2.2rem; border-left: var(--line); }
.card p { color: var(--ink-soft); font-size: .95rem; }
.card p:last-child { margin-bottom: 0; }
.card a.btn { margin-top: 1rem; }
.card .badge { display: block; color: var(--ink-faint); margin-bottom: .9rem; border: 0; padding: 0; background: none; }
.b-coral, .b-yellow, .b-teal, .b-lilac, .b-sky { background: none; color: var(--ink-faint); }
.card.k-yellow, .card.k-teal, .card.k-lilac, .card.k-sky { background: transparent; }
.card.k-lilac, .card.k-lilac p, .card.k-lilac a { color: inherit; }

/* ---------- Timeline (numbered steps) ---------- */
.numbered { counter-reset: step; }
.numbered .card { position: relative; padding-left: 3.6rem !important; }
.numbered .card::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 2rem; left: 0;
  font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--clay);
}

.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list li { border: var(--line); border-radius: 999px; padding: .25rem .9rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); background: var(--card); }

.tick { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.tick li { padding-left: 1.6rem; position: relative; margin-bottom: .5rem; color: var(--ink-soft); font-size: .95rem; }
.tick li::before { content: '\2014'; position: absolute; left: 0; color: var(--clay); }

.note { border: 0; border-left: 1px solid var(--clay); border-radius: 0; background: transparent; padding: .4rem 0 .4rem 1.6rem; margin: 2rem 0; font-family: var(--display); font-size: 1.25rem; line-height: 1.45; color: var(--ink-soft); }
.note p:last-child { margin-bottom: 0; }

/* ---------- Prose pages ---------- */
.page-head { padding: 5.5rem 0 1rem; text-align: center; }
.page-head h1 { margin-top: 1.1rem; font-size: clamp(2.3rem, 6.4vw, 3.8rem); }
.breadcrumbs { color: var(--ink-faint); }
.breadcrumbs a { color: var(--ink-faint); border: 0; }
.breadcrumbs a:hover { color: var(--clay); }

.prose { color: var(--ink-soft); font-size: 1.02rem; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); }
.prose h2 { margin-top: 3rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.1rem; }
.prose li { margin-bottom: .5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.8rem 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: var(--line); padding: .8rem .6rem; text-align: left; }
.prose th { font-family: var(--sans); font-size: .66rem; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-faint); border-bottom: 1px solid var(--ink); }

/* ---------- FAQ ---------- */
details.faq { background: transparent; border: 0; border-bottom: var(--line); border-radius: 0; padding: 1.4rem 0; margin: 0; }
details.faq:first-of-type { border-top: var(--line); }
details.faq summary { font-family: var(--display); font-size: 1.25rem; cursor: pointer; list-style: none; display: flex; gap: 1.2rem; align-items: baseline; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; margin-left: auto; font-family: var(--sans); font-size: 1rem; color: var(--ink-faint); }
details.faq[open] summary::after { content: '\2013'; }
details.faq .answer { padding-top: .8rem; color: var(--ink-soft); font-size: .95rem; max-width: 60ch; }
details.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Self-check ---------- */
.q { background: transparent; border: 0; border-top: var(--line); border-radius: 0; padding: 1.6rem 0; margin: 0; }
.q legend { font-family: var(--display); font-size: 1.2rem; padding: 0 0 .9rem; }
.q .opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.q label { border: var(--line); border-radius: 999px; padding: .35rem 1rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; cursor: pointer; background: var(--card); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.q input { position: absolute; opacity: 0; width: 0; height: 0; }
.q label:hover { border-color: var(--clay); color: var(--clay); }
.q label:has(input:checked) { background: var(--maroon); color: #fbf6f0; border-color: var(--maroon); }
fieldset { border: 0; padding: 0; margin: 0; }

#result { display: none; }
#result.show { display: block; }
.score-badge { display: inline-block; font-family: var(--display); font-size: 2.6rem; border: 0; padding: 0; background: none; color: var(--clay); }

/* ---------- Forms ---------- */
.form { background: var(--card); border: var(--line); border-radius: var(--radius); padding: 2.2rem; }
.field { margin-bottom: 1.4rem; }
.field label { display: block; color: var(--ink-faint); margin-bottom: .5rem; }
.field input[type='text'], .field input[type='email'], .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .7rem 0;
  border: 0; border-bottom: var(--line); border-radius: 0; background: transparent; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--clay); }
.field .hint { font-size: .85rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-faint); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; }
.alert { border: 0; border-left: 1px solid var(--clay); border-radius: 0; padding: .6rem 0 .6rem 1.2rem; margin-bottom: 1.4rem; font-size: .95rem; }
.alert-error { border-left-color: #a83f3f; }
.alert-ok { border-left-color: var(--clay); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blush); color: var(--maroon); padding: 5.5rem 0; text-align: center; }
.cta-band .grid, .cta-band .g2 { grid-template-columns: 1fr; gap: 1.6rem; justify-items: center; }
.cta-band h2, .cta-band h3 { color: var(--maroon); }
.cta-band p { color: #7c4550; max-width: 52ch; margin-inline: auto; }
.cta-band .hand, .cta-band .kicker { color: #93636b; }
.cta-band .btn { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.cta-band .btn:hover { background: var(--maroon); color: var(--blush); }
.cta-band a { color: var(--maroon); }

/* ---------- Footer ---------- */
footer.site { background: var(--paper); border-top: var(--line); padding: 4rem 0 2rem; font-size: .92rem; color: var(--ink-soft); }
footer.site .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.4rem; }
footer.site h4 { color: var(--ink-faint); margin-bottom: 1rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: .45rem; }
footer.site a { border: 0; color: var(--ink-soft); }
footer.site a:hover { color: var(--clay); }
footer.site .legal { border-top: var(--line); margin-top: 3rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between; font-size: .64rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-faint); }
.age-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: var(--line); background: transparent; color: var(--ink-faint); font-family: var(--display); font-size: .85rem; }

/* ---------- Sticky CTA ---------- */
.sticky-cta { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90; display: flex; gap: .5rem; align-items: center; }
.sticky-cta .btn { background: var(--maroon); border-color: var(--maroon); color: #fbf6f0; }
.sticky-cta .btn:hover { background: var(--clay); border-color: var(--clay); }

@media (max-width: 1180px) {
  .site-header .wrap { gap: 1.4rem; }
  nav.main ul { gap: 1.1rem; }
  nav.main a { font-size: .66rem; letter-spacing: .09em; }
}

@media (max-width: 1020px) {
  .site-header .wrap { flex-wrap: wrap; min-height: 64px; }
  nav.main { display: none; width: 100%; }
  nav.main.open { display: block; order: 3; padding-bottom: 1.2rem; border-top: var(--line); margin-top: .2rem; }
  nav.main ul { flex-direction: column; flex-wrap: wrap; gap: 0; }
  nav.main a { display: block; padding: .6rem 0; font-size: .74rem; letter-spacing: .14em; }
  .burger { display: block; }
  .nav-cta { display: none; }
}

@media (max-width: 900px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .card, .g2 > .card, .g3 > .card, .g4 > .card { padding: 1.8rem 0 !important; border-left: 0 !important; }
  .numbered .card { padding-left: 3.2rem !important; }
  .numbered .card::before { top: 1.8rem; }
  .metrics .wrap { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .metric + .metric { border-left: 0; }
  .metric:nth-child(even) { border-left: var(--line); }
  footer.site .cols { grid-template-columns: repeat(2, 1fr); }
  nav.main { display: none; width: 100%; }
  nav.main.open { display: block; order: 3; padding-bottom: 1.2rem; }
  nav.main ul { flex-direction: column; gap: 0; }
  nav.main a { display: block; padding: .5rem 0; }
  .burger { display: block; }
  .nav-cta { display: none; }
  .site-header .wrap { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .hero { padding: 4.5rem 0 3.5rem; }
  section { padding: 4rem 0; }
  .metrics .wrap { grid-template-columns: 1fr; }
  .metric:nth-child(even) { border-left: 0; }
  footer.site .cols { grid-template-columns: 1fr; }
  .sticky-cta { left: 1rem; right: 1rem; }
  .sticky-cta .btn { flex: 1; }
}

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

@media print { .site-header, .sticky-cta, .marquee, .crisis { display: none; } body { background: #fff; } }
