:root {
  color-scheme: light;
  --brand-navy: #172f52;
  --brand-surface: #f0f4fa;
  --brand-line: #d1ddec;
  --brand-copy: #344961;
  --header-height: 76px;
  scroll-padding-top: calc(var(--header-height) + 16px);
  --ink: #151515;
  --muted: #505050;
  --line: #e7e7e7;
  --accent: #e1edff;
  font: 16px/1.6 system-ui, sans-serif;
  color: var(--ink);
  background: white;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid #2458a6; outline-offset: 4px; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 3; background: white; padding: 10px; }
.skip:focus { top: 12px; }

.shell { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 2; background: white; box-shadow: 0 1px var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: 9px; width: fit-content; text-decoration: none; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; flex: none; }
.compass-needle { display: block; aspect-ratio: 1; background: linear-gradient(90deg, currentColor 50%, #8ba6cc 50%); clip-path: polygon(50% 0, 73% 50%, 50% 100%, 27% 50%); transform: rotate(40deg); }
.menu-links { display: flex; gap: 5px; }
.menu-links a { display: block; padding: 8px 12px; border-radius: 6px; font-size: .92rem; font-weight: 650; text-decoration: none; }
.menu-links a:hover { background: #f5f5f5; }
.menu-links a[aria-current] { background: var(--accent); }
.mobile-menu-button, .mobile-toc { display: none; }
.icon-button { width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 8px; padding: 0; background: white; color: var(--ink); cursor: pointer; }
.icon-button:hover { background: #f5f5f5; }
.icon-button:focus-visible, summary:focus-visible { outline: 2px solid #2458a6; outline-offset: 4px; }
.burger-icon, .close-icon { position: relative; display: block; width: 20px; height: 20px; margin: auto; }
.burger-icon::before, .close-icon::before, .close-icon::after { content: ''; position: absolute; top: 9px; left: 0; width: 20px; height: 2px; background: currentColor; }
.burger-icon::before { box-shadow: 0 -6px currentColor, 0 6px currentColor; }
.close-icon::before { transform: rotate(45deg); }
.close-icon::after { transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: var(--ink); background: white; }
html:has(.mobile-menu[open]) { overflow: hidden; }
.menu-heading { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-height); border-bottom: 1px solid var(--line); }
.mobile-menu .menu-links { display: grid; gap: 8px; padding-block: 20px; }
.mobile-menu .menu-links a { padding: 13px 14px; font-size: 1.125rem; }

.hero, .site-footer { background: var(--brand-surface); color: var(--brand-navy); }
.hero { border-bottom: 1px solid var(--brand-line); }
.hero .category, .hero .intro { color: var(--brand-copy); }
.hero-inner { min-height: 324px; padding-block: 20px; }
.hero-with-art { display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 17vw, 206px); gap: 24px; align-items: start; }
.static-hero { min-height: 0; grid-template-columns: minmax(0, 1fr) 94px; align-items: center; padding-block: 22px; }
.static-hero h1 { font-size: clamp(1.85rem, 4.2vw, 3rem); }
.static-hero .intro { margin-top: 8px; }
.category { margin-bottom: 8px; color: var(--muted); font-size: .78rem; font-weight: 730; }
h1 { max-width: 27ch; font-size: clamp(2rem, 4.5vw, 3.75rem); line-height: 1.04; letter-spacing: -.07em; font-weight: 800; }
.intro { max-width: 74ch; margin-top: 14px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.125rem); }

.hero-art { display: grid; place-items: center; width: 100%; aspect-ratio: 1; align-self: center; }
.compass-dial {
  width: 78%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid #9bb0ce;
  border-radius: 50%;
  background: #fbfdff;
  box-shadow: 0 0 0 clamp(4px, 1.35vw, 17px) #e2ebf8;
  color: var(--brand-navy);
}
.compass-dial::before { content: ''; position: absolute; inset: 12%; border: 1px dashed #91a9c9; border-radius: 50%; }
.compass-dial::after { content: ''; position: absolute; width: 8%; aspect-ratio: 1; background: white; border: 1px solid var(--brand-navy); border-radius: 50%; }
.compass-dial .compass-needle { width: 70%; }
.brand-mark .compass-dial { box-shadow: 0 0 0 3px #e2ebf8; }

h2 { font-size: clamp(1.25rem, 2.4vw, 1.65rem); letter-spacing: -.036em; line-height: 1.15; }
.related-guides { margin-top: 32px; padding: clamp(16px, 3vw, 28px); background: #eff5ff; border: 1px solid #d9e6f7; border-radius: 12px; }
.related-guides h2 { margin-bottom: 12px; }
.guide-row { display: block; padding: 12px 0; border-top: 1px solid #d2e0f2; text-decoration: none; }
.guide-row:last-child { padding-bottom: 0; }
.guide-row:hover strong { text-decoration: underline; }
.guide-row strong, .guide-row small { display: block; }
.guide-row small { color: var(--muted); margin-top: 3px; line-height: 1.45; }

.page-layout { display: grid; grid-template-columns: minmax(160px, 218px) minmax(0, 1fr); gap: clamp(24px, 5vw, 76px); padding-block: 30px 48px; }
.toc { color: var(--muted); align-self: start; }
.desktop-toc { position: sticky; top: calc(var(--header-height) + 20px); border-right: 1px solid var(--line); padding-right: 14px; }
.toc h2, .toc summary { font-size: .94rem; font-weight: 750; letter-spacing: normal; color: var(--ink); }
.toc ol { list-style: none; padding: 0; margin: 10px 0 0; }
.toc a { display: block; padding: 6px 8px; border-radius: 5px; font-size: .88rem; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc a[aria-current="location"] { background: var(--accent); color: var(--ink); font-weight: 700; }
article { max-width: 68ch; }
article section + section { margin-top: 28px; }
article p { margin-top: 9px; color: var(--muted); }
.sources { padding: 18px 20px; border: 1px solid var(--line); border-radius: 7px; }
.sources ul { padding-left: 20px; margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--brand-line); }
.footer-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 30px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-main h2 { margin-bottom: 10px; font-size: 1rem; letter-spacing: 0; }
.footer-main p, .footer-links a, .footer-note { color: var(--brand-copy); font-size: .88rem; }
.helpline { display: inline-block; margin-top: 6px; font-weight: 750; }
.footer-links div { display: grid; gap: 7px; }
.site-footer a { text-decoration: none; }
.footer-links a:hover, .site-footer .helpline:hover { color: #1d5c9e; }
.footer-note { padding-block: 14px 24px; border-top: 1px solid var(--brand-line); }

@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .shell { width: calc(100% - 32px); }
  .header-inner { gap: 10px; }
  .header-inner .brand { font-size: .95rem; }
  .header-inner .brand-mark { width: 32px; height: 32px; }
  .desktop-menu, .desktop-toc { display: none; }
  .mobile-menu-button, .mobile-toc { display: block; }
  .mobile-toc summary { cursor: pointer; display: block; list-style: none; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; }
  .mobile-toc summary::-webkit-details-marker { display: none; }
  .mobile-toc summary:hover { background: #f5f5f5; }
  .page-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; }
  .mobile-toc nav { padding-inline: 12px; }
  .mobile-toc a { min-height: 44px; padding-block: 10px; }
  .hero-inner { min-height: 0; padding-block: 16px; }
  .hero h1 { font-size: clamp(1.85rem, 4.7vw, 2.35rem); }
  .hero .intro { margin-top: 8px; font-size: .95rem; line-height: 1.4; }
  .hero-with-art { grid-template-columns: minmax(0, 1fr) 52px; gap: 8px 14px; align-items: center; }
  .static-hero { grid-template-columns: minmax(0, 1fr) 44px; }
  .hero-with-art .hero-copy { display: contents; }
  .hero-with-art .intro { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
  .hero-with-art .hero-art { grid-column: 2; grid-row: 1; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-links { overflow-wrap: anywhere; }
}

.desktop-toc { max-height: calc(100vh - var(--header-height) - 40px); overflow-y: auto; }
.imported-article { max-width: none; }
.imported-article h2 { margin: 36px 0 12px; }
.imported-article h2:first-child { margin-top: 0; }
.imported-article h3 { margin: 26px 0 8px; font-size: 1.12rem; line-height: 1.3; }
.imported-article p { margin: 12px 0; }
.imported-article a { overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; margin: 18px 0 24px; border: 1px solid var(--line); border-radius: 8px; }
.table-scroll:focus-visible { outline: 2px solid #2458a6; outline-offset: 3px; }
.table-scroll table { min-width: 570px; width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem; line-height: 1.45; }
.table-scroll th, .table-scroll td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-scroll table[data-columns="5"] { min-width: 840px; }
.table-scroll thead th { background: #f5f8fd; }
.table-scroll tbody th { background: white; font-weight: 700; }
.table-scroll tr > :first-child { position: sticky; left: 0; z-index: 1; border-right: 1px solid var(--line); }
.table-scroll tbody tr:last-child > * { border-bottom: 0; }
.faq-question { border-bottom: 1px solid var(--line); }
h2 + .faq-question { border-top: 1px solid var(--line); }
.faq-question summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 4px; cursor: pointer; list-style: none; font-weight: 700; }
.faq-question summary h3 { margin: 0; font: inherit; }
.faq-question summary::-webkit-details-marker { display: none; }
.faq-question summary::after { content: ''; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
.faq-question[open] summary::after { background-size: 100% 2px, 0 0; }
.faq-answer { padding: 0 4px 12px; }
.faq-answer > :first-child { margin-top: 0; }
.casino-figure { margin: 14px 0 20px; }
.casino-figure img { display: block; width: 100%; aspect-ratio: auto 16 / 9; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.writer-box { display: grid; gap: 4px; margin-top: 28px; padding: 16px 20px; background: #e7effb; border: 1px solid var(--brand-line); border-inline-start: 4px solid var(--brand-navy); border-radius: 8px; color: var(--brand-navy); }
.writer-box span { color: var(--muted); font-size: .85rem; }
.writer-box p { margin: 3px 0; }
.writer-box a { width: fit-content; font-size: .9rem; font-weight: 700; }

@media (max-width: 375px) {
  .hero .category { display: none; }
}
