/* DirectWork site styles. Colours and sizes come from tokens.css.
   No inline styles anywhere in templates: the Content-Security-Policy forbids them. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
body.menu-open { overflow: hidden; }

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.1; margin: 0; }

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

/* Visible 3px focus ring for keyboard users (§16) */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: 56px; padding-bottom: 56px; }
.section--narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 50;
  padding: 12px 16px;
  border-radius: var(--radius-control);
  background: var(--deep);
  color: #FFFFFF;
  font-weight: 600;
}
.skip-link:focus { top: 16px; color: #FFFFFF; }

/* Buttons (§15.3) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--teal);
  border-radius: var(--radius-control);
  background: var(--teal);
  color: #FFFFFF;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #FFFFFF; }
.button--secondary { background: var(--surface); border-color: var(--input-border); color: var(--ink); }
.button--secondary:hover { background: var(--mint-2); border-color: var(--input-border); color: var(--ink); }
.button--small { min-height: var(--tap); padding: 0 18px; font-size: 15px; border-radius: 8px; }
.button--block { display: flex; width: 100%; min-height: 50px; }
/* Cards make their links ink-coloured; buttons inside cards must keep their own colours. */
.card .button { color: #FFFFFF; }
.card .button--secondary { color: var(--ink); }

/* Download items (§15.3): the same box everywhere a file can be downloaded. */
.download-list { display: grid; gap: 10px; margin-top: 14px; }
.download-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px;
  border: 1px solid var(--input-border); border-radius: var(--radius-control); background: var(--surface);
  color: var(--ink); text-decoration: none; }
.card .download-item { color: var(--ink); }
.download-item:hover { border-color: var(--teal); background: var(--mint-2); }
.download-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.download-item__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; background: var(--teal); color: #FFFFFF; }
.download-item__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.download-item__label { font-size: 15px; font-weight: 600; line-height: 1.3; }
.download-item__meta { font-size: 13px; color: var(--muted); }

/* Header */
.site-header { position: relative; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-header__logo { display: inline-flex; align-items: center; min-height: var(--tap); }
.site-header__logo img { height: 32px; width: auto; display: block; }

.site-nav { flex: 1 1 auto; }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav__link:hover { color: var(--teal); background: var(--mint-2); }
.site-nav__link[aria-current="page"] { color: var(--teal); font-weight: 600; }

.site-header__account { display: flex; flex-wrap: wrap; gap: 12px; }

.menu-button {
  margin-left: auto;
  width: var(--tap);
  height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

/* Phone menu: slides in from the right (D18, "Phone – home" board) */
.mobile-menu { position: fixed; inset: 0; z-index: 40; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(15, 46, 43, .55); }
.mobile-menu__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 86vw);
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
}
.mobile-menu__close {
  align-self: flex-end;
  width: var(--tap);
  height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.mobile-menu__list { margin: 0; padding: 0; list-style: none; }
.mobile-menu__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 8px;
  border-bottom: 1px solid #EEF1EF;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu__link[aria-current="page"] { color: var(--teal); }
.mobile-menu__account { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

/* Desktop: the menu button and phone menu are never shown */
@media (min-width: 961px) {
  .menu-button, .mobile-menu { display: none !important; }
}
/* Phones and tablets, when the menu script is running: menu button instead of the full menu.
   Without the script, the full menu simply wraps onto more lines. */
@media (max-width: 960px) {
  .js .site-nav, .js .site-header__account { display: none; }
  .site-header__inner { min-height: 64px; }
  .site-header__logo img { height: 28px; }
}

/* Hero (light header, D14) */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--mint);
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 88px;
  padding-bottom: 96px;
}
.hero__title { font-size: 60px; line-height: 1.05; max-width: 820px; }
.hero__lead { margin: 0; font-size: 20px; line-height: 1.5; max-width: 680px; color: var(--body-2); }
.hero__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__blob--amber {
  right: -120px; top: -140px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(242, 179, 107, .45), rgba(242, 179, 107, 0) 70%);
}
.hero__blob--teal {
  right: 180px; bottom: -220px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(46, 160, 140, .30), rgba(46, 160, 140, 0) 70%);
}

.badge {
  margin: 0;
  align-self: flex-start;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-dark);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

.page-title { font-size: 44px; margin-bottom: 16px; }
.lead { font-size: 18px; color: var(--body-2); }

.notice {
  margin: 0;
  padding: 16px 20px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--body-2);
}

/* Messages (e.g. "Please log in again") */
.messages { padding-top: 20px; }
.message {
  margin: 0 0 8px;
  padding: 14px 18px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
}
.message--error { border-color: #E5B4A8; background: #FBEDE9; color: var(--danger); }
.message--success { border-color: #B9D8CF; background: var(--mint-2); color: var(--teal-dark); }

/* Login, sign-up, password and 2-step pages */
.auth-page { max-width: 560px; }
.auth-page h1 { font-size: 34px; margin-bottom: 12px; }
.auth-page p { color: var(--body-2); }
.auth-page form { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.auth-page label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.auth-page input[type="email"], .auth-page input[type="password"], .auth-page input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--surface);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.auth-page input:focus { border-color: var(--teal); }
.auth-page button[type="submit"], .auth-page button:not([type]) {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--teal);
  border-radius: var(--radius-control);
  background: var(--teal);
  color: #FFFFFF;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.auth-page button[type="submit"]:hover { background: var(--teal-dark); }
.auth-page img { display: block; width: 200px; height: 200px; margin: 8px 0; background: #FFFFFF; }
.auth-page ul.errorlist, .auth-page .errorlist { margin: 4px 0 0; padding: 0; list-style: none; color: var(--danger); font-size: 14px; }
.auth-page .helptext, .auth-page small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Search box */
.search-form { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.search-form__input {
  flex: 1 1 200px;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;   /* 16px stops phones zooming in when typing */
}
.search-form__input:focus { border-color: var(--teal); }
.search-form__button { min-height: 52px; padding: 0 24px; }

/* 404 page ("Page not found" board) */
.not-found {
  max-width: 760px;
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.not-found__code {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 120px;
  line-height: 1;
  color: #CFE3DD;
}
.not-found__title { font-size: 38px; }
.not-found__text { margin: 0; font-size: 17px; color: var(--muted); }
.not-found__search { max-width: 560px; }
.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.quick-links a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 500; }

/* Footer */
.site-footer { background: var(--deep); color: var(--footer-text); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 14px;
  line-height: 1.6;
}
.site-footer__disclaimer { margin: 0; max-width: 560px; }
.site-footer__disclaimer a { color: #FFFFFF; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__links a { display: inline-flex; align-items: center; min-height: var(--tap); color: #FFFFFF; }
.site-footer__links a:hover { color: var(--amber); }

/* --- Shared building blocks (M4) ---------------------------------------------------- */
.muted { color: var(--muted); margin: 0; }
.section--tight { padding-top: 24px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 16px; margin-bottom: 24px; }
.section-head--small { margin-bottom: 14px; align-items: baseline; }
.section-title { font-size: 36px; margin-bottom: 0; }
.section-head .section-title, .section > .section-title { margin-bottom: 0; }
.section > .section-title { margin-bottom: 24px; }
.section-title--small { font-size: 32px; margin-bottom: 8px; }
.block-title { font-family: var(--font-body); font-size: 20px; font-weight: 700; margin: 0 0 14px; }
.block-title--small { font-size: 18px; margin-bottom: 4px; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 600; }
.page-head { margin-bottom: 24px; }
.page-head .page-title { font-size: 40px; margin-bottom: 6px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
a.card, .card a { color: var(--ink); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-panel); padding: 40px; }

.type-label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--amber-text); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tag { padding: 5px 10px; border-radius: 6px; background: #F1F3F2; font-size: 13px; }
.tag--mint { background: var(--mint); color: var(--teal-dark); font-weight: 500; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1px solid #A9C4BD; background: var(--surface);
  color: var(--ink); font-size: 14px; text-decoration: none;
}
.pill:hover { border-color: var(--teal); color: var(--teal); }
.pill--toggle { min-height: var(--tap); padding: 0 16px; border-color: var(--input-border); font-weight: 500; }
.pill--toggle[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

.icon-tile {
  width: var(--tap); height: var(--tap); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--cat-tint, var(--mint)); color: var(--cat-ink, var(--teal));
}
.icon-tile--large { width: 64px; height: 64px; border-radius: 18px; background: #FFFFFF; }
.icon-tile--large svg { width: 34px; height: 34px; }

/* Home */
.hero__search { max-width: 760px; margin-top: 8px; }
.search-form__input--large { height: 56px; font-size: 17px; padding: 0 20px; }
.search-form__button--large { min-height: 56px; padding: 0 28px; font-size: 17px; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.popular__label { font-size: 14px; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.category-card { display: flex; flex-direction: column; gap: 10px; min-height: 150px; height: 100%; padding: 24px; text-decoration: none; }
.category-card__name { font-family: var(--font-heading); font-size: 20px; font-weight: 600; }
.category-card__desc { font-size: 14px; line-height: 1.5; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature-card { padding: 28px; }
.feature-card h3 { font-family: var(--font-body); font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { margin: 0; font-size: 15px; color: var(--muted); }
.pathway-strip .section-head { align-items: flex-end; }
.stage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.stage-tile { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px; border-radius: 12px; background: var(--mint-2); color: var(--ink); text-decoration: none; }
.stage-tile:hover { color: var(--ink); background: var(--stage-colour, var(--mint)); }
.stage-tile__number { font-size: 13px; font-weight: 600; color: var(--teal); }
.stage-tile__name { font-weight: 600; font-size: 16px; }
.stage-tile__desc { font-size: 14px; line-height: 1.45; color: var(--muted); }
.free-band { background: var(--mint-2); }
.free-band__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.free-band__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.free-band__text .section-title { font-size: 40px; }
.free-band__text p, .free-band__text ul { margin: 0; color: var(--body-2); font-size: 17px; }
.free-band__text ul { padding-left: 20px; line-height: 1.9; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.safe-card { flex: 1 1 380px; padding: 28px; display: flex; flex-direction: column; gap: 16px; border-color: #D3E0DC; }
.safe-card p { margin: 0; font-size: 15px; color: var(--muted); }
.safe-card .safe-card__title { display: flex; gap: 12px; align-items: center; font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: var(--ink); }
.safe-card__title svg { color: var(--teal); }

/* Resource cards */
.resource-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.resource-card__title { font-size: 20px; line-height: 1.25; }
.resource-card__title a { color: var(--ink); text-decoration: none; }
.resource-card__title a::after { content: ''; position: absolute; inset: 0; }   /* whole card clickable */
.resource-card { position: relative; }
.resource-card__summary { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.resource-card .tags { margin-top: auto; }

/* Library */
.library__search { margin-bottom: 24px; }
.select {
  min-height: 52px; padding: 0 12px; border: 1px solid var(--input-border); border-radius: var(--radius-control);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px;
}
.select--block { width: 100%; min-height: var(--tap); border-radius: 8px; font-size: 14px; }
.library__layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.filters { flex: 1 1 260px; max-width: 300px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.filters__toggle { display: none; }
.filters__body { padding: 22px; display: flex; flex-direction: column; gap: 22px; }
.filter-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter-group legend, .filter-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 36px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.pill-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-check { position: relative; cursor: pointer; }
.pill-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill-check span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--input-border); background: var(--surface); font-size: 14px; font-weight: 500;
}
.pill-check input:checked + span { background: var(--teal); border-color: var(--teal); color: #FFFFFF; }
.pill-check input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.filters__actions { display: flex; flex-direction: column; gap: 10px; }
.js .filters__actions .button--block:first-child { display: none; }   /* desktop: filters apply as you change them */
.library__results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.result-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.result-count { margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--radius-pill);
  background: var(--mint); color: var(--teal-dark); font-weight: 500; text-decoration: none;
}
.chip:hover { background: #CFE3DD; color: var(--teal-dark); }
.empty-state { padding: 32px; border: 1px dashed var(--input-border); border-radius: var(--radius-card); background: var(--surface); }
.empty-state h3 { font-family: var(--font-body); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--body-2); }
.empty-state .pill-list { margin-bottom: 16px; }
.pagination { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; }
.pagination__status { color: var(--muted); font-size: 14px; }

/* Category page */
.category-hero { background: color-mix(in srgb, var(--cat-tint, var(--mint)) 60%, #FFFFFF); }
.category-hero__inner { display: flex; flex-direction: column; gap: 16px; padding-top: 40px; padding-bottom: 48px; }
.breadcrumb { font-size: 14px; color: var(--body-2); }
.breadcrumb a { color: inherit; }
.category-hero__row { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: flex-end; justify-content: space-between; }
.category-hero__text { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.category-hero__title { font-size: 52px; line-height: 1.05; }
.category-hero__desc { margin: 0; font-size: 18px; line-height: 1.55; color: var(--body-2); }
.button--dark { background: var(--ink); border-color: var(--ink); }
.button--dark:hover { background: #000000; border-color: #000000; }
.category-body { display: flex; flex-direction: column; gap: 32px; padding-top: 32px; }
.warn-box { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 12px; background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--amber-text); }
.warn-box svg { flex: none; margin-top: 2px; }
.warn-box p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--warn-text); }
.series-block { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; padding: 32px; border-radius: var(--radius-panel); background: var(--deep); color: #FFFFFF; }
.series-block__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 10px; }
.series-block__label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.series-block__title { font-size: 30px; }
.series-block__desc { margin: 0; color: #D3E0DC; }
.series-block__list { flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.series-block__list a { display: flex; gap: 14px; align-items: center; min-height: 52px; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #FFFFFF; text-decoration: none; }
.series-block__list a:hover { background: rgba(255, 255, 255, .14); }
.series-block__number { width: 28px; height: 28px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--amber); color: var(--ink); font-weight: 700; font-size: 13px; }
.series-block__name { flex: 1; font-weight: 500; }
.series-block__meta { font-size: 13px; color: #A9BFB9; }
.guides-link { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px; }

/* --- M5: session, pathway and guide pages ------------------------------------------- */
.small { font-size: 13px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; color: var(--teal-dark); }
.breadcrumb--page { margin-bottom: 18px; color: var(--muted); }
.breadcrumb--page a { color: var(--teal); }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p, .rich li { line-height: 1.7; }
.plain-list { margin: 0; padding-left: 20px; line-height: 1.9; color: var(--body-2); }
.content-card { padding: 28px; }
.content-card__title { font-size: 22px; margin-bottom: 16px; }
.mint-panel { background: var(--mint-2); border-radius: var(--radius-card); }
.mint-panel p { margin: 0 0 12px; color: var(--body-2); }

.resource__layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.resource__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.resource__side { flex: 1 1 280px; max-width: 340px; display: flex; flex-direction: column; gap: 16px; }
.resource__head { display: flex; flex-direction: column; gap: 14px; }
.resource__title { font-size: 44px; }
.resource__summary { margin: 0; font-size: 18px; line-height: 1.55; color: var(--body-2); max-width: 720px; }
.tags--large .tag { padding: 6px 12px; font-size: 14px; background: var(--surface); border: 1px solid var(--border); }
.tags--large .tag--mint { background: var(--mint); border-color: var(--mint); }
.resource__cover { width: 100%; height: auto; border-radius: var(--radius-card); }
.warn-box--large { padding: 18px 20px; }
.warn-box__title { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--warn-text); margin: 0 0 4px; }
.warn-box .rich, .warn-box .rich p { color: var(--warn-text); font-size: 15px; }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 24px; margin: 0; }
.glance dt { font-weight: 600; margin-bottom: 4px; }
.glance dd { margin: 0; color: var(--muted); }
.steps { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step__number { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--teal); color: #FFFFFF; font-weight: 600; }
.step__head { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.step__name { font-weight: 600; font-size: 17px; }
.step__time { font-size: 14px; color: var(--muted); }
.step__text { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.step__say { margin-top: 6px; padding: 6px 10px; border-left: 3px solid var(--teal); background: var(--mint-2); color: var(--teal-dark); font-weight: 500; border-radius: 0 6px 6px 0; }
.gate { padding: 28px; border-style: dashed; border-color: var(--input-border); }
.gate p { color: var(--body-2); }
.side-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.side-card__title { font-family: var(--font-body); font-size: 17px; font-weight: 700; margin: 0; }
.side-card p { margin: 0; }
.side-link { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--bg); color: var(--ink); text-decoration: none; }
.side-link:hover { background: var(--mint-2); color: var(--ink); }
.side-link__title { font-weight: 600; font-size: 15px; }
.side-link__meta { font-size: 13px; color: var(--muted); }

.pathway-hero { background: var(--mint); }
.pathway-hero__inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.pathway-hero__text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 14px; }
.pathway-hero__title { font-size: 52px; line-height: 1.05; }
.pathway-hero__lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--body-2); max-width: 600px; }
.pathway-hero__tiles { flex: 1 1 340px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hero-tile { aspect-ratio: 1; border-radius: 18px; background: var(--stage-colour, var(--mint-2)); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-tile__number { font-family: var(--font-heading); font-weight: 600; font-size: 28px; }
.hero-tile__name { font-size: 13px; font-weight: 600; line-height: 1.25; }
.pathway-body { display: flex; flex-direction: column; gap: 28px; padding-top: 40px; }
.stage-tabs ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.stage-tab { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 10px 14px; border-radius: 12px; border: 1px solid #D6DDDA; background: var(--surface); color: var(--ink); text-decoration: none; }
.stage-tab:hover { border-color: var(--teal); color: var(--ink); }
.stage-tab[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #FFFFFF; }
.stage-tab__number { font-size: 12px; font-weight: 600; opacity: .85; }
.stage-tab__name { font-size: 15px; font-weight: 600; }
.stage-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; scroll-margin-top: 16px; }
.stage-main { flex: 2 1 480px; }
.stage-main__title { font-size: 26px; margin-bottom: 4px; }
.stage-main .muted { margin-bottom: 18px; }
.stage-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.skill-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.skill-list li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--bg); font-size: 15px; }
.skill-list--plain li { background: transparent; padding: 4px 0; }
.skill-box { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 2px solid #8FA6A0; }
/* Tickable checklists (ticks are never saved) */
.check-item { display: flex; gap: 12px; align-items: center; width: 100%; cursor: pointer; }
.check-item__box { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.check-item__box:checked + span { color: var(--muted); text-decoration: line-through; }
.card-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.guide__actions { margin-top: 16px; }
.guide__actions .button { gap: 8px; }
/* Key timescales (staff guides): a simple vertical timeline */
.timeline { list-style: none; margin: 8px 0 12px; padding: 0 0 0 22px; border-left: 3px solid var(--mint); }
.timeline__item { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 16px 14px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; left: -31px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--teal); border: 3px solid var(--surface); }
.timeline__when { font-weight: 700; color: var(--teal-dark); font-size: 15px; }
.timeline__what { font-size: 15px; }
.print-only { display: none; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.how-step { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.how-step__number { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--teal); color: #FFFFFF; font-weight: 700; }
.how-step__title { font-weight: 600; font-size: 16px; }
.how-step__text { font-size: 14px; line-height: 1.55; color: var(--muted); }

.plain-hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.plain-hero__inner { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.plain-hero .page-title { font-size: 48px; margin: 0; }
.plain-hero .lead { margin: 0; max-width: 680px; color: var(--muted); }
.plain-hero__search { max-width: 680px; margin-top: 6px; }
.guides { display: flex; flex-direction: column; gap: 36px; padding-top: 40px; }
.guide-group { display: flex; flex-direction: column; gap: 14px; }
.guide-group__title { font-size: 24px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; text-decoration: none; }
.guide-card__title { font-weight: 600; font-size: 17px; line-height: 1.3; }
.guide-card__source { font-size: 13px; color: var(--muted); line-height: 1.5; }
.guide-card__date { font-size: 12px; font-weight: 600; color: var(--teal-dark); }

.guide__layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.guide__contents { flex: 1 1 220px; max-width: 250px; position: sticky; top: 16px; font-size: 14px; }
.guide__contents-title { margin: 0 0 8px; font-weight: 600; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.guide__contents ul { margin: 0; padding: 0; list-style: none; }
.guide__contents a { display: flex; align-items: center; min-height: 36px; text-decoration: none; }
.guide__main { flex: 999 1 560px; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 28px; }
.guide__head { display: flex; flex-direction: column; gap: 12px; }
.guide__title { font-size: 44px; }
.guide__summary { margin: 0; font-size: 18px; line-height: 1.6; color: var(--body-2); }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.meta { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); }
.meta--mint { background: var(--mint); border-color: var(--mint); color: var(--teal-dark); font-weight: 600; }
.meta--button { font: inherit; font-weight: 600; color: var(--teal); cursor: pointer; min-height: 32px; }
.key-points { padding: 26px; border-radius: 16px; background: var(--deep); color: #FFFFFF; scroll-margin-top: 16px; }
.key-points__title { font-family: var(--font-body); font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.key-points ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.8; color: #D3E0DC; }
.guide__body h2, .guide__h2 { font-size: 26px; margin: 28px 0 10px; scroll-margin-top: 16px; }
.guide__body h3 { font-family: var(--font-body); font-size: 19px; font-weight: 700; margin: 20px 0 8px; }
.guide__body p, .guide__body li { font-size: 16px; color: var(--body-2); }
.do-dont { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; scroll-margin-top: 16px; }
.do-dont .card { padding: 22px; }
.do-dont h3 { font-family: var(--font-body); font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.do-dont ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.8; color: var(--body-2); }
.do-dont__do { border-color: #CFE3DD; }
.do-dont__do h3 { color: var(--teal-dark); }
.do-dont__dont { border-color: var(--warn-border); }
.do-dont__dont h3 { color: var(--amber-text); }
.before-after { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.before-after__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.before-after__before, .before-after__after { padding: 20px; border-radius: var(--radius-card); }
.before-after__before { background: #FDF1EE; }
.before-after__after { background: var(--mint-2); }
.before-after__label { margin: 0 0 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.before-after__before .before-after__label { color: var(--danger); }
.before-after__after .before-after__label { color: var(--teal-dark); }
.before-after__grid p:last-child { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body-2); }
.feedback { padding: 18px 20px; }
.feedback__form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.feedback__question { font-weight: 600; }
.feedback__thanks { margin: 0; font-weight: 600; color: var(--teal-dark); }
.print-button { margin-top: 4px; }

/* --- M7: accounts ----------------------------------------------------------------- */
.avatar { width: var(--tap); height: var(--tap); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #D3E0DC; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.avatar:hover { background: var(--mint); color: var(--ink); }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-row .form-field { flex: 1 1 200px; }
.form-field label { font-size: 14px; font-weight: 600; }
.form-field__optional { font-weight: 400; color: var(--muted); }
.form-field input:not([type="checkbox"]), .form-field select, .form-field textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--input-border); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
}
.form-field textarea { min-height: 140px; padding: 12px 14px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--teal); }
.form-field--error input, .form-field--error select, .form-field--error textarea { border-color: var(--danger); }
.form-field__help { margin: 0; font-size: 13px; color: var(--muted); }
.form-field__help--tight { margin-top: -8px; }
.form-field__error, .form-error { margin: 0; font-size: 14px; color: var(--danger); font-weight: 500; }
.form-error { padding: 12px 14px; border-radius: 8px; background: #FBEDE9; border: 1px solid #E5B4A8; }
.form-row { display: flex; flex-wrap: wrap; gap: 16px 12px; }
.check--top { align-items: flex-start; line-height: 1.5; min-height: 0; }
.check--top input { margin-top: 2px; }
.turnstile { min-height: 65px; }

.entrance { display: flex; flex-wrap: wrap; min-height: calc(100vh - 72px); }
.entrance__panel { flex: 1 1 420px; background: var(--deep); color: #FFFFFF; padding: 48px; display: flex; flex-direction: column; gap: 28px; }
.entrance__title { font-size: 40px; line-height: 1.1; max-width: 460px; margin-top: 24px; }
.entrance__perks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; max-width: 460px; }
.entrance__perks li { position: relative; padding-left: 38px; font-size: 16px; line-height: 1.5; color: #D3E0DC; }
.entrance__perks li::before { content: ''; position: absolute; left: 4px; top: 3px; width: 14px; height: 8px; border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(-45deg); }
.entrance__note { margin-top: auto; max-width: 460px; display: flex; gap: 12px; padding: 18px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: var(--focus); }
.entrance__note svg { flex: none; }
.entrance__note p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--footer-text); }
.entrance__main { flex: 999 1 520px; padding: 48px 24px; display: flex; justify-content: center; }
.entrance__box { width: 100%; max-width: 500px; display: flex; flex-direction: column; gap: 24px; }
.entrance__tabs { display: flex; gap: 6px; padding: 6px; border-radius: 12px; background: #E8ECEA; }
.entrance__tabs a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: var(--tap); border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.entrance__tabs a[aria-current="page"] { background: var(--surface); }
.entrance__form { display: flex; flex-direction: column; gap: 16px; }
.entrance__heading { font-size: 28px; margin-bottom: 4px; }
.entrance__form p { margin: 0; }
.entrance__small { font-size: 13px; color: var(--muted); text-align: center; }
.entrance__form .button--block { min-height: 52px; }

/* "Use your professional judgement" note on every session and guide */
.responsibility { padding: 18px 20px; border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--surface); border-left-width: 1px; }
.responsibility p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--body-2); }
.responsibility .responsibility__title { font-weight: 700; color: var(--ink); font-size: 15px; }
.responsibility .responsibility__links { margin: 0; font-size: 13px; }

/* Before launch (security/launch_lock.py) */
.coming-soon { min-height: 100vh; max-width: 760px; margin: 0 auto; padding: 48px var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.coming-soon img { width: 185px; height: auto; }
.coming-soon__title { font-size: 44px; }
@media (max-width: 640px) { .coming-soon__title { font-size: 30px; } }

/* --- M11: about and policies -------------------------------------------------------- */
.about { display: flex; flex-direction: column; gap: 48px; }
.about__block .lead { max-width: 760px; }
.contact { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.contact .warn-box p { margin: 0; }
.policy { max-width: 900px; display: flex; flex-direction: column; gap: 20px; }
.policy__tabs { flex-wrap: wrap; }
.policy__tabs a { flex: 1 1 140px; }
.policy__updated { margin: 0; font-size: 14px; color: var(--muted); }
.policy__body h2 { font-size: 30px; margin-bottom: 12px; }
.policy__body h3 { font-family: var(--font-body); font-size: 18px; font-weight: 700; margin: 22px 0 6px; padding-top: 18px; border-top: 1px solid #EEF1EF; }
.policy__body p, .policy__body li { color: var(--body-2); }

/* --- M8: My account ---------------------------------------------------------------- */
.account { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.account__menu { flex: 1 1 220px; max-width: 240px; }
.account__menu ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.account__menu a, .account__menu button {
  display: flex; align-items: center; width: 100%; min-height: var(--tap); padding: 0 14px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); font: inherit; font-weight: 500; font-size: 15px; text-decoration: none; text-align: left; cursor: pointer;
}
.account__menu a:hover, .account__menu button:hover { background: var(--mint-2); color: var(--ink); }
.account__menu a[aria-current="page"] { background: var(--mint); color: var(--teal-dark); }
.account__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.account__title { font-size: 36px; margin-bottom: 4px; }
.account__section { display: flex; flex-direction: column; }
.account__columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.side-link--row { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.inline-form .search-form__input { flex: 1 1 160px; height: var(--tap); font-size: 15px; }
.inline-form .button { min-height: var(--tap); }
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.stack-form--tight { gap: 8px; }
.collection-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.collection-list__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.collection-list__title { font-weight: 600; }
.link-button { min-height: var(--tap); border: 0; background: none; color: var(--danger); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.button--danger { background: var(--surface); border-color: #E5B4A8; color: var(--danger); }
.button--danger:hover { background: #FBEDE9; border-color: var(--danger); color: var(--danger); }
.danger-zone { border-color: #E5B4A8; }
@media (max-width: 960px) { .account__menu { max-width: none; flex-basis: 100%; } .account__menu ul { flex-direction: row; flex-wrap: wrap; } .account__menu a, .account__menu button { width: auto; } }

@media (max-width: 640px) {
  .entrance__panel { padding: 28px 20px; order: 2; }
  .entrance__title { font-size: 28px; margin-top: 0; }
  .entrance__main { padding: 28px 20px; }
}

@media (max-width: 960px) {
  .guide__contents { position: static; max-width: none; flex-basis: 100%; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
  .resource__side { max-width: none; }
}
@media (max-width: 640px) {
  .resource__title, .guide__title { font-size: 32px; }
  .pathway-hero__title { font-size: 34px; }
  .plain-hero .page-title { font-size: 34px; }
  .content-card { padding: 22px; }
}

@media (max-width: 960px) {
  .filters { max-width: none; flex-basis: 100%; }
  .filters__toggle {
    display: flex; align-items: center; min-height: 52px; padding: 0 18px; cursor: pointer;
    font-weight: 600; list-style: none;
  }
  .filters__toggle::-webkit-details-marker { display: none; }
  .filters__toggle::after { content: '+'; margin-left: auto; font-size: 22px; color: var(--teal); }
  .filters[open] .filters__toggle::after { content: '–'; }
  .filters[open] .filters__toggle { border-bottom: 1px solid var(--border); }
  .js .filters__actions .button--block:first-child { display: flex; }
}

/* Phones */
@media (max-width: 640px) {
  .section-title { font-size: 26px; }
  .free-band__text .section-title { font-size: 28px; }
  .panel { padding: 24px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-card { min-height: 104px; padding: 16px; }
  .category-card__name { font-size: 15px; font-family: var(--font-body); font-weight: 600; line-height: 1.25; }
  .category-card__desc { display: none; }
  .stage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .stage-tile { aspect-ratio: 1; padding: 10px; justify-content: space-between; background: var(--stage-colour, var(--mint-2)); }
  .stage-tile__number { font-family: var(--font-heading); font-size: 24px; color: var(--ink); }
  .stage-tile__name { font-size: 12px; line-height: 1.2; }
  .stage-tile__desc { display: none; }
  .category-hero__title { font-size: 34px; }
  .series-block { padding: 24px; }
  .page-head .page-title { font-size: 32px; }
  .search-form__button--large { flex: 1 1 100%; }
  .hero__inner { padding-top: 56px; padding-bottom: 64px; }
  .hero__title { font-size: 34px; line-height: 1.1; }
  .hero__lead { font-size: 17px; }
  .page-title { font-size: 32px; }
  .not-found { padding-top: 56px; padding-bottom: 64px; }
  .not-found__code { font-size: 88px; }
  .not-found__title { font-size: 30px; }
}

/* Motion: only for people who haven't asked their device to reduce motion (§15.4) */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .55s var(--ease-rise) both; }
  .rise--1 { animation-delay: .08s; }
  .rise--2 { animation-delay: .16s; }
  .rise--3 { animation-delay: .24s; }
  .card { transition: transform .2s ease, box-shadow .2s ease; }
  a.card:hover, .resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  .hero__blob { animation: drift 14s ease-in-out infinite alternate; }
  .mobile-menu__backdrop { transition: opacity .25s ease; opacity: 0; }
  .mobile-menu__panel { transition: transform .3s var(--ease-rise); transform: translateX(100%); }
  .mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
  .mobile-menu.is-open .mobile-menu__panel { transform: none; }
  .site-nav__link, .button { transition: background-color .15s ease, color .15s ease; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.08); } }

/* Print (§16): sessions and guides print cleanly on A4 */
@page { size: A4; margin: 16mm; }
/* Where it came from (Marin, 2 Dec 2026): ONLY on printouts, never on screen. A logo line at the top,
   a faint logo on every printed page, and the web address + "not advice" line at the end. */
.watermark, .source-stamp, .print-source { display: none; }

@media print {
  .print-hide, .no-print { display: none !important; }
  .printing-part .print-only { display: flex; }
  .print-head { align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14pt; padding-bottom: 8pt; border-bottom: 1px solid #000000; font-size: 10pt; }
  .print-head img { height: 22px; width: auto; }
  .print-foot { margin-top: 18pt; font-size: 11pt; }
  .check-item__box:checked + span { color: #000000; text-decoration: none; }
  .watermark { display: block; position: fixed; top: 50%; left: 50%; width: 130mm; height: auto;
    transform: translate(-50%, -50%); opacity: .06; pointer-events: none; }
  .source-stamp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16pt; font-size: 10pt; color: #000000; }
  .source-stamp img { height: 24px; width: auto; }
  .print-source { display: block; margin: 18pt 0 0; padding-top: 8pt; border-top: 1px solid #000000; font-size: 9pt; color: #000000; break-inside: avoid; }
  .site-header, .site-footer, .skip-link, .hero__blob, .mobile-menu, .breadcrumb, .guide__contents,
  .resource__side, .feedback, .print-button, [data-print], .button, .filters, .pagination, .messages { display: none !important; }
  body { background: #FFFFFF; font-size: 11pt; color: #000000; }
  .container { max-width: none; padding: 0; }
  .section { padding: 0; }
  .card, .mint-panel, .warn-box, .key-points { break-inside: avoid; box-shadow: none !important; transform: none !important; }
  .key-points { background: #FFFFFF; color: #000000; border: 2px solid #000000; }
  .key-points ul { color: #000000; }
  .resource__layout, .guide__layout { display: block; }
  .rise { animation: none !important; }
  .guide__body a[href^="http"]::after, .meta a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #333333; }
}
