/* Styles for the account, commerce and application pages. Builds on the tokens in site.css. */

[hidden] { display: none !important; }

/* ---------- Header utilities ---------- */
.nav .util { display: inline-flex; align-items: center; gap: .35rem; }
.cart-count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 999px; background: var(--coral); color: var(--white); font-size: .72rem; font-weight: 700; }
.cart-count[data-n="0"] { background: var(--line); color: var(--ink-2); }

/* ---------- Stepper (trainer application) ---------- */
.stepper { display: flex; gap: .4rem; list-style: none; margin: 0 0 1.6rem; padding: 0; overflow-x: auto; }
.stepper li { flex: 1 0 auto; min-width: 6.5rem; display: grid; gap: .35rem; font-size: .8rem; color: var(--ink-2); }
.stepper li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.stepper li.done::before, .stepper li.current::before { background: var(--navy); }
.stepper li.current { color: var(--navy); font-weight: 700; }
.step-panel { display: grid; gap: 1rem; }
.step-panel h3 { font-size: var(--step-1); font-weight: 700; }
.step-nav { display: flex; gap: .75rem; justify-content: space-between; margin-top: .6rem; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.form .checks label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.form .checks input { width: auto; accent-color: var(--navy); }
.form input[type="file"] { padding: .55rem; background: var(--mist); }
.form .inline { display: flex; align-items: flex-start; gap: .5rem; font-weight: 400; }
.form .inline input { width: auto; margin-top: .45rem; accent-color: var(--navy); }
.review dl { display: grid; grid-template-columns: minmax(8rem, 30%) 1fr; gap: .4rem 1rem; margin: 0; font-size: .92rem; }
.review dt { color: var(--ink-2); }
.review dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.form-error { color: var(--crimson); font-size: .88rem; font-weight: 700; }

/* ---------- Hub / filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.filters button { font: inherit; font-size: .9rem; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.item { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
a.item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(20,17,42,.45); }
.item .cover { aspect-ratio: 16 / 9; position: relative; color: var(--white); padding: 1rem; display: flex; align-items: flex-end; justify-content: space-between; max-width: 100%; overflow: hidden; }
.item .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item .cover > span { position: relative; }
.item .body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .4rem; align-content: start; }
.item h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.55; }
.item p { font-size: .9rem; color: var(--ink-2); }
.item .meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .8rem; color: var(--ink-2); }
.price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price b { font-size: 1.15rem; }
.price s { color: var(--ink-2); font-size: .85rem; }
.price .off { font-size: .75rem; font-weight: 700; color: var(--crimson); }
.date-block { display: grid; justify-items: center; background: var(--white); color: var(--ink); border-radius: 10px; padding: .3rem .7rem; line-height: 1.2; }
.date-block b { font-size: 1.4rem; font-weight: 700; }
.date-block span { font-size: .72rem; }

/* ---------- Product detail ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.product .shot { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; position: relative; display: grid; place-items: center; }
.product .shot svg { width: 44%; height: auto; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: .6rem; }
.thumbs span { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--white); }
.buy { display: grid; gap: 1.1rem; }
.buy h1 { font-size: var(--step-3); }
.buy .price b { font-size: 2rem; font-weight: 300; }
.includes { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.includes li { display: flex; gap: .6rem; align-items: baseline; font-size: .95rem; }
.includes li::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--green); transform: translateY(-.1rem); }
.toast { position: fixed; z-index: 30; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); inset-inline-start: max(1rem, env(safe-area-inset-right, 0px)); max-width: calc(100% - 2rem); background: var(--ink); color: var(--white); padding: .8rem 1.1rem; border-radius: 12px; font-size: .92rem; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }
.toast a { color: var(--cyan); margin-inline-start: .6rem; font-weight: 700; }

/* ---------- Cart & checkout ---------- */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 2rem; align-items: start; }
@media (max-width: 920px) { .cart { grid-template-columns: 1fr; } }
.cart-lines { display: grid; border-top: 2px solid var(--ink); }
.line { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); align-items: center; }
.line .thumb { width: 4.5rem; aspect-ratio: 1; border-radius: 12px; }
.line h3 { font-size: 1rem; font-weight: 700; line-height: 1.5; }
.line .kind { font-size: .8rem; color: var(--ink-2); }
.line .end { display: grid; gap: .3rem; justify-items: end; text-align: end; }
.line .remove { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--crimson); cursor: pointer; text-decoration: underline; }
.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .9rem; position: sticky; top: 100px; background: var(--white); }
.summary h2 { font-size: var(--step-1); font-weight: 700; }
.summary .row2 { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; font-variant-numeric: tabular-nums; }
.summary .total { border-top: 1px solid var(--line); padding-top: .9rem; font-weight: 700; font-size: 1.1rem; }
.coupon { display: flex; gap: .5rem; }
.coupon input { flex: 1; min-width: 0; font: inherit; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; }
.coupon button { font: inherit; font-weight: 700; padding: .6rem 1rem; border-radius: 10px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); cursor: pointer; }
.coupon-msg { font-size: .85rem; }
.split-pay { background: var(--mist); border-radius: 12px; padding: .8rem 1rem; font-size: .88rem; display: grid; gap: .2rem; }
.empty { text-align: center; padding: 3rem 1rem; display: grid; gap: 1rem; justify-items: center; color: var(--ink-2); }
.pay-methods { display: grid; gap: .6rem; }
.form .pay-methods label { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; }
.form .pay-methods label:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.form .pay-methods input { width: auto; accent-color: var(--navy); }
.pay-methods small { color: var(--ink-2); margin-inline-start: auto; font-size: .8rem; }

/* ---------- Sign in ---------- */
.auth { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.auth > * { min-width: 0; }
.auth .side { position: relative; overflow: hidden; color: var(--white); padding: clamp(2rem, 5vw, 4rem); display: grid; align-content: start; gap: .8rem; min-height: 420px; isolation: isolate; }
.auth .side .person { position: absolute; z-index: -1; bottom: 0; inset-inline-start: 0; width: 100%; max-width: none; }
.auth .side h2 { font-size: var(--step-3); max-width: 14ch; }
.auth .side p { font-weight: 700; max-width: 30ch; }
.auth .main { padding-block: clamp(2rem, 5vw, 4rem); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; align-content: center; }
.auth .card { width: min(100%, 26rem); margin-inline: auto; display: grid; gap: 1rem; }
.auth .card h1 { font-size: var(--step-3); }
.sso { display: grid; gap: .6rem; }
.sso button { font: inherit; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .7rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.sso button:hover { background: var(--mist); }
.sso svg { width: 18px; height: 18px; flex: none; }
.or { display: flex; align-items: center; gap: .8rem; color: var(--ink-2); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Event ---------- */
.event-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 1rem; }
.event-meta div { border-inline-start: 2px solid rgba(255,255,255,.6); padding-inline-start: .8rem; display: grid; }
.event-meta span { font-size: .8rem; opacity: .85; }
.event-meta b { font-size: 1rem; }
.agenda { display: grid; border-top: 2px solid var(--ink); }
.agenda > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.agenda time { font-weight: 700; color: var(--crimson); font-variant-numeric: tabular-nums; }
.agenda b { display: block; }
.agenda span { color: var(--ink-2); font-size: .92rem; }
.sample-note { font-size: .82rem; background: #FFF0DA; color: #6B4300; border-radius: 10px; padding: .5rem .8rem; justify-self: start; }
.hero .sample-note { color: #6B4300; }

/* ---------- Programme header (wireframe p.4): mark in a circle + family name ---------- */
.prog-header { position: relative; z-index: 6; background: var(--white); }
.prog-header .wrap { display: flex; align-items: flex-end; gap: 1rem; min-height: 64px; }
.prog-mark { flex: none; width: 96px; height: 96px; margin-bottom: -40px; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--mist), 0 14px 30px -16px rgba(20,17,42,.55); }
.prog-mark img { width: 64px; height: auto; }
.prog-family { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 700; color: var(--navy); text-decoration: none; padding-bottom: .55rem; }
.prog-back { margin-inline-start: auto; padding-bottom: .7rem; font-size: .9rem; font-weight: 700; text-decoration: none; }
.prog-back::before { content: "→ "; }
.prog-page .hero-copy { padding-top: 4rem; }
.prog-page .hero h1 { font-weight: 700; font-size: clamp(2.3rem, 4.8vw, 3.8rem); line-height: 1.2; }
.prog-page .aside-card { top: 70px; }
.prog-page .detail-main section { scroll-margin-top: 70px; }
@media (max-width: 760px) { .prog-mark { width: 76px; height: 76px; margin-bottom: -30px; } .prog-mark img { width: 50px; } .prog-back { display: none; } }

/* Photo hero (place-based programmes) */
.hero-photo { position: relative; }
.hero-photo > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(270deg, rgba(20,17,42,.05) 0%, rgba(20,17,42,.35) 45%, rgba(20,17,42,.78) 100%); }
.hero-photo .wrap { min-height: clamp(460px, 52vw, 620px); }
.hero-photo .hero-copy { justify-self: end; max-width: 34rem; }
.hero-photo .facts dt { color: rgba(255,255,255,.8); }
.hero-photo .facts dd { color: var(--white); }

/* ---------- Leadership programme cards ---------- */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.lp-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.lp-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(20,17,42,.5); }
.lp-card .cover { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; display: flex; align-items: flex-start; justify-content: space-between; padding: .9rem; }
.lp-card .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-card .cover .tag { position: relative; }
.lp-card .cover .mark { position: absolute; inset-inline-end: -8%; bottom: -18%; width: 55%; opacity: .25; }
.lp-card .body { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: .5rem; align-content: start; }
.lp-card h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.lp-card .en { font-size: .8rem; color: var(--ink-2); }
.lp-card p { font-size: .92rem; color: var(--ink-2); }
.lp-card .meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .82rem; color: var(--ink-2); margin-top: .2rem; }
.lp-card .go { font-weight: 700; color: var(--navy); font-size: .9rem; margin-top: .3rem; }
.lp-card .go::after { content: " ←"; }
.badge-virtual { background: #EDE3F7; color: #5B2C86; }
.virtual-note { font-size: .85rem; background: #EDE3F7; color: #4A2470; border-radius: 10px; padding: .6rem .9rem; }

/* ---------- Programme detail (CPPE) ---------- */
.cred-badge { position: absolute; z-index: 2; top: 1.4rem; inset-inline-end: max(16px, env(safe-area-inset-left, 0px)); background: rgba(255,255,255,.92); color: var(--navy); border-radius: 10px; padding: .5rem .8rem; display: grid; text-align: center; line-height: 1.2; }
.cred-badge span { font-size: 1.3rem; font-weight: 700; letter-spacing: .04em; }
.cred-badge small { font-size: .6rem; max-width: 7rem; }
@media (max-width: 760px) { .cred-badge { display: none; } }
.video-ph { aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); background: var(--g-calm); color: var(--white); display: grid; place-items: center; align-content: center; gap: .8rem; font-weight: 700; }
.video-ph .play { width: 72px; height: 72px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); position: relative; }
.video-ph .play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-block: 13px solid transparent; border-inline-end: 22px solid var(--white); transform: translateX(-3px); }
.content-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.cred-mini { flex: none; background: var(--g-flare); color: var(--white); border-radius: 10px; padding: .5rem .8rem; display: grid; text-align: center; line-height: 1.2; }
.cred-mini b { font-size: 1.2rem; letter-spacing: .04em; }
.cred-mini small { font-size: .6rem; }
.cred-row { display: flex; gap: 1rem; align-items: flex-start; }
.theme-cards .en, .element .en, .j-card .en { font-size: .78rem; color: var(--ink-2); }
.sub-h { font-size: 1.2rem; font-weight: 700; margin-top: .8rem; }
.sub-h .latin { font-weight: 400; font-size: .85rem; color: var(--ink-2); }
.tabs { display: grid; gap: 1rem; background: var(--mist); border-radius: var(--radius); padding: 1.2rem; }
.tab-list { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tab-list button { font: inherit; font-size: .92rem; background: none; border: 0; border-bottom: 3px solid transparent; padding: .5rem .8rem; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tab-list button[aria-selected="true"] { color: var(--navy); font-weight: 700; border-bottom-color: var(--navy); }
.tab-pane { display: grid; gap: 1rem; }
.tab-pane p { color: var(--ink-2); }
.topic-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .45rem; }
.topic-list li { background: var(--white); border-radius: 10px; padding: .55rem .9rem; font-size: .92rem; }
.element { border-top: 3px solid var(--purple); padding-top: .8rem; display: grid; gap: .3rem; align-content: start; }
.element:nth-child(2) { border-top-color: var(--coral); }
.element:nth-child(3) { border-top-color: var(--green); }
.element h4 { font-size: 1.05rem; font-weight: 700; }
.element p { font-size: .92rem; color: var(--ink-2); }
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; position: relative; }
.journey::before { content: ""; position: absolute; inset-block: .6rem; inset-inline-start: .55rem; width: 2px; background: var(--line); }
.journey > li { position: relative; padding-inline-start: 2.2rem; display: grid; gap: .6rem; }
.journey > li::before { content: ""; position: absolute; inset-inline-start: 0; top: .35rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 4px var(--white); }
.journey h4 { font-size: 1.02rem; font-weight: 700; }
.j-card { display: flex; gap: .9rem; align-items: center; background: var(--mist); border-radius: 12px; padding: .9rem 1rem; }
.j-card p { font-size: .92rem; color: var(--ink-2); }
.j-card > div { flex: 1; min-width: 0; display: grid; gap: .2rem; }
.j-ico { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--g-flare); }
.dur { flex: none; display: grid; text-align: center; background: var(--white); border-radius: 10px; padding: .3rem .7rem; line-height: 1.2; }
.dur b { font-size: 1.5rem; font-weight: 300; }
.dur small { font-size: .72rem; color: var(--ink-2); }
.experts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.2rem; }
.expert { display: flex; gap: .9rem; align-items: center; }
.expert .avatar { flex: none; width: 4.2rem; height: 4.2rem; border-radius: 50%; background: var(--g-calm); }
.expert b { display: block; }
.expert span { font-size: .85rem; color: var(--ink-2); }
.expert.director { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.orgs { display: flex; flex-wrap: wrap; gap: .6rem; }
.orgs span { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .9rem; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.faq-search input { font: inherit; width: 100%; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; }
.faq-group { display: grid; }
.intakes { display: grid; gap: .8rem; }
.intake-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.intake-list button { font: inherit; font-weight: 700; display: grid; gap: .1rem; text-align: center; padding: .5rem 1rem; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.intake-list button small { font-size: .72rem; font-weight: 400; color: var(--ink-2); }
.intake-list button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.intake-list button[aria-selected="true"] small { color: #D6D2EE; }
.aside-card .fee { font-size: 1.6rem; font-weight: 300; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; text-align: start; }

/* ---------- Art heroes: one composed photograph (field, motif and person), no cut-outs ---------- */
.hero-art .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; z-index: 0; }
.hero-art .wrap { min-height: clamp(460px, 42vw, 640px); }
.hero-art::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(270deg, rgba(20,17,42,0) 45%, rgba(20,17,42,.38) 100%); }
@media (max-width: 760px) { .hero-art::before { display: none; } }
.hero-art .hero-copy { justify-self: end; max-width: 31rem; }
@media (max-width: 760px) {
  .hero-art { display: flex; flex-direction: column; }
  .hero-art .art { position: relative; height: 300px; object-position: 88% 30%; order: 0; }
  .hero-art .wrap { min-height: 0; order: 1; }
  .hero-art .hero-copy { padding-block: 1.8rem 2.4rem; }
  main:not(.prog-page) > .hero-art:first-child { padding-top: 0; }
  main:not(.prog-page) > .hero-art:first-child .art { margin-top: 0; height: 360px; }
}

.auth .side .side-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; z-index: -1; }
.line .thumb { object-fit: cover; }

/* Call-to-action band before the footer: a campaign gradient, never the footer's navy */
.cta-grad { position: relative; color: var(--white); isolation: isolate; }
.cta-grad .muted { color: rgba(255,255,255,.92); }
.cta-grad a:not(.btn) { color: var(--white); }

/* Footer social links */
.social { list-style: none; margin: .4rem 0 0; padding: 0; display: flex !important; flex-wrap: wrap; gap: .5rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--white); transition: background .2s ease, transform .2s ease; }
.social a:hover { background: var(--coral); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Brand icons ---------- */
.ico { width: 44px; height: 44px; display: block; }
.ruled .ico { margin-bottom: .2rem; }

/* ---------- Skills Journey catalogue ---------- */
.cat-bar button { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; }
.cat-bar button b { font-size: .75rem; background: var(--mist); color: var(--navy); border-radius: 999px; padding: 0 .45rem; }
.cat-bar button[aria-pressed="true"] b { background: rgba(255,255,255,.2); color: var(--white); }
.tier-group { display: grid; gap: 1.4rem; margin-top: 2.6rem; }
.tier-heading { display: flex; gap: 1rem; align-items: flex-start; border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.tier-heading .tier-no { flex: none; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; color: var(--white); font-weight: 700; font-size: 1.3rem; }
.tier-heading h3 { font-size: var(--step-2); font-weight: 700; }
.tier-heading .latin { font-size: .85rem; color: var(--ink-2); }
.tier-heading p { color: var(--ink-2); max-width: 70ch; margin-top: .3rem; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.4rem; }
.course-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(20,17,42,.55); }
.course-card .cover { aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; }
.course-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.course-card:hover .cover img { transform: scale(1.04); }
.course-card .body { padding: 1rem 1.15rem 1.25rem; display: grid; gap: .45rem; align-content: start; }
.course-card h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.45; color: var(--ink); }
.course-card .en { font-size: .78rem; color: var(--ink-2); }
.course-card .tagline { font-weight: 700; color: var(--navy); font-size: .95rem; }
.course-card p { font-size: .9rem; color: var(--ink-2); }
.course-card .go { font-weight: 700; color: var(--navy); font-size: .9rem; margin-top: .2rem; }
.course-card .go::after { content: " ←"; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { font-size: .74rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: var(--mist); color: var(--ink-2); }
.chip-tier { background: #E7E3F6; color: var(--navy); }
.chip-future { background: #EDE3F7; color: #5B2C86; }
.chip-comp { background: #DDF3E7; color: #0B6B3D; }

/* ---------- Course page ---------- */
.course-top { padding-bottom: 2rem; }
.crumbs { font-size: .88rem; color: var(--ink-2); margin-bottom: 1.2rem; }
.course-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 860px) { .course-hero { grid-template-columns: 1fr; } .course-hero .photo { order: -1; } }
.course-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.25; }
.course-hero .en { color: var(--ink-2); font-size: .9rem; }
.course-hero .tagline { font-size: var(--step-1); color: var(--navy); font-weight: 700; }
.course-hero .photo { aspect-ratio: 16 / 10; box-shadow: 0 24px 50px -30px rgba(20,17,42,.6); }
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.formats > div { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; display: grid; gap: .3rem; }
.formats span { color: var(--ink-2); font-size: .92rem; }

/* Programme covers (CEPs, leadership, hub) */
.prog .swatch.has-img { padding: 0; height: auto; aspect-ratio: 16 / 9; display: block; position: relative; }
.prog .swatch.has-img img { width: 100%; height: 100%; object-fit: cover; }
.prog .swatch.has-img .code, .prog .swatch.has-img .tag { position: absolute; bottom: .7rem; }
.prog .swatch.has-img .code { inset-inline-start: .9rem; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.prog .swatch.has-img .tag { inset-inline-end: .9rem; }
.prog h3 { font-size: 1.15rem; }

/* ---------- Contact flip card ---------- */
.flip-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(20,16,44,.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.flip-overlay.open { opacity: 1; }
.flip-scene { width: min(640px, 100%); perspective: 1600px; }
.flip-card { position: relative; display: grid; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.flip-card.flipped { transform: rotateY(180deg); }
.flip-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 22px; padding: 2rem 1.8rem; max-height: calc(100dvh - 32px); overflow-y: auto; position: relative; }
.flip-front { color: var(--white); background: linear-gradient(115deg, #FF5C65, #F53F29); display: grid; align-content: center; gap: .9rem; min-height: 420px; }
.flip-front h2 { font-size: var(--step-3); font-weight: 700; margin: 0; }
.flip-kicker { font-size: .85rem; font-weight: 700; opacity: .9; }
.flip-ctx { margin: 0; opacity: .95; }
.flip-points { margin: .4rem 0 .8rem; padding: 0; list-style: none; display: grid; gap: .55rem; }
.flip-points li { padding-inline-start: 1.6rem; position: relative; }
.flip-points li::before { content: "✓"; position: absolute; inset-inline-start: 0; font-weight: 700; }
.flip-front .btn { justify-self: start; }
.flip-back { transform: rotateY(180deg); background: var(--white); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.flip-back-head { display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem; padding-inline-end: 2.4rem; }
.flip-back-btn { font: inherit; font-size: .9rem; border: 0; background: var(--mist); color: var(--navy); border-radius: 999px; padding: .35rem .8rem; cursor: pointer; }
.flip-close { position: absolute; top: .8rem; inset-inline-end: .8rem; width: 36px; height: 36px; border-radius: 50%; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; background: rgba(255,255,255,.2); color: inherit; }
.flip-back .flip-close { background: var(--mist); }
.flip-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.flip-form textarea { min-height: 80px; }
.checks-set { border: 0; padding: 0; margin: 0; }
.checks-set legend { font-size: .9rem; font-weight: 700; margin-bottom: .4rem; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.checks label { display: flex; gap: .4rem; align-items: center; font-weight: 400; }
.flip-done { display: grid; gap: .8rem; justify-items: center; text-align: center; padding: 3rem 0; }
.flip-done .tick { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: var(--white); background: linear-gradient(115deg, #00A559, #057F70); }
@media (max-width: 560px) { .flip-form .row { grid-template-columns: 1fr; } .flip-front { min-height: 360px; } }
@media (prefers-reduced-motion: reduce) { .flip-card { transition: none; } }

/* ---------- Admission application + My programmes ---------- */
.apply-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 1.5rem; align-items: start; margin-top: 1.5rem; }
.apply-side { padding: 0; overflow: hidden; position: sticky; top: 100px; }
.apply-side img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.apply-side .pad { padding: 1rem 1.2rem 1.2rem; display: grid; gap: .6rem; }
.auth-box { display: grid; gap: 1rem; }
.auth-box .row, #a-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
#a-form h3 { margin: 0 0 .8rem; }
.signed { font-size: .88rem; color: var(--ink-2); margin: 0 0 .8rem; }
.review dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; font-size: .9rem; }
.review dt { color: var(--ink-2); }
.review dd { margin: 0; font-weight: 700; word-break: break-word; }
.my-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.my-head h1 { font-size: var(--step-3); margin: .2rem 0; }
.my-list { display: grid; gap: 1rem; }
.my-app { display: grid; grid-template-columns: 220px 1fr; background: var(--white); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.my-app img { width: 100%; height: 100%; object-fit: cover; }
.my-app .pad { padding: 1.2rem; display: grid; gap: .6rem; }
.my-app h3 { margin: 0; }
.track { list-style: none; padding: 0; margin: .4rem 0; display: flex; gap: .4rem; overflow-x: auto; }
.track li { flex: 1 0 6rem; display: grid; gap: .3rem; font-size: .78rem; color: var(--ink-2); }
.track li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.track li.done::before { background: #00A559; }
.track li.current::before { background: var(--navy); }
.track li.current { color: var(--navy); font-weight: 700; }
.linklike { font: inherit; background: none; border: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; padding: 0; }
.empty { text-align: center; display: grid; gap: .8rem; justify-items: center; padding: 2.5rem 1rem; }
@media (max-width: 860px) { .apply-layout { grid-template-columns: 1fr; } .apply-side { position: static; order: -1; } .my-app { grid-template-columns: 1fr; } .my-app img { aspect-ratio: 16/8; } }
@media (max-width: 560px) { .auth-box .row, #a-form .row { grid-template-columns: 1fr; } }

/* ---------- v12 ---------- */
.site-header .nav a.btn-primary, .site-header .nav a.btn-primary:hover { color: var(--white); }
.site-header .brand img { height: 46px; }
/* The account progress bar also uses .bar: keep its height and clipping off the header bar, or the open menu is cut away. */
.site-header .bar { height: auto; overflow: visible; }
.nom-steps { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem; }
.nom-steps li { display: flex; gap: .7rem; align-items: center; background: var(--white); border-radius: 16px; padding: .8rem 1rem; font-size: .92rem; }
.nom-steps b { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: linear-gradient(115deg, #FF5C65, #F53F29); }
@media (max-width: 760px) { .nom-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .nom-steps { grid-template-columns: 1fr; } }
.cta-ask h2 { font-size: var(--step-3); font-weight: 700; margin: 0; color: var(--white); }
.cta-ask p { font-size: var(--step-0); color: var(--white); margin: 0; opacity: 1; }
.cta-ask .cta-contact { font-weight: 700; }
.detail > *, .apply-layout > * { min-width: 0; }
@media (max-width: 860px) {
  .apply-layout { grid-template-columns: minmax(0,1fr); }
  .apply-side { position: static; order: -1; }
  .auth-box .row, #a-form .row { grid-template-columns: 1fr; }
  #apply-app .stepper { overflow-x: auto; }
}
.detail-main { grid-template-columns: minmax(0,1fr); } .detail-main > * { min-width: 0; }
.detail-main > section { grid-template-columns: minmax(0,1fr); } .detail-main > section > * { min-width: 0; } @media (max-width: 560px) { .content-head { flex-wrap: wrap; } }

/* ---------- Profile ---------- */
.avatar { flex: none; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; color: var(--white); font-weight: 700; line-height: 1; background: linear-gradient(135deg, #9655CC, #3B316D); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav a.account { display: inline-flex; align-items: center; gap: .45rem; padding-block: .25rem; }
.account-name { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; }
.my-head .who { display: flex; gap: 1rem; align-items: center; }
.li-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; font-weight: 700; color: #0A66C2; }
.li-link::before { content: "in"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: #0A66C2; color: #fff; font-size: .7rem; font-family: Arial, sans-serif; }
.profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 1.5rem; align-items: start; }
.profile-layout > * { min-width: 0; }
#p-form h2 { font-size: var(--step-1); font-weight: 700; margin: .6rem 0 0; }
#p-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.hint { display: block; font-weight: 400; font-size: .8rem; color: var(--slate-ink, #5B6478); margin-top: .25rem; }
.photo-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.profile-preview { position: sticky; top: 100px; display: grid; gap: 1rem; }
.pc { display: grid; justify-items: center; text-align: center; gap: .35rem; padding: 1.2rem; border-radius: 16px; background: var(--mist); }
.pc b { font-size: var(--step-1); }
.pc p { margin: .3rem 0 0; font-size: .9rem; }
@media (max-width: 860px) {
  .profile-layout { grid-template-columns: minmax(0,1fr); }
  .profile-preview { position: static; order: -1; }
  #p-form .row { grid-template-columns: 1fr; }
  .my-head .who { align-items: flex-start; }
}
@media (max-width: 1100px) { .account-name { display: none; } }

/* ---------- Account (left-hand menu) ---------- */
.acct-section { padding-top: 110px; }
.acct { display: grid; grid-template-columns: minmax(0,1fr) 270px; grid-template-areas: "main side"; gap: 1.5rem; align-items: start; }
.acct-side { grid-area: side; position: sticky; top: 100px; background: var(--white); border-radius: 20px; padding: 1rem; display: grid; gap: .8rem; box-shadow: 0 10px 30px -22px rgba(20,17,42,.5); }
.acct-main { grid-area: main; min-width: 0; display: grid; gap: 1rem; align-content: start; }
.acct-user { display: flex; gap: .7rem; align-items: center; padding: .2rem .2rem .8rem; border-bottom: 1px solid var(--line); }
.acct-user b { display: block; }
.acct-user span { font-size: .8rem; color: var(--ink-2); }
.acct-nav { display: grid; gap: .15rem; }
.acct-nav a, .acct-logout { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .75rem; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.acct-nav a:hover, .acct-logout:hover { background: var(--mist); }
.acct-nav a.open { font-weight: 700; color: var(--navy); }
.acct-nav a[aria-current="page"] { background: var(--navy); color: var(--white); font-weight: 700; }
.acct-nav .count { font-style: normal; font-size: .75rem; min-width: 1.5rem; text-align: center; padding: .05rem .4rem; border-radius: 999px; background: var(--mist); color: var(--navy); }
.acct-nav a[aria-current="page"] .count { background: rgba(255,255,255,.2); color: var(--white); }
.acct-sub { display: grid; gap: .1rem; margin: .1rem .9rem .3rem 0; padding-inline-start: .8rem; border-inline-start: 2px solid var(--mist); margin-inline-start: .9rem; }
.acct-sub a { font-size: .86rem; padding: .4rem .6rem; }
.acct-sub2 { display: grid; gap: .1rem; padding-inline-start: .7rem; margin-bottom: .3rem; }
.acct-sub2 a { font-size: .82rem; padding: .32rem .6rem; color: var(--ink-2); }
.acct-logout { font: inherit; border: 0; background: none; cursor: pointer; color: #B42335; margin-top: .3rem; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; padding-top: .8rem; }
.acct-demo { margin: 0; font-size: .8rem; text-align: center; }
.acct-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.acct-head h1 { font-size: var(--step-3); margin: 0; }
.acct-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .2rem; }
.acct-tabs a { flex: none; padding: .45rem 1rem; border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-size: .9rem; }
.acct-tabs a[aria-current="page"] { background: var(--navy); color: var(--white); font-weight: 700; }
.acct-pane { display: grid; gap: 1rem; }
.acct-pane h2 { font-size: var(--step-1); font-weight: 700; margin: 0; }
.alerts { display: grid; gap: .6rem; }
.alert { display: grid; gap: .15rem; padding: .9rem 1.1rem; border-radius: 14px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .15s; }
.alert:hover { background: var(--mist); }
.alert b { display: flex; align-items: center; gap: .5rem; }
.alert b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); flex: none; }
.alert.warn b::before { background: #F6A82A; }
.alert span { font-size: .88rem; color: var(--ink-2); }
.acct-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; }
.acct-stats > * { display: grid; gap: .2rem; padding: 1rem; border-radius: 14px; background: var(--white); color: var(--ink); text-decoration: none; }
.ref .acct-stats > * { background: var(--mist); }
.acct-stats b { font-size: var(--step-2); color: var(--navy); }
.acct-stats span { font-size: .85rem; color: var(--ink-2); }
.acct-cards { display: grid; gap: .8rem; }
.acct-card { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 1rem; align-items: center; padding: .7rem; border-radius: 16px; background: var(--white); color: var(--ink); text-decoration: none; transition: box-shadow .2s; }
.acct-card:hover { box-shadow: 0 10px 26px -18px rgba(20,17,42,.6); }
.acct-card img { width: 120px; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.acct-card > div { display: grid; gap: .3rem; }
.acct-card.ev { grid-template-columns: 72px minmax(0,1fr); }
.acct-card.ev .date-block { position: static; }
.bar { display: block; height: 6px; border-radius: 6px; background: var(--mist); overflow: hidden; }
.bar.big { height: 10px; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #00A559, #057F70); }
.chip-warn { background: #FFF0D6; color: #8A5300; }
.track.big li { font-size: .85rem; }
.ov { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.ov > div { display: grid; gap: .3rem; padding: 1rem; border-radius: 14px; background: var(--mist); }
.kv { display: grid; grid-template-columns: 10rem 1fr; gap: .5rem 1rem; margin: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 700; }
.acct-table-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.acct-main table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.acct-main th, .acct-main td { text-align: start; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.acct-main th { font-size: .8rem; color: var(--ink-2); font-weight: 700; }
.acct-main tr.hl td { background: #F1ECFA; font-weight: 700; }
.asg-list { display: grid; gap: .7rem; }
.asg { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem; border-radius: 14px; background: var(--mist); }
.asg > div:first-child { display: grid; gap: .25rem; }
.asg-side { display: grid; gap: .5rem; justify-items: end; align-content: start; }
.grade { font-weight: 700; color: #0B6B3D; }
.fb { margin: 0; font-size: .88rem; color: var(--ink-2); }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.files li { display: flex; gap: .8rem; align-items: center; padding: .7rem .9rem; border-radius: 12px; background: var(--mist); }
.files b { flex: 1; font-weight: 400; }
.ext { font-size: .7rem; font-weight: 700; padding: .2rem .45rem; border-radius: 6px; background: var(--navy); color: var(--white); font-family: Arial, sans-serif; }
.receipt { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; padding: 1rem; border-radius: 14px; border: 1px dashed var(--line); }
.receipt > div { display: grid; gap: .2rem; }
.cert { display: grid; gap: 1rem; padding: 1.2rem; border-radius: 18px; background: var(--white); }
.acct-pane .cert { padding: 0; }
.cert-face { display: grid; justify-items: center; gap: .4rem; text-align: center; padding: 2rem 1.5rem; border-radius: 14px; background: linear-gradient(160deg, #F4F0FB, #E4EEEF); border: 1px solid #DCD3EE; }
.cert-face span { font-size: .85rem; color: var(--ink-2); }
.cert-face b { font-size: var(--step-1); max-width: 30rem; }
.cert-face em { font-style: normal; font-size: var(--step-2); color: var(--navy); }
.cert-face small { color: var(--ink-2); }
.ref { display: grid; gap: 1rem; }
.ref p { margin: 0; }
.ref-code { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.ref-code b { font-size: var(--step-2); letter-spacing: .08em; padding: .4rem 1rem; border-radius: 12px; border: 2px dashed var(--navy); color: var(--navy); }
@media (max-width: 900px) {
  .acct { grid-template-columns: minmax(0,1fr); grid-template-areas: "side" "main"; }
  .acct-side { position: static; }
  .acct-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .acct-sub, .acct-sub2, .acct-demo { display: none; }
  .acct-logout { border-top: 0; margin: 0; padding-top: .55rem; }
  .acct-card { grid-template-columns: 84px minmax(0,1fr); }
  .acct-card img { width: 84px; }
  .asg { flex-direction: column; }
  .asg-side { justify-items: start; }
  .kv { grid-template-columns: 1fr; }
}
.auth .side .side-art { object-position: 50% 100%; }
@media (max-width: 760px) { .auth .side { min-height: 600px; } }

.tier-future { margin: .5rem 0 0; font-size: .9rem; color: var(--ink-2); }
.tier-future b { color: var(--navy); }

/* ---------- Profile form: grouped sections, paired names, privacy switch ---------- */
#p-form { display: grid; gap: 1rem; }
.p-sec { background: var(--white); border-radius: 18px; padding: 1.2rem 1.3rem; display: grid; gap: .9rem; }
.p-sec > header { display: flex; gap: .8rem; align-items: flex-start; }
.p-sec h2 { font-size: var(--step-1); font-weight: 700; margin: 0; }
.p-sec header .hint { margin: .15rem 0 0; }
.p-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 700; color: var(--navy); background: var(--mist); }
.photo-row { display: flex; gap: 1rem; align-items: center; }
.photo-actions { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.photo-actions .hint { flex-basis: 100%; margin: 0; }
.names { display: grid; gap: .5rem; }
.names-label { font-weight: 700; font-size: .95rem; }
.name-row { display: grid; grid-template-columns: 3.2rem minmax(0,1fr) auto; gap: .6rem; align-items: center; padding: .35rem .35rem .35rem .7rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.name-row:has(input[type=radio]:checked) { border-color: var(--navy); background: #F4F1FB; }
.name-row > input:not([type=radio]) { border: 0; background: transparent; padding: .5rem .2rem; font: inherit; min-width: 0; }
.name-row > input:not([type=radio]):focus { outline: none; }
.name-row:focus-within { box-shadow: 0 0 0 3px rgba(59,49,109,.15); }
.lang-tag { justify-self: center; font-size: .75rem; font-weight: 700; padding: .2rem .5rem; border-radius: 8px; background: var(--mist); color: var(--navy); }
.show-opt { display: inline-flex; gap: .35rem; align-items: center; font-size: .82rem; font-weight: 400; color: var(--ink-2); padding: .35rem .7rem; border-radius: 999px; background: var(--mist); cursor: pointer; white-space: nowrap; }
.name-row:has(input[type=radio]:checked) .show-opt { background: var(--navy); color: var(--white); }
.show-opt input { accent-color: var(--white); margin: 0; }
.switch { display: flex; gap: .9rem; align-items: flex-start; cursor: pointer; font-weight: 400; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { flex: none; position: relative; width: 46px; height: 26px; border-radius: 999px; background: #CBD3DE; transition: background .2s; margin-top: .1rem; }
.switch .track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start .2s; }
.switch input:checked + .track { background: var(--navy); }
.switch input:checked + .track::after { inset-inline-start: 23px; }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(59,49,109,.3); }
.switch b { display: block; }
.switch .hint { margin-top: .2rem; }
.p-save { position: sticky; bottom: 12px; display: flex; gap: 1rem; align-items: center; justify-content: flex-end; padding: .7rem 1rem; border-radius: 16px; background: rgba(255,255,255,.95); box-shadow: 0 10px 30px -18px rgba(20,17,42,.5); }
.p-save .form-done { margin: 0; }
.pc-hidden .lock { font-size: 1.8rem; }
@media (max-width: 560px) {
  .name-row { grid-template-columns: 2.6rem minmax(0,1fr); }
  .show-opt { grid-column: 1 / -1; justify-self: start; }
  .photo-row { align-items: flex-start; }
}

/* ---------- Referral share buttons ---------- */
.share { display: grid; gap: .7rem; }
.share h3 { margin: 0; font-size: var(--step-0); font-weight: 700; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.share-btn { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-size: .92rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.share-btn:hover { background: var(--mist); }
.share-btn[hidden] { display: none; }
.sh-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--white); }
.sh-ico svg { width: 18px; height: 18px; }
.sh-wa .sh-ico { background: #25D366; }
.sh-x .sh-ico { background: #000; }
.sh-li .sh-ico { background: #0A66C2; }
.sh-mail .sh-ico { background: #E8364F; }
.sh-link .sh-ico, .sh-more .sh-ico { background: var(--navy); }
#p-form .show-opt { display: inline-flex; }
#p-form .switch { display: flex; }
#p-form .file-btn { display: inline-flex; align-items: center; }
.photo-row { flex-wrap: nowrap; }
.photo-actions { flex: 1; min-width: 0; }
.p-sec { border: 1px solid var(--line); }

/* ---------- Standards logos (CPPE accreditation) ---------- */
.std-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.std-logos li { display: grid; gap: .6rem; justify-items: center; align-content: center; padding: 1.2rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--white); text-align: center; }
.std-logos img { height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.std-logos span { font-size: .78rem; color: var(--ink-2); }

/* ---------- Materials: file mockup + description ---------- */
.materials { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.material { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 1.1rem; align-items: start; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.material-body { display: grid; gap: .35rem; }
.material-body b { font-size: 1rem; }
.material-body p { margin: 0; font-size: .9rem; line-height: 1.75; color: var(--ink-2); }
.material-foot { display: flex; gap: .8rem; align-items: center; justify-content: space-between; margin-top: .3rem; flex-wrap: wrap; }
.file-mock { --c: #3B316D; position: relative; display: block; width: 104px; aspect-ratio: 3 / 4; border-radius: 10px; background: #fff; border: 1px solid #DDE3EA; box-shadow: 0 10px 22px -14px rgba(20,17,42,.45), 4px 4px 0 -1px #F1F4F7, 4px 4px 0 0 #DDE3EA; overflow: hidden; }
.file-mock i { font-style: normal; }
.m-lines > i, .m-grid > i, .m-bars > i, .m-stack > i, .m-slide > i { display: block; }
.m-tab { position: absolute; top: 0; inset-inline-start: 0; inset-inline-end: 0; height: 24px; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 .68rem/1 Arial, sans-serif; letter-spacing: .06em; }
.m-lines, .m-grid, .m-slide, .m-stack { position: absolute; inset: 34px 10px 10px; }
.m-lines { display: grid; gap: 6px; align-content: start; }
.m-lines > i { height: 5px; border-radius: 3px; background: #E3E8EE; }
.m-lines > i:nth-child(3n) { width: 70%; }
.m-title { height: 8px !important; width: 60%; border-radius: 3px; background: var(--c) !important; opacity: .55; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; align-content: start; }
.m-grid > i { height: 12px; border-radius: 2px; background: #E3E8EE; }
.m-grid > i:nth-child(-n+3) { background: var(--c); opacity: .45; }
.m-slide { display: grid; gap: 8px; align-content: start; padding: 8px; border-radius: 6px; background: #F4F6F9; }
.m-bars { display: flex; gap: 5px; align-items: flex-end; height: 38px; }
.m-bars > i { flex: 1; border-radius: 2px; background: var(--c); opacity: .5; }
.m-bars > i:nth-child(1) { height: 45%; } .m-bars > i:nth-child(2) { height: 80%; } .m-bars > i:nth-child(3) { height: 60%; }
.m-stack > i { position: absolute; inset-inline-start: 6px; inset-inline-end: 6px; height: 46%; border-radius: 6px; border: 1px solid #DDE3EA; background: #F4F6F9; }
.m-stack > i:nth-child(1) { top: 0; } .m-stack > i:nth-child(2) { top: 18%; background: #EEF1F5; } .m-stack > i:nth-child(3) { top: 36%; background: #fff; border-top: 6px solid var(--c); }
.fm-pdf { --c: #E8364F; } .fm-xlsx { --c: #1E7A46; } .fm-pptx { --c: #D9572B; } .fm-zip { --c: #3B316D; } .fm-docx { --c: #2B5BD9; }
@media (max-width: 520px) {
  .material { grid-template-columns: 76px minmax(0,1fr); gap: .8rem; }
  .file-mock { width: 76px; }
}
.m-slide > .m-bars { display: flex; }
