:root {
    color-scheme: light;
    --ink: #1d3435;
    --muted: #536765;
    --faint: #657571;
    --sea: #12383d;
    --deep: #102e33;
    --gold: #a27a3f;
    --green: #246553;
    --paper: #f5f4ed;
    --white: #fffef9;
    --line: #d8dcce;
    --serif: "Spectral", "Noto Serif TC", "Songti TC", "PMingLiU", "MingLiU", serif;
    --sans: "DM Sans", "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
    --mono: "IBM Plex Mono", Consolas, monospace;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--sans); }
body > main { flex: 1 0 auto; }
html { scroll-padding-top: 13px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: default; }
:focus-visible { outline: 3px solid #bb803c; outline-offset: 3px; }
[hidden] { display: none !important; }
.page-wrap { width: min(1240px, calc(100% - 8vw)); margin-inline: auto; }
.icon { display: inline-block; flex: none; width: 1.15em; height: 1.15em; background-color: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.portal-skip { position: absolute; top: 5px; left: 10px; z-index: 30; padding: 9px 16px; border-radius: 4px; background: white; transform: translateY(-170%); }
.portal-skip:focus { transform: none; }
.portal-mast { position: relative; z-index: 5; flex: none; background: var(--deep); color: #f5f2df; border-bottom: 1px solid #446364; }
.portal-mast-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.portal-brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.portal-seal { display: grid; place-items: center; width: 38px; height: 38px; color: #f1d9a0; border: 1px solid #9d9469; border-radius: 7px; background: #21474a; }
.portal-seal .icon { width: 26px; height: 26px; }
.portal-wordmark { display: grid; gap: 2px; }
.portal-wordmark b { font: 800 18px/1.15 var(--serif); letter-spacing: .13em; }
.portal-wordmark small { font: 9px/1.15 Georgia,serif; letter-spacing: .24em; color: #d7c596; }
.portal-actions, .portal-desktop-nav { display: flex; align-items: center; gap: 24px; }
.portal-desktop-nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 65px; border-block: 2px solid transparent; font-size: 13px; font-weight: 650; color: #dde6dc; }
.portal-desktop-nav a:hover, .portal-desktop-nav a[aria-current="page"] { color: #ffe4aa; }
.portal-desktop-nav a[aria-current="page"] { border-bottom-color: #d9b576; }
.portal-signup { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; padding: 6px 13px; border: 1px solid #9d9469; border-radius: 5px; background: #234448; color: #f8e1ab; }
.portal-signup:hover, .portal-signup[aria-current="page"] { background: #385352; border-color: #e2bf7e; }
.portal-mobile-nav { display: none; position: relative; }
.portal-mobile-nav summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 5px; min-height: 40px; font-size: 13px; }
.portal-mobile-nav summary::-webkit-details-marker { display: none; }
.portal-mobile-nav nav { position: absolute; right: 0; top: calc(100% + 4px); width: 190px; padding: 6px; border: 1px solid #c7cec1; border-radius: 7px; background: var(--white); color: var(--ink); box-shadow: 0 9px 24px #0b272b35; }
.portal-mobile-nav nav a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 4px; font-size: 14px; }
.portal-mobile-nav nav a:hover, .portal-mobile-nav nav a[aria-current="page"] { background: #e9eee4; color: var(--green); }
.portal-mobile-nav nav a .icon { color: var(--gold); }
.portal-footer { margin-top: auto; border-top: 1px solid var(--line); background: #eeeee3; color: var(--muted); }
.portal-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding-block: 24px; font-size: 12px; }
.portal-footer-brand, .portal-footer-links { display: flex; align-items: center; gap: 10px; }
.portal-footer-brand .icon { width: 20px; height: 20px; color: var(--gold); }
.portal-footer-brand strong { color: var(--ink); font: 700 15px var(--serif); }
.portal-footer-links { gap: 18px; }
.portal-footer-links a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.subhero, .portal-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 3px solid #bda574; background: #173c40; color: #fff7e2; }
.subhero::before, .portal-hero::before { content: ""; position: absolute; z-index: -2; inset: 0 0 0 auto; width: 84%; background: url("atlas-cover.webp") right 6% / cover no-repeat; -webkit-mask-image: linear-gradient(90deg,transparent,#000 34%); mask-image: linear-gradient(90deg,transparent,#000 34%); }
.subhero::after, .portal-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(17,50,49,.18),rgba(17,50,49,.12) 41%,transparent 70%); pointer-events: none; }
.subhero > .page-wrap { min-height: 180px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 26px; }
.subhero h1 { margin: 0; font: 800 clamp(35px,3.7vw,53px)/1.17 var(--serif); letter-spacing: .065em; color: #fff6de; text-shadow: 0 2px 15px #143c3b80; }
.subhero p { margin: 8px 0 0; color: #ecf1e4; letter-spacing: .02em; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 2px 7px #173f3509; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 17px; border: 1px solid transparent; border-radius: 5px; font-weight: 700; font-size: 14px; text-align: center; }
.btn-primary { background: var(--sea); border-color: var(--sea); color: #fff9e5; }
.btn-primary:hover { background: #215054; }
.btn-secondary { background: #fbfaf2; border-color: #c9cebd; color: var(--ink); }
.btn-secondary:hover { background: #f0f2e7; }
@media (max-width: 920px) {
    .page-wrap { width: calc(100% - 40px); }
    .portal-actions,.portal-desktop-nav { gap: 15px; }
}
@media (max-width: 700px) {
    .page-wrap { width: calc(100% - 28px); }
    .portal-mast-inner { min-height: 56px; }
    .portal-desktop-nav { display: none; }
    .portal-mobile-nav { display: block; }
    .portal-actions { gap: 14px; }
    .portal-seal { width: 32px; height: 32px; }
    .portal-seal .icon { width: 22px; height: 22px; }
    .portal-brand { gap: 7px; }
    .portal-wordmark b { font-size: 16px; }
    .portal-wordmark small { font-size: 8px; }
    .portal-signup { padding: 5px 9px; }
    .subhero > .page-wrap { min-height: 136px; padding-block: 20px; }
    .subhero::before,.portal-hero::before { width: 100%; background-position: 61% 36%; -webkit-mask-image: none; mask-image: none; }
    .subhero::after,.portal-hero::after { background: linear-gradient(90deg,#123137eb,rgba(18,49,52,.77) 40%,rgba(18,49,52,.2)); }
    .subhero h1 { font-size: 33px; }
    .subhero p { font-size: 13px; }
    .portal-footer-inner { gap: 10px; padding-block: 18px; }
    .portal-footer-links { gap: 12px; }
}
@media (max-width: 395px) {
    .page-wrap { width: calc(100% - 24px); }
    .portal-mast-inner { gap: 8px; }
    .portal-footer-inner { align-items: flex-start; flex-direction: column; }
}
