/**
 * public.css — the design system for public pages (homepage, store, courses,
 * apply, spa). Loaded by templates/layouts/landing.php only; everything is
 * scoped under `.pub`, so the signed-in student app is not affected.
 *
 * Plain CSS, no Tailwind dependency: nothing here can go missing because the
 * utility build wasn't re-run.
 *
 * Light and dark follow the site-wide `html.dark` class set by the theme
 * toggle, and the choice is remembered.
 */

.pub {
  --pub-bg: #fbf7f2;
  --pub-bg-2: #f3ebe2;
  --pub-surface: #ffffff;
  --pub-surface-2: #faf5ef;
  --pub-ink: #1a1411;
  --pub-muted: #6f635a;
  --pub-faint: #a0948a;
  --pub-line: rgba(26, 20, 17, .09);
  --pub-line-strong: rgba(26, 20, 17, .16);
  --pub-accent: #ff6b00;
  --pub-accent-2: #ff9a44;
  --pub-accent-ink: #c94f00;
  --pub-accent-soft: rgba(255, 107, 0, .09);
  --pub-gold: #a8782a;
  --pub-shadow: 0 1px 2px rgba(26, 20, 17, .04), 0 18px 44px -24px rgba(26, 20, 17, .22);
  --pub-shadow-lift: 0 2px 4px rgba(26, 20, 17, .05), 0 30px 60px -28px rgba(26, 20, 17, .32);
  --pub-radius: 24px;
  --pub-ease: cubic-bezier(.2, .8, .2, 1);

  background: var(--pub-bg);
  color: var(--pub-ink);
}

html.dark .pub {
  --pub-bg: #0d0a08;
  --pub-bg-2: #140f0c;
  --pub-surface: #19130f;
  --pub-surface-2: #1f1813;
  --pub-ink: #f7efe8;
  --pub-muted: rgba(247, 239, 232, .64);
  --pub-faint: rgba(247, 239, 232, .4);
  --pub-line: rgba(247, 239, 232, .09);
  --pub-line-strong: rgba(247, 239, 232, .18);
  --pub-accent-ink: #ff9a44;
  --pub-accent-soft: rgba(255, 107, 0, .13);
  --pub-gold: #e9b872;
  --pub-shadow: 0 0 0 1px rgba(247, 239, 232, .05), 0 22px 50px -26px rgba(0, 0, 0, .8);
  --pub-shadow-lift: 0 0 0 1px rgba(247, 239, 232, .08), 0 30px 70px -28px rgba(0, 0, 0, .9);
}

.pub ::selection { background: rgba(255, 107, 0, .25); }

/* ── Layout primitives ──────────────────────────────────────────────────── */

.pub-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pub-section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.pub-section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.pub-section--alt { background: var(--pub-bg-2); }

.pub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.pub-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pub-gold);
}

.pub-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.pub-title {
  margin: 0;
  max-width: 18ch;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-variation-settings: 'opsz' 144;
}

.pub-head--center .pub-title { max-width: 20ch; }

.pub-title em,
.pub-accent {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--pub-accent) 0%, var(--pub-accent-2) 50%, var(--pub-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .05em;
}

.pub-lead {
  max-width: 36rem;
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--pub-muted);
}

.pub-head--center .pub-lead { margin-left: auto; margin-right: auto; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--pub-ease), background .25s ease, border-color .25s ease, box-shadow .3s ease, color .25s ease;
}

.pub-btn svg { width: 17px; height: 17px; flex: none; transition: transform .35s var(--pub-ease); }
.pub-btn:hover svg { transform: translateX(3px); }
.pub-btn:active { transform: scale(.97); }

.pub-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pub-accent), #ff8424);
  box-shadow: 0 10px 28px -10px rgba(255, 107, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.pub-btn--primary:hover { box-shadow: 0 16px 36px -10px rgba(255, 107, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .28); }

.pub-btn--ghost {
  color: var(--pub-ink);
  border-color: var(--pub-line-strong);
  background: transparent;
}

.pub-btn--ghost:hover { border-color: var(--pub-ink); }

.pub-btn--ink {
  color: var(--pub-bg);
  background: var(--pub-ink);
}

.pub-btn--ink:hover { box-shadow: var(--pub-shadow-lift); }

.pub-btn--sm { min-height: 40px; padding: 0 1rem; font-size: .84rem; }

.pub-btn:focus-visible,
.pub a:focus-visible,
.pub button:focus-visible {
  outline: 2px solid var(--pub-accent);
  outline-offset: 3px;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--pub-accent-ink);
  text-decoration: none;
}

.pub-link svg { width: 16px; height: 16px; transition: transform .3s var(--pub-ease); }
.pub-link:hover svg { transform: translateX(3px); }

/* ── Header ─────────────────────────────────────────────────────────────── */

.pub-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 72px;
  color: var(--pub-ink);
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}

/* Clear over the hero; a solid bar once the page moves. */
.pub-header.is-solid {
  background: color-mix(in srgb, var(--pub-bg) 82%, transparent);
  border-bottom-color: var(--pub-line);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
}

@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .pub-header.is-solid { background: var(--pub-bg); }
}

.pub-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.pub-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: inherit;
  text-decoration: none;
}

.pub-brand img { height: 38px; width: auto; }

.pub-brand span {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.pub-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.pub-nav a {
  position: relative;
  padding: .55rem .8rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--pub-muted);
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.pub-nav a:hover { color: var(--pub-ink); background: var(--pub-accent-soft); }
.pub-nav a[aria-current="page"] { color: var(--pub-ink); }

.pub-header__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.pub-icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--pub-line);
  border-radius: 50%;
  background: transparent;
  color: var(--pub-ink);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.pub-icon-btn:hover { border-color: var(--pub-line-strong); background: var(--pub-accent-soft); }
.pub-icon-btn svg { width: 19px; height: 19px; }

.pub-menu-btn { display: none; }

@media (max-width: 1023px) {
  .pub-nav { display: none; }
  .pub-menu-btn { display: grid; }
  .pub-header__cta { display: none; }
}

/* Full-screen menu on phones and tablets. */
.pub-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem 2rem;
  background: var(--pub-bg);
  color: var(--pub-ink);
  overflow-y: auto;
}

.pub-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.pub-menu__links {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.pub-menu__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--pub-line);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -.02em;
  color: inherit;
  text-decoration: none;
}

.pub-menu__links a svg { width: 22px; height: 22px; color: var(--pub-accent); }

.pub-menu__foot {
  display: grid;
  gap: .75rem;
  margin-top: auto;
  padding-top: 2rem;
}

.pub-menu__foot .pub-btn { width: 100%; }

/* ── Cards ──────────────────────────────────────────────────────────────── */

.pub-card {
  position: relative;
  border-radius: var(--pub-radius);
  background: var(--pub-surface);
  box-shadow: var(--pub-shadow);
  transition: transform .45s var(--pub-ease), box-shadow .45s var(--pub-ease);
}

a.pub-card { color: inherit; text-decoration: none; }
a.pub-card:not(.pub-course):not(.pub-action) { display: block; }
a.pub-card:hover,
.pub-card--hover:hover { transform: translateY(-4px); box-shadow: var(--pub-shadow-lift); }

/* Horizontal rails (courses, intakes) ─ snap, no scrollbar, arrow buttons. */
.pub-rail {
  --rail-inset: max(1.5rem, calc(50vw - 620px + 1.5rem));
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin: 0 calc(50% - 50vw);
  padding: .5rem var(--rail-inset) 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--rail-inset);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pub-rail::-webkit-scrollbar { display: none; }
.pub-rail > * { flex: none; scroll-snap-align: start; }

.pub-rail-nav { display: flex; gap: .5rem; }

.pub-rail-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--pub-line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--pub-ink);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, opacity .2s ease;
}

.pub-rail-btn:hover { border-color: var(--pub-accent); background: var(--pub-accent-soft); }
.pub-rail-btn:disabled { opacity: .35; cursor: default; }
.pub-rail-btn svg { width: 18px; height: 18px; }

@media (max-width: 639px) { .pub-rail-nav { display: none; } }

/* ── Course card ────────────────────────────────────────────────────────── */

.pub-course {
  display: flex;
  flex-direction: column;
  width: min(330px, 82vw);
  min-height: 380px;
  padding: 1.6rem;
  overflow: hidden;
}

.pub-course__num {
  position: absolute;
  top: .6rem;
  right: 1.1rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--pub-line-strong);
  transition: -webkit-text-stroke-color .4s ease;
}

.pub-course:hover .pub-course__num { -webkit-text-stroke-color: var(--pub-accent); }

.pub-chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.pub-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .32rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--pub-muted);
  background: var(--pub-surface-2);
  border: 1px solid var(--pub-line);
}

.pub-chip--accent { color: var(--pub-accent-ink); background: var(--pub-accent-soft); border-color: transparent; }
.pub-chip--sale { color: #fff; background: #e11d48; border-color: transparent; }
.pub-chip svg { width: 13px; height: 13px; }

.pub-course__title {
  margin: 1.25rem 0 0;
  padding-right: 3.5rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.pub-course__desc {
  margin: .75rem 0 0;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--pub-muted);
}

.pub-course__acc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--pub-muted);
}

.pub-course__acc img { height: 20px; width: auto; }
.pub-course__acc span { display: inline-flex; align-items: center; gap: .35rem; }

.pub-course__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pub-line);
}

.pub-price-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pub-faint);
}

.pub-price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

.pub-price s { margin-right: .35rem; font-size: 1rem; color: var(--pub-faint); }

.pub-go {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: var(--pub-ink);
  transition: background .3s ease, transform .4s var(--pub-ease);
}

html.dark .pub-go { color: var(--pub-bg); }
.pub-go svg { width: 18px; height: 18px; }
.pub-card:hover .pub-go { background: var(--pub-accent); color: #fff; transform: rotate(-45deg); }

/* ── Intakes ────────────────────────────────────────────────────────────── */

.pub-intake {
  width: min(360px, 84vw);
  padding: 1.5rem;
}

.pub-intake__campus {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pub-line);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.pub-intake__campus svg { width: 18px; height: 18px; color: var(--pub-accent); }

.pub-intake__list {
  display: grid;
  gap: 1rem;
  max-height: 22rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.pub-intake__row { display: flex; align-items: flex-start; gap: .9rem; }

.pub-date {
  flex: none;
  width: 52px;
  overflow: hidden;
  border-radius: 14px;
  text-align: center;
  background: var(--pub-surface-2);
  border: 1px solid var(--pub-line);
}

.pub-date b {
  display: block;
  padding-top: .45rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  line-height: 1;
}

.pub-date span {
  display: block;
  padding: .2rem 0 .4rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pub-accent-ink);
}

.pub-intake__title { margin: 0; font-size: .92rem; font-weight: 600; line-height: 1.35; }
.pub-intake__meta { margin: .2rem 0 0; font-size: .76rem; color: var(--pub-muted); }

.pub-seats { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; }

.pub-seats__track {
  flex: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--pub-line);
}

.pub-seats__fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pub-accent), var(--pub-accent-2));
}

.pub-seats__fill.is-full { background: #e11d48; }
.pub-seats__label { font-size: .7rem; font-weight: 600; color: var(--pub-muted); white-space: nowrap; }

/* ── Products ───────────────────────────────────────────────────────────── */

.pub-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 1024px) { .pub-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }

.pub-product { overflow: hidden; }

.pub-product__img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--pub-surface-2);
}

.pub-product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--pub-ease);
}

.pub-product:hover .pub-product__img img { transform: scale(1.06); }
.pub-product__body { padding: 1rem 1.1rem 1.2rem; }
.pub-product__brand { margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pub-gold); }
.pub-product__name { margin: .3rem 0 0; font-size: .95rem; font-weight: 600; line-height: 1.35; }
.pub-product__price { margin: .45rem 0 0; font-family: 'Fraunces', Georgia, serif; font-size: 1.15rem; font-weight: 600; color: var(--pub-accent-ink); }

.pub-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  background: rgba(26, 20, 17, .82);
}

/* ── Feature banner (spa, app) ──────────────────────────────────────────── */

.pub-feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 32px;
  color: #f7efe8;
  background: #120d0a;
}

.pub-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255, 107, 0, .35), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(233, 184, 114, .18), transparent 60%);
}

.pub-feature .pub-eyebrow { color: #e9b872; }
.pub-feature .pub-lead { color: rgba(247, 239, 232, .72); }
.pub-feature .pub-btn--ghost { color: #f7efe8; border-color: rgba(247, 239, 232, .22); }
.pub-feature .pub-btn--ghost:hover { border-color: #f7efe8; }

.pub-feature__art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px 28px 28px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 80px -30px rgba(255, 107, 0, .5);
}

.pub-feature__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

@media (max-width: 767px) {
  .pub-feature { grid-template-columns: minmax(0, 1fr); }
  .pub-feature__art { justify-self: stretch; max-width: none; aspect-ratio: 5 / 4; border-radius: 999px 999px 24px 24px; order: -1; }
}

/* ── Steps ──────────────────────────────────────────────────────────────── */

.pub-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}

@media (max-width: 899px) { .pub-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .pub-steps { grid-template-columns: minmax(0, 1fr); } }

.pub-step { padding: 1.6rem; }

.pub-step__n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--pub-accent), var(--pub-accent-2));
  box-shadow: 0 8px 20px -8px rgba(255, 107, 0, .7);
}

.pub-step h3 { margin: 1.1rem 0 0; font-family: 'Fraunces', Georgia, serif; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.pub-step p { margin: .5rem 0 0; font-size: .92rem; line-height: 1.6; color: var(--pub-muted); }

/* ── Quick actions ──────────────────────────────────────────────────────── */

.pub-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1023px) { .pub-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .pub-actions { grid-template-columns: minmax(0, 1fr); } }

.pub-action { display: flex; flex-direction: column; padding: 1.6rem; min-height: 230px; }

.pub-action__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  color: var(--pub-accent-ink);
  background: var(--pub-accent-soft);
}

.pub-action__icon svg { width: 22px; height: 22px; }
.pub-action h3 { margin: 1.2rem 0 0; font-family: 'Fraunces', Georgia, serif; font-size: 1.25rem; font-weight: 600; }
.pub-action p { margin: .5rem 0 0; font-size: .9rem; line-height: 1.6; color: var(--pub-muted); }
.pub-action .pub-link { margin-top: auto; padding-top: 1rem; }

/* ── Campuses ───────────────────────────────────────────────────────────── */

.pub-campuses {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.pub-campus {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1.1rem .75rem .85rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  background: var(--pub-surface);
  border: 1px solid var(--pub-line);
  transition: border-color .25s ease, transform .3s var(--pub-ease);
}

.pub-campus:hover { border-color: var(--pub-accent); transform: translateY(-2px); }

.pub-campus__pin {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--pub-accent-ink);
  background: var(--pub-accent-soft);
}

.pub-campus__pin svg { width: 14px; height: 14px; }
.pub-campus small { font-weight: 500; color: var(--pub-muted); }

/* ── Testimonials ───────────────────────────────────────────────────────── */

.pub-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.pub-quote { padding: 1.75rem; }
.pub-quote__stars { color: #f5a524; letter-spacing: .1em; }
.pub-quote__body { margin: .9rem 0 0; font-family: 'Fraunces', Georgia, serif; font-size: 1.12rem; line-height: 1.5; }
.pub-quote__who { display: flex; align-items: center; gap: .7rem; margin-top: 1.25rem; }

.pub-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 700;
  color: var(--pub-accent-ink);
  background: var(--pub-accent-soft);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.pub-footer {
  margin-top: 0;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  background: var(--pub-bg-2);
  border-top: 1px solid var(--pub-line);
}

.pub-footer__big {
  margin: 0 0 3rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
}

.pub-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

@media (max-width: 899px) { .pub-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .pub-footer__grid { grid-template-columns: minmax(0, 1fr); } }

.pub-footer h4 {
  margin: 0 0 1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pub-gold);
}

.pub-footer ul { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.pub-footer li a { font-size: .92rem; color: var(--pub-muted); text-decoration: none; transition: color .2s ease; }
.pub-footer li a:hover { color: var(--pub-ink); }

.pub-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pub-line);
  font-size: .78rem;
  line-height: 1.7;
  color: var(--pub-faint);
}

.pub-footer__legal a { color: var(--pub-accent-ink); font-weight: 600; text-decoration: none; }
.pub-footer__legal a:hover { text-decoration: underline; }

/* ── Existing components inside public pages ────────────────────────────── */
/* The store, apply and spa pages still use the app's .card / .field / .eyebrow
   classes. Re-toning them here keeps those pages in the same palette until
   each gets its own restyle. */

.pub .card {
  background: var(--pub-surface);
  border: 1px solid var(--pub-line);
  border-radius: 20px;
  box-shadow: var(--pub-shadow);
}

.pub .eyebrow { color: var(--pub-gold); }

/* Scroll reveal, shared with landing.css's .o-reveal. */
.pub-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--pub-ease), transform .9s var(--pub-ease); }
.pub-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .pub-reveal { opacity: 1; transform: none; transition: none; }
  .pub-card, .pub-btn, .pub-go, .pub-product__img img { transition: none !important; }
}

/* ── School gallery (landing.css) on the public palette ─────────────────── */
/* landing.css paints this section with the old fixed greys; these match the
   theme tokens instead, so no mismatched bands at the section edges.
   body.pub matches html.dark's specificity and this file loads later. */

body.pub .sg-sticky { background: var(--pub-bg-2); }

body.pub .sg-sticky::before {
  background:
    linear-gradient(90deg, var(--pub-bg-2) 0%, transparent 10%, transparent 90%, var(--pub-bg-2) 100%),
    linear-gradient(180deg, var(--pub-bg-2) 0%, transparent 14%, transparent 86%, var(--pub-bg-2) 100%);
}

body.pub .sg-head .pub-lead { color: var(--pub-muted); }


/* Full-bleed rails use 100vw, which includes the scrollbar on Windows. */
body.pub { overflow-x: clip; }
