:root {
  --ink: #17232d;
  --ink-2: #263642;
  --paper: #edf0ec;
  --paper-2: #f8f9f6;
  --line: rgba(23, 35, 45, 0.17);
  --line-light: rgba(255, 255, 255, 0.25);
  --muted: #69767e;
  --red: #9e3338;
  --red-deep: #79252b;
  --green: #2b765e;
  --off: #7d8588;
  --shadow: 0 24px 70px rgba(14, 20, 25, 0.16);
  --display: "Barlow Condensed", Impact, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); }
body { min-height: 100%; margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #d98085; outline-offset: 3px; }

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.04), transparent 33%),
    radial-gradient(circle at 88% 9%, rgba(109, 132, 145, 0.28), transparent 34%),
    #121a21;
}

.masthead {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 3.6rem) clamp(1.25rem, 6vw, 6rem) 1rem;
  color: #f6f7f3;
}

.brand-lockup { display: flex; gap: clamp(1rem, 2vw, 1.65rem); align-items: center; }
.brand-roundel {
  width: clamp(112px, 11vw, 168px);
  aspect-ratio: 1;
  flex: none;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 32%, rgba(73,107,114,.28), transparent 48%),
    radial-gradient(circle at 65% 70%, rgba(158,51,56,.20), transparent 62%);
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.32));
}
.brand-roundel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.04) contrast(1.03);
}

.brand-copy { max-width: 790px; }
.eyebrow { margin: 0 0 .45rem; font-size: .67rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--red); }
.masthead .eyebrow { color: #d9898d; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; font-weight: 700; }
h1 { margin-bottom: .58rem; font-size: clamp(2.1rem, 4.4vw, 4.8rem); line-height: .83; letter-spacing: .018em; text-wrap: balance; }
.intro { max-width: 650px; margin: 0 0 .62rem; color: #c7d0d4; font-size: clamp(.86rem, 1.3vw, 1rem); line-height: 1.65; }
.unit-line { margin: 0; color: #fafbf9; font-family: var(--display); font-size: .96rem; font-weight: 600; letter-spacing: .085em; }
.unit-line span { color: #d9898d; padding: 0 .3rem; }
.prototype-note { margin: .1rem 0 0; color: #aeb8bd; letter-spacing: .17em; font-family: var(--display); font-size: .75rem; white-space: nowrap; }

.sector-stage {
  --panel-slant: clamp(14px, 1.65vw, 28px);
  --panel-pad-x: clamp(.7rem, 1.6vw, 1.8rem);
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  isolation: isolate;
  min-height: clamp(390px, 51vh, 630px);
  margin: 0 clamp(0rem, 1.4vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  background: #1a2833;
}
.sector-stage::before { content:""; position:absolute; inset:0; z-index:0; pointer-events:none; background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent); mix-blend-mode: overlay; }
.sector {
  position: relative;
  z-index: 1;
  width: calc(100% + var(--panel-slant));
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: clamp(1rem, 2vw, 2.3rem) var(--panel-pad-x) clamp(1.2rem, 2.5vw, 2.7rem) calc(var(--panel-pad-x) + var(--panel-slant));
  border: 0;
  color: #f7f8f5;
  overflow: hidden;
  clip-path: polygon(var(--panel-slant) 0, 100% 0, calc(100% - var(--panel-slant)) 100%, 0 100%);
  transition: width .45s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.sector:first-child {
  padding-left: var(--panel-pad-x);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--panel-slant)) 100%, 0 100%);
}
.sector:last-child {
  width: 100%;
  padding-right: var(--panel-pad-x);
  clip-path: polygon(var(--panel-slant) 0, 100% 0, 100% 100%, 0 100%);
}
.sector::before { content:""; position:absolute; inset:0; z-index:-2; transition: transform .7s ease, opacity .4s ease; background: var(--sector-bg); transform: scale(1.02); }
.sector::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, rgba(9,15,20,.10) 0%, rgba(9,15,20,.74) 70%, rgba(9,15,20,.96) 100%); transition: background .35s ease; }
.sector-info { --sector-bg: linear-gradient(150deg, #495f6c 0%, #263742 44%, #13232d 100%); }
.sector-recruit { --sector-bg: linear-gradient(150deg, #633339 0%, #3b2e36 44%, #1e2730 100%); }
.sector-ops { --sector-bg: linear-gradient(150deg, #4c5b54 0%, #2d3e3a 44%, #17242a 100%); }
.sector-gallery { --sector-bg: linear-gradient(150deg, #6c5e4e 0%, #3e3a37 44%, #172129 100%); }
.sector-tech { --sector-bg: linear-gradient(150deg, #496b72 0%, #2a3f48 44%, #16232b 100%); }
.sector-index { position: absolute; top: 1.15rem; left: calc(var(--panel-pad-x) + var(--panel-slant)); color: rgba(255,255,255,.68); font-family: var(--display); font-weight: 600; letter-spacing: .12em; font-size: .75rem; }
.sector:first-child .sector-index { left: var(--panel-pad-x); }
.sector-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.45rem, 2.45vw, 3.25rem); line-height: .86; letter-spacing: .02em; }
.sector-summary { max-width: 225px; margin-top: .8rem; min-height: 3.4em; color: rgba(255,255,255,.82); font-size: .76rem; line-height: 1.45; opacity: .88; transform: translateY(3px); transition: opacity .25s ease, transform .25s ease; }
.sector-action { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; color: #fff; font-size: .69rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; opacity: 0; transform: translateY(8px); transition: opacity .28s ease, transform .28s ease; }
.sector:hover, .sector:focus-visible { width: calc(100% + var(--panel-slant) + 10%); filter: saturate(1.08); }
.sector:last-child:hover, .sector:last-child:focus-visible { width: 110%; }
.sector:hover::before, .sector:focus-visible::before { transform: scale(1.10); }
.sector:hover::after, .sector:focus-visible::after { background: linear-gradient(180deg, rgba(9,15,20,.05) 0%, rgba(9,15,20,.63) 66%, rgba(9,15,20,.94) 100%); }
.sector:hover .sector-summary, .sector:focus-visible .sector-summary { opacity: 1; transform: translateY(0); }
.sector:hover .sector-action, .sector:focus-visible .sector-action { opacity: 1; transform: translateY(0); }
.sector-stage:has(.sector:hover) .sector:not(:hover) { filter: brightness(.66) saturate(.65); }

.footer-bar { display:flex; justify-content:space-between; gap: 1rem; padding: 1.1rem clamp(1.25rem, 6vw, 6rem) 1.4rem; color: #aab4b9; font-size: .67rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }

.detail-overlay { position: fixed; inset: 0; z-index: 20; display: none; opacity: 0; transition: opacity .3s ease; }
.detail-overlay.is-open { display: block; opacity: 1; }
.detail-backdrop { position: absolute; inset: 0; background: rgba(9, 14, 18, .68); backdrop-filter: blur(4px); }
.detail-shell { position: absolute; inset: 0; overflow-y: auto; background: var(--paper); color: var(--ink); transform: translateY(18px); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.detail-overlay.is-open .detail-shell { transform: translateY(0); }
.detail-topbar { position: sticky; top: 0; z-index: 5; display:flex; justify-content:space-between; align-items:center; gap:1rem; padding: 1rem clamp(1.25rem, 5vw, 6rem); border-bottom: 1px solid var(--line); background: rgba(248,249,246,.93); backdrop-filter: blur(13px); }
.back-button, .secondary-button { display:inline-flex; align-items:center; gap:.6rem; padding:.7rem .85rem; border:1px solid var(--ink); background: transparent; color:var(--ink); text-transform:uppercase; letter-spacing:.085em; font-size:.68rem; font-weight:700; transition: background .2s ease,color .2s ease; }
.back-button:hover, .secondary-button:not(:disabled):hover { background:var(--ink); color:#fff; }
.detail-brand { color: var(--muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.detail-brand span { color: var(--red); }
.detail-view { display: none; max-width: 1370px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 6rem) clamp(1.25rem, 5vw, 5rem) clamp(4rem, 8vw, 7rem); }
.detail-view.active { display: block; animation: fadeIn .38s ease both; }
@keyframes fadeIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform:translateY(0); } }
.content-heading { max-width: 780px; margin-bottom: clamp(2rem, 4vw, 4rem); }
.content-heading h2 { margin-bottom: .7rem; font-size: clamp(3.4rem, 6.4vw, 7rem); line-height: .76; letter-spacing: .015em; }
.content-heading p:last-child { max-width: 670px; margin-bottom: 0; color: var(--ink-2); font-size: clamp(.92rem, 1.2vw, 1.06rem); line-height:1.7; }
.narrow-heading { max-width: 690px; }

.information-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(270px,.72fr); gap: 1.2rem; align-items: start; }
.side-stack { display:grid; gap:1.2rem; }
.content-card { padding: clamp(1.2rem, 2.5vw, 2.25rem); border: 1px solid var(--line); background: var(--paper-2); box-shadow: 0 10px 24px rgba(24,34,43,.04); }
.card-title-row { display:flex; gap:1rem; justify-content:space-between; align-items:flex-start; padding-bottom:1.1rem; border-bottom:1px solid var(--line); }
.content-card h3 { margin: 0; font-size: clamp(1.65rem, 2.4vw, 2.7rem); line-height: .8; }
.sync-status { margin: .2rem 0 0; color: var(--muted); font-size:.68rem; line-height:1.5; text-align:right; }
.card-intro { margin:1.25rem 0 1.45rem; color:var(--muted); font-size:.8rem; line-height:1.65; }
.roster-groups { display:grid; gap:1.4rem; }
.roster-group { border-top:1px solid var(--line); padding-top:.9rem; }
.roster-group:first-child { border-top:0; padding-top:0; }
.roster-group-head { display:flex; justify-content:space-between; gap:.5rem; align-items:baseline; margin-bottom:.7rem; }
.roster-group h4 { margin:0; font-family:var(--display); font-size:1.25rem; text-transform:uppercase; letter-spacing:.05em; }
.roster-group-head span { color:var(--muted); font-size:.62rem; text-transform:uppercase; letter-spacing:.1em; }
.roster-table { display:grid; gap:.1rem; }
.roster-subgroup { min-width:0; }
.roster-subgroup + .roster-subgroup { margin-top:.95rem; padding-top:.95rem; border-top:1px solid var(--line); }
.roster-subgroup-head { display:flex; justify-content:space-between; gap:.7rem; align-items:baseline; margin:0 0 .46rem; padding:0 .55rem; }
.roster-subgroup-head strong { color:var(--ink-2); font-size:.61rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.roster-subgroup-head span { color:var(--muted); font-size:.58rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; white-space:nowrap; }
.roster-subgroup-green { margin-left:.05rem; padding-left:.72rem; border-left:2px solid rgba(158,51,56,.58); background:linear-gradient(90deg,rgba(158,51,56,.055),rgba(158,51,56,0) 72%); }
.roster-subgroup-green .roster-subgroup-head strong { color:var(--red); }
.roster-row { display:grid; grid-template-columns: 6.9rem minmax(0,1.02fr) minmax(0,.74fr) minmax(11rem,1.45fr) max-content; align-items:center; gap:.7rem; padding:.75rem .55rem; border:1px solid transparent; border-bottom-color:var(--line); font-size:.72rem; }
.roster-row > * { min-width:0; }
.roster-row:last-child { border-bottom:0; }
.roster-row:hover { background:#eff2ee; border-color:var(--line); }
.roster-rank { font-weight:700; color:var(--ink-2); white-space:nowrap; }
.roster-name { font-weight:700; overflow-wrap:anywhere; }
.roster-unit { color:var(--muted); font-size:.66rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; overflow-wrap:anywhere; }
.roster-specialties { color:var(--muted); font-size:.66rem; line-height:1.45; }
.specialty-stack, .specialty-list { display:flex; flex-wrap:wrap; align-items:center; gap:.28rem; }
.specialty-tag { display:inline-flex; align-items:center; min-height:1.45rem; padding:.12rem .35rem; border:1px solid rgba(23,35,45,.16); background:#f6f7f4; color:var(--ink-2); font-size:.58rem; font-weight:700; letter-spacing:.045em; line-height:1.15; text-transform:uppercase; }
.no-specialties { color:var(--muted); }
.specialty-toggle { display:inline-flex; align-items:center; min-height:1.45rem; padding:.12rem .35rem; border:1px dashed rgba(23,35,45,.34); background:transparent; color:var(--red); font:inherit; font-size:.58rem; font-weight:700; letter-spacing:.045em; line-height:1.15; text-transform:uppercase; cursor:pointer; }
.specialty-toggle:hover { border-color:var(--red); background:rgba(158,51,56,.06); }
.specialty-toggle:focus-visible { outline:2px solid #d98085; outline-offset:2px; }
.specialty-list-extra { flex-basis:100%; margin-top:.35rem; }
.specialty-list-extra[hidden] { display:none; }
.duty { display:inline-flex; align-items:center; gap:.34rem; color:var(--muted); font-size:.61rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; white-space:nowrap; }
.duty::before { content:""; width:.45rem; aspect-ratio:1; border-radius:50%; background:var(--off); box-shadow:0 0 0 3px rgba(125,133,136,.14); }
.duty.on { color:var(--green); }
.duty.on::before { background:var(--green); box-shadow:0 0 0 3px rgba(43,118,94,.14); }
.empty-roster { padding: 1rem; border: 1px dashed var(--line); color: var(--muted); font-size: .8rem; }

.schedule-list { margin:1.2rem 0 0; display:grid; gap:.8rem; }
.schedule-list div { padding-bottom:.8rem; border-bottom:1px solid var(--line); }
.schedule-list div:last-child { padding-bottom:0; border-bottom:0; }
.schedule-list dt { margin-bottom:.23rem; font-size:.62rem; text-transform:uppercase; letter-spacing:.11em; font-weight:700; color:var(--red); }
.schedule-list dd { margin:0; font-size:.77rem; line-height:1.45; color:var(--ink-2); }
.unit-list { margin:1.1rem 0 0; padding:0; list-style:none; display:grid; gap:.9rem; }
.unit-list li { display:grid; gap:.2rem; padding-left:.8rem; border-left:2px solid var(--red); }
.unit-list strong { font-family:var(--display); font-size:1.08rem; letter-spacing:.05em; }
.unit-list span { color:var(--muted); font-size:.7rem; line-height:1.4; }
.muted-card { background:#e2e7e2; }
.compact-card p:last-child { margin-bottom:0; color:var(--muted); font-size:.78rem; line-height:1.65; }

.recruitment-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(285px,.75fr); gap:1.25rem; align-items:start; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.form-span-2 { grid-column:1 / -1; }
label { display:grid; gap:.42rem; }
label > span { font-size:.66rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; }
input, select, textarea { width:100%; border:1px solid #aeb9b9; background:#fff; color:var(--ink); padding:.78rem .8rem; border-radius:0; transition:border-color .2s ease, box-shadow .2s ease; }
textarea { resize:vertical; min-height:5rem; line-height:1.5; }
input:focus,select:focus,textarea:focus { border-color:var(--red); box-shadow:0 0 0 3px rgba(158,51,56,.13); outline:0; }
label small { margin-top:-.1rem; color:var(--muted); font-size:.64rem; text-align:right; }
.enlist-rules { margin-top:1.25rem; padding:1.05rem 1.1rem; border:1px solid var(--line); background:#eef1ee; }
.rules-heading { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; }
.rules-heading .eyebrow { margin-bottom:.25rem; }
.rules-heading h3 { margin:0; font-size:1.55rem; }
.rules-required { flex:0 0 auto; padding:.28rem .4rem; border:1px solid rgba(158,51,56,.45); color:var(--red); font-size:.55rem; font-weight:700; letter-spacing:.11em; line-height:1; }
.enlist-rules ul { display:grid; gap:.42rem; margin:.95rem 0 0; padding-left:1.05rem; color:var(--ink-2); font-size:.72rem; line-height:1.45; }
.enlist-rules li::marker { color:var(--red); }
.rules-check { display:flex; align-items:flex-start; gap:.7rem; margin:1.25rem 0; }
.rules-check input { width:1rem; height:1rem; margin:.05rem 0 0; accent-color:var(--red); }
.rules-check span { font-size:.72rem; letter-spacing:0; line-height:1.5; text-transform:none; }
.primary-button { display:inline-flex; align-items:center; gap:.7rem; padding:.95rem 1.05rem; border:1px solid var(--red); background:var(--red); color:#fff; font-family:var(--display); font-size:1.05rem; line-height:1; font-weight:600; text-transform:uppercase; letter-spacing:.07em; transition:background .2s ease, transform .2s ease; }
.primary-button:hover { background:var(--red-deep); transform:translateY(-1px); }
.form-status { min-height:1.3rem; margin:1rem 0 0; color:var(--muted); font-size:.73rem; line-height:1.55; }
.form-status.error { color:#a21f2a; }
.application-flow { padding:clamp(1.2rem,2.5vw,2.2rem); border-top:4px solid var(--red); background:var(--ink); color:#fff; }
.application-flow .eyebrow { color:#d9898d; }
.application-flow ol { margin:1.2rem 0 1.3rem; padding:0; list-style:none; display:grid; gap:1.05rem; }
.application-flow li { display:grid; grid-template-columns:1.65rem 1fr; gap:.7rem; }
.application-flow li > span { color:#d9898d; font-family:var(--display); font-size:1.1rem; line-height:1; }
.application-flow strong { font-size:.78rem; text-transform:uppercase; letter-spacing:.07em; }
.application-flow p { margin:.28rem 0 0; color:#bdc7cc; font-size:.72rem; line-height:1.5; }
.notice { margin:0; padding-top:1rem; border-top:1px solid rgba(255,255,255,.22); color:#dce2e3 !important; font-size:.68rem !important; }

.placeholder-panel { position:relative; overflow:hidden; min-height:290px; padding:clamp(1.6rem,4vw,4rem); background:linear-gradient(145deg,#1b2833,#2c3c43); color:#fff; }
.placeholder-panel::after { content:""; position:absolute; width:470px; aspect-ratio:1; border:1px solid rgba(255,255,255,.22); border-radius:50%; right:-120px; bottom:-210px; }
.placeholder-mark { color:#d9898d; font-family:var(--display); font-size:5rem; line-height:.7; }
.placeholder-panel h3 { position:relative; max-width:540px; margin:1.5rem 0 .7rem; font-size:clamp(2rem,4vw,4.3rem); line-height:.82; }
.placeholder-panel p { position:relative; max-width:640px; margin:0; color:#c5d0d3; font-size:.84rem; line-height:1.7; }
.gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:200px; gap:1rem; }
.gallery-placeholder { display:flex; flex-direction:column; justify-content:flex-end; padding:1.1rem; background:linear-gradient(145deg,#60766d,#253940 62%,#19272f); color:#fff; overflow:hidden; position:relative; }
.gallery-placeholder::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent,rgba(5,13,17,.68)); }
.gallery-placeholder:nth-child(2) { background:linear-gradient(145deg,#58606f,#2c3740 62%,#19272f); }
.gallery-placeholder:nth-child(3) { background:linear-gradient(145deg,#7a6047,#343b3d 62%,#19272f); }
.gallery-placeholder:nth-child(4) { background:linear-gradient(145deg,#3f6772,#273942 62%,#19272f); }
.gallery-placeholder > * { position:relative; z-index:1; }
.gallery-placeholder.large { grid-row:span 2; grid-column:span 2; }
.gallery-placeholder span { color:#f0b1b4; font-family:var(--display); font-size:2rem; }
.gallery-placeholder p { margin:.3rem 0 0; font-family:var(--display); font-size:1.45rem; text-transform:uppercase; letter-spacing:.05em; }
.tech-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.2rem; }
.secondary-button { margin-top:1.2rem; }
.secondary-button:disabled { border-color:#b4bdc1; color:#7b8589; cursor:not-allowed; }
.support-list { margin:1.1rem 0 0; padding:0; list-style:none; display:grid; gap:.65rem; }
.support-list li { padding-left:.95rem; position:relative; color:var(--ink-2); font-size:.78rem; line-height:1.4; }
.support-list li::before { content:""; position:absolute; top:.45em; left:0; width:.4rem; height:.4rem; border:1px solid var(--red); transform:rotate(45deg); }

@media (max-width: 930px) {
  .masthead { padding-bottom:1.4rem; }
  .sector-stage { min-height: 480px; --panel-slant: clamp(10px, 2vw, 18px); }
  .sector-summary { display:none; }
  .information-grid, .recruitment-layout { grid-template-columns:1fr; }
  .side-stack { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .muted-card { display:none; }
  .roster-row { grid-template-columns:5.8rem minmax(0,1fr) minmax(0,.72fr) minmax(0,1.15fr) max-content; gap:.45rem; }
}

@media (max-width: 720px) {
  .site-shell { overflow:visible; }
  .masthead { align-items:flex-start; padding-top:1.35rem; }
  .brand-lockup { gap:.85rem; align-items:flex-start; }
  .brand-roundel { width:82px; margin-top:.1rem; }
  h1 { font-size:clamp(2.15rem,11vw,3.3rem); }
  .intro { max-width:440px; font-size:.78rem; }
  .unit-line { font-size:.75rem; line-height:1.45; }
  .prototype-note { display:none; }
  .sector-stage { display:grid; min-height:0; margin:0 .75rem; overflow:visible; border:0; background:transparent; box-shadow:none; gap:.72rem; }
  .sector-stage::before { display:none; }
  .sector { width:auto !important; min-height:115px; margin:0 !important; padding:1rem 1.15rem 1.1rem !important; border:1px solid rgba(255,255,255,.22); box-shadow:0 10px 20px rgba(0,0,0,.16); clip-path:none; }
  .sector-index, .sector:not(:first-child) .sector-index { left:auto; right:1rem; top:1rem; }
  .sector-title { font-size:2rem; }
  .sector-summary { display:block; min-height:0; margin-top:.35rem; max-width:90%; font-size:.68rem; }
  .sector-action { opacity:1; transform:none; margin-top:.55rem; }
  .sector:hover,.sector:focus-visible { flex-grow:unset; }
  .sector-stage:has(.sector:hover) .sector:not(:hover) { filter:none; }
  .footer-bar { padding:1.4rem 1.2rem 1.6rem; font-size:.56rem; }
  .detail-topbar { padding:.85rem 1rem; }
  .detail-brand { display:none; }
  .detail-view { padding:2.1rem 1rem 3.5rem; }
  .content-heading h2 { font-size:4rem; }
  .side-stack,.tech-grid { grid-template-columns:1fr; }
  .form-grid { grid-template-columns:1fr; }
  .rules-heading { display:grid; gap:.65rem; }
  .rules-required { width:max-content; }
  .form-span-2 { grid-column:auto; }
  .roster-row { grid-template-columns:1fr auto; align-items:start; gap:.4rem .7rem; padding:.8rem .1rem; }
  .roster-rank { grid-column:1; }
  .roster-name { grid-column:1; font-size:.85rem; }
  .roster-unit { grid-column:1; }
  .roster-specialties { grid-column:1; }
  .duty { grid-column:2; grid-row:1 / span 4; align-self:center; }
  .gallery-grid { grid-template-columns:1fr 1fr; grid-auto-rows:150px; }
  .gallery-placeholder.large { grid-column:span 2; grid-row:span 2; }
}

@media (max-width: 410px) {
  .brand-roundel { display:none; }
  .masthead { padding-left:1.15rem; padding-right:1.15rem; }
  .gallery-grid { grid-template-columns:1fr; }
  .gallery-placeholder.large { grid-column:auto; grid-row:span 2; }
}

/* --- Information page, roster insignia and Discord auth entry point --- */
.auth-menu {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-width: 9.5rem;
}
.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: .68rem .9rem;
  border: 1px solid rgba(255,255,255,.58);
  background: rgba(12, 21, 27, .34);
  color: #f4f6f2;
  font-family: var(--display);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .11em;
  line-height: 1;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.login-button:hover {
  border-color: #d9898d;
  background: rgba(158,51,56,.28);
  transform: translateY(-1px);
}
.auth-feedback {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  z-index: 8;
  width: min(20rem, 78vw);
  margin: 0;
  padding: .68rem .75rem;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(11, 18, 23, .94);
  color: #dce4e5;
  box-shadow: 0 14px 28px rgba(0,0,0,.24);
  font-size: .67rem;
  line-height: 1.55;
  text-align: left;
}
.profile-menu { position: relative; }
.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.35rem;
  padding: .36rem .55rem .36rem .38rem;
  border: 1px solid rgba(255,255,255,.46);
  background: rgba(12, 21, 27, .34);
  color: #f4f6f2;
}
.profile-avatar {
  display: grid;
  width: 1.58rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
}
.profile-name {
  max-width: 9.5rem;
  overflow: hidden;
  font-family: var(--display);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.profile-chevron { color: #d9898d; font-size: 1rem; line-height: .7; }
.profile-popover {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  z-index: 8;
  display: grid;
  min-width: 12rem;
  padding: .4rem;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(11, 18, 23, .97);
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
}
.profile-role { margin: .34rem .4rem .55rem; color: #bdc7cc; font-size: .63rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.profile-admin-link, .profile-logout-link {
  width: 100%;
  padding: .58rem .6rem;
  border: 0;
  background: transparent;
  color: #f4f6f2;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}
.profile-admin-link:hover, .profile-logout-link:hover { background: rgba(255,255,255,.08); }
.profile-admin-link { color: #e3a0a4; }

.information-view {
  max-width: none;
  min-height: calc(100vh - 4.4rem);
  background:
    linear-gradient(90deg, rgba(237,240,236,.96) 0%, rgba(237,240,236,.89) 39%, rgba(237,240,236,.70) 72%, rgba(19,42,58,.46) 100%),
    linear-gradient(180deg, rgba(10,24,34,.04), rgba(10,24,34,.20)),
    url("assets/information-background.jpg") center / cover no-repeat;
}
.information-view > .content-heading,
.information-view > .information-grid {
  width: min(1370px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.information-view .content-card {
  background: rgba(248,249,246,.88);
  backdrop-filter: blur(7px);
}
.roster-group-identity { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.roster-group-logo {
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(9,15,20,.18));
}
.utility-list {
  display: grid;
  gap: .48rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}
.utility-list li {
  position: relative;
  padding: .5rem .55rem .5rem 1.2rem;
  border: 1px solid var(--line);
  background: rgba(237,240,236,.62);
  color: var(--ink-2);
  font-size: .69rem;
  font-weight: 600;
  line-height: 1.35;
}
.utility-list li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: .54rem;
  width: .32rem;
  height: .32rem;
  border: 1px solid var(--red);
  transform: translateY(-50%) rotate(45deg);
}
.cores-card {
  background: linear-gradient(145deg, rgba(224,231,226,.98), rgba(238,242,238,.92)) !important;
}
.cores-card-heading { display: flex; align-items: center; gap: .85rem; }
.cores-card-heading .eyebrow { margin-bottom: .28rem; }
.cores-card-heading h3 { max-width: 13rem; font-size: clamp(1.45rem,2vw,2.15rem); line-height: .84; }
.cores-mark {
  position: relative;
  width: 3.55rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(23,35,45,.62);
  border-radius: 50%;
  background: conic-gradient(from 135deg, #6d2d38, #9e3338, #2a4653, #17232d, #6d2d38);
  box-shadow: inset 0 0 0 3px #e9eeea, inset 0 0 0 5px rgba(23,35,45,.55), 0 7px 14px rgba(17,28,35,.16);
}
.cores-mark::after { content:""; position: absolute; inset: 20%; z-index: -1; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; }
.cores-ring { position: absolute; inset: 7%; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; }
.cores-ring-inner { inset: 25%; border-color: rgba(255,255,255,.8); }
.cores-core { position: relative; color: #f7f8f4; font-family: var(--display); font-size: 2.2rem; font-weight: 700; line-height: .8; letter-spacing: -.06em; text-shadow: 0 2px 0 rgba(0,0,0,.32); }
.cores-top, .cores-bottom { position: absolute; left: 50%; color: #fff; font-family: var(--display); font-size: .34rem; font-weight: 600; letter-spacing: .1em; transform: translateX(-50%); white-space: nowrap; }
.cores-top { top: 12%; }
.cores-bottom { bottom: 12%; }

@media (max-width: 930px) {
  .side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .muted-card, .cores-card { display: block; }
}

@media (max-width: 720px) {
  .masthead { position: relative; padding-right: 7.35rem; }
  .auth-menu { position: absolute; top: 1.35rem; right: 1.15rem; min-width: 0; }
  .login-button { min-height: 2rem; padding: .56rem .64rem; font-size: .7rem; }
  .profile-name { max-width: 6rem; }
  .information-view { min-height: auto; background-position: 58% center; }
  .roster-group-logo { width: 2.35rem; height: 2.35rem; }
}

/* --- Discord OAuth and information page cleanup --- */
.profile-avatar.has-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: transparent;
}
.roster-group-identity {
  gap: .72rem;
}
.roster-group-identity h4 {
  order: 1;
}
.roster-group-identity .roster-group-logo {
  order: 2;
}

.admin-body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(155deg, #0c161c 0%, #142633 55%, #101b21 100%);
  color: #f4f6f2;
}
.admin-shell {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 0;
}
.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.admin-header h1 {
  margin: .25rem 0 .75rem;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: .78;
}
.admin-subtitle {
  max-width: 40rem;
  margin: 0;
  color: #b9c5c9;
  font-size: .9rem;
  line-height: 1.65;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}
.admin-back,
.admin-signout {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: .62rem .78rem;
  border: 1px solid rgba(255,255,255,.42);
  color: #f4f6f2;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}
.admin-signout {
  border-color: rgba(217,137,141,.72);
  color: #f0b0b3;
}
.admin-back:hover,
.admin-signout:hover {
  background: rgba(255,255,255,.09);
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}
.admin-card {
  min-height: 13rem;
  padding: 1.45rem;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,20,27,.54);
}
.admin-card h2 {
  margin: .3rem 0 .75rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: .82;
}
.admin-card p:last-child {
  margin: 0;
  color: #b9c5c9;
  font-size: .78rem;
  line-height: 1.65;
}
@media (max-width: 720px) {
  .admin-shell { width: min(100% - 2rem, 1180px); }
  .admin-header { display: grid; }
  .admin-actions { justify-content: flex-start; }
  .admin-grid { grid-template-columns: 1fr; }
}

/* --- Portal integration: recruitment, protected materials and operations --- */
[hidden] { display: none !important; }
.sector-index { display: none !important; }
.sector { padding-top: clamp(1rem, 2vw, 2.3rem); }
.sector:not(:first-child) { padding-left: calc(var(--panel-pad-x) + var(--panel-slant)); }

.auth-dialog-open::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 11, 15, .68);
  backdrop-filter: blur(4px);
}
.auth-dialog {
  position: fixed;
  z-index: 100;
  top: 50%;
  left: 50%;
  width: min(28rem, calc(100vw - 2rem));
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.2);
  background: linear-gradient(155deg, #1a2b35, #101a21);
  color: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
  transform: translate(-50%, -50%);
}
.auth-dialog h2 { margin: .2rem 0 .55rem; font-size: 3.4rem; line-height: .8; }
.auth-dialog-message { margin: 0 0 1.2rem; color: #c6d1d4; font-size: .78rem; line-height: 1.6; }
.auth-dialog-close { position: absolute; top: .5rem; right: .7rem; border: 0; background: transparent; color: #dce5e5; font-size: 1.5rem; line-height: 1; }
.remember-check { display: flex; align-items: center; gap: .62rem; margin: 0 0 1.2rem; color: #e8eeee; font-size: .74rem; font-weight: 600; }
.remember-check input { width: 1rem; height: 1rem; accent-color: var(--red); }
.auth-dialog-submit { width: 100%; justify-content: center; }

.recruitment-view {
  position: relative;
  isolation: isolate;
  max-width: none;
  min-height: calc(100vh - 4.4rem);
  background:
    linear-gradient(90deg, rgba(237,240,236,.98) 0%, rgba(237,240,236,.9) 42%, rgba(237,240,236,.64) 68%, rgba(21,34,33,.34) 100%),
    url("assets/recruitment-background.jpg") center / cover no-repeat;
}
.recruitment-view > .content-heading,
.recruitment-view > .recruitment-layout { width: min(880px, 100%); margin-left: auto; margin-right: auto; }
.recruitment-heading { margin-bottom: clamp(1.35rem, 3vw, 2.6rem); }
.recruitment-heading .eyebrow { margin-bottom: .72rem; }
.recruitment-heading h2 { margin-bottom: 0; line-height: .83; }
.recruitment-layout { display: block; }
.recruitment-view .enlist-card {
  border-color: rgba(255,255,255,.46);
  background: rgba(248,249,246,.76);
  box-shadow: 0 22px 50px rgba(12,24,28,.18);
  backdrop-filter: blur(9px);
}
.recruitment-view .enlist-rules { background: rgba(237,240,236,.56); }

.operations-heading { margin-bottom: clamp(1.4rem, 3vw, 2.5rem); }
.operations-heading h2 { margin-bottom: 0; }
.operations-layout { display: grid; grid-template-columns: minmax(15rem, .68fr) minmax(0, 1.7fr); gap: 1.2rem; align-items: stretch; }
.operations-list-panel { min-height: 35rem; padding: 1rem; border: 1px solid var(--line); background: #17232d; color: #f4f6f2; }
.operations-list { display: grid; gap: 1.3rem; }
.operation-list-group > p { margin: .15rem .35rem .55rem; color: #d9898d; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.operation-list-item { width: 100%; display: grid; gap: .26rem; padding: .9rem .75rem; border: 1px solid transparent; border-bottom-color: rgba(255,255,255,.1); background: transparent; color: #d9e0e1; text-align: left; }
.operation-list-item:hover, .operation-list-item.active { border-color: rgba(217,137,141,.55); background: rgba(255,255,255,.07); color: #fff; }
.operation-list-item-type { color: #d9898d; font-family: var(--display); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.operation-list-item strong { font-family: var(--display); font-size: 1.35rem; line-height: .9; letter-spacing: .02em; text-transform: uppercase; }
.operation-list-item > span:not(.operation-list-item-type), .operation-list-item em { color: #b7c4c8; font-size: .66rem; font-style: normal; line-height: 1.45; }
.operation-list-item em { color: #d7b0b4; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.operation-detail { min-height: 35rem; padding: clamp(1.25rem, 3vw, 2.4rem); border: 1px solid var(--line); background: var(--paper-2); }
.operations-empty { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.operation-detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.operation-detail-header .eyebrow { margin-bottom: .32rem; }
.operation-detail-header h3 { margin: 0; font-size: clamp(2.2rem, 4vw, 4.8rem); line-height: .78; }
.operation-status { flex: 0 0 auto; margin-top: .2rem; padding: .45rem .55rem; border: 1px solid var(--line); color: var(--ink-2); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.operation-status.open, .operation-status.running { border-color: rgba(43,118,94,.48); color: #17664d; }
.operation-status.closed { border-color: rgba(158,51,56,.4); color: var(--red); }
.operation-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 9.75rem; gap: 1.3rem; padding-top: 1.25rem; }
.operation-detail-body { min-width: 0; }
.operation-tabs { display: grid; align-content: start; gap: .45rem; }
.operation-tab { display: flex; justify-content: space-between; align-items: center; gap: .5rem; width: 100%; padding: .68rem .62rem; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-family: var(--display); font-size: .94rem; font-weight: 600; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.operation-tab:hover, .operation-tab.active { border-color: var(--red); background: var(--red); color: #fff; }
.operation-tab.locked:not(.active) { color: #7b8589; }
.operation-tab:disabled { opacity: .43; cursor: not-allowed; }
.operation-description { margin: 0 0 1.35rem; color: var(--ink-2); font-size: .86rem; line-height: 1.75; }
.operation-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; margin: 0; }
.operation-facts div { padding: .85rem; border: 1px solid var(--line); background: rgba(237,240,236,.55); }
.operation-facts dt { margin-bottom: .32rem; color: var(--red); font-size: .6rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.operation-facts dd { margin: 0; color: var(--ink); font-size: .75rem; font-weight: 600; line-height: 1.45; }
.operation-document { display: grid; gap: .75rem; }
.operation-document iframe { width: 100%; min-height: 29rem; border: 1px solid var(--line); background: #fff; }
.document-open-link { width: max-content; max-width: 100%; color: var(--red); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.operation-locked-panel { display: grid; justify-items: start; gap: 1rem; min-height: 15rem; padding: 1.4rem; border: 1px dashed rgba(23,35,45,.25); background: rgba(237,240,236,.55); }
.operation-locked-panel h3 { margin: 0; max-width: 21rem; font-size: clamp(1.8rem, 3.3vw, 3.4rem); line-height: .84; }

@media (max-width: 930px) {
  .operations-layout { grid-template-columns: 1fr; }
  .operations-list-panel, .operation-detail { min-height: 0; }
  .operations-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .operation-list-group { min-width: 0; }
}
@media (max-width: 720px) {
  .recruitment-view { min-height: auto; background-position: 58% center; }
  .operations-list { grid-template-columns: 1fr; }
  .operation-detail-header { display: grid; }
  .operation-detail-layout { grid-template-columns: 1fr; }
  .operation-tabs { grid-template-columns: repeat(4, minmax(0,1fr)); gap: .35rem; }
  .operation-tab { min-height: 3.1rem; justify-content: center; padding: .48rem .28rem; font-size: .72rem; text-align: center; }
  .operation-facts { grid-template-columns: 1fr; }
  .operation-document iframe { min-height: 22rem; }
}

/* --- Recruitment completion and final C.O.R.E.S. brand mark --- */
.auth-menu.is-authenticated .login-button {
  display: none !important;
}
.auth-menu:not(.is-authenticated) .profile-menu {
  display: none !important;
}

.cores-card-logo {
  display: block;
  width: clamp(4.3rem, 8vw, 6.15rem);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 .55rem .8rem rgba(11, 20, 24, .18));
}

.recruitment-heading {
  padding-top: clamp(.5rem, 1.8vw, 1.25rem);
}
.recruitment-heading .eyebrow {
  margin-bottom: .95rem;
}
.recruitment-heading h2 {
  line-height: .92;
}

.enlist-confirmation {
  display: grid;
  justify-items: center;
  max-width: 42rem;
  min-height: 26rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.8rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}
.enlist-confirmation-mark {
  display: grid;
  width: 4.35rem;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(43, 118, 94, .6);
  border-radius: 50%;
  background: rgba(43, 118, 94, .12);
  color: #17664d;
  font-family: var(--display);
  font-size: 2.65rem;
  font-weight: 700;
  line-height: 1;
}
.enlist-confirmation .eyebrow {
  margin-bottom: .7rem;
}
.enlist-confirmation h3 {
  max-width: 28rem;
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: .82;
}
.enlist-confirmation p:not(.eyebrow) {
  max-width: 34rem;
  margin: 0 0 1.85rem;
  color: var(--ink-2);
  font-size: .86rem;
  line-height: 1.75;
}
.enlist-confirmation .primary-button {
  text-decoration: none;
}

@media (max-width: 720px) {
  .cores-card-logo { width: 4rem; }
  .enlist-confirmation { min-height: 21rem; }
}

/* --- CMS managed backgrounds and gallery media --- */
.site-shell {
  background:
    linear-gradient(115deg, rgba(255,255,255,0.04), transparent 33%),
    radial-gradient(circle at 88% 9%, rgba(109, 132, 145, 0.28), transparent 34%),
    var(--cms-home-background, #121a21);
  background-size: auto, auto, cover;
  background-position: center, center, center;
}
.sector::before { background: var(--cms-background-image, var(--sector-bg)); }
.information-view {
  background:
    linear-gradient(90deg, rgba(237,240,236,.96) 0%, rgba(237,240,236,.89) 39%, rgba(237,240,236,.70) 72%, rgba(19,42,58,.46) 100%),
    linear-gradient(180deg, rgba(10,24,34,.04), rgba(10,24,34,.20)),
    var(--cms-background-image, url("assets/information-background.jpg")) center / cover no-repeat;
}
.recruitment-view {
  background:
    linear-gradient(90deg, rgba(237,240,236,.98) 0%, rgba(237,240,236,.9) 42%, rgba(237,240,236,.64) 68%, rgba(21,34,33,.34) 100%),
    var(--cms-background-image, url("assets/recruitment-background.jpg")) center / cover no-repeat;
}
.operations-view,
.gallery-view,
.tech-support-view {
  background:
    linear-gradient(90deg, rgba(237,240,236,.95), rgba(237,240,236,.86)),
    var(--cms-background-image, transparent) center / cover no-repeat;
}
.gallery-placeholder.has-image {
  background:
    linear-gradient(180deg, transparent, rgba(5,13,17,.68)),
    var(--gallery-image) center / cover no-repeat;
}
.gallery-placeholder.has-image::after { background: linear-gradient(180deg, transparent, rgba(5,13,17,.60)); }


/* --- Recruitment readability and Command-only operations test gate --- */
.enlist-confirmation {
  row-gap: .3rem;
}
.enlist-confirmation .eyebrow {
  line-height: 1.35;
}
.enlist-confirmation h3 {
  max-width: 30rem;
  font-size: clamp(2.2rem, 4.65vw, 4.25rem);
  line-height: .98;
  letter-spacing: .015em;
}
.operations-test-lock {
  display: grid;
  min-height: min(35rem, calc(100vh - 15rem));
  place-items: center;
  padding: clamp(2rem, 7vw, 6rem) 1.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(23,35,45,.98), rgba(13,24,31,.92));
  color: #f4f6f2;
  text-align: center;
}
.operations-test-lock h3 {
  max-width: 20rem;
  margin: 0;
  color: #f1f3ef;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: .92;
}
@media (max-width: 720px) {
  .operations-test-lock { min-height: 22rem; }
  .enlist-confirmation h3 { font-size: clamp(2.05rem, 12vw, 3.25rem); line-height: 1; }
}

/* --- Automatic browser theme + live CEST/UTC/C.O.R.E.S. readout --- */
:root { color-scheme: light; }
.auth-menu {
  flex-direction: column;
  align-items: flex-end;
  gap: .62rem;
}
.auth-system-readout {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .42rem .58rem;
  max-width: 25rem;
  padding-bottom: .58rem;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.system-readout-item {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  min-height: 1rem;
  color: rgba(234, 241, 241, .82);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.system-readout-label { color: rgba(214, 151, 155, .95); }
.system-readout-value {
  color: #f7f8f4;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.cores-system-status { color: #d9e5e3; }
.cores-system-status .system-readout-value { color: #e7eeeb; }
.cores-system-dot {
  width: .45rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d8a24c;
  box-shadow: 0 0 0 3px rgba(216,162,76,.12);
}
.cores-system-status[data-state="online"] .cores-system-dot {
  background: #55bc8d;
  box-shadow: 0 0 0 3px rgba(85,188,141,.14);
}
.cores-system-status[data-state="online"] .system-readout-value { color: #83d3ad; }
.cores-system-status[data-state="offline"] .cores-system-dot,
.cores-system-status[data-state="unavailable"] .cores-system-dot {
  background: #d76c70;
  box-shadow: 0 0 0 3px rgba(215,108,112,.14);
}
.cores-system-status[data-state="offline"] .system-readout-value,
.cores-system-status[data-state="unavailable"] .system-readout-value { color: #e79a9d; }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e7eef0;
    --ink-2: #c3d0d5;
    --paper: #0e171e;
    --paper-2: #15222b;
    --line: rgba(211, 228, 233, .18);
    --line-light: rgba(255,255,255,.22);
    --muted: #9cabb2;
    --red: #de777d;
    --red-deep: #bd555d;
    --green: #5bb88f;
    --off: #8a9aa1;
    --shadow: 0 24px 70px rgba(0,0,0,.34);
  }
  html, body { background: var(--paper); }
  .detail-shell { background: var(--paper); color: var(--ink); }
  .detail-topbar { background: rgba(14,23,30,.94); }
  .back-button, .secondary-button { border-color: rgba(224,235,237,.55); color: var(--ink); }
  .back-button:hover, .secondary-button:not(:disabled):hover { background: var(--ink); color: #10191f; }
  .content-card,
  .operation-detail { background: var(--paper-2); box-shadow: 0 10px 24px rgba(0,0,0,.16); }
  .muted-card { background: #14222b; }
  input, select, textarea {
    border-color: rgba(213,229,233,.28);
    background: #101c24;
    color: var(--ink);
  }
  .enlist-rules { background: #101b23; }
  .recruitment-view {
    background:
      linear-gradient(90deg, rgba(12,21,27,.98) 0%, rgba(12,21,27,.92) 43%, rgba(12,21,27,.72) 69%, rgba(7,13,17,.40) 100%),
      var(--cms-background-image, url("assets/recruitment-background.jpg")) center / cover no-repeat;
  }
  .recruitment-view .enlist-card { border-color: rgba(211,228,233,.20); background: rgba(18,30,38,.84); }
  .recruitment-view .enlist-rules { background: rgba(10,20,27,.62); }
  .information-view {
    background:
      linear-gradient(90deg, rgba(12,21,27,.98) 0%, rgba(12,21,27,.93) 40%, rgba(12,21,27,.73) 72%, rgba(8,20,29,.55) 100%),
      linear-gradient(180deg, rgba(8,16,22,.16), rgba(8,16,22,.44)),
      var(--cms-background-image, url("assets/information-background.jpg")) center / cover no-repeat;
  }
  .operations-view,
  .gallery-view,
  .tech-support-view {
    background:
      linear-gradient(90deg, rgba(14,23,30,.97), rgba(14,23,30,.88)),
      var(--cms-background-image, transparent) center / cover no-repeat;
  }
  .cores-card { background: linear-gradient(145deg, rgba(20,34,42,.98), rgba(14,25,32,.94)) !important; }
  .enlist-confirmation-mark { border-color: rgba(91,184,143,.62); background: rgba(91,184,143,.12); color: #7bd2a7; }
  .operation-status.open, .operation-status.running { color: #77d2a5; }
  .secondary-button:disabled { border-color: rgba(190,205,208,.32); color: #97a9af; }
}

@media (max-width: 720px) {
  .masthead { padding-right: 10rem; }
  .auth-menu { width: 8.25rem; gap: .42rem; }
  .auth-system-readout {
    display: grid;
    justify-items: end;
    gap: .3rem;
    width: 100%;
    padding-bottom: .42rem;
  }
  .system-readout-item { font-size: .49rem; letter-spacing: .065em; }
  .system-readout-value { font-size: .52rem; }
}

@media (max-width: 410px) {
  .masthead { padding-right: 8.9rem; }
  .auth-menu { right: .85rem; width: 7.8rem; }
  .system-readout-item { font-size: .45rem; }
  .system-readout-value { font-size: .49rem; }
}


/* --- Information page: high-contrast dark theme correction --- */
@media (prefers-color-scheme: dark) {
  .information-view .content-card {
    border-color: rgba(211, 228, 233, .20);
    background: rgba(21, 34, 43, .96);
    color: var(--ink);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .20);
  }
  .information-view .muted-card {
    background: rgba(18, 31, 39, .96);
  }
  .information-view .card-title-row,
  .information-view .roster-group,
  .information-view .roster-subgroup + .roster-subgroup,
  .information-view .roster-row,
  .information-view .schedule-list div {
    border-color: rgba(211, 228, 233, .18);
  }
  .information-view .roster-row:hover {
    background: rgba(47, 68, 79, .46);
  }
  .information-view .utility-list li {
    border-color: rgba(211, 228, 233, .18);
    background: rgba(10, 20, 27, .58);
    color: var(--ink-2);
  }
}


/* --- Dark roster specialty contrast + transparent cookie information --- */
.footer-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .9rem;
}
.footer-privacy-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(217, 137, 141, .64);
  text-underline-offset: .22rem;
}
.footer-privacy-link:hover { color: #f3c3c6; }

.privacy-view {
  background:
    linear-gradient(90deg, rgba(237,240,236,.97) 0%, rgba(237,240,236,.91) 56%, rgba(237,240,236,.78) 100%),
    linear-gradient(145deg, #aebcc0, #e7ece8);
}
.privacy-card {
  max-width: 67rem;
  padding: clamp(1.25rem, 3vw, 2.4rem);
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.privacy-section {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(248,249,246,.64);
}
.privacy-section h3 {
  margin-bottom: .5rem;
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  line-height: .9;
}
.privacy-section p {
  margin: 0;
  color: var(--ink-2);
  font-size: .8rem;
  line-height: 1.7;
}
.privacy-section p + p { margin-top: .85rem; }
.privacy-cookie-list {
  display: grid;
  gap: .48rem;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
}
.privacy-cookie-list li {
  display: grid;
  gap: .26rem;
  padding: .6rem .68rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.privacy-cookie-list strong {
  color: var(--red-deep);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .64rem;
  letter-spacing: .01em;
}
.privacy-cookie-list span {
  color: var(--ink-2);
  font-size: .72rem;
  line-height: 1.55;
}
.privacy-updated {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (prefers-color-scheme: dark) {
  .information-view .specialty-tag {
    border-color: rgba(211, 228, 233, .22);
    background: rgba(7, 17, 23, .84);
    color: #d9e5e8;
  }
  .information-view .specialty-toggle {
    border-color: rgba(222, 119, 125, .55);
    background: rgba(158, 51, 56, .12);
    color: #f09a9f;
  }
  .information-view .specialty-toggle:hover {
    border-color: #f09a9f;
    background: rgba(222, 119, 125, .18);
  }
  .privacy-view {
    background:
      linear-gradient(90deg, rgba(12,21,27,.98) 0%, rgba(12,21,27,.94) 58%, rgba(12,21,27,.86) 100%),
      linear-gradient(145deg, #182a35, #0b1319);
  }
  .privacy-card {
    border-color: rgba(211, 228, 233, .20);
    background: rgba(21, 34, 43, .96);
    box-shadow: 0 12px 28px rgba(0,0,0,.20);
  }
  .privacy-section {
    border-color: rgba(211, 228, 233, .18);
    background: rgba(10, 20, 27, .56);
  }
  .privacy-section p,
  .privacy-cookie-list span { color: var(--ink-2); }
  .privacy-cookie-list li {
    border-color: rgba(211, 228, 233, .18);
    background: rgba(6, 15, 21, .62);
  }
  .privacy-cookie-list strong { color: #f09a9f; }
}

@media (max-width: 720px) {
  .footer-bar { align-items: flex-start; flex-direction: column; }
  .footer-meta { justify-content: flex-start; }
  .privacy-grid { grid-template-columns: 1fr; }
}
