/* Mattawa Hospital 50/50 — "The Community Ticket" */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --paper: #FBF7EF;
  --paper-2: #F3EBDC;
  --white: #FFFFFF;
  --ink: #14312E;
  --ink-2: #244744;
  --muted: #4F625F;
  --line: #E3DACA;
  --river: #0F6E67;
  --river-2: #0B5A54;
  --river-soft: #DDEFEC;
  --sun: #F2B233;
  --sun-2: #C98A0E;
  --sun-soft: #FCEBC4;
  --berry: #C7372E;
  --shadow: 0 10px 30px -12px rgba(20, 49, 46, .28);
  --shadow-lg: 0 24px 60px -24px rgba(20, 49, 46, .35);
  --radius: 14px;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition-duration: 0s !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
}

::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: var(--river) var(--paper-2); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--river); border-radius: 99px; border: 2px solid var(--paper-2); }
::-webkit-scrollbar-track { background: var(--paper-2); }

a { color: var(--river); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--river-2); }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; margin-top: 0; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p, li { max-width: var(--measure); }
strong { font-weight: 600; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--paper); padding: .5rem 1rem; border-radius: 6px; z-index: 100; }
.skip:focus { left: .5rem; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark a { color: var(--sun); }
.section--dark a:hover { color: #FFD46A; }
.section--dark .lead { color: #CFDDD9; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.split { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } .split--rev > :first-child { order: 2; } }
.stack > * + * { margin-top: 1rem; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .35rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--display); font-weight: 700; }
.prose .meta { color: var(--muted); font-size: .95rem; }
.eyebrow-free { /* intentionally no eyebrow pattern */ }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(201, 138, 14, .7); }
.btn--sun:hover { background: #FFC24A; color: var(--ink); }
.btn--river { background: var(--river); color: #fff; }
.btn--river:hover { background: var(--river-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.section--dark .btn--ghost { color: var(--paper); border-color: var(--paper); }
.section--dark .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--lg { font-size: 1.2rem; padding: 1.15rem 2.1rem; }
.btn svg { width: 1.1em; height: 1.1em; }
a svg, p svg, .pill svg { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; }
.section--dark .btn--sun { color: var(--ink); }
.section--dark .btn--sun:hover { color: var(--ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 239, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.05; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand small { display: block; font-family: var(--body); font-weight: 500; font-size: .72rem; letter-spacing: .02em; color: var(--muted); }
.nav { display: none; align-items: center; gap: .1rem; }
.nav a { font-weight: 500; font-size: .95rem; color: var(--ink-2); text-decoration: none; padding: .5rem .7rem; border-radius: 8px; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--river); font-weight: 600; }
.header-cta { display: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 2px solid var(--ink); background: transparent; border-radius: 12px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .x { display: none; }
.nav-toggle[aria-expanded="true"] .bars { display: none; }
.nav-toggle[aria-expanded="true"] .x { display: block; }
@media (min-width: 1000px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; padding: .65rem 1.2rem; font-size: .95rem; min-height: 42px; }
  .nav-toggle { display: none; }
}
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: .5rem 0 1rem; display: grid; }
.mobile-nav a { display: block; padding: .8rem 0; font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--river); }
.mobile-nav .btn { margin-top: 1rem; width: 100%; }
@media (min-width: 1000px) { .mobile-nav { display: none !important; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; max-width: 780px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 178, 51, .32), rgba(242, 178, 51, 0)); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--river); }
.hero .lead { margin-top: 1.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; align-items: center; }
.hero__note { font-size: .92rem; color: var(--muted); margin-top: 1rem; max-width: 46ch; }
.hero__note strong { color: var(--ink); }

/* ---------- ticket / jackpot ---------- */
.ticket {
  --notch: 16px;
  position: relative; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  mask: radial-gradient(circle at left 62%, transparent var(--notch), #000 calc(var(--notch) + .5px)), radial-gradient(circle at right 62%, transparent var(--notch), #000 calc(var(--notch) + .5px));
  mask-composite: intersect; -webkit-mask-composite: source-in;
}
.ticket--sun { background: linear-gradient(160deg, #FFF6DF, #FFE7A8); }
.ticket__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .85rem; color: var(--muted); font-weight: 500; }
.ticket__head .serial { font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }
.ticket__amount { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 8vw, 5.2rem); letter-spacing: -.04em; line-height: 1; margin: .4rem 0 .25rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.ticket__amount.is-empty { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -.02em; color: var(--river); }
.ticket__label { font-size: .98rem; color: var(--ink-2); max-width: 34ch; }
.ticket__perf { border: 0; border-top: 2px dashed var(--line); margin: 1.4rem 0; }
.ticket--sun .ticket__perf { border-top-color: rgba(201, 138, 14, .4); }
.ticket__facts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.2rem; font-size: .95rem; }
.ticket__facts dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.ticket__facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.ticket .btn { width: 100%; margin-top: 1.4rem; }
.ticket__fine { font-size: .8rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }
@keyframes stub-in { from { opacity: 0; transform: translateY(18px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
.hero .ticket { animation: stub-in .7s var(--ease) both; }
.hero .ticket__perf { animation: draw 1s .35s var(--ease) both; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

/* ---------- packages ---------- */
.packages { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pack { position: relative; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.5rem; text-align: center; transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease); }
.pack:hover { transform: translateY(-3px); border-color: var(--river); box-shadow: var(--shadow); }
.pack--popular { border-color: var(--sun); background: linear-gradient(180deg, #FFF9E8, #fff); }
.pack__tag { position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); background: var(--sun); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; }
.pack__count { font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.03em; line-height: 1; }
.pack__count small { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: .3rem; }
.pack__price { font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin-top: .8rem; color: var(--river); }
.pack__per { font-size: .85rem; color: var(--muted); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.steps li { position: relative; padding: 1.5rem 1.5rem 1.5rem 4.4rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 1.3rem; top: 1.35rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--river); color: #fff; font-family: var(--display); font-weight: 800; display: grid; place-items: center; font-size: 1.05rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.steps--vertical { grid-template-columns: 1fr; max-width: 760px; }

/* ---------- media ---------- */
.media { position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #CFE7E3, #F6E3B6); box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .media__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); font-family: var(--display); font-weight: 600; font-size: .9rem; text-align: center; padding: 1rem; opacity: .7; }
.media img[hidden] { display: none; }
.media img:not([hidden]) + .media__ph { display: none; }

/* ---------- RG band & footer ---------- */
.rg-band { background: var(--ink); color: var(--paper); padding-block: 1.6rem; }
.rg-band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; justify-content: space-between; }
.rg-band p { margin: 0; max-width: none; }
.rg-band .rg-text { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.rg-band .rg-help { color: #CFDDD9; font-size: .95rem; }
.rg-band a { color: var(--sun); font-weight: 600; }
.rg-band .age { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--sun); color: var(--sun); font-family: var(--display); font-weight: 800; font-size: .85rem; flex: none; margin-right: .6rem; vertical-align: middle; }

.site-footer { background: #0E2320; color: #C9D6D3; padding-block: 3rem 2rem; font-size: .93rem; }
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer h3 { color: var(--paper); font-size: 1rem; margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .3rem 0; }
.site-footer a { color: #E4EDEA; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.55; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #22403B; padding-top: 1.4rem; font-size: .85rem; color: #9FB3AE; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.site-footer .legal p { margin: 0; max-width: none; }

/* ---------- misc components ---------- */
.callout { background: var(--river-soft); border-radius: var(--radius); padding: 1.25rem 1.5rem; color: var(--ink); }
.callout--sun { background: var(--sun-soft); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { font-family: var(--display); }
.pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: .35rem .8rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.pill svg { width: 1em; height: 1em; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.page-head .lead { margin-top: .8rem; }

.winners-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.winners-table th, .winners-table td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
.winners-table th { background: var(--ink); color: var(--paper); font-family: var(--display); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
.winners-table tr:last-child td { border-bottom: 0; }
.winners-table .num { font-weight: 700; }
.winners-table .prize { color: var(--river); font-weight: 800; font-family: var(--display); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
.winner-cards { display: none; }
@media (max-width: 640px) {
  .table-scroll { display: none; }
  .winner-cards { display: grid; gap: 1rem; }
  .winner-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.3rem; }
  .winner-card .prize { font-family: var(--display); font-weight: 800; font-size: 1.8rem; color: var(--river); }
  .winner-card dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; margin: .6rem 0 0; font-size: .95rem; }
  .winner-card dt { color: var(--muted); }
  .winner-card dd { margin: 0; font-weight: 600; }
}
.empty { background: var(--white); border: 2px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--muted); }

.faq { max-width: 800px; }
.faq details { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: .8rem; padding: 0 1.25rem; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; font-size: 1.1rem; padding: 1.05rem 2.2rem 1.05rem 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .2rem; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--river); border-bottom: 2.5px solid var(--river); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 0 1.2rem; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

.contact-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.contact-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.contact-card h3 { font-size: 1rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.contact-card p, .contact-card address { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; font-style: normal; line-height: 1.4; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

.helpline { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem 1.75rem; border: 2px solid var(--sun); }
.helpline .num { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
.helpline p { margin: 0; max-width: none; }

/* ---------- cookie banner ---------- */
.cookie-banner { position: fixed; inset: auto 1rem 1rem; z-index: 90; background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.25rem 1.4rem; display: grid; gap: 1rem; max-width: 640px; margin-inline: auto; border: 1px solid var(--line); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .95rem; max-width: none; }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-banner .btn { padding: .65rem 1.2rem; font-size: .95rem; min-height: 42px; }
@media (min-width: 700px) { .cookie-banner { grid-template-columns: 1fr auto; align-items: center; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- regulator / support logos ---------- */
.rg-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; width: 100%; padding-top: 1.1rem; border-top: 1px solid #2A4B46; }
.rg-logos li { display: flex; align-items: center; }
.rg-logos a { display: inline-flex; border-radius: 6px; }
.rg-logos img { height: 30px; width: auto; display: block; }
.rg-logos img[alt^="RG Check"] { height: 56px; }
.rg-logos img[alt^="AGCO"] { height: 26px; color: var(--paper); }
.rg-logos a:hover img { opacity: .85; }
a.pill { text-decoration: none; }
a.pill:hover { border-color: var(--river); color: var(--river); }
