/* AHEC navy, parchment and gold. Local assets; no font/CDN dependency. */
:root{--ahec-ink:#122440;--ahec-accent:#a87b17;--ahec-paper:#f6f7f9;--ahec-line:#dce2eb}
.ahec-agent,.ahec-branch-hub{box-sizing:border-box;width:min(1120px,calc(100% - 32px));margin:clamp(20px,5vw,64px) auto;padding:clamp(20px,4vw,48px);border:1px solid var(--ahec-line);border-radius:24px;background:#fff;color:var(--ahec-ink);box-shadow:0 14px 50px #1424400a;font:16px/1.65 system-ui,-apple-system,Segoe UI,sans-serif}
.ahec-agent *,.ahec-branch-hub *{box-sizing:border-box;min-width:0}
.ahec-agent .ahec-agent{width:100%;margin:24px 0;padding:24px;box-shadow:none;background:var(--ahec-paper);border-radius:16px}
.ahec-agent h1,.ahec-branch-hub h1{font:600 clamp(30px,4vw,48px)/1.12 Georgia,serif;letter-spacing:-.025em;margin:8px 0 20px;color:var(--ahec-ink)}
.ahec-agent h2,.ahec-branch-hub h2{font-size:24px;line-height:1.25;margin:30px 0 14px;color:var(--ahec-ink)}
.ahec-agent h3{font-size:19px}.ahec-agent p{max-width:80ch}.ahec-lead{font-size:19px;color:#506077}.ahec-eyebrow{display:block;color:#88631a;font-size:11px;letter-spacing:.18em;font-weight:800}
.ahec-agent form,.ahec-branch-hub form{margin:24px 0}.ahec-agent label,.ahec-branch-hub label{display:block;font-size:14px;font-weight:650;margin:16px 0;color:var(--ahec-ink)}
.ahec-agent input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.ahec-agent select,.ahec-agent textarea,.ahec-branch-hub input:not([type=checkbox]),.ahec-branch-hub select,.ahec-branch-hub textarea{display:block;width:100%;max-width:100%;border:1px solid #b8c3d3;border-radius:9px;background:#fff;color:var(--ahec-ink);padding:12px 14px;min-height:48px;font:inherit;box-shadow:none}
.ahec-agent input[type=checkbox],.ahec-branch-hub input[type=checkbox]{width:19px;height:19px;accent-color:#173153;vertical-align:middle;margin-right:8px;flex-shrink:0}.ahec-agent input[type=file]{overflow:hidden}.ahec-agent textarea{min-height:120px;resize:vertical}
.ahec-agent button,.ahec-agent .button,.ahec-branch-hub button,.ahec-branch-hub .branch-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;max-width:100%;min-height:48px;min-width:0;padding:13px 22px;border:1px solid #173153;border-radius:9px;background:#173153;color:#fff;font:650 15px/1.4 system-ui;text-align:center;text-decoration:none;white-space:normal;cursor:pointer;transition:background .15s,box-shadow .15s}
.ahec-agent button:hover,.ahec-agent .button:hover,.ahec-branch-hub button:hover{background:#254b72;box-shadow:0 4px 12px #10233f20}.ahec-agent button:disabled{opacity:.55;cursor:not-allowed}
.ahec-agent :focus-visible,.ahec-branch-hub :focus-visible{outline:3px solid #b58d32;outline-offset:3px}.ahec-agent a:not(.button){color:#244e80;text-underline-offset:4px;overflow-wrap:anywhere}
.ahec-agent details{padding:14px 18px;border:1px solid var(--ahec-line);border-radius:10px;margin:12px 0}.ahec-agent summary{cursor:pointer;font-weight:650}.ahec-agent details>div{max-height:350px;overflow:auto;margin-top:14px}
.ahec-context{padding:24px;border-left:4px solid #b58d32;background:#f8f6f0;border-radius:0 12px 12px 0;margin:26px 0}.ahec-context span{display:block;color:#506077;margin-top:4px}.ahec-context p{font-size:14px;margin-bottom:0}
.ahec-course-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:20px}.ahec-course-card{padding:24px;border:1px solid var(--ahec-line);border-radius:14px;display:flex;flex-direction:column;align-items:flex-start;background:linear-gradient(160deg,#fff,#f8fafc)}.ahec-course-card h2{margin:0 0 12px;font-size:21px}.ahec-course-card>strong{font-size:26px;margin:auto 0 8px}.ahec-course-card p{font-size:14px;color:#536176}.ahec-course-card:has(input:checked){border-color:#aa7e24;box-shadow:inset 0 0 0 1px #aa7e24}.ahec-state{font-weight:700;color:#28674d!important}
.ahec-basket,.ahec-access-card{padding:26px;background:#f3f6fa;border:1px solid var(--ahec-line);border-radius:14px;margin:26px 0}.ahec-basket ul{padding:0;list-style:none}.ahec-basket li{display:flex;justify-content:space-between;gap:24px;border-bottom:1px solid var(--ahec-line);padding:14px 0}.ahec-basket strong{white-space:nowrap}.ahec-basket a{margin:8px 12px 0 0}
.ahec-agent .ahec-phone-group{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(140px,1.2fr);gap:8px}.ahec-agent .ahec-phone-prefix{display:none}.ahec-agent-notice{padding:16px 20px;border-left:4px solid #b58d32;background:#fff8e8;border-radius:6px}.ahec-agent-trap{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.ahec-branch-scroll{overflow:auto}.ahec-agent table{width:100%;border-collapse:collapse}.ahec-agent th,.ahec-agent td{padding:12px;text-align:left;border-bottom:1px solid var(--ahec-line);overflow-wrap:anywhere}.ahec-agent dl{display:grid;grid-template-columns:180px 1fr;gap:8px 20px}.ahec-agent dd{margin:0;overflow-wrap:anywhere}
@media(min-width:760px){.ahec-agent-form{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.ahec-agent-form>button,.ahec-agent-form>details,.ahec-agent-form>p,.ahec-agent-form>h2,.ahec-agent-form>h3,.ahec-agent-form>.ahec-agent-check,.ahec-agent-form>label:has([type=checkbox]),.ahec-agent-form>label:has(textarea){grid-column:1/-1}.ahec-agent-form>button{justify-self:start}}
@media(max-width:540px){.ahec-agent,.ahec-branch-hub{width:calc(100% - 20px);padding:20px 16px;border-radius:16px}.ahec-agent .ahec-agent{padding:16px 12px}.ahec-basket,.ahec-access-card{padding:18px 14px}.ahec-agent dl{grid-template-columns:1fr}.ahec-agent dt{font-weight:700}.ahec-agent .ahec-phone-group{grid-template-columns:1fr}.ahec-agent button,.ahec-agent .button{width:100%}.ahec-basket li{flex-wrap:wrap;gap:8px}}
@media(prefers-reduced-motion:reduce){.ahec-agent *{transition:none!important;scroll-behavior:auto!important}}
