:root {
  color-scheme: light;
  --cream: #F9F5F0; --ink: #2D2D2D; --blue: #196BDE; --blue-dark: #1457B5; --orange: #F39819;
  --lime: #C1FF72; --card: #FDFCFA; --line: #E3DDD3; --muted: #626262; --thead: #E3EDFB; --sand: #F3EEE6;
  --wrap: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.55 'Hanken Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* header, after the seminar title slide */
.top { position: relative; padding-top: 84px; padding-bottom: 40px; }
@media (min-width: 720px) { .top { padding-top: 56px; } }
.dot { position: absolute; top: 28px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
@media (min-width: 720px) { .dot { right: 32px; top: 36px; width: 56px; height: 56px; } }
.eyebrow { color: var(--blue); font-weight: 600; font-size: 15px; margin: 0 0 10px; }
h1 { font-weight: 300; font-size: clamp(40px, 8vw, 76px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 22px; max-width: 13ch; }
.lead { font-size: 19px; max-width: 40em; margin: 0; }
.band { background: var(--blue); color: #fff; }
.band .wrap { display: grid; gap: 18px; padding-top: 22px; padding-bottom: 24px; }
@media (min-width: 720px) {
  .band .wrap { grid-template-columns: 1fr 1fr; gap: 0; }
  /* full-height gap between the two halves, as on the seminar title slide */
  .band .wrap > div + div { position: relative; padding-left: 28px; }
  .band .wrap > div + div::before { content: ""; position: absolute; left: 0; top: -22px; bottom: -24px; width: 4px; background: var(--cream); }
}
.band p { margin: 0; font-size: 15px; line-height: 1.5; }
.band b { font-weight: 600; display: block; font-size: 16px; }
.band a { color: #fff; }

nav.toc { position: sticky; top: 0; z-index: 5; background: rgba(249,245,240,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
nav.toc ul { list-style: none; margin: 0 auto; padding: 0 16px; max-width: var(--wrap); display: flex; gap: 4px 20px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
nav.toc ul::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { nav.toc ul { padding: 0 32px; } }
nav.toc a { display: block; padding: 14px 0 12px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
nav.toc a:hover { color: var(--blue); border-bottom-color: var(--blue); }

main section { padding: 56px 0 8px; }
h2 { color: var(--blue); font-weight: 500; font-size: clamp(28px, 4.4vw, 38px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 22px; }
h3 { font-size: 20px; font-weight: 600; margin: 36px 0 12px; }
p { margin: 0 0 14px; max-width: 44em; }
.muted { color: var(--muted); }
.mark { background: var(--lime); padding: 0 .25em; border-radius: 3px; }
q { quotes: "„" "”"; }

/* label/value rows, like the brief slide */
.rows { margin: 0; border-top: 1px solid var(--line); }
.rows > div { display: grid; gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .rows > div { grid-template-columns: 230px 1fr; } }
.rows dt { font-weight: 600; }
.rows dd { margin: 0; }
.rows .when { color: var(--blue); }
.rows .todo { background: #FFE8E8; outline: 2px dashed #C62828; padding-left: 10px; padding-right: 10px; }
.rows .todo .when { color: #9B1C1C; }

.two { display: grid; gap: 20px; }
@media (min-width: 800px) { .two { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 18px; }
.card h3 { margin: 0 0 2px; font-size: 22px; }
.card .url { font-weight: 600; margin: 0 0 12px; }
.card ul { margin: 10px 0 14px; padding-left: 0; list-style: none; }
.card li { padding: 6px 0; border-top: 1px solid var(--line); }
.card li b { font-weight: 600; }
.card .quote { font-style: italic; color: var(--muted); margin: 0; font-size: 15.5px; }

/* the team tool */
.tool { margin-top: 28px; background: var(--card); border: 2px solid var(--blue); border-radius: 14px; padding: 22px; }
.tool h3 { margin-top: 0; }
.pick { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin-bottom: 4px; }
.pick label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
select { font: inherit; font-size: 17px; padding: 9px 36px 9px 12px; border: 1px solid #bdb5a8; border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232D2D2D' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 12px; appearance: none; min-width: 170px; color: var(--ink); }
select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.out { display: grid; gap: 22px; margin-top: 20px; }
.out[hidden] { display: none; }
@media (min-width: 720px) { .out { grid-template-columns: 200px 1fr; align-items: start; } }
.out img { width: 200px; height: 200px; display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; image-rendering: pixelated; }
.out .k { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 2px; }
.out .big { font-size: clamp(22px, 3.6vw, 28px); font-weight: 600; margin: 0 0 16px; word-break: break-all; }
.out .big a { color: var(--ink); text-decoration-color: var(--orange); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.btn { font: inherit; font-size: 15px; font-weight: 600; display: inline-block; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--blue); background: #fff; color: var(--blue); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--thead); color: var(--blue-dark); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); color: #fff; }
.sig { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.sig code { font: inherit; font-size: 16px; background: var(--sand); border-radius: 6px; padding: 7px 10px; }

ul.rules { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); max-width: 48em; }
ul.rules li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); }
ul.rules li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }

/* scale + grids */
.scale { border-collapse: collapse; width: 100%; max-width: 760px; margin: 6px 0 20px; font-size: 16px; }
.scale th, .scale td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.scale thead th { background: var(--thead); font-weight: 600; font-size: 14px; }
.scale td:first-child { font-weight: 600; white-space: nowrap; color: var(--blue); }
.scale td:nth-child(2) { white-space: nowrap; font-weight: 600; }
.split { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.split span { background: var(--sand); border-radius: 999px; padding: 6px 14px; font-weight: 500; }
.split b { color: var(--blue-dark); }
ol.grid { list-style: none; padding: 0; margin: 0 0 8px; border-top: 2px solid var(--ink); counter-reset: c; }
ol.grid > li { counter-increment: c; display: grid; gap: 4px 20px; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line); position: relative; }
ol.grid > li::before { content: counter(c); position: absolute; left: 0; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 14px; line-height: 28px; text-align: center; }
@media (min-width: 820px) { ol.grid > li { grid-template-columns: 190px 1fr 1fr; } }
ol.grid .name { font-weight: 600; }
ol.grid .top9 { font-size: 15.5px; }
ol.grid .top9::before { content: "Pentru 9–10: "; font-weight: 600; color: var(--blue); }
@media (min-width: 820px) {
  ol.grid .top9::before { content: none; }
  .gridhead { display: grid; grid-template-columns: 190px 1fr 1fr; gap: 20px; padding: 0 0 6px 44px; font-size: 14px; font-weight: 600; color: var(--muted); }
}
@media (max-width: 819px) { .gridhead { display: none; } }

.deliver { display: grid; gap: 20px; }
@media (min-width: 800px) { .deliver { grid-template-columns: 1fr 1fr; } }
.deliver .rows > div { grid-template-columns: 96px 1fr; }

.log { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 8px 0 6px; }
.logwrap { overflow-x: auto; max-width: 100%; }
.log th, .log td { text-align: left; padding: 9px 12px; border: 1px solid var(--line); vertical-align: top; }
.log th { background: var(--thead); font-weight: 600; font-size: 14px; }
.log td { background: var(--card); color: var(--muted); font-style: italic; min-width: 130px; }

ul.plain { margin: 0 0 14px; padding-left: 20px; max-width: 44em; }
ul.plain li { margin: 4px 0; }

footer { margin-top: 72px; background: var(--blue); color: #fff; }
footer .wrap { padding-top: 26px; padding-bottom: 30px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
footer a { color: #fff; }
footer p { margin: 0; }

/* switch between the two pages */
.sitebar { border-bottom: 1px solid var(--line); }
.sitebar ul { list-style: none; margin: 0 auto; max-width: var(--wrap); padding: 0 16px; display: flex; gap: 4px 24px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.sitebar ul::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .sitebar ul { padding: 0 32px; } }
.sitebar a { display: block; padding: 13px 0 10px; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.sitebar a:hover { color: var(--blue); }
.sitebar a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }
.top .dot { top: 24px; }
.cta { margin: 24px 0 0; }

/* labels inside cards */
.label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); font-style: normal; margin: 0 0 2px; }
.log caption { caption-side: bottom; text-align: left; padding-top: 6px; font-size: 15px; color: var(--muted); }

/* tasks page */
ol.taskcards { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.taskcard .open { display: block; color: var(--ink); text-decoration: none; }
.taskcard img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(45,45,45,.06); transition: transform .18s ease, box-shadow .18s ease; }
.taskcard .open:hover img { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(45,45,45,.14); }
.taskcard h2 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: 0; color: var(--ink); margin: 12px 0 2px; }
.taskcard .open:hover h2 { color: var(--blue); }
.taskcard .meta { margin: 0; font-size: 15px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .taskcard img { transition: none; } .taskcard .open:hover img { transform: none; } }

/* gallery */
html.g-lock, html.g-lock body { overflow: hidden; }
.gallery { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #1C1C1C; color: #fff; }
.gallery[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
.gallery::backdrop { background: rgba(28,28,28,.92); }
.g-bar { display: flex; align-items: center; gap: 8px 16px; padding: 10px 12px 10px 20px; }
.g-title { flex: 1; min-width: 0; margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-count { margin: 0; color: #C9C9C9; font-variant-numeric: tabular-nums; }
.g-pdf { color: #fff; font-weight: 600; font-size: 15px; }
.g-pdf:hover { color: var(--orange); }
.g-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; padding: 0; }
.g-btn:hover:not(:disabled) { background: rgba(255,255,255,.2); }
.g-btn:disabled { opacity: .25; cursor: default; }
.g-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.g-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 14px 12px; padding: 4px 16px 0; min-height: 0; touch-action: pan-y pinch-zoom; }
.g-img { grid-column: 1 / -1; align-self: center; justify-self: center; max-width: 100%; max-height: 100%; width: auto; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 8px; background: #2a2a2a; user-select: none; -webkit-user-drag: none; }
.g-prev { justify-self: end; }
.g-next { justify-self: start; }
@media (min-width: 900px) {
  .g-stage { grid-template-columns: 64px minmax(0, 1fr) 64px; grid-template-rows: minmax(0, 1fr); padding: 0 12px; }
  .g-img { grid-column: 2; grid-row: 1; }
  .g-prev { grid-column: 1; grid-row: 1; align-self: center; justify-self: start; }
  .g-next { grid-column: 3; grid-row: 1; align-self: center; justify-self: end; }
}
.g-thumbs { display: flex; gap: 8px; padding: 14px 16px 18px; overflow-x: auto; scrollbar-width: none; }
.g-thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .g-thumbs { justify-content: center; } }
.g-thumbs button { flex: none; padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; opacity: .55; line-height: 0; }
.g-thumbs button:hover { opacity: .85; }
.g-thumbs button[aria-current="true"] { border-color: var(--orange); opacity: 1; }
.g-thumbs img { width: 88px; height: auto; aspect-ratio: 16 / 9; border-radius: 4px; }
@media (min-width: 720px) { .g-thumbs img { width: 112px; } }
.gallery :focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
