/* Inner pages — built in the language of mockup C2: dark head band, light content,
 * floors / lift-button signature, info cards. Shared by about, how, RG, legal, contacts, FAQ, account, 404. */

.ph-meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--color-on-dark-muted); font-size: var(--fs-small); }
.ph-meta .icon { color: var(--color-amber); }
.ph-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.page-head .finder__row { max-width: 640px; margin-top: 26px; }
.faq-search__count { margin-top: 10px; color: var(--color-on-dark-muted); font-size: var(--fs-small); min-height: 1.4em; }
.lead-prose { margin-top: 16px; color: var(--color-muted); font-size: 1.04rem; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--color-teal-tint); color: var(--color-text); font-size: .94rem; }
.note .icon { width: 20px; height: 20px; color: var(--color-teal); margin-top: 1px; }
.section--night .note { background: rgba(255, 255, 255, .06); color: var(--color-on-dark); }
.note-cta { margin-top: 22px; }
.narrow { max-width: 560px; }

/* split: text + photo */
.split__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split__ph { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lift); }
.split__ph img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .split__in { grid-template-columns: minmax(0, 1fr); gap: 28px; } .split--rev .split__ph { order: 2; } }

/* timeline: floors of the history */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: tl; }
.timeline__item { position: relative; padding: 22px; border-radius: var(--radius-lg); background: var(--color-night-2); box-shadow: inset 0 0 0 1px var(--color-border-dark); }
.timeline__item::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--color-amber); transform: scaleX(.3); transform-origin: left; transition: transform var(--dur-slow) var(--ease); }
.timeline__item:hover::before { transform: none; }
.timeline__year { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; color: var(--color-amber); line-height: 1; margin-bottom: 14px; }
.timeline__item .levels { margin-bottom: 14px; }
.timeline__item h3 { margin-bottom: 6px; }
.timeline__item p { color: var(--color-on-dark-muted); font-size: .94rem; }
@media (max-width: 1100px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .timeline { grid-template-columns: minmax(0, 1fr); } }

/* card grids */
.cards-3, .cards-4, .cards-5 { display: grid; gap: 14px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cards-5 > * { grid-column: span 2; }
.cards-5 > :nth-child(4), .cards-5 > :nth-child(5) { grid-column: span 3; }
@media (max-width: 1100px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards-5 > * , .cards-5 > :nth-child(n) { grid-column: auto; } }
@media (max-width: 760px) { .cards-3, .cards-4, .cards-5 { grid-template-columns: minmax(0, 1fr); } }

/* company details table + contact card */
.details-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.dtable { width: 100%; margin-top: 22px; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--color-border); }
.dtable th, .dtable td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.dtable tr:last-child th, .dtable tr:last-child td { border-bottom: 0; }
.dtable th { width: 38%; font-weight: 600; color: var(--color-muted); font-size: .92rem; }
.dtable td { font-family: var(--font-display); font-weight: 600; overflow-wrap: anywhere; }
.contact-card { position: sticky; top: calc(var(--hd) + 20px); padding: 28px; border-radius: var(--radius-lg); background: var(--color-night); color: #fff; }
.contact-card .icard__ic { background: rgba(244, 166, 42, .14); color: var(--color-amber); }
.contact-card p { color: var(--color-on-dark-muted); margin: 8px 0 20px; }
.credits__list { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; font-size: var(--fs-small); color: var(--color-muted); }
.credits__list a { color: var(--color-teal); }
@media (max-width: 900px) { .details-grid { grid-template-columns: minmax(0, 1fr); } .contact-card { position: static; } .credits__list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .dtable th, .dtable td { display: block; width: auto; padding: 4px 16px; border: 0; } .dtable th { padding-top: 14px; } .dtable tr { display: block; border-bottom: 1px solid var(--color-border); padding-bottom: 12px; } }

/* how it works */
.stepnav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 28px; padding-bottom: 4px; }
.stepnav a { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px; border-radius: 12px; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); font-weight: 600; font-size: .92rem; text-decoration: none; transition: background-color var(--dur-fast), color var(--dur-fast); }
.stepnav a:hover { background: var(--color-night); color: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.stepcard { scroll-margin-top: calc(var(--hd) + 20px); }
.stepcard:target { box-shadow: inset 0 0 0 2px var(--color-amber), var(--shadow-lift); }
.stepcard__pts { display: grid; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--color-border-2); }
.stepcard__pts li { display: flex; gap: 8px; font-size: .9rem; color: var(--color-text); }
.stepcard__pts .icon { width: 16px; height: 16px; color: var(--color-teal); margin-top: 3px; }
@media (max-width: 1100px) { .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .steps-grid { grid-template-columns: minmax(0, 1fr); } }

.rules { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.rules__ph { margin: 28px 0 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; }
.rules__ph img { width: 100%; height: 100%; object-fit: cover; }
.rules__list { display: grid; gap: 10px; }
.rules__list li { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius-md); background: var(--color-night-2); box-shadow: inset 0 0 0 1px var(--color-border-dark); font-weight: 500; }
@media (max-width: 900px) { .rules { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 36px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border), var(--shadow-card); position: relative; overflow: hidden; }
.section--white .cta-band { background: var(--color-bg); }
.cta-band::after { content: ""; position: absolute; right: 0; bottom: 0; width: 160px; height: 9px; background: linear-gradient(var(--color-amber), var(--color-amber)) 0 6px / 100% 3px no-repeat, linear-gradient(rgba(244, 166, 42, .5), rgba(244, 166, 42, .5)) 0 0 / 100% 3px no-repeat; }
@media (max-width: 760px) { .cta-band { flex-direction: column; align-items: start; padding: 24px; } }

/* responsible gambling */
.rg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rg-card { padding: 28px; }
.rg-card--risk { background: var(--color-night); color: #fff; }
.rg-card--risk p { color: var(--color-on-dark-muted); }
.rg-card--risk .icard__ic { background: rgba(244, 166, 42, .14); color: var(--color-amber); }
.rg-card--dark { background: var(--color-night-3); color: #fff; }
.rg-card--dark .prose, .rg-card--dark .prose strong { color: var(--color-on-dark); }
.rg-card--dark .icard__ic { background: rgba(244, 166, 42, .14); color: var(--color-amber); }
.rg-card--dark .prose a { color: var(--color-amber); }
.rg-card .prose { color: var(--color-muted); font-size: .95rem; margin-top: 8px; }
.checks { display: grid; gap: 8px; margin-top: 16px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checks .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--color-amber); flex: none; }
.checks--warn .icon { color: var(--color-error); }
.icard .checks li { color: var(--color-text); font-size: .95rem; }
.rg-card--risk .checks li { color: #fff; }
.rg-pair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rg-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; min-height: 280px; }
.rg-photo picture, .rg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rg-card--wide { grid-column: 1 / -1; }
@media (max-width: 1000px) { .rg-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rg-photo { grid-column: 1 / -1; min-height: 220px; } }
@media (max-width: 760px) { .rg-grid, .rg-pair { grid-template-columns: minmax(0, 1fr); } }
.help-card { display: flex; flex-direction: column; }
.help-card__tel { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--color-amber); letter-spacing: -.03em; margin: 2px 0 6px; }
.help-card__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }

.quiz-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.quiz { display: grid; gap: 10px; padding: 24px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-card); }
.quiz__q { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 14px; align-items: center; border: 0; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--color-border); transition: background-color var(--dur-base); }
.quiz__q legend { float: left; display: flex; gap: 12px; align-items: center; font-weight: 500; padding: 0; }
.quiz__q legend .floor { flex: none; }
.quiz__q.is-missing { background: var(--color-warn-bg); border-radius: 10px; }
.quiz__acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.quiz__result { margin-top: 6px; padding: 18px; border-radius: var(--radius-md); background: var(--color-teal-tint); }
.quiz__result b { font-family: var(--font-display); display: block; margin-bottom: 6px; }
.quiz__result.is-mid { background: var(--color-warn-bg); }
.quiz__result.is-high { background: var(--color-error-bg); }
@media (max-width: 1000px) { .quiz-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 560px) { .quiz__q { grid-template-columns: minmax(0, 1fr); } .quiz { padding: 16px; } }

/* legal document */
.legal__in { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { position: sticky; top: calc(var(--hd) + 20px); max-height: calc(100dvh - var(--hd) - 40px); overflow: auto; padding: 18px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-card); }
.toc__h { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 10px; }
.toc__list { display: grid; gap: 2px; margin-bottom: 14px; }
.toc__list a { position: relative; display: flex; gap: 10px; padding: 7px 10px; border-radius: 9px; font-size: .88rem; color: var(--color-muted); text-decoration: none; line-height: 1.35; transition: background-color var(--dur-fast), color var(--dur-fast); }
.toc__list a span { flex: none; min-width: 20px; font-family: var(--font-display); font-weight: 700; color: var(--color-teal); }
.toc__list a:hover { background: var(--color-surface-2); color: var(--color-text); }
.toc__list a[aria-current] { background: var(--color-night); color: #fff; }
.toc__list a[aria-current] span { color: var(--color-amber); }
.doc { min-width: 0; }
.doc > .note { margin: 0 0 22px; }
.doc__sec { padding: 28px 30px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); scroll-margin-top: calc(var(--hd) + 16px); }
.doc__sec + .doc__sec { margin-top: 12px; }
.doc__h { display: flex; gap: 12px; align-items: center; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.doc__sec .prose { color: #2E3B40; }
.doc__top { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: var(--fs-xs); color: var(--color-muted); text-decoration: none; }
.doc__top .icon { width: 14px; height: 14px; }
.doc__top:hover { color: var(--color-teal); }
.doc__cookie { margin-top: 20px; }
@media (max-width: 1000px) { .legal__in { grid-template-columns: minmax(0, 1fr); } .toc { position: static; max-height: none; } .toc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .toc__list { grid-template-columns: minmax(0, 1fr); } .doc__sec { padding: 20px 18px; } }

/* contacts */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.contact__info { padding: 28px; border-radius: var(--radius-lg); background: var(--color-night); color: #fff; }
.ilist { display: grid; gap: 16px; margin: 18px 0 0; }
.ilist dt { display: flex; align-items: center; gap: 8px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.ilist dt .icon { width: 16px; height: 16px; color: var(--color-amber); }
.ilist dd { margin: 4px 0 0 24px; font-weight: 600; overflow-wrap: anywhere; }
.ilist .link { color: var(--color-amber); }
.contact__langs { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-border-dark); }
.contact__langs h3 { display: flex; gap: 8px; align-items: center; }
.contact__langs p { color: var(--color-on-dark-muted); margin-top: 6px; font-size: .94rem; }
.contact__flags { display: flex; gap: 6px; }
.contact__flags .badge { background: rgba(255, 255, 255, .1); color: #fff; }
.contact__form { padding: 32px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-card); }
.cform { display: grid; gap: 14px; margin-top: 22px; }
.cform .btn { justify-self: start; }
.done { display: grid; justify-items: start; gap: 10px; margin-top: 22px; padding: 24px; border-radius: var(--radius-md); background: var(--color-success-bg); }
.done__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--color-success); color: #fff; animation: pop-in .5s var(--ease); }
@keyframes pop-in { from { transform: scale(.6); opacity: 0; } }
@media (max-width: 1000px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .contact__form, .contact__info { padding: 20px; } }

/* FAQ help centre */
.faq { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.faq__cats { position: sticky; top: calc(var(--hd) + 20px); display: grid; gap: 4px; padding: 12px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-card); }
.faq__cat { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--color-muted); font-weight: 600; text-decoration: none; transition: background-color var(--dur-fast), color var(--dur-fast); }
.faq__cat .icon { width: 18px; height: 18px; }
.faq__cat span { flex: 1; }
.faq__cat b { font-size: .75rem; min-width: 26px; text-align: center; padding: 2px 6px; border-radius: 99px; background: var(--color-surface-2); }
.faq__cat:hover { background: var(--color-surface-2); color: var(--color-text); }
.faq__cat[aria-current] { background: var(--color-night); color: #fff; }
.faq__cat[aria-current] b { background: var(--color-amber); color: var(--color-night); }
.faq__group + .faq__group { margin-top: 32px; }
.faq__gh { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; scroll-margin-top: calc(var(--hd) + 20px); }
.faq__gic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--color-teal-tint); color: var(--color-teal); }
.faq__gic .icon { width: 20px; height: 20px; }
.faq mark, .acc mark { background: rgba(244, 166, 42, .35); color: inherit; border-radius: 3px; padding: 0 1px; }
@media (max-width: 1000px) { .faq { grid-template-columns: minmax(0, 1fr); } .faq__cats { position: static; display: flex; overflow-x: auto; scrollbar-width: none; } .faq__cat { flex: none; } }

/* 404 */
.e404 { position: relative; background: var(--color-night); color: #fff; padding: 120px 0; margin-top: calc(var(--hd) * -1); padding-top: calc(var(--hd) + 100px); text-align: center; overflow: hidden; }
.e404__in { display: grid; justify-items: center; gap: 14px; }
.e404__code { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 3rem + 8vw, 10rem); line-height: 1; letter-spacing: -.06em; }
.e404__code .floor { min-width: 1em; height: 1em; font-size: inherit; border-radius: .22em; padding: 0 .12em; }
.e404 .section__sub { color: var(--color-on-dark-muted); text-align: center; }
.e404__acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

@media print {
  .site-header, .site-footer, .toc, .page-head__bg, .page-head__floors, .doc__top, .cookie, .to-top, .mnav, .doc__cookie { display: none !important; }
  .page-head { background: none; color: #000; padding: 0 0 16px; }
  .page-head h1, .page-head__lead, .crumbs, .ph-meta { color: #000; }
  .legal__in { display: block; }
  .doc__sec { box-shadow: none; padding: 0; margin-top: 18px; break-inside: avoid-page; }
}

/* search row in the page head (FAQ) — same component as the home finder */
.page-head .finder__row { display: flex; align-items: center; gap: 10px; padding: 6px 14px; background: #fff; border-radius: 16px; color: var(--color-text); }
.page-head .finder__row .icon { width: 20px; height: 20px; color: var(--color-muted); }
.page-head .finder__row input { flex: 1; border: 0; background: none; font-size: 1.02rem; min-width: 0; min-height: 44px; }
.page-head .finder__row input:focus { outline: none; }
.page-head .finder__row:focus-within { box-shadow: 0 0 0 3px rgba(244, 166, 42, .55); }
/* light text on the dark exclusion card wins over the muted card text */
.rg-card.rg-card--dark .prose, .rg-card.rg-card--dark .prose p, .rg-card.rg-card--dark .prose li { color: var(--color-on-dark-muted); }
.rg-card.rg-card--dark .prose strong { color: #fff; }
.rg-card.rg-card--risk .prose { color: var(--color-on-dark-muted); }
.credits__list li { line-height: 1.9; }
.credits__list li { display: flex; flex-wrap: wrap; gap: 0 6px; }
.doc__sec .prose, .rg-card .prose { overflow-wrap: break-word; hyphens: auto; }
.toc__list a, .doc__h, .faq__gh, .acc__btn, .icard h3, .h2, .h3, .page-head h1 { overflow-wrap: break-word; hyphens: auto; }
@media (min-width: 600px) and (max-width: 1000px) { .ph-chips { display: grid; grid-template-columns: repeat(2, max-content); } }
.ilist .link { position: relative; }
.ilist .link::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 100%; min-height: 24px; }
