/* OT care workspace: warm charcoal, ivory type, and the login screen's quiet gold glow. */
@font-face {
    font-family: 'OT Care Sans';
    src: url('/ot-site/1e9faf68692ee8a142c7.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'OT Care Display';
    src: url('/ot-site/3d56f98c07e9caf6b549.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'OT Care Serif';
    src: url('/ot-site/876d19a2dd4470cdf3c1.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

:root {
    --ot-bronze: linear-gradient(125deg, #b68c60 0%, #e1b57c 22%, #f4d6a3 35%, #c4935c 46%, #ae7d4b 51%, #dbb584 76%, #b88954 100%);
    --ot-bronze-hover: linear-gradient(125deg, #c69a68 0%, #edc891 22%, #ffe3b4 35%, #d4a16a 46%, #bd8e59 51%, #e5c393 76%, #c69a68 100%);
    --ot-bronze-ink: #21170d;
    --ot-bronze-shadow: inset 0 1px 0 #fff1d5b3, inset 0 -1px 0 #70441e80, 0 3px 9px #0003;
}

body .impact-theme,
body.impact-app,
body.impact-patient-workspace {
    font-family: 'OT Care Sans', Arial, sans-serif;
}
body .impact-theme {
    --background: #171713;
    --foreground: #f7f5ef;
    --card: #242420;
    --card-foreground: #f7f5ef;
    --primary: #e9ddba;
    --primary-foreground: #242420;
    --muted-foreground: #bdb9ae;
    --border: #414039;
    --ring: #e9ddba;
    --impact-light-accent: #242420;
    --impact-light-accent-strong: #3c3b32;
    --impact-light-accent-text: #74603e;
    --ot-workspace-background: radial-gradient(ellipse 80% 580px at 15% 0%, #8d784533, transparent 72%), radial-gradient(ellipse 65% 620px at 95% 15%, #75613d1c, transparent 70%), linear-gradient(165deg, #1c1b17, #11110f 75%);
    --ot-card-background: radial-gradient(ellipse at 0 0, #b3995520, transparent 68%), linear-gradient(145deg, #2d2b25f5, #201f1bf5);
    --ot-card-border: #a28c4b55;
    --ot-card-shadow: inset 0 1px 0 #f4e8be0c, 0 20px 52px -24px #0009;
    background: var(--ot-workspace-background);
}
body .impact-theme .impact-theme { background: transparent; }
body .impact-theme .impact-theme :is(main, footer) { position: relative; }
body .impact-theme .impact-light {
    color-scheme: dark;
    --background: #1b1a17;
    --foreground: #f7f5ef;
    --card: #282620;
    --card-foreground: #f7f5ef;
    --primary: #e9ddba;
    --primary-foreground: #242420;
    --muted: #302e27;
    --muted-foreground: #c5bfaf;
    --border: #a28c4b55;
    --input: #645b45;
    --ring: #e9ddba;
    --impact-light-accent: #e9ddba;
    --impact-light-accent-strong: #f7f5ef;
    --impact-light-accent-soft: #e9ddba14;
    --impact-light-accent-line: #e9ddba33;
    --impact-light-accent-text: #e9ddba;
    color: var(--foreground);
}

.impact-theme h1,
.impact-theme h2,
.patient-auth-page h1,
.patient-auth-page h2,
.impact-app .impact-auth h1 {
    font-family: 'OT Care Display', 'OT Care Sans', Arial, sans-serif;
    letter-spacing: -.035em;
}
.impact-theme main > header h1 { font-weight: 450; }
.impact-theme .impact-kicker,
body .impact-theme .portal-eyebrow {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .18em;
    line-height: 1.6;
    text-transform: uppercase;
    color: var(--primary);
}
body .impact-theme .portal-eyebrow { margin-bottom: 1.1rem; }

/* The persistent dark shell carries the same atmosphere through every care journey. */
body .impact-theme .portal-global-header {
    color-scheme: dark;
    background: #191815ed;
    border-color: #b3995533;
    color: #f7f5ef;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 36px #0002;
}
.portal-global-header .portal-header-inner { gap: 1rem 2rem; }
.portal-global-header .portal-brand-lockup {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #f7f5ef;
}
.portal-global-header .portal-brand-lockup img {
    width: 80px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.portal-global-header .portal-brand-caption {
    padding-left: 1rem;
    border-left: 1px solid #b3995540;
    color: #c5bca6;
    font-size: .61rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    white-space: nowrap;
}
.portal-global-header .portal-navigation { min-width: 0; }
.portal-global-header .portal-primary-nav {
    display: flex;
    min-width: 0;
    gap: .2rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #756c54 transparent;
    padding: 4px 2px;
}
.portal-global-header .portal-navigation a,
.portal-global-header .portal-navigation button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 40px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 500;
    white-space: nowrap;
    color: #d4cfc2;
    box-shadow: none;
}
.portal-global-header .portal-navigation :is(a, button):hover {
    background: #e9ddba12;
    color: #fff;
}
.portal-global-header .portal-navigation a[aria-current='page'] {
    background: var(--ot-bronze);
    color: var(--ot-bronze-ink);
    box-shadow: var(--ot-bronze-shadow);
}
.portal-global-header .portal-navigation :focus-visible {
    outline: 2px solid #e9ddba;
    outline-offset: 2px;
}
.portal-global-header .portal-more-menu {
    background: #27251f;
    border-color: #b3995555;
    box-shadow: 0 16px 40px #0006;
}
.portal-global-header .portal-more-menu a {
    display: flex;
    justify-content: flex-start;
}

/* Patient home: editorial welcome, restrained surfaces, generous rhythm. */
body .impact-theme.patient-portal::before {
    background: radial-gradient(ellipse 70% 75% at 80% 0, #c2a46014, transparent 75%);
}
body .impact-theme .portal-welcome { padding-block: 1rem; gap: 2rem; }
body .impact-theme .portal-greeting {
    font-size: clamp(2.7rem, 5.8vw, 4.5rem);
    font-weight: 350;
    line-height: 1.04;
    letter-spacing: -.045em;
}
body .impact-theme .portal-greeting em {
    font-family: 'OT Care Serif', Georgia, serif;
    font-weight: 300;
    color: #e9ddba;
}
body .impact-theme .portal-lede { display: block; color: #bdb9ae; }
body .impact-theme .portal-sections { position: static; box-shadow: none; background: #242420; }
body .impact-theme .portal-section { scroll-margin-top: 9rem; }
body .impact-theme .portal-section-heading h2 { font-weight: 450; }
body .impact-theme .portal-band { --portal-band: transparent; background: transparent; box-shadow: none; clip-path: none; }
body .impact-theme .portal-band-first { padding-top: 3rem; }
body .impact-theme .portal-card {
    background: var(--ot-card-background);
    border-color: var(--ot-card-border);
    border-radius: 1.6rem;
    box-shadow: var(--ot-card-shadow);
}
body .impact-theme .portal-card:not(:has(form)):hover {
    border-color: #c2a46099;
    box-shadow: inset 0 1px 0 #f4e8be14, 0 26px 54px -24px #000b;
    transform: translateY(-2px);
}
body .impact-theme .portal-card-icon { border-radius: 50%; box-shadow: none; }
body .impact-theme .portal-card-title { font-family: 'OT Care Display', Arial, sans-serif; font-size: 1.2rem; font-weight: 550; }
body .impact-theme .portal-support {
    background: #292922;
    border-color: #e9ddba26;
    box-shadow: none;
}
body .impact-theme .portal-support::after { opacity: .4; }

/* Shared care controls keep semantic warning/success colors intact. */
body .impact-theme :is(.impact-surface, .impact-glass),
body .impact-theme .care-page :is(.card, .ih-patient-card, .metric) {
    background: var(--ot-card-background);
    border-color: var(--ot-card-border);
    box-shadow: var(--ot-card-shadow);
    border-radius: 1.6rem;
}
body .impact-theme .impact-light :is(.impact-surface, .impact-glass) {
    background: var(--ot-card-background);
    border-color: var(--ot-card-border);
    box-shadow: var(--ot-card-shadow);
}
body .impact-theme .impact-button {
    background: var(--ot-bronze);
    color: var(--ot-bronze-ink);
    border-radius: 999px;
    font-weight: 600;
    box-shadow: var(--ot-bronze-shadow);
}
body .impact-theme .impact-button:hover:not(:disabled) { background: var(--ot-bronze-hover); box-shadow: var(--ot-bronze-shadow); }
body .impact-theme .impact-light .impact-button { background: var(--ot-bronze); color: var(--ot-bronze-ink); box-shadow: var(--ot-bronze-shadow); }
body .impact-theme .impact-light .impact-button:hover:not(:disabled) { background: var(--ot-bronze-hover); box-shadow: var(--ot-bronze-shadow); }
body .impact-theme .impact-button-secondary { border-radius: 999px; box-shadow: none; }
.impact-theme .ot-care-empty { border-color: var(--border); background: color-mix(in srgb, var(--card) 72%, transparent); }
.impact-theme :is(.text-blue-200, .text-blue-300, .text-blue-400) { color: var(--primary); }
.impact-theme :is(.bg-blue-300\/10, .bg-blue-400\/10, .bg-blue-500\/10, .bg-blue-400\/15, .bg-blue-500\/15) { background-color: #e9ddba12; }
.impact-theme :is(.border-blue-300\/20, .border-blue-400\/20) { border-color: #e9ddba33; }

/* Former light cards now use the same readable, recessed controls as sign-in. */
body .impact-theme .impact-light .impact-label { color: #e4dece; }
body .impact-theme .impact-light :is(.impact-input, [data-slot='input']) {
    background-color: #191814;
    border-color: #645b45;
    color: #f7f5ef;
}
body .impact-theme .impact-light :is(.impact-input, [data-slot='input']):focus-visible {
    background-color: #24221b;
    border-color: #e9ddba;
}
body .impact-theme .impact-light .impact-button-secondary { background: #e9ddba0c; }
body .impact-theme .portal-card :is(input:not([type='checkbox']):not([type='radio']), select, textarea) {
    min-height: 46px;
    border-radius: .85rem;
    padding: .7rem .9rem;
    background-color: #191814;
    border-color: #645b45;
    color: #f7f5ef;
    color-scheme: dark;
}
body .impact-theme .portal-card :is(input, select, textarea):focus-visible {
    outline: 2px solid #e9ddba;
    outline-offset: 3px;
}
body .impact-theme .portal-card button.bg-blue-600 {
    border-radius: 999px;
    background: var(--ot-bronze);
    color: var(--ot-bronze-ink);
}
body .impact-theme .portal-card button.bg-blue-600,
body .impact-theme .care-page :is(button, .btn, .button) { box-shadow: var(--ot-bronze-shadow); border-color: #d3aa73; }
body .impact-theme .portal-card .text-slate-600 { color: #c5bfaf; }
body .impact-theme .portal-card .text-blue-700 { color: #e9ddba; }
body .impact-theme .portal-card .text-red-700 { color: #fda4af; }
body .impact-theme .care-page :is(button, .btn, .button) {
    border-radius: 999px;
    background: var(--ot-bronze);
    color: var(--ot-bronze-ink);
}
body .impact-theme .care-page :is(.secondary, .btn-secondary) {
    background: linear-gradient(140deg, #b68c6026, #b68c6009);
    color: #e9c893;
    box-shadow: inset 0 1px 0 #f4d6a31a;
}
body .impact-theme .care-page :is(button, .btn, .button):hover:not(:disabled) { background: var(--ot-bronze-hover); color: var(--ot-bronze-ink); }
body .impact-theme .impact-light .intake-sticky-actions { background: #25231ff5; }
body .impact-theme .impact-light :is(.text-emerald-200, .text-emerald-300) { color: #a7f3d0; }
body .impact-theme .impact-light :is(.text-amber-200, .text-amber-300) { color: #fde68a; }
body .impact-theme .impact-light :is(.text-rose-200, .text-red-500, .impact-error) { color: #fda4af; }
body .impact-theme .text-slate-500 { color: #aca696; }
body .impact-theme :is(.bg-slate-900, .bg-slate-900\/60, .bg-slate-900\/50) {
    background: var(--ot-card-background);
    border-color: var(--ot-card-border);
    box-shadow: var(--ot-card-shadow);
}
body .impact-theme :is(.bg-slate-950, .bg-slate-950\/50) { background-color: #191814; }
body .impact-theme .ot-care-empty {
    background: radial-gradient(ellipse at 50% 0, #b3995512, transparent 75%), #24221c;
    border-color: #a28c4b40;
}

/* Both sign-in doors share the same typography and quiet, pill-shaped actions. */
body.patient-auth-page { background: #171713; }
.patient-auth-page .topbar { background: #f7f5ef; border-bottom: 1px solid #e3dfd3; }
.patient-auth-page .topbar nav a { color: #545248; }
.patient-auth-page .topbar nav a:hover { color: #242420; background: #eae6da; }
.patient-auth-page h1,
.patient-auth-page .ih-auth-story h2,
.impact-app .impact-auth h1 { font-weight: 400; }
.patient-auth-page .ih-auth-form-panel { background: #242420; border-color: #e9ddba26; box-shadow: none; }
.patient-auth-page :is(button, input, select, textarea),
.impact-app .impact-auth :is(button, input, select, textarea) { font-family: 'OT Care Sans', Arial, sans-serif; }
.patient-auth-page .ih-auth-submit,
.impact-app .impact-auth .ih-auth-submit {
    border-radius: 999px;
    background: var(--ot-bronze);
    border-color: #dcba8a;
    color: var(--ot-bronze-ink);
    box-shadow: var(--ot-bronze-shadow);
}
.patient-auth-page .ih-auth-submit:hover,
.impact-app .impact-auth .ih-auth-submit:hover { background: var(--ot-bronze-hover); border-color: #e9c893; color: var(--ot-bronze-ink); }

@media (max-width: 1279px) {
    .portal-global-header .portal-header-inner { gap: .5rem; padding-block: .75rem; }
    .portal-global-header .portal-navigation { width: 100%; }
    .portal-global-header .portal-primary-nav { flex: 1; }
}
@media (max-width: 640px) {
    .portal-global-header .portal-brand-lockup img { height: 28px; width: 68px; }
    .portal-global-header .portal-navigation :is(a, button) { min-height: 44px; padding-inline: .7rem; }
    body .impact-theme .portal-welcome { padding-top: .5rem; }
    body .impact-theme .portal-section { scroll-margin-top: 10rem; }
}
@media (prefers-reduced-motion: reduce) {
    body .impact-theme .portal-card,
    .impact-theme .impact-button,
    body .impact-theme .portal-text-link svg { transition: none; transform: none !important; }
}
