/* ============================================================================
   Admissions portal - the three designs (Classic, Focused, Campus) and the
   screens every institution gets with them (Arun's design, 2026-11-06).
   Module/Admissions2/design/portal-v2 + PORTAL-DESIGN-PLAN.md.

   Loaded after ink-ledger.css by _layout_admission_portal.cshtml only.

   TWO LAYERS
   1. STRUCTURE for every institution (.ap-portal): the application form one section
      at a time, the review cards, "Application received", the six code boxes. Written
      in Ink & Ledger's own --il-* tokens, so an institution that has published no
      design gets them in today's colours.
   2. A DESIGN (.ap-d, set on <body> only once Portal Setup has published one): maps
      --il-* to the theme's --pd-* tokens, so everything above repaints, and adds each
      design's header, type, corners and enquiry layout.

   Theme colours are GENERATED (bottom of this file) by
   Module/Admissions2/tools/gen_portal_themes.py - edit the generator, not the hexes.
   ============================================================================ */

/* =================================================================== 1. structure */

/* ---------------------------------------------------------------- six code boxes */
.ap-otp6 { display: flex; gap: 10px; }
.ap-otp6-box {
    flex: 1 1 0; min-width: 0; height: 58px;
    text-align: center; font-size: 1.5rem; font-weight: 600;
    font-family: var(--il-mono);
    color: var(--il-ink);
    background: var(--il-surface);
    border: 1px solid var(--il-border);
    border-radius: var(--il-radius-ctl);
    outline: none;
}
.ap-otp6-box:focus { border-color: var(--il-accent); box-shadow: 0 0 0 3px var(--il-focus); }
.ap-otp6.invalid .ap-otp6-box { border-color: var(--il-danger); }
@media (max-width: 759px) { .ap-otp6 { gap: 6px; } .ap-otp6-box { height: 52px; font-size: 1.3rem; } }

/* ---------------------------------------------------------------- application: head */
.ap-apphead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 20px; }
.ap-apphead-tags { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .82rem; color: var(--il-muted); }
.ap-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .74rem; font-weight: 600; letter-spacing: .02em;
    padding: 3px 10px; border-radius: 999px;
    background: var(--il-accent-soft); color: var(--il-accent-ink);
}
.ap-tag.ok { background: var(--il-ok-soft); color: var(--il-ok); }
.ap-tag.bad { background: var(--il-danger-soft); color: var(--il-danger); }
.ap-apphead h1 { font-size: 1.9rem; margin: 0 0 4px; line-height: 1.12; }
.ap-apphead-meta { color: var(--il-muted); font-size: .92rem; }
.ap-backlink-sm { display: inline-flex; gap: 6px; align-items: center; font-size: .84rem; color: var(--il-muted); text-decoration: none; margin-bottom: 10px; }
.ap-backlink-sm:hover { color: var(--il-accent); }

/* ---------------------------------------------------------------- application: rail + section */
.ap-paged { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 991px) { .ap-paged { grid-template-columns: minmax(0, 1fr); } .ap-rail { display: none; } }

.ap-rail {
    position: sticky; top: 16px;
    background: var(--il-surface); border: 1px solid var(--il-border); border-radius: var(--il-radius);
    padding: 18px;
}
.ap-rail-k { font-size: .8rem; color: var(--il-muted); }
.ap-rail-n { font-family: var(--il-font-display); font-size: 1.35rem; font-weight: 600; margin: 2px 0 10px; }
.ap-segs { display: flex; gap: 4px; margin-bottom: 14px; }
.ap-segs i { flex: 1 1 0; height: 4px; border-radius: 2px; background: var(--il-border); cursor: pointer; }
.ap-segs i.done { background: var(--il-ok); }
.ap-segs i.on { background: var(--il-ink); }
.ap-segs i.err { background: var(--il-danger); }
.ap-rail-list { list-style: none; margin: 0; padding: 0; }
.ap-rail-list li a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; margin: 0 -10px;
    border-radius: var(--il-radius-ctl);
    color: var(--il-muted); text-decoration: none; font-size: .9rem; cursor: pointer;
}
.ap-rail-list li a:hover { background: var(--il-head); color: var(--il-ink); }
.ap-rail-list li a.on { background: var(--il-accent-soft); color: var(--il-ink); font-weight: 600; }
.ap-rail-num {
    width: 24px; height: 24px; flex: 0 0 24px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--il-faint); border-radius: 50%;
    font-size: .74rem; font-weight: 600; color: var(--il-muted);
}
.ap-rail-list a.on .ap-rail-num { border-color: var(--il-accent); color: var(--il-accent); }
.ap-rail-list a.done .ap-rail-num { border-color: var(--il-ok); background: var(--il-ok); color: #fff; }
.ap-rail-list a.err .ap-rail-num { border-color: var(--il-danger); color: var(--il-danger); }
.ap-rail-list .t { flex: 1 1 auto; line-height: 1.3; }
.ap-rail-list .e { font-size: .7rem; font-weight: 700; color: var(--il-danger); background: var(--il-danger-soft); border-radius: 999px; padding: 0 7px; }
.ap-rail-help { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--il-border); font-size: .82rem; color: var(--il-muted); }
.ap-rail-help b { display: block; color: var(--il-ink); font-size: .86rem; }
.ap-rail-help a { color: var(--il-ink); font-weight: 600; text-decoration: none; }

/* The phone's version of the rail: tappable segments and a count. */
.ap-mprog {
    display: none;
    background: var(--il-surface); border: 1px solid var(--il-border); border-radius: var(--il-radius);
    padding: 14px 16px; margin-bottom: 14px;
}
.ap-mprog .ap-segs { margin-bottom: 8px; }
.ap-mprog .ap-segs i { height: 6px; }
.ap-mprog-t { font-size: .84rem; color: var(--il-muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
@media (max-width: 991px) { .ap-mprog { display: block; } }

.ap-secwrap {
    background: var(--il-surface); border: 1px solid var(--il-border); border-radius: var(--il-radius);
    padding: 26px 28px 8px;
}
@media (max-width: 759px) { .ap-secwrap { padding: 18px 16px 4px; } }
.ap-seck { font-size: .8rem; color: var(--il-accent-ink); font-weight: 500; }
.ap-sech { font-family: var(--il-font-display); font-size: 1.7rem; margin: 2px 0 6px; line-height: 1.15; }
/* The renderer draws its own card per section; inside the page's card that is a card in a
   card, and the page already shows the section's title. */
.ap-secwrap .card { border: 0 !important; box-shadow: none !important; background: transparent !important; margin: 0 !important; border-radius: 0 !important; }
.ap-secwrap .card-body { padding: 14px 0 0 !important; }
.ap-secwrap .card-title { display: none; }

/* ---------------------------------------------------------------- the action bar */
.ap-bar {
    position: sticky; bottom: 14px; z-index: 30;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 16px;
    background: var(--il-surface); border: 1px solid var(--il-border); border-radius: var(--il-radius);
    box-shadow: var(--il-shadow-pop);
    padding: 10px 12px;
}
.ap-bar-meta { font-size: .8rem; color: var(--il-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; flex: 1 1 auto; }
.ap-bar .btn { white-space: nowrap; }
.ap-bar-back { width: 46px; padding: 0 !important; }
@media (max-width: 759px) {
    .ap-bar { bottom: 8px; }
    .ap-bar .ap-long { display: none; }
    /* One row of buttons on a phone: the "saved" line goes above them. */
    .ap-bar-meta { order: -1; flex-basis: 100%; }
    .ap-bar .btn-info { flex: 1 1 auto; }
}
@media (min-width: 760px) { .ap-bar .ap-short { display: none; } }

/* ---------------------------------------------------------------- review */
.ap-revhead h1 { font-size: 2rem; margin: 6px 0 4px; }
.ap-revcard {
    background: var(--il-surface); border: 1px solid var(--il-border); border-radius: var(--il-radius);
    padding: 22px 26px 10px; margin-bottom: 16px;
}
.ap-revcard.bad { border-top: 3px solid var(--il-danger); }
.ap-revcard-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ap-revcard-h h2 { font-family: var(--il-font-display); font-size: 1.35rem; margin: 0; flex: 1 1 auto; }
.ap-revcard-h a { font-weight: 600; text-decoration: none; color: var(--il-accent); cursor: pointer; }
.ap-revcard .card { border: 0 !important; box-shadow: none !important; background: transparent !important; margin: 0 !important; }
.ap-revcard .card-body { padding: 10px 0 0 !important; }
.ap-revcard .card-title { display: none; }
/* An unanswered required field says "Missing" in the error colour; the renderer's own
   "is required" sentence is what carries it. */
.ap-revcard .adm-has-error .form-control:disabled,
.ap-revcard .adm-has-error .form-select:disabled { display: none; }
.ap-revcard .adm-has-error .text-danger.small { font-size: 1rem !important; margin-top: 0 !important; color: var(--il-danger) !important; }
.ap-revmsg { color: var(--il-danger); font-size: .9rem; margin: 10px 0 0; }

/* ---------------------------------------------------------------- application received */
.ap-recv {
    max-width: 640px; margin: 8px auto 24px;
    background: var(--il-surface); border: 1px solid var(--il-border); border-radius: var(--il-radius);
    padding: 34px 34px 28px;
}
@media (max-width: 759px) { .ap-recv { padding: 24px 18px; } }
.ap-recv-ic {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--il-ok-soft); color: var(--il-ok);
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.ap-recv h1 { font-size: 2.2rem; margin: 6px 0 10px; }
.ap-recv p { color: var(--il-muted); }
.ap-recv p b { color: var(--il-ink); }
.ap-recv-info {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 24px;
    background: var(--il-canvas); border-radius: var(--il-radius-ctl);
    padding: 16px 18px; margin: 18px 0 20px;
}
.ap-recv-info .k { font-size: .8rem; color: var(--il-muted); }
.ap-recv-info .v { font-weight: 600; font-size: 1.02rem; }
.ap-recv-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------------- icons (inline Lucide) */
.ap-ic { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ap-ic.lg { width: 30px; height: 30px; }

/* ================================================================ 2. the designs (.ap-d) */

.ap-portal.ap-d {
    --il-ink: var(--pd-text);
    --il-muted: var(--pd-muted);
    --il-faint: var(--pd-faint);
    --il-canvas: var(--pd-bg);
    --il-surface: var(--pd-card);
    --il-head: var(--pd-tint);
    --il-border: var(--pd-line-soft);
    --il-border-soft: var(--pd-line-soft);
    --il-accent: var(--pd-accent);
    --il-accent-ink: var(--pd-accent-hover);
    --il-accent-soft: var(--pd-accent-soft);
    --il-focus: var(--pd-focus);
    --il-danger: var(--pd-error);
    --il-danger-soft: var(--pd-error-soft);
    --il-danger-line: var(--pd-error);
    --il-ok: var(--pd-ok);
    --il-ok-soft: var(--pd-ok-soft);
    --il-radius: var(--pd-r-card);
    --il-radius-ctl: var(--pd-r);
    --il-shadow: var(--pd-shadow);
    --il-shadow-pop: var(--pd-shadow-lg);
    --il-font-display: var(--pd-font-head);
    --il-font-body: var(--pd-font-body);
    --bs-body-bg: var(--pd-bg);
    --bs-body-color: var(--pd-text);
    --bs-border-color: var(--pd-line-soft);
    --bs-link-color-rgb: initial;

    --pd-w: 1080px;
    background: var(--pd-bg);
    color: var(--pd-text);
    font-family: var(--pd-font-body);
    font-size: 15px;
    line-height: 1.55;
}
.ap-d-classic, .ap-d-focused {
    --pd-font-head: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --pd-font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --pd-head-weight: 800;
    --pd-r: 0px; --pd-r-card: 0px; --pd-r-btn: 0px;
    --pd-input-bg: var(--pd-bg);
    --pd-input-border: var(--pd-line);
    --pd-input-h: 46px;
}
.ap-d-campus {
    --pd-font-head: "Newsreader", Georgia, "Times New Roman", serif;
    --pd-font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    --pd-head-weight: 500;
    --pd-r: 12px; --pd-r-card: 22px; --pd-r-btn: 14px;
    --pd-input-bg: var(--pd-card);
    --pd-input-border: var(--pd-line-strong);
    --pd-input-h: 50px;
    font-size: 16px;
}
.ap-d.pd-narrow.ap-d-focused { --pd-w: 640px; }
.ap-d.pd-narrow.ap-d-campus { --pd-w: 680px; }

.ap-d h1, .ap-d h2, .ap-d h3, .ap-d h4, .ap-d .ap-display, .ap-d .ap-sech, .ap-d .card-title,
.ap-d .ap-rail-n, .ap-d .ap-revcard-h h2 {
    font-family: var(--pd-font-head);
    font-weight: var(--pd-head-weight);
    letter-spacing: -0.015em;
}
.ap-d-campus h1, .ap-d-campus h2 { letter-spacing: -0.02em; }
.ap-d a { color: var(--pd-accent-ink); }
.ap-d a:hover { color: var(--pd-accent); }
.ap-d :focus-visible { outline: 2px solid var(--pd-accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- the page frame */
.pd-main { padding: 0 32px; }
@media (max-width: 759px) { .pd-main { padding: 0 16px; } }
.pd-frame { max-width: var(--pd-w); margin: 0 auto; padding: 32px 0 8px; }
@media (max-width: 759px) { .pd-frame { padding-top: 20px; } }

/* ---------------------------------------------------------------- header */
.ap-hd-ground { --pd-hd-bg: var(--pd-bg); --pd-hd-fg: var(--pd-text); --pd-hd-rule: var(--pd-line); }
.ap-hd-ink { --pd-hd-bg: var(--pd-text); --pd-hd-fg: var(--pd-bg); --pd-hd-rule: var(--pd-accent); }
.ap-hd-accent { --pd-hd-bg: var(--pd-accent); --pd-hd-fg: var(--pd-on-accent); --pd-hd-rule: var(--pd-accent-700); }
.ap-d-campus { --pd-hd-bg: var(--pd-bg); --pd-hd-fg: var(--pd-text); --pd-hd-rule: var(--pd-line); }

.pd-head { background: var(--pd-hd-bg); color: var(--pd-hd-fg); border-bottom: 2px solid var(--pd-hd-rule); padding: 0 32px; position: relative; overflow: hidden; }
.ap-d-campus .pd-head { border-bottom-width: 1px; }
@media (max-width: 759px) { .pd-head { padding: 0 16px; } }
.pd-head-in { max-width: var(--pd-w); margin: 0 auto; position: relative; z-index: 1; }
.pd-idrow { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.pd-logo {
    width: 40px; height: 40px; flex: 0 0 40px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    background: var(--pd-accent); color: var(--pd-on-accent);
    font-weight: 800; font-size: .72rem; letter-spacing: .02em;
    border-radius: 0;
}
.pd-logo.img { background: #fff; }
.pd-logo img { max-width: 34px; max-height: 34px; }
.ap-d-campus .pd-logo { width: 44px; height: 44px; flex-basis: 44px; border-radius: 10px; font-size: .8rem; }
.ap-hd-accent .pd-logo:not(.img) { background: var(--pd-on-accent); color: var(--pd-accent); }
.pd-name { font-family: var(--pd-font-head); font-weight: var(--pd-head-weight); font-size: 1.12rem; line-height: 1.2; }
.ap-d-campus .pd-name { font-size: 1.3rem; font-weight: 600; }
.pd-tag { font-size: .78rem; opacity: .72; margin-top: 1px; }
@media (max-width: 640px) { .ap-d-classic .pd-tag, .ap-d-focused .pd-tag { display: none; } }
.pd-hbtn {
    margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 0 16px; white-space: nowrap;
    font-weight: 700; font-size: .92rem; text-decoration: none;
    color: var(--pd-hd-fg) !important;
    border: 1px solid currentColor; border-radius: var(--pd-r-btn);
    background: transparent;
}
.pd-hbtn:hover { opacity: .85; }
.ap-d-campus .pd-hbtn { border-radius: 999px; border-color: var(--pd-line-strong); background: var(--pd-card); font-weight: 600; }
.ap-d-classic .pd-hbtn.plain, .ap-d-focused .pd-hbtn.plain { border-color: transparent; padding-right: 0; }

/* The band's headline (Classic / Focused landing). */
.pd-hero { padding: 26px 0 34px; position: relative; }
.pd-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: currentColor; opacity: .22; }
.pd-kicker { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-bottom: 8px; }
.pd-hero h1 { font-size: 56px; line-height: 1.04; margin: 0 0 10px; }
.ap-d-focused .pd-hero h1 { font-size: 44px; }
.pd-hero p { margin: 0; font-size: 1.05rem; opacity: .8; max-width: 640px; }
@media (max-width: 759px) {
    .pd-hero h1 { font-size: 36px; }
    .ap-d-focused .pd-hero h1 { font-size: 32px; }
}
/* A campaign banner behind the band - grey, as the Modernist designs show photographs. */
.pd-head.has-photo::after {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background-image: var(--ap-banner); background-size: cover; background-position: center;
    filter: grayscale(1) contrast(1.08); opacity: .18;
}

/* Campus: the photograph and headline open the page itself. */
.pd-chero { margin-bottom: 26px; }
.pd-photo {
    position: relative; border-radius: 24px; overflow: hidden;
    aspect-ratio: 16 / 7; background: var(--pd-tint) center / cover no-repeat;
    background-image: var(--ap-banner);
    margin-bottom: 22px;
}
@media (max-width: 759px) { .pd-photo { aspect-ratio: 16 / 8; border-radius: 18px; } }
.pd-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--pd-card); color: var(--pd-text);
    border-radius: 999px; padding: 6px 14px; font-size: .86rem; font-weight: 500;
    box-shadow: var(--pd-shadow);
}
.pd-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pd-ok); }
.pd-photo .pd-pill { position: absolute; top: 16px; left: 16px; }
.pd-chero h1 { font-size: 52px; line-height: 1.05; margin: 0 0 12px; }
.pd-chero p { font-size: 1.1rem; color: var(--pd-muted); margin: 0; }
.pd-chero .pd-pill { margin-bottom: 16px; }
@media (max-width: 759px) { .pd-chero h1 { font-size: 36px; } .pd-chero p { font-size: 1rem; } }

/* ---------------------------------------------------------------- cards + controls */
.ap-d .card, .pd-card, .ap-d .ap-rail, .ap-d .ap-secwrap, .ap-d .ap-revcard, .ap-d .ap-recv, .ap-d .ap-mprog {
    background: var(--pd-card);
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-r-card);
    box-shadow: var(--pd-shadow);
}
.ap-d-classic .card, .ap-d-focused .card, .ap-d-classic .pd-card, .ap-d-focused .pd-card,
.ap-d-classic .ap-secwrap, .ap-d-focused .ap-secwrap, .ap-d-classic .ap-revcard, .ap-d-focused .ap-revcard,
.ap-d-classic .ap-recv, .ap-d-focused .ap-recv {
    background: var(--pd-surface); border: 0; border-top: 2px solid var(--pd-text); box-shadow: none;
}
.ap-d-classic .ap-revcard.bad, .ap-d-focused .ap-revcard.bad { border-top-color: var(--pd-error); }
.ap-d-classic .ap-rail, .ap-d-focused .ap-rail, .ap-d-classic .ap-mprog, .ap-d-focused .ap-mprog {
    background: transparent; border: 0; box-shadow: none; padding: 0;
}
.ap-d-classic .ap-rail-list li a, .ap-d-focused .ap-rail-list li a { border-radius: 0; border-top: 1px solid var(--pd-line-soft); margin: 0; padding: 12px 12px; }
.ap-d-classic .ap-rail-list li a.on, .ap-d-focused .ap-rail-list li a.on { background: var(--pd-surface); box-shadow: inset 3px 0 0 var(--pd-accent); }
.ap-d-classic .ap-rail-num, .ap-d-focused .ap-rail-num { border: 0; width: 22px; font-variant-numeric: tabular-nums; }
.ap-d-classic .ap-rail-list a.done .ap-rail-num, .ap-d-focused .ap-rail-list a.done .ap-rail-num { background: transparent; color: var(--pd-ok); }
.ap-d-classic .ap-segs i, .ap-d-focused .ap-segs i { border-radius: 0; }
.ap-d-classic .ap-segs i.on, .ap-d-focused .ap-segs i.on { background: var(--pd-text); }

.ap-d .card-body { padding: 24px 28px; }
.pd-card { padding: 32px; }
@media (max-width: 759px) { .pd-card { padding: 20px 16px; } .ap-d .card-body { padding: 18px 16px; } }

.ap-d .form-control, .ap-d .form-select {
    min-height: var(--pd-input-h);
    font-size: 16px;               /* 16px stops iOS zooming into the field */
    color: var(--pd-text);
    background-color: var(--pd-input-bg);
    border: 1px solid var(--pd-input-border);
    border-radius: var(--pd-r);
    padding: 10px 14px;
}
.ap-d-campus .form-control, .ap-d-campus .form-select { border-width: 1.5px; }
.ap-d .form-control:focus, .ap-d .form-select:focus {
    border-color: var(--pd-accent);
    box-shadow: none;
    background-color: var(--pd-input-bg);
    color: var(--pd-text);
}
.ap-d-campus .form-control:focus, .ap-d-campus .form-select:focus { box-shadow: 0 0 0 4px var(--pd-accent-soft); }
.ap-d .form-control::placeholder { color: var(--pd-faint); }
.ap-d .form-control.is-invalid, .ap-d .form-select.is-invalid { border-color: var(--pd-error); background-image: none; }
.ap-d .form-label { font-size: 12.5px; font-weight: 400; color: var(--pd-muted); margin-bottom: 6px; }
.ap-d-campus .form-label { font-size: 14px; font-weight: 600; color: var(--pd-text); }
.ap-d .form-text { color: var(--pd-muted); font-size: .82rem; }
.ap-d .text-danger { color: var(--pd-error) !important; }
.ap-d .ap-field-error { color: var(--pd-error); font-size: .84rem; margin-top: 6px; }
.ap-d .form-check-input { border-color: var(--pd-input-border); background-color: var(--pd-input-bg); }
.ap-d .form-check-input[type=checkbox] { border-radius: 0; }
/* The date field's calendar button (and any other input-group addon). */
.ap-d .input-group-text { background: var(--pd-tint); color: var(--pd-text); border-color: var(--pd-input-border); }
.ap-d-campus .form-check-input[type=checkbox] { border-radius: 6px; }
.ap-d .form-check-input:checked { background-color: var(--pd-accent); border-color: var(--pd-accent); }

.ap-d .btn { border-radius: var(--pd-r-btn); min-height: 46px; font-weight: 700; }
.ap-d-classic .btn, .ap-d-focused .btn { font-family: var(--pd-font-head); font-weight: 800; }
.ap-d .btn-info, .ap-d .pd-btn-primary {
    background: var(--pd-accent); border: 1px solid var(--pd-accent); color: var(--pd-on-accent);
}
.ap-d .btn-info:hover, .ap-d .btn-info:focus, .ap-d .pd-btn-primary:hover { background: var(--pd-accent-hover); border-color: var(--pd-accent-hover); color: var(--pd-on-accent); }
.ap-d .btn-info:active { background: var(--pd-accent-700); }
.ap-d .btn-outline-info, .ap-d .btn-outline-secondary, .ap-d .pd-btn-secondary {
    background: transparent; border: 1px solid var(--pd-line); color: var(--pd-text);
}
.ap-d .btn-outline-info:hover, .ap-d .btn-outline-secondary:hover, .ap-d .pd-btn-secondary:hover { background: var(--pd-tint); color: var(--pd-text); border-color: var(--pd-line); }
.ap-d-campus .btn-outline-info, .ap-d-campus .btn-outline-secondary, .ap-d-campus .pd-btn-secondary { background: var(--pd-card); border-color: var(--pd-line-strong); }
/* A full-width primary in Classic / Focused: the label flush left, an arrow at the end. */
.pd-btn-block { width: 100%; min-height: 50px !important; justify-content: space-between !important; padding: 0 18px !important; }
.ap-d-campus .pd-btn-block { justify-content: center !important; border-radius: var(--pd-r-btn); }
.ap-d-campus .pd-btn-block .ap-ic { display: none; }

/* ---------------------------------------------------------------- enquiry + sign-in page */
.pd-cols { display: flex; flex-direction: column; gap: 24px; }
.ap-d-classic .pd-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: start; }
@media (max-width: 759px) { .ap-d-classic .pd-col-info { order: 2; } }
.pd-lead { font-size: 1.3rem; line-height: 1.45; margin: 0 0 22px; }
.ap-d-focused .pd-lead { font-size: 1.15rem; }
.pd-lead b, .pd-lead strong { font-weight: 800; }
.pd-lead p { margin: 0 0 8px; }
.pd-streams { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px 22px; border-top: 2px solid var(--pd-text); padding-top: 16px; margin-bottom: 18px; }
.pd-stream h3 { font-size: 1rem; margin: 0 0 6px; font-family: var(--pd-font-head); }
.pd-stream div { font-size: .88rem; color: var(--pd-muted); line-height: 1.7; }
.ap-d-campus .pd-streams { border-top: 0; padding-top: 0; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ap-d-campus .pd-stream { background: var(--pd-card); border: 1px solid var(--pd-line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--pd-shadow); }
.ap-d-campus .pd-stream h3 { font-family: var(--pd-font-body); font-weight: 700; font-size: .95rem; }
.ap-d-campus .pd-stream div { display: flex; flex-wrap: wrap; gap: 6px; line-height: 1.2; }
.ap-d-campus .pd-stream span { background: var(--pd-accent-soft); color: var(--pd-accent-ink); border-radius: 999px; padding: 3px 9px; font-size: .78rem; font-weight: 600; }
.ap-d-classic .pd-stream span, .ap-d-focused .pd-stream span { display: block; }
.pd-signin-line { font-size: .95rem; color: var(--pd-muted); margin: 0; }
.pd-signin-line a { font-weight: 600; }

.pd-form h2 { font-size: 1.7rem; margin: 0 0 6px; }
.ap-d-campus .pd-form h2 { font-size: 2rem; }
.pd-sub { color: var(--pd-muted); margin: -2px 0 18px; font-size: .95rem; }
.pd-field { margin-bottom: 18px; }
.pd-req { color: var(--pd-error); }
.pd-tel { display: flex; }
.pd-tel span {
    display: flex; align-items: center; padding: 0 12px;
    background: var(--pd-tint); border: 1px solid var(--pd-input-border); border-right: 0;
    border-radius: var(--pd-r) 0 0 var(--pd-r); color: var(--pd-muted); font-weight: 600;
}
.ap-d-campus .pd-tel span { border-width: 1.5px; }
.pd-tel .form-control { border-radius: 0 var(--pd-r) var(--pd-r) 0; }
.pd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-pill-btn {
    min-height: 44px; padding: 0 16px; cursor: pointer;
    background: var(--pd-input-bg); color: var(--pd-text);
    border: 1px solid var(--pd-input-border); border-radius: var(--pd-r);
    font: inherit; font-size: .92rem;
}
.ap-d-campus .pd-pill-btn { border-radius: 999px; border-width: 1.5px; min-height: 48px; }
.pd-pill-btn.on { background: var(--pd-accent-soft); border-color: var(--pd-accent); color: var(--pd-accent-ink); font-weight: 600; }
.ap-d-classic .pd-pill-btn.on, .ap-d-focused .pd-pill-btn.on { background: var(--pd-accent); color: var(--pd-on-accent); }
.pd-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 4px 0 6px; cursor: pointer; }
.pd-consent .form-check-input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; }
.pd-lock { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--pd-muted); font-size: .84rem; margin-top: 12px; }
.pd-lock .ap-ic { width: 15px; height: 15px; }
.pd-resend { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .88rem; color: var(--pd-muted); margin-top: 14px; }
.pd-note-ok {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--pd-ok-soft); color: var(--pd-text);
    border-radius: var(--pd-r-card); padding: 14px 16px; margin-bottom: 20px;
}
.ap-d-campus .pd-note-ok { border-radius: 16px; }
.pd-note-ok .ap-ic { color: var(--pd-ok); margin-top: 2px; }
.pd-note-ok div { flex: 1 1 auto; }
.pd-note-ok button { border: 0; background: transparent; color: var(--pd-muted); padding: 0 4px; cursor: pointer; }
.pd-preview-note { font-size: .84rem; color: var(--pd-muted); text-align: center; margin-top: 10px; }

/* The three steps: a kicker (Classic), bars (Focused), circles (Campus). */
.pd-stepk { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--pd-accent-ink); margin-bottom: 6px; }
.pd-steps { display: none; list-style: none; padding: 0; margin: 0 0 22px; }
.ap-d-focused .pd-stepk, .ap-d-campus .pd-stepk { display: none; }
.ap-d-focused .pd-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ap-d-focused .pd-steps li { border-top: 4px solid var(--pd-line-soft); padding-top: 8px; font-size: .8rem; color: var(--pd-muted); }
.ap-d-focused .pd-steps li.on, .ap-d-focused .pd-steps li.done { border-top-color: var(--pd-accent); color: var(--pd-text); font-weight: 600; }
.ap-d-focused .pd-steps .n::before { content: "0"; }
.ap-d-focused .pd-steps .n::after { content: "\00a0\00b7\00a0"; }
.ap-d-campus .pd-steps { display: flex; align-items: center; gap: 10px; }
.ap-d-campus .pd-steps li { display: flex; align-items: center; gap: 8px; color: var(--pd-muted); font-size: .92rem; flex: 1 1 auto; }
.ap-d-campus .pd-steps li:last-child { flex: 0 0 auto; }
.ap-d-campus .pd-steps li:not(:last-child)::after { content: ""; flex: 1 1 auto; height: 2px; background: var(--pd-line); margin-left: 4px; }
.ap-d-campus .pd-steps li.done:not(:last-child)::after { background: var(--pd-accent); }
.ap-d-campus .pd-steps .n {
    width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--pd-line-strong); font-size: .82rem; font-weight: 600;
}
.ap-d-campus .pd-steps li.on { color: var(--pd-text); font-weight: 600; }
.ap-d-campus .pd-steps li.on .n { border: 2px solid var(--pd-accent); color: var(--pd-accent); }
.ap-d-campus .pd-steps li.done .n { background: var(--pd-accent); border-color: var(--pd-accent); color: var(--pd-on-accent); font-size: 0; }
.ap-d-campus .pd-steps li.done .n::before { content: "\2713"; font-size: .85rem; }
@media (max-width: 759px) { .ap-d-campus .pd-steps li:not(.on) .t { display: none; } }

/* Thank you. */
.pd-done-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--pd-ok-soft); color: var(--pd-ok); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.ap-d-classic .pd-done-ic, .ap-d-focused .pd-done-ic { border-radius: 0; }
.pd-ready { background: var(--pd-tint); border-radius: var(--pd-r); padding: 14px 16px; margin: 0 0 18px; font-size: .92rem; }
.pd-ready ul { margin: 8px 0 0; padding-left: 20px; }
.pd-actions { display: flex; flex-direction: column; gap: 10px; }

/* Landing (sign in + open admissions). */
.pd-camp { padding: 22px 24px; margin-bottom: 14px; }
.pd-camp h2 { font-size: 1.3rem; margin: 0; }
.pd-camp-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.pd-classes { margin-top: 10px; font-size: .9rem; color: var(--pd-muted); }

/* ---------------------------------------------------------------- application pages */
.ap-d .ap-apphead h1 { font-size: 40px; }
.ap-d-campus .ap-apphead h1 { font-size: 44px; }
@media (max-width: 759px) { .ap-d .ap-apphead h1, .ap-d-campus .ap-apphead h1 { font-size: 30px; } }
.ap-d-classic .ap-apphead, .ap-d-focused .ap-apphead { border-bottom: 2px solid var(--pd-text); padding-bottom: 20px; }
.ap-d-classic .ap-tag, .ap-d-focused .ap-tag { border-radius: 0; }
.ap-d-campus .ap-paged { grid-template-columns: 280px minmax(0, 1fr); }
.ap-d-classic .ap-paged, .ap-d-focused .ap-paged { grid-template-columns: 250px minmax(0, 1fr); }
@media (max-width: 991px) { .ap-d .ap-paged { grid-template-columns: minmax(0, 1fr) !important; } }
.ap-d .ap-sech { font-size: 32px; }
.ap-d-classic .ap-seck, .ap-d-focused .ap-seck { letter-spacing: .08em; color: var(--pd-accent-ink); }
.ap-d .ap-bar { border-radius: 18px; }
.ap-d-classic .ap-bar, .ap-d-focused .ap-bar { border-radius: 0; border: 0; border-top: 2px solid var(--pd-text); background: var(--pd-bg); bottom: 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .06); }
.ap-d .ap-revhead h1 { font-size: 44px; }
.ap-d .ap-recv h1 { font-size: 42px; }
@media (max-width: 759px) { .ap-d .ap-revhead h1, .ap-d .ap-recv h1 { font-size: 32px; } }
.ap-d-classic .ap-recv-ic, .ap-d-focused .ap-recv-ic { border-radius: 0; }
.ap-d .ap-recv-info { background: var(--pd-tint); }
.ap-d .ap-otp6-box { background: var(--pd-input-bg); border-color: var(--pd-input-border); border-radius: var(--pd-r); height: 60px; font-family: var(--pd-font-body); }
.ap-d-campus .ap-otp6-box { border-width: 1.5px; }
.ap-d .ap-otp6-box:focus { border-color: var(--pd-accent); box-shadow: 0 0 0 4px var(--pd-accent-soft); }

/* Footer. */
.ap-d .ap-footer { color: var(--pd-muted); border-top: 1px solid var(--pd-line-soft); margin-top: 32px; }
.ap-d .ap-footer-school { color: var(--pd-text); font-family: var(--pd-font-head); font-weight: var(--pd-head-weight); }
.pd-powered { font-size: .78rem; color: var(--pd-muted); margin-top: 6px; }
.pd-powered a { color: var(--pd-muted); }

/* Bootstrap's alerts and toasts inherit the theme rather than their own blue. */
.ap-d .alert-danger { background: var(--pd-error-soft); color: var(--pd-error); border-color: transparent; border-radius: var(--pd-r); }
.ap-d .ap-testbar, .ap-d .ap-agenote, .ap-d .ap-review-note { border-radius: var(--pd-r); }

/* Dark themes: images and the white logo tile keep their own colours. */
.ap-d .ap-flat .form-control:disabled, .ap-d .ap-flat .form-select:disabled { color: var(--pd-text); -webkit-text-fill-color: var(--pd-text); }

/* ================================================================ 3. theme colours */
/* ===== GENERATED by Module/Admissions2/tools/gen_portal_themes.py - do not edit by hand ===== */
.ap-d-classic.ap-th-signal, .ap-d-focused.ap-th-signal, .pd-sw.ap-d-classic.ap-th-signal, .pd-sw.ap-d-focused.ap-th-signal {
    --pd-accent: #ec3013;
    --pd-accent-hover: #be250d;
    --pd-accent-soft: #ffede9;
    --pd-accent-ink: #871706;
    --pd-accent-100: #ffede9;
    --pd-accent-200: #ffdbd3;
    --pd-accent-600: #be250d;
    --pd-accent-700: #871706;
    --pd-accent-800: #560b02;
    --pd-on-accent: #ffffff;
    --pd-bg: #f3f2f2;
    --pd-surface: #eae9e9;
    --pd-card: #eae9e9;
    --pd-text: #201e1d;
    --pd-muted: #545251;
    --pd-faint: #858483;
    --pd-tint: #e5e4e3;
    --pd-line: rgba(32, 30, 29, 0.4);
    --pd-line-soft: rgba(32, 30, 29, 0.16);
    --pd-line-strong: rgba(32, 30, 29, 0.4);
    --pd-error: #871706;
    --pd-error-soft: #f7ded9;
    --pd-ok: #17804f;
    --pd-ok-soft: #d7e2da;
    --pd-focus: rgba(236, 48, 19, 0.3);
    --pd-shadow: none;
    --pd-shadow-lg: 0 12px 32px rgba(32, 30, 29, 0.22);
    color-scheme: light;
}
.ap-d-classic.ap-th-cobalt, .ap-d-focused.ap-th-cobalt, .pd-sw.ap-d-classic.ap-th-cobalt, .pd-sw.ap-d-focused.ap-th-cobalt {
    --pd-accent: #2147d0;
    --pd-accent-hover: #1837a7;
    --pd-accent-soft: #e7eefc;
    --pd-accent-ink: #0e2576;
    --pd-accent-100: #e7eefc;
    --pd-accent-200: #cfdcf9;
    --pd-accent-600: #1837a7;
    --pd-accent-700: #0e2576;
    --pd-accent-800: #06144b;
    --pd-on-accent: #ffffff;
    --pd-bg: #f2f3f5;
    --pd-surface: #e7e9ee;
    --pd-card: #e7e9ee;
    --pd-text: #1a1d26;
    --pd-muted: #4f515a;
    --pd-faint: #81848a;
    --pd-tint: #e3e4e7;
    --pd-line: rgba(26, 29, 38, 0.4);
    --pd-line-soft: rgba(26, 29, 38, 0.16);
    --pd-line-strong: rgba(26, 29, 38, 0.4);
    --pd-error: #0e2576;
    --pd-error-soft: #d7e0f3;
    --pd-ok: #17804f;
    --pd-ok-soft: #d6e3dc;
    --pd-focus: rgba(33, 71, 208, 0.3);
    --pd-shadow: none;
    --pd-shadow-lg: 0 12px 32px rgba(26, 29, 38, 0.22);
    color-scheme: light;
}
.ap-d-classic.ap-th-evergreen, .ap-d-focused.ap-th-evergreen, .pd-sw.ap-d-classic.ap-th-evergreen, .pd-sw.ap-d-focused.ap-th-evergreen {
    --pd-accent: #0d7a53;
    --pd-accent-hover: #086141;
    --pd-accent-soft: #e9f1ed;
    --pd-accent-ink: #04432c;
    --pd-accent-100: #e9f1ed;
    --pd-accent-200: #d3e4da;
    --pd-accent-600: #086141;
    --pd-accent-700: #04432c;
    --pd-accent-800: #012819;
    --pd-on-accent: #ffffff;
    --pd-bg: #f1f3f1;
    --pd-surface: #e5e9e6;
    --pd-card: #e5e9e6;
    --pd-text: #1a201d;
    --pd-muted: #4e5451;
    --pd-faint: #818583;
    --pd-tint: #e2e5e3;
    --pd-line: rgba(26, 32, 29, 0.4);
    --pd-line-soft: rgba(26, 32, 29, 0.16);
    --pd-line-strong: rgba(26, 32, 29, 0.4);
    --pd-error: #04432c;
    --pd-error-soft: #d8e4dd;
    --pd-ok: #17804f;
    --pd-ok-soft: #d5e3d9;
    --pd-focus: rgba(13, 122, 83, 0.3);
    --pd-shadow: none;
    --pd-shadow-lg: 0 12px 32px rgba(26, 32, 29, 0.22);
    color-scheme: light;
}
.ap-d-classic.ap-th-marigold, .ap-d-focused.ap-th-marigold, .pd-sw.ap-d-classic.ap-th-marigold, .pd-sw.ap-d-focused.ap-th-marigold {
    --pd-accent: #b45500;
    --pd-accent-hover: #904300;
    --pd-accent-soft: #f9eee8;
    --pd-accent-ink: #652d00;
    --pd-accent-100: #f9eee8;
    --pd-accent-200: #f3ddd1;
    --pd-accent-600: #904300;
    --pd-accent-700: #652d00;
    --pd-accent-800: #3f1a00;
    --pd-on-accent: #ffffff;
    --pd-bg: #f5f2ee;
    --pd-surface: #ebe6df;
    --pd-card: #ebe6df;
    --pd-text: #231e18;
    --pd-muted: #57524c;
    --pd-faint: #88847e;
    --pd-tint: #e7e4df;
    --pd-line: rgba(35, 30, 24, 0.4);
    --pd-line-soft: rgba(35, 30, 24, 0.16);
    --pd-line-strong: rgba(35, 30, 24, 0.4);
    --pd-error: #652d00;
    --pd-error-soft: #efdfd4;
    --pd-ok: #17804f;
    --pd-ok-soft: #d9e2d6;
    --pd-focus: rgba(180, 85, 0, 0.3);
    --pd-shadow: none;
    --pd-shadow-lg: 0 12px 32px rgba(35, 30, 24, 0.22);
    color-scheme: light;
}
.ap-d-classic.ap-th-aubergine, .ap-d-focused.ap-th-aubergine, .pd-sw.ap-d-classic.ap-th-aubergine, .pd-sw.ap-d-focused.ap-th-aubergine {
    --pd-accent: #6a2c9e;
    --pd-accent-hover: #54217e;
    --pd-accent-soft: #efeaf6;
    --pd-accent-ink: #391458;
    --pd-accent-100: #efeaf6;
    --pd-accent-200: #dfd5ed;
    --pd-accent-600: #54217e;
    --pd-accent-700: #391458;
    --pd-accent-800: #220937;
    --pd-on-accent: #ffffff;
    --pd-bg: #f3f2f5;
    --pd-surface: #e8e6ee;
    --pd-card: #e8e6ee;
    --pd-text: #1f1b26;
    --pd-muted: #53505a;
    --pd-faint: #85828a;
    --pd-tint: #e5e3e7;
    --pd-line: rgba(31, 27, 38, 0.4);
    --pd-line-soft: rgba(31, 27, 38, 0.16);
    --pd-line-strong: rgba(31, 27, 38, 0.4);
    --pd-error: #391458;
    --pd-error-soft: #e1daec;
    --pd-ok: #17804f;
    --pd-ok-soft: #d7e2dc;
    --pd-focus: rgba(106, 44, 158, 0.3);
    --pd-shadow: none;
    --pd-shadow-lg: 0 12px 32px rgba(31, 27, 38, 0.22);
    color-scheme: light;
}
.ap-d-classic.ap-th-graphite, .ap-d-focused.ap-th-graphite, .pd-sw.ap-d-classic.ap-th-graphite, .pd-sw.ap-d-focused.ap-th-graphite {
    --pd-accent: #ff5a3c;
    --pd-accent-hover: #ff785d;
    --pd-accent-soft: #2a1d19;
    --pd-accent-ink: #ff5a3c;
    --pd-accent-100: #2a1d19;
    --pd-accent-200: #3f241e;
    --pd-accent-600: #ff785d;
    --pd-accent-700: #ff9982;
    --pd-accent-800: #ffb6a4;
    --pd-on-accent: #161514;
    --pd-bg: #161514;
    --pd-surface: #211f1e;
    --pd-card: #211f1e;
    --pd-text: #f1eeec;
    --pd-muted: #acaaa8;
    --pd-faint: #757472;
    --pd-tint: #211f1e;
    --pd-line: rgba(241, 238, 236, 0.4);
    --pd-line-soft: rgba(241, 238, 236, 0.16);
    --pd-line-strong: rgba(241, 238, 236, 0.4);
    --pd-error: #ff9982;
    --pd-error-soft: #2e1e1a;
    --pd-ok: #6fd3a1;
    --pd-ok-soft: #1b221c;
    --pd-focus: rgba(255, 90, 60, 0.3);
    --pd-shadow: none;
    --pd-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.22);
    color-scheme: dark;
}
.ap-d-campus.ap-th-scholar, .pd-sw.ap-d-campus.ap-th-scholar {
    --pd-accent: #2f4bb8;
    --pd-accent-hover: #22378c;
    --pd-accent-soft: #e8edf9;
    --pd-accent-ink: #2c46a7;
    --pd-accent-100: #e8edf9;
    --pd-accent-200: #d1dbf3;
    --pd-accent-600: #22378c;
    --pd-accent-700: #2c46a7;
    --pd-accent-800: #2c46a7;
    --pd-on-accent: #ffffff;
    --pd-bg: #f6f4ef;
    --pd-surface: #ffffff;
    --pd-card: #ffffff;
    --pd-text: #1b2132;
    --pd-muted: #595d6a;
    --pd-faint: #8b8d95;
    --pd-tint: #eae8e5;
    --pd-line: #e3e4e6;
    --pd-line-soft: #ededef;
    --pd-line-strong: #c2c4c9;
    --pd-error: #b42318;
    --pd-error-soft: #fdecea;
    --pd-ok: #17804f;
    --pd-ok-soft: #e3f4ea;
    --pd-focus: #e8edf9;
    --pd-shadow: 0 1px 2px rgba(27, 33, 50, 0.06), 0 10px 30px rgba(27, 33, 50, 0.07);
    --pd-shadow-lg: 0 12px 40px rgba(27, 33, 50, 0.14);
    color-scheme: light;
}
.ap-d-campus.ap-th-ivy, .pd-sw.ap-d-campus.ap-th-ivy {
    --pd-accent: #1d6b4e;
    --pd-accent-hover: #14503a;
    --pd-accent-soft: #e8efec;
    --pd-accent-ink: #1e6248;
    --pd-accent-100: #e8efec;
    --pd-accent-200: #d2e0d9;
    --pd-accent-600: #14503a;
    --pd-accent-700: #1e6248;
    --pd-accent-800: #1e6248;
    --pd-on-accent: #ffffff;
    --pd-bg: #f3f5f0;
    --pd-surface: #ffffff;
    --pd-card: #ffffff;
    --pd-text: #17231d;
    --pd-muted: #555f59;
    --pd-faint: #878f89;
    --pd-tint: #e6e9e4;
    --pd-line: #e2e4e3;
    --pd-line-soft: #edeeed;
    --pd-line-strong: #c1c4c2;
    --pd-error: #b42318;
    --pd-error-soft: #fdecea;
    --pd-ok: #17804f;
    --pd-ok-soft: #e3f4ea;
    --pd-focus: #e8efec;
    --pd-shadow: 0 1px 2px rgba(23, 35, 29, 0.06), 0 10px 30px rgba(23, 35, 29, 0.07);
    --pd-shadow-lg: 0 12px 40px rgba(23, 35, 29, 0.14);
    color-scheme: light;
}
.ap-d-campus.ap-th-maroon, .pd-sw.ap-d-campus.ap-th-maroon {
    --pd-accent: #8a1c2b;
    --pd-accent-hover: #69131e;
    --pd-accent-soft: #f5e8e8;
    --pd-accent-ink: #7e1e29;
    --pd-accent-100: #f5e8e8;
    --pd-accent-200: #ebd2d1;
    --pd-accent-600: #69131e;
    --pd-accent-700: #7e1e29;
    --pd-accent-800: #7e1e29;
    --pd-on-accent: #ffffff;
    --pd-bg: #f8f4f1;
    --pd-surface: #ffffff;
    --pd-card: #ffffff;
    --pd-text: #2a1a1c;
    --pd-muted: #665858;
    --pd-faint: #958989;
    --pd-tint: #ede8e5;
    --pd-line: #e5e2e3;
    --pd-line-soft: #eeeded;
    --pd-line-strong: #c7c2c2;
    --pd-error: #b42318;
    --pd-error-soft: #fdecea;
    --pd-ok: #17804f;
    --pd-ok-soft: #e3f4ea;
    --pd-focus: #f5e8e8;
    --pd-shadow: 0 1px 2px rgba(42, 26, 28, 0.06), 0 10px 30px rgba(42, 26, 28, 0.07);
    --pd-shadow-lg: 0 12px 40px rgba(42, 26, 28, 0.14);
    color-scheme: light;
}
.ap-d-campus.ap-th-saffron, .pd-sw.ap-d-campus.ap-th-saffron {
    --pd-accent: #b4530b;
    --pd-accent-hover: #893e06;
    --pd-accent-soft: #f9eee8;
    --pd-accent-ink: #a24d11;
    --pd-accent-100: #f9eee8;
    --pd-accent-200: #f3dcd1;
    --pd-accent-600: #893e06;
    --pd-accent-700: #a24d11;
    --pd-accent-800: #a24d11;
    --pd-on-accent: #ffffff;
    --pd-bg: #fbf6ee;
    --pd-surface: #ffffff;
    --pd-card: #ffffff;
    --pd-text: #2a1f14;
    --pd-muted: #665c51;
    --pd-faint: #968d83;
    --pd-tint: #efeae2;
    --pd-line: #e5e3e2;
    --pd-line-soft: #eeedec;
    --pd-line-strong: #c7c3c0;
    --pd-error: #b42318;
    --pd-error-soft: #fdecea;
    --pd-ok: #17804f;
    --pd-ok-soft: #e3f4ea;
    --pd-focus: #f9eee8;
    --pd-shadow: 0 1px 2px rgba(42, 31, 20, 0.06), 0 10px 30px rgba(42, 31, 20, 0.07);
    --pd-shadow-lg: 0 12px 40px rgba(42, 31, 20, 0.14);
    color-scheme: light;
}
.ap-d-campus.ap-th-violet, .pd-sw.ap-d-campus.ap-th-violet {
    --pd-accent: #5b3aa6;
    --pd-accent-hover: #442a7e;
    --pd-accent-soft: #edebf7;
    --pd-accent-ink: #533796;
    --pd-accent-100: #edebf7;
    --pd-accent-200: #dbd7ef;
    --pd-accent-600: #442a7e;
    --pd-accent-700: #533796;
    --pd-accent-800: #533796;
    --pd-on-accent: #ffffff;
    --pd-bg: #f6f4f9;
    --pd-surface: #ffffff;
    --pd-card: #ffffff;
    --pd-text: #1f1a2c;
    --pd-muted: #5c5867;
    --pd-faint: #8d8996;
    --pd-tint: #eae8ee;
    --pd-line: #e3e2e5;
    --pd-line-soft: #ededef;
    --pd-line-strong: #c3c2c8;
    --pd-error: #b42318;
    --pd-error-soft: #fdecea;
    --pd-ok: #17804f;
    --pd-ok-soft: #e3f4ea;
    --pd-focus: #edebf7;
    --pd-shadow: 0 1px 2px rgba(31, 26, 44, 0.06), 0 10px 30px rgba(31, 26, 44, 0.07);
    --pd-shadow-lg: 0 12px 40px rgba(31, 26, 44, 0.14);
    color-scheme: light;
}
.ap-d-campus.ap-th-night, .pd-sw.ap-d-campus.ap-th-night {
    --pd-accent: #9db0ff;
    --pd-accent-hover: #aebfff;
    --pd-accent-soft: #30364a;
    --pd-accent-ink: #9db0ff;
    --pd-accent-100: #30364a;
    --pd-accent-200: #32394e;
    --pd-accent-600: #aebfff;
    --pd-accent-700: #9db0ff;
    --pd-accent-800: #9db0ff;
    --pd-on-accent: #12151c;
    --pd-bg: #12151c;
    --pd-surface: #1b1f29;
    --pd-card: #1b1f29;
    --pd-text: #eef0f5;
    --pd-muted: #9fa2a8;
    --pd-faint: #6b6e75;
    --pd-tint: #1b1e25;
    --pd-line: #2e323c;
    --pd-line-soft: #272b35;
    --pd-line-strong: #474b54;
    --pd-error: #ff8a80;
    --pd-error-soft: #3a1d1d;
    --pd-ok: #6fd3a1;
    --pd-ok-soft: #16332a;
    --pd-focus: #30364a;
    --pd-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.07);
    --pd-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.14);
    color-scheme: dark;
}
/* ===== END GENERATED ===== */

/* ---------------------------------------------------------------- Portal Setup swatches
   The admin screen draws each theme as a small sample wearing the SAME classes, so the
   swatch is painted by the generated block above and cannot drift from the portal. */
.pd-sw { background: var(--pd-bg); color: var(--pd-text); border: 1px solid var(--pd-line); display: flex; flex-direction: column; overflow: hidden; }
.pd-sw-band { height: 14px; background: var(--pd-text); border-bottom: 2px solid var(--pd-accent); }
.pd-sw.ap-d-campus .pd-sw-band { background: var(--pd-bg); border-bottom: 1px solid var(--pd-line); }
.pd-sw-body { padding: 8px; display: flex; gap: 6px; align-items: center; }
.pd-sw-dot { width: 16px; height: 16px; background: var(--pd-accent); }
.pd-sw.ap-d-campus .pd-sw-dot { border-radius: 50%; }
.pd-sw-line { flex: 1 1 auto; height: 6px; background: var(--pd-surface); border: 1px solid var(--pd-line-soft); }
