/* ==========================================================================
   Course Hub – Extending Social Protection to Migrant Workers, Refugees and
   their Families

   Palette derived from the course hero image:
     deep teal   #023B49   (feathers, outlines)  -> navigation, headings, footer
     marigold    #F6A423   (breast plumage)      -> primary action, highlights
     terracotta  #A84C33   (wing patterns)       -> secondary accent, links
     cream       #F3DDC4   (background)          -> page background (lightened)
     sand/ochre  #EACB9D / #E1B869               -> borders, soft fills
     plum        #753230   (branch)              -> deep accent
     indigo      #39374B   (shadow)              -> fourth data colour
   ========================================================================== */

:root {
  --teal-900: #023B49;
  --teal-800: #0A4E5F;
  --teal-700: #14627A;
  --teal-100: #DCEAEC;
  --teal-50:  #EEF5F6;
  --marigold: #F6A423;
  --marigold-600: #E08F0C;
  --marigold-100: #FDEBC8;
  --rust: #A84C33;
  --rust-700: #8B3A24;
  --rust-100: #F5E0D8;
  --plum: #753230;
  --indigo: #39374B;
  --cream: #F3DDC4;
  --sand: #EACB9D;
  --ochre: #E1B869;

  --bg: #F7E9D6;
  --surface: #FFF9F0;
  --line: #E3CFAE;
  --ink: #2B2A29;        /* ITCILO brand black */
  --ink-soft: #5B5B5B;   /* ITCILO brand grey 80% */

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(2, 59, 73, .06), 0 1px 1px rgba(2, 59, 73, .04);
  --shadow-md: 0 8px 24px rgba(2, 59, 73, .10);
  --sidebar-w: 300px;
  --topbar-h: 64px;
  --banner-h: 132px;
  --content-max: 1040px;
  --font: "Noto Sans", "Arial Narrow", Arial, sans-serif;   /* ITCILO brand typeface */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  font-stretch: 87.5%;   /* Noto Sans SemiCondensed */
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--teal-900); margin: 0; font-weight: 700; }
button, input, select, textarea { font-family: inherit; font-stretch: inherit; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--rust-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-900); text-decoration-thickness: 2px; }
strong { font-weight: 700; color: var(--ink); }

:focus-visible { outline: 3px solid var(--teal-700); outline-offset: 3px; border-radius: 4px; }
.sidebar :focus-visible, .footer :focus-visible, .banner :focus-visible { outline-color: var(--marigold); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--teal-900); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); transition: top .15s; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 60;
  background: #FBF0DF; border-right: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain;
}
.sidebar__inner { min-height: 100%; display: flex; flex-direction: column; padding: 1.5rem 1.1rem 1.25rem; gap: 1.25rem; }
.sidebar__head { display: flex; align-items: center; justify-content: space-between; }
.sidebar__logo { display: block; width: 150px; border-radius: 6px; }
.sidebar__logo img { width: 100%; }
.sidebar__close { display: none; }
.sidebar__course {
  margin: 0; padding: .9rem 1rem; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line);
  font-size: .86rem; line-height: 1.45; font-weight: 600; color: var(--teal-900);
}
.sidebar__code { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rust-700); margin-bottom: .25rem; }

.nav ul { display: grid; gap: .25rem; }
.nav__link {
  position: relative; display: flex; align-items: center; gap: .8rem;
  padding: .7rem .9rem .7rem 1rem; border-radius: var(--radius-sm);
  color: var(--teal-900); text-decoration: none; font-weight: 600; font-size: .96rem;
  transition: background-color .15s, color .15s, transform .15s;
}
.nav__link svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav__link:hover { background: var(--cream); color: var(--teal-900); transform: translateX(2px); }
.nav__link[aria-current="page"] { background: var(--teal-900); color: #fff; }
.nav__link[aria-current="page"]::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--marigold);
}
.nav__link[aria-current="page"] svg { stroke: var(--marigold); }

.hubbox {
  margin-top: auto; padding: 1.1rem 1.1rem 1.15rem; border-radius: var(--radius);
  background: var(--teal-900); color: #E8F1F3; position: relative; overflow: hidden;
}
.hubbox::after { content: ""; position: absolute; right: -22px; top: -22px; width: 68px; height: 68px; border-radius: 50%; background: var(--marigold); opacity: .95; }
.hubbox::before { content: ""; position: absolute; right: 14px; top: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--rust); z-index: 1; }
.hubbox__title { position: relative; z-index: 2; font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: .5rem; }
.hubbox__text { font-size: .9rem; line-height: 1.5; margin-bottom: .7rem; }
.hubbox__meta { font-size: .78rem; font-weight: 600; color: var(--marigold); margin: 0; }

/* ---------- Top bar (mobile / tablet) ---------- */
.topbar {
  display: none; position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topbar-h);
  align-items: center; justify-content: space-between; padding: 0 1rem;
  background: rgba(251, 240, 223, .97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.topbar__brand { display: block; width: 92px; }
.topbar__toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem;
  font: inherit; font-weight: 700; color: #fff; background: var(--teal-900);
  border: 0; border-radius: 999px; cursor: pointer; transition: background-color .15s;
}
.topbar__toggle:hover { background: var(--teal-700); }
.topbar__toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(2, 30, 38, .55); }

/* ---------- Page layout ---------- */
.page { margin-left: var(--sidebar-w); padding-top: var(--banner-h); min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; width: 100%; max-width: calc(var(--content-max) + 4rem); margin: 0 auto; padding: 2rem 2rem 3rem; outline: none; }
.view { animation: fade .25s ease-out; scroll-margin-top: calc(var(--chrome-h, var(--banner-h)) + 1rem); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.view__head { margin-bottom: 1.75rem; max-width: 46rem; }
.view__title { font-size: clamp(1.9rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; margin: .8rem 0 .75rem; }
.view__title:focus { outline: none; }
.view__head--wide { max-width: none; }
.view__head--wide .lead { max-width: 46rem; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rust-700); margin-bottom: .5rem; }
.view__head .eyebrow { display: inline-block; background: var(--marigold); color: var(--teal-900); border-radius: 999px; padding: .3rem .75rem; margin: 0; line-height: 1.2; }
.lead { font-size: 1.08rem; color: var(--ink-soft); margin: .8rem 0 0; }
.block { margin-top: 2.75rem; }
.block__title { font-size: 1.375rem; line-height: 1.25; font-weight: 700; margin-bottom: 1rem; position: relative; padding-left: .75rem; }
.block__title::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px; border-radius: 3px; background: var(--marigold); }
.block > .eyebrow { padding-left: 1rem; margin-bottom: .25rem; }
.block > .lead { margin: 0 0 1.25rem; }
.block--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.notice { padding: 1rem; border: 1px solid var(--rust); border-radius: var(--radius-sm); background: var(--rust-100); }
.note { margin-top: 1.25rem; font-size: .92rem; color: var(--ink-soft); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card--pad { padding: 1.5rem; }
.card--accent { border-top: 5px solid var(--marigold); }
.card__title { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.card--pad + .card--pad { margin-top: 1.25rem; }
.prose p { max-width: none; }
.prose__lead { font-size: 1.15rem; line-height: 1.55; color: var(--teal-900); font-weight: 600; }
.about { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(230px, 1fr); gap: 1.25rem; align-items: stretch; }
.about .prose { display: flex; flex-direction: column; gap: 1rem; }
.about .prose p { margin: 0; }
.about__stat { background: var(--teal-900); color: #fff; border-radius: var(--radius); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; justify-content: center; border-top: 5px solid var(--marigold); }
.about__num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; color: var(--marigold); margin: 0 0 .5rem; }
.about__label { font-size: 1.05rem; line-height: 1.45; color: #fff; margin: 0 0 1.25rem; }
.about__bar { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.about__bar span { display: block; height: 100%; border-radius: 6px; background: var(--marigold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px;
  padding: .65rem 1.25rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: .96rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn--primary { background: var(--marigold); color: var(--teal-900); }
.btn--primary:hover { background: var(--marigold-600); color: var(--teal-900); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(224, 143, 12, .35); }
.btn--primary:active { transform: none; }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .6); background: transparent; }
.btn--ghost-light:hover { background: #fff; color: var(--teal-900); }
.btn--outline { color: var(--teal-900); border-color: var(--teal-900); background: transparent; }
.btn--outline:hover { background: var(--teal-900); color: #fff; }
.btn--disabled { background: var(--marigold-100); color: var(--teal-900); border: 2px dashed var(--marigold-600); }
.btn--disabled:hover { background: var(--marigold-100); box-shadow: none; transform: none; }

/* ---------- Online sessions banner (Zoom + calendar) ---------- */
.zoombar { margin-top: 1.5rem; }
.zoombar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; background: var(--teal-900); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.5rem; }
.zoombar__text { flex: 1 1 24rem; min-width: 0; }
.zoombar__eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ochre); margin: 0 0 .3rem; }
.zoombar__title { font-size: 1.15rem; line-height: 1.25; font-weight: 700; color: #fff; margin: 0 0 .35rem; }
.zoombar__note { font-size: .85rem; line-height: 1.45; color: rgba(255, 255, 255, .9); margin: 0; }
.zoombar__actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: flex-end; }
.zoombar .btn { min-height: 40px; padding: .5rem .8rem; font-size: .84rem; border-radius: 8px; border-width: 1px; }
.btn--sand { background: var(--cream); color: var(--teal-900); border-color: var(--cream); }
.btn--sand:hover { background: #fff; border-color: #fff; color: var(--teal-900); transform: translateY(-1px); }
.timetable-note + .zoombar { margin-top: 1.25rem; }
@media (max-width: 720px) {
  .zoombar__inner { padding: 1rem; }
  .zoombar__actions { justify-content: flex-start; width: 100%; }
  .zoombar__actions .btn { flex: 1 1 100%; }
}

/* ---------- Fixed banner (title + hero image) ---------- */
.banner {
  position: fixed; top: 0; left: var(--sidebar-w); right: 0; height: var(--banner-h); z-index: 40;
  background: var(--teal-900); border-bottom: 5px solid var(--marigold); overflow: hidden;
  display: flex; align-items: center;
}
.banner__pic { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; display: block; overflow: hidden; background: var(--cream); }
.banner__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.banner__text { position: relative; z-index: 1; padding: 0 2rem; max-width: 54%; color: #fff; }
.banner__kicker { margin: 0 0 .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--marigold); }
.banner__title { margin: 0; font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.25; font-weight: 700; text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
/* Overview buttons: one line on laptop/desktop widths, scaling with the available width; wrapping on smaller screens */
@media (min-width: 1180px) {
  .hero__actions--row { flex-wrap: nowrap; gap: clamp(.4rem, .8vw, .75rem); }
  .hero__actions--row .btn { flex: 1 1 auto; min-width: 0; white-space: nowrap; padding: .65rem clamp(.6rem, 1.3vw, 1.25rem); font-size: clamp(.8rem, 1.15vw, .96rem); }
}
@media (max-width: 1179px) {
  .hero__actions--row .btn { flex: 1 1 auto; }
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.chip { padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--teal-100); border: 1px solid #BFD6DA; color: var(--teal-900); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); border-bottom: 4px solid var(--ochre); }
.stat:nth-child(2) { border-bottom-color: var(--marigold); }
.stat:nth-child(3) { border-bottom-color: var(--rust); }
.stat:nth-child(4) { border-bottom-color: var(--teal-900); }
.stat__num { display: block; font-size: 1.9rem; font-weight: 700; line-height: 1.2; color: var(--teal-900); }
.stat__label { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Overview components ---------- */
.objectives { display: grid; gap: .8rem; }
.objective { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; transition: transform .15s, box-shadow .15s; }
.objective:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.objective p { margin: 0; }
.objective__n, .audience__n {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; background: var(--marigold); color: var(--teal-900);
}
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: p; }
.phase { padding: 1.25rem; border-top: 5px solid var(--teal-900); transition: transform .15s, box-shadow .15s; }
.phase:nth-child(2) { border-top-color: var(--marigold); }
.phase:nth-child(3) { border-top-color: var(--rust); }
.phase:hover, .feature:hover, .module:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.phase__tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rust-700); margin-bottom: .4rem; }
.phase h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.phase p { font-size: .95rem; color: var(--ink-soft); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.feature { padding: 1.25rem; background: var(--teal-50); border-color: var(--teal-100); transition: transform .15s, box-shadow .15s; }
.feature h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature p { font-size: .93rem; color: var(--ink-soft); }
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.module { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; border-left: 5px solid var(--marigold); transition: transform .15s, box-shadow .15s; }
.module:nth-child(4n+2) { border-left-color: var(--teal-900); }
.module:nth-child(4n+3) { border-left-color: var(--rust); }
.module:nth-child(4n) { border-left-color: var(--ochre); }
.module__n { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rust-700); }
.module h3 { font-size: 1.1rem; line-height: 1.3; }
.module__live { margin-top: auto !important; padding-top: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.facts div { padding: .6rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 8.5rem 1fr; gap: .75rem; }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; color: var(--teal-900); font-size: .92rem; }
.facts dd { margin: 0; font-size: .95rem; }

/* ---------- Requirements ---------- */
.pointbar { display: flex; gap: 4px; margin: 1rem 0 1.5rem; border-radius: 12px; overflow: hidden; }
.pointbar__seg { min-width: 0; padding: .75rem .8rem; display: flex; flex-direction: column; gap: .1rem; font-size: .82rem; line-height: 1.25; }
.pointbar__seg strong { font-size: 1.5rem; line-height: 1.2; color: inherit; }
.seg-forum { background: var(--teal-900); color: #fff; }
.seg-quiz { background: var(--marigold); color: var(--teal-900); }
.seg-group { background: var(--rust); color: #fff; }
.seg-final { background: var(--indigo); color: #fff; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.table th, .table td { padding: .85rem 1rem; text-align: center; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--teal-900); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.table thead th:first-child, .table tbody th, .table tfoot th { text-align: left; }
.table tbody th { font-weight: 700; color: var(--teal-900); }
.table tbody tr:nth-child(even) { background: var(--bg); }
.table tbody tr:hover { background: var(--marigold-100); }
.table tfoot th, .table tfoot td { background: var(--cream); font-weight: 700; color: var(--teal-900); border-bottom: 0; }
.reqs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.req { display: flex; gap: 1.1rem; padding: 1.4rem; transition: transform .15s, box-shadow .15s; }
.req:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.req__points { flex: none; width: 84px; height: 84px; border-radius: 18px; background: var(--teal-900); color: #fff; display: grid; place-content: center; text-align: center; }
.req:nth-child(2) .req__points { background: var(--marigold); color: var(--teal-900); }
.req:nth-child(3) .req__points { background: var(--rust); }
.req:nth-child(4) .req__points { background: var(--indigo); }
.req__num { font-size: 1.9rem; font-weight: 700; line-height: 1.2; }
.req__unit { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: .2rem; }
.req h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.req p { font-size: .96rem; }
.ticks { margin-top: .75rem; display: grid; gap: .5rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--marigold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23023B49' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat; }
.requirements-block + .card { margin-top: 1.25rem; }
#course-requirements > .block--split, #course-requirements > .card { margin-top: 1.25rem; }

/* ---------- Timetable ---------- */
.weeknav-wrap { position: sticky; top: var(--banner-h); z-index: 20; margin: 0 -2rem 1.5rem; padding: .7rem 2rem; background: rgba(247, 233, 214, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.weeknav { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.weeknav button {
  flex: none; min-height: 40px; padding: 0 1rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  color: var(--teal-900); background: var(--surface); border: 2px solid var(--line); transition: background-color .15s, border-color .15s, color .15s;
}
.weeknav button:hover { border-color: var(--teal-900); }
.weeknav button[aria-current="true"] { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }
.week { margin-top: 2rem; scroll-margin-top: calc(var(--banner-h) + 4.5rem); }
.week:first-of-type { margin-top: 0; }
.week__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--ochre); }
.week__num { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--rust); padding: .2rem .7rem; border-radius: 999px; }
.week__title { font-size: 1.25rem; font-weight: 700; }
.week__dates { margin-left: auto; font-weight: 600; color: var(--ink-soft); font-size: .92rem; }
.sessions { display: grid; gap: 1rem; }
.session { display: grid; grid-template-columns: 84px 1fr auto; gap: 1.25rem; padding: 1.25rem; transition: box-shadow .15s, border-color .15s; }
.session:hover { box-shadow: var(--shadow-md); border-color: var(--ochre); }
.session.is-next { border: 2px solid var(--marigold); }
.session.is-past { background: #F3E8D8; }
.session.is-past .session__title { color: var(--ink-soft); }
.datebadge { width: 84px; align-self: start; border-radius: 14px; overflow: hidden; text-align: center; border: 1px solid var(--teal-900); background: var(--surface); }
.datebadge__dow { display: block; background: var(--teal-900); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem 0; }
.datebadge__day { display: block; font-size: 2rem; font-weight: 700; line-height: 1.2; color: var(--teal-900); padding-top: .25rem; }
.datebadge__mon { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rust-700); padding-bottom: .4rem; }
.session__kicker { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .35rem; }
.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .15rem .6rem; border-radius: 999px; background: var(--teal-100); color: var(--teal-900); }
.tag--module { background: var(--cream); color: var(--plum); }
.tag--next { background: var(--marigold); color: var(--teal-900); }
.tag--past { background: #E7E2DA; color: #4A4640; }
.session__title { font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.session__time { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .75rem 0 .6rem; font-size: .93rem; font-weight: 600; color: var(--teal-900); }
.session__time span { display: inline-flex; align-items: center; gap: .4rem; }
.session__time svg { width: 17px; height: 17px; fill: none; stroke: var(--rust); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.session__local { font-weight: 400; color: var(--ink-soft); }
.session__summary { font-size: .96rem; color: var(--ink-soft); max-width: none; text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.session__more { grid-column: 2 / -1; margin: -.5rem 0 0; min-width: 0; }
.session__more summary { cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .92rem; color: var(--rust-700); list-style: none; padding: .2rem 0; }
.session__more summary::-webkit-details-marker { display: none; }
.session__more summary::after { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.session__more[open] summary::after { transform: rotate(-135deg); }
.session__more summary:hover { color: var(--teal-900); }
.session__detail { margin-top: .75rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); font-size: .93rem; }
.session__detail p, .session__detail li { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.session__detail h4 { margin: 1rem 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--rust-700); }
.session__detail h4:first-child { margin-top: 0; }
.session__detail ul { display: grid; gap: .4rem; padding-left: 1.1rem; list-style: disc; }
.session__detail li::marker { color: var(--marigold-600); }
.session__action { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .4rem; min-width: 170px; }
.session__action small { text-align: left; font-size: .78rem; color: var(--ink-soft); }
.timetable-note { margin-top: 2rem; }

/* ---------- Resource persons ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filters button { min-height: 40px; padding: 0 1rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--teal-900); background: var(--surface); border: 2px solid var(--line); transition: background-color .15s, border-color .15s, color .15s; }
.filters button:hover { border-color: var(--teal-900); }
.filters button[aria-pressed="true"] { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.25rem; }
.person { text-align: left; padding: 1.5rem 1.25rem 1.4rem; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; align-items: flex-start; }
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.person__photo { width: 108px; height: 108px; border-radius: 50%; margin-bottom: 1rem; overflow: hidden; background: var(--cream); border: 4px solid var(--marigold); display: grid; place-items: center; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.person__photo svg { width: 62%; height: 62%; fill: none; stroke: var(--teal-800); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.person__name { font-size: 1.15rem; font-weight: 700; }
.person__role { margin: .3rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.person__org { margin: .35rem 0 .9rem; font-weight: 700; font-size: .85rem; color: var(--rust-700); letter-spacing: .04em; }
.person__flag { margin: -.4rem 0 .9rem; }
.tag--tbc { background: var(--marigold-100); color: var(--rust-700); border: 1px dashed var(--marigold-600); }
.person__li { margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; min-height: 38px; font-size: .85rem; font-weight: 700; color: var(--teal-900); border: 2px solid var(--teal-900); border-radius: 999px; padding: .3rem .85rem; text-decoration: none; transition: background-color .15s, color .15s; }
.person__li svg { width: 16px; height: 16px; flex: none; }
.person__li:hover, .person__li:focus-visible { background: #0A66C2; border-color: #0A66C2; color: #fff; }

/* ---------- Participants / Feedback ---------- */
.audience { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.audience__item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; }
.audience__item p { margin: 0; }
.empty { text-align: left; padding: 2rem 1.75rem; background: var(--surface); border: 2px dashed var(--ochre); border-radius: var(--radius); }
.empty__icon { width: 56px; height: 56px; margin: 0 0 1rem; border-radius: 50%; background: var(--marigold-100); display: grid; place-items: center; }
.empty__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--teal-900); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.empty h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.empty p { color: var(--ink-soft); max-width: 46ch; }
.pdir { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.pdir__item { padding: 1rem 1.1rem; }
.pdir__item strong { display: block; }
.pdir__item span { font-size: .9rem; color: var(--ink-soft); }
.feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; border-left: 6px solid var(--marigold); }
.feedback h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.feedback p { color: var(--ink-soft); max-width: 46ch; }
.feedback .btn { flex: none; }
#feedback .card + .card { margin-top: 1.25rem; }

/* ---------- Pager ---------- */
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { display: inline-flex; flex-direction: column; gap: .1rem; padding: .7rem 1.1rem; border-radius: var(--radius-sm); text-decoration: none; background: var(--surface); border: 1px solid var(--line); color: var(--teal-900); font-weight: 700; transition: border-color .15s, background-color .15s, transform .15s; }
.pager a:hover { border-color: var(--teal-900); background: var(--teal-50); }
.pager small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--rust-700); font-weight: 700; }
.pager__next { margin-left: auto; text-align: right; }

/* ---------- Toast ---------- */
.toast { width: max-content; position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 300; max-width: min(92vw, 30rem); background: var(--teal-900); color: #fff; padding: .85rem 1.25rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); border-left: 5px solid var(--marigold); font-weight: 600; font-size: .95rem; }

/* ---------- Footer ---------- */
.footer { background: var(--teal-900); color: #DCEAEC; border-top: 6px solid var(--marigold); margin-top: 2rem; }
.footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); }
.footer a:hover { color: var(--marigold); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding: 2.5rem 2rem 2rem; max-width: calc(var(--content-max) + 4rem); margin: 0 auto; }
.footer__logo { display: block; width: 156px; background: #fff; padding: .6rem .8rem; border-radius: 12px; margin-bottom: 1rem; }
.footer__brand p { margin-bottom: .25rem; font-weight: 700; color: #fff; }
.footer__brand .footer__muted { font-weight: 400; font-size: .92rem; color: #C3D8DD; }
.footer__h { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--marigold); margin-bottom: .8rem; }
.footer address { font-style: normal; line-height: 1.8; font-size: .95rem; }
.footer__links { display: grid; gap: .35rem; font-size: .95rem; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .15); padding: 1.1rem 2rem; max-width: calc(var(--content-max) + 4rem); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; font-size: .84rem; color: #C3D8DD; }
.footer__bar p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .about { grid-template-columns: 1fr; }
  .about__stat { flex-direction: row; align-items: center; justify-content: flex-start; gap: 1.75rem; padding: 1.4rem 1.75rem; }
  .about__num { margin: 0; white-space: nowrap; }
  .about__label { margin: 0 0 .9rem; }
  .about__stat > div, .about__text { flex: 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .phases, .features { grid-template-columns: 1fr; }
  .session { grid-template-columns: 84px 1fr; }
  .session__action { grid-column: 2; flex-direction: row; align-items: center; flex-wrap: wrap; min-width: 0; }
  .session__action small { text-align: left; }
}

@media (max-width: 1023px) {
  :root { --topbar-h: 56px; --banner-h: 96px; --chrome-h: calc(var(--topbar-h) + var(--banner-h)); }
  .topbar { display: flex; }
  .banner { left: 0; top: var(--topbar-h); }
  .banner__text { padding: 0 1.25rem; max-width: 54%; }
  .banner__kicker { display: none; }
  .banner__title { font-size: clamp(1rem, 2.6vw, 1.25rem); }
  .page { margin-left: 0; padding-top: var(--chrome-h); }
  .sidebar { width: min(86vw, 330px); transform: translateX(-102%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; box-shadow: var(--shadow-md); }
  .sidebar.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
  .sidebar__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); color: var(--teal-900); cursor: pointer; }
  .sidebar__close:hover { background: var(--cream); }
  .sidebar__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .main { padding: 1.5rem 1.25rem 2.5rem; }
  .weeknav-wrap { top: var(--chrome-h); margin: 0 -1.25rem 1.25rem; padding: .6rem 1.25rem; }
  .week { scroll-margin-top: calc(var(--chrome-h) + 4.5rem); }
  .footer__grid, .footer__bar { padding-left: 1.25rem; padding-right: 1.25rem; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 720px) {
  .block--split, .reqs, .audience, .modules, .about { grid-template-columns: 1fr; }
  .about__stat { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .about__num { white-space: normal; }
  .about__text { width: 100%; }
  :root { --banner-h: 100px; }
  .banner__kicker { display: none; }
  .banner__text { max-width: 48%; padding: 0 .9rem 0 1rem; }
  .banner__title { font-size: .95rem; line-height: 1.25; }
  .hero__actions .btn { flex: 1 1 auto; }
  /* Scale the illustration so all three heads stay inside the narrow pane */
  .banner__pic { width: 52vw; }
  .banner__pic img { position: absolute; top: 0; left: -3.75vw; width: 75vw; max-width: none; height: auto; }
  .stats { gap: .75rem; }
  .facts div { grid-template-columns: 1fr; gap: .1rem; }
  .session { grid-template-columns: 1fr; padding: 1.1rem; gap: .9rem; }
  .session__more { grid-column: 1; }
  .session__summary, .session__detail p, .session__detail li { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
  .datebadge { display: flex; width: auto; align-items: center; border-radius: 12px; }
  .datebadge__dow { padding: .55rem .8rem; flex: none; width: 4.2rem; }
  .datebadge__day { padding: 0 .5rem 0 .9rem; font-size: 1.6rem; }
  .datebadge__mon { padding: 0; }
  .session__action { grid-column: 1; flex-direction: column; align-items: stretch; }
  .session__action small { text-align: left; }
  .week__dates { margin-left: 0; width: 100%; }
  .req { flex-direction: column; }
  .req__points { width: 100%; height: auto; padding: .6rem; grid-auto-flow: column; gap: .5rem; place-content: center; align-items: baseline; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .feedback .btn { width: 100%; }
  .people { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .person { padding: 1.1rem .7rem; }
  .person__photo { width: 84px; height: 84px; }
  .pointbar { flex-wrap: wrap; }
  .pointbar__seg { flex: 1 1 calc(50% - 4px) !important; }
  .table th, .table td { padding: .65rem .4rem; font-size: .88rem; }
  .table thead th { font-size: .68rem; letter-spacing: 0; }
}

@media (max-width: 420px) {
  .people { grid-template-columns: 1fr; }
  .stat__num { font-size: 1.6rem; }
}

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

/* ---------- Simulation ---------- */
.simframe { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #F4F6FA; box-shadow: var(--shadow-sm); }
.simframe iframe { display: block; width: 100%; height: max(560px, calc(100vh - var(--chrome-h, var(--banner-h)) - 1rem)); border: 0; }

@media (max-width: 340px) {
  .banner__title { font-size: .82rem; }
}

/* ---------- Pilot notice ---------- */
.pilot { margin-top: 1.75rem; }
.pilot .card__title { font-size: 1.15rem; margin: .25rem 0 .6rem; }
.pilot p:last-child { margin-bottom: 0; }
#feedback .pilot { margin-top: 1.25rem; }
