/* Hydra theme family: atlas (Nov 2026). Stacked masthead: a white row with the logo and an 18+ note, then a full-width
   coloured menu bar with the pillars centred (drop-downs on desktop; on phones the pillars wrap as pills, always visible).
   Articles open with a tinted title band (trail, H1, credit line), then a centred reading sheet: standfirst, the Top 10,
   a two-column "on this page" index, the text, section cards and "keep reading" links. Home: gradient hero, Top 10,
   section cards. Light footer, centred. Re-skin per site by changing ONLY the variables in :root, using the variation
   printed by tools/assign_theme.py (a kept home page's own colours win). Everything else stays identical. */
:root {
  --at-brand:      #1a1a1a;   /* menu bar, buttons, index numbers (role brand) */
  --at-brand-2:    #a85a00;   /* hover, drop-down heads (role brand_dark) */
  --at-ink:        #1a1a1a;   /* logo, title band text, hero gradient start (role ink) */
  --at-link:       #a85a00;   /* links (role link) */
  --at-accent:     #f7a21b;   /* second accent: rules, pill borders (role accent2) */
  --at-bg:         #1a1a1a;   /* page background (role bg) */
  --at-card:       #ffffff;   /* reading sheet (role card) */
  --at-wash:       #fff3df;   /* title band, index, notes (role alt) */
  --at-text:       #2b2b2b;
  --at-muted:      #686868;
  --at-line:       #e6dccb;
  --at-font-head:  'Montserrat', sans-serif;
  --at-font-body:  'Merriweather', serif;
  --at-r:          18px;      /* corner radius */
  --at-s:          0.9;         /* spacing scale */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--at-bg); color: var(--at-text); font-family: var(--at-font-body); font-size: 17px; line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: var(--at-link); }
a:hover { color: var(--at-brand-2); }
h1, h2, h3, h4 { font-family: var(--at-font-head); color: var(--at-ink); line-height: 1.25; font-weight: 800; }

/* ---------------------------------------------------------------- masthead: logo row, then the menu bar */
.at-mast { background: var(--at-card); }
.at-mast-in { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.at-logo { display: inline-flex; color: var(--at-ink); text-decoration: none; font-family: var(--at-font-head); font-weight: 900; font-size: 26px; }
.at-logo svg { display: block; height: 46px; width: auto; }
.at-logo-a { fill: var(--at-ink); }
.at-logo-b { fill: var(--at-brand); }
.at-age { font-size: 13px; color: var(--at-muted); border: 1px solid var(--at-line); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.at-nav { background: var(--at-brand); box-shadow: 0 2px 0 var(--at-ink); }
.at-nav-in { max-width: 1120px; margin: 0 auto; padding: 0 12px; display: flex; justify-content: center; flex-wrap: wrap; }
.at-item { position: relative; }
.at-item > a { display: block; padding: 14px 22px; color: #fff; text-decoration: none; font-family: var(--at-font-head); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .05em; }
.at-item > a:hover, .at-item:focus-within > a { background: var(--at-brand-2); color: #fff; }
.at-item > a[aria-current="page"] { background: var(--at-ink); }
/* bestcasino.fr: on phones the 8 pillars sit on one scrolling row (launch 1 Dec 2026) */
@media (max-width: 760px) {
  .at-nav-in { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .at-nav-in::-webkit-scrollbar { display: none; }
  .at-item { flex: 0 0 auto; }
}
/* bestcasino.fr: 8 pillars on one row from 1100 px (launch 1 Dec 2026) */
@media (min-width: 761px) {
  .at-nav-in { max-width: 1240px; padding: 0 8px; }
  .at-item > a { padding: 14px 10px; font-size: 13px; letter-spacing: .02em; }
}
.at-sub { display: none; position: absolute; left: 50%; transform: translateX(-50%); top: 100%; min-width: 240px; padding: 10px; background: var(--at-card); border-radius: 0 0 var(--at-r) var(--at-r); box-shadow: 0 12px 28px rgba(30,20,60,.2); z-index: 20; }
.at-dd:hover > .at-sub, .at-dd:focus-within > .at-sub { display: block; }
.at-sub a { display: block; padding: 8px 12px; color: var(--at-text); text-decoration: none; font-size: 15px; border-radius: calc(var(--at-r) / 2); }
.at-sub a:hover, .at-sub a:focus { background: var(--at-wash); color: var(--at-ink); }
@media (max-width: 760px) {
  .at-mast-in { padding: 10px 14px; }
  .at-logo svg { height: 36px; }
  .at-age { font-size: 11px; padding: 3px 9px; }
  .at-nav-in { justify-content: flex-start; gap: 6px; padding: 8px 10px; }
  .at-item > a { padding: 4px 9px; font-size: 12px; letter-spacing: .02em; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; }
  .at-item > a[aria-current="page"] { border-color: #fff; }
  .at-dd:hover > .at-sub, .at-dd:focus-within > .at-sub { display: none; }
}

/* ---------------------------------------------------------------- article: title band, reading sheet */
.at-main { display: block; }
.at-band { background: var(--at-wash); border-bottom: 1px solid var(--at-line); text-align: center; padding: calc(30px * var(--at-s)) 20px calc(64px * var(--at-s)); }
.at-trail { font-size: 14px; color: var(--at-muted); margin: 0 0 12px; }
.at-trail > * + *::before { content: "›"; margin: 0 8px; color: var(--at-accent); }
.at-trail a { color: var(--at-muted); text-decoration: none; }
.at-trail a:hover { text-decoration: underline; }
.at-trail strong { font-weight: 600; color: var(--at-text); }
.at-band h1 { max-width: 880px; margin: 0 auto 12px; font-size: clamp(28px, 4vw, 42px); }
.at-credit { font-size: 14px; color: var(--at-muted); }
.at-credit span + span::before { content: "·"; margin: 0 8px; color: var(--at-accent); }
.at-sheet { max-width: 900px; margin: calc(-40px * var(--at-s)) auto 0; background: var(--at-card); border-radius: var(--at-r); padding: calc(34px * var(--at-s)) clamp(16px, 5vw, 56px) calc(40px * var(--at-s)); box-shadow: 0 8px 30px rgba(40,20,80,.08); position: relative; }
.at-standfirst { font-size: 19px; line-height: 1.6; color: var(--at-text); margin: 0 0 calc(24px * var(--at-s)); padding-bottom: 20px; border-bottom: 3px solid var(--at-accent); }
.at-offers { margin: 0 0 calc(30px * var(--at-s)); }
.at-offers-h { font-size: 28px; text-align: center; margin: 0 0 16px; }

/* ---------------------------------------------------------------- "on this page": two-column index box */
.at-index { background: var(--at-wash); border-radius: var(--at-r); padding: 18px 22px; margin: 0 0 32px; }
.at-index-t { display: block; font-family: var(--at-font-head); font-weight: 800; color: var(--at-ink); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.at-index-l { margin: 0; padding: 0; list-style: none; columns: 2 260px; column-gap: 28px; counter-reset: ati; }
.at-index-l li { break-inside: avoid; counter-increment: ati; padding: 4px 0 4px 32px; position: relative; font-size: 15px; line-height: 1.45; }
.at-index-l li::before { content: counter(ati); position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--at-brand); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.at-index-l a { text-decoration: none; color: var(--at-text); }
.at-index-l a:hover { color: var(--at-link); text-decoration: underline; }
.at-index:has(.at-index-l:empty) { display: none; }

/* ---------------------------------------------------------------- body text */
.at-copy h2 { font-size: clamp(24px, 3vw, 30px); margin: 1.7em 0 .6em; scroll-margin-top: 16px; }
.at-copy h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--at-brand); margin-top: 10px; }
.at-copy > h2:first-child { margin-top: 0; }
.at-copy h3 { font-size: 21px; margin: 1.4em 0 .5em; }
.at-copy h4 { font-size: 18px; }
.at-copy p { margin: 0 0 1.1em; }
.at-copy ul, .at-copy ol { margin: 0 0 1.1em; padding-left: 1.5em; }
.at-copy li { margin: 0 0 8px; }
.at-copy li::marker { color: var(--at-accent); }
.at-copy figure { margin: 0 0 22px; text-align: center; }
.at-copy figcaption { font-size: 14px; color: var(--at-muted); }
.at-copy img { border-radius: var(--at-r); }
.at-copy blockquote { margin: 0 0 1.1em; padding: 14px 20px; background: var(--at-wash); border-radius: var(--at-r); }
.at-grid { overflow-x: auto; margin: 24px 0; border: 1px solid var(--at-line); border-radius: var(--at-r); }
.at-grid table { width: 100%; border-collapse: collapse; font-size: 15px; }
.at-grid th { background: var(--at-wash); color: var(--at-ink); text-align: left; padding: 11px 14px; border-bottom: 2px solid var(--at-accent); }
.at-grid td { padding: 11px 14px; border-top: 1px solid var(--at-line); vertical-align: top; }
.at-fine { font-size: 14px; color: var(--at-muted); }
.at-box { background: var(--at-wash); border-radius: var(--at-r); padding: 18px 22px 6px; margin: 0 0 1.3em; border: 1px dashed var(--at-accent); }
.at-steps { counter-reset: ats; list-style: none; padding-left: 0 !important; }
.at-steps > li { counter-increment: ats; position: relative; padding-left: 48px; min-height: 34px; }
.at-steps > li::before { content: counter(ats); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--at-brand); color: var(--at-brand); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.at-faq { margin: 0 0 1.2em; }
.at-ask { background: var(--at-wash); border-radius: var(--at-r); margin: 0 0 10px; padding: 0 18px; }
.at-ask > summary { cursor: pointer; padding: 14px 30px 14px 0; font-weight: 700; color: var(--at-ink); position: relative; list-style: none; }
.at-ask > summary::-webkit-details-marker { display: none; }
.at-ask > summary::after { content: "›"; position: absolute; right: 4px; top: 8px; font-size: 26px; color: var(--at-brand); transform: rotate(90deg); }
.at-ask[open] > summary::after { transform: rotate(-90deg); }
.at-ask[open] { padding-bottom: 6px; }
.at-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 1.3em; }
.at-duo > div { border-radius: var(--at-r); padding: 14px 18px 4px; background: var(--at-wash); }
.at-duo > div > p:first-child { margin: 0 0 6px; font-family: var(--at-font-head); font-size: 19px; }
.at-duo ul { list-style: none; padding-left: 0 !important; }
.at-plus li::before { content: "✓ "; color: #2e7d32; font-weight: 700; }
.at-minus li::before { content: "✕ "; color: #c62828; font-weight: 700; }
.at-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 8px 0 26px; }
.at-tile { background: var(--at-wash); border-radius: var(--at-r); padding: 16px; text-align: center; }
.at-tile img { width: 88px; height: 88px; object-fit: contain; }
.at-tile h3 { margin: 6px 0; font-size: 19px; }
.at-tile ul { list-style: none; padding-left: 0 !important; }
.at-go, .at-cta { display: inline-block; padding: 12px 26px; border-radius: 999px; background: var(--at-brand); color: #fff !important; font-family: var(--at-font-head); font-weight: 800; text-decoration: none; letter-spacing: .02em; }
.at-go:hover, .at-cta:hover { background: var(--at-brand-2); }
@media (max-width: 599px) {
  body { font-size: 16px; }
  .at-duo { grid-template-columns: 1fr; }
  .at-band { padding: 14px 14px 46px; }
  .at-trail { font-size: 13px; margin-bottom: 6px; }
  .at-credit { font-size: 13px; }
  .at-band h1 { font-size: 27px; }
  .at-sheet { margin: -34px 10px 0; padding: 22px 16px 28px; }
  .at-standfirst { font-size: 16.5px; padding-bottom: 14px; margin-bottom: 18px; }
  .at-index { padding: 14px 16px; }
}

/* ---------------------------------------------------------------- after the text: section cards, keep reading, author, sources */
.at-sections, .at-next, .at-bio, .at-refs { margin: 34px 0 0; }
.at-sections-t, .at-next-t { display: block; font-family: var(--at-font-head); font-weight: 800; color: var(--at-ink); font-size: 20px; margin: 0 0 12px; }
.at-sections ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.at-sections li a { display: flex; align-items: center; min-height: 64px; height: 100%; padding: 12px 16px; border: 1px solid var(--at-line); border-radius: var(--at-r); text-decoration: none; color: var(--at-ink); font-weight: 700; background: var(--at-card); box-shadow: 0 2px 0 var(--at-line); }
.at-sections li a:hover { border-color: var(--at-brand); color: var(--at-brand); }
.at-next { padding: 18px 22px; border-radius: var(--at-r); border: 2px solid var(--at-wash); }
.at-next ul { margin: 0; padding-left: 1.2em; }
.at-next li { margin: 0 0 6px; }
.at-bio { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 16px; border-top: 1px solid var(--at-line); }
.at-bio img { border-radius: 50%; }
.at-bio p { margin: 0; }
.at-bio-r { color: var(--at-muted); font-size: 14px; }
.at-refs { border-top: 1px solid var(--at-line); padding-top: 12px; font-size: 15px; color: var(--at-muted); }
.at-refs summary { cursor: pointer; font-weight: 700; color: var(--at-ink); }
.at-refs ol { margin: 8px 0 0; padding-left: 1.3em; }

/* ---------------------------------------------------------------- home: gradient hero (home page only) */
.at-hero { background: linear-gradient(120deg, var(--at-ink), var(--at-brand)); color: #fff; padding: calc(52px * var(--at-s)) 20px calc(84px * var(--at-s)); }
.at-hero-in { max-width: 900px; margin: 0 auto; }
.at-hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 48px); margin: 0 0 10px; }
.at-hero .at-credit { color: rgba(255,255,255,.8); margin: 0 0 18px; }
.at-hero .at-credit span + span::before { color: #fff; }
.at-hero .at-standfirst { color: #fff; border-bottom: 0; padding: 0; margin: 0 0 24px; font-size: 18px; }
.at-hero .at-go { background: #fff; color: var(--at-ink) !important; }
.at-hero .at-go:hover { background: var(--at-wash); }
.at-front .at-sheet { margin-top: calc(-52px * var(--at-s)); }
@media (max-width: 599px) {
  .at-hero { padding: 26px 16px 60px; }
  .at-hero h1 { font-size: 28px; }
  .at-hero .at-standfirst { font-size: 16px; margin-bottom: 18px; }
  .at-front .at-sheet { margin-top: -40px; }
}

/* ---------------------------------------------------------------- footer: light, centred */
.at-foot { margin-top: 56px; background: var(--at-card); border-top: 4px solid var(--at-brand); text-align: center; padding: 34px 20px 28px; font-size: 15px; color: var(--at-muted); }
.at-foot-logo { display: inline-flex; color: var(--at-ink); text-decoration: none; }
.at-foot-logo svg { height: 40px; width: auto; }
.at-foot-nav { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 18px 0 8px; }
.at-foot-nav a { color: var(--at-ink); font-weight: 700; text-decoration: none; }
.at-foot-nav a:hover { text-decoration: underline; }
.at-foot-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 0 0 10px; }
.at-foot-legal:empty { display: none; }
.at-foot-legal a { color: var(--at-muted); }
.at-foot-d { max-width: 760px; margin: 12px auto 0; font-size: 13.5px; line-height: 1.6; }
.at-bio dl, .at-bio dd { margin: 0; }
.at-band-img { border-radius: 50%; display: block; margin: 0 auto 10px; }
