/* Zona Bet — clean light reference-site stylesheet. Light theme only. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --fg: #1a2233;
  --muted: #5d6779;
  --line: #e5e8ee;
  --line-strong: #cbd2dc;
  --accent: #1d5ed6;
  --accent-hover: #164aab;
  --accent-soft: #eaf1fd;
  --help-bg: #edf8f1;
  --help-line: #3d9c66;
  --help-border: #cfe9d9;
  --tip-bg: #eef4fd;
  --tip-line: #6d9be8;
  --tip-border: #d6e3fa;
  --radius: 10px;
  --radius-sm: 7px;
  --max: 76rem;
  --measure: 44rem;
  --shadow-sm: 0 1px 2px rgba(20, 30, 50, .05), 0 1px 3px rgba(20, 30, 50, .06);
}

* { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(29, 94, 214, .35); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
h1, h2, h3, h4 { line-height: 1.22; font-weight: 700; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--fg); }
h1 { font-size: 2.15rem; margin-top: .1em; letter-spacing: -.025em; }
h2 { font-size: 1.42rem; margin-top: 2.1em; }
h3 { font-size: 1.12rem; margin-top: 1.5em; letter-spacing: -.005em; }
p, ul, ol { margin: 0 0 1.05em; }
ul, ol { padding-left: 1.35em; }
li { margin-bottom: .35em; }
li::marker { color: var(--muted); }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; background: var(--bg-soft); padding: .1em .35em; border-radius: 4px; }
small, .small { font-size: .9rem; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.measure { max-width: var(--measure); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; color: var(--fg); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--fg); }
.brand__mark { width: 1.85rem; height: 1.85rem; border-radius: 8px; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: 1.05rem; font-weight: 700; letter-spacing: 0; flex: none; }
.brand small { font-weight: 400; font-size: .84rem; color: var(--muted); line-height: 1.2; margin-left: .35rem; padding-left: .85rem; border-left: 1px solid var(--line-strong); }
.site-nav { display: flex; gap: .15rem; flex-wrap: wrap; }
.site-nav a { color: var(--muted); font-weight: 500; text-decoration: none; padding: .42rem .7rem; border-radius: var(--radius-sm); font-size: .95rem; }
.site-nav a:hover { color: var(--fg); background: var(--bg-soft); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav-toggle { display: none; background: var(--bg); border: 1px solid var(--line-strong); color: var(--fg); padding: .4rem .8rem; border-radius: var(--radius-sm); font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; }
@media (max-width: 48em) { .brand small { display: none; } }
@media (max-width: 40em) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 0; padding: .3rem 0 .7rem; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .6rem .5rem; border-radius: var(--radius-sm); font-size: 1rem; }
}

/* page layout */
main { padding: 2rem 0 4rem; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.page-meta { font-size: .88rem; color: var(--muted); margin: -.1rem 0 1.6rem; }
.page-meta span + span::before { content: "·"; margin: 0 .5rem; color: var(--line-strong); }

.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 62em) {
  .page.has-toc { grid-template-columns: minmax(0, 1fr) 15.5rem; gap: 4rem; }
  .toc { position: sticky; top: 5rem; align-self: start; max-height: calc(100vh - 6rem); overflow-y: auto; }
}
.page > .content { max-width: var(--measure); min-width: 0; }

.toc { font-size: .88rem; margin-bottom: 1.6rem; }
.toc h2 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .6em; color: var(--muted); font-weight: 600; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: .28rem 0 .28rem .9rem; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.4; }
.toc a:hover { color: var(--fg); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }
@media (max-width: 61.99em) {
  .toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; }
  .toc ol { border-left: 0; }
  .toc a { padding-left: 0; margin-left: 0; border-left: 0; }
}

/* callouts & help panels */
.callout { background: var(--tip-bg); border: 1px solid var(--tip-border); border-left: 4px solid var(--tip-line); border-radius: var(--radius-sm); padding: .95rem 1.15rem; margin: 1.4rem 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-help { background: var(--help-bg); border-color: var(--help-border); border-left-color: var(--help-line); }
.callout h3, .callout h4 { margin-top: 0; font-size: 1rem; }
.help-box { background: var(--help-bg); border: 1px solid var(--help-border); border-left: 4px solid var(--help-line); border-radius: var(--radius); padding: 1.1rem 1.35rem; margin: 1.8rem 0; }
.help-box p:last-child { margin-bottom: 0; }
.help-box .index-list li { border-bottom-color: var(--help-border); padding: .45rem 0; }
.help-box .index-list a { font-weight: 500; }

/* tables */
.table-scroll { overflow-x: auto; margin: 1.3rem 0; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-weight: 600; color: var(--fg); font-size: .86rem; letter-spacing: .01em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfc; }
table.facts th { width: 34%; background: var(--bg-soft); }
.content table a, .hl-table a { text-decoration: none; }
.content table a:hover, .hl-table a:hover { text-decoration: underline; }

/* content blocks */
.summary { font-size: 1.06rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.2rem; }
.summary p:last-child { margin-bottom: 0; }
.faq h3 { margin-top: 1.3em; }
.sources { font-size: .88rem; color: var(--muted); }
.sources ol { padding-left: 1.4em; }
.sources li { margin-bottom: .4em; overflow-wrap: anywhere; }
.related { border-top: 1px solid var(--line); margin-top: 2.6rem; padding-top: 1.2rem; }
.related h2 { margin-top: 0; font-size: 1.05rem; }
.related ul { padding-left: 0; list-style: none; }
.related li { padding: .35rem 0; }
.related a { text-decoration: none; font-weight: 500; }
.related a:hover { text-decoration: underline; }

/* index lists (home, section pages) */
.index-section { margin-top: 2.4rem; }
.index-section h2 { margin-top: 0; font-size: 1.25rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.index-list { list-style: none; padding: 0; margin: 0; }
.index-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.index-list li:last-child { border-bottom: 0; }
.index-list a { color: var(--fg); font-weight: 500; text-decoration: none; }
.index-list a:hover { color: var(--accent); text-decoration: underline; }
.index-list .desc { display: block; color: var(--muted); font-size: .9rem; margin-top: .1rem; }
.cols-2 { column-count: 2; column-gap: 2.5rem; }
.cols-3 { column-count: 3; column-gap: 2rem; }
.cols-2 li, .cols-3 li { break-inside: avoid; }
@media (max-width: 48em) { .cols-3 { column-count: 2; } }
@media (max-width: 30em) { .cols-2, .cols-3 { column-count: 1; } }

/* chips (country lists) */
.chip-list { list-style: none; padding: 0; margin: .2rem 0 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-list li { margin: 0; }
.chip-list a { display: inline-block; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg); text-decoration: none; font-size: .9rem; font-weight: 500; line-height: 1.4; }
.chip-list a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); text-decoration: none; }

/* home */
.home-intro { max-width: 50rem; margin-bottom: .5rem; }
.home-intro h1 { font-size: 2.4rem; }
.home-intro p { font-size: 1.1rem; color: var(--muted); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 3.5rem; }
@media (min-width: 56em) { .home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.home-grid .index-section { margin-top: 1.6rem; }
@media (max-width: 48em) { .home-intro h1 { font-size: 1.9rem; } h1 { font-size: 1.8rem; } }

/* helplines table + search */
.hl-search { width: 100%; max-width: 26rem; font: inherit; padding: .6rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); color: var(--fg); margin: .4rem 0 1rem; box-shadow: var(--shadow-sm); }
.hl-search:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); outline-offset: 0; }
.hl-table td:first-child { white-space: nowrap; font-weight: 600; }
.hl-table .phone { white-space: nowrap; font-weight: 600; }
.hl-table .note { display: block; color: var(--muted); font-size: .86rem; margin-top: .2rem; font-weight: 400; }
.hl-table .site { overflow-wrap: anywhere; font-size: .88rem; }
.hl-region-head { margin-top: 2.4rem; font-size: 1.25rem; }

/* self-test */
.quiz fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem .8rem; margin: 0 0 .9rem; background: var(--bg); }
.quiz legend { float: left; width: 100%; font-weight: 600; padding: 0; margin: 0 0 .45rem; }
.quiz fieldset::after { content: ""; display: block; clear: both; }
.quiz label { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem .35rem .6rem; border: 1px solid var(--line); border-radius: 999px; margin: .3rem .45rem .2rem 0; cursor: pointer; font-size: .93rem; }
.quiz label:hover { border-color: var(--line-strong); background: var(--bg-soft); }
.quiz label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.quiz input { margin: 0; accent-color: var(--accent); }
.quiz button, .btn { font: inherit; font-weight: 600; padding: .6rem 1.15rem; border: 0; background: var(--accent); color: #fff; border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.3; }
.quiz button:hover, .btn:hover { background: var(--accent-hover); color: #fff; }
.quiz-result { margin-top: 1.2rem; }
.quiz-result[hidden] { display: none; }

/* forms */
.simple-form { display: flex; gap: .5rem; flex-wrap: wrap; margin: .8rem 0; }
.simple-form input { font: inherit; padding: .6rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); min-width: 0; flex: 1 1 14rem; background: var(--bg); color: var(--fg); }
.simple-form input:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); outline-offset: 0; }
.simple-form__done { font-weight: 600; }

/* footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.8rem 0 2.4rem; font-size: .88rem; color: var(--muted); }
.site-footer__links { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-bottom: .9rem; }
.site-footer a { color: var(--fg); text-decoration: none; font-weight: 500; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer p { margin-bottom: .5em; max-width: var(--measure); }

/* glossary */
.glossary dt { margin-top: 1.1rem; }
.glossary dd { margin: .15rem 0 0; }
.glossary dd p { margin-bottom: 0; }

/* article body defaults */
.content h2 { padding-top: .2rem; }
.content blockquote { margin: 1.2rem 0; padding: .2rem 0 .2rem 1.1rem; border-left: 3px solid var(--line-strong); color: var(--muted); }
.content ul ul, .content ol ol { margin-top: .3em; }
.content > p:first-child { font-size: 1.06rem; }
.content img { border-radius: var(--radius-sm); }

/* helpline tables: stack on narrow screens */
@media (max-width: 44em) {
  .table-scroll:has(.hl-table) { border: 0; border-radius: 0; overflow: visible; }
  .hl-table, .hl-table tbody { display: block; width: 100%; }
  .hl-table thead { display: none; }
  .hl-table tr { display: block; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; }
  .hl-table tbody tr:hover td { background: transparent; }
  .hl-table td { display: block; border: 0; padding: .1rem 0; white-space: normal; }
  .hl-table .phone { white-space: normal; }
  .hl-table td:first-child { font-size: 1.05rem; white-space: normal; }
  .hl-table td:last-child { padding-bottom: .1rem; }
}
