/* DARRM — site styles. Tokens from the DARRM brand guide (Logo & Media Kit v1.0). */
:root {
  --darrm-blue: #287ce2;   /* brand accent: logo, highlights, rules, 24px+ type only */
  --darrm-slate: #4f5f73;  /* brand neutral: leads layouts, muted text */
  --darrm-ink: #0f1623;    /* text, dark bands, footer */
  --darrm-mist: #f4f6f9;   /* alternate bands */
  --surface: #ffffff;
  --text: #0f1623;
  --text-muted: #4f5f73;
  --action: #1f68c4;       /* links, buttons (5.5:1 on white) */
  --action-hover: #1a579f;
  --action-tint: #e8f1fc;
  --border: #d9dfe7;
  --border-strong: #7a889c;
  --success: #1a7a52;
  --danger: #b42318;
  --ubc-navy: #002145;     /* UBC badge only */
  --on-ink: #f4f6f9;
  --on-ink-muted: #a3afbf;
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --r-sm: 3px; --r-md: 6px; --r-lg: 10px;
  --wrap: 1160px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--surface); color: var(--text); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); text-underline-offset: 3px; }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--darrm-ink); color: #fff; padding: 8px 14px; border-radius: var(--r-md); z-index: 100; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.band { padding-block: 88px; }
.band--mist { background: var(--darrm-mist); }
.band--ink { background: var(--darrm-ink); color: var(--on-ink); }
.band--tight { padding-block: 56px; }

/* Type */
h1, h2, h3 { font-family: var(--font-display); color: inherit; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
.eyebrow { font-family: var(--font-display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; display: block; }
.band--ink .eyebrow { color: var(--on-ink-muted); }
.rule { width: 48px; height: 3px; background: var(--darrm-blue); border: 0; margin: 18px 0 0; }
.lead { font-size: 20px; line-height: 1.55; color: var(--text-muted); max-width: 62ch; }
.band--ink .lead { color: var(--on-ink-muted); }
.prose { font-family: var(--font-serif); font-size: 18px; line-height: 1.7; max-width: 66ch; display: grid; gap: 18px; }
.muted { color: var(--text-muted); }
.small { font-size: 14px; line-height: 1.5; }
.mono { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.section-head { display: grid; gap: 0; max-width: 760px; margin-bottom: 44px; }
.section-head .lead { margin-top: 18px; }

/* Buttons */
.dr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-sans); font-weight: 600; font-size: 16px; line-height: 20px; padding: 13px 22px; border-radius: var(--r-md); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out; }
.dr-btn--primary { background: var(--action); color: #fff; }
.dr-btn--primary:hover { background: var(--action-hover); color: #fff; }
.dr-btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.dr-btn--secondary:hover { border-color: var(--action); color: var(--action); }
.band--ink .dr-btn--secondary { background: transparent; color: var(--on-ink); border-color: #5a6b80; }
.band--ink .dr-btn--secondary:hover { border-color: var(--on-ink); color: #fff; }
.band--ink .dr-btn--primary { background: #5c9deb; color: var(--darrm-ink); }
.band--ink .dr-btn--primary:hover { background: #7fb2f0; }
.dr-btn[disabled] { opacity: .55; cursor: progress; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); backdrop-filter: saturate(1.2) blur(6px); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.site-header__logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 600; font-size: 15px; color: var(--text-muted); text-decoration: none; padding-block: 6px; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--darrm-blue); }
.nav .dr-btn { color: #fff; padding: 10px 18px; font-size: 15px; box-shadow: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: var(--r-md); padding: 8px 12px; font: 600 14px var(--font-sans); color: var(--text); cursor: pointer; }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--darrm-blue); padding-left: 12px; }
  .nav .dr-btn { margin-top: 14px; border: 0; }
}
@media (max-width: 480px) { .site-header__logo img { height: 36px; } }

/* Hero */
.hero { background: var(--darrm-mist); border-bottom: 1px solid var(--border); padding-block: 80px 88px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; align-items: center; }
.hero .lead { margin-top: 22px; }
.hero--page { padding-block: 64px 56px; }
.hero--page h1 { max-width: 22ch; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 48px; } }

/* Book mock — the BoK cover, logo artwork not re-typeset */
.book { position: relative; aspect-ratio: 3 / 4; max-width: 340px; width: 100%; margin-inline: auto; background: var(--darrm-ink); color: var(--on-ink); border-radius: 4px 10px 10px 4px; padding: 34px 30px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 1px 2px rgba(15,22,35,.12), 0 24px 48px -16px rgba(15,22,35,.45); overflow: hidden; }
.book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--darrm-slate); }
.book::after { content: ""; position: absolute; left: 30px; right: 30px; top: 50%; height: 1px; background: rgba(244,246,249,.14); }
.book__top { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-ink-muted); }
.book__logo { width: 82%; }
.book__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.1; }
.book__sub { font-family: var(--font-serif); font-style: italic; font-size: 15px; line-height: 1.45; color: var(--on-ink-muted); margin-top: 8px; }
.book__rule { width: 40px; height: 3px; background: var(--darrm-blue); margin-bottom: 14px; }
@media (max-width: 640px) { .book { max-width: 240px; padding: 24px 22px; } .book__title { font-size: 20px; } .book__sub { font-size: 13px; } }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card p { color: var(--text-muted); }
.card__num { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text-muted); }
.card__foot { margin-top: auto; padding-top: 8px; }
.pillar { border-top: 3px solid var(--darrm-slate); }
.pillar:nth-child(2) { border-top-color: var(--darrm-blue); }

/* Split section */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* Lists */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 14px; height: 8px; border-left: 2px solid var(--darrm-blue); border-bottom: 2px solid var(--darrm-blue); transform: rotate(-45deg); }
.band--ink .checks li { color: var(--on-ink); }

/* Program cards */
.program { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px; display: grid; gap: 14px; min-width: 0; }
.program--featured { border-color: var(--darrm-slate); box-shadow: inset 0 3px 0 var(--darrm-blue); }
.badge { display: inline-flex; align-self: start; justify-self: start; font-size: 13px; line-height: 18px; font-weight: 600; padding: 3px 9px; border-radius: var(--r-sm); background: var(--darrm-mist); color: var(--text-muted); border: 1px solid var(--border); }
.badge--ubc { background: var(--ubc-navy); color: #fff; border-color: var(--ubc-navy); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--text-muted); }
.meta b { color: var(--text); font-weight: 600; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.stat { padding: 22px 24px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat__k { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.stat__v { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--border); } }

/* Callouts */
.note { border: 1px solid var(--border); background: var(--darrm-mist); border-radius: var(--r-md); padding: 18px 20px; font-size: 16px; }
.note--success { background: #e9f5ef; border-color: #b6dcc8; }
.note--pending { background: #fdf6ea; border-color: #ecd2a6; }

/* Price panel */
.price { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; }
.price small { font-size: 16px; font-weight: 600; color: var(--text-muted); margin-left: 4px; }
.band--ink .price small { color: var(--on-ink-muted); }

/* Forms */
.form-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 32px; color: var(--text); }
.form-panel h3 { margin-bottom: 8px; }
.form-panel > p { color: var(--text-muted); margin-bottom: 22px; }
.dr-form__form { display: grid; gap: 18px; }
.dr-field { display: grid; gap: 6px; min-width: 0; }
.dr-field__label { font-weight: 600; font-size: 15px; }
.dr-field__req { color: var(--danger); }
.dr-field input, .dr-field select, .dr-field textarea { width: 100%; font: 16px/1.4 var(--font-sans); color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 11px 12px; }
.dr-field textarea { resize: vertical; min-height: 120px; }
.dr-field input:focus, .dr-field select:focus, .dr-field textarea:focus { outline: 2px solid var(--action); outline-offset: 1px; border-color: var(--action); }
.dr-field [aria-invalid="true"] { border-color: var(--danger); }
.dr-field__error, .dr-form__error { color: var(--danger); font-size: 14px; line-height: 1.4; min-height: 0; }
.dr-field__error:empty, .dr-form__error:empty { display: none; }
.dr-field__help { font-size: 14px; color: var(--text-muted); }
.dr-form__actions { display: flex; gap: 12px; }
.dr-form__thanks { border: 1px solid #b6dcc8; background: #e9f5ef; color: var(--text); border-radius: var(--r-md); padding: 20px 22px; display: grid; gap: 8px; font-weight: 600; }
.dr-form__thanks:focus { outline: none; }
.dr-form__closed { color: var(--text-muted); }
.dr-form__skeleton { display: grid; gap: 14px; }
.dr-form__skeleton span { display: block; height: 44px; border-radius: var(--r-sm); background: linear-gradient(90deg, var(--darrm-mist), #eaeef3, var(--darrm-mist)); }
.form-micro { font-size: 14px; color: var(--text-muted); margin-top: 14px; }

/* Domain list */
.domains { list-style: none; margin: 0; padding: 0; counter-reset: d; display: grid; gap: 0; border-top: 1px solid var(--border); }
.domains li { counter-increment: d; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.domains li::before { content: "0" counter(d); font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text-muted); padding-top: 3px; grid-row: span 2; }
.domains b { font-family: var(--font-display); font-weight: 600; }
.domains span { color: var(--text-muted); }

/* Cohorts */
.cohort { display: grid; gap: 6px; }
.cohort .mono { color: var(--text-muted); }

/* Footer */
.site-footer { background: var(--darrm-ink); color: var(--on-ink-muted); padding-block: 64px 32px; font-size: 15px; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer__brand img { width: 200px; }
.site-footer__brand p { margin-top: 18px; max-width: 34ch; }
.site-footer h4 { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-muted); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__base { border-top: 1px solid #2a3647; margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 14px; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

@media (max-width: 640px) { .band { padding-block: 64px; } .hero { padding-block: 56px 64px; } body { font-size: 16px; } .lead { font-size: 18px; } .form-panel { padding: 24px; } }
[hidden] { display: none !important; }

/* Resources articles (Wix Blog) */
.article { max-width: 760px; }
.article__cover { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 4px; margin-bottom: 40px; }
.card__cover { width: calc(100% + 0px); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; margin-bottom: 16px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.ricos-content { font-size: 18px; line-height: 1.65; color: var(--text); }
.glossary { display: grid; gap: 0; max-width: 900px; margin: 0; }
.glossary__row { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid rgba(15,22,35,.12); }
.glossary dt { font-weight: 600; }
.glossary dd { margin: 0; color: var(--text-muted); white-space: pre-line; }
@media (max-width: 640px) { .glossary__row { grid-template-columns: 1fr; gap: 6px; } }
.glossary-az { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; position: sticky; top: 0; background: var(--surface); padding: 12px 0; z-index: 2; }
.glossary-az a { font-family: var(--font-display); font-weight: 700; min-width: 36px; text-align: center; padding: 6px 8px; border: 1px solid rgba(15,22,35,.15); border-radius: 2px; text-decoration: none; color: var(--text); }
.glossary-az a:hover { border-color: currentColor; }
.glossary-group { margin-bottom: 40px; scroll-margin-top: 80px; }
.glossary-letter { font-size: 28px; margin: 0 0 8px; }
.glossary__row { scroll-margin-top: 80px; }
.glossary__row:target { background: rgba(3,154,192,.08); }
