@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Inter:wght@400;500;600&display=swap');

/* LocoMojo student portal. Clean white, black type, gold as a thin accent. */

:root {
  --paper: #FAFAF9;
  --paper-deep: #F1F0EE;
  --card: #FFFFFF;
  --ink: #1A1612;
  --ink-soft: #5F5A52;
  --ink-faint: rgba(26, 22, 18, 0.09);
  --ink-line: rgba(26, 22, 18, 0.16);
  --gold: #C19635;
  --gold-hover: #CBA44A;
  --gold-deep: #85641C;
  --cream: #FFFFFF;
  --night: #0A0A0A;
  --display: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --radius-btn: 10px;
  --bar: 68px;
  --dock: 68px;
  --max: 920px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
button { cursor: pointer; }
::selection { background: rgba(193, 150, 53, 0.22); }

/* ── Type ─────────────────────────────────────────── */
.kicker {
  margin: 0 0 4px;
  font-size: 13px; font-weight: 400;
  color: var(--ink-soft);
}
.kicker i { display: none; }
.display {
  font-family: var(--display); font-weight: 400;
  letter-spacing: -0.015em; line-height: 0.96;
  margin: 0;
}
.muted { color: var(--ink-soft); }
.fine {
  font-size: 12px; font-weight: 500;
  color: var(--ink-soft);
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  font-size: 14px; font-weight: 500;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  text-decoration: none; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn--gold {
  background: rgba(193, 150, 53, 0.12); color: var(--gold-deep); border-color: transparent;
}
.btn--gold:hover { background: rgba(193, 150, 53, 0.2); }
.btn--ghost {
  background: var(--card); color: var(--ink);
  border-color: var(--ink-line);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--line {
  background: transparent; color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--line:hover { border-color: var(--cream); }
.btn--paper {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.btn--block { width: 100%; }
.btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* ── Cards ────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius);
}
.card--pad { padding: 22px 24px; }

/* ── App chrome ───────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--bar);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  background: var(--card);
  border-bottom: 1px solid var(--ink-faint);
}
.topbar__brand { justify-self: start; line-height: 0; }
.topbar__brand img { height: 30px; width: auto; }
.topbar__nav {
  display: flex; align-items: center; gap: 28px;
}
.topbar__nav a {
  font-size: 14px; font-weight: 400;
  color: var(--ink-soft);
  padding: 8px 0;
}
.topbar__nav a:hover { color: var(--ink); }
.topbar__nav a.is-on { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--gold); }
.topbar__right {
  justify-self: end;
  display: flex; align-items: center; gap: 12px;
}
.avatar {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  font-family: var(--display); font-size: 16px;
  color: var(--ink);
  background: var(--card);
}
.avatar:hover { border-color: var(--ink); }

.dock { display: none; }

.wrap {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  padding: 32px 0 80px;
}

/* ── Home ─────────────────────────────────────────── */
.hello { margin: 0 0 22px; }
.hello h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1; margin: 0;
}
.hello p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.next {
  overflow: hidden;
  margin-bottom: 16px;
}
.next picture, .next img {
  width: 100%; aspect-ratio: 16 / 8; object-fit: cover;
}
.next__shade { display: none; }
.next__in { padding: 18px 20px 20px; }
.next__in .kicker {
  margin: 0 0 4px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gold-deep);
}
.next__in h2 {
  font-family: var(--display); font-weight: 500;
  font-size: 30px; line-height: 1.1; margin: 0 0 4px;
}
.next__in h2 em { font-style: normal; }
.next__meta { margin: 0 0 16px; color: var(--ink-soft); font-size: 14px; }
.next__acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.start {
  padding: 36px 32px;
  margin-bottom: 16px;
}
.start h2 {
  font-family: var(--display); font-weight: 400;
  font-size: 40px; line-height: 0.96; margin: 0 0 10px;
}
.start p { margin: 0 0 22px; max-width: 420px; color: var(--ink-soft); }

.week { margin-bottom: 16px; overflow: hidden; }
.week__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 20px 10px;
}
.week__head h2 {
  font-family: var(--display); font-weight: 500;
  font-size: 24px; margin: 0;
}
.week__head a { font-size: 13px; font-weight: 500; color: var(--gold-deep); }
.week__head a:hover { color: var(--ink); }
.row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px; align-items: center;
  padding: 16px 24px;
  border-top: 1px solid var(--ink-faint);
}
.row__when { font-size: 14px; color: var(--ink); }
.row__name { font-size: 15px; font-weight: 500; }
.row__sub { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.row__mark { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.row.is-next .row__mark { color: var(--gold-deep); }

.strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-bottom: 16px;
  background: var(--card);
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius);
  overflow: hidden;
}
.tile {
  display: block; padding: 16px 18px;
  border-left: 1px solid var(--ink-faint);
  transition: background .18s ease;
}
.tile:first-child { border-left: 0; }
.tile:hover { background: var(--paper); }
.tile .fine { font-weight: 400; }
.tile strong {
  display: block; margin-top: 4px;
  font-size: 18px; font-weight: 600; line-height: 1.3;
  color: var(--ink);
}
.tile span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-soft); }

.week-day__title {
  margin: 0;
  padding: 14px 20px 2px;
  font-size: 13px; font-weight: 600;
  color: var(--ink);
}
.week-day + .week-day { border-top: 1px solid var(--ink-faint); }
.help__acts { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.invite, .help {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px; margin-bottom: 16px;
}
.invite__code {
  font-size: 15px; font-weight: 600; letter-spacing: 0.06em;
  margin: 4px 0 0;
}
.help p { margin: 4px 0 0; font-size: 14px; }
.help__links a { border-bottom: 1px solid var(--ink-faint); }
.help__links a:hover { border-bottom-color: var(--ink); }
.help__links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 10px; }
.help__links a {
  font-size: 13px; color: var(--ink);
  border-bottom: 1px solid var(--ink-faint);
}
.help__links a:hover { border-bottom-color: var(--ink); }
.help__social {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.help__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--ink-line); border-radius: 50%;
  color: var(--ink-soft);
}
.help__social a:hover { color: var(--ink); border-color: var(--ink); }
.help__social svg { width: 16px; height: 16px; display: block; }

.pdash-group {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; margin-bottom: 16px;
}
.pdash-group .sec-head { margin: 4px 0 0; }
.pdash-group .muted { margin: 2px 0 0; font-size: 13px; }

.more { overflow: hidden; margin-bottom: 18px; }
.more__row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--ink-faint);
}
.more__row:first-child, .more__row.hidden + .more__row { border-top: 0; }
.more__row b { display: block; font-size: 15px; font-weight: 600; }
.more__row small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
.more__go {
  flex-shrink: 0;
  font-size: 13px; font-weight: 500; color: var(--gold-deep);
}
.more__row:hover .more__go { color: var(--ink); }
.home-help { margin: 0; text-align: center; font-size: 13px; color: var(--ink-soft); }
.home-help a { color: var(--ink); border-bottom: 1px solid var(--ink-line); }

/* ── Book ─────────────────────────────────────────── */
.mosaic { display: grid; gap: 14px; }
.mosaic a.shot {
  position: relative; overflow: hidden;
  min-height: 220px; color: #fff;
}
.mosaic a.shot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.mosaic a.shot::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.05) 30%, rgba(10,10,10,0.7) 100%);
}
.mosaic a.shot > div {
  position: relative; z-index: 1;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
}
.mosaic a.shot h2 {
  font-family: var(--display); font-weight: 400;
  font-size: 36px; line-height: 0.96; margin: 0 0 6px;
}
.mosaic a.shot p { margin: 0; color: rgba(255,255,255,0.82); font-size: 14px; }

/* ── Account ──────────────────────────────────────── */
.stack { display: grid; gap: 16px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
}
.field input {
  width: 100%; padding: 12px 13px;
  font-size: 15px; color: var(--ink);
  background: var(--card);
  border: 1px solid var(--ink-line);
  border-radius: 8px;
}
.field input:focus { outline: none; border-color: var(--ink); }
.field input[readonly] { opacity: 0.7; }
.acct-head h2,
.sec-head {
  font-family: var(--display); font-weight: 500;
  font-size: 24px; margin: 0 0 14px;
}
.order {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 16px; align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--ink-faint);
  font-size: 14px;
}
.order:first-of-type { border-top: 0; padding-top: 0; }
.order b { font-weight: 500; }
.order .amt { font-variant-numeric: tabular-nums; color: var(--ink); }
.order .st { font-size: 12px; color: var(--ink-soft); }
.signout {
  display: inline-block; margin-top: 8px;
  font-size: 13px; color: var(--ink-soft);
  border-bottom: 1px solid var(--ink-faint);
  background: none; border-left: 0; border-right: 0; border-top: 0;
  padding: 0 0 2px; border-radius: 0;
}
.signout:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ── Check-in ─────────────────────────────────────── */
.check {
  min-height: calc(100vh - var(--bar));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px 80px;
}
.check__qr {
  width: min(280px, 72vw); aspect-ratio: 1;
  padding: 18px; margin: 0 0 28px;
  background: #fff;
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius);
}
.check__qr svg { width: 100%; height: 100%; display: block; }
.check h1 {
  font-family: var(--display); font-weight: 400;
  font-size: 40px; margin: 0 0 8px;
}
.check p { margin: 0 0 24px; color: var(--ink-soft); }

/* ── Login ────────────────────────────────────────── */
body.login-body { background: var(--card); }
.foyer {
  min-height: 100vh;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
}
.foyer__photo { position: relative; min-height: 100vh; overflow: hidden; }
.foyer__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 20%;
}
.foyer__photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.08), rgba(10,10,10,0.18));
}
.foyer__panel {
  background: var(--card);
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 64px;
}
.foyer__inner { width: 100%; max-width: 360px; margin: 0 auto; }
.foyer__logo { display: block; width: 148px; margin: 0 0 40px; }
.foyer__logo img { width: 100%; height: auto; }
.foyer h1 {
  font-family: var(--display); font-weight: 400;
  font-size: 44px; line-height: 1.05; margin: 0 0 10px;
}
.foyer .lede { margin: 0 0 32px; color: var(--ink-soft); font-size: 15px; }
.foyer label {
  display: block; margin: 0 0 6px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
}
.foyer input[type="email"] {
  width: 100%; padding: 13px 14px; margin: 0 0 18px;
  font-size: 15px; color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink-line);
  border-radius: 8px;
}
.foyer input:focus { outline: none; border-color: var(--ink); }
.foyer input::placeholder { color: rgba(26, 22, 18, 0.32); }
.codes {
  display: flex; gap: 8px; margin: 0 0 20px;
}
.codes input {
  flex: 1; min-width: 0; height: 56px;
  text-align: center;
  font-size: 22px; font-variant-numeric: tabular-nums;
  color: var(--ink); background: #fff;
  border: 1px solid var(--ink-line);
  border-radius: 8px;
}
.codes input:focus { outline: none; border-color: var(--ink); }
.resend {
  display: block; width: 100%; margin: 12px 0 0;
  padding: 8px; border: 0; background: none;
  font-size: 13px; color: var(--ink-soft);
}
.resend:hover { color: var(--ink); }
.foyer__back {
  display: inline-block; margin-top: 28px;
  font-size: 13px; color: var(--ink-soft);
  border-bottom: 1px solid var(--ink-faint);
}
.foyer__back:hover { color: var(--ink); border-bottom-color: var(--ink); }
.foyer__note {
  margin-top: 48px;
  font-size: 12px;
  color: rgba(26, 22, 18, 0.45);
}

/* ── Proto review chrome ──────────────────────────── */
body.check-body .dock { display: none; }
body.check-body .wrap,
body.check-body .check { padding-bottom: 48px; }

.hidden { display: none !important; }

/* ── Phone ────────────────────────────────────────── */
@media (max-width: 880px) {
  .topbar {
    padding: 0 16px;
    grid-template-columns: 1fr auto;
  }
  .topbar__nav { display: none; }
  .topbar__brand { grid-column: 1; }
  .topbar__right { grid-column: 2; }

  .dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--dock) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--card);
    border-top: 1px solid var(--ink-faint);
  }
  .dock a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(26, 22, 18, 0.45);
  }
  .dock a.is-on { color: var(--ink); font-weight: 500; }
  .dock svg { width: 22px; height: 22px; }

  .wrap { width: calc(100% - 32px); padding: 22px 0 calc(110px + env(safe-area-inset-bottom)); }
  .hello h1 { font-size: 34px; }
  .next__in h2 { font-size: 28px; }
  .tile { padding: 14px 12px; }
  .field-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 68px 1fr auto; gap: 10px; padding: 13px 18px; }
  .week__head { padding: 16px 18px 8px; }
  .week-day__title { padding: 12px 18px 2px; }
  .order { grid-template-columns: 1fr auto; }
  .mosaic a.shot:last-child { margin-bottom: 8px; }

  .foyer { grid-template-columns: 1fr; }
  .foyer__photo { min-height: 30vh; }
  .foyer__panel { padding: 32px 24px 48px; min-height: 66vh; }
}

@media (min-width: 881px) {
  .next:not(.hidden) { display: grid; grid-template-columns: 1.1fr 1fr; }
  .next picture, .next img { height: 100%; min-height: 280px; aspect-ratio: auto; }
  .next__in { padding: 28px 30px; align-self: center; }
  .next__in h2 { font-size: 34px; }
  .mosaic { grid-template-columns: 1.2fr 0.8fr; grid-template-rows: 240px 240px; }
  .mosaic a.shot:first-child { grid-row: 1 / span 2; min-height: 100%; }
}

/* ── Live portal aliases ──────────────────────────── */
:root {
  --portal-page: var(--paper);
  --portal-card: var(--card);
  --portal-raised: var(--card);
  --portal-hairline: var(--ink-faint);
  --portal-hairline-strong: var(--ink-line);
  --portal-text: var(--ink);
  --portal-text-muted: var(--ink-soft);
  --portal-text-faded: rgba(26, 22, 18, 0.5);
  --portal-gold: var(--gold);
  --portal-gold-cream: #f4d8a3;
  --portal-green: #4f9c7d;
  --portal-green-tint: transparent;
  --portal-green-border: var(--ink-line);
  --portal-pink: var(--ink-soft);
  --portal-pink-tint: transparent;
  --portal-pink-border: var(--ink-line);
  --portal-blue: var(--ink-soft);
  --portal-blue-tint: transparent;
  --portal-blue-border: var(--ink-line);
  --portal-teal: var(--ink-soft);
  --portal-teal-tint: transparent;
  --portal-teal-border: var(--ink-line);
  --portal-coral: var(--ink-soft);
  --portal-coral-tint: transparent;
  --portal-coral-border: var(--ink-line);
  --portal-red: #c1463f;
}

body.portal-body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
}
#portal-mount { visibility: hidden; }
#portal-mount:not(:empty) { visibility: visible; }
.portal-app { min-height: 100vh; }
.portal-main { opacity: 1; }
.portal-main--pending { opacity: 0; min-height: 240px; }

.portal-greeting { margin: 0 0 22px; }
.portal-greeting__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1; margin: 0; color: var(--ink);
}
.portal-greeting__sub { margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; }
.mosaic a.shot .kicker { color: rgba(255, 255, 255, 0.8); }

.pcard {
  background: var(--card);
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.pcard__label { font-size: 13px; font-weight: 500; color: var(--ink-soft); margin: 0 0 8px; }
.pcard__title { font-family: var(--display); font-weight: 500; font-size: 24px; margin: 0 0 4px; color: var(--ink); }
.pcard__sub { font-size: 13px; color: var(--ink-soft); margin: 0; }
.pcard__viewlink {
  font-size: 13px; font-weight: 500;
  color: var(--gold-deep); margin-top: 14px; display: inline-block;
}
.pbtn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; font-size: 14px; font-weight: 500;
  border-radius: var(--radius-btn); cursor: pointer;
  border: 1px solid var(--ink-line); background: var(--card); color: var(--ink);
  font-family: inherit;
}
.pbtn:hover { border-color: var(--ink); }

.pupcoming { margin: 0 0 16px; }
.pupcoming__list {
  background: var(--card); border: 1px solid var(--ink-faint); border-radius: var(--radius); overflow: hidden;
}
.pupcoming__head { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 24px 12px; }
.pupcoming__head h2, .pupcoming__head h3 {
  font-family: var(--display); font-weight: 500; font-size: 24px; margin: 0; color: var(--ink);
}
.pupcoming__row {
  display: grid; grid-template-columns: 88px 1fr auto;
  gap: 16px; align-items: center; padding: 16px 24px;
  border-top: 1px solid var(--ink-faint);
}
.pupcoming__row-thumb { display: none; }
.pupcoming__row-time { font-size: 12px; color: var(--ink-soft); }
.pupcoming__row-name { font-size: 15px; font-weight: 500; }
.pupcoming__row-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-soft); font-weight: 400; }
.pupcoming__row-badge { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.pupcoming__empty { padding: 22px; color: var(--ink-soft); font-size: 14px; text-align: center; }
.pupcoming__day-header {
  padding: 12px 24px 8px; font-size: 13px; font-weight: 600;
  color: var(--ink); border-bottom: 1px solid var(--ink-faint);
}

.ptable { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--ink); }
.ptable th {
  text-align: left; font-size: 12px; font-weight: 500;
  color: var(--ink-soft); padding: 10px 14px; border-bottom: 1px solid var(--ink-faint);
}
.ptable td { padding: 12px 14px; border-bottom: 1px solid var(--ink-faint); }
.ptable .num { text-align: right; font-variant-numeric: tabular-nums; }
.ptable .num--pos { color: var(--ink); font-weight: 500; }
.ptable .num--neg { color: var(--portal-red); font-weight: 500; }
.ppill { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--ink-line); display: inline-block; }
.ppill--paid { color: var(--ink); }
.ppill--pending, .ppill--failed, .ppill--other { color: var(--ink-soft); }

.portal-loading { padding: 36px 20px; color: var(--ink-soft); font-size: 13px; text-align: center; }
.portal-error {
  padding: 16px 20px; border: 1px solid rgba(193,70,63,0.40); border-radius: 8px;
  color: var(--portal-red); font-size: 13px; margin-bottom: 20px;
}
.portal-admin-banner {
  margin: 0 0 18px; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--ink-line); border-radius: 10px; font-size: 12px; color: var(--ink-soft);
}
.portal-admin-banner strong { color: var(--ink); }
.portal-admin-banner__exit {
  font-family: inherit; font-size: 11px; padding: 6px 12px;
  border: 1px solid var(--ink-line); border-radius: 999px; background: transparent; color: var(--ink);
  cursor: pointer;
}
.ptabs { display: none; }
.pfoot { display: none; }
.login-status { margin-top: 18px; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.login-status.is-err { color: var(--portal-red); }
.foyer input[type="text"] {
  width: 100%; padding: 13px 14px; margin: 0 0 18px;
  font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--ink-line); border-radius: 8px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Classes and membership share the existing paper/white portal language. */
.portal-section-heading { display: flex; flex-direction: column; align-items: stretch; gap: 24px; margin-bottom: 28px; }
.portal-section-heading .hello { margin-bottom: 0; min-width: 0; }
.portal-subnav { display: inline-flex; gap: 3px; align-self: center; max-width: 100%; padding: 3px; border: 1px solid var(--ink-line); border-radius: 11px; }
.portal-subnav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 112px; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px; color: rgba(26, 22, 18, 0.42); font-size: 13px; font-weight: 400; text-decoration: none; }
.portal-subnav a[aria-current="page"] { color: var(--ink); font-weight: 500; border-color: var(--gold); background: var(--card); }
.portal-subnav a:hover { color: var(--ink); }
.portal-subnav a:focus-visible, .pclass-history > summary:focus-visible, .pclass-source__summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pclass-term { margin: 0 0 40px; }
.pclass-term__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 0 16px; }
.pclass-term__head h2 { margin: 0; font-family: var(--display); font-size: 28px; font-weight: 500; color: var(--ink); }
.pclass-term__dates { font-size: 12px; color: var(--ink-soft); }
.pclass-toggles { display: inline-flex; gap: 3px; margin: 0 0 8px; padding: 3px; border: 1px solid var(--ink-line); border-radius: 11px; }
.pclass-toggle { min-height: 40px; min-width: 112px; padding: 8px 16px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: rgba(26, 22, 18, 0.42); font: 400 13px/1 var(--sans); }
.pclass-toggle.is-on { color: var(--ink); font-weight: 500; border-color: var(--gold); background: var(--card); }
.pclass-toggle:hover { color: var(--ink); }
.pclass-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pclass-source { border: 0; }
.pclass-day + .pclass-day { margin-top: 4px; }
.pclass-day__title { margin: 0; padding: 18px 0 8px; color: var(--ink); font-size: 13px; font-weight: 600; }
.pclass-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: center; padding: 13px 0; border-top: 1px solid var(--ink-faint); }
.pclass-name { display: block; font-size: 15px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.pclass-meta { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.pclass-types { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; max-width: 190px; }
.pclass-type { font-size: 12px; color: var(--ink-soft); line-height: 1.5; text-align: right; }
.pclass-history { margin-top: 28px; }
.pclass-history > summary { width: fit-content; min-height: 44px; padding: 12px 0; cursor: pointer; font-size: 13px; color: var(--ink-soft); }
.pclass-history[open] > summary { margin-bottom: 12px; }
.pclass-empty { padding: 28px 24px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.pclass-empty p { margin: 0 0 8px; }

#sub-host .sub-btn { border-radius: var(--radius-btn); font-weight: 500; letter-spacing: 0; text-transform: none; }
#sub-host .sub-btn--primary { background: rgba(193, 150, 53, 0.12); border-color: transparent; color: var(--gold-deep); }
.sub-pay { width: 100%; border-collapse: collapse; margin: 4px 0 8px; }
.sub-pay th, .sub-pay td { padding: 10px 0; border-bottom: 1px solid var(--ink-faint); font-size: 13px; text-align: left; }
.sub-pay th { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.sub-pay td:last-child, .sub-pay th:last-child { text-align: right; }
.sub-pay-empty { margin: 12px 0; font-size: 13px; color: var(--ink-soft); }
#sub-host .sub-term { margin-top: 28px; }
#sub-host .sub-term__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
#sub-host .sub-term__head h3 { font-family: var(--display); font-weight: 500; font-size: 26px; }
#sub-host .sub-term__dates { color: var(--ink-soft); font-size: 12px; }
#sub-host .sub-weekday { margin-top: 18px; }
#sub-host .sub-weekday-title { margin: 0 0 8px; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
#sub-host .sub-classes { margin: 0; }
#sub-host .sub-class { grid-template-columns: 80px minmax(0, 1fr); padding: 13px 0; }
#sub-host .sub-class-name { font-weight: 400; line-height: 1.5; }
#sub-host .sub-history summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--ink-faint); }
#sub-host .sub-history summary::-webkit-details-marker { display: none; }
#sub-host .sub-history summary::after { content: '+'; font-size: 20px; font-weight: 300; }
#sub-host .sub-history[open] > summary::after { content: '−'; }
@media (max-width: 620px) {
  .portal-section-heading { gap: 20px; }
  .pclass-term__head { padding: 0 0 14px; }
  .pclass-row { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .pclass-types { flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: 4px 12px; max-width: none; }
  .pclass-type { text-align: left; }
  #sub-host .sub-class { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
}

/* ── Your journey (curriculum) ────────────────────── */
.portal-subnav--three a { min-width: 96px; padding: 10px 14px; }
.jr { --jr-green: #2F9E6B; }
.jr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.jr-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--ink-line); border-radius: 999px; background: var(--card); color: var(--ink-soft); font: 500 13px var(--sans); }
.jr-chip span { font-weight: 400; color: var(--ink-soft); }
.jr-chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.jr-chip:focus-visible, .jr-tab:focus-visible, .jr-tick:focus-visible, .jr-move__open:focus-visible, .jr-cell__open:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.jr-prog { padding: 18px 20px; margin-bottom: 14px; }
.jr-prog__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.jr-prog__top b { font-size: 15px; font-weight: 600; }
.jr-prog__top span { font-size: 13px; color: var(--ink-soft); }
.jr-bar { display: grid; grid-template-columns: repeat(var(--jr-weeks, 5), 1fr); gap: 6px; margin: 14px 0 10px; }
.jr-bar i { height: 6px; border-radius: 6px; background: var(--ink-faint); }
.jr-bar i.is-done { background: var(--ink); }
.jr-bar i.is-now { background: var(--gold); }
.jr-prog__next { margin: 0; font-size: 13px; color: var(--ink-soft); }

.jr-tabs { display: grid; grid-template-columns: repeat(var(--jr-weeks, 5), 1fr); gap: 6px; margin: 0 0 12px; }
.jr-tab { min-height: 48px; padding: 4px 0; border: 1px solid var(--ink-line); border-radius: 10px; background: var(--card); color: var(--ink-soft); font: 500 13px/1.2 var(--sans); }
.jr-tab em { display: block; margin-top: 2px; font-style: normal; font-size: 10px; font-weight: 400; color: var(--ink-soft); }
.jr-tab[aria-selected="true"] { border-color: var(--ink); color: var(--ink); }
.jr-week-title { margin: 0 0 8px; font-size: 13px; font-weight: 600; }

.jr-moves { overflow: hidden; }
.jr-moves__empty { margin: 0; padding: 18px 16px; font-size: 14px; color: var(--ink-soft); font-style: italic; }
.jr-move { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; padding: 0 16px 0 0; border-top: 1px solid var(--ink-faint); }
.jr-move:first-child { border-top: 0; }
.jr-move__open { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 64px; padding: 12px 0 12px 16px; border: 0; background: none; color: inherit; text-align: left; font: inherit; }
.jr-move__text b { display: block; font-size: 15px; font-weight: 500; line-height: 1.35; }
.jr-move__text small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-soft); }
.jr-move__more { grid-column: 1 / -1; padding: 0 16px 16px 84px; }
.jr-new { display: inline-block; margin-left: 6px; padding: 0 7px; border: 1px solid var(--gold); border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 18px; color: var(--gold-deep); vertical-align: 2px; }
.jr-thumb { display: grid; place-items: center; width: 56px; height: 40px; border: 1px solid var(--ink-line); border-radius: 8px; color: var(--ink); }
.jr-thumb svg { width: 20px; height: 20px; }
.jr-thumb.is-lock { color: var(--ink-soft); border-color: var(--ink-faint); }
.jr-thumb.is-lock svg { width: 17px; height: 17px; }
.jr-thumb.is-none { border-style: dashed; border-color: var(--ink-faint); }
.jr-tick { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--ink-line); border-radius: 7px; background: var(--card); color: var(--jr-green); }
.jr-tick svg { width: 17px; height: 17px; visibility: hidden; }
.jr-tick[aria-pressed="true"] svg { visibility: visible; }
.jr-tick:hover:not([disabled]) { border-color: var(--ink); }
.jr-tick[disabled] { cursor: default; opacity: 0.6; }
.jr-desc { margin: 0 0 10px; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.jr-video { display: block; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--night); }
.jr-locked { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--ink-soft); }
.jr-locked svg { width: 16px; height: 16px; flex-shrink: 0; }

.jr-note { margin: 14px 0 0; padding: 14px 16px; }
.jr-note b { font-size: 13px; font-weight: 600; }
.jr-note b span { font-weight: 400; color: var(--ink-soft); }
.jr-note p { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

.jr-done { padding: 22px 20px; margin-bottom: 16px; border-top: 2px solid var(--gold); }
.jr-done__kicker { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-deep); }
.jr-done h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.1; }
.jr-done__meta { margin: 0 0 16px; font-size: 13px; color: var(--ink-soft); }
.jr-done__label { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.jr-done__moves { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.jr-done__moves li { padding: 4px 10px; border: 1px solid var(--ink-line); border-radius: 999px; font-size: 13px; }
.jr-done__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.jr-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ink-faint); }
.jr-videos__item { margin: 0; }
.jr-videos__item video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--night); }
.jr-videos__item figcaption { margin-top: 6px; font-size: 13px; font-weight: 500; }

.jr-empty { padding: 26px 22px; }
.jr-empty p { margin: 0 0 16px; font-size: 14px; color: var(--ink-soft); line-height: 1.6; max-width: 480px; }
.jr-error { margin: 12px 0 0; font-size: 13px; color: var(--portal-red); }

.jr-map { display: none; }
.jr-grid { display: grid; grid-template-columns: repeat(var(--jr-weeks, 5), minmax(0, 1fr)); gap: 10px; }
.jr-col h3 { display: flex; justify-content: space-between; gap: 6px; margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.jr-col h3 span { font-weight: 400; color: var(--ink-soft); }
.jr-col.is-now h3 { color: var(--gold-deep); }
.jr-cell { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; margin-bottom: 6px; padding: 4px 8px 4px 0; background: var(--card); border: 1px solid var(--ink-faint); border-radius: 10px; font-size: 13px; }
.jr-cell.is-new { border-color: var(--gold); border-left-width: 3px; }
.jr-cell.is-on { border-color: var(--ink); }
.jr-cell.is-new.is-on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.jr-cell.is-rev { display: block; padding: 9px 11px; color: var(--ink-soft); font-style: italic; }
.jr-cell__open { min-height: 40px; padding: 6px 0 6px 10px; border: 0; background: none; color: var(--ink); text-align: left; font: 400 13px/1.35 var(--sans); }
.jr-cell.is-new .jr-cell__open { font-weight: 600; }
.jr-cell__open small { display: block; font-size: 11px; font-weight: 500; color: var(--gold-deep); }
.jr-cell .jr-tick { width: 24px; height: 24px; border-radius: 6px; }
.jr-cell .jr-tick svg { width: 14px; height: 14px; }
.jr-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; font-size: 12px; color: var(--ink-soft); }
.jr-legend i { display: inline-block; width: 14px; height: 10px; margin-right: 6px; border: 1px solid var(--gold); border-left-width: 3px; border-radius: 3px; vertical-align: -1px; }
.jr-detail { margin-top: 16px; padding: 16px 18px; }
.jr-detail__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.jr-detail__head b { font-size: 15px; font-weight: 600; }
.jr-detail__close { padding: 4px 0; border: 0; background: none; font-size: 13px; color: var(--ink-soft); border-bottom: 1px solid var(--ink-faint); }
.jr-detail__close:hover { color: var(--ink); }

@media (min-width: 900px) {
  .jr-phone { display: none; }
  .jr-map { display: block; }
  .jr-prog { padding: 20px 24px; }
  .jr-done { padding: 26px 28px; }
}
.week__journey, .pclass-journey { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.week__journey { border-top: 1px solid var(--ink-faint); }
.pclass-journey { margin: 0 0 28px; padding: 16px 20px; }
.week__journey b, .pclass-journey b { display: block; font-size: 15px; font-weight: 600; }
.week__journey small, .pclass-journey small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
.week__journey:hover .more__go, .pclass-journey:hover .more__go { color: var(--ink); }
.pclass-journey:hover { border-color: var(--ink-line); }
@media (max-width: 880px) { .week__journey { padding: 13px 18px; } }
