/* Armorica Capital: Ocean / Gold / Steel, with a quiet private-entry treatment. */
:root{--auth-ocean:#223340;--auth-gold:#C5A55A;--auth-steel:#6F8796;--auth-ink:#2B2E31;--auth-muted:#526774;--auth-line:#D9E1E8;--auth-paper:#f5f7f9;--auth-error:#963b31}
[hidden]{display:none!important}
.landing,.landing *{box-sizing:border-box}
.landing{margin:0;background:#f8f9f8;color:var(--auth-ink);font:16px/1.55 'IBM Plex Sans',Arial,sans-serif}
.landing a{color:var(--auth-ocean);text-underline-offset:4px}
.landing button,.landing input{font:inherit}
.landing button{cursor:pointer}
.landing :focus-visible,.session-bar :focus-visible{outline:3px solid var(--auth-gold);outline-offset:4px}
.skip-link{position:absolute;top:-100px;left:16px;background:white;color:var(--auth-ocean);padding:12px;z-index:200}
.skip-link:focus{top:8px}
.public-header{background:var(--auth-ocean)}
.public-header-inner{max-width:1280px;margin:auto;padding:24px 40px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.public-header img{display:block;width:240px;height:60px;max-width:100%;object-fit:contain}
.public-header span{color:var(--auth-line);font-size:13px;letter-spacing:.04em}
.landing-main{min-height:100svh;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(410px,.92fr)}
.landing-identity{position:relative;isolation:isolate;overflow:hidden;background:var(--auth-ocean);color:#e9eeed;display:flex;flex-direction:column;padding:clamp(28px,4vw,64px) clamp(32px,6vw,92px);min-height:680px}
.landing-brand{position:relative;z-index:1;display:block;width:max-content}
.landing-brand img{display:block;width:230px;max-width:100%;height:auto}
.identity-copy{position:relative;z-index:1;margin:auto 0;max-width:600px;padding:68px 0 86px}
.landing h1{font-size:clamp(40px,4.4vw,76px);line-height:1.04;letter-spacing:-.048em;font-weight:500;color:#f0f1ec;margin:0 0 25px;max-width:12ch}
.identity-copy p{font-size:clamp(17px,1.45vw,21px);line-height:1.55;color:#c0cfd2;max-width:28ch;margin:0}
.identity-mark{position:absolute;z-index:0;width:min(72vw,660px);height:auto;right:-25%;top:18%;color:#75909a;opacity:.22;transform:rotate(-11deg);pointer-events:none;animation:mark-enter 1.5s ease-out both}
.identity-mark .mark-gold{color:var(--auth-gold);opacity:.7}
.login-panel{min-width:0;background:#f8f9f8;display:flex;flex-direction:column;padding:clamp(32px,6vw,92px)}
.login-inner{width:min(100%,440px);margin:auto}
.login-panel h2{font-size:clamp(29px,2.35vw,38px);letter-spacing:-.035em;font-weight:500;line-height:1.15;color:var(--auth-ocean);margin:0 0 12px}
#access-note{font-size:16px;color:var(--auth-muted);margin:0 0 34px}
.field{margin-bottom:21px}
.field label{display:block;font-size:15px;font-weight:500;color:var(--auth-ocean);margin-bottom:8px}
.field input{width:100%;min-width:0;min-height:52px;border:1px solid #a7b5bd;border-radius:2px;background:white;color:var(--auth-ink);padding:11px 14px}
.field input:focus{border-color:var(--auth-ocean)}
.field input[aria-invalid=true]{border-color:var(--auth-error)}
.password-field{display:flex;gap:8px;align-items:stretch}
.password-field input{flex:1;width:0}
.password-field button{border:1px solid #a7b5bd;border-radius:2px;color:var(--auth-ocean);background:transparent;min-width:60px;min-height:52px;font-size:14px;padding:8px}
.password-field button:hover{background:#e9eeed}
.auth-error{font-size:14px;color:var(--auth-error);margin:0 0 12px}
.auth-error:empty{margin:0}
.sign-in,.primary-link{display:block;width:100%;min-height:52px;border:1px solid var(--auth-ocean);border-radius:2px;padding:12px 16px;background:var(--auth-ocean);color:white!important;text-align:center;font-weight:500;text-decoration:none;transition:background-color .2s ease,transform .2s ease}
.sign-in:hover,.primary-link:hover{background:#354e60}
.sign-in:active{transform:translateY(1px)}
.sign-in:disabled{opacity:.6;cursor:wait}
.login-status{font-size:13px;color:var(--auth-muted);margin:12px 0 0;min-height:21px}
.access-links{display:flex;justify-content:space-between;align-items:center;gap:14px 24px;flex-wrap:wrap;margin-top:31px;font-size:14px}
.access-links a{min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;text-decoration-color:#9bacb4;text-underline-offset:5px}
.entry-footer{width:100%;display:flex;justify-content:flex-end;align-items:center;gap:16px;color:var(--auth-muted);font-size:13px;padding-top:40px}
.entry-footer a{color:var(--auth-muted);min-height:44px;display:inline-flex;align-items:center}
#existing-session{margin:0 0 24px}
#existing-session p{font-size:15px;color:var(--auth-muted)}
.public-footer{max-width:1280px;margin:auto;padding:24px 40px 32px;display:flex;gap:16px;justify-content:space-between;color:var(--auth-muted);font-size:12px}
.public-footer strong{color:var(--auth-ocean);font-weight:500}
/* A single masthead: identity, research navigation and account belong together. */
body[data-page="dashboard"] .top-inner{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;column-gap:clamp(16px,2vw,30px);align-items:center;min-height:86px;padding:12px 32px}
body[data-page="dashboard"] .top nav{margin-left:0;justify-content:flex-end;gap:clamp(12px,1.45vw,24px);min-width:0}
body[data-page="dashboard"] .session-bar{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;padding:0;margin:0;color:#d9e1e8;font-size:12px}
body[data-page="dashboard"] .user-menu{position:relative}
body[data-page="dashboard"] .user-menu[hidden],body[data-page="dashboard"] .user-menu-panel[hidden],body[data-page="dashboard"] .user-menu-panel [hidden]{display:none!important}
body[data-page="dashboard"] #user-menu-toggle{display:flex;align-items:center;gap:11px;min-width:164px;max-width:224px;min-height:48px;padding:6px 11px 6px 7px;background:#ffffff0b;border:1px solid #ffffff38;border-radius:7px;color:#fff;text-align:left;font:500 13px 'IBM Plex Sans',sans-serif;transition:background .18s ease,border-color .18s ease}
body[data-page="dashboard"] #user-menu-toggle:hover,body[data-page="dashboard"] #user-menu-toggle[aria-expanded="true"]{background:#ffffff18;border-color:#c5a55a99}
body[data-page="dashboard"] .account-avatar{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:5px;background:#c5a55a;color:#223340;font:600 15px 'IBM Plex Sans',sans-serif}
body[data-page="dashboard"] #session-user{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-page="dashboard"] .menu-chevron{flex:none;color:#d9e1e8;transition:transform .18s ease}
body[data-page="dashboard"] #user-menu-toggle[aria-expanded="true"] .menu-chevron{transform:rotate(180deg)}
body[data-page="dashboard"] .user-menu-panel{position:absolute;z-index:110;top:calc(100% + 8px);right:0;width:240px;padding:7px;background:#fff;color:#223340;border:1px solid #d9e1e8;border-radius:8px;box-shadow:0 18px 40px #091a2580}
body[data-page="dashboard"] .user-menu-identity{padding:11px 12px 13px;margin-bottom:4px;border-bottom:1px solid #e5e9ed;color:#526774;font-size:12px;overflow-wrap:anywhere}
body[data-page="dashboard"] .user-menu-panel a,body[data-page="dashboard"] .user-menu-panel button{display:flex;align-items:center;width:100%;min-height:44px;padding:10px 12px;text-align:left;text-decoration:none;color:#223340;font:500 13px 'IBM Plex Sans',sans-serif;background:transparent;border:0;border-radius:5px;cursor:pointer}
body[data-page="dashboard"] .user-menu-panel a:hover,body[data-page="dashboard"] .user-menu-panel button:hover{background:#edf2f4;color:#223340}
body[data-page="dashboard"] .user-menu-panel #logout{margin-top:5px;border-top:1px solid #e5e9ed;border-radius:0}
body[data-page="dashboard"] #session-status:empty{display:none}
body[data-page="dashboard"] #session-retry{min-height:44px;background:transparent;color:white;border:1px solid #d9e1e8;border-radius:5px}
#session-status:empty{display:none}
#regional-coverage{margin:0 0 24px;padding:14px 18px;background:white;border:1px solid var(--auth-line);border-radius:6px;font-size:13px;color:var(--auth-muted)}
#regional-coverage summary{color:var(--auth-ocean);cursor:pointer;min-height:30px}
@keyframes mark-enter{from{opacity:0;transform:rotate(-11deg) translateY(14px)}to{opacity:.22;transform:rotate(-11deg) translateY(0)}}
@media(max-width:900px){.landing-main{grid-template-columns:minmax(0,1fr) minmax(360px,1fr)}.landing-identity{padding:34px;min-height:640px}.login-panel{padding:34px}.identity-mark{right:-45%;top:28%}.public-header-inner{padding:20px 24px}.public-footer{padding:24px}}
@media(max-width:680px){.landing-main{display:block}.landing-identity{min-height:340px;padding:24px 24px 28px}.landing-brand img{width:185px}.identity-copy{margin:auto 0;padding:34px 0 18px}.landing h1{font-size:clamp(37px,9.4vw,52px);margin-bottom:12px;max-width:14ch}.identity-copy p{font-size:16px;max-width:33ch}.identity-foot{display:none}.identity-mark{width:390px;right:-190px;top:-70px;opacity:.15}.login-panel{min-height:calc(100svh - 340px);padding:34px 24px 22px}.login-inner{margin:0 auto}.login-panel h2{font-size:30px}.entry-footer{margin-top:auto}.public-header-inner{padding:16px 20px}.public-header img{width:208px;height:52px}.public-header span{display:none}.public-footer{padding:16px 20px 24px;flex-direction:column;gap:4px}.session-bar{justify-content:flex-start}}
@media(max-width:360px){.landing-identity{min-height:320px}.landing h1{font-size:35px}.login-panel{padding-left:20px;padding-right:20px}.access-links{gap:0 18px}}
@media(max-width:1150px){body[data-page="dashboard"] .top-inner{grid-template-columns:auto minmax(0,1fr) auto}body[data-page="dashboard"] .workspace-label{display:none}body[data-page="dashboard"] .brand img{width:195px;height:auto}}
@media(max-width:820px){body[data-page="dashboard"] .top-inner{grid-template-columns:minmax(0,1fr) auto;row-gap:8px;min-height:0;padding:10px 18px 7px}body[data-page="dashboard"] .brand img{width:175px;height:auto}body[data-page="dashboard"] .session-bar{grid-column:2;grid-row:1}body[data-page="dashboard"] .top nav{grid-column:1/-1;grid-row:2;width:100%;flex-wrap:nowrap;justify-content:flex-start;gap:22px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}body[data-page="dashboard"] .top nav a{min-height:42px;display:flex;align-items:center;flex:none;padding:8px 0}body[data-page="dashboard"] #user-menu-toggle{min-width:150px;min-height:46px}body[data-page="dashboard"] .user-menu-panel{width:min(240px,calc(100vw - 36px))}}
@media(max-width:420px){body[data-page="dashboard"] .top-inner{padding-left:14px;padding-right:14px}body[data-page="dashboard"] .brand img{width:145px}body[data-page="dashboard"] #user-menu-toggle{min-width:0;max-width:148px;gap:7px;padding-right:8px}body[data-page="dashboard"] .account-avatar{flex-basis:30px;width:30px;height:30px}}
@media(prefers-reduced-motion:reduce){.landing *{scroll-behavior:auto!important;animation:none!important;transition:none!important}body[data-page="dashboard"] #user-menu-toggle,body[data-page="dashboard"] .menu-chevron{transition:none!important}}
