/**
 * 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: #ffffff;
  --pub-bg-2: #f4f2f6;          /* the soft band between sections */
  --pub-surface: #ffffff;
  --pub-surface-2: #f8f7f9;
  --pub-ink: #2e2d2b;
  --pub-muted: #66655f;
  --pub-faint: #97968f;
  --pub-line: rgba(0, 0, 0, .09);
  --pub-line-strong: rgba(0, 0, 0, .16);
  --pub-accent: #ff6b00;
  --pub-accent-2: #ff8a33;
  --pub-accent-ink: #c94f00;
  --pub-accent-soft: rgba(255, 107, 0, .08);
  --pub-gold: #c94f00;          /* eyebrows follow the accent, not a second colour */
  --pub-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  --pub-shadow-lift: 0 6px 20px -8px rgba(0, 0, 0, .16);
  --pub-radius: 12px;
  --pub-radius-sm: 8px;
  --pub-ease: cubic-bezier(.2, .8, .2, 1);

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

html.dark .pub {
  --pub-bg: #121212;
  --pub-bg-2: #191919;
  --pub-surface: #1b1b1b;
  --pub-surface-2: #212121;
  --pub-ink: #ededeb;
  --pub-muted: rgba(237, 237, 235, .62);
  --pub-faint: rgba(237, 237, 235, .42);
  --pub-line: rgba(255, 255, 255, .10);
  --pub-line-strong: rgba(255, 255, 255, .18);
  --pub-accent-ink: #ff9a44;
  --pub-accent-soft: rgba(255, 107, 0, .14);
  --pub-gold: #ff9a44;
  --pub-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  --pub-shadow-lift: 0 6px 20px -8px rgba(0, 0, 0, .7);
}

.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: 22ch;
  font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}

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

.pub-title em,
.pub-accent {
  font-style: normal;
  font-weight: 700;
  color: var(--pub-accent);
}

.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: var(--pub-radius-sm);
  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: var(--pub-accent);
}

.pub-btn--primary:hover { background: var(--pub-accent-ink); }

.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; }

/* Logo on its own in the header: a touch larger, since it carries the name. */
.pub-brand--mark img { height: 42px; }
@media (max-width: 479px) { .pub-brand--mark img { height: 36px; } }

.pub-brand span {
  font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-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; }
}

/* Phones: the header keeps the logo, the bag, Apply and the menu — the theme
   switch moves into the menu, where it gets a label. */
@media (max-width: 639px) {
  .pub-theme-btn { display: none; }
  .pub-header__actions { gap: .4rem; }
}

.pub-menu__theme svg { width: 18px; height: 18px; }

/* 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: 'Jost', 'Century Gothic', 'Avant Garde', sans-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: 1px solid var(--pub-line);
  border-radius: var(--pub-radius);
  background: var(--pub-surface);
  box-shadow: var(--pub-shadow);
  transition: transform .3s var(--pub-ease), box-shadow .3s var(--pub-ease), border-color .3s ease;
}

a.pub-card { color: inherit; text-decoration: none; }
a.pub-card:not(.pub-course):not(.pub-action):not(.pub-rowlink) { display: block; }
a.pub-card:hover,
.pub-card--hover:hover { transform: translateY(-2px); border-color: var(--pub-line-strong); 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: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  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: var(--pub-radius-sm);
  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: 'Jost', 'Century Gothic', 'Avant Garde', sans-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: 'Jost', 'Century Gothic', 'Avant Garde', sans-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: 'Jost', 'Century Gothic', 'Avant Garde', sans-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: 'Jost', 'Century Gothic', 'Avant Garde', sans-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: var(--pub-accent);
}

.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: 'Jost', 'Century Gothic', 'Avant Garde', sans-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: var(--pub-radius-sm);
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  background: rgba(20, 20, 20, .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: var(--pub-radius);
  color: #f2f2f0;
  background: #22211f;
}

.pub-feature .pub-eyebrow { color: var(--pub-accent-2); }
.pub-feature .pub-lead { color: rgba(242, 242, 240, .72); }
.pub-feature .pub-btn--ghost { color: #f2f2f0; border-color: rgba(242, 242, 240, .24); }
.pub-feature .pub-btn--ghost:hover { border-color: #f2f2f0; }

.pub-feature__art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--pub-radius);
  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: var(--pub-radius); 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: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: var(--pub-accent);
}

.pub-step h3 { margin: 1.1rem 0 0; font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif; font-size: 1.25rem; font-weight: 700; 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: 'Jost', 'Century Gothic', 'Avant Garde', sans-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: var(--pub-radius);
  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: 'Jost', 'Century Gothic', 'Avant Garde', sans-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: 'Jost', 'Century Gothic', 'Avant Garde', sans-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; }

/* ═══ Detail pages (course, product) ════════════════════════════════════ */

.pub-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.5rem;
  font-size: .84rem;
  color: var(--pub-muted);
}

.pub-crumbs a { color: inherit; text-decoration: none; }
.pub-crumbs a:hover { color: var(--pub-accent-ink); }
.pub-crumbs span[aria-hidden] { color: var(--pub-faint); }

/* A warm, glowing band behind a page's title — the hero's quieter sibling. */
.pub-pagehero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -72px;
  padding: calc(72px + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(2.5rem, 6vw, 4rem);
}

.pub-pagehero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--pub-bg-2);
}

.pub-pagehero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

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

.pub-pagehero h1 {
  margin: 0;
  font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.pub-arch {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--pub-radius);
  box-shadow: var(--pub-shadow);
  background: var(--pub-accent);
}

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

/* No photo: the arch carries a big italic figure instead of a grey box. */
.pub-arch__text {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 2rem;
  text-align: center;
  color: #fff;
}

.pub-arch__text b {
  display: block;
  font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  letter-spacing: -.03em;
}

.pub-arch__text span {
  display: block;
  margin-top: .75rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .85;
}

@media (max-width: 899px) {
  .pub-arch { justify-self: stretch; max-width: none; aspect-ratio: 16 / 11; border-radius: var(--pub-radius); }
}

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pub-line);
}

.pub-meta b {
  display: block;
  font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.pub-meta span {
  display: block;
  margin-top: .35rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pub-muted);
}

/* Content + sticky sidebar. */
.pub-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}

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

.pub-aside { position: sticky; top: 96px; }
@media (max-width: 1023px) { .pub-aside { position: static; } }

.pub-block + .pub-block { margin-top: clamp(3rem, 6vw, 4.5rem); }

.pub-h2 {
  margin: 0 0 1.25rem;
  font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.pub-prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--pub-muted);
  white-space: pre-line;
}

/* Price card */
.pub-pricecard { padding: 1.75rem; }

.pub-pricecard__amount {
  margin: .25rem 0 0;
  font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
}

.pub-pricecard__amount s { margin-left: .5rem; font-size: 1.1rem; color: var(--pub-faint); }

.pub-pricecard__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-top: 1px solid var(--pub-line);
  font-size: .9rem;
}

.pub-pricecard__row span { color: var(--pub-muted); }
.pub-pricecard__row b { font-weight: 600; text-align: right; }
.pub-pricecard .pub-btn { width: 100%; margin-top: .6rem; }

/* Module timeline */
.pub-modules { list-style: none; margin: 0; padding: 0; }

.pub-module {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.pub-module::before {
  content: '';
  position: absolute;
  top: 48px;
  bottom: 0;
  left: 23px;
  width: 1px;
  background: var(--pub-line-strong);
}

.pub-module:last-child::before { display: none; }

.pub-module__n {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif;
  font-weight: 600;
  color: var(--pub-accent-ink);
  background: var(--pub-accent-soft);
  border: 1px solid var(--pub-line);
}

.pub-module h3 { margin: .7rem 0 0; font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
.pub-module p { margin: .3rem 0 0; font-size: .9rem; line-height: 1.6; color: var(--pub-muted); }

/* Plain list rows (intakes on a course, campuses). */
.pub-rows { display: grid; gap: .75rem; }

a.pub-row,
.pub-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--pub-surface);
  border: 1px solid var(--pub-line);
  color: inherit;
  text-decoration: none;
  transition: border-color .25s ease, transform .3s var(--pub-ease);
}

a.pub-row:hover { border-color: var(--pub-accent); transform: translateX(4px); }
.pub-row__body { flex: 1; min-width: 0; }
.pub-row__title { margin: 0; font-weight: 600; }
.pub-row__meta { margin: .15rem 0 0; font-size: .82rem; color: var(--pub-muted); }

/* Phones: an always-reachable apply bar on long detail pages. */
.pub-mobilebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: none;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--pub-bg) 88%, transparent);
  border-top: 1px solid var(--pub-line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.pub-mobilebar .pub-btn { flex: 1; }
.pub-mobilebar__price { font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif; font-size: 1.25rem; font-weight: 600; line-height: 1; }
.pub-mobilebar__price small { display: block; margin-top: .2rem; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .68rem; font-weight: 600; color: var(--pub-muted); }

@media (max-width: 1023px) {
  .pub-mobilebar { display: flex; }
  .pub-has-mobilebar { padding-bottom: 80px; }
}

/* ═══ Store ═════════════════════════════════════════════════════════════ */

.pub-search {
  position: relative;
  max-width: 34rem;
  margin-top: 1.75rem;
}

.pub-search svg {
  position: absolute;
  top: 50%;
  left: 1.1rem;
  width: 18px;
  height: 18px;
  color: var(--pub-faint);
  transform: translateY(-50%);
  pointer-events: none;
}

.pub-search input {
  width: 100%;
  height: 54px;
  padding: 0 1.25rem 0 3rem;
  border: 1px solid var(--pub-line-strong);
  border-radius: var(--pub-radius-sm);
  font: inherit;
  font-size: .95rem;
  color: var(--pub-ink);
  background: var(--pub-surface);
  box-shadow: var(--pub-shadow);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.pub-search input:focus { border-color: var(--pub-accent); box-shadow: 0 0 0 4px var(--pub-accent-soft); }

.pub-pills { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; }
.pub-pills::-webkit-scrollbar { display: none; }

.pub-pill {
  flex: none;
  padding: .6rem 1.1rem;
  border: 1px solid var(--pub-line-strong);
  border-radius: var(--pub-radius-sm);
  font-size: .88rem;
  font-weight: 600;
  color: var(--pub-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s ease;
}

.pub-pill:hover { color: var(--pub-ink); border-color: var(--pub-ink); }
.pub-pill[aria-current="page"] { color: #fff; background: var(--pub-ink); border-color: var(--pub-ink); }
html.dark .pub-pill[aria-current="page"] { color: var(--pub-bg); }

.pub-product__meta { margin: .3rem 0 0; font-size: .76rem; color: var(--pub-muted); }
.pub-product__was { margin-left: .4rem; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .8rem; font-weight: 500; color: var(--pub-faint); text-decoration: line-through; }
.pub-badge--save { background: #e11d48; }
.pub-badge--low { background: #b45309; }

/* Product page */
.pub-gallery {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border-radius: 32px;
  aspect-ratio: 1;
  background: var(--pub-surface-2);
  box-shadow: var(--pub-shadow-lift);
}

.pub-gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .pub-gallery { position: static; border-radius: 24px; } }

.pub-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
}

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

.pub-options { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }

.pub-option {
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--pub-line-strong);
  border-radius: var(--pub-radius-sm);
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  color: var(--pub-ink);
  background: var(--pub-surface);
  cursor: pointer;
  transition: all .2s ease;
}

.pub-option:hover { border-color: var(--pub-ink); }
.pub-option.is-on { color: var(--pub-accent-ink); border-color: var(--pub-accent); background: var(--pub-accent-soft); font-weight: 600; }
.pub-option:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }

.pub-qty {
  display: inline-flex;
  align-items: center;
  height: 52px;
  border: 1px solid var(--pub-line-strong);
  border-radius: var(--pub-radius-sm);
  background: var(--pub-surface);
}

.pub-qty button {
  width: 46px;
  height: 100%;
  border: 0;
  background: none;
  font-size: 1.2rem;
  color: var(--pub-ink);
  cursor: pointer;
}

.pub-qty input {
  width: 42px;
  border: 0;
  font: inherit;
  font-weight: 600;
  text-align: center;
  color: var(--pub-ink);
  background: none;
  -moz-appearance: textfield;
}

.pub-qty input::-webkit-outer-spin-button,
.pub-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pub-assure {
  display: grid;
  gap: .9rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pub-line);
}

.pub-assure div { display: flex; gap: .8rem; align-items: flex-start; font-size: .9rem; color: var(--pub-muted); }
.pub-assure svg { flex: none; width: 20px; height: 20px; color: var(--pub-accent-ink); margin-top: .1rem; }
.pub-assure b { color: var(--pub-ink); font-weight: 600; }

/* ── Product card actions ───────────────────────────────────────────────── */

.pub-product { display: flex; flex-direction: column; }
.pub-product__body { display: flex; flex: 1; flex-direction: column; }
.pub-product__name { margin: .3rem 0 0; font-size: .95rem; font-weight: 600; line-height: 1.35; }
.pub-product__link { color: inherit; text-decoration: none; }

/* The whole card opens the product… */
.pub-product__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* …except the button, which sits above that layer. */
.pub-product__add { position: relative; z-index: 2; margin-top: auto; padding-top: .9rem; }
.pub-product__add form { margin: 0; }

.pub-btn--block { width: 100%; }
.pub-btn.is-busy { opacity: .65; cursor: progress; pointer-events: none; }
.pub-btn.is-added,
.pub-btn.is-added:hover { color: #fff; background: #15803d; box-shadow: none; }

@media (max-width: 479px) {
  .pub-product__body { padding: .85rem .85rem 1rem; }
  .pub-product__add .pub-btn { min-height: 40px; padding: 0 .6rem; font-size: .8rem; }
  .pub-product__add .pub-btn svg { width: 15px; height: 15px; }
}

/* ── Bag bar ────────────────────────────────────────────────────────────── */

.pub-bagbar {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 56;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: auto;
  max-width: min(620px, calc(100% - 1.5rem));
  padding: .6rem .6rem .6rem .75rem;
  border: 1px solid var(--pub-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--pub-surface) 92%, transparent);
  box-shadow: var(--pub-shadow-lift);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: pub-bag-in .45s var(--pub-ease);
}

@keyframes pub-bag-in { from { opacity: 0; transform: translate(-50%, 16px); } }

.pub-bagbar__summary { display: flex; flex: 1; align-items: center; gap: .75rem; min-width: 0; color: inherit; text-decoration: none; }

.pub-bagbar__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--pub-accent-ink);
  background: var(--pub-accent-soft);
}

.pub-bagbar__icon svg { width: 20px; height: 20px; }

.pub-bagbar__count {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  background: var(--pub-accent);
}

.pub-bagbar__label { display: block; font-size: .78rem; color: var(--pub-muted); }
.pub-bagbar__total { display: block; font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif; font-size: 1.1rem; font-weight: 600; line-height: 1.2; }

/* The course page's own apply bar owns the bottom of the screen on phones. */
/* The course page's own apply bar owns the bottom of the screen on phones, so
   the floating bag sits above it. Matched on the page, not on the bag's
   position: the bag is rendered once by the layout, after everything else. */
@media (max-width: 1023px) {
  body.pub:has(.pub-has-mobilebar) .pub-bagbar { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

/* ═══ Bag, checkout, order & tracking ═══════════════════════════════════ */

.pub-page { padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(4rem, 8vw, 6rem); }
.pub-page__head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.pub-page__head .pub-title { max-width: none; font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.pub-page__head .pub-lead { margin-top: .6rem; }
.pub-narrow { max-width: 560px; margin: 0 auto; }

.pub-panel { padding: clamp(1.25rem, 3vw, 1.75rem); }
.pub-panel + .pub-panel { margin-top: 1rem; }

.pub-panel__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.1rem;
  font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.pub-panel__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--pub-accent-ink);
  background: var(--pub-accent-soft);
}

.pub-note { margin: .5rem 0 0; font-size: .82rem; line-height: 1.6; color: var(--pub-muted); }
.pub-note a, .pub-link { color: var(--pub-accent-ink); font-weight: 600; text-decoration: none; }
.pub-note a:hover, .pub-link:hover { text-decoration: underline; }
.pub-back { display: inline-flex; gap: .4rem; margin-bottom: 1rem; font-size: .86rem; color: var(--pub-muted); text-decoration: none; }
.pub-back:hover { color: var(--pub-accent-ink); }

/* Form fields */
.pub-fields { display: grid; gap: 1rem; }
.pub-fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pub-fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 639px) { .pub-fields--2, .pub-fields--3 { grid-template-columns: minmax(0, 1fr); } }

.pub-label { display: block; margin: 0 0 .4rem; font-size: .8rem; font-weight: 600; color: var(--pub-ink); }

.pub-field {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: .75rem 1rem;
  border: 1px solid var(--pub-line-strong);
  border-radius: 14px;
  font: inherit;
  font-size: 16px; /* no iOS zoom */
  color: var(--pub-ink);
  background: var(--pub-surface-2);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.pub-field::placeholder { color: var(--pub-faint); }
.pub-field:focus { outline: none; border-color: var(--pub-accent); background: var(--pub-surface); box-shadow: 0 0 0 4px var(--pub-accent-soft); }
textarea.pub-field { min-height: 90px; resize: vertical; }
select.pub-field { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a0948a' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
input[type=file].pub-field { padding: .6rem; font-size: .88rem; }
input[type=file].pub-field::file-selector-button { margin-right: .75rem; padding: .5rem 1rem; border: 0; border-radius: 99px; font: inherit; font-weight: 600; color: var(--pub-accent-ink); background: var(--pub-accent-soft); cursor: pointer; }
html.dark .pub .pub-field { color-scheme: dark; }

/* Selectable option cards (delivery, payment) */
.pub-choices { display: grid; gap: .65rem; }

.pub-choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--pub-line-strong);
  border-radius: 16px;
  background: var(--pub-surface);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.pub-choice:hover { border-color: var(--pub-ink); }
.pub-choice.is-on { border-color: var(--pub-accent); background: var(--pub-accent-soft); box-shadow: 0 0 0 1px var(--pub-accent); }
.pub-choice input[type=radio] { flex: none; width: 18px; height: 18px; margin: .15rem 0 0; accent-color: var(--pub-accent); }
.pub-choice__body { flex: 1; min-width: 0; }
.pub-choice__top { display: flex; justify-content: space-between; gap: .75rem; font-size: .95rem; font-weight: 600; }
.pub-choice__top b { flex: none; font-weight: 600; }
.pub-choice__sub { display: block; margin-top: .25rem; font-size: .82rem; line-height: 1.5; color: var(--pub-muted); }
.pub-choice__eta { display: block; margin-top: .2rem; font-size: .78rem; font-weight: 600; color: var(--pub-accent-ink); }
.pub-choice__logo { flex: none; width: 48px; height: 30px; padding: 3px; border-radius: 8px; object-fit: contain; background: #fff; }
.pub-choice__badges { display: inline-flex; gap: .35rem; vertical-align: middle; margin-left: .4rem; }
.pub-choice__badges img { height: 18px; width: auto; border-radius: 4px; }
.pub-choice__extra { margin: -.15rem 0 .1rem 2.6rem; font-size: .84rem; color: var(--pub-muted); }
.pub-choice__extra label { display: inline-flex; align-items: center; gap: .45rem; margin-right: 1rem; cursor: pointer; }
.pub-choice__extra input { accent-color: var(--pub-accent); }

/* Line items */
.pub-lines { list-style: none; margin: 0; padding: 0; }
.pub-line { display: flex; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--pub-line); }
.pub-line:first-child { border-top: 0; padding-top: 0; }
.pub-line__img { flex: none; width: 88px; height: 88px; overflow: hidden; border-radius: 16px; background: var(--pub-bg-2); }
.pub-line__img img { width: 100%; height: 100%; object-fit: cover; }
.pub-line__body { flex: 1; min-width: 0; }
.pub-line__top { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.pub-line__name { font-weight: 600; line-height: 1.35; color: inherit; text-decoration: none; }
a.pub-line__name:hover { color: var(--pub-accent-ink); }
.pub-line__price { flex: none; font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif; font-size: 1.1rem; font-weight: 600; }
.pub-line__meta { margin: .2rem 0 0; font-size: .82rem; color: var(--pub-muted); }
.pub-line__warn { margin: .35rem 0 0; font-size: .8rem; font-weight: 600; color: #b45309; }
html.dark .pub .pub-line__warn { color: #fbbf24; }
.pub-line__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .7rem; }
.pub-line__actions form { margin: 0; }
.pub-line--sm { gap: .8rem; padding: .8rem 0; }
.pub-line--sm .pub-line__img { width: 56px; height: 56px; border-radius: 12px; }
.pub-line--sm .pub-line__name { font-size: .9rem; }
.pub-line--sm .pub-line__price { font-size: .95rem; font-family: inherit; }
.pub-line__img { position: relative; }
.pub-line__qty { position: absolute; top: 3px; right: 3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; font-size: .68rem; font-weight: 700; line-height: 20px; text-align: center; color: var(--pub-bg); background: var(--pub-ink); box-shadow: 0 0 0 2px var(--pub-surface); }
.pub-line--sm .pub-line__img { overflow: visible; }
.pub-line--sm .pub-line__img img { border-radius: 12px; }

.pub-qty--sm { height: 40px; }
.pub-qty--sm button { width: 38px; font-size: 1.05rem; }
.pub-qty--sm button:disabled { opacity: .35; cursor: not-allowed; }
.pub-qty--sm output { min-width: 28px; font-weight: 600; text-align: center; }

.pub-textbtn { padding: 0; border: 0; font: inherit; font-size: .84rem; color: var(--pub-muted); background: none; cursor: pointer; }
.pub-textbtn:hover { color: #e11d48; }

/* Totals */
.pub-sum { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--pub-line); }
.pub-sum__row { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; font-size: .92rem; }
.pub-sum__row span:first-child { color: var(--pub-muted); }
.pub-sum__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .6rem; padding-top: .9rem; border-top: 1px solid var(--pub-line); }
.pub-sum__total span { font-weight: 600; }
.pub-sum__total b { font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif; font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; color: var(--pub-accent-ink); }
.pub-panel .pub-btn--block { margin-top: 1.25rem; min-height: 54px; }
.pub-btn:disabled { opacity: .5; cursor: not-allowed; }

.pub-secure { display: flex; align-items: center; justify-content: center; gap: .45rem; margin: .85rem 0 0; font-size: .78rem; color: var(--pub-muted); }
.pub-secure svg { width: 14px; height: 14px; }

/* Empty / alerts */
.pub-empty { padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; text-align: center; }
.pub-empty__icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 1.25rem; border-radius: 50%; color: var(--pub-accent-ink); background: var(--pub-accent-soft); }
.pub-empty__icon svg { width: 30px; height: 30px; }
.pub-empty h2 { margin: 0; font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif; font-size: 1.6rem; font-weight: 600; }
.pub-empty p { margin: .5rem auto 1.5rem; max-width: 26rem; color: var(--pub-muted); }

.pub-alert { display: flex; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: 18px; border: 1px solid var(--pub-line); background: var(--pub-surface); }
.pub-alert__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; font-weight: 700; color: #fff; background: var(--pub-ink); }
.pub-alert h3 { margin: 0; font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif; font-size: 1.25rem; font-weight: 600; }
.pub-alert p { margin: .3rem 0 0; font-size: .9rem; line-height: 1.6; color: var(--pub-muted); }
.pub-alert--danger { border: 2px solid #e11d48; background: rgba(225, 29, 72, .06); }
.pub-alert--danger .pub-alert__icon { background: #e11d48; }
.pub-alert--danger h3 { color: #be123c; }
html.dark .pub .pub-alert--danger h3 { color: #fb7185; }
.pub-alert--info { border-color: rgba(14, 165, 233, .35); background: rgba(14, 165, 233, .08); }
.pub-alert--info .pub-alert__icon { background: #0284c7; }
.pub-alert + .pub-panel, .pub-panel + .pub-alert, .pub-alert + .pub-alert { margin-top: 1rem; }

/* Order progress */
.pub-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.pub-progress li { font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: var(--pub-faint); }
.pub-progress li::before { content: ''; display: block; height: 6px; margin-bottom: .5rem; border-radius: 99px; background: var(--pub-line-strong); }
.pub-progress li.is-done { color: var(--pub-accent-ink); }
.pub-progress li.is-done::before { background: var(--pub-accent); }

.pub-status { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 99px; font-size: .78rem; font-weight: 600; color: var(--pub-accent-ink); background: var(--pub-accent-soft); }
.pub-status--bad { color: #be123c; background: rgba(225, 29, 72, .1); }
html.dark .pub .pub-status--bad { color: #fb7185; }

.pub-bank { padding: 1rem 1.1rem; border-radius: 14px; background: var(--pub-bg-2); }
.pub-bank + .pub-bank { margin-top: .6rem; }
.pub-bank__name { display: flex; align-items: center; gap: .6rem; margin: 0 0 .5rem; font-weight: 600; }
.pub-bank__name img { width: 40px; height: 26px; padding: 2px; border-radius: 6px; object-fit: contain; background: #fff; }
.pub-bank dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: 0; font-size: .86rem; }
.pub-bank dt { color: var(--pub-muted); }
.pub-bank dd { margin: 0; font-weight: 600; text-align: right; word-break: break-all; }

.pub-rowlink { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; color: inherit; text-decoration: none; }
.pub-rowlink__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; color: var(--pub-accent-ink); background: var(--pub-accent-soft); }
.pub-rowlink__icon svg { width: 20px; height: 20px; }
.pub-rowlink__body { flex: 1; min-width: 0; }
.pub-rowlink__body b { display: block; font-weight: 600; }
.pub-rowlink__body span { display: block; margin-top: .15rem; font-size: .82rem; color: var(--pub-muted); }
.pub-rowlink__end { flex: none; font-weight: 600; }
.pub-rowlink .pub-go { flex: none; }

@media (max-width: 479px) {
  .pub-line__img { width: 72px; height: 72px; }
  .pub-choice { padding: .9rem; gap: .7rem; }
  .pub-choice__extra { margin-left: 0; }
}

/* ═══ Apply, application status & tracking ══════════════════════════════ */

.pub-stack > * + * { margin-top: 1rem; }
.pub-fields--pair { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.pub-label small, .pub-label .pub-opt { font-weight: 400; color: var(--pub-faint); }
.pub-error { margin: .75rem 0 0; font-size: .84rem; font-weight: 600; color: #e11d48; }
html.dark .pub .pub-error { color: #fb7185; }
.pub-field[readonly] { color: var(--pub-muted); background: var(--pub-bg-2); cursor: not-allowed; }

.pub-btnrow { display: flex; gap: .6rem; margin-top: 1.5rem; }
.pub-btnrow .pub-btn { min-height: 54px; }
.pub-btnrow .pub-btn--primary { flex: 1; }
.pub-panel > .pub-btn--block:first-child { margin-top: 0; }

/* Step indicator */
.pub-stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.pub-stepper li { display: flex; align-items: center; gap: .6rem; min-width: 0; font-size: .84rem; font-weight: 600; color: var(--pub-faint); }
.pub-stepper li span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-stepper b { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--pub-line-strong); border-radius: 50%; font-size: .8rem; transition: all .3s var(--pub-ease); }
.pub-stepper li.is-current { color: var(--pub-ink); }
.pub-stepper li.is-current b { color: #fff; border-color: var(--pub-accent); background: var(--pub-accent); box-shadow: 0 6px 18px -6px rgba(255, 107, 0, .7); }
.pub-stepper li.is-done { color: var(--pub-accent-ink); }
.pub-stepper li.is-done b { color: var(--pub-accent-ink); border-color: transparent; background: var(--pub-accent-soft); }
@media (max-width: 559px) { .pub-stepper { display: flex; } .pub-stepper li.is-current { flex: 1; } .pub-stepper li:not(.is-current) span:last-child { display: none; } }

.pub-bar { height: 6px; overflow: hidden; border-radius: 99px; background: var(--pub-line); }
.pub-bar > div { height: 100%; border-radius: inherit; background: var(--pub-accent); transition: width .4s var(--pub-ease); }
.pub-bar--ok > div { background: #16a34a; }
.pub-bar--thin { height: 4px; }
.pub-progressmeta { display: flex; justify-content: space-between; gap: 1rem; margin: .5rem 0 1.5rem; font-size: .78rem; color: var(--pub-muted); }
.pub-progressmeta b { color: var(--pub-accent-ink); font-variant-numeric: tabular-nums; }

/* Small tags */
.pub-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 99px; font-size: .7rem; font-weight: 600; color: var(--pub-muted); background: var(--pub-bg-2); }
.pub-tag--ok { color: #15803d; background: rgba(22, 163, 74, .1); }
.pub-tag--warn { color: #b45309; background: rgba(245, 158, 11, .14); }
.pub-tag--info { color: #0369a1; background: rgba(14, 165, 233, .12); }
html.dark .pub .pub-tag--ok { color: #4ade80; }
html.dark .pub .pub-tag--warn { color: #fbbf24; }
html.dark .pub .pub-tag--info { color: #7dd3fc; }
.pub-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }

.pub-choice input[type=checkbox] { flex: none; width: 19px; height: 19px; margin: .1rem 0 0; accent-color: var(--pub-accent); }
.pub-choice.is-disabled { opacity: .45; cursor: not-allowed; }
.pub-choice.is-disabled:hover { border-color: var(--pub-line-strong); }
.pub-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.pub-duo .pub-choice { flex-direction: column; gap: .15rem; }
.pub-choice__icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: .5rem; border-radius: 12px; color: var(--pub-accent-ink); background: var(--pub-accent-soft); }
.pub-choice__icon svg { width: 19px; height: 19px; }

.pub-callout { margin-top: .6rem; padding: .7rem .9rem; border-radius: 12px; font-size: .84rem; font-weight: 500; color: #0369a1; background: rgba(14, 165, 233, .1); }
html.dark .pub .pub-callout { color: #7dd3fc; }
.pub-callout--warn { color: #92400e; background: rgba(245, 158, 11, .12); }
html.dark .pub .pub-callout--warn { color: #fcd34d; }
.pub-callout--ok { color: #166534; background: rgba(22, 163, 74, .1); }
html.dark .pub .pub-callout--ok { color: #86efac; }

/* Document uploads */
.pub-doc { padding: 1rem; border: 1px solid var(--pub-line); border-radius: 16px; background: var(--pub-surface-2); }
.pub-doc + .pub-doc { margin-top: .65rem; }
.pub-doc__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.pub-doc__head b { font-size: .92rem; font-weight: 600; }
.pub-doc__head p { margin: .15rem 0 0; font-size: .78rem; color: var(--pub-muted); }
.pub-doc .pub-field { margin-top: .75rem; background: var(--pub-surface); }
.pub-doc__file { margin: .35rem 0 0; overflow: hidden; font-size: .76rem; color: var(--pub-muted); text-overflow: ellipsis; white-space: nowrap; }

/* Fee + acknowledgements */
.pub-feebox { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 16px; background: var(--pub-accent-soft); }
.pub-feebox span { font-weight: 600; }
.pub-feebox b { font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif; font-size: 1.6rem; font-weight: 600; color: var(--pub-accent-ink); }
.pub-feebox p { flex-basis: 100%; margin: 0; font-size: .8rem; color: var(--pub-muted); }
.pub-feebox { flex-wrap: wrap; row-gap: .2rem; }

.pub-check { display: flex; align-items: flex-start; gap: .8rem; padding: .95rem 1rem; border: 1px solid var(--pub-line); border-radius: 14px; font-size: .86rem; line-height: 1.55; color: var(--pub-muted); cursor: pointer; transition: border-color .2s ease; }
.pub-check:hover { border-color: var(--pub-line-strong); }
.pub-check:has(input:checked) { border-color: var(--pub-accent); background: var(--pub-accent-soft); }
.pub-check input { flex: none; width: 19px; height: 19px; margin: .1rem 0 0; accent-color: var(--pub-accent); }
.pub-check strong { color: var(--pub-ink); }
.pub-check + .pub-check { margin-top: .6rem; }

.pub-spin { width: 17px; height: 17px; animation: pub-spin 1s linear infinite; }
@keyframes pub-spin { to { transform: rotate(360deg); } }

/* Aside: what happens next */
.pub-next { margin: 0; padding: 0; list-style: none; counter-reset: next; }
.pub-next li { position: relative; padding: 0 0 1.1rem 2.6rem; font-size: .88rem; line-height: 1.5; color: var(--pub-muted); counter-increment: next; }
.pub-next li:last-child { padding-bottom: 0; }
.pub-next li::before { content: counter(next); position: absolute; left: 0; top: -.1rem; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: .76rem; font-weight: 700; color: var(--pub-accent-ink); background: var(--pub-accent-soft); }
.pub-next li:not(:last-child)::after { content: ''; position: absolute; left: 13.5px; top: 1.9rem; bottom: .3rem; width: 1px; background: var(--pub-line-strong); }
.pub-next b { display: block; color: var(--pub-ink); font-weight: 600; }

.pub-kv { margin: 0; }
.pub-kv > div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--pub-line); font-size: .9rem; }
.pub-kv > div:first-child { border-top: 0; padding-top: 0; }
.pub-kv dt { color: var(--pub-muted); }
.pub-kv dd { margin: 0; font-weight: 600; text-align: right; }
.pub-ok { color: #15803d; }
html.dark .pub .pub-ok { color: #4ade80; }
.pub-due { color: var(--pub-accent-ink); }

/* Application progress (numbered dots) */
.pub-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1.75rem 0 0; padding: 0; list-style: none; }
.pub-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 600; text-align: center; color: var(--pub-faint); }
.pub-track li::before { content: ''; position: absolute; top: 17px; right: 50%; width: 100%; height: 2px; background: var(--pub-line-strong); z-index: 0; }
.pub-track li:first-child::before { display: none; }
.pub-track li.is-done::before { background: var(--pub-accent); }
.pub-track b { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: .82rem; color: var(--pub-faint); background: var(--pub-surface); box-shadow: inset 0 0 0 1px var(--pub-line-strong); }
.pub-track li.is-done { color: var(--pub-accent-ink); }
.pub-track li.is-done b { color: #fff; background: var(--pub-accent); box-shadow: none; }

/* Bank card with copy */
.pub-bankcard { overflow: hidden; border-radius: 16px; background: var(--pub-bg-2); }
.pub-bankcard + .pub-bankcard { margin-top: .6rem; }
.pub-bankcard__stripe { height: 5px; }
.pub-bankcard__body { padding: 1rem 1.1rem; }
.pub-bankcard .pub-kv > div { padding: .35rem 0; border: 0; font-size: .86rem; }
.pub-copy { width: 100%; min-height: 40px; margin-top: .6rem; border: 1px solid var(--pub-line-strong); border-radius: 12px; font: inherit; font-size: .82rem; font-weight: 600; color: var(--pub-ink); background: var(--pub-surface); cursor: pointer; }
.pub-copy:hover { border-color: var(--pub-ink); }

.pub-ref { margin-top: .75rem; padding: .85rem 1rem; border-radius: 14px; background: var(--pub-accent-soft); }
.pub-ref span { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pub-accent-ink); }
.pub-ref b { display: block; margin-top: .15rem; font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif; font-size: 1.25rem; font-weight: 600; }
.pub-ref small { display: block; margin-top: .15rem; color: var(--pub-muted); }

.pub-drop { display: block; margin-top: .75rem; padding: 1.25rem 1rem; border: 1.5px dashed var(--pub-line-strong); border-radius: 16px; text-align: center; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.pub-drop:hover { border-color: var(--pub-accent); background: var(--pub-accent-soft); }
.pub-drop b { display: block; font-size: .92rem; font-weight: 600; }
.pub-drop span { display: block; margin-top: .25rem; font-size: .76rem; color: var(--pub-muted); }

.pub-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--pub-bg-2); }
.pub-segment button { min-height: 40px; border: 0; border-radius: 10px; font: inherit; font-size: .82rem; font-weight: 600; color: var(--pub-muted); background: none; cursor: pointer; }
.pub-segment button.is-on { color: var(--pub-ink); background: var(--pub-surface); box-shadow: var(--pub-shadow); }

.pub-paybtn { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 52px; margin-top: .6rem; }
.pub-paybtn img { height: 20px; width: auto; border-radius: 4px; }
.pub-choice__panel { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--pub-line); cursor: default; }

/* Success page */
.pub-success { text-align: center; }
.pub-success__badge { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 1.5rem; border-radius: 50%; color: #fff; background: var(--pub-accent); animation: pub-pop .7s var(--pub-ease); }
.pub-success__badge svg { width: 38px; height: 38px; }
@keyframes pub-pop { from { opacity: 0; transform: scale(.6); } }
.pub-success .pub-title { max-width: none; }
.pub-success .pub-lead { margin-left: auto; margin-right: auto; }
.pub-bigref { display: block; margin: .3rem 0 0; font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif; font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; color: var(--pub-accent-ink); }
.pub-appcta { padding: clamp(1.5rem, 4vw, 2rem); border-radius: var(--pub-radius); color: #fff; background: var(--pub-accent); }
.pub-appcta h3 { margin: 0; font-family: 'Jost', 'Century Gothic', 'Avant Garde', sans-serif; font-size: 1.5rem; font-weight: 600; }
.pub-appcta p { margin: .4rem 0 1.1rem; color: rgba(255, 255, 255, .85); font-size: .92rem; }
.pub-appcta a { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 1.25rem; border-radius: var(--pub-radius-sm); font-weight: 700; color: #2e2d2b; background: #fff; text-decoration: none; }
.pub-lines template + .pub-line { border-top: 0; padding-top: 0; }
.pub-alert--ok { border-color: rgba(22, 163, 74, .3); background: rgba(22, 163, 74, .08); }
.pub-alert--ok .pub-alert__icon { background: #16a34a; }
.pub-alert--ok h3 { color: #166534; }
html.dark .pub .pub-alert--ok h3 { color: #86efac; }
.pub-alert__icon svg { width: 18px; height: 18px; }
.pub-choice__panel button[value=ikhokha] { min-height: 52px; border-radius: 999px !important; }
.pub-choice__panel .pub-segment + div { margin-top: .25rem; }

/* ── Header bag button ──────────────────────────────────────────────────── */
/* Shown only once something is in the bag, so an empty bag adds no clutter. */

.pub-bagbtn { position: relative; }
.pub-bagbtn[hidden] { display: none; }

.pub-bagbtn__count {
  position: absolute;
  top: -2px;
  right: -2px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid var(--pub-bg);
  border-radius: 99px;
  font-size: .66rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--pub-accent);
}


/* ── Floating shop bar: the always-there half, and the close button ─────── */

.pub-bagbar__shop {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: none;
  min-height: 40px;
  padding: 0 .95rem;
  border: 1px solid var(--pub-line-strong);
  border-radius: var(--pub-radius-sm);
  font-size: .84rem;
  font-weight: 600;
  color: var(--pub-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s ease, background .2s ease;
}

.pub-bagbar__shop:hover { border-color: var(--pub-ink); background: var(--pub-surface-2); }
.pub-bagbar__shop svg { width: 17px; height: 17px; flex: none; }

/* Empty bag: the pill is just "Shop now", so it gets the room instead. */
.pub-bagbar:not(:has(.pub-bagbar__summary)) .pub-bagbar__shop { flex: 1; justify-content: center; }

.pub-bagbar__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--pub-faint);
  background: none;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.pub-bagbar__close:hover { color: var(--pub-ink); background: var(--pub-surface-2); }
.pub-bagbar__close svg { width: 15px; height: 15px; }

/* On a narrow phone the label goes and the bag icon carries the meaning. */
@media (max-width: 479px) {
  .pub-bagbar { gap: .5rem; padding: .5rem .5rem .5rem .6rem; }
  .pub-bagbar:has(.pub-bagbar__summary) .pub-bagbar__shop span { display: none; }
  .pub-bagbar:has(.pub-bagbar__summary) .pub-bagbar__shop { padding: 0 .7rem; }
  .pub-bagbar__label { font-size: .72rem; }
}
