/* Public side of a school: the experience of Coursera (header with Explore and a big search, hero
   carousel, category chips, rows of course cards, goals band, FAQ, footer) in Civadelia's tokens,
   with the school colour as the accent. Also the split-screen log-in and sign-up pages. */

body.pub { background: var(--surface); }
.pub-wrap { width: min(100% - 32px, 1240px); margin: 0 auto; }

/* ---- header ---------------------------------------------------------------------------------- */
.pub-header { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--surface); border-bottom: 1px solid var(--border); }
.pub-bar { display: flex; align-items: center; gap: 16px; height: 68px; }
.pub-logo { display: inline-flex; align-items: center; flex: none; }
.pub-logo img { height: 54px; width: auto; display: block; }
.pub-logo-text { font-weight: 800; color: var(--brand-text); font-size: 18px; text-decoration: none; }
.lc-explore { position: relative; }
.lc-explore > summary { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border-radius: 8px; cursor: pointer; list-style: none; color: var(--text); font-size: 14px; font-weight: 500; }
.lc-explore > summary::-webkit-details-marker { display: none; }
.lc-explore > summary:hover { background: var(--surface-hover); }
.lc-explore[open] > summary .lc-icon { transform: rotate(180deg); }
.lc-explore-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: var(--z-dropdown); width: min(560px, 90vw); padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.lc-explore-menu h3 { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.lc-explore-menu ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.lc-explore-menu a { display: block; padding: 7px 8px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px; }
.lc-explore-menu a:hover { background: var(--brand-faint); color: var(--brand-text); }
.pub-search { flex: 1; max-width: 560px; position: relative; display: flex; }
.pub-search input { width: 100%; height: 46px; padding: 0 56px 0 18px; border: 1px solid var(--border-strong); border-radius: var(--radius-full);
  background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; }
.pub-search input:focus { outline: 2px solid var(--brand-text); outline-offset: 1px; }
.pub-search button { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; cursor: pointer; }
.pub-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pub-link { color: var(--brand-text); font-weight: 600; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.pub-link:hover { background: var(--brand-faint); }
.pub-btn-outline { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--brand-text); border-radius: 8px; color: var(--brand-text); font-weight: 650; text-decoration: none; font-size: 14px; white-space: nowrap; }
.pub-btn-outline:hover { background: var(--brand-faint); }
.pub-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 8px;
  background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer; }
.pub-btn:hover { background: var(--brand-hover); }
.pub-btn-light { background: #fff; color: #10233f; }
.pub-btn-light:hover { background: #eef2f7; }
.pub-menu-btn { display: none; }
.pub-mobile-search { display: none; padding: 0 0 12px; }
@media (max-width: 899px) {
  .pub-bar { gap: 8px; height: 60px; }
  .pub-logo img { height: 38px; }
  .pub-bar > .pub-search, .pub-bar > .lc-explore { display: none; }
  .pub-mobile-search { display: block; }
  .pub-mobile-search .pub-search { max-width: none; }
  .pub-actions .pub-link { display: none; }
  .pub-menu-btn { display: inline-grid; }
  .pub-drawer { display: none; border-top: 1px solid var(--border); padding: 8px 0 14px; }
  .pub-header.is-open .pub-drawer { display: block; }
  .pub-drawer a { display: block; padding: 10px 4px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border-subtle); }
}
@media (min-width: 900px) { .pub-drawer { display: none; } }
@media (max-width: 420px) { .pub-actions .pub-btn-outline { padding: 0 10px; font-size: 13px; } }

/* ---- hero carousel --------------------------------------------------------------------------- */
.pub-hero { padding: 24px 0 8px; }
.pub-carousel { position: relative; }
.pub-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 8px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pub-track::-webkit-scrollbar { display: none; }
.pub-slide { scroll-snap-align: start; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; min-height: 300px; border-radius: 16px; color: #fff;
  background: linear-gradient(120deg, #0b1d3a 0%, var(--brand) 65%, var(--lc-accent-1, #0E86C3) 130%); }
.pub-slide:nth-child(2) { background: linear-gradient(120deg, #072e24 0%, var(--lc-accent-2, #00A86C) 120%); }
.pub-slide:nth-child(3) { background: linear-gradient(120deg, #0b2440 0%, var(--lc-accent-1, #0E86C3) 120%); }
.pub-slide-copy { padding: 28px; position: relative; z-index: 1; }
.pub-slide-copy .pub-kicker { display: inline-block; padding: 3px 10px; border-radius: 12px; background: rgba(255, 255, 255, .16); font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.pub-slide h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.pub-slide p { margin: 10px 0 16px; opacity: .9; font-size: 14.5px; }
.pub-slide-meta { font-size: 13px; opacity: .9; margin-bottom: 16px; display: flex; gap: 14px; flex-wrap: wrap; }
.pub-slide-art { height: 100%; display: grid; place-items: center; position: relative; }
.pub-slide-art .pub-code { font-size: clamp(42px, 5vw, 72px); font-weight: 850; letter-spacing: -.04em; color: rgba(255, 255, 255, .92);
  padding: 18px 26px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); transform: rotate(-4deg); }
.pub-slide-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pub-dots { display: flex; gap: 6px; margin-top: 12px; }
.pub-dots button { width: 22px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: var(--border-strong); cursor: pointer; }
.pub-dots button[aria-current="true"] { width: 36px; background: var(--brand); }
.pub-arrows { position: absolute; right: 0; top: -48px; display: flex; gap: 6px; }
@media (max-width: 899px) {
  .pub-track { grid-auto-columns: 100%; }
  .pub-slide { grid-template-columns: 1fr; min-height: 0; }
  .pub-slide-art { display: none; }
  .pub-arrows { display: none; }
}

/* ---- sections ------------------------------------------------------------------------------- */
.pub-section { padding: 28px 0; }
.pub-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pub-section h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.pub-section-head a { color: var(--brand-text); font-weight: 600; text-decoration: none; font-size: 14px; white-space: nowrap; }
.pub-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.pub-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-full); color: var(--text); text-decoration: none; font-size: 14px; background: var(--surface); }
.pub-chip:hover, .pub-chip.is-active { border-color: var(--brand-text); color: var(--brand-text); background: var(--brand-faint); }

/* Course cards */
.pub-cards { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pub-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc(25% - 12px); gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
.pub-row > * { scroll-snap-align: start; }
@media (max-width: 1099px) { .pub-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pub-row { grid-auto-columns: calc(33.3% - 11px); } }
@media (max-width: 759px) { .pub-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pub-row { grid-auto-columns: 72%; } }
@media (max-width: 479px) { .pub-cards { grid-template-columns: 1fr; } .pub-row { grid-auto-columns: 84%; } }
.pub-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.pub-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pub-card:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.pub-cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, var(--lc-cover, var(--lc-accent-1, #0E86C3)) 100%); color: #fff; }
.pub-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pub-cover b { font-size: 30px; font-weight: 850; letter-spacing: -.03em; opacity: .95; }
.pub-cover::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.pub-cover .pub-badge { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: #10233f; font-size: 11.5px; font-weight: 700; }
.pub-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.pub-card-school { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.pub-card-school img { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; background: #fff; border: 1px solid var(--border-subtle); }
.pub-card h3 { font-size: 15px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pub-card .pub-mentor { font-size: 13px; color: var(--text-muted); }
.pub-card .pub-meta { font-size: 12.5px; color: var(--text-muted); }
.pub-card .pub-card-foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.pub-card .pub-start { font-size: 12.5px; color: var(--text); }
.pub-card .pub-start small { display: block; color: var(--text-muted); font-size: 11.5px; }
.pub-card .pub-price { font-weight: 750; font-size: 15px; font-variant-numeric: tabular-nums; }
.pub-rating { font-size: 12.5px; color: var(--text); }
.pub-rating b { color: #b54708; }

/* Goals band ("What brings you here today?") */
.pub-goals { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 26px; border-radius: 16px; background: var(--brand-faint); border: 1px solid var(--brand-soft); }
.pub-goals h2 { font-size: 18px; margin-right: 8px; }
.pub-goal { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.pub-goal:hover { border-color: var(--brand-text); }
.pub-goal span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--brand); color: var(--on-brand); }

/* Testimonials */
.pub-quotes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pub-quote { padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.pub-quote p { margin: 10px 0 0; color: var(--text); font-size: 14px; line-height: 1.6; }
.pub-quote footer { display: flex; align-items: center; gap: 10px; }
.pub-quote small { display: block; color: var(--text-muted); }

/* FAQ accordion (Coursera style: chevron, bold question, dividers) */
.pub-faq { border-top: 1px solid var(--border); }
.pub-faq details { border-bottom: 1px solid var(--border); }
.pub-faq summary { display: flex; align-items: center; gap: 12px; padding: 14px 4px; cursor: pointer; list-style: none; font-weight: 650; font-size: 14.5px; }
.pub-faq summary::-webkit-details-marker { display: none; }
.pub-faq summary:hover { background: var(--brand-faint); }
.pub-faq summary .lc-icon { transition: transform .15s; color: var(--text-muted); }
.pub-faq details[open] summary .lc-icon { transform: rotate(180deg); }
.pub-faq details > div { padding: 0 4px 16px 34px; color: var(--text-muted); line-height: 1.6; }

/* Footer */
.pub-footer { margin-top: 32px; padding: 36px 0 24px; background: var(--surface-2); border-top: 1px solid var(--border); }
.pub-footer-cols { display: grid; gap: 24px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.pub-footer h3 { font-size: 15px; margin-bottom: 10px; }
.pub-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pub-footer a { color: var(--text-muted); text-decoration: none; font-size: 13.5px; overflow-wrap: anywhere; }
.pub-footer a:hover { color: var(--brand-text); text-decoration: underline; }
.pub-footer p { color: var(--text-muted); font-size: 13.5px; margin: 0 0 10px; }
.pub-social { display: flex; gap: 8px; }
.pub-social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: var(--surface); font-size: 12px; font-weight: 800; }
.pub-social a:hover { background: var(--brand); color: var(--on-brand); text-decoration: none; }
.pub-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
@media (max-width: 759px) { .pub-footer-cols { grid-template-columns: 1fr 1fr; } .pub-footer-cols > :first-child { grid-column: 1 / -1; } }

/* ---- explore -------------------------------------------------------------------------------- */
.pub-explore { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 24px 0; }
.pub-filters { display: grid; gap: 18px; align-content: start; }
.pub-filters h3 { font-size: 14px; margin-bottom: 8px; }
.pub-filters ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pub-filters a { display: block; padding: 6px 8px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px; }
.pub-filters a:hover { background: var(--surface-hover); }
.pub-filters a.is-active { background: var(--brand-soft); color: var(--brand-text); font-weight: 650; }
.pub-results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
@media (max-width: 899px) { .pub-explore { grid-template-columns: 1fr; } .pub-filters { grid-template-columns: 1fr 1fr; } }

/* ---- course page ---------------------------------------------------------------------------- */
.pub-course-hero { background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 10%, var(--surface)) 0%, var(--surface) 70%); border-bottom: 1px solid var(--border); }
.pub-course-hero .pub-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding: 28px 0; }
.pub-crumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.pub-crumbs a { color: var(--brand-text); text-decoration: none; }
.pub-course-hero h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 780; letter-spacing: -.025em; }
.pub-course-hero .pub-lead { font-size: 16px; color: var(--text-muted); margin: 10px 0 16px; max-width: 720px; }
.pub-facts { display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 14px; }
.pub-facts span { display: inline-flex; align-items: center; gap: 6px; }
.pub-facts .lc-icon { color: var(--brand-text); }
.pub-buybox { align-self: start; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-md); }
.pub-buybox .pub-price-big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.pub-course-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding: 24px 0; }
.pub-learn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; list-style: none; margin: 0; padding: 18px; border: 1px solid var(--border); border-radius: 12px; }
.pub-learn li { display: flex; gap: 8px; font-size: 14px; }
.pub-learn .lc-icon { color: var(--success); flex: none; margin-top: 2px; }
.pub-batches { display: grid; gap: 12px; }
.pub-batch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.pub-batch h3 { font-size: 15px; }
.pub-batch dl { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 18px; margin: 8px 0 0; font-size: 13px; }
.pub-batch dt { color: var(--text-muted); font-size: 11.5px; }
.pub-batch dd { margin: 0; font-weight: 600; }
.pub-batch .pub-batch-buy { text-align: right; display: grid; gap: 6px; justify-items: end; }
.pub-seats-low { color: var(--danger-text); font-weight: 650; font-size: 12.5px; }
@media (max-width: 899px) {
  .pub-course-hero .pub-wrap, .pub-course-body { grid-template-columns: 1fr; }
  .pub-learn { grid-template-columns: 1fr; }
  .pub-batch { grid-template-columns: 1fr; }
  .pub-batch dl { grid-template-columns: 1fr 1fr; }
  .pub-batch .pub-batch-buy { justify-items: stretch; text-align: left; }
}

/* Legal page */
.pub-legal { max-width: 760px; padding: 32px 0; }
.pub-legal h1 { font-size: 30px; margin-bottom: 12px; }
.pub-legal .pub-text { white-space: pre-line; line-height: 1.7; }

/* ---- split-screen log in / sign up ------------------------------------------------------------ */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-art { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding: 40px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--lc-accent-1, #0E86C3) 70%, transparent) 0, transparent 45%),
              linear-gradient(150deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, #000) 100%); }
.auth-art::before { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid color-mix(in srgb, var(--lc-accent-3, #C2D82F) 55%, transparent); }
.auth-illustration { width: min(420px, 90%); height: auto; }
.auth-art-copy { text-align: center; max-width: 420px; position: relative; }
.auth-art-copy h2 { font-size: 26px; font-weight: 750; }
.auth-art-copy p { opacity: .9; margin: 8px 0 0; }
.auth-main { display: flex; flex-direction: column; padding: 24px clamp(20px, 5vw, 64px); background: var(--surface); }
.auth-top { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 420px; margin: 8px auto 0; }
/* The school's logo at the top of the form side, on a white plate so it reads in dark mode too. */
.auth-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.auth-brand img { height: 84px; width: auto; display: block; }
.auth-brand .auth-brand-icon { height: 40px; }
.auth-brand-text { font-weight: 800; color: var(--text); font-size: 20px; }
.auth-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); text-decoration: none; font-size: 14px; }
.auth-back:hover { color: var(--brand-text); }
.auth-card { width: 100%; max-width: 420px; margin: auto; padding: 24px 0; }
.auth-title { font-size: 28px; font-weight: 780; letter-spacing: -.02em; }
.auth-lead { color: var(--text-muted); margin: 6px 0 20px; }
.auth-form .ui-field { margin-bottom: 14px; }
.auth-form .ui-input { width: 100%; min-height: 44px; }
.auth-human { max-width: 120px; }
.auth-submit { width: 100%; min-height: 46px; font-size: 15px; }
.auth-alt { text-align: center; color: var(--text-muted); font-size: 14px; margin: 14px 0 0; }
.auth-alt a, .auth-card a { color: var(--brand-text); font-weight: 600; }
.auth-steps { display: flex; gap: 6px; margin-bottom: 18px; }
.auth-steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--border); }
.auth-steps span.is-done { background: var(--brand); }
.auth-foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; padding-top: 16px; font-size: 13px; }
.auth-foot a { color: var(--text-muted); }
@media (max-width: 899px) {
  /* Phone: the form side first (logo, Back, form, footer); the colour side shrinks to a band at the top. */
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-art { min-height: 0; padding: 0; height: 8px; }
  .auth-art > * , .auth-art::before { display: none; }
  .auth-main { padding: 16px 20px 20px; }
  .auth-brand img { height: 64px; }
  .auth-card { margin: 0 auto; padding-top: 16px; }
}

/* ---- checkout ------------------------------------------------------------------------------- */
.co-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; counter-reset: step; flex-wrap: wrap; }
.co-steps li { counter-increment: step; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--radius-full); background: var(--surface-2); color: var(--text-muted); font-size: 13px; font-weight: 600; }
.co-steps li::before { content: counter(step); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--border); color: var(--text); font-size: 12px; }
.co-steps li.is-done::before { content: "✓"; background: var(--success); color: #fff; }
.co-steps li.is-current { background: var(--brand-soft); color: var(--brand-text); }
.co-steps li.is-current::before { background: var(--brand); color: var(--on-brand); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.co-summary { position: sticky; top: 84px; overflow: hidden; }
.co-batch { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); text-decoration: none; margin-top: 8px; }
.co-batch.is-chosen { border: 2px solid var(--brand-text); background: var(--brand-faint); margin-top: 0; }
a.co-batch:hover { border-color: var(--brand-text); }
.co-others { margin-top: 10px; }
.co-others summary { cursor: pointer; color: var(--brand-text); font-weight: 600; font-size: 14px; }
.co-signin { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.co-new { padding: 16px; border-radius: 12px; background: var(--surface-2); align-self: start; }
.co-new h3 { font-size: 16px; }
.co-methods { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.co-method { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.co-method:has(input:checked) { border: 2px solid var(--brand-text); background: var(--brand-faint); }
.co-method.is-disabled { opacity: .55; cursor: not-allowed; }
.co-method small { display: block; color: var(--text-muted); }
.co-method input { margin-top: 4px; accent-color: var(--brand); }
.co-policies { margin-bottom: 14px; }
.co-result { text-align: center; padding: 32px 24px; }
.co-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); }
.co-icon .lc-icon { width: 30px; height: 30px; }
.co-icon-ok { background: var(--success-soft); color: var(--success); }
.co-icon-bad { background: var(--danger-soft); color: var(--danger-text); }
.co-bank { text-align: left; white-space: pre-wrap; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-family: var(--font-mono); font-size: 13px; }
@media (max-width: 899px) { .co-grid { grid-template-columns: 1fr; } .co-summary { position: static; order: -1; } .co-signin { grid-template-columns: 1fr; } }

/* Breadcrumbs under the header (the same trail on course, checkout, legal and order pages). */
.pub-crumbs { padding: 12px 0 0; font-size: 13px; color: var(--text-muted); }
.pub-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pub-crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: var(--text-faint); }
.pub-crumbs a { color: var(--brand-text); text-decoration: none; }
.pub-crumbs a:hover { text-decoration: underline; }
.pub-crumbs [aria-current] { color: var(--text); font-weight: 600; }
.pub-header .lc-user-menu summary { padding: 2px; }
.pub-back { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-text); font-weight: 600; text-decoration: none; font-size: 14px; }
.pub-back:hover { text-decoration: underline; }
@media (max-width: 899px) { .pub-header .pub-my { display: none; } }
.co-topnav, .co-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.co-topnav { margin-bottom: 12px; }
.co-actions { margin-top: 14px; font-size: 14px; }

/* ---- log-in / sign-up popup (one popup for both) -------------------------------------------- */
html.ap-open { overflow: hidden; }
.ap-backdrop { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 16px; background: rgba(10, 16, 28, .55); }
.ap-backdrop[hidden] { display: none; }
.ap { position: relative; width: min(100%, 440px); max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px 28px 20px;
  border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.ap:focus { outline: none; }
.ap-close { position: absolute; top: 10px; right: 10px; }
.ap-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.ap-logo img { height: 52px; width: auto; display: block; }
.ap-title { font-size: 22px; font-weight: 750; letter-spacing: -.01em; text-align: center; margin-bottom: 6px; }
.ap-lead { text-align: center; color: var(--text-muted); font-size: 14px; margin: 0 0 16px; }
.ap .ui-field { margin-bottom: 12px; }
.ap .ui-input { width: 100%; min-height: 44px; }
.ap-submit { width: 100%; min-height: 46px; font-size: 15px; }
.ap-who { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13.5px; color: var(--text-muted); }
.ap-who span { color: var(--text); font-weight: 650; overflow-wrap: anywhere; }
.ap-link { border: 0; padding: 0; background: none; color: var(--brand-text); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ap-forgot { text-align: right; margin: -4px 0 12px; font-size: 13.5px; }
.ap-forgot a { color: var(--brand-text); font-weight: 600; }
.ap-error { margin-bottom: 12px; }
.ap-legal { margin: 18px 0 0; text-align: center; font-size: 12.5px; color: var(--text-muted); }
.ap-legal a { color: var(--brand-text); }
@media (max-width: 599px) {
  .ap-backdrop { padding: 0; place-items: stretch; }
  .ap { width: 100%; max-height: none; height: 100%; border-radius: 0; padding: 56px 20px 24px; }
}

/* Test details page and the banner link */
.td-banner-link { margin-left: 8px; color: inherit; font-weight: 700; text-decoration: underline; }
.td-mono { font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
.td-secret { font-family: var(--font-mono); padding: 2px 8px; border-radius: 6px; background: var(--surface-2); }

/* ---- the school's short-course centre (BA ISAGO CPDC): hero, about, fee schedule, train your team ---- */
.cp-hero { background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 12%, var(--surface)) 0%, var(--surface) 75%); border-bottom: 1px solid var(--border); }
.cp-hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 32px 0; }
.cp-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-text); font-weight: 700; font-size: 14px; }
.cp-kicker img { width: 30px; height: 30px; object-fit: contain; background: #fff; border-radius: 7px; padding: 2px; }
.cp-hero h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; margin: 10px 0 0; }
.cp-hero h1 .cp-short { color: var(--brand-text); white-space: nowrap; }
.cp-hero p { color: var(--text-muted); font-size: 16.5px; margin: 12px 0 18px; max-width: 620px; }
.cp-actions { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.cp-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cp-facts li { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.cp-facts strong { display: block; font-size: 17px; font-weight: 780; color: var(--text); letter-spacing: -.01em; }
.cp-facts span { display: block; color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.cp-about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cp-about > div > p { color: var(--text-muted); line-height: 1.7; max-width: 720px; }
.cp-points { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.cp-points li { display: flex; gap: 8px; align-items: flex-start; }
.cp-points .lc-icon { color: var(--success); flex: none; margin-top: 3px; }
.cp-contact { margin-top: 16px; }
.cp-contact-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.cp-contact-list a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-text); font-weight: 600; text-decoration: none; font-size: 14px; overflow-wrap: anywhere; }
.cp-contact-list a:hover { text-decoration: underline; }
.cp-contact-list .lc-icon { width: 16px; height: 16px; flex: none; }
.cp-ask .cp-contact-list { flex-direction: column; }
.cp-ask hr { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }
.cp-team { padding: 22px; border-radius: 14px; color: #fff; background: linear-gradient(140deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 65%, #000) 100%); }
.cp-team > .lc-icon { width: 30px; height: 30px; color: var(--lc-accent-3, #C2D82F); }
.cp-team h3 { font-size: 20px; margin: 8px 0 6px; }
.cp-team p { opacity: .92; margin: 0 0 14px; line-height: 1.55; }
.cp-team .pub-btn { background: #fff; color: #10233f; }
.cp-fees-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.cp-fees { margin-top: 26px; scroll-margin-top: 80px; }
.cp-fees h2 { font-size: 19px; margin-bottom: 10px; }
.cp-fees h2 small { color: var(--text-muted); font-weight: 500; font-size: 13px; margin-left: 6px; }
.cp-table-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.cp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cp-table th { text-align: left; padding: 10px 14px; background: var(--surface-2); color: var(--text-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.cp-table td { padding: 11px 14px; border-top: 1px solid var(--border-subtle); vertical-align: top; }
.cp-table td a { color: var(--brand-text); font-weight: 600; text-decoration: none; }
.cp-table td a:hover { text-decoration: underline; }
.cp-table .num { text-align: right; white-space: nowrap; }
.cp-table td small { display: block; color: var(--text-muted); font-size: 12px; white-space: normal; }
.cp-train { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.cp-train-form { margin-top: 16px; }
.cp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.cp-train-form .ui-field { margin-bottom: 14px; }
.cp-train-form .ui-input, .cp-train-form .ui-select { width: 100%; }
.pub-kicker-link { display: inline-block; margin-bottom: 6px; color: var(--brand-text); font-weight: 700; font-size: 13px; text-decoration: none; }
.pub-kicker-link:hover { text-decoration: underline; }
.pub-delivery.is-blended { font-weight: 650; }
.pub-student-price { margin: 4px 0 0; font-size: 14px; color: var(--success); }
.pub-options { list-style: none; margin: 6px 0 12px; padding: 0; display: grid; gap: 6px; }
.pub-options li { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13.5px; }
.pub-options span { display: block; color: var(--text-muted); font-size: 12.5px; }
.pub-draft { display: flex; gap: 8px; align-items: center; margin: 0; padding: 10px 12px; border: 1px dashed var(--warning-border); border-radius: 10px; background: var(--warning-soft); color: var(--warning-text); font-size: 13.5px; }
.pub-draft .lc-icon { flex: none; }
.pub-price small, .co-alt-price { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-muted); text-align: right; }
/* "Have a student or promo code?": one field, Apply, then the new price and Remove. */
.co-code { display: grid; gap: 6px; margin: 0 0 16px; }
.co-code-row { display: flex; gap: 8px; }
.co-code-row .ui-input { flex: 1; min-width: 0; max-width: 320px; text-transform: uppercase; }
.co-code-applied { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--success-border); border-radius: 10px; background: var(--success-soft); color: var(--text); }
.co-code-applied > .lc-icon { color: var(--success); margin-top: 2px; }
.co-code-applied > span { flex: 1; min-width: 0; }
.co-code-remove { border: 0; background: none; padding: 2px 0; color: var(--brand-text); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.co-code-remove:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.co-discount span:last-child { color: var(--success); font-weight: 650; }
@media (max-width: 899px) {
  .cp-hero-inner, .cp-about, .cp-train { grid-template-columns: 1fr; }
  .cp-hero-inner { padding: 22px 0; gap: 18px; }
}
@media (max-width: 640px) {
  .cp-facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cp-facts li { padding: 10px 12px; }
  .cp-facts strong { font-size: 15px; }
  .cp-two { grid-template-columns: 1fr; }
  .cp-table thead { display: none; }
  .cp-table, .cp-table tbody, .cp-table tr, .cp-table td { display: block; width: 100%; }
  .cp-table tr { padding: 10px 14px; border-top: 1px solid var(--border-subtle); }
  .cp-table tr:first-child { border-top: 0; }
  .cp-table td { border: 0; padding: 2px 0; }
  .cp-table td[data-label="Duration"], .cp-table td[data-label="Delivery"] { display: inline; width: auto; color: var(--text-muted); font-size: 13px; }
  .cp-table td[data-label="Duration"]::after { content: " · "; }
  .cp-table .num { text-align: left; margin-top: 4px; }
}.td-tries { list-style: none; margin: 0; padding: 4px 18px 14px; display: grid; gap: 10px; }
.td-tries li { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.td-tries li:first-child { border-top: 0; }
.td-tries span { color: var(--text-muted); font-size: 13.5px; }
/* The course page's main column keeps its own height when the side column is taller. */
.pub-course-body > .lc-grid { align-content: start; }
.pub-hero .pub-section-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.pub-hero .pub-section-head { margin-bottom: 14px; min-height: 38px; align-items: center; }
