:root {
  --ink: #111111;
  --muted: #4a4a4a;
  --rule: #c9c9c9;
  --paper: #ffffff;
  --panel: #f4f4f2;
  --link: #1f3a5f;
  --focus: #1f3a5f;
  --wrap: 68rem;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --warn-font: Arial, Helvetica, "Liberation Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 1.5rem; } }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--paper); padding: 0.5rem 0.75rem; border: 2px solid var(--ink); }

/* ---------- Mandatory health warning (VPPR ss. 14-23) ----------
   Display area: full width, at least 20% of the first screen's height (we use 22vh).
   Border: same colour as the type, uniform width of 3% of the display area's shortest side
   (set by site.js; the CSS value is a fallback). Background white, type black.
   The warning block is sized by site.js to fill 60-70% of the display area. */
.hw {
  --hw-h: 22vh;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hw-h);
  margin: 0;
  background: #ffffff;
  color: #000000;
  border: max(4px, calc(var(--hw-h) * 0.03)) solid #000000;
  font-family: var(--warn-font);
  font-weight: 400;
  text-align: center;
}
.hw__fit { width: 84%; font-size: clamp(1rem, 3.2vh, 2.2rem); line-height: 1.25; }
.hw__text, .hw__attr { margin: 0; font-weight: 400; }
.hw__text strong { font-weight: 700; }
.hw__attr { margin-top: 0.25em; }

/* ---------- Header ---------- */
.mast { border-bottom: 1px solid var(--rule); }
.mast__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: 0.6rem 0; min-height: 44px; color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 700; }
.adult { margin: 0; background: var(--panel); border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--muted); }
.adult .wrap { display: block; padding-top: 0.5rem; padding-bottom: 0.5rem; }

/* ---------- Content ---------- */
main.wrap { padding-top: 2rem; padding-bottom: 3rem; }
.prose { max-width: 44rem; }
h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: 1.375rem; line-height: 1.3; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.125rem; margin: 1.5rem 0 0.25rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }
.lede { font-size: 1.1875rem; color: var(--ink); }
.muted { color: var(--muted); }
.tbc { background: #fff3c4; color: #000; padding: 0 0.2em; font-weight: 600; }
.box { border: 1px solid var(--rule); background: var(--panel); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.box > :last-child { margin-bottom: 0; }
.steps { padding-left: 1.4rem; }
.cols { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1rem 0 1.5rem; }
@media (min-width: 48rem) { .cols { grid-template-columns: repeat(3, 1fr); } }
.cols > div { border: 1px solid var(--rule); padding: 1rem; }
.cols h3 { margin-top: 0; }
.cols ul { margin: 0; padding-left: 1.2rem; }

/* ---------- Province table ---------- */
.table-scroll { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--rule); }
.table-scroll:focus-visible { outline-offset: 0; }
table { border-collapse: collapse; width: 100%; min-width: 60rem; font-size: 0.9375rem; }
caption { text-align: left; padding: 0.75rem; font-weight: 600; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-top: 1px solid var(--rule); }
thead th { background: var(--panel); border-top: 0; }
tbody th { font-weight: 600; white-space: nowrap; }
.status { display: inline-block; font-weight: 600; white-space: nowrap; }
.status--blocked::before { content: "\2715  "; }
.status--hold::before { content: "\2016  "; }
.status--planned::before { content: "\25CB  "; }
td ul { margin: 0; padding-left: 1rem; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--rule); background: var(--panel); padding: 2rem 0; font-size: 0.9375rem; color: var(--muted); }
.foot__name { font-weight: 700; color: var(--ink); margin-bottom: 0.25rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; list-style: none; padding: 0; margin: 1rem 0; }
.foot__links a { display: inline-block; padding: 0.6rem 0; min-height: 44px; }
.foot__small { font-size: 0.875rem; margin: 0; }
.noscript { padding: 1rem; border: 2px solid var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.25rem;
  font: 600 1rem/1.2 var(--sans);
  background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: 4px;
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: #333; }
.btn--plain { background: transparent; color: var(--ink); }
.btn--plain:hover { background: var(--panel); }

/* ---------- Age notice (full screen, first visit) ---------- */
.gate {
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink);
  overflow-y: auto;
}
.gate::backdrop { background: var(--paper); }
.gate__body { max-width: 42rem; margin: 0 auto; padding: 1.5rem 1rem 2rem; }
.gate__body h2 { margin-top: 0; font-size: clamp(1.5rem, 4vw, 2rem); }
.gate__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.gate__small { font-size: 0.9375rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .gate, .skip { display: none !important; } }
main[tabindex="-1"]:focus { outline: none; }
