/*
 * MrBonus site stylesheet (served as /assets/site.css).
 * Moved from the Next site (src/app/(frontend)/styles: tokens, base, layout, components) unchanged,
 * with the self-hosted fonts first. Edit this file; the ?v= version in the pages changes with its content.
 */

/* ===================== fonts ===================== */
/* Fonts: Lexend and Noto Sans, self-hosted (the files and metrics next/font produced for the Next site). */
@font-face{font-family:Lexend;font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/lexend-vietnamese.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:Lexend;font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/lexend-latin-ext.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Lexend;font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/lexend-latin.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Lexend Fallback;src:local(Arial);ascent-override:90.98%;descent-override:22.74%;line-gap-override:0.0%;size-adjust:109.91%}
@font-face{font-family:Noto Sans;font-style:normal;font-weight:100 900;font-stretch:100%;font-display:swap;src:url(fonts/noto-sans-vietnamese.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:Noto Sans;font-style:normal;font-weight:100 900;font-stretch:100%;font-display:swap;src:url(fonts/noto-sans-latin-ext.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Noto Sans;font-style:normal;font-weight:100 900;font-stretch:100%;font-display:swap;src:url(fonts/noto-sans-latin.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Noto Sans Fallback;src:local(Arial);ascent-override:100.54%;descent-override:27.56%;line-gap-override:0.0%;size-adjust:106.33%}
:root{--font-lexend:"Lexend", "Lexend Fallback";--font-noto:"Noto Sans", "Noto Sans Fallback"}

/* ===================== tokens ===================== */
/* MrBonus design tokens — see DESIGN_SYSTEM.md.
   Every colour comes from the live mrbonus.it theme (Elementor): navy #111827, red #E50914,
   panel grey #EBEBEB, slate #324A6D, accent #FF3B3B, text #333. Neutrals are true greys, not blue-greys. */
:root {
  /* navy (mrbonus.it nav bar and title boxes) */
  --ink-950: #0b101b;
  --ink-900: #111827;
  --ink-800: #1b2333;
  --ink-700: #2a3344;

  /* slate (mrbonus.it icon colour) */
  --slate-600: #324a6d;
  --slate-50: #eef1f5;

  /* neutrals */
  --text: #111827;
  --text-body: #333333;
  --text-muted: #5f5f5f;
  --line: #e2e2e2;
  --line-strong: #cfcfcf;
  --surface: #ffffff;
  --surface-2: #f6f6f6;
  --surface-3: #ebebeb; /* mrbonus.it panel grey */

  /* brand red */
  --red-500: #e50914; /* mrbonus.it buttons, active menu */
  --red-600: #c8070f;
  --red-800: #8f050b;
  --red-accent: #ff3b3b; /* mrbonus.it global accent, only on navy */
  --red-50: #fff0f0;

  /* support (functional only) */
  --green-700: #15703b;
  --green-50: #ecfdf3;
  --amber-50: #fff8e6;
  --amber-800: #7a4a00;

  /* semantic */
  --bg: var(--surface);
  --link: var(--red-600);
  --link-hover: var(--red-800);
  --focus: var(--slate-600);
  --cta-bg: var(--red-500);
  --cta-bg-hover: var(--red-600);
  --cta-edge: var(--red-800);
  --cta-text: #ffffff;

  /* card suits drawn from the logo (hearts, diamonds, spades, clubs), used as a faint texture */
  --suits: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='%23111827'%3E%3Cpath transform='translate(18 20) rotate(-12 12 12)' d='M12 21s-7.5-4.6-9.5-9.2C1 8.2 3.2 4.5 6.8 4.5c2.1 0 3.9 1.2 5.2 3 1.3-1.8 3.1-3 5.2-3 3.6 0 5.8 3.7 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3Cpath transform='translate(128 42) rotate(14 12 12)' d='M12 2 20 12 12 22 4 12z'/%3E%3Cpath transform='translate(64 128) rotate(8 12 12)' d='M12 2s-8 6.2-8 11a4.2 4.2 0 0 0 7 3.1L10 21h4l-1-4.9A4.2 4.2 0 0 0 20 13c0-4.8-8-11-8-11z'/%3E%3Cg transform='translate(172 150) rotate(-10 12 12)'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Ccircle cx='7' cy='13' r='4'/%3E%3Ccircle cx='17' cy='13' r='4'/%3E%3Cpath d='M11 13h2l1 8h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");

  /* type */
  --font-display: var(--font-lexend), 'Lexend', system-ui, sans-serif;
  --font-body: var(--font-noto), 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem; /* 13 */
  --fs-sm: 0.875rem; /* 14 */
  --fs-base: 1.0625rem; /* 17 */
  --fs-md: 1.125rem; /* 18 */
  --fs-lg: 1.25rem; /* 20 */
  --fs-h4: 1.125rem;
  --fs-h3: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  --fs-h1: clamp(1.875rem, 1.25rem + 2.4vw, 2.875rem);
  --fs-display: clamp(1.875rem, 1.3rem + 2.3vw, 2.875rem);
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* space (4px grid) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;

  /* layout */
  --container: 1200px;
  --container-wide: 1320px;
  --prose: 44rem; /* ~70ch at 17px */
  --sidebar: 21rem;
  --gutter: clamp(1rem, 0.6rem + 1.8vw, 2rem);
  --header-h: 64px;

  /* shape */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgb(17 24 39 / 0.06), 0 1px 3px rgb(17 24 39 / 0.08);
  --shadow-2: 0 14px 30px -14px rgb(17 24 39 / 0.3);
  --shadow-3: 0 22px 40px -18px rgb(17 24 39 / 0.38);

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 120ms;
  --t-base: 200ms;
  --t-slow: 320ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 0ms;
    --t-base: 0ms;
    --t-slow: 0ms;
  }
}

/* ===================== base ===================== */
/* Reset + base typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 64px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 650;
  line-height: var(--lh-snug);
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
}
h3 {
  font-size: var(--fs-h3);
}
h4,
h5,
h6 {
  font-size: var(--fs-h4);
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.on-dark :focus-visible {
  outline-color: #fff;
}
strong,
b {
  font-weight: 700;
  color: var(--text);
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s-8) 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
::selection {
  background: rgb(229 9 20 / 0.16);
  color: var(--ink-900);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  background: var(--ink-900);
  color: #fff;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: var(--s-3);
  color: #fff;
}

/* ---------------- Prose (editorial text) ---------------- */
.prose {
  max-width: var(--prose);
  color: var(--text-body);
}
.prose > * + * {
  margin-top: 1.05em;
}
.prose h2 {
  margin-top: 2.1em;
  padding-top: 0.1em;
  scroll-margin-top: calc(var(--header-h) + 72px);
}
.prose h3 {
  margin-top: 1.7em;
  scroll-margin-top: calc(var(--header-h) + 72px);
}
.prose h4,
.prose h5,
.prose h6 {
  margin-top: 1.4em;
}
.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
  margin-top: 0.6em;
}
.prose > :first-child {
  margin-top: 0;
}
.prose ul,
.prose ol {
  padding-left: 1.35em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose li::marker {
  color: var(--red-500);
}
.prose ol li::marker {
  font-weight: 700;
  font-family: var(--font-display);
}
.prose li.li-nested {
  list-style: none;
}
.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: var(--s-5) var(--s-6);
  border-left: 4px solid var(--ink-900);
  background: var(--surface-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--text);
  font-size: var(--fs-md);
}
.prose code {
  font-size: 0.9em;
  background: var(--surface-3);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.prose .rt-figure img,
.prose .rt-gallery img {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.prose figcaption {
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.prose .rt-embed iframe {
  width: 100%;
  border-radius: var(--r-md);
}
.rt-gallery {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.rt-gallery figure {
  margin: 0;
}

/* Tables: scroll inside their own box, never the page */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.table-wrap:focus-visible {
  outline-offset: 3px;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
  min-width: 34rem;
}
.table-wrap th,
.table-wrap td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.table-wrap thead th {
  background: var(--ink-900);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.table-wrap thead th strong {
  color: #fff;
}
.table-wrap tbody tr:nth-child(even) {
  background: var(--surface-2);
}
.table-wrap tbody tr:last-child > * {
  border-bottom: 0;
}
.table-wrap tbody th {
  color: var(--text);
  font-weight: 700;
}
.table-wrap td > p + p {
  margin-top: 0.4em;
}

.lead-text > * + * {
  margin-top: 0.8em;
}

/* ===================== layout ===================== */
/* Page chrome: containers, header, footer, page grids */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container-wide {
  width: min(100% - 2 * var(--gutter), var(--container-wide));
  margin-inline: auto;
}

/* ---------- Top notice bar (18+ / ADM) ---------- */
/* light and centred, as on mrbonus.it: a legal notice, not a design element */
.topbar {
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  line-height: 1.4;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 32px;
  padding-block: 4px;
  text-align: center;
}
.topbar img {
  height: 20px;
  width: auto;
}
.topbar p {
  margin: 0;
}

/* ---------- Reading progress: red bar above the sticky header ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 4px;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--red-600), var(--red-500) 60%, var(--red-accent));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 6px 18px -16px rgb(17 24 39 / 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand img {
  height: 46px;
  width: auto;
}
.nav-desktop {
  margin-left: auto;
}
.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
/* the mrbonus.it menu marks the current item with a red bar under it: kept, drawn on hover too */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-sm);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.15rem;
  height: 3px;
  border-radius: 3px;
  background: var(--red-500);
  transform: scaleX(0);
  transition: transform var(--t-base) var(--ease);
}
.nav-link:hover {
  color: var(--ink-900);
}
.nav-link:hover::after,
.nav-link[aria-current='page']::after {
  transform: scaleX(1);
}
.nav-link[aria-current='page'] {
  font-weight: 600;
}
.nav-link.is-cta {
  background: var(--cta-bg);
  color: var(--cta-text);
  padding-inline: 1rem;
  margin-left: var(--s-2);
  border-radius: var(--r-md);
  box-shadow: 0 3px 0 var(--cta-edge);
}
.nav-link.is-cta::after {
  display: none;
}
.nav-link.is-cta:hover {
  background: var(--cta-bg-hover);
  color: #fff;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  color: var(--ink-900);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--surface-2);
  color: var(--ink-900);
}

/* mobile menu: <details> disclosure, works without JavaScript */
.nav-mobile {
  display: none;
}
.nav-mobile > summary {
  list-style: none;
}
.nav-mobile > summary::-webkit-details-marker {
  display: none;
}
.nav-mobile .icon-close {
  display: none;
}
.nav-mobile[open] .icon-open {
  display: none;
}
.nav-mobile[open] .icon-close {
  display: block;
}
.nav-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  padding: var(--s-3) var(--gutter) var(--s-6);
  max-height: calc(100dvh - var(--header-h) - 34px);
  overflow-y: auto;
}
.nav-mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-mobile-panel li + li {
  border-top: 1px solid var(--line);
}
.nav-mobile-panel .nav-link {
  display: flex;
  width: 100%;
  padding: 0.95rem 0.25rem;
  font-size: 1.0625rem;
}
.nav-mobile-panel .nav-link::after {
  left: auto;
  right: 0.25rem;
  top: 50%;
  bottom: auto;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 2px;
  transform: rotate(45deg) scale(0);
}
.nav-mobile-panel .nav-link[aria-current='page']::after {
  transform: rotate(45deg) scale(1);
}
.nav-mobile-panel .nav-link.is-cta {
  justify-content: center;
  margin: var(--s-4) 0 0;
  padding: 0.9rem;
}
@media (prefers-reduced-motion: no-preference) {
  .nav-mobile[open] .nav-mobile-panel {
    animation: drop-in var(--t-slow) var(--ease);
  }
}
@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1099px) {
  .nav-desktop {
    display: none;
  }
  .nav-mobile {
    display: block;
  }
  .header-actions {
    margin-left: auto;
  }
  .brand img {
    height: 40px;
  }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-sm);
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  min-width: 0;
}
.breadcrumb li + li::before {
  content: '';
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--link);
  text-decoration: underline;
}
.breadcrumb [aria-current='page'] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 40ch;
}
.breadcrumb li:last-child {
  color: var(--text);
}

/* ---------- Page body grid: content + sidebar ---------- */
.page-body {
  padding-block: var(--s-10) var(--s-16);
}
.with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-12);
  align-items: start;
}
@media (min-width: 1100px) {
  .with-sidebar {
    grid-template-columns: minmax(0, 1fr) var(--sidebar);
  }
}
.main-col > * + * {
  margin-top: var(--s-12);
}
.sidebar > * + *,
.sidebar-sticky > * + * {
  margin-top: var(--s-6);
}
/* the sidebar column runs the full height of the page body, so the comparator panel
   stays in view on the right while the content scrolls (every page with the sidebar) */
@media (min-width: 1100px) {
  .sidebar {
    align-self: stretch;
  }
  .sidebar-sticky {
    position: sticky;
    top: calc(var(--header-h) + var(--s-6));
    max-height: calc(100vh - var(--header-h) - var(--s-10));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  /* hub pages: the navy index strip (about 50px) is sticky under the header too */
  body:has(.index-bar) .sidebar-sticky {
    top: calc(var(--header-h) + 50px + var(--s-6));
    max-height: calc(100vh - var(--header-h) - 50px - var(--s-10));
  }
}

/* article: [TOC] | text | [sidebar] — TOC column only when there is room, otherwise a <details> TOC in the text */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-10);
  align-items: start;
}
/* grid items default to min-width:auto: a wide table would stretch the column past the viewport */
.article-grid > *,
.with-sidebar > * {
  min-width: 0;
}
.toc-col {
  display: none;
}
@media (min-width: 1100px) {
  .article-grid.has-aside {
    grid-template-columns: minmax(0, var(--prose)) minmax(17rem, 1fr);
  }
  .article-grid.has-toc:not(.has-aside) {
    grid-template-columns: 14rem minmax(0, var(--prose));
  }
  .article-grid.has-toc:not(.has-aside) > .toc-col {
    display: block;
  }
  .article-grid.has-toc:not(.has-aside) details.toc.mobile-only {
    display: none;
  }
}
@media (min-width: 1380px) {
  .article-grid.has-toc.has-aside {
    grid-template-columns: 13.5rem minmax(0, var(--prose)) minmax(18rem, 1fr);
  }
  .article-grid.has-toc.has-aside > .toc-col {
    display: block;
  }
  .article-grid.has-toc.has-aside details.toc.mobile-only {
    display: none;
  }
}
.article-grid > .toc-col {
  position: sticky;
  top: calc(var(--header-h) + var(--s-6));
  max-height: calc(100vh - var(--header-h) - var(--s-10));
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--ink-900);
  color: #c4c7cd;
  font-size: 0.9375rem;
  margin-top: var(--s-16);
  border-top: 4px solid var(--red-500);
}
/* the logo's card suits, barely visible on the navy */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--suits) 0 0 / 260px;
  filter: invert(1);
  opacity: 0.035;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  gap: var(--s-10);
  padding-block: var(--s-16) var(--s-10);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.footer-brand img {
  height: 64px;
  width: auto;
  background: #fff;
  border-radius: var(--r-md);
  padding: 6px 10px;
  margin-bottom: var(--s-4);
}
.site-footer h2 {
  display: flex;
  align-items: center;
  gap: 0.55em;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--s-4);
  letter-spacing: 0.01em;
}
.site-footer h2::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--red-500);
  transform: rotate(45deg);
}
.site-footer h2 a {
  color: inherit;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li + li {
  margin-top: var(--s-2);
}
.site-footer a {
  color: #e6e7ea;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-rg {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-block: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-8);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
}
.footer-rg .badges {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.footer-rg .badges img {
  height: 30px;
  width: auto;
  background: #fff;
  border-radius: 6px;
  padding: 3px 6px;
}
.footer-legal {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-block: var(--s-6) var(--s-8);
  font-size: var(--fs-xs);
  color: #9a9ea6;
}

/* ===================== components ===================== */
/* ---------------- Buttons ----------------
   Tactile "chip" buttons: a darker lower edge that the button presses into on click. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(2px);
}
.btn-primary {
  background: var(--cta-bg);
  color: var(--cta-text);
  box-shadow: 0 3px 0 var(--cta-edge);
}
.btn-primary:hover {
  background: var(--cta-bg-hover);
  color: #fff;
}
.btn-primary:active {
  box-shadow: 0 1px 0 var(--cta-edge);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink-900);
  border-color: var(--line-strong);
  box-shadow: 0 3px 0 var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--ink-900);
  color: var(--ink-900);
  box-shadow: 0 3px 0 var(--ink-900);
}
.btn-secondary:active {
  box-shadow: 0 1px 0 var(--ink-900);
}
.btn-sm {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9375rem;
}
.btn-block {
  width: 100%;
}
.btn .arrow {
  transition: transform var(--t-base) var(--ease);
}
.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------------- Stamp & eyebrow ---------------- */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.35rem 0.85rem 0.35rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  box-shadow: var(--shadow-1);
}
.stamp::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--red-500);
  transform: rotate(45deg);
}
.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: var(--s-2);
}

/* ---------------- Hero (home, hubs, trust pages, reviews) ----------------
   mrbonus.it panel grey, the logo's card suits as a faint texture fading in from the right. */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--surface-3);
  color: var(--text-body);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--suits) 0 0 / 220px;
  opacity: 0.06;
  -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000 75%);
  mask-image: linear-gradient(100deg, transparent 25%, #000 75%);
  pointer-events: none;
}
/* inner pages: the red die from the logo, thrown on the right of the table */
@media (min-width: 1000px) {
  .hero:not(.hero-home)::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 50%;
    right: max(var(--gutter), calc((100% - var(--container-wide)) / 2 + 3rem));
    width: 160px;
    height: 160px;
    margin-top: -80px;
    border-radius: 34px;
    background:
      radial-gradient(circle at 26% 26%, #fff 0 11px, transparent 12px),
      radial-gradient(circle at 74% 26%, #fff 0 11px, transparent 12px),
      radial-gradient(circle at 50% 50%, #fff 0 11px, transparent 12px),
      radial-gradient(circle at 26% 74%, #fff 0 11px, transparent 12px),
      radial-gradient(circle at 74% 74%, #fff 0 11px, transparent 12px),
      var(--red-500);
    box-shadow: inset -10px -14px 0 rgb(0 0 0 / 0.18), 0 30px 40px -24px rgb(17 24 39 / 0.6);
    transform: rotate(14deg);
    pointer-events: none;
  }
}
.hero-inner {
  padding-block: var(--s-10) var(--s-12);
  display: grid;
  gap: var(--s-8);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-inner.has-aside {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: var(--s-12);
  }
}
.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.42;
  max-width: 24ch;
}
/* the mrbonus.it navy title box, re-cut as a band that follows every line of the heading */
.title-band {
  background: var(--ink-900);
  color: #fff;
  padding: 0.02em 0.3em 0.07em;
  border-radius: 0.18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero .lead,
.hero .lead p {
  color: var(--text-body);
  font-size: var(--fs-md);
  line-height: 1.6;
}
.hero .lead {
  max-width: 46rem;
}
.hero-stack > * + * {
  margin-top: var(--s-5);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* home: the hub links as playing cards dealt on the table */
.hub-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5) var(--s-4);
}
.hub-cards li:nth-child(1) {
  --tilt: -2.5deg;
}
.hub-cards li:nth-child(2) {
  --tilt: 2deg;
  --drop: 14px;
}
.hub-cards li:nth-child(3) {
  --tilt: 1.5deg;
}
.hub-cards li:nth-child(4) {
  --tilt: -1.5deg;
  --drop: 14px;
}
.play-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 10rem;
  padding: var(--s-4) 2.6rem var(--s-4) var(--s-5);
  border-radius: 14px;
  background: #fff;
  color: var(--ink-900);
  text-decoration: none;
  /* white margin + hairline frame, like a real card */
  box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px var(--line), 0 1px 0 rgb(17 24 39 / 0.06), 0 14px 24px -16px rgb(17 24 39 / 0.55);
  transform: translateY(var(--drop, 0)) rotate(var(--tilt, 0deg));
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.play-card:hover {
  color: var(--ink-900);
  transform: translateY(calc(var(--drop, 0px) - 6px)) rotate(0deg);
  box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px var(--line-strong), 0 1px 0 rgb(17 24 39 / 0.06), 0 22px 30px -16px rgb(17 24 39 / 0.6);
  z-index: 1;
}
.pc-index {
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  justify-items: center;
  gap: 2px;
  line-height: 1;
  color: var(--ink-900);
}
.pc-index b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: inherit;
  letter-spacing: -0.02em;
}
.pc-index.is-flip {
  top: auto;
  left: auto;
  bottom: 14px;
  right: 14px;
  transform: rotate(180deg);
}
.pc-index.is-flip b {
  font-size: 1rem;
}
.suit-hearts .pc-index,
.suit-diamonds .pc-index {
  color: var(--red-500);
}
/* the centre pip, faint so the label stays the focus */
.pc-pip {
  position: absolute;
  top: 18px;
  right: 22%;
  color: var(--ink-900);
  opacity: 0.07;
  transition: opacity var(--t-base) var(--ease), transform var(--t-slow) var(--ease);
}
.suit-hearts .pc-pip,
.suit-diamonds .pc-pip {
  color: var(--red-500);
  opacity: 0.12;
}
.play-card:hover .pc-pip {
  opacity: 0.42;
  transform: scale(1.08);
}
.pc-body {
  display: grid;
  gap: 2px;
}
.pc-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
}
.pc-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.pc-note .arrow {
  color: var(--red-500);
  transition: transform var(--t-base) var(--ease);
}
.play-card:hover .pc-note .arrow {
  transform: translateX(3px);
}

/* light page head (articles, legal pages, archives) */
.page-head {
  position: relative;
  isolation: isolate;
  padding-block: var(--s-8) var(--s-8);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--suits) 0 0 / 220px;
  opacity: 0.04;
  -webkit-mask-image: linear-gradient(100deg, transparent 45%, #000 90%);
  mask-image: linear-gradient(100deg, transparent 45%, #000 90%);
  pointer-events: none;
}
.page-head h1 {
  margin-top: var(--s-4);
  max-width: 30ch;
}
.page-head .lead {
  margin-top: var(--s-4);
  max-width: var(--prose);
  font-size: var(--fs-md);
}

/* ---------------- Byline & revision ---------------- */
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-5);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.byline .who {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--text);
}
.byline img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.byline a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.byline a:hover {
  text-decoration: underline;
}
.byline .sep {
  opacity: 0.4;
}
.revision {
  margin-top: var(--s-12);
  padding: var(--s-5) var(--s-6);
  border-left: 4px solid var(--ink-900);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--surface-2);
  font-size: var(--fs-sm);
  color: var(--text-body);
  max-width: var(--prose);
}
.revision dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--s-1) var(--s-4);
  margin: 0;
}
.revision dt {
  font-weight: 600;
  color: var(--text);
}
.revision dd {
  margin: 0;
}

/* ---------------- Section heading: the red die from the logo ---------------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-3) var(--s-6);
  margin-bottom: var(--s-6);
}
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.section-head h2::before {
  content: '';
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 28% 28%, #fff 0 2.6px, transparent 3.3px),
    radial-gradient(circle at 50% 50%, #fff 0 2.6px, transparent 3.3px),
    radial-gradient(circle at 72% 72%, #fff 0 2.6px, transparent 3.3px),
    var(--red-500);
  box-shadow: inset -2px -3px 0 rgb(0 0 0 / 0.2);
  transform: rotate(-10deg);
}
.section-head .more {
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
}
.section-head .more:hover {
  text-decoration: underline;
}

/* text blocks inside page layouts */
.block-text.variant-lead .prose {
  font-size: var(--fs-md);
  color: var(--text);
}
.block-text.variant-panel {
  background: var(--surface-3);
  border-radius: var(--r-lg);
  padding: var(--s-8);
}

/* ---------------- In-page index: navy strip like the mrbonus.it menu bar ---------------- */
.index-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: var(--ink-900);
  color: #fff;
}
.index-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  overflow-x: auto;
  scrollbar-width: none;
}
/* hints that the strip scrolls when the sections do not fit */
.index-bar .index-bar-inner {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent);
  padding-right: 3rem;
}
.index-bar-inner::-webkit-scrollbar {
  display: none;
}
.index-bar .label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-right: var(--s-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-accent);
}
.index-bar .label::after {
  content: '';
  width: 1px;
  height: 18px;
  margin-left: var(--s-3);
  background: rgb(255 255 255 / 0.2);
}
.index-bar ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.index-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding-inline: 0.8rem;
  color: #e6e7ea;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.index-link::after {
  content: '';
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--red-500);
  transform: scaleX(0);
  transition: transform var(--t-base) var(--ease);
}
.index-link:hover {
  color: #fff;
}
.index-link:hover::after {
  transform: scaleX(1);
}

/* pagination tiles (category archives) */
.chip {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--t-fast) var(--ease);
}
.chip:hover {
  border-color: var(--ink-900);
  color: var(--ink-900);
}

/* ---------------- TOC (articles) ---------------- */
.toc {
  font-size: var(--fs-sm);
}
.toc > summary,
.toc .toc-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
}
.toc ol {
  list-style: none;
  margin: var(--s-3) 0 0;
  padding: 0;
  border-left: 2px solid var(--line);
}
.toc li a {
  display: block;
  padding: 0.35rem 0 0.35rem 0.9rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.35;
}
.toc li.l3 a {
  padding-left: 1.7rem;
  font-size: var(--fs-xs);
}
.toc li a:hover {
  color: var(--text);
  border-left-color: var(--ink-900);
}
.toc li a[aria-current='true'] {
  color: var(--red-600);
  border-left-color: var(--red-500);
  font-weight: 600;
}
details.toc {
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  background: var(--surface-3);
}
details.toc > summary {
  cursor: pointer;
  list-style-position: inside;
}

/* ---------------- Cards ---------------- */
.card-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}
.card:focus-within {
  border-color: var(--focus);
}
.card-body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}
.card h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
}
.card h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.card:hover h3 a {
  color: var(--red-600);
}
/* whole card clickable through the title link */
.card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.card .meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: auto;
}
.card-media {
  aspect-ratio: 16 / 10;
  background: var(--surface-3);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.card:hover .card-media img {
  transform: scale(1.03);
}

/* review card: the welcome bonus as a small dashed coupon */
.review-card .card-body {
  gap: var(--s-4);
}
.review-card .top {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.logo-tile {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
}
.logo-tile img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
.review-card .bonus {
  display: flex;
  flex-direction: column;
  padding: var(--s-3) var(--s-4);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.review-card .bonus small {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 600;
}
.review-card .bonus b {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--red-500);
}
.review-card .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  position: relative;
  z-index: 1;
}
/* "Leggi la recensione" looks like a button, but the click reaches the card's title link
   underneath; only the operator CTA is a link of its own */
.review-card .actions {
  pointer-events: none;
}
.review-card .actions a {
  pointer-events: auto;
}
.card:hover .card-link-hint {
  border-color: var(--ink-900);
  box-shadow: 0 3px 0 var(--ink-900);
}

/* rating: red stars, the brand red rather than the usual gold */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  color: var(--text);
  font-size: var(--fs-sm);
}
.stars {
  --pct: 100%;
  position: relative;
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 1px;
  color: #d6d6d6;
}
.stars::before {
  content: '★★★★★';
}
.stars::after {
  content: '★★★★★';
  position: absolute;
  inset: 0;
  width: var(--pct);
  overflow: hidden;
  color: var(--red-500);
}

/* guide list (compact) */
.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-list li + li {
  border-top: 1px solid var(--line-strong);
}
.guide-list a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--s-3);
  align-items: center;
  padding-block: var(--s-3);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.guide-list img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.guide-list a:hover {
  color: var(--link);
}

/* ---------------- Sidebar panels ----------------
   The mrbonus.it grey box with its navy title, re-cut as a tab hanging from the top edge. */
.panel {
  background: var(--surface-3);
  border-radius: var(--r-lg);
  padding: 0 var(--s-5) var(--s-5);
}
.panel > h2 {
  display: table;
  margin: 0 0 var(--s-4);
  padding: 0.55rem 1rem 0.6rem;
  background: var(--ink-900);
  color: #fff;
  font-size: 1rem;
  line-height: 1.3;
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.panel > :first-child:not(h2) {
  margin-top: var(--s-5);
}
.top-bonus-list {
  display: grid;
  gap: var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.top-bonus-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.top-bonus-list li .btn {
  grid-column: 1 / -1;
}
.top-bonus-list .logo-tile {
  width: 64px;
  height: 48px;
  padding: 4px;
}
.top-bonus-list .name {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
}
.ad-disclosure {
  margin-top: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ---------------- Comparator ---------------- */
/* One compact card per offer, same <table> markup everywhere: operator | bonus sport | bonus casinò | CTA
   on a row, the conditions on a perforated band below (the ticket motif). The column headers stay for
   screen readers; each cell repeats its label (data-label) on screen. */
.comparator {
  container: comparator / inline-size;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.comparator-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-3) var(--s-5);
  background: var(--surface-3);
  font-size: var(--fs-sm);
  color: var(--text-body);
}
.comparator table,
.comparator tbody {
  display: block;
  width: 100%;
  border-collapse: collapse;
}
.comparator thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.comparator tbody tr {
  display: grid;
  /* fixed CTA column: every row has the same column widths, so the cards line up */
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) 10.5rem;
  gap: var(--s-2) var(--s-5);
  align-items: start;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
  transition: background var(--t-fast) var(--ease);
}
.comparator tbody tr:last-child {
  border-bottom: 0;
}
.comparator tbody tr:nth-child(even) {
  background: var(--surface-2);
}
.comparator tbody tr:hover {
  background: var(--red-50);
}
.comparator tbody th,
.comparator td {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: inherit;
  font-weight: 400;
  color: var(--text-body);
}
/* operator and CTA placed explicitly; bonuses fill row 1, the conditions flow onto row 2 */
.comparator .op-cell {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}
.comparator .cta-cell {
  grid-column: 4;
  grid-row: 1 / span 2;
  align-self: center;
  white-space: nowrap;
}
.comparator .cta-cell .btn {
  width: 100%;
  padding-inline: 0.75rem;
  font-size: var(--fs-sm);
}
.comparator td[data-label]::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 1px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.comparator .op {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  text-transform: capitalize;
}
.comparator .op .logo-tile {
  width: 64px;
  height: 40px;
  padding: 4px;
}
.comparator .op-verified {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
}
.comparator .bonus-val {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.comparator .bonus-note {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-muted);
}
.comparator .cond-cell {
  padding-top: var(--s-2);
  border-top: 1px dashed var(--line-strong);
  font-size: var(--fs-xs);
  line-height: 1.35;
}
/* small text, full-size target: at least 24 px (WCAG 2.5.8) and clear of the CTA above it */
.comparator .review-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-top: var(--s-1);
  font-size: 0.75rem;
  text-align: center;
}
.comparator-foot {
  padding: var(--s-3) var(--s-5);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}
/* narrow columns and phones: operator and CTA full width, bonuses and conditions two by two */
@container comparator (max-width: 640px) {
  .comparator tbody tr {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s-2) var(--s-3);
    padding: var(--s-3) var(--s-4);
  }
  .comparator .op-cell,
  .comparator .cta-cell {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .comparator .cta-cell {
    margin-top: var(--s-1);
  }
  /* conditions one per line, label beside the value */
  .comparator .cond-cell {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: var(--s-2);
    align-items: baseline;
  }
  .comparator .cond-cell::before {
    margin: 0;
  }
  .comparator .cond-cell + .cond-cell {
    padding-top: 0;
    border-top: 0;
  }
  .comparator .op .logo-tile {
    width: 56px;
    height: 34px;
  }
  .comparator-head,
  .comparator-foot {
    padding-inline: var(--s-4);
  }
}
/* compact variant (sidebar): one column, label beside the value, bonus headline only */
.comparator.compact {
  box-shadow: none;
  border: 0;
}
.comparator.compact tbody tr {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-1);
  padding: var(--s-3) var(--s-4);
}
.comparator.compact tbody tr:nth-child(even),
.comparator.compact tbody tr:hover {
  background: var(--surface);
}
.comparator.compact .op-cell,
.comparator.compact .cta-cell {
  grid-column: 1;
  grid-row: auto;
}
.comparator.compact .op-cell {
  margin-bottom: 2px;
}
.comparator.compact .op {
  gap: var(--s-2);
  font-size: 0.9375rem;
}
.comparator.compact .op .logo-tile {
  width: 52px;
  height: 30px;
  padding: 3px;
}
.comparator.compact td[data-label] {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: var(--s-2);
  align-items: baseline;
}
.comparator.compact td[data-label]::before {
  margin: 0;
}
.comparator.compact .bonus-val {
  font-size: var(--fs-xs);
}
.comparator.compact .cta-cell {
  margin-top: var(--s-2);
}
.comparator.compact .cta-cell .btn {
  width: 100%;
  min-height: 36px;
  padding-block: 0.35rem;
  font-size: var(--fs-sm);
}
.comparator.compact .review-link {
  margin-top: var(--s-1);
}
.comparator.compact .comparator-foot {
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
}

/* ---------------- FAQ ---------------- */
.faq-list {
  display: grid;
  gap: var(--s-3);
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.faq-list details[open] {
  border-color: var(--line-strong);
  box-shadow: inset 4px 0 0 var(--red-500), var(--shadow-1);
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.4;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
/* plus / minus in a navy disc that turns red when open */
.faq-list summary::after {
  content: '';
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 12px no-repeat,
    var(--ink-900);
  transition: transform var(--t-base) var(--ease);
}
.faq-list details[open] summary::after {
  background:
    linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
    var(--red-500);
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 var(--s-5) var(--s-5);
}

/* ---------------- Review page: hero + bonus ticket ---------------- */
.review-hero .hero-inner {
  padding-block: var(--s-8) var(--s-10);
  gap: var(--s-6);
}
.review-hero h1 {
  font-size: var(--fs-h1);
  max-width: 32ch;
}
/* author page: photo + name */
.review-title {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin-top: var(--s-5);
}
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 64rem;
  background: var(--surface);
  color: var(--text-body);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
}
/* compact: logo + headline data on one row, the conditions in a grid below */
.ticket-main {
  min-width: 0;
  padding: var(--s-4) var(--s-5);
}
.ticket-top {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.ticket .logo-tile {
  width: 72px;
  height: 72px;
  padding: 6px;
}
.ticket-data {
  min-width: 0;
}
.ticket-data h2 {
  display: inline-block;
  margin-bottom: var(--s-2);
  padding: 0.125rem 0.5rem;
  border-radius: var(--r-sm);
  background: var(--ink-900);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ticket dl {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  margin: 0;
}
.ticket dl > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.ticket dt {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-muted);
}
.ticket dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 1.3;
  color: var(--text);
}
.ticket .is-bonus dd {
  color: var(--red-500);
  font-size: var(--fs-lg);
  line-height: 1.2;
}
.ticket .rating {
  font-size: 0.9375rem;
}
.ticket-stub {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-1);
  padding: var(--s-4) var(--s-5);
  border-top: 2px dashed var(--line-strong);
}
/* perforation notches, cut in the hero colour */
.ticket-stub::before,
.ticket-stub::after {
  content: '';
  position: absolute;
  top: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-3);
}
.ticket-stub::before {
  left: -11px;
}
.ticket-stub::after {
  right: -11px;
}
@media (min-width: 900px) {
  .ticket {
    grid-template-columns: minmax(0, 1fr) 16rem;
  }
  .ticket-stub {
    border-top: 0;
    border-left: 2px dashed var(--line-strong);
  }
  .ticket-stub::before,
  .ticket-stub::after {
    left: -12px;
    right: auto;
  }
  .ticket-stub::before {
    top: -11px;
  }
  .ticket-stub::after {
    top: auto;
    bottom: -11px;
  }
}
.rg-note {
  margin-top: var(--s-1);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.method-link {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-4) var(--s-5);
  border-left: 4px solid var(--slate-600);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--slate-50);
  font-size: var(--fs-sm);
  color: var(--slate-600);
}
.method-link svg {
  flex: 0 0 auto;
}
.method-link a {
  color: var(--slate-600);
  font-weight: 700;
}

/* ---------------- Team (Chi siamo) ---------------- */
.team-grid {
  display: grid;
  gap: var(--s-6);
  margin-top: var(--s-6);
}
@media (min-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.person {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.person-photo {
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
}
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.person-body {
  padding: var(--s-6);
}
.person h3 {
  font-size: var(--fs-h3);
}
.person h3 a {
  color: var(--text);
  text-decoration: none;
}
.person h3 a:hover {
  color: var(--link);
  text-decoration: underline;
}
.person h3 .role {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--red-600);
  margin-top: var(--s-1);
  letter-spacing: 0;
}
.person .prose {
  margin-top: var(--s-4);
  font-size: 1rem;
}
.person .links {
  margin-top: var(--s-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* ---------------- Callout ---------------- */
.callout {
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.callout-title {
  font-weight: 700;
  color: var(--text);
}
.callout-warning {
  background: var(--amber-50);
  border-color: #f3dca1;
  color: var(--amber-800);
}
.callout-responsible {
  background: var(--red-50);
  border-color: #ffd1d4;
}

/* ---------------- Forms ---------------- */
.form {
  display: grid;
  gap: var(--s-4);
  max-width: var(--prose);
}
.form .field {
  display: grid;
  gap: var(--s-1);
}
.form label {
  font-weight: 600;
  color: var(--text);
  font-size: var(--fs-sm);
}
.form input,
.form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
}
.form textarea {
  min-height: 140px;
  resize: vertical;
}
.form input:focus-visible,
.form textarea:focus-visible {
  border-color: var(--focus);
  outline: 3px solid rgb(50 74 109 / 0.25);
  outline-offset: 0;
}
.form .hp {
  position: absolute;
  left: -9999px;
}
.form-status {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  font-weight: 600;
}
.form-status.ok {
  background: var(--green-50);
  color: var(--green-700);
}
.form-status.err {
  background: var(--red-50);
  color: var(--red-600);
}

/* ---------------- Search ---------------- */
.search-form {
  display: flex;
  gap: var(--s-2);
  max-width: 40rem;
}
.search-form input {
  flex: 1;
  min-height: 50px;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
}
.search-results {
  list-style: none;
  margin: var(--s-8) 0 0;
  padding: 0;
  max-width: var(--prose);
}
.search-results li {
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.search-results .type {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--slate-600);
}
.search-results a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--text);
}
.search-results a:hover {
  color: var(--link);
  text-decoration: underline;
}

/* ---------------- Search panel (header) ---------------- */
/* a sheet that drops from the top of the viewport over a dimmed page */
html:has(dialog[open]) {
  overflow: hidden;
}
.search-panel {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  max-width: none;
  max-height: 100dvh;
  margin: 0;
  padding: var(--s-4) 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.search-panel::backdrop {
  background: rgb(11 16 27 / 0.6);
  backdrop-filter: blur(2px);
}
.search-panel-inner {
  display: flex;
  flex-direction: column;
  width: min(100% - 2 * var(--gutter), 46rem);
  max-height: calc(100dvh - 2 * var(--s-4));
  margin-inline: auto;
  background: #fff;
  border-radius: var(--r-lg);
  border-top: 4px solid var(--red-500);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.search-panel-bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--line);
}
.search-panel-icon {
  flex: 0 0 auto;
  color: var(--slate-600);
}
.search-panel-bar input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0.5rem 0.25rem;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--text);
}
.search-panel-bar input:focus {
  outline: none;
}
.search-panel-bar:focus-within {
  box-shadow: inset 0 -2px 0 var(--slate-600);
}
.search-panel-bar input::-webkit-search-cancel-button {
  display: none;
}
.search-panel-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s-2) var(--s-3) var(--s-4);
}
.search-panel-status {
  margin: var(--s-2) var(--s-2) var(--s-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.search-panel-results,
.search-panel-sections {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-panel-results a {
  display: grid;
  gap: 0.15rem;
  padding: var(--s-3);
  border-radius: var(--r-md);
  color: var(--text);
  text-decoration: none;
}
.search-panel-results [aria-selected='true'] a {
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--red-500);
}
.search-type {
  justify-self: start;
  padding: 0.1rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--slate-50);
  color: var(--slate-600);
  font-size: 0.75rem;
  font-weight: 600;
}
.search-type.type-recensione {
  background: var(--red-50);
  color: var(--red-600);
}
.search-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
}
.search-desc {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.search-panel-sections {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  padding-inline: var(--s-2);
}
.search-panel-sections a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.search-panel-sections a:hover {
  border-color: var(--red-500);
  color: var(--red-600);
}
.search-panel-hint {
  margin: 0;
  padding: var(--s-2) var(--s-5);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.search-panel-hint kbd {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 0.35em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  text-align: center;
}
@media (max-width: 759px) {
  .search-panel {
    padding: 0;
  }
  .search-panel-inner {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
  }
  .search-panel-hint {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .search-panel[open] .search-panel-inner {
    animation: drop-in var(--t-slow) var(--ease);
  }
}

/* ---------------- Age gate (18+) ---------------- */
.age-gate {
  width: min(100% - 2 * var(--gutter), 30rem);
  padding: var(--s-10) var(--s-8) var(--s-8);
  border: 0;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-3);
  text-align: center;
  color: var(--text-body);
  overflow: visible;
}
.age-gate::backdrop {
  background: rgb(11 16 27 / 0.88);
  backdrop-filter: blur(6px);
}
/* the red chip from the logo's die, half out of the card */
.age-gate-badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: calc(-1 * var(--s-10) - 36px) auto var(--s-5);
  border-radius: 50%;
  border: 4px solid #fff;
  background: var(--red-500);
  box-shadow: 0 5px 0 var(--red-800), var(--shadow-2);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.age-gate h2 {
  font-size: var(--fs-h3);
  color: var(--text);
}
.age-gate p {
  margin: var(--s-3) 0 0;
  font-size: 1rem;
}
.age-gate strong {
  color: var(--text);
}
.age-gate a[href^='tel:'] {
  white-space: nowrap;
  font-weight: 700;
}
.age-gate-actions {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
@media (max-width: 559px) {
  .age-gate {
    padding: var(--s-10) var(--s-5) var(--s-6);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .age-gate[open] {
    animation: age-in var(--t-slow) var(--ease);
  }
  @keyframes age-in {
    from {
      opacity: 0;
      transform: translateY(12px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------------- Author box ("Scritto da") ---------------- */
.author-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red-500);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  background: var(--surface-2);
  max-width: var(--prose);
}
.main-col > .author-box {
  margin-top: var(--s-12);
}
.main-col > .author-box + .author-box {
  margin-top: var(--s-4);
}
.author-box-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  border: 3px solid #fff;
  box-shadow: var(--shadow-1);
}
.author-box p {
  margin: 0;
}
.author-box-kicker {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-600);
}
.author-box .author-box-name {
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3125rem;
  line-height: 1.25;
}
.author-box-name a {
  color: var(--text);
  text-decoration: none;
}
.author-box-name a:hover {
  color: var(--link);
  text-decoration: underline;
}
.author-box-role {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--slate-600);
}
.author-box .author-box-bio {
  margin-top: var(--s-3);
  font-size: 1rem;
  line-height: 1.6;
}
.author-box .author-box-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  font-weight: 600;
}
@media (max-width: 559px) {
  .author-box {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--s-5);
    gap: var(--s-3);
  }
  .author-box-photo {
    width: 64px;
    height: 64px;
  }
}

/* ---------------- Author page: published guides and reviews ---------------- */
.author-stats {
  margin: var(--s-2) 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.author-works {
  display: grid;
  gap: var(--s-10) var(--s-12);
  align-items: start;
}
@media (min-width: 900px) {
  .author-works {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  }
}
.author-works-col h2 {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-h3);
  margin-bottom: var(--s-3);
}
.author-works-col h2 .count {
  display: inline-grid;
  place-items: center;
  min-width: 1.8em;
  height: 1.8em;
  padding: 0 0.4em;
  border-radius: var(--r-pill);
  background: var(--ink-900);
  color: #fff;
  font-size: 0.8125rem;
}
.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.work-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.work-list a {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.work-list a:hover {
  color: var(--link);
  text-decoration: underline;
}
.work-list time {
  flex: 0 0 auto;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
}
.work-more > summary {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
}
.work-more[open] > summary {
  margin-bottom: var(--s-2);
}
.work-more .work-list {
  border-top: 0;
}

/* ---------------- Motion: subtle reveal (progressive, no JS) ---------------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal both var(--ease);
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
    /* transform only: content is never hidden, even if the animation never runs */
    @keyframes reveal {
      from {
        transform: translateY(12px);
      }
      to {
        transform: none;
      }
    }
  }
}

/* ---------------- Responsive refinements ---------------- */
@media (max-width: 999px) {
  .review-title {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
  }
}
@media (max-width: 759px) {
  .hero .lead,
  .hero .lead p {
    font-size: var(--fs-base);
  }
  .hero-inner {
    padding-block: var(--s-8) var(--s-10);
  }
  /* header already sticky: on phones the index strip scrolls with the page */
  .index-bar {
    position: static;
  }
  .hub-cards {
    gap: var(--s-4) var(--s-3);
  }
  .hub-cards li {
    --tilt: 0deg !important;
    --drop: 0px !important;
  }
  .play-card {
    min-height: 8.5rem;
    padding: var(--s-3) 2rem var(--s-3) var(--s-4);
  }
  .pc-label {
    font-size: 1rem;
  }
  .pc-pip {
    width: 44px;
    height: 44px;
    top: 14px;
  }
  .ticket-main {
    padding: var(--s-3) var(--s-4);
  }
  .ticket-top {
    align-items: flex-start;
    gap: var(--s-3);
  }
  .ticket .logo-tile {
    width: 52px;
    height: 52px;
    padding: 4px;
  }
  .ticket dl {
    gap: var(--s-1) var(--s-4);
  }
  .ticket dd {
    font-size: 0.9375rem;
  }
  .ticket .is-bonus dd {
    font-size: var(--fs-base);
  }
  .ticket .rating {
    font-size: var(--fs-sm);
  }
  .ticket-stub {
    padding: var(--s-3) var(--s-4);
  }
}

/* ---------------- Answer first, sources, related (audit 13/09/2026) ---------------- */
/* "In breve": the direct answer, a panel-grey block with the navy label of the mrbonus.it title boxes */
.quick-answer {
  margin: 0 0 var(--s-6);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  background: var(--surface-3);
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.55;
}
.quick-answer-label {
  display: inline-block;
  margin-bottom: var(--s-2);
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-sm);
  background: var(--ink-900);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ticket dl.ticket-conditions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
/* wider screens: each condition takes the width of its value, so short ones share a row */
@media (min-width: 600px) {
  .ticket dl.ticket-conditions {
    display: flex;
    gap: var(--s-2) var(--s-6);
  }
}
.ticket .ticket-conditions dd {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
}
.ticket .ticket-conditions a,
.ticket dt a {
  color: inherit;
}
.ticket-verified {
  margin-top: var(--s-2);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.ticket-verified a {
  color: var(--link);
  font-weight: 600;
}
.rg-note a,
.ad-disclosure a {
  color: inherit;
}
.pros-cons {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
@media (min-width: 720px) {
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}
.pros-cons .callout ul {
  margin: var(--s-2) 0 0;
  padding-left: 1.1em;
}
.callout-pros {
  background: var(--green-50);
  border-color: #bfe6cd;
}
.callout-cons {
  background: var(--amber-50);
  border-color: #f3dca1;
}
.sources,
.related-links {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.sources h2,
.related-links h2 {
  font-size: var(--fs-h4);
}
.sources ul,
.related-links ul {
  margin: var(--s-3) 0 0;
  padding-left: 1.1em;
  display: grid;
  gap: var(--s-2);
  font-size: var(--fs-sm);
}
.sources li {
  color: var(--text-muted);
}
.card-note {
  margin-top: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.footer-help {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
}
.footer-help a {
  color: inherit;
  font-weight: 700;
}
.form-legend,
.form-privacy {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.field-error {
  font-size: var(--fs-sm);
  color: var(--red-600);
  font-weight: 600;
}
.form [aria-invalid='true'] {
  border-color: var(--red-600);
}
.embed-facade {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
  margin: var(--s-6) 0;
  padding: var(--s-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: var(--fs-sm);
}
/* cookie banner: bottom card, non-modal, same weight for the two choices */
.consent-banner {
  position: fixed;
  z-index: 60;
  left: var(--s-4);
  right: var(--s-4);
  bottom: var(--s-4);
  max-width: 34rem;
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-lg);
  background: var(--ink-900);
  color: #fff;
  box-shadow: var(--shadow-3);
  font-size: var(--fs-sm);
}
.consent-banner a {
  color: #fff;
  font-weight: 700;
}
.consent-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  margin-bottom: var(--s-2);
}
.consent-actions {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.consent-actions .btn {
  flex: 1;
}
.consent-close {
  position: absolute;
  top: var(--s-2);
  right: var(--s-3);
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
