/* Shared look for every page except the homepage (the homepage has its own home.css).
   Loaded after site.css. Every rule starts with :root so it always wins over the older site.css rules.
   Same font, colours, header, footer and buttons as the homepage; no decorative photos, people stay. */
:root {
  --cream: #faf8f3;
  --paper: #f3f0e8;
  --ink: #101a3a;
  --green: #101a3a;
  --mist: #f3f0e8;
  --gold: #c93b1a;
  --stage-gold: #c93b1a;
  --muted: #5d6479;
  --line: #dcd9cf;
  --coral: #ff6f4d;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: max(40px, calc((100% - 1160px) / 2));
}

:root body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

/* Header */
:root .bar {
  background: var(--cream);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 20px 40px;
  align-items: center;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}
:root .bar > a:first-child { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; line-height: 1; }
:root .bar nav { align-items: center; gap: 8px 28px; }
:root .bar a:hover, :root .bar a[aria-current="page"] { text-decoration: none; color: var(--gold); }
:root .bar > a:first-child:hover { color: var(--ink); }
:root .bar nav a[href^="login"] { padding: 9px 18px; border: 1px solid var(--ink); border-radius: 999px; }
:root .bar nav a[href^="login"]:hover, :root .bar nav a[href^="login"][aria-current="page"] { background: var(--ink); color: var(--cream); }
:root #lang-switch { font: 500 13px/1 var(--font); border-color: var(--line); border-radius: 999px; padding: 6px 10px; }

/* Headings: the same bold sans as the homepage */
:root h1, :root h2, :root h3, :root .fee, :root .day strong, :root .day span, :root .fee-block strong,
:root .topic-list strong, :root .topics strong, :root .outcomes strong, :root .face strong, :root .facts strong, :root .summary dd, :root .day-open .when, :root #chosen-time,
:root .edition-days > li > span, :root .day-person strong, :root .display {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.02em;
}
:root h1, :root h2 { letter-spacing: -0.04em; }
:root h1, :root h2, :root h3 { line-height: 1.08; }
:root .day span, :root .edition-days > li > span { font-weight: 600; }

:root .section h2, :root .band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 22ch; }
:root .other h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
:root .edition h3 { font-size: clamp(1.5rem, 2.1vw, 2rem); }
:root .fee-block strong { font-size: 2.4rem; }
:root .card h2 { font-size: 1.35rem; }
:root .who h2 { font-size: 1.45rem; }
:root .topics strong { font-size: 1.15rem; }
:root .outcomes strong { font-size: 1.2rem; }
:root .summary dd { font-size: 1.15rem; }
:root .summary dd.fee-figure { font-size: 2rem; }
:root .day-open .when { font-size: 1.15rem; }
:root .book-page h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); max-width: 13ch; }
:root .profile h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); max-width: 14ch; }

/* Small labels and the spots that used the old body font */
:root .fee span, :root .fee-block span, :root .langs span, :root .ahead span, :root .edition-days .langs span:first-child {
  font-family: var(--font);
  font-weight: 600;
}
:root .summary dd.plain { font-family: var(--font); font-weight: 500; letter-spacing: 0; }
:root .which, :root .filter-label, :root label, :root .summary dt, :root .back { font-weight: 600; }

/* Page headers: big type, no photo, same left edge as the page content */
:root .work-hero, :root .session-hero, :root .login-hero {
  display: block;
  min-height: 0;
  background: var(--cream);
  color: var(--ink);
}
:root body:not(.page-edition) .work-hero > img, :root .session-hero > img, :root .login-hero img,
:root .room-link img { display: none; }
:root body[class] .work-copy, :root .session-copy, :root .login-panel {
  padding: 72px var(--gutter) 56px;
  align-items: flex-start;
  justify-content: flex-start;
}
:root .work-copy h1, :root .session-copy h1, :root .login-panel h1,
:root body.page-edition .work-copy h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  max-width: 16ch;
}
:root .work-copy .which, :root .session-copy .which, :root .login-panel .which {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 20px;
}
:root .work-copy p, :root .session-copy p, :root .login-panel p { max-width: 38rem; font-size: 1.1rem; color: #3b4361; }
:root .work-hero .fee-block span, :root .work-hero .which { color: var(--gold); }
:root .login-panel input { font-family: var(--font); }

/* Workshop page: the editions sit right under the headline */
:root body.page-workshop .work-copy { padding-bottom: 8px; }

/* Edition pages keep their city photo next to the headline */
:root body.page-edition .work-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; }
:root body.page-edition .work-hero > img { display: block; width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
:root body.page-edition .work-copy { padding: 56px 40px 56px 48px; justify-content: flex-end; }
:root body.page-edition .work-copy h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); max-width: 14ch; }

/* Edition cards keep their city photos */
:root .edition { overflow: hidden; }
:root .edition img { border-radius: 0; filter: none; }
:root .room-link { grid-template-columns: 1fr; min-height: 0; background: var(--paper); }
:root .room-link div { padding: 48px var(--gutter); justify-content: flex-start; }
:root .room-link h2 { color: var(--ink); max-width: 20ch; }
:root .room-link p { color: #3b4361; }

/* Gutters so every section lines up with the page header */
:root .section, :root .other, :root .note, :root .edition-crumb,
:root body[class] .section, :root body[class] .other, :root body[class] .note {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
:root .note, :root body[class] .note { max-width: none; }
:root .section-inner, :root .wrap, :root body.page-workshop .section-inner { max-width: 1160px; }

/* Buttons and chips become pills */
:root button[type="submit"], :root button.action, :root a.action, :root .text-btn, :root .go {
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}
:root button[type="submit"]:hover, :root button.action:hover, :root a.action:hover, :root .text-btn:hover, :root .go:hover {
  background: var(--gold);
  color: #fff;
}
:root button:disabled:hover { background: var(--ink); }
:root .lang-row a, :root .chip, :root .slot { border-radius: 999px; }
:root .slot:hover, :root .slot[aria-pressed="true"], :root .lang-row a:hover, :root .chip:hover, :root .chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cream);
}
:root .edition-nav button { border-radius: 50%; }
:root .edition-nav button:hover { background: var(--ink); color: var(--cream); }
:root .edition-nav button:disabled:hover { background: transparent; color: inherit; }
:root .sort-row select { border-radius: 999px; padding: 8px 14px; }
:root .login-links button, :root .login-links a { background: transparent; color: var(--ink); border-radius: 0; padding: 0; font-weight: 500; }
:root .login-links button:hover, :root .login-links a:hover { background: transparent; color: var(--gold); }

/* Surfaces */
:root .card, :root .edition, :root .summary, :root .book-band { border-radius: 16px; }
:root .card, :root .summary, :root .book-band { background: var(--paper); }
:root .card:hover { border-color: var(--ink); }
:root .edition { background: #fff; box-shadow: 0 16px 40px rgba(16, 26, 58, 0.1); }
:root .edition.is-selected { box-shadow: 0 18px 44px rgba(16, 26, 58, 0.14), inset 0 0 0 2px var(--ink); }
:root .other.green { background: var(--paper); }
:root .form-error, :root .book-band .form-error, :root .login-panel .form-error { color: #b3261e; }
:root .face img, :root .profile img, :root .card img, :root .days img { filter: none; }
:root .card img, :root .profile img, :root .who img, :root .day-person img, :root .days img { border-radius: 12px; }

/* Footer */
:root footer, :root .colophon, :root body[class] footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 28px var(--gutter) 32px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
:root footer a { color: var(--ink); }

/* Chinese and Korean: the site's CJK sans fonts in place of the old serif ones */
:root.lang-zh h1, :root.lang-zh h2, :root.lang-zh h3, :root.lang-zh .fee, :root.lang-zh .day strong,
:root.lang-zh .day span, :root.lang-zh .fee-block strong, :root.lang-zh .topic-list strong, :root.lang-zh .topics strong,
:root.lang-zh .summary dd, :root.lang-zh .day-open .when, :root.lang-zh #chosen-time,
:root.lang-zh .edition-days > li > span, :root.lang-zh .day-person strong, :root.lang-zh .which, :root.lang-zh .bar > a:first-child,
:root.lang-zh #lang-switch {
  font-family: "Noto Sans SC", var(--font);
}
:root.lang-ko h1, :root.lang-ko h2, :root.lang-ko h3, :root.lang-ko .fee, :root.lang-ko .day strong,
:root.lang-ko .day span, :root.lang-ko .fee-block strong, :root.lang-ko .topic-list strong, :root.lang-ko .topics strong,
:root.lang-ko .summary dd, :root.lang-ko .day-open .when, :root.lang-ko #chosen-time,
:root.lang-ko .edition-days > li > span, :root.lang-ko .day-person strong, :root.lang-ko .which, :root.lang-ko .bar > a:first-child,
:root.lang-ko #lang-switch {
  font-family: "Noto Sans KR", var(--font);
}
:root.lang-zh h1, :root.lang-zh h2, :root.lang-zh h3, :root.lang-ko h1, :root.lang-ko h2, :root.lang-ko h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}
:root.lang-zh body, :root.lang-ko body { line-height: 1.7; }
:root.lang-zh .work-copy h1, :root.lang-zh .session-copy h1, :root.lang-zh .login-panel h1,
:root.lang-ko .work-copy h1, :root.lang-ko .session-copy h1, :root.lang-ko .login-panel h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  :root .bar { padding: 14px 20px; }
  :root body.page-edition .work-hero { grid-template-columns: 1fr; }
  :root body.page-edition .work-hero > img { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  :root body.page-edition .work-copy { padding: 32px 20px 40px; }
  :root body[class] .work-copy, :root .session-copy, :root .login-panel { padding-top: 44px; padding-bottom: 40px; }
  :root .room-link div { padding-top: 36px; padding-bottom: 36px; }
}

:root.lang-zh .outcomes strong, :root.lang-zh .face strong { font-family: "Noto Sans SC", var(--font); }
:root.lang-ko .outcomes strong, :root.lang-ko .face strong { font-family: "Noto Sans KR", var(--font); }
