/* St. Stephen Go help centre.
   The colours and type are ssgo.ca's own tokens (app/globals.css, the 2b "Road"
   set): blue grounds, amber is the one action, green means done. Amber is a
   fill and a rule, never text on white (1.8:1). Do not adjust the three brand
   colours; they are sampled from the logo. */

:root {
  --green: #016238;
  --blue: #004ca3;
  --amber: #f8b309;

  --ground: #003c82;
  --ground-deep: #00265a;
  --tint: #f1f5fa;
  --paper: #ffffff;

  --ink: #0b2036;
  --muted: #55647a;
  --line: rgba(0, 76, 163, 0.16);
  --line-strong: rgba(0, 76, 163, 0.3);
  --on-ground: #ffffff;
  --on-ground-muted: #a9c2de;

  --action-hover: #e4a508;
  --action-ink: #2a1b00;
  --note: #fff7df;

  --display: "Source Serif 4", Georgia, serif;
  --ui: Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --radius: 14px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow: 0 1px 2px rgba(0, 38, 90, 0.06), 0 8px 24px rgba(0, 38, 90, 0.08);
  --header: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--tint); color: var(--ink); font: 17px/1.62 var(--ui); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ground-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--amber); color: var(--action-ink); font-weight: 700; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.eyebrow { font: 700 12px/1.3 var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--ground); color: var(--on-ground); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: var(--header); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--on-ground); text-decoration: none; flex: none; }
.brand:hover { color: var(--on-ground); }
.brand__mark { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 3px; flex: none; }
.brand__name { font: 800 21px/1 var(--ui); letter-spacing: -0.01em; white-space: nowrap; }
.brand__name b { color: var(--amber); font-weight: 800; }
.brand__tag { font: 700 12px/1 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ground-muted); border-left: 1px solid rgba(255, 255, 255, 0.28); padding-left: 12px; margin-left: 2px; }
.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a { color: var(--on-ground); text-decoration: none; white-space: nowrap; font: 700 15px/1 var(--ui); padding: 10px 12px; border-radius: 9px; transition: background-color 0.15s; }
.site-nav a:hover { background: rgba(255, 255, 255, 0.12); }
.site-nav a[aria-current="true"] { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 -3px 0 var(--amber); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.to-site { color: var(--on-ground-muted); font: 700 14px/1 var(--ui); text-decoration: none; white-space: nowrap; }
.to-site:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; font: 700 14px/1 var(--ui); padding: 10px 12px; border-radius: 9px; cursor: pointer; }

/* ---------- search ---------- */
.search { position: relative; }
.search input { width: 220px; max-width: 100%; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.12); color: #fff; font: 15px/1 var(--ui); padding: 0 12px 0 36px; }
.search input::placeholder { color: var(--on-ground-muted); }
.search input:focus { background: #fff; color: var(--ink); outline: 3px solid var(--amber); outline-offset: 0; }
.search svg { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; color: var(--on-ground-muted); pointer-events: none; }
.search input:focus + svg { color: var(--muted); }
.search__results { position: absolute; right: 0; top: calc(100% + 8px); width: min(460px, 92vw); max-height: 70vh; overflow: auto; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: none; z-index: 40; }
.search__results.is-open { display: block; }
.search__results a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.search__results a:hover, .search__results a.is-active { background: var(--tint); }
.search__results strong { display: block; font: 700 15px/1.3 var(--ui); }
.search__results span { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.search__results em { font-style: normal; font: 700 11px/1 var(--ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.search__empty { padding: 14px 12px; color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- home ---------- */
.hero { background: var(--ground); color: var(--on-ground); padding: 56px 0 120px; }
.hero h1 { font: 600 clamp(34px, 5.2vw, 56px)/1.06 var(--display); letter-spacing: -0.015em; margin: 0 0 14px; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p { color: var(--on-ground-muted); font-size: 19px; max-width: 56ch; margin: 0 0 26px; }
.hero .search input { width: min(560px, 100%); height: 56px; font-size: 18px; padding-left: 48px; border-radius: 14px; background: #fff; color: var(--ink); border: 0; }
.hero .search input::placeholder { color: var(--muted); }
.hero .search svg { left: 16px; top: 18px; width: 20px; height: 20px; color: var(--muted); }
.hero .search__results { left: 0; right: auto; width: min(560px, 92vw); }
.roles { margin-top: -78px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; transition: transform 0.16s ease, box-shadow 0.16s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 38, 90, 0.08), 0 14px 34px rgba(0, 38, 90, 0.13); }
.card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.card__icon svg { width: 26px; height: 26px; }
.card h2 { font: 600 23px/1.2 var(--display); margin: 0 0 6px; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 14px; }
.card ul { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.card li { border-bottom: 1px solid var(--line); }
.card li a { position: relative; z-index: 1; display: block; padding: 9px 0; font-size: 15px; line-height: 1.35; text-decoration: none; color: var(--blue); font-weight: 700; }
.card li a:hover { text-decoration: underline; }
.card__more { margin-top: auto; font: 700 14px/1 var(--ui); color: var(--muted); }
.band { padding: 64px 0; }
.band h2 { font: 600 30px/1.15 var(--display); margin: 0 0 22px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.steps div { padding: 22px; border-right: 1px solid var(--line); }
.steps div:last-child { border-right: 0; }
.steps b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ground); color: #fff; font: 700 14px/1 var(--mono); margin-bottom: 12px; }
.steps strong { display: block; font: 600 19px/1.2 var(--display); margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.contact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.contact h2 { margin-bottom: 8px; }
.contact p { margin: 0; color: var(--muted); }
.contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 16px; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; font-weight: 700; }
.contact dd a { text-decoration: none; }

/* ---------- section page ---------- */
.page-head { background: var(--ground); color: var(--on-ground); padding: 34px 0 40px; }
.page-head .eyebrow, .page-head .crumbs, .page-head .crumbs a { color: var(--on-ground-muted); }
.page-head h1 { font: 600 clamp(30px, 4.4vw, 46px)/1.08 var(--display); letter-spacing: -0.01em; margin: 0 0 10px; }
.page-head p { color: var(--on-ground-muted); font-size: 19px; max-width: 62ch; margin: 0; }
.crumbs { font: 700 13px/1.4 var(--ui); margin: 0 0 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; opacity: 0.6; }
.list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 34px 0 20px; counter-reset: item; }
.list a { counter-increment: item; display: grid; grid-template-columns: 38px 1fr; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--ink); transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s; }
.list a:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.list a::before { content: counter(item); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: var(--blue); font: 700 14px/1 var(--mono); }
.list strong { display: block; font: 600 20px/1.25 var(--display); }
.list span { display: block; color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 3px; }

/* ---------- article page ---------- */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr) 200px; gap: 40px; padding-top: 30px; padding-bottom: 70px; align-items: start; }
.side { position: sticky; top: calc(var(--header) + 22px); max-height: calc(100vh - var(--header) - 40px); overflow: auto; font-size: 15px; }
.side h2 { font: 700 12px/1.3 var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.side h2 a { color: inherit; text-decoration: none; }
.side ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.side li a { display: block; padding: 7px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; line-height: 1.35; }
.side li a:hover { color: var(--blue); border-left-color: var(--line-strong); }
.side li a[aria-current="page"] { border-left-color: var(--amber); font-weight: 700; color: var(--ground); background: linear-gradient(90deg, rgba(248, 179, 9, 0.12), transparent); }
.side details { display: none; }
.article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 46px); min-width: 0; }
.article > header { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 26px; }
.article h1 { font: 600 clamp(30px, 4vw, 42px)/1.1 var(--display); letter-spacing: -0.01em; margin: 0 0 10px; }
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0 0 14px; }
.meta { font: 13px/1.4 var(--ui); color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.meta b { display: inline-block; background: var(--tint); color: var(--ground); border-radius: 999px; padding: 3px 10px; font-weight: 700; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font: 600 27px/1.2 var(--display); margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose h3 { font: 600 20px/1.25 var(--display); margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 0; list-style: none; }
.prose ul > li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: 0.66em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.prose ol { counter-reset: step; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 12px; min-height: 30px; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: var(--ground); color: #fff; display: grid; place-items: center; font: 700 14px/1 var(--mono); }
.prose strong { font-weight: 700; }
.prose code { font: 0.9em var(--mono); background: var(--tint); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.prose blockquote { margin: 22px 0; padding: 14px 18px; background: var(--note); border-left: 5px solid var(--amber); border-radius: 0 10px 10px 0; }
.prose blockquote p { margin: 0; }
.table { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 12px; }
.table table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.5; }
.table th, .table td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.table th { background: var(--tint); font: 700 13px/1.3 var(--ui); letter-spacing: 0.04em; color: var(--ground); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 700; }

/* ---------- screenshots ---------- */
.shot { margin: 26px 0 30px; }
.shot__row { display: flex; gap: 18px; justify-content: center; align-items: flex-start; flex-wrap: wrap; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; }
.shot a { display: block; border: 0; background: none; padding: 0; cursor: zoom-in; transition: transform 0.16s ease; }
.shot a:hover { transform: translateY(-2px); }
.shot img { box-shadow: 0 2px 6px rgba(0, 38, 90, 0.12), 0 16px 36px rgba(0, 38, 90, 0.16); }
.shot--phone a { width: min(250px, 100%); }
.shot--phone img { border: 7px solid var(--ink); border-radius: 30px; background: var(--ink); }
.shot--tablet a, .shot--desktop a { width: 100%; }
.shot--tablet img { border: 9px solid var(--ink); border-radius: 18px; background: var(--ink); }
.shot--desktop img { border: 1px solid var(--line-strong); border-radius: 10px; }
.shot figcaption { font-size: 14.5px; line-height: 1.45; color: var(--muted); text-align: center; margin-top: 10px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(0, 20, 48, 0.82); }
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; border-radius: 12px; }
.lightbox button { position: fixed; right: 18px; top: 14px; background: var(--amber); color: var(--action-ink); border: 0; border-radius: 10px; font: 700 15px/1 var(--ui); padding: 11px 14px; cursor: pointer; }

/* ---------- article foot ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 42px; }
.pager a { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); transition: border-color 0.16s, transform 0.16s; }
.pager a:hover { border-color: var(--blue); transform: translateY(-2px); }
.pager small { display: block; font: 700 12px/1.3 var(--ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pager strong { font: 600 18px/1.25 var(--display); }
.pager .next { text-align: right; grid-column: 2; }
.helpbox { margin-top: 22px; background: var(--tint); border-radius: 12px; padding: 16px 18px; font-size: 15.5px; }
.helpbox p { margin: 0; }
.helpbox p + p { margin-top: 6px; color: var(--muted); }
.toc { position: sticky; top: calc(var(--header) + 22px); font-size: 14px; }
.toc h2 { font: 700 12px/1.3 var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--blue); }
.toc a.is-current { border-left-color: var(--amber); color: var(--ink); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--ground-deep); color: var(--on-ground-muted); padding: 44px 0 34px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
.site-footer h2 { font: 700 12px/1.3 var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer p { margin: 0 0 10px; max-width: 54ch; }
.site-footer .status { border-left: 4px solid var(--amber); padding-left: 12px; color: #fff; }
.site-footer .small { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 18px; font-size: 13px; margin: 0; max-width: none; }
.banner { background: var(--note); border-bottom: 1px solid rgba(248, 179, 9, 0.5); font-size: 14.5px; padding: 9px 0; color: var(--action-ink); }
.banner strong { font-weight: 700; }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .site-header .wrap { gap: 14px; }
  .site-nav a { padding: 10px 9px; }
  .header-tools .search input { width: 170px; }
  .to-site { display: none; }
  .doc { grid-template-columns: 230px minmax(0, 1fr); }
  .toc { display: none; }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps div:nth-child(2) { border-right: 0; }
  .steps div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 940px) {
  body { font-size: 16.5px; }
  .site-header .wrap { flex-wrap: wrap; gap: 10px 14px; padding-top: 10px; padding-bottom: 10px; }
  .brand__tag, .to-site { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .site-nav { display: none; order: 4; width: 100%; flex-direction: column; margin: 0; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 12px; }
  .header-tools { order: 3; width: 100%; margin: 0; }
  .header-tools .search, .header-tools .search input { width: 100%; }
  .search__results { left: 0; right: 0; width: auto; }
  .hero { padding: 36px 0 104px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; padding-bottom: 50px; }
  .side { position: static; max-height: none; }
  .side > h2, .side > ol { display: none; }
  .side details { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
  .side summary { font-weight: 700; padding: 13px 0; cursor: pointer; }
  .side details ol { margin-bottom: 12px; }
  .list { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 24px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; text-align: left; }
}
@media (max-width: 560px) {
  .roles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps div { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps div:last-child { border-bottom: 0; }
  .brand__name { font-size: 19px; }
  .shot__row { padding: 16px 10px; gap: 12px; }
  .shot--phone a { width: min(210px, 46%); }
  .shot--phone img { border-width: 5px; border-radius: 22px; }
  .shot--tablet img { border-width: 5px; border-radius: 12px; }
  .prose ol > li { padding-left: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .side, .toc, .pager, .site-footer, .banner, .skip { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .doc { display: block; padding: 0; }
  .article { border: 0; padding: 0; }
  .shot__row { background: none; border: 0; padding: 0; }
  .shot--phone a { width: 170px; }
  .shot, .table, .prose blockquote { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
