@view-transition { navigation: auto; }
::view-transition { pointer-events: none; }
::view-transition-old(root) { animation: 200ms ease-in both page-out; }
::view-transition-new(root) { animation: 430ms var(--ease) both page-in; }
@keyframes page-out { to { opacity: .3; transform: translateY(-5px); } }
@keyframes page-in { from { opacity: .2; transform: translateY(9px); clip-path: inset(3% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
html:has(body.motion-off)::view-transition-old(root),
html:has(body.motion-off)::view-transition-new(root) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  html:not(:has(body.motion-on))::view-transition-old(root),
  html:not(:has(body.motion-on))::view-transition-new(root) { animation: none; }
}

.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }
.portal-page { --nav-height: 74px; }
.portal-page :where(main):focus { outline: none; }
.portal-page .masthead { background: rgba(16,15,13,.96); }
.portal-page .masthead-inner { width: min(100% - clamp(1.5rem, 4vw, 5.5rem), 1510px); grid-template-columns: auto 1fr auto; gap: clamp(.8rem,2vw,2rem); }
.portal-page .main-nav { justify-content: center; gap: clamp(.8rem,1.45vw,2rem); }
.portal-page .main-nav a { font-size: .83rem; font-weight: 480; }
.brand-badge {
  width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center;
  position: relative; color: var(--gold); background: #2d251a; border: 1px solid #55412a;
}
.brand-badge .icon { width: 24px; height: 24px; transition: rotate .65s var(--ease), scale .65s var(--ease); }
.brand:hover .brand-badge .icon { rotate: 60deg; scale: 1.12; }
.brand-badge::after { content: ""; position: absolute; inset: 3px; border: 1px dashed #a4784152; pointer-events: none; }
.portal-page .brand { gap: .65rem; }
.portal-page .brand-text { font-weight: 610; line-height: 1.35; }
.portal-page .brand-text > span { letter-spacing: .105em; }
.workspace-menu { position: relative; }
.workspace-menu summary {
  min-height: 38px; display: flex; align-items: center; gap: .4rem; padding: .45rem .65rem; list-style: none;
  border: 1px solid #6e5434; color: var(--gold); background: #272015; cursor: pointer; font-size: .79rem; white-space: nowrap;
  transition: border-color .23s, background .23s;
}
.workspace-menu summary::-webkit-details-marker { display: none; }
.workspace-menu summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.workspace-menu summary:hover, .workspace-menu[open] summary { background: #3d2e1c; border-color: var(--gold-dark); }
.workspace-panel {
  position: absolute; inset: calc(100% + .75rem) 0 auto auto; width: 220px; background: #211b14; z-index: 20;
  padding: .75rem; border: 1px solid #7a5d3a; box-shadow: 0 15px 36px #0007; animation: appear .28s var(--ease) both;
}
.workspace-panel p { color: var(--subtle); font-size: .73rem; padding: .35rem .55rem .55rem; border-bottom: 1px solid var(--line); }
.workspace-panel a { display: flex; align-items: center; gap: .6rem; padding: .42rem .55rem; font-size: .85rem; }
.workspace-panel a .icon { color: var(--gold); }
.workspace-panel a:hover, .workspace-panel a[aria-current] { background: #3a2c1d; color: var(--gold); }
body:is([data-portal-role="guest"],[data-portal-role="viewer"]) [data-admin-link] { display: none; }
body:not([data-portal-role="guest"]) [data-guest-link],
body[data-portal-role="guest"] [data-account-link] { display: none; }
.session-link {
  min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .45rem .65rem; border: 1px solid var(--gold-dark); color: var(--gold); font-size: .78rem;
  font-weight: 560; white-space: nowrap; transition: background .23s, border-color .23s;
}
.session-account { background: #33271a; }
.session-login { background: var(--gold); border-color: var(--gold); color: #201811; }
.session-login:hover { background: #ffce88; }
.session-account:hover { background: #42311e; border-color: var(--gold); }
.workspace-panel a[data-account-link] { border-block-start: 1px solid var(--line); margin-block-start: .35rem; }
.page-edit-link { display: inline-flex; align-items: center; margin-top: .9rem; gap: .35rem; color: var(--gold); font-size: .79rem; }
.page-edit-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.restricted-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.restricted-actions .primary-action { margin-top: 0; }
.portal-page .motion-button { gap: .35rem; padding-inline: .55rem; }
.portal-page .page-progress { z-index: 1; }

.portal-page .home-hero { min-height: clamp(615px, calc(100svh - var(--nav-height) - 48px), 960px); }
.portal-page .hero-layout { grid-template-columns: 1.23fr .77fr; }
.portal-page .hero-copy { animation-duration: .95s; }
.portal-page .hero h1 { font-size: clamp(4.25rem,9vw,10.1rem); letter-spacing: -.047em; }
.hero-kicker { width: fit-content; padding: .3rem .65rem; border: 1px solid #ac825448; background: #20170f6e; }
.hero-kicker > span:first-child { width: 6px; height: 6px; transform: rotate(45deg); margin-inline: .16rem .25rem; }
.hero-actions { margin-top: 1.8rem; display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.hero-actions .primary-action { margin-top: 0; }
.glass-action {
  color: var(--text); background: #242019bb; border: 1px solid #65513a; cursor: pointer;
}
.glass-action:hover { color: var(--gold); background: #33281c; transform: translateY(-2px); }
.hero-actions .action { min-height: 50px; gap: 1.15rem; padding-inline: .95rem; }
.terrain-motion {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 44% 45%;
  opacity: 0; transition: opacity .8s var(--ease); pointer-events: none;
}
.terrain-motion.is-playing { opacity: 1; }
.motion-off .terrain-motion { display: none; }
.hero-visual { position: relative; display: grid; place-items: center; }
.radar-field {
  width: min(31vw, 27rem); aspect-ratio: 1; position: relative; border: 1px dashed #e8bf8495; border-radius: 50%;
  background: radial-gradient(circle,#d7a86922,transparent 58%); transform: translate(var(--pointer-x,0px),var(--pointer-y,0px)); animation: reticle-in 1.4s .35s var(--ease) both;
}
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0deg, #ffd18311 35deg, #ffd58a42 54deg, transparent 55deg); animation: spin 13s linear infinite; }
.radar-ring { position: absolute; inset: 13%; border: 1px solid #ffd29155; border-radius: 50%; }
.radar-ring.inner { inset: 31%; border-style: dashed; }
.radar-axis { position: absolute; inset: 0; background: linear-gradient(#f4c9864d,#f4c9864d) center / 115% 1px no-repeat,linear-gradient(#f4c9864d,#f4c9864d) center / 1px 115% no-repeat; }
.radar-point { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #ffe0a8; box-shadow: 0 0 14px 3px #e9aa5769; animation: reticle-pulse 3s infinite; }
.point-one { top: 18%; left: 63%; }
.point-two { top: 57%; left: 14%; animation-delay: -1s; }
.point-three { top: 80%; left: 52%; animation-delay: -1.8s; }
.radar-mark { position: absolute; inset: 37%; width: 26%; height: 26%; color: #ffcf8a; filter: drop-shadow(0 0 13px #ffc16d77); }
.hero-foot .terrain-caption { font: 10px Consolas, monospace; letter-spacing: .19em; }
.edge-bits i { animation: edge-in 1s var(--ease) both; }
.edge-bits i:nth-child(even) { animation-delay: .16s; }
@keyframes edge-in { from { scale: 0 1; opacity: 0; } to { scale: 1; opacity: 1; } }
.status-strip { background: #201b14; border-block: 1px solid #604729; }
.status-inner { display: flex; align-items: center; justify-content: space-between; min-height: 54px; gap: .65rem 1rem; font-size: .8rem; color: var(--muted); }
.status-inner > span { display: inline-flex; align-items: center; gap: .55rem; }
.status-inner time { color: var(--gold); direction: ltr; min-width: 3.2rem; font-family: Consolas,monospace; }
.status-mode i { width: 6px; height: 6px; display: inline-block; background: #b5c8a4; border-radius: 50%; }

.portal-section { background: radial-gradient(ellipse at 85% 0%,#33261a,transparent 55%),var(--background); }
.portal-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block-start: 1px solid #4e402e; border-inline-start: 1px solid #4e402e; }
.portal-card {
  min-height: 155px; padding: clamp(.9rem,2.4vw,1.75rem); display: grid; align-items: center; grid-template-columns: auto 1fr auto; gap: .9rem;
  position: relative; background: #1c1913; border-block-end: 1px solid #4e402e; border-inline-end: 1px solid #4e402e;
  transition: background .32s var(--ease), border-color .32s var(--ease);
}
.portal-card:hover { background: #302519; border-color: #8a633c; }
.portal-icon { width: 42px; height: 42px; border: 1px solid #624a30; background: #332719; display: grid; place-items: center; color: var(--gold); }
.portal-icon .icon { width: 22px; height: 22px; transition: transform .5s var(--ease); }
.portal-card:hover .portal-icon .icon { transform: scale(1.19) rotate(-8deg); }
.portal-card strong { display: block; font-size: clamp(1.05rem,1.7vw,1.45rem); font-weight: 630; }
.portal-card small { display: block; color: var(--muted); font-size: .85rem; margin-top: .18rem; }
.portal-open { color: var(--gold); transition: rotate .4s var(--ease); }
.portal-card:hover .portal-open { rotate: 90deg; }

.subhero { isolation: isolate; position: relative; min-height: 305px; border-block-end: 1px solid #50402d; background: #18140f; overflow: hidden; }
.subhero::before {
  content: ""; z-index: -2; position: absolute; inset: -2% -1%; opacity: .54;
  background: linear-gradient(270deg,#17130ff4 12%,#201710a8 49%,#3728194a),url("/assets/terrain.jpg") 26% 52% / cover;
  animation: camera-settle 2s var(--ease) both;
}
.subhero::after { content: ""; pointer-events: none; position: absolute; z-index: -1; inset: 0; background: linear-gradient(#dab78413 1px,transparent 1px),linear-gradient(90deg,#dab78413 1px,transparent 1px); background-size: 66px 66px; mask-image: linear-gradient(90deg,#000,transparent 77%); }
.subhero-inner { display: grid; grid-template-columns: 1.35fr .65fr; min-height: inherit; align-items: center; gap: 1.6rem; padding-block: 1.9rem 2.8rem; }
.subhero-body { animation: appear .65s var(--ease) both; }
.subhero-inner h1 { font-size: clamp(3.15rem,6.5vw,7rem); line-height: 1.16; font-weight: 660; margin: .25rem 0 .85rem; }
.subhero-description { max-width: 37rem; color: var(--muted); font-size: clamp(.95rem,1.6vw,1.08rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .65rem; color: var(--subtle); font-size: .78rem; margin-bottom: 1.75rem; }
.breadcrumbs a:hover, .breadcrumbs [aria-current] { color: var(--gold); }
.subhero-visual { position: relative; display: grid; place-items: center; width: min(76%, 230px); aspect-ratio: 1; color: var(--gold); justify-self: center; animation: reticle-in 1.1s .14s var(--ease) both; }
.subhero-visual b { width: 44%; height: 44%; display: grid; place-items: center; background: #292015ac; border: 1px solid #bd8a5266; transform: rotate(45deg); }
.subhero-visual .icon { width: 55%; height: 55%; transform: rotate(-45deg); }
.subhero-orbit { border: 1px dashed #ba8b517e; border-radius: 50%; position: absolute; inset: 0; animation: spin 25s linear infinite; }
.subhero-orbit::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: currentColor; top: 12%; left: 14%; box-shadow: 0 0 12px currentColor; }
.subhero-orbit-inner { inset: 14%; border-style: solid; opacity: .55; animation-duration: 20s; animation-direction: reverse; }
.page-leadership .leadership { padding-block-start: clamp(3.25rem,8vw,7.5rem); }
.portal-page .leader-card button { background: radial-gradient(ellipse at 0% 0%,#4b3522,transparent 65%),#222016; }

.media-section { background: radial-gradient(ellipse at 13% 0%,#312418,transparent 57%),#181510; }
.media-section .section-head > .action { justify-self: end; }
.news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.1rem; }
.news-card > button {
  display: flex; flex-direction: column; width: 100%; height: 100%; border: 1px solid #53422e; padding: 0; text-align: start;
  background: #211b14; cursor: pointer; transition: border-color .25s, translate .25s var(--ease);
}
.news-card > button:hover { border-color: #ad7d48; translate: 0 -4px; }
.news-art { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 2.05; overflow: hidden; isolation: isolate; color: var(--gold); }
.news-art::before, .news-art::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.news-art::before { background: linear-gradient(120deg,#34221598,#1a140e66),url("/assets/terrain.jpg") 20% 28% / cover; transition: transform .68s var(--ease); }
.news-art.training::before { background-position: 75% 24%; filter: saturate(.6) hue-rotate(8deg); }
.news-art.guide::before { background-position: 33% 83%; filter: saturate(.55); }
.news-card:hover .news-art::before { transform: scale(1.11); }
.news-art::after { inset: .75rem; border: 1px solid #c4976785; }
.news-art .icon { width: 2.9rem; height: 2.9rem; filter: drop-shadow(0 0 18px #110b04); }
.news-body { flex: 1; display: flex; flex-direction: column; padding: clamp(1rem,2.1vw,1.5rem); }
.news-body small { color: var(--gold); font-size: .76rem; }
.news-body strong { display: block; margin-block: .2rem .5rem; font-weight: 620; font-size: clamp(1.08rem,1.8vw,1.4rem); }
.news-body > span { color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.news-body b { margin-top: auto; display: flex; gap: .4rem; align-items: center; color: var(--gold); font-size: .79rem; font-weight: 480; }
.portal-metrics { margin: 1.1rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3,1fr); background: #211b13; border: 1px solid #58442e; }
.portal-metrics li { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .65rem .4rem; color: var(--muted); font-size: .83rem; }
.portal-metrics li + li { border-inline-start: 1px solid #58442e; }
.portal-metrics strong { color: var(--gold); font-size: clamp(1.35rem,2.6vw,2.1rem); margin-inline: .1rem; font-weight: 590; }
.initiative { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; padding: 1.15rem; border: 1px solid #654d32; background: #261e14; }
.initiative h3 { font-weight: 630; }
.initiative p { color: var(--muted); font-size: .9rem; }
.initiative .action { margin-inline-start: auto; white-space: nowrap; }
.media-filters, .directory-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.media-filters button, .directory-tabs button {
  padding: .45rem .8rem; min-height: 41px; background: #211b14; border: 1px solid #53422e; color: var(--muted); cursor: pointer;
  transition: background .24s, color .24s, border-color .24s;
}
.media-filters button:hover, .directory-tabs button:hover { color: var(--gold); border-color: #a47746; }
.media-filters button[aria-pressed="true"], .directory-tabs button[aria-pressed="true"] { color: var(--gold); background: #322719; border-color: #a47746; }

.directory-section { background: radial-gradient(ellipse at 85% 10%,#33261a,transparent 64%),var(--background); }
.directory-controls { padding: clamp(.85rem,2.6vw,1.75rem); border: 1px solid #4e402e; background: #1b1914; }
.directory-navigation { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; margin-block-end: 1.1rem; }
.directory-navigation .directory-tabs { margin-block-end: 0; }
.directory-edit {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; min-height: 41px;
  color: #201811; background: var(--gold); border: 1px solid var(--gold); font-size: .85rem; font-weight: 560;
}
.directory-edit:hover { background: #ffce88; }
.directory-login { color: var(--gold); background: #2c2317; border-color: #765936; }
.directory-login:hover { background: #3b2b1a; }
.directory-filters { display: grid; grid-template-columns: 1.1fr .7fr auto; gap: .75rem; align-items: end; }
.directory-filters label { min-width: 0; display: grid; gap: .3rem; color: var(--muted); font-size: .81rem; }
.directory-filters input, .directory-filters select {
  width: 100%; min-height: 46px; padding: .45rem .65rem; border: 1px solid #574630; background: #18150f; font: inherit; color: var(--text);
}
.directory-filters input { padding-inline-start: 2.4rem; }
.field-with-icon { position: relative; }
.field-with-icon .icon { position: absolute; inset: 14px .7rem auto auto; color: var(--gold); }
.directory-filters .action { min-height: 46px; }
.table-meta { display: flex; justify-content: space-between; gap: .7rem; margin: 1.5rem 0 .45rem; font-size: .83rem; color: var(--subtle); }
.table-scroll { overflow: auto; border: 1px solid #4e402e; }
.table-scroll table { width: 100%; border-collapse: collapse; text-align: start; font-size: .91rem; }
.table-scroll :is(td,th) { padding: .65rem .85rem; text-align: start; }
.table-scroll th { white-space: nowrap; font-size: .79rem; color: var(--subtle); background: #282117; }
.table-scroll td { border-top: 1px solid #473929; color: var(--muted); }
.table-scroll tbody tr:hover { background: #262016; }
.roster-person { display: flex; align-items: center; gap: .65rem; color: var(--text); }
.roster-avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid #775936; background: #382919; color: var(--gold); }
.roster-code { font: .82rem Consolas,monospace; white-space: nowrap; }
.table-detail { color: var(--gold); font-size: .82rem; border: 1px solid #745636; background: none; cursor: pointer; padding: .2rem .55rem; }
.table-detail:hover { background: #3b2c1e; }
.empty-state { padding: 1rem; color: var(--muted); }
.new-footer { display: grid; gap: 1.15rem; }
.new-footer .footer-inner > p { color: var(--muted); font-size: .84rem; }
.new-footer .footer-top { color: var(--gold); white-space: nowrap; font-size: .84rem; }
.new-footer nav { border-top: 1px solid var(--line); padding-top: .8rem; display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.35rem; color: var(--muted); font-size: .81rem; }
.new-footer nav a:hover { color: var(--gold); }

@media (max-width: 1170px) {
  .portal-page .masthead-inner { gap: .6rem; }
  .portal-page .main-nav { gap: clamp(.6rem,1.3vw,1rem); }
  .portal-page .brand-text { font-size: .8rem; }
  .portal-page .motion-button span:last-child, .portal-page .workspace-menu summary > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .portal-page .motion-button, .portal-page .workspace-menu summary { min-width: 36px; }
}
@media (max-width: 1020px) {
  .portal-page { --nav-height: 65px; }
  .portal-page .masthead-inner { grid-template-columns: 1fr auto; }
  .portal-page .main-nav { display: none; position: absolute; height: auto; inset: calc(var(--nav-height) - 1px) 0 auto; padding: .45rem var(--edge) .85rem; background: #191611; border-bottom: 1px solid #6b5235; gap: .05rem; }
  .portal-page .main-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; }
  .portal-page .main-nav a { place-items: center start; padding: .45rem .25rem; }
  .portal-page .main-nav a::after { width: 2rem; inset-inline: .25rem auto; transform-origin: right; }
  .portal-page .menu-button { display: inline-flex; flex-direction: column; width: 40px; padding: .5rem; gap: 5px; }
  .portal-page .menu-button span { width: 15px; height: 1px; background: currentColor; transition: transform .25s; }
  .portal-page .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .portal-page .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .workspace-panel { inset-inline: auto 0; }
  .portal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 730px) {
  .portal-page .hero h1 { font-size: clamp(3.1rem,12vw,6.2rem); }
  .portal-page .hero-layout { grid-template-columns: 1fr; }
  .hero-visual { position: absolute; inset-inline-end: -5%; top: 8%; opacity: .48; }
  .radar-field { width: min(57vw, 17rem); }
  .terrain-motion { object-position: 37% center; }
  .portal-page .home-hero { min-height: min(712px, calc(100svh - var(--nav-height))); }
  .hero-foot .terrain-caption { font-size: 8px; }
  .portal-section .section-head, .media-section .section-head { margin-bottom: 1.5rem; }
  .media-section .section-head > .action { justify-self: start; }
  .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .subhero-inner { grid-template-columns: 1fr .4fr; gap: .6rem; }
  .subhero-visual { width: 90%; }
  .subhero { min-height: 255px; }
  .breadcrumbs { margin-bottom: 1.1rem; }
  .directory-filters { grid-template-columns: 1fr 1fr; }
  .directory-filters .action { grid-column: 1 / -1; }
}
@media (max-width: 505px) {
  .brand-badge { width: 35px; height: 35px; flex-basis: 35px; }
  .brand-badge .icon { width: 20px; height: 20px; }
  .portal-page .brand { gap: .43rem; }
  .portal-page .brand-text { font-size: .76rem; }
  .portal-page .brand-text > span { font-size: .48rem; }
  .portal-page .masthead-actions { gap: .25rem; }
  .session-link { font-size: .72rem; padding-inline: .45rem; }
  .session-link .icon { display: none; }
  .hero-actions .action { gap: .5rem; min-height: 44px; padding-inline: .64rem; font-size: .78rem; }
  .status-inner { flex-wrap: wrap; justify-content: flex-start; gap: .2rem .8rem; padding-block: .6rem; font-size: .72rem; }
  .hero-foot .terrain-caption { display: none; }
  .portal-grid, .news-grid { grid-template-columns: 1fr; }
  .portal-card { min-height: 96px; }
  .portal-metrics li { flex-direction: column; gap: .1rem; text-align: center; font-size: .72rem; }
  .initiative { display: grid; grid-template-columns: auto 1fr; }
  .initiative .action { grid-column: 2; margin-inline-start: 0; min-height: 40px; padding-inline: .65rem; font-size: .8rem; }
  .subhero-inner h1 { font-size: clamp(2.25rem,9.9vw,3rem); }
  .subhero { min-height: 225px; }
  .directory-filters { grid-template-columns: 1fr; }
  .table-scroll table { min-width: 520px; }
}
@media (max-width: 345px) {
  .portal-page .brand-text { font-size: .72rem; }
  .portal-page .masthead .brand-text { max-width: 6rem; white-space: normal; }
  .portal-page .masthead .motion-button, .portal-page .workspace-menu summary, .portal-page .menu-button { min-width: 32px; width: 32px; }
  .portal-page .brand-text > span { display: none; }
  .portal-page .hero h1 { font-size: 2.89rem; }
}
