/* CoolPath Discovery — app shell + components
   Default theme: navy #0A2E45, accent #F2A541. An organisation's brand overrides the --cp-* variables (see includes/tenant.php).
*/

:root {
    --cp-navy: #0A2E45;
    --cp-navy-deep: #071F30;
    --cp-card: #123B57;
    --cp-card-hi: #16456A;
    --cp-orange: #F2A541;
    --cp-orange-hi: #FFB55C;
    --cp-orange-a08: rgba(242, 165, 65, 0.08);
    --cp-orange-a10: rgba(242, 165, 65, 0.1);
    --cp-orange-a12: rgba(242, 165, 65, 0.12);
    --cp-orange-a15: rgba(242, 165, 65, 0.15);
    --cp-orange-a30: rgba(242, 165, 65, 0.3);
    --cp-orange-a40: rgba(242, 165, 65, 0.4);
    --cp-orange-a50: rgba(242, 165, 65, 0.5);
    --cp-text: #FFFFFF;
    --cp-text-muted: rgba(255, 255, 255, 0.68);
    --cp-border: rgba(255, 255, 255, 0.12);
    --cp-success: #4CAF7D;
    --cp-danger: #E4634C;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    background: var(--cp-navy);
}

body {
    margin: 0;
    font-family: 'DM Sans', Arial, sans-serif;
    color: var(--cp-text);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.app-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--cp-navy);
    position: relative;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    padding-top: max(14px, env(safe-area-inset-top));
    position: sticky;
    top: 0;
    background: var(--cp-navy);
    z-index: 20;
    border-bottom: 1px solid var(--cp-border);
}

.app-topbar-title {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cp-text-muted);
    flex: 1;
    text-align: center;
}

.app-back, .app-back-spacer {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.app-back {
    color: var(--cp-text);
    background: rgba(255, 255, 255, 0.06);
}

.app-content {
    flex: 1;
    padding: 20px 20px 32px;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
}

/* ---- Typography ---- */
h1.cp-h1 { font-size: 26px; font-weight: 800; line-height: 1.25; margin: 0 0 8px; }
h2.cp-h2 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; }
p.cp-muted { color: var(--cp-text-muted); font-size: 14.5px; line-height: 1.55; margin: 0 0 16px; }
.cp-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cp-orange);
    margin-bottom: 6px;
    display: block;
}

/* ---- Buttons ---- */
.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: transform .08s ease, opacity .15s ease;
}
.cp-btn:active { transform: scale(0.98); }
.cp-btn-primary { background: var(--cp-orange); color: var(--cp-navy-deep); }
.cp-btn-primary:hover { background: var(--cp-orange-hi); color: var(--cp-navy-deep); }
.cp-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.cp-btn-ghost { background: rgba(255,255,255,0.08); color: var(--cp-text); }
.cp-btn-ghost:hover { background: rgba(255,255,255,0.14); color: var(--cp-text); }

.cp-btn-fixed {
    position: sticky;
    bottom: 0;
    padding-top: 14px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, var(--cp-navy) 30%);
    margin-top: auto;
}

/* ---- Cards ---- */
.cp-card {
    background: var(--cp-card);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
    border: 1px solid var(--cp-border);
}

.cp-module-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
}

.cp-module-card.is-locked { opacity: 0.5; }

.cp-module-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 12px;
    background: var(--cp-orange-a15);
    color: var(--cp-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.cp-module-body { flex: 1; min-width: 0; }
.cp-module-title { font-weight: 700; font-size: 15.5px; margin-bottom: 2px; }
.cp-module-meta { font-size: 13px; color: var(--cp-text-muted); }

.cp-progress-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
    margin-top: 8px;
}
.cp-progress-fill {
    height: 100%;
    background: var(--cp-orange);
    border-radius: 3px;
    transition: width .3s ease;
}

/* ---- Unit list rows ---- */
.cp-unit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--cp-border);
}
.cp-unit-row:last-child { border-bottom: none; }

.cp-unit-num {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--cp-text-muted);
}
.cp-unit-row.is-complete .cp-unit-num { background: var(--cp-success); color: #fff; }
.cp-unit-row.is-in_progress .cp-unit-num { background: var(--cp-orange); color: var(--cp-navy-deep); }
.cp-unit-row.is-locked { opacity: 0.45; }

.cp-unit-title { font-weight: 600; font-size: 14.5px; }
.cp-unit-sub { font-size: 12.5px; color: var(--cp-text-muted); }

/* ---- Quick check-in ---- */
.cp-checkin {
    background: var(--cp-orange-a08);
    border: 1px solid var(--cp-orange-a30);
    border-radius: 14px;
    padding: 16px;
    margin-top: 4px;
}
.cp-checkin > label[for] {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cp-orange);
    display: block;
    margin-bottom: 8px;
}
.cp-checkin textarea {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--cp-border);
    border-radius: 10px;
    color: var(--cp-text);
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14.5px;
    resize: vertical;
}
.cp-checkin textarea:focus { outline: none; border-color: var(--cp-orange); }

/* ---- Quiz ---- */
.cp-quiz-option {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--cp-card);
    border: 1px solid var(--cp-border);
    border-radius: 12px;
    padding: 13px 16px;
    margin-bottom: 10px;
    color: var(--cp-text);
    font-size: 14.5px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.cp-quiz-option:hover { border-color: var(--cp-orange-a50); }
.cp-quiz-option.selected { border-color: var(--cp-orange); background: var(--cp-orange-a10); }
.cp-quiz-option.correct { border-color: var(--cp-success); background: rgba(76,175,125,0.15); }
.cp-quiz-option.incorrect { border-color: var(--cp-danger); background: rgba(228,99,76,0.15); }
.cp-quiz-option-letter {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    margin-right: 10px;
}

.cp-feedback { font-size: 14px; margin-top: 10px; padding: 12px 14px; border-radius: 10px; }
.cp-feedback.correct { background: rgba(76,175,125,0.15); color: #A8E6C4; }
.cp-feedback.incorrect { background: rgba(228,99,76,0.15); color: #F7C2B8; }

/* ---- Unit screen steps ---- */
.cp-step { display: none; }
.cp-step.active { display: flex; flex-direction: column; min-height: calc(100vh - 130px); }

/* ---- Auth ---- */
.cp-auth-wrap { padding-top: 40px; }
.cp-logo { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.cp-logo span { color: var(--cp-orange); }
.cp-form-group { margin-bottom: 14px; }
.cp-form-group label { font-size: 13px; font-weight: 600; color: var(--cp-text-muted); display: block; margin-bottom: 6px; }
.cp-form-group input {
    width: 100%;
    background: var(--cp-card);
    border: 1px solid var(--cp-border);
    border-radius: 12px;
    color: var(--cp-text);
    padding: 12px 14px;
    font-size: 15px;
}
.cp-form-group input:focus { outline: none; border-color: var(--cp-orange); }
.cp-alert {
    background: rgba(228,99,76,0.15);
    border: 1px solid rgba(228,99,76,0.4);
    color: #F7C2B8;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}
.cp-switch-link { text-align: center; margin-top: 18px; font-size: 14px; color: var(--cp-text-muted); }
.cp-switch-link a { color: var(--cp-orange); font-weight: 700; }

/* ---- Completion / certificate ---- */
.cp-complete-badge {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(76,175,125,0.15);
    color: var(--cp-success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 20px;
    font-size: 40px;
}
.cp-center { text-align: center; }

.cp-cert {
    border: 2px solid var(--cp-orange);
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
    background: linear-gradient(160deg, var(--cp-card), var(--cp-navy-deep));
}
.cp-cert-kicker { color: var(--cp-orange); font-weight: 700; letter-spacing: 0.08em; font-size: 12px; text-transform: uppercase; }
.cp-cert-name { font-size: 24px; font-weight: 800; margin: 10px 0 4px; }
.cp-cert-module { font-size: 15px; color: var(--cp-text-muted); margin-bottom: 18px; }
.cp-cert-code { font-family: monospace; font-size: 13px; color: var(--cp-text-muted); letter-spacing: 0.1em; }

/* ---- Admin dashboard (desktop-oriented, not the phone-frame app-shell) ---- */
.admin-shell {
    min-height: 100vh;
    background: var(--cp-navy);
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px 60px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    border-bottom: 1px solid var(--cp-border);
    margin-bottom: 28px;
}

.admin-brand {
    font-size: 17px;
    font-weight: 800;
}
.admin-brand span { color: var(--cp-orange); }
.admin-brand-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.08);
    color: var(--cp-text-muted) !important;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 6px;
}

.admin-nav a {
    color: var(--cp-text-muted);
    font-size: 14px;
    font-weight: 600;
    margin-left: 22px;
}
.admin-nav a:hover { color: var(--cp-text); }

.admin-stat-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.admin-stat-row .cp-card { flex: 1; margin-bottom: 0; }

.admin-logout { display: inline; margin: 0; }
.admin-logout button {
    background: none;
    border: 0;
    padding: 0;
    margin-left: 22px;
    color: var(--cp-text-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.admin-logout button:hover { color: var(--cp-text); }

.admin-narrow { max-width: 640px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th { text-align: left; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--cp-text-muted); font-weight: 700; padding: 6px 8px 8px 0; border-bottom: 1px solid var(--cp-border); }
.admin-table td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--cp-border); }
.admin-suppressed { color: var(--cp-text-muted); font-style: italic; }

.cp-field-hint { font-size: 12.5px; color: var(--cp-text-muted); margin-top: 6px; line-height: 1.45; }

.admin-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 900px) {
    .admin-shell { padding: 0 16px 40px; }
    .admin-stat-row { flex-wrap: wrap; }
    .admin-stat-row .cp-card { flex: 1 1 45%; }
    .admin-grid { grid-template-columns: 1fr; }
}

.cp-footer-quote {
    text-align: center;
    font-size: 11px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    padding: 14px 24px max(14px, env(safe-area-inset-bottom));
    line-height: 1.5;
}

/* ---- Privacy / settings controls ---- */
.cp-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 4px 0 16px;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}
.cp-check input[type='checkbox'] {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    accent-color: var(--cp-orange);
}
.cp-check a { color: var(--cp-orange); text-decoration: underline; }
.cp-check-tight { margin: 12px 0 0; font-size: 13px; color: var(--cp-text-muted); }
.cp-optional { font-weight: 400; color: var(--cp-text-muted); }

.cp-notice {
    background: rgba(76, 175, 125, 0.14);
    border: 1px solid rgba(76, 175, 125, 0.4);
    color: #B8EBD0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}

.cp-h2.cp-h2-small {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cp-text-muted);
    margin-bottom: 8px;
}

.cp-card-danger { border-color: rgba(228, 99, 76, 0.45); }
.cp-btn-danger { background: var(--cp-danger); color: #fff; }
.cp-btn-danger:hover { background: #EE7660; color: #fff; }

.cp-card-button { width: 100%; text-align: left; cursor: pointer; color: inherit; font: inherit; }

.cp-prose h2.cp-h2 { font-size: 15px; margin: 18px 0 6px; color: var(--cp-orange); }
.cp-prose h2.cp-h2:first-child { margin-top: 0; }
.cp-prose p, .cp-prose li { font-size: 14.5px; line-height: 1.6; color: var(--cp-text); }
.cp-prose p { margin: 0 0 10px; }
.cp-prose ul { padding-left: 18px; margin: 0 0 10px; }
.cp-prose li { margin-bottom: 6px; }
.cp-prose a { color: var(--cp-orange); text-decoration: underline; }

.cp-unit-row.is-me { background: var(--cp-orange-a08); margin: 0 -18px; padding: 14px 18px; border-radius: 10px; }
.cp-unit-num.is-top { background: var(--cp-orange); color: var(--cp-navy-deep); }

/* ---- Accessibility ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--cp-orange);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
    .app-topbar, .cp-no-print { display: none !important; }
    body, .app-shell { background: #fff !important; }
}

/* ---- Organisation branding ---- */
.cp-brand-logo { display: block; max-height: 56px; max-width: 220px; margin-bottom: 14px; }
.cp-brand-name { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.cp-brand-name span { color: var(--cp-orange); }
.admin-brand-logo { height: 28px; width: auto; vertical-align: middle; margin-right: 8px; }
.cp-code-box { font-family: ui-monospace, Menlo, monospace; font-size: 22px; letter-spacing: 0.12em; text-align: center; padding: 14px; background: rgba(0,0,0,0.25); border: 1px dashed var(--cp-orange); border-radius: 12px; user-select: all; word-break: break-all; }
.cp-pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,0.1); color: var(--cp-text-muted); }
.cp-pill-good { background: rgba(76,175,125,0.18); color: #B8EBD0; }
.cp-pill-bad { background: rgba(228,99,76,0.18); color: #F7C2B8; }
.admin-form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.admin-form-row > * { flex: 1 1 200px; }
.cp-form-group select, .cp-form-group textarea { width: 100%; background: var(--cp-card); border: 1px solid var(--cp-border); border-radius: 12px; color: var(--cp-text); padding: 12px 14px; font-size: 15px; font-family: inherit; }
.cp-form-group input[type='color'] { padding: 4px; height: 48px; }
.cp-form-group input[type='file'] { padding: 10px; }

/* ---- Organisation / platform dashboards ---- */
.admin-stat { font-size: 26px; font-weight: 800; color: var(--cp-text); }
.admin-stat-row .cp-card:first-child .admin-stat { color: var(--cp-orange); }
.admin-cols-2 { columns: 2; column-gap: 28px; }
.admin-funnel-row { margin-bottom: 10px; break-inside: avoid; }
.admin-funnel-head { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 3px; gap: 8px; }
.admin-funnel-val { color: var(--cp-text-muted); white-space: nowrap; }
.admin-trend { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.admin-trend-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.admin-trend-bar { width: 100%; background: var(--cp-orange); border-radius: 3px 3px 0 0; }
@media (max-width: 900px) { .admin-cols-2 { columns: 1; } }
.admin-inline-input { flex: 1; min-width: 120px; background: var(--cp-card); border: 1px solid var(--cp-border); border-radius: 10px; color: var(--cp-text); padding: 8px 12px; font: inherit; font-size: 14px; }
.admin-btn-sm { width: auto; padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }
.cp-code-link { font-family: ui-monospace, Menlo, monospace; font-size: 13px; padding: 10px 12px; background: rgba(0,0,0,0.25); border-radius: 10px; word-break: break-all; user-select: all; }
.cp-code-box { font-family: ui-monospace, Menlo, monospace; font-size: 26px; letter-spacing: 0.12em; text-align: center; padding: 16px; background: rgba(0,0,0,0.25); border: 1px dashed var(--cp-orange); border-radius: 12px; user-select: all; }

/* ---- Video units ---- */
.cp-video { position: relative; aspect-ratio: 16 / 9; width: 100%; background: var(--cp-navy-deep); border: 1px solid var(--cp-border); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.cp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cp-video-facade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; }
.cp-video-facade .cp-btn { width: auto; padding-left: 28px; padding-right: 28px; }
.cp-video-facade p { margin: 0; font-size: 12.5px; color: var(--cp-text-muted); max-width: 320px; line-height: 1.45; }

/* ---- Assessments ---- */
.cp-question { margin: 0 0 14px; min-width: 0; }
.cp-question-legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--cp-text); }
.cp-choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--cp-border); border-radius: 12px; background: var(--cp-card-hi); font-size: 15px; cursor: pointer; }
.cp-choice:hover { border-color: var(--cp-orange-a50); }
.cp-choice input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--cp-orange); }
.cp-choice:has(input:checked) { border-color: var(--cp-orange); background: var(--cp-orange-a10); }
.cp-result-head { font-size: 12.5px; color: var(--cp-text-muted); margin-bottom: 6px; }
.cp-result-prompt { margin: 0 0 8px; font-weight: 700; }
.cp-result-opts { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; }
.cp-result-opts li.is-right { color: #A8E6C4; font-weight: 700; }

/* ---- Authoring (organisation admin) ---- */
.cp-type-pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--cp-orange-a10); color: var(--cp-orange); margin-right: 6px; }
.admin-module { margin-bottom: 18px; }
.admin-module-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.admin-module-head .cp-unit-title { flex: 1 1 200px; font-size: 16px; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.admin-actions form { margin: 0; }
.admin-form textarea, .admin-form input[type='text'], .admin-form input[type='number'], .admin-form input[type='url'], .admin-form input[type='password'], .admin-form select { width: 100%; background: var(--cp-card-hi); border: 1px solid var(--cp-border); border-radius: 10px; color: var(--cp-text); padding: 10px 12px; font: inherit; font-size: 14.5px; }
.admin-form textarea { min-height: 96px; line-height: 1.5; }
.admin-form textarea:focus, .admin-form input:focus, .admin-form select:focus { outline: none; border-color: var(--cp-orange); }
.admin-opt-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.admin-opt-row input[type='text'] { flex: 1; }
.admin-opt-row input[type='checkbox'] { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--cp-orange); }
.admin-question { margin-bottom: 14px; }
details.admin-details > summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--cp-orange); margin: 6px 0; }
.cp-label-legend { float: left; width: 100%; padding: 0; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--cp-text-muted); }
fieldset.cp-form-group { border: 0; padding: 0; min-width: 0; }
.cp-form-group .admin-opt-row input[type='checkbox'] { width: 20px; height: 20px; padding: 0; }
.cp-form-group .admin-opt-row input[type='text'] { flex: 1; }

.cp-question-legend + *, .cp-label-legend + * { clear: left; }

/* ---- Accessibility additions ---- */
.cp-skip { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--cp-orange); color: var(--cp-navy-deep); font-weight: 700; padding: 10px 16px; border-radius: 10px; }
.cp-skip:focus { top: 8px; }
.cp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
main:focus { outline: none; }
h1:focus { outline: none; }
/* Some form rules removed the outline and kept only a border tint, which is easy to miss. Always show a ring. */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible:not(main):not(h1) {
    outline: 3px solid var(--cp-orange) !important;
    outline-offset: 2px;
}
.cp-quiz-option, .cp-choice, .cp-btn { min-height: 44px; }
footer.cp-footer-quote { display: block; }
/* Browsers' default placeholder grey is about 2:1 on these dark fields. */
::placeholder { color: rgba(255, 255, 255, 0.64); opacity: 1; }
