/* AI at Work – shared site styles.
   Look and feel: the trainer's Claude Design canvas (Fahriddin Salaydinov design system:
   Poppins, graphite neutrals, signal blue, pills, 24px cards), scaled up for readers aged 55+.
   The slides get the same look at build time (build/slide-theme.mjs); content/slides is not changed. */

/* ---------- Local fonts (offline) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
/* Atkinson Hyperlegible: no longer used by the site or slides; kept so the old slide look can be switched back on. */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); }

/* ---------- Design tokens (see the "Developer notes" board of the design) ---------- */
:root {
  /* surfaces */
  --page-bg: #fcfcfc;
  --surface-card: #ffffff;
  --surface-sunken: #f2f3f7;
  --border: #e3e4e8;
  --ring: #d2d4d8;
  /* text */
  --text-heading: #151618;
  --text-body: #252629;
  --text-meta: #3e4042;
  --text-muted: #545558;
  --text-faint: #707175;        /* only at 18px and larger */
  /* action */
  --btn-primary: #004da9;
  --btn-primary-hover: #0260ce;
  --btn-primary-fg: #f0f6fe;
  --link: #0260ce;
  --link-hover: #013e8a;
  --focus: #0260ce;
  --focus-on-dark: #90bcfe;
  --select-bg: #dbe9fe;
  /* Bibliotheek Westland orange: fills only, with ink text on it; never text on white */
  --brand-orange: #ff7320;
  /* text-safe orange */
  --accent: #b04608;
  --accent-bg: #fff1e8;
  /* status */
  --success: #166534;
  --success-bg: #dcfce7;
  --info: #1e40af;
  --info-bg: #dbeafe;
  /* card groups */
  --group-basics: #b04608;
  --group-how: #6b21a8;
  --group-working: #004da9;
  --group-risks: #151618;
  /* shape and motion */
  --r-pill: 999px;
  --r-card: 24px;
  --r-panel: 16px;
  --r-field: 12px;
  --r-band: 40px;
  --dur: 0.3s;
  --ease: ease-in-out;

  /* Arial comes right after Poppins so characters Poppins lacks (such as ≈) print in a font PDFs embed well. */
  --font-body: "Poppins", Arial, Helvetica, sans-serif;
  --font-display: var(--font-body);
  --font-reading: "Source Serif 4", Georgia, Cambria, "Times New Roman", serif;
  --font-slide: "Poppins", Arial, sans-serif;

  /* Older names, still used by some page styles and scripts. */
  --ink: var(--text-heading);
  --paper: var(--page-bg);
  --paper-2: var(--surface-sunken);
  --card: var(--surface-card);
  --line: var(--border);
  --teal: var(--btn-primary);
  --muted: var(--text-muted);
  --accent-on-dark: var(--focus-on-dark);
  --radius: var(--r-card);

  --gap: 1.5rem;
  --max: 85rem;                 /* 1360px */
  --gutter: 2.5rem;             /* 40px */
}
@media (max-width: 760px) { :root { --gutter: 1.25rem; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1.25rem;           /* 20px at the default browser size, and it grows with the reader's settings */
  line-height: 1.6;
  overflow-wrap: break-word;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text-heading);
  margin: 0 0 0.5em;
}
h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.25rem; margin-top: 4rem; }
h3 { font-size: 1.5rem; line-height: 1.3; }
h4 { font-size: 1.25rem; }
@media (max-width: 760px) {
  h1 { font-size: 2.125rem; }
  h2 { font-size: 1.75rem; margin-top: 3rem; }
  h3 { font-size: 1.35rem; }
}
p, ul, ol { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
strong, b { font-weight: 600; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--text-heading); color: #fff; padding: 0.75rem 1.5rem; border-radius: var(--r-pill); font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #fff; outline: 3px solid var(--focus); outline-offset: 2px; }

.muted { color: var(--text-muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Header and navigation ---------- */
.site-header { background: var(--surface-card); border-bottom: 1px solid var(--border); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; min-height: 5rem; padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.625rem; min-height: 48px;
  font-weight: 700; font-size: 1.625rem; letter-spacing: -0.01em;
  color: var(--link); text-decoration: none;
}
.brand::before {
  content: ""; flex: none; width: 18px; height: 18px;
  border-radius: 999px 999px 999px 4px; background: var(--brand-orange);
}
.brand:hover { color: var(--link-hover); text-decoration: none; }

.menu-toggle { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.125rem;
  border-radius: var(--r-pill); color: var(--text-body); text-decoration: none; font-weight: 500;
  transition: background-color var(--dur) var(--ease);
}
.nav-list a:hover { background: var(--surface-sunken); color: var(--text-heading); }
.nav-list a[aria-current="page"] { background: var(--text-heading); color: #fff; }
.nav-list a[aria-current="page"]:hover { background: var(--text-body); }

/* Phone: the menu sits behind a Menu button (only when JavaScript runs; otherwise the list just wraps). */
@media (max-width: 760px) {
  .header-inner { min-height: 4.5rem; }
  .brand { font-size: 1.4rem; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0 1.25rem;
    border: 0; border-radius: var(--r-pill); background: var(--surface-sunken); color: var(--text-heading);
    font: inherit; font-size: 1.25rem; font-weight: 500; cursor: pointer;
  }
  .js .menu-toggle svg { width: 22px; height: 22px; }
  .js .site-nav { flex-basis: 100%; }
  .js .site-nav[data-open="false"] { display: none; }
  .js .site-nav .nav-list { flex-direction: column; padding-bottom: 0.5rem; }
  .js .site-nav .nav-list a { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 6rem; background: var(--text-heading); color: var(--surface-sunken); }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 1rem 2rem; padding-top: 3rem; padding-bottom: 3rem;
}
.footer-inner p { margin: 0; color: var(--ring); }
.footer-inner .footer-title { font-weight: 700; font-size: 1.5rem; color: #fff; }
.site-footer :focus-visible { outline-color: var(--focus-on-dark); }
.trainer-link {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 0.5rem;
  color: var(--focus-on-dark); font-size: 1.25rem;
}
.trainer-link:hover { color: #fff; }

/* ---------- Page building blocks ---------- */
main, main.wrap { padding-top: 4rem; padding-bottom: 1rem; }

.hero { padding: 0 0 0.5rem; }
.eyebrow { font-weight: 500; color: var(--text-faint); font-size: 1.25rem; margin: 0 0 0.5rem; }
.lead, .doc-lead, .hero .subtitle { font-size: 1.5rem; line-height: 1.5; max-width: 48rem; }
.hero .meta { color: var(--text-muted); }
@media (max-width: 760px) { .lead, .doc-lead, .hero .subtitle { font-size: 1.3rem; } }

.card {
  background: var(--surface-card); border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px var(--border); padding: 1.75rem;
}
.panel, .band {
  background: var(--surface-sunken); border-radius: var(--r-band); padding: 3rem; margin-top: 4rem;
}
.panel > h2:first-child, .band > h2:first-child { margin-top: 0; }
@media (max-width: 760px) { .panel, .band { padding: 1.75rem 1.25rem; border-radius: var(--r-card); } }

.notice {
  background: var(--info-bg); color: var(--info); border-radius: var(--r-card);
  padding: 1.125rem 1.5rem; margin: 1.5rem 0; font-weight: 500;
}
.badge {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 0.875rem;
  border-radius: var(--r-pill); font-size: 1.25rem; font-weight: 500;
  background: var(--accent-bg); color: var(--accent);
}
.badge.done { background: var(--success-bg); color: var(--success); }

/* Buttons: pills. .button = blue; .button.secondary = white with a thin ring. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
  min-height: 56px; padding: 0 1.75rem; border-radius: var(--r-pill);
  border: 0; background: var(--btn-primary); color: var(--btn-primary-fg);
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: box-shadow var(--dur) var(--ease);
}
.button:hover { background: var(--btn-primary-hover); color: var(--btn-primary-fg); text-decoration: none; }
.button:active { transform: scale(0.98); }
.button.secondary { background: var(--surface-card); color: var(--text-heading); box-shadow: inset 0 0 0 1px var(--ring); }
.button.secondary:hover { background: var(--surface-card); color: var(--text-heading); box-shadow: inset 0 0 0 2px var(--text-faint); }
.button svg { flex: none; width: 22px; height: 22px; }
.button.copied, .button.secondary.copied { background: var(--success); color: #fff; box-shadow: none; }

/* Home: workshop blocks */
.blocks {
  list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22.5rem), 1fr));
}
.blocks li {
  background: var(--surface-card); border-radius: var(--r-card); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.875rem;
}
.block-head { display: flex; align-items: center; gap: 1rem; }
.block-num {
  flex: none; width: 52px; height: 52px; border-radius: var(--r-pill);
  background: var(--brand-orange); color: var(--text-heading);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.375rem; font-weight: 600; line-height: 1;
}
.blocks h3 { margin: 0; }
.blocks p { margin: 0; }
.blocks .activity-box { margin-top: auto; background: var(--surface-sunken); border-radius: var(--r-panel); padding: 0.75rem 1rem; }
.activity { color: var(--accent); font-weight: 600; }

/* Big link tiles */
.tiles {
  list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22.5rem), 1fr));
}
.tile {
  display: flex; flex-direction: column; gap: 0.75rem; height: 100%; min-height: 12.25rem;
  padding: 2rem; text-decoration: none; color: var(--text-body);
  background: var(--surface-card); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--border);
  transition: box-shadow var(--dur) var(--ease);
}
.tile:hover { box-shadow: inset 0 0 0 2px var(--focus); color: var(--text-body); text-decoration: none; }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tile-title { font-weight: 600; font-size: 1.75rem; line-height: 1.25; letter-spacing: -0.01em; color: var(--text-heading); }
.tile-arrow {
  flex: none; width: 48px; height: 48px; border-radius: var(--r-pill);
  background: var(--surface-sunken); color: var(--text-heading);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color var(--dur) var(--ease);
}
.tile-arrow svg { width: 22px; height: 22px; }
.tile:hover .tile-arrow { background: var(--btn-primary); color: var(--btn-primary-fg); }
.tile-text { display: block; }

/* Checklists */
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist label {
  display: flex; gap: 1rem; align-items: center; min-height: 60px; padding: 0.5rem 0.25rem; cursor: pointer;
}
.checklist li + li label { border-top: 1px solid var(--border); }
.checklist input[type="checkbox"] {
  flex: none; width: 28px; height: 28px; margin: 0; accent-color: var(--focus); cursor: pointer;
}
.checklist label > span:first-of-type { flex: 1; }

/* Home: the trainer's "before the session" card */
.before-card { max-width: 54rem; margin-top: 4rem; padding: 0; }
.before-card .before-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding: 1.75rem 2rem 1rem;
}
.before-card h2 { margin: 0.5rem 0 0; font-size: 1.875rem; }
.before-card .done-count { margin: 0; font-weight: 500; }
.before-card .checklist { margin: 0; }
.before-card .checklist label { padding: 0.5rem 2rem; border-top: 1px solid var(--border); }
.before-card .checklist .badge.done { display: none; }
.before-card .checklist input:checked ~ .badge.done { display: inline-flex; }
.before-card .before-foot { padding: 1rem 2rem 1.75rem; border-top: 1px solid var(--border); }
.before-card .before-foot p { margin: 0 0 1rem; }
@media (max-width: 760px) {
  .before-card .before-head { padding: 1.5rem 1.25rem 0.75rem; }
  .before-card .checklist label { padding: 0.5rem 1.25rem; }
  .before-card .before-foot { padding: 1rem 1.25rem 1.5rem; }
}

/* Home hero facts and buttons */
.facts { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 2rem 0 0; }
.facts dt { font-size: 1.25rem; font-weight: 500; color: var(--text-faint); }
.facts dd { margin: 0; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print basics (pages add their own rules) ---------- */
@media print {
  @page { size: A4; margin: 15mm; }
  body { background: #fff; font-size: 14pt; }
  .site-header, .site-footer, .skip-link, .no-print { display: none !important; }
  main { padding: 0; }
  a { color: inherit; text-decoration: none; }
  .card, .tile, .panel, .band { break-inside: avoid; }
  .panel, .band { background: none; padding: 0; }
}

/* Home title is a step larger than other page titles. */
.home-title { font-size: 3.25rem; line-height: 1.15; }
@media (max-width: 760px) { .home-title { font-size: 2.375rem; } }
