/* www.move-b.com: light theme: white surfaces, MOVE.B indigo, cyan signal; ChipTrace keeps its dark band */

:root {
  color-scheme: light;
  --bg: #f6f8fc; --surface: #ffffff; --surface-2: #eef3f9;
  --line: #dde4ef; --line-strong: #c3cfe0;
  --ink: #121539; --text: #2a3352; --muted: #5b6782; --dim: #646f88;   /* text colours: 4.5:1 at least on --bg */
  --brand: #282665; --brand-2: #3b39a0;
  --signal: #0a9fd4; --signal-text: #0679a8;
  --orange: #e07820; --green: #1f9d5c; --purple: #7b4fd0; --red: #d64545;
  --head: "Outfit", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 21, 57, 0.05), 0 8px 24px rgba(18, 21, 57, 0.06);
  --shadow-hover: 0 2px 4px rgba(18, 21, 57, 0.06), 0 16px 40px rgba(18, 21, 57, 0.12);
}

/* "->", "=>", "!=" stay as typed, never drawn as one arrow or sign: JetBrains Mono (and Inter) join them by their
   contextual alternates; !important beats the font shorthands, which would turn them on again */
*, *::before, *::after { font-variant-ligatures: no-contextual !important; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15.5px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--signal-text); text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
sup.tm { font-size: 0.42em; font-weight: 500; vertical-align: super; line-height: 0; margin-left: 0.04em; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* buttons, chips */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 12px 20px; font: 600 14.5px/1 var(--body); border: 1px solid transparent; cursor: pointer; transition: background 0.2s, transform 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(40, 38, 101, 0.22); }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--brand); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-signal { background: #46c7f6; color: #0f1135; }
.btn-signal:hover { background: #8adaf9; color: #0f1135; }
.btn-dark-ghost { background: transparent; color: #46c7f6; border-color: rgba(70, 199, 246, 0.45); }
.btn-dark-ghost:hover { color: #fff; border-color: #fff; }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }
/* each family's colour (.t-cyan…): in frame.css, shared with the main menu */
.chip { display: inline-block; font: 500 12px/1 var(--mono); padding: 5px 8px; border-radius: 6px; white-space: nowrap; color: var(--tone-text, var(--signal-text)); background: color-mix(in srgb, var(--tone, var(--signal)) 11%, white); }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tone-text, var(--signal-text)); }
.lead { font-size: 17.5px; color: var(--muted); line-height: 1.65; max-width: 720px; }
.muted { color: var(--muted); }

/* sections */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.section-head.row { flex-direction: row; justify-content: space-between; align-items: flex-end; max-width: none; gap: 24px; flex-wrap: wrap; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.section.alt .card { background: var(--bg); box-shadow: none; }
a.card { color: inherit; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
a.card:hover { transform: translateY(-3px); border-color: var(--tone, var(--signal)); box-shadow: var(--shadow-hover); }
.card p { color: var(--muted); font-size: 14.5px; }
.go { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--tone-text, var(--brand)); }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0; background: radial-gradient(ellipse at 100% 0%, #e3f4fc 0%, transparent 55%), linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.hero-text > .kicker { margin-bottom: -6px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand) 0%, var(--signal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.hero-photos { position: relative; aspect-ratio: 5 / 4.4; }
.hero-photos .main { position: absolute; inset: 0 0 14% 10%; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-hover); }
.hero-photos .second { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 5px solid #fff; box-shadow: var(--shadow-hover); }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; right: -6px; bottom: 4%; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-hover); display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); max-width: 360px; line-height: 1.4; }
.hero-badge img { width: 48px; height: 48px; object-fit: contain; }
.hero-badge .badge-logos { display: flex; align-items: center; gap: 10px; flex: none; }
.hero-badge img.wide { width: auto; height: 30px; }   /* the RISC-V Training Partner mark, beside Arm's round one */
.facts-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.facts-row span { display: flex; align-items: center; gap: 8px; }
.facts-row span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.trace { stroke-dasharray: 5 5; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }

/* family cards */
.family { padding: 0; overflow: hidden; gap: 0; }
.family .ph { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.family .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
a.family:hover .ph img { transform: scale(1.05); }
.family .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.family.custom { background: linear-gradient(160deg, #fff 0%, #eef3f9 100%); border-style: dashed; border-color: var(--line-strong); }
.family.custom .body { justify-content: center; }

/* ChipTrace band (stays dark, like the ChipTrace site) */
.ct-band { position: relative; overflow: hidden; background: linear-gradient(120deg, #0f1135 0%, #282665 60%, #181b4a 100%); border-radius: 22px; padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; color: #cfd2ee; box-shadow: var(--shadow-hover); }
.ct-band .kicker { color: #46c7f6; }
.ct-band .lead { color: #c6c9ea; }
.ct-logo { font: 700 32px/1 var(--head); color: #fff; } .ct-logo span { color: #e07820; } .ct-logo sup { font-size: 0.45em; color: #a9aed6; }
.ct-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ct-points li { display: flex; gap: 10px; font-size: 14.5px; }
.ct-points li::before { content: "▸"; color: #46c7f6; }
.ct-visual { background: #0a0c29; border: 1px solid rgba(70, 199, 246, 0.2); border-radius: 12px; padding: 0 18px 18px; font: 12px/1.75 var(--mono); color: #e1e3f7; overflow: hidden; white-space: nowrap; box-shadow: 0 18px 48px rgba(5, 6, 30, 0.45); }
.ct-bar { display: flex; align-items: center; gap: 6px; margin: 0 -18px 14px; padding: 9px 14px; border-bottom: 1px solid rgba(70, 199, 246, 0.14); background: rgba(255, 255, 255, 0.03); }
.ct-bar span { font-size: 12px; color: #7f85bd; }
.ct-visual .c { color: #7f85bd; } .ct-visual .k { color: #b48cf0; } .ct-visual .f { color: #46c7f6; } .ct-visual .n { color: #f0913a; } .ct-visual .s { color: #34c87a; }

/* sessions (photos) */
.sessions { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 16px; }
.sessions figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.sessions figure:first-child { grid-row: span 2; }
.sessions img { width: 100%; height: 100%; object-fit: cover; }
.sessions figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.photo { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-hover); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* partners, quotes */
.logos { display: flex; flex-wrap: wrap; gap: 16px; }
.logos > * { flex: 1 1 0; min-width: 0; }   /* each row fills the width */
.logo-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; height: 110px; display: grid; place-items: center; padding: 16px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.logo-tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.logo-tile img { width: var(--w, auto); max-width: 100%; height: auto; max-height: 78px; object-fit: contain; }   /* --w: parts/logos.php */
.logos-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin: 30px 0 12px; }
.quote { gap: 14px; }
.grid.one { grid-template-columns: minmax(0, 760px); }
.grid.one .quote blockquote { font-size: 18px; }
.quote blockquote { margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.6; }
.quote blockquote::before { content: "“"; display: block; font: 700 46px/0.6 var(--head); color: var(--signal); margin: 10px 0 6px; }
.quote footer { font-size: 13px; color: var(--muted); margin-top: auto; display: flex; justify-content: space-between; gap: 10px; align-items: center; }

/* CTA */
.cta-band { position: relative; overflow: hidden; border-radius: 22px; background: var(--brand); color: #dfe2ff; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #c9ccf5; }
.cta-band .kicker { color: #8fdcf7; }
.cta-band .photo { aspect-ratio: 16 / 10; box-shadow: none; }
.cta-band .btn-primary { background: #fff; color: var(--brand); box-shadow: none; }
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-band.compact { grid-template-columns: minmax(0, 1fr) auto; }
.cta-band.compact > div:first-child { display: flex; flex-direction: column; gap: 12px; }

/* page head, breadcrumb */
.page-head { position: relative; padding: clamp(44px, 6vw, 76px) 0 clamp(36px, 4vw, 52px); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 90% 0%, #e3f4fc 0%, transparent 55%), #fff; overflow: hidden; }
.page-head .wrap { position: relative; display: flex; flex-direction: column; gap: 14px; }
.page-head.with-photo .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: center; }
.page-head .text { display: flex; flex-direction: column; gap: 14px; }
.page-head .photo { aspect-ratio: 4 / 3; }
.page-head h1.long { font-size: clamp(30px, 4vw, 44px); }
.page-head h1 .h1-tail { display: block; margin-top: 0.35em; font-size: max(16px, 0.4em); font-weight: 500; letter-spacing: 0; color: var(--muted); }
.hero h1 .kicker { display: block; margin-bottom: 16px; font-family: var(--body); line-height: 1.4; }
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 13px; color: var(--dim); }
.crumbs a { color: var(--muted); padding-block: 2px; } .crumbs a:hover { color: var(--brand); }
.crumbs span[aria-hidden] { color: var(--line-strong); }

/* catalogue */
.catalogue { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: start; }
.side-toggle { position: sticky; top: 96px; }
.side-toggle > summary { display: none; }
.sidebar { max-height: calc(100vh - 116px); overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sidebar a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--muted); }
.sidebar a:hover { background: var(--surface-2); color: var(--ink); }
.sidebar a[aria-current] { background: color-mix(in srgb, var(--tone, var(--signal)) 10%, white); color: var(--ink); font-weight: 600; }
/* a family: its link, and a separate button that shows its sub-families */
.sidebar .fam-item { position: relative; }
.sidebar .fam-item .fam { padding-right: 40px; }
.sidebar details summary { list-style: none; cursor: pointer; position: absolute; right: 4px; top: 3px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--dim); }
.sidebar details summary:hover { background: var(--surface-2); color: var(--ink); }
.sidebar details summary::before { content: "▸"; transition: transform 0.2s; }
.sidebar details[open] summary::before { transform: rotate(90deg); }
.sidebar details summary::-webkit-details-marker { display: none; }
.sidebar .fam { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.sidebar .fam::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); flex: 0 0 auto; }
.sidebar .sub { margin-left: 14px; border-left: 1px solid var(--line); padding-left: 6px; display: flex; flex-direction: column; gap: 1px; }
form.search { display: flex; gap: 10px; margin-bottom: 26px; }
.not-found form.search { width: min(100%, 520px); margin: 8px 0 0; }
.not-found .bus-error { margin: -6px 0 14px; font: 13px/1.5 ui-monospace, Consolas, "Courier New", monospace; color: var(--muted); letter-spacing: 0.02em; }
form.search input { flex: 1; }
.course-card { gap: 12px; }
.course-card .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.course-card h3 { font-size: 17px; }
.course-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-card .meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--dim); margin-top: auto; padding-top: 6px; }
.empty { padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }

.family-card { gap: 10px; }
/* the family's colour: a dot before the name, as in the catalogue's sidebar */
.family:not(.custom) h3::before, .family-card:not(.custom) h3::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--tone); margin-right: 9px; vertical-align: 0.12em; }
.family-card .subs { font-size: 13px; color: var(--dim); }
.family-card.custom { border-style: dashed; border-color: var(--line-strong); background: linear-gradient(160deg, #fff 0%, #eef3f9 100%); box-shadow: none; }
.list-title { font-size: 22px; margin: 36px 0 18px; }

/* course page */
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.course-body { display: flex; flex-direction: column; gap: 38px; }
.block { display: flex; flex-direction: column; gap: 12px; }
.block h2 { font-size: 23px; }
.block p, .block li { color: var(--text); }
/* a course reference in the prerequisites: the code as written, linked to its course; unknown = an error for the team */
.block a.ref, .block .ref { font: 500 0.9em var(--mono); white-space: nowrap; }
.block a.ref { color: var(--tone-text, var(--signal-text)); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.block a.ref:hover { color: var(--brand); text-decoration-color: currentColor; }
.ref-unknown { color: var(--red); background: color-mix(in srgb, var(--red) 9%, white); border: 1px dashed var(--red); border-radius: 4px; padding: 0 4px; }
.ref-unknown b { font: 600 12px var(--body); }
.facts { position: sticky; top: 96px; gap: 18px; overflow: hidden; }
.facts dl { margin: 0; display: grid; gap: 14px; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 3px 0 0; color: var(--ink); font-size: 14.5px; }
.facts .mail { text-align: center; font-size: 14px; font-weight: 600; padding: 8px 0; }
.facts .ph { margin: -24px -24px 4px; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 4px solid var(--tone, var(--signal)); }
.facts .ph img { width: 100%; height: 100%; object-fit: cover; }
.agenda { display: flex; flex-direction: column; }
.day { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; position: relative; padding-bottom: 22px; }
.day:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: var(--line); }
.day-n { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--tone, var(--signal)); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 16px/1 var(--head); color: var(--tone-text, var(--signal-text)); }
.day-n small { font: 600 12px/1 var(--body); color: var(--dim); letter-spacing: 0.06em; margin-bottom: 3px; }   /* 12 px: the site's smallest text */
.day ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.day li { font-size: 14px; font-weight: 500; color: var(--ink); padding: 10px 16px; }
.day li + li { border-top: 1px solid var(--line); }
.day li.detail { font-size: 14px; font-weight: 400; color: var(--muted); padding-left: 34px; letter-spacing: 0; position: relative; }
.day li.detail::before { content: "–"; position: absolute; left: 18px; color: var(--line-strong); }
.day li.detail + li.detail { border-top: 0; padding-top: 0; }
.included { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.included div { display: flex; gap: 10px; font-size: 14.5px; color: var(--text); }
.included div::before { content: "✓"; color: var(--green); font-weight: 700; }
/* questions at the end of a course page: one line each, the answer opens below */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 14px 2px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--dim); }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--tone-text, var(--signal-text)); }
.faq details p { margin: 0 2px 16px; color: var(--text); font-size: 15px; }

/* partner pages: the text and the partnership in brief; the Partners page, its partners by kind */
.partner-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.partner-facts { gap: 16px; }
.partner-facts dd .ticks { gap: 6px; margin-top: 6px; font-size: 14px; }
.partner-facts .btn { justify-content: center; text-align: center; line-height: 1.3; }
.partner-groups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 48px 22px; }
.partner-group { grid-column: span min(var(--n), 5); }
.partner-group h2 { font-size: 22px; margin-bottom: 18px; }
.partner-cards { grid-template-columns: repeat(min(var(--n), 5), minmax(0, 1fr)); height: calc(100% - 44px); }

/* forms */
.form { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
input, select, textarea { width: 100%; font: 15px/1.5 var(--body); color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(10, 159, 212, 0.18); }
textarea { min-height: 170px; resize: vertical; }
.error { color: var(--red); font-size: 13px; }
.notice { padding: 16px 18px; border-radius: 10px; border: 1px solid; }
.notice.ok { border-color: var(--green); background: #eaf7f0; color: #145c37; }
.notice.ko { border-color: var(--red); background: #fdeeee; color: #8a2222; }
.hp { position: absolute; left: -9999px; }
.session { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 20px 20px; margin: 0; display: grid; gap: 16px; min-width: 0; }
.session legend { padding: 0 6px; font-weight: 600; color: var(--ink); font-size: 14px; }
.session textarea, .session + .field textarea { min-height: 110px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.contact-list div { display: flex; flex-direction: column; gap: 2px; }
.contact-list dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.contact-list dd { margin: 0; color: var(--ink); }

/* course agenda download, site accounts (/account/) */
.agenda-note { font-size: 12.5px; text-align: center; margin-top: -4px; }
.account .notice { margin-bottom: 20px; }
.account-cols { align-items: start; }
.account-cols .card, .account-narrow { padding: 28px; }
.account-narrow { max-width: 560px; }
.account h2 { font-size: 22px; }
.account-side { display: flex; flex-direction: column; gap: 20px; }
.account-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.account-small { font-size: 12.5px; }
.account-delete summary { cursor: pointer; color: var(--muted); font-size: 13.5px; }
.account-delete .form { margin-top: 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text); line-height: 1.45; cursor: pointer; }

/* the team's sign-in code (/sign-in-code/) and Google Authenticator (/authenticator/) */
.code-page { padding: clamp(40px, 8vw, 96px) 0; background: radial-gradient(ellipse at 50% 0%, #e3f4fc 0%, transparent 60%); }
.code-card { max-width: 460px; margin: 0 auto; padding: clamp(28px, 5vw, 44px); align-items: center; text-align: center; gap: 14px; }
.code-card h1 { font-size: clamp(26px, 4vw, 32px); }
.code-card .lead { font-size: 15.5px; margin: 0; }
.code-card .notice { width: 100%; text-align: left; }
.code-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand) 0%, var(--signal) 100%); box-shadow: 0 10px 26px rgba(40, 38, 101, 0.25); margin-bottom: 4px; }
.code-form { width: 100%; display: grid; gap: 14px; margin-top: 6px; }
.code-input { font: 600 32px/1 var(--mono); letter-spacing: 0.42em; text-align: center; padding: 16px 0 16px 0.42em; border-radius: 14px; border-width: 2px; color: var(--ink); }
.code-input::placeholder { color: var(--line-strong); }
.code-input:focus { border-color: var(--signal); box-shadow: 0 0 0 4px rgba(10, 159, 212, 0.16); }
.code-go { justify-content: center; width: 100%; padding: 15px 20px; font-size: 15.5px; }
.code-go[disabled] { opacity: 0.7; cursor: progress; }
.code-more { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 14px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--signal-text); cursor: pointer; }
.link-button:hover { color: var(--brand); }
.link-button[disabled] { color: var(--dim); cursor: default; }
.code-small { font-size: 13px; margin: 6px 0 0; }
.totp-steps { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.totp-steps .card { padding: 26px; position: relative; }
.totp-steps h2 { font-size: 19px; }
.totp-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 var(--head); color: #fff; background: var(--brand); }
.totp-qr { width: min(220px, 100%); margin: 6px auto; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.totp-qr svg { display: block; width: 100%; height: auto; }
.totp-key summary { cursor: pointer; font-size: 13.5px; color: var(--signal-text); }
.totp-key code { display: block; font: 600 15px/1.6 var(--mono); color: var(--ink); background: var(--surface-2); border-radius: 8px; padding: 10px 12px; word-break: break-all; }
.totp-steps .code-input { font-size: 24px; padding: 12px 0 12px 0.42em; }
.totp-on h2 { display: flex; align-items: center; gap: 10px; }
.code-number { font: 700 64px/1 var(--head); color: var(--brand); letter-spacing: 0.04em; padding: 18px 34px; border-radius: 20px; background: var(--surface-2); border: 2px solid var(--line); }
.code-waiting { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14.5px; margin: 0; }
.code-waiting.ok { color: #145c37; } .code-waiting.ko { color: #8a2222; }
.code-numbers { display: flex; justify-content: center; gap: 14px; margin: 18px 0 6px; }
.code-number-choice { font: 700 30px/1 var(--head); min-width: 92px; padding: 18px 0; }
.code-match { color: var(--brand); font-size: 1.15em; }
p.code-waiting.code-small { display: block; margin-top: 14px; }
.code-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--signal); animation: code-spin 0.9s linear infinite; }
.code-waiting.ok .code-spinner, .code-waiting.ko .code-spinner { animation: none; border-color: currentColor; }
@keyframes code-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .code-spinner { animation-duration: 3s; } }
.code-backup .code-form { margin-top: 12px; }
.code-backup .code-input { font-size: 22px; padding: 12px 0 12px 0.3em; letter-spacing: 0.3em; }
.code-backup { width: 100%; text-align: left; font-size: 14px; }
.code-backup summary { cursor: pointer; color: var(--signal-text); text-align: center; }
.code-backup-form { display: flex; gap: 10px; margin: 12px 0 6px; }
.code-backup-form input { font: 600 16px/1.4 var(--mono); letter-spacing: 0.08em; }
.totp-backups { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 18px 20px; background: var(--surface-2); }
.totp-backups h3 { font-size: 17px; margin-bottom: 6px; }
.totp-backups ol { columns: 2; margin: 12px 0; padding-left: 22px; }
.totp-backups code { font: 600 16px/2 var(--mono); color: var(--ink); }
@media print { body * { visibility: hidden; } .totp-backups, .totp-backups * { visibility: visible; } .totp-backups { position: absolute; left: 0; top: 0; } .totp-backups button { display: none; } }
.totp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #eaf7f0; }
@media (max-width: 900px) { .totp-steps { grid-template-columns: 1fr; } }
.check input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; accent-color: var(--brand); }   /* a box big enough for a finger */

/* lists */
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 10px; color: var(--text); }
.ticks li::before { content: "✓"; color: var(--signal); font-weight: 700; }

/* WordPress content (pages, news, course text) */
.prose { max-width: 860px; }
.wrap.prose { max-width: calc(var(--max) + 2 * var(--gutter)); }
.wrap.prose > * { max-width: 860px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 19px; margin-top: 1.4em; }
.prose h4 { font: 600 16px/1.3 var(--body); color: var(--ink); margin-top: 1.3em; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--signal) 40%, transparent); text-underline-offset: 3px; }
.prose p.button a, .prose .button a { display: inline-flex; text-decoration: none; background: var(--brand); color: #fff; border-radius: 10px; padding: 11px 18px; font-weight: 600; font-size: 14.5px; }
.prose p.button a:hover { background: var(--brand-2); }
.prose img { border-radius: 10px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
@media (max-width: 760px) {   /* wide tables scroll, not the page; one line a row */
  .prose table { display: block; overflow-x: auto; font-size: 13.5px; }
  .prose th, .prose td { padding: 7px 9px; white-space: nowrap; }
}
.alignleft { float: left; margin: 0 1.5em 1em 0; } .alignright { float: right; margin: 0 0 1em 1.5em; } .aligncenter { margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-head .photo.contain { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; padding: 28px; }
.page-head .photo.contain img { width: auto; height: auto; max-width: 100%; max-height: 230px; object-fit: contain; }
.logo-zone { height: 96px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 6px; }
.logo-zone img { max-height: 68px; max-width: 100%; width: auto; object-fit: contain; }
.child-card h3, .news-card h3 { font-size: 17px; }
.news-card { overflow: hidden; }
.news-card .news-photo, .news-card .logo-zone { flex-shrink: 0; aspect-ratio: 16 / 9; height: auto; margin: -24px -24px 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; overflow: hidden; }  /* overflow: the photo cannot stretch the 16:9 box */
.news-card .news-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
a.news-card:hover .news-photo img { transform: scale(1.05); }
.news-card .logo-zone { padding: 24px 40px; }
.news-card .logo-zone img { max-height: 76px; }
.post-end { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
a.logo-tile { color: inherit; }
.pager .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pager .page-numbers { padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pager .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ChipTrace: page hero, box on the Arm / CoreSight courses, link to the courses */
.ct-hero { background: #0f1135; padding: clamp(28px, 4vw, 48px) 0; }
.ct-hero .ct-band { border-radius: 0; background: none; padding: clamp(20px, 3vw, 36px) var(--gutter); }
.ct-hero .crumbs a, .ct-hero .crumbs span { color: #a9aed6; }
.ct-hero h1.ct-logo { line-height: 1; }
.ct-box { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: linear-gradient(120deg, #0f1135 0%, #282665 100%); color: #c6c9ea; border-radius: var(--radius); padding: 24px 28px; margin-bottom: 26px; }
.ct-box > div:first-child { display: flex; flex-direction: column; gap: 8px; max-width: 620px; }
.ct-box .kicker { color: #46c7f6; }
.ct-box p { color: #c6c9ea; font-size: 14.5px; }
.ct-box-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.course-body .ct-box { margin-bottom: 0; }
.ct-training { display: flex; flex-direction: column; gap: 10px; font-size: 13px; font-weight: 600; color: #a9aed6; }
.ct-band .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-band .tag { font: 500 13px/1 var(--body); color: #e1e3f7; background: rgba(70, 199, 246, 0.07); border: 1px solid rgba(70, 199, 246, 0.28); border-radius: 999px; padding: 8px 13px; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.ct-band .tag:hover { color: #fff; border-color: #46c7f6; background: rgba(70, 199, 246, 0.16); }
.ct-band .tag-all { color: #46c7f6; font-weight: 600; background: none; border-style: dashed; }

/* reveal on scroll (app.js adds .in) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .ct-band, .course-layout, .split, .cta-band { grid-template-columns: 1fr; }
  .page-head.with-photo .wrap { grid-template-columns: 1fr; }
  .page-head.with-photo .photo { display: none; }
  /* a partner's logo stays, small, above its title */
  .page-head.with-photo .photo.contain { display: grid; order: -1; width: 168px; aspect-ratio: auto; height: 84px; padding: 12px 16px; border-radius: 12px; }
  .page-head.with-photo .photo.contain img { max-height: 58px; }
  .partner-layout { grid-template-columns: minmax(0, 1fr); }
  .partner-groups { grid-template-columns: minmax(0, 1fr); }
  .partner-group { grid-column: auto; }
  .partner-cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); height: auto; }
  .facts.partner-facts { order: 1; }
  .facts { position: static; order: -1; }
  .catalogue { grid-template-columns: 1fr; }
  .side-toggle { position: static; }
  .sidebar { max-height: none; }
  .side-toggle > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; padding: 13px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; color: var(--ink); }
  .side-toggle > summary::-webkit-details-marker { display: none; }
  .side-toggle > summary::after { content: "▸"; color: var(--dim); transition: transform 0.2s; }
  .side-toggle[open] > summary { border-radius: var(--radius) var(--radius) 0 0; }
  .side-toggle[open] > summary::after { transform: rotate(90deg); }
  .side-toggle[open] > .sidebar { border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
  .sidebar details summary { width: 40px; height: 40px; top: 0; }
  .logos { justify-content: center; }
  .logos > * { flex: 0 0 calc((100% - 3 * 16px) / 4); }
  .cta-band.compact { grid-template-columns: 1fr; }
  .sessions { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 200px 200px; }
  .sessions figure:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 620px) {
  .ct-visual { font-size: 12px; white-space: normal; }
  .ct-visual > div:not(.ct-bar) { padding-left: 2ch; text-indent: -2ch; }   /* a long line wraps under itself */
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-photos .second { width: 38%; }
  .ct-band .tags { gap: 6px; }
  .ct-band .tag { padding: 10px 13px; }
  .quote footer { flex-direction: column; align-items: flex-start; }
  .form .btn, form.search .btn { width: 100%; justify-content: center; }
  .crumbs { font-size: 12.5px; }
  .crumbs > span:last-child, .crumbs > span[aria-hidden]:nth-last-child(2) { display: none; }   /* the page itself: its title is just below */
  .g2, .g3, .g4, .included { grid-template-columns: 1fr; }
  form.search { flex-direction: column; }
  .day { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .hero-badge { display: none; }
  .sessions { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 10px; }
  .sessions figure { aspect-ratio: 1; }
  .sessions figure:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
  .sessions figcaption { left: 8px; bottom: 8px; font-size: 12px; padding: 5px 10px; }
  .logos > * { flex-basis: calc((100% - 16px) / 2); }
  .logos.small { gap: 10px; }
  .logos.small > * { flex-basis: calc((100% - 20px) / 3); height: 76px; padding: 10px; }
  .logos.small img { max-height: 52px; }
}
/* /account/ for the team and the participants: where to go, as cards */
.account-hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .account-hub { grid-template-columns: 1fr; } }
.hub-card { flex-direction: row; align-items: flex-start; gap: 16px; padding: 22px; color: inherit; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.hub-card:hover { border-color: var(--line-strong); box-shadow: 0 14px 34px -18px rgba(18, 21, 57, 0.35); transform: translateY(-2px); }
.hub-card:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.hub-card.first { border-color: color-mix(in srgb, var(--signal) 40%, var(--line)); background: linear-gradient(160deg, #fff 0%, #eef8fd 100%); }
.hub-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); }
.hub-card.first .hub-icon { background: var(--brand); color: #fff; }
.hub-card.first .hub-icon circle { fill: var(--brand); }
.hub-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.hub-text strong { font-size: 16.5px; color: var(--ink); }
.hub-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.hub-badges span { padding: 2px 10px; border-radius: 999px; background: #fff3e0; color: #8a4b00; font-size: 12.5px; font-weight: 600; }
.hub-go { flex: none; align-self: center; font-size: 20px; color: var(--line-strong); transition: color 0.15s, transform 0.15s; }
.hub-card:hover .hub-go { color: var(--signal); transform: translateX(3px); }
.account-me { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.account-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); font-weight: 700; font-size: 14px; }
.account-who { flex: 1; min-width: 200px; display: flex; flex-direction: column; font-size: 14.5px; line-height: 1.4; }
.account-who .muted { font-size: 13px; overflow-wrap: anywhere; }
.account-links { display: flex; gap: 18px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .hub-card, .hub-go { transition: none; } .hub-card:hover { transform: none; } }

/* the daily quiz (page-daily-quiz.php, assets/quiz.js) and its box on the home page */
.quiz { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.quiz-topics { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 18px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.quiz-topics legend { padding: 0 6px; font-weight: 600; color: var(--ink); font-size: 14px; }
.quiz-topics legend .muted { font-weight: 400; }
.quiz-topics label { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.quiz-topics input { width: auto; margin: 0; padding: 0; accent-color: var(--brand); }
.quiz-card { gap: 18px; padding: clamp(22px, 3vw, 32px); }
.quiz-card h2 { font-size: clamp(20px, 2.2vw, 25px); }
.quiz-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 13.5px; }
.quiz-dots { display: inline-flex; gap: 6px; margin-left: auto; }
.quiz-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.quiz-dots i.now { background: var(--signal); }
.quiz-dots i.right { background: var(--green); }
.quiz-dots i.wrong { background: var(--red); }
.quiz-choices { display: flex; flex-direction: column; gap: 10px; }
.quiz-choice { text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 16px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.quiz-choice:hover:not(:disabled) { border-color: var(--signal); background: var(--surface-2); }
.quiz-choice:disabled { cursor: default; opacity: 0.75; }
.quiz-choice.right { opacity: 1; border-color: var(--green); background: #eaf7f0; color: #145c37; font-weight: 600; }
.quiz-choice.wrong { opacity: 1; border-color: var(--red); background: #fdeeee; color: #8a2222; }
.quiz-result { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; border-top: 1px solid var(--line); }
.quiz-result p { color: var(--text); }
.quiz-verdict { font-weight: 700; padding-top: 12px; }
.quiz-result.right .quiz-verdict { color: #145c37; }
.quiz-result.wrong .quiz-verdict { color: #8a2222; }
.quiz-review { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 16px; }
.quiz-review li { display: flex; flex-direction: column; gap: 4px; }
.quiz-review li::marker { font-weight: 700; color: var(--muted); }
.quiz-review li p { color: var(--text); }
.quiz-review li.right > p:nth-child(2) { color: #145c37; }
.quiz-review li.wrong > p:nth-child(2) { color: #8a2222; }
.quiz-review-q { font-weight: 600; color: var(--ink) !important; }
.quiz-about { position: sticky; top: 96px; gap: 14px; }
.quiz-about .ticks { font-size: 14.5px; }
.quiz-home { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 48px; align-items: start; margin-bottom: 56px; }
.quiz.compact .quiz-stage { min-height: 380px; }
.quiz-source { font-size: 13.5px; color: var(--muted) !important; }
.quiz-source a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.quiz-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
@media (max-width: 1080px) { .quiz-about { position: static; } .quiz-home { grid-template-columns: 1fr; } .quiz.compact .quiz-stage { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .quiz-choice { transition: none; } }
