/*
 * ORIZZONTE — a private aviation workspace.
 * Focused arrival layer; operational platform styles remain in Flightdeck.
 * System type only. No remote fonts, assets or dependencies.
 */
:root {
    --arrival-night: #092b40;
    --arrival-deep: #061c30;
    --arrival-sky: #a9dce5;
    --arrival-copper: #e1ba7b;
    --arrival-paper: #f4f6ef;
    --arrival-ink: #173d50;
}
.ma-page[data-page=portal], .ma-page[data-page=password] {
    background-color: #e6eeec;
    background-image: radial-gradient(ellipse at 90% 0, #c1d9dd88, transparent 65%);
}
.ma-page .ma-header {
    background: var(--arrival-deep);
    border-bottom: 1px solid #416071;
    padding-top: 17px;
    padding-bottom: 17px;
}
.ma-page .ma-brand img { background: none; padding: 0; width: 166px; max-height: 60px; object-fit: contain; }
.ma-page .ma-brand strong { font-size: .86rem; font-weight: 600; }
.ma-page .ma-brand .ma-eyebrow { color: #9fbfca; }
.ma-page[data-page=portal] .ma-main { margin-top: 28px; }
.ma-page[data-page=portal] .ma-footer { margin-top: 30px; }
.arrival-context {
    display: flex; justify-content: space-between; align-items: center;
    gap: 18px; margin-bottom: 20px; color: #476976;
    font: .64rem/1.6 var(--fd-mono); letter-spacing: .1em; text-transform: uppercase;
}
.arrival-context span:last-child { display: flex; align-items: center; gap: 9px; }
.arrival-context span:last-child::before {
    content: ""; width: 6px; height: 6px; border: 1px solid #457775; border-radius: 50%;
}
.arrival-welcome {
    isolation: isolate; position: relative; overflow: hidden;
    background: var(--arrival-night); border: 1px solid #355969;
    border-radius: 18px; padding: clamp(28px, 4.5vw, 64px);
    color: #eaf2ef; margin-bottom: 28px;
    box-shadow: 0 20px 45px -25px #092b4055;
    min-height: 310px;
}
.arrival-welcome::before {
    content: ""; position: absolute; z-index: -1; inset: 0;
    background: radial-gradient(ellipse at 90% 20%, #27677d77, transparent 60%),
        linear-gradient(115deg, #061c3066, transparent 70%);
}
.arrival-welcome .ma-eyebrow { color: #b8d8df; font-size: .65rem; letter-spacing: .18em; }
.arrival-welcome .arrival-heading {
    margin: 19px 0 22px; max-width: 840px; color: #f1f5ec;
    font-size: clamp(2.2rem, 4.8vw, 4.5rem); line-height: 1.05;
    letter-spacing: -.055em; font-weight: 500; overflow-wrap: anywhere;
}
.arrival-welcome .arrival-role {
    max-width: 640px; color: #d3e4e5; font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.6; margin: 0; text-wrap: pretty;
}
.arrival-assignment { margin-top: 28px; padding: 20px 0 0 23px; border-top: 1px solid #57738188; border-left: 2px solid var(--arrival-copper); max-width: 720px; }
.arrival-assignment h2 { font: .63rem/1.6 var(--fd-mono); letter-spacing: .11em; text-transform: uppercase; color: var(--arrival-copper); margin: 0 0 8px; }
.arrival-assignment p { margin: 0; font-size: 1rem; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.arrival-orbit { position: absolute; z-index: -1; width: 620px; height: 620px; right: -235px; top: -145px; color: #8ac3d1; opacity: .26; transform: rotate(-18deg); }
.arrival-orbit circle, .arrival-orbit path { fill: none; stroke: currentColor; stroke-width: .7; }
.arrival-orbit .arrival-route { stroke: #e1ba7b; stroke-width: 1.8; }
.arrival-orbit .arrival-point { fill: #e1ba7b; stroke: none; }
.arrival-workspace-label { margin: 30px 0 13px; display: flex; align-items: center; gap: 14px; color: #57747d; font: .65rem var(--fd-mono); letter-spacing: .1em; text-transform: uppercase; }
.arrival-workspace-label::after { content: ""; flex: 1; height: 1px; background: #bdd0cf; }
.ma-page[data-page=portal] .ma-nav { background: transparent; border: 0; border-bottom: 1px solid #b1c7c9; border-radius: 0; padding: 0 0 12px; gap: 8px; }
.ma-page[data-page=portal] .ma-nav button { min-height: 48px; padding: 12px 23px; color: #365d6a; border: 1px solid transparent; border-radius: 7px; }
.ma-page[data-page=portal] .ma-nav button:hover { background: #d8e4e2; }
.ma-page[data-page=portal] .ma-nav button[aria-current=page] { background: var(--arrival-night); color: #edf4ed; box-shadow: none; border-color: #244e60; }
.ma-page[data-page=portal] .ma-nav #nav-profile {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; padding: 11px; margin-left: auto;
    border-color: #b1c7c9; flex-shrink: 0;
}
#nav-profile svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ma-page[data-page=portal] .ma-panel { background: var(--arrival-paper); border-color: #c6d5d1; border-radius: 13px; padding: clamp(22px, 3vw, 38px); }
.ma-page[data-page=portal] #portal-workspace > .ma-panel { margin-top: 0; }
.arrival-panel-head { display: flex; gap: 16px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid #d2ded7; margin-bottom: 26px; }
.arrival-panel-head .arrival-index { font: .7rem var(--fd-mono); color: #6a878b; padding: 10px 12px; border: 1px solid #c7d7d2; border-radius: 50%; }
.arrival-panel-head h2 { margin: 0; font-size: 1.25rem; }
.arrival-panel-head p { margin: 3px 0 0; font-size: .8rem; color: #647f83; }
.ma-page[data-page=portal] .ma-definition { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 34px; }
.ma-page[data-page=portal] .ma-definition dt { color: #607f86; font-size: .62rem; }
.ma-page[data-page=portal] .ma-definition dd { color: var(--arrival-ink); font-size: 1.04rem; overflow-wrap: anywhere; }
.ma-page[data-page=portal] .ma-note { margin-top: 28px; background: #e8eee5; border-color: #9eafa0; color: #586f69; }
/* Assigned sites: route-strip rows with a side-by-side consultation action. */
.ma-page #site-list .ma-site-list { display: grid; gap: 12px; margin-top: 26px; }
.ma-page #site-list .ma-site-card {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    gap: 24px; border: 1px solid #c5d7d6; border-left: 3px solid #6e9ba6;
    border-radius: 9px; padding: 21px 24px; background: #eaf0ec;
}
.ma-site-details { min-width: 0; }
.ma-site-details strong { display: block; color: #173d50; font-size: 1.12rem; line-height: 1.4; overflow-wrap: anywhere; }
.ma-site-company { margin-top: 7px; font: .66rem/1.6 var(--fd-mono); letter-spacing: .05em; color: #5b7b83; overflow-wrap: anywhere; }
.ma-page #site-list .ma-site-card button {
    width: auto; max-width: 170px; min-width: 150px; margin: 0; text-align: center;
    background: #123c50; border-color: #123c50; color: #edf4ed; border-radius: 6px;
}
.ma-page #site-list .ma-site-card button:hover { background: #24576a; }
.ma-contact-help { margin: 17px 0 21px; color: #59777f; font-size: .79rem; line-height: 1.65; max-width: 690px; }
.ma-page .ma-contact-add {
    display: inline-flex; justify-content: center; align-items: center;
    min-height: 44px; padding: 9px 13px; border: 1px solid #83a4ad; border-radius: 6px;
    background: #e3eeeb; color: #19495d; font-size: .78rem; font-weight: 700;
    line-height: 1.4; text-decoration: none; text-align: center;
}
.ma-page .ma-contact-add:hover { background: #d3e5e1; }
.ma-page .ma-contact-add:disabled { opacity: .6; cursor: not-allowed; }
.ma-contact-action { min-width: 148px; }
.ma-page[data-page=password] .ma-panel { border-radius: 14px; border-top: 3px solid #8aabb2; }
.ma-page[data-page=password] .ma-intro h1 { font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.6rem); }
/* The only dark-mode surfaces are the explicitly cinematic entry and welcome. */
.ma-page[data-page=login], body.login-page { background: var(--arrival-deep); color-scheme: dark; }
.radar-backdrop { background: var(--arrival-deep); }
.radar-backdrop::after { background: radial-gradient(ellipse at center, #061c3011 20%, #061c3088 100%); }
.ma-page[data-page=login] .ma-auth, .login-page .login-card { max-width: 424px; }
.ma-page[data-page=login] .ma-panel, .login-page .login-card {
    background: #092b40ed; color: #dce9e9; border: 1px solid #7396a066;
    border-top: 2px solid var(--arrival-copper); border-radius: 16px;
    padding: 33px 34px 27px; box-shadow: 0 30px 100px #020f2477;
    backdrop-filter: blur(18px);
}
.ma-page[data-page=login] .auth-brand, .login-page .auth-brand {
    background: none; padding: 0 0 26px; min-height: 0; margin-bottom: 26px;
    border-bottom: 1px solid #7898a244; border-radius: 0;
}
.ma-page[data-page=login] .auth-brand img, .login-page .auth-brand img { max-width: 260px; max-height: 88px; }
.ma-page[data-page=login] h2, .login-page .login-card h1 { color: #f0f4ed; font-weight: 500; font-size: 1.8rem; margin: 10px 0 24px; }
.ma-page[data-page=login] .ma-eyebrow, .login-page .ma-eyebrow { color: #9ebec9; font-size: .6rem; letter-spacing: .12em; }
.ma-page[data-page=login] .ma-field label, .login-page .form-group label { color: #d6e5e6; font-size: .79rem; }
.ma-page[data-page=login] input:not([type=checkbox]), .ma-page[data-page=login] select,
.login-page .form-group input:not([type=checkbox]) { background: #071f32; border: 1px solid #5e8191; color: #edf4ed; border-radius: 6px; min-height: 49px; }
.ma-page[data-page=login] input:focus, .login-page .form-group input:focus { outline: 2px solid #b4dee1; border-color: #b4dee1; outline-offset: 3px; }
.ma-page[data-page=login] .ma-button, .login-page .btn-primary {
    background: #d9bd87; color: #102f41; border-color: #d9bd87; border-radius: 6px; font-weight: 700;
}
.ma-page[data-page=login] .ma-button:hover, .login-page .btn-primary:hover { background: #ead3a8; color: #102f41; }
.ma-page[data-page=login] .ma-check { color: #c3d9de; }
.ma-page[data-page=login] .ma-skip:focus { color: #173d50; }
.ma-page[data-page=login] a, .login-page .auth-links a { color: #c4e2e8; }
.ma-page[data-page=login] .auth-help { color: #abc7cf; }
.ma-page[data-page=login] .auth-links, .login-page .auth-links { border-color: #7898a244; color: #abc7cf; font-size: .68rem; }
.ma-page[data-page=login] .ma-note { background: #153b4c; color: #d9e5e3; }
.ma-page[data-page=login] .ma-status:not(:empty) { background: #173e52; color: #deeeee; border-color: #527c8d; }
.ma-page[data-page=login] .ma-status[data-kind=error] { background: #512d36; color: #f4d7d6; border-color: #ba7f82; }
.radar-caption { color: #a6c7d0; letter-spacing: .15em; font-size: .57rem; }
.ma-page :focus-visible, .login-page :focus-visible { outline: 3px solid #ba8e46; outline-offset: 4px; }
@keyframes arrival-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
    .arrival-welcome { animation: arrival-reveal .65s cubic-bezier(.2,.7,.2,1) both; }
    .ma-page[data-page=login] .ma-auth, .login-page .login-card { animation: arrival-reveal .7s ease-out both; }
}
@media (max-width: 767px) {
    .ma-page #site-list .ma-site-card { gap: 12px; padding: 17px 12px; }
    .ma-site-details strong { font-size: .96rem; }
    .ma-site-company { font-size: .59rem; }
    .ma-page #site-list .ma-site-card button { min-width: 0; width: 92px; max-width: 92px; padding: 10px 8px; font-size: .75rem; }
    /* One semantic table, reflowed into readable contact sheets on phones. */
    .ma-page .ma-contact-table { border: 0; overflow: visible; }
    .ma-page .ma-contact-table table,
    .ma-page .ma-contact-table tbody { display: block; width: 100%; }
    .ma-page .ma-contact-table caption { display: block; padding: 0 0 16px; font-size: .78rem; color: #5b7b83; }
    .ma-page .ma-contact-table thead {
        position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
        overflow: hidden; clip-path: inset(50%); white-space: nowrap;
    }
    .ma-page .ma-contact-table tbody tr {
        display: block; padding: 12px 16px 16px; margin-bottom: 16px;
        border: 1px solid #c4d7d4; border-radius: 10px; background: #edf2ec;
    }
    .ma-page .ma-contact-table td {
        display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
        gap: 12px; min-width: 0; padding: 10px 0; font-size: .85rem;
        border-bottom: 1px solid #d5e1da; overflow-wrap: anywhere;
    }
    .ma-page .ma-contact-table td::before { content: attr(data-label); color: #59777f; font: .61rem/1.7 var(--fd-mono); }
    .ma-page .ma-contact-table td:first-child { color: #19495d; font-weight: 700; }
    .ma-page .ma-contact-table td.ma-contact-action { display: block; padding: 16px 0 0; border: 0; }
    .ma-page .ma-contact-table td.ma-contact-action::before { content: none; }
    .ma-page .ma-contact-add { width: 100%; min-height: 48px; }
    .ma-page .ma-brand { gap: 12px; }
    .ma-page .ma-brand img { width: 128px; }
    .ma-page .ma-brand strong { display: none; }
    .ma-page .ma-brand .ma-eyebrow { font-size: .6rem; }
    .arrival-context { font-size: .54rem; gap: 8px; }
    .arrival-context span:last-child { letter-spacing: .02em; }
    .arrival-welcome { border-radius: 12px; min-height: 300px; padding: 30px 23px; margin-bottom: 25px; }
    .arrival-welcome .arrival-heading { font-size: clamp(2.2rem, 8vw, 3.6rem); margin-top: 24px; }
    .arrival-welcome .arrival-role { font-size: 1rem; }
    .arrival-orbit { right: -410px; top: -70px; opacity: .18; }
    .arrival-assignment { padding: 18px 0 0 16px; }
    .ma-page[data-page=portal] .ma-definition { grid-template-columns: minmax(0, 1fr); gap: 19px; }
    .ma-page[data-page=portal] .ma-nav { gap: 5px; }
    .ma-page[data-page=portal] .ma-nav #nav-profile { justify-self: end; }
    .ma-page[data-page=portal] .ma-nav button { padding: 10px 8px; font-size: .77rem; }
    .arrival-panel-head { gap: 12px; }
    .ma-page[data-page=login] .ma-panel, .login-page .login-card { padding: 27px 23px 24px; }
    .ma-page[data-page=login] .ma-main, .login-page .login-container { padding: 30px 16px 65px; }
    .radar-caption { font-size: .49rem; letter-spacing: .06em; left: 16px; }
}
@media (max-width: 360px) {
    .ma-page .ma-brand img { width: 112px; }
    .ma-page .ma-brand .ma-eyebrow { font-size: .53rem; }
    .arrival-context { letter-spacing: .02em; }
    .arrival-context span:last-child { font-size: .5rem; }
    .arrival-welcome { padding: 28px 19px; }
}
