.site-header {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 0.0625rem solid var(--pp-border);
    display: flex;
    justify-content: space-between;
    min-height: 4.75rem;
    padding: 0.75rem max(1rem, calc((100vw - 76rem) / 2));
    position: relative;
    z-index: 10;
}

.nav-link {
    align-items: center;
    color: var(--pp-primary-dark);
    display: inline-flex;
    font-weight: 750;
    min-height: 2.75rem;
    padding: 0.4rem 0.75rem;
    text-decoration: none;
}

.hero {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 6vw, 6rem);
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.8fr);
    margin: 0 auto;
    max-width: 76rem;
    min-height: calc(100dvh - 4.75rem);
    padding: clamp(3rem, 8vw, 7rem) 2rem;
}

.hero-copy h1 {
    font-size: clamp(2.75rem, 6vw, 5rem);
    line-height: 1.02;
    margin-bottom: 1.5rem;
    max-width: 13ch;
}

.hero-summary {
    color: var(--pp-muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    max-width: 38rem;
}

.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.text-link { font-weight: 750; min-height: 3rem; padding: 0.75rem; text-underline-offset: 0.25rem; }

.passport-preview {
    background: var(--pp-surface);
    border: 0.0625rem solid var(--pp-border);
    border-radius: var(--pp-radius-lg);
    box-shadow: var(--pp-shadow);
    overflow: hidden;
}

.preview-header, .preview-footer {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 1.25rem 1.4rem;
}

.preview-header { border-bottom: 0.0625rem solid var(--pp-border); justify-content: flex-start; }
.preview-mark {
    align-items: center;
    background: var(--pp-primary);
    border-radius: var(--pp-radius-sm);
    color: var(--pp-surface);
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 800;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.preview-header p, .preview-footer { margin: 0; }
.preview-label { font-weight: 800; }
.preview-status, .preview-footer { color: var(--pp-muted); font-size: 0.78rem; }
.preview-body {
    background: linear-gradient(145deg, var(--pp-surface) 0%, #e5eef7 100%);
    min-height: 18rem;
    padding: 3rem 2rem;
}

.preview-kicker { color: var(--pp-primary); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; }
.preview-body h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.08; margin-bottom: 1.25rem; }
.preview-body p { color: var(--pp-muted); }
.preview-footer { background: var(--pp-surface-soft); border-top: 0.0625rem solid var(--pp-border); flex-wrap: wrap; }

.principles {
    background: var(--pp-navy);
    color: #e6eef7;
    padding: 5rem max(1rem, calc((100vw - 72rem) / 2));
}

.audience-section {
    margin: 0 auto;
    max-width: 76rem;
    padding: 1rem 2rem 5rem;
}

.audience-section .section-heading h2 { color: var(--pp-navy); }
.audience-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2rem; }
.audience-card {
    background: var(--pp-surface);
    border: 0.0625rem solid var(--pp-border);
    border-radius: var(--pp-radius-lg);
    padding: 1.5rem;
}
.audience-card h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.audience-card > p:not(.card-kicker) { color: var(--pp-muted); }
.audience-card .button { margin-top: 0.5rem; }
.public-emergency-note {
    align-items: center;
    background: var(--pp-emergency-soft);
    border: 0.0625rem solid #fecaca;
    border-radius: var(--pp-radius-md);
    color: var(--pp-emergency-dark);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
}
.public-emergency-note a {
    color: var(--pp-emergency-dark);
    font-weight: 800;
    min-height: 2.75rem;
    padding: 0.65rem;
}

.section-heading { max-width: 44rem; }
.principles .eyebrow { color: #a9c9e2; }
.section-heading h2 { color: var(--pp-surface); font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.05; }
.principle-list { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); margin-top: 3rem; }
.principle-list article { border-top: 0.1875rem solid var(--pp-secondary); padding: 1.5rem 0.5rem 0 0; }
.principle-number { color: #a9c9e2; display: block; font-size: 0.8rem; font-weight: 800; margin-bottom: 2rem; }
.principle-list h3 { color: var(--pp-surface); }
.principle-list p { color: #c7d7e8; }

.site-footer {
    background: #122238;
    color: #dbe7f3;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.85rem;
    gap: 1rem 3rem;
    justify-content: space-between;
    padding: 2rem max(1rem, calc((100vw - 72rem) / 2));
}

.site-footer p { margin: 0; }
.auth-shell, .workspace-shell {
    margin: 0 auto;
    max-width: 68rem;
    min-height: calc(100dvh - 9rem);
    padding: clamp(3rem, 8vw, 6rem) 2rem;
}

.auth-shell {
    align-items: start;
    display: grid;
    gap: clamp(2rem, 7vw, 6rem);
    grid-template-columns: minmax(0, 1fr) minmax(23.5rem, 0.78fr);
}

.auth-copy h1, .workspace-shell h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.04; }
.auth-copy > p:not(.eyebrow), .workspace-lead { color: var(--pp-muted); font-size: 1.08rem; max-width: 36rem; }
.auth-copy .auth-role-note { font-size: 0.95rem; }
.auth-panel, .workspace-notice {
    background: var(--pp-surface);
    border: 0.0625rem solid var(--pp-border);
    border-radius: var(--pp-radius-lg);
    box-shadow: var(--pp-shadow);
    padding: 2rem;
}

.auth-panel { min-width: 0; }
.auth-form fieldset { border: 0; margin: 0; min-width: 0; padding: 0; }
.auth-form legend { color: var(--pp-navy); font-size: 1.35rem; font-weight: 750; margin-bottom: 1.5rem; }
.auth-form label { display: block; font-weight: 700; margin-bottom: 0.45rem; }
.auth-form input, .clinician-entry input {
    background: var(--pp-surface);
    border: 0.0625rem solid #8fa8bf;
    border-radius: var(--pp-radius-sm);
    color: var(--pp-navy);
    margin-bottom: 1.25rem;
    min-height: 3rem;
    padding: 0.7rem 0.8rem;
    width: 100%;
}

.auth-form input:hover, .clinician-entry input:hover { border-color: var(--pp-primary); }
.captcha-wrap {
    margin: 0 0 1.25rem;
    max-width: 100%;
    min-height: 78px;
    overflow: hidden;
}
.captcha-wrap > div { width: 19rem; }
.captcha-unavailable {
    background: var(--pp-emergency-soft);
    border: 0.0625rem solid #fecaca;
    border-radius: var(--pp-radius-sm);
    color: var(--pp-emergency-dark);
    font-size: 0.9rem;
    margin: 0;
    padding: 0.8rem;
}

.auth-link-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: center; margin: 1.25rem 0 0; text-align: center; }
.auth-link-row a {
    align-items: center;
    color: var(--pp-primary-dark);
    display: inline-flex;
    font-weight: 700;
    min-height: 2.75rem;
    padding: 0.25rem;
}
.workspace-shell { max-width: 62rem; }
.workspace-notice { box-shadow: none; margin-top: 2rem; }
.workspace-notice p { color: var(--pp-muted); margin: 0.4rem 0 0; }

@media (max-width: 48rem) {
    .passport-brand__copy small { display: none; }
    .hero { grid-template-columns: 1fr; min-height: auto; padding: 3rem 1rem 4rem; }
    .hero-copy h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
    .principles { padding-block: 4rem; }
    .principle-list { grid-template-columns: 1fr; }
    .audience-section { padding: 1rem 1rem 4rem; }
    .audience-grid { grid-template-columns: 1fr; }
    .public-emergency-note { align-items: stretch; flex-direction: column; }
    .principle-number { margin-bottom: 0.75rem; }
    .auth-shell { grid-template-columns: 1fr; padding: 3rem 1rem; }
    .auth-panel { padding: 1.25rem; }
    .workspace-shell { padding-inline: 1rem; }
}

@media (max-width: 25rem) {
    .captcha-wrap > div {
        transform: scale(0.98);
        transform-origin: left top;
    }
}

@media (max-width: 23.5rem) {
    .captcha-wrap > div { transform: scale(0.87); }
}

@media (max-width: 22rem) {
    .site-header { gap: 0.4rem; padding-inline: 0.65rem; }
    .passport-brand { gap: 0.45rem; min-width: 0; }
    .passport-brand__mark { height: 2.5rem; width: 2.5rem; }
    .passport-brand__copy strong { font-size: 0.82rem; white-space: nowrap; }
    .nav-link { font-size: 0.88rem; padding-inline: 0.3rem; white-space: nowrap; }

    .captcha-wrap > div { transform: scale(0.75); }
}
