/* CAVOK family visual foundation. Keep identical across approved CAVOK applications.
 * See docs/cavok-family-visual-contract.md. */
@font-face {
  font-family: Montserrat;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #121821;
  --panel-2: #1a222e;
  --line: #26374b;
  --text: #e6edf3;
  --muted: #acb8c5;
  --accent: #69afff;
  --brand: #033c71;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
button, input { font-family: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, a, input, summary { outline-offset: 4px; }
main { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
h1 { font-size: clamp(1.9rem,4vw,2.8rem); line-height: 1.15; letter-spacing: -.04em; margin: .5rem 0 1rem; }
h2 { font-size: 1.2rem; margin: 0 0 .75rem; font-weight: 600; }
h3 { font-size: 1.05rem; margin: 0; font-weight: 600; }
p { margin: .5rem 0 1rem; }
.muted { color: var(--muted); }
.small, label, table, .banner { font-size: .875rem; }
.topbar { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 1.5rem; padding-top: max(1rem,env(safe-area-inset-top)); border-bottom: 1px solid #0b4c83; background: linear-gradient(180deg,var(--brand),#04294d); }
.topbar nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6rem; margin-left: auto; min-width: 0; }
.topbar nav a, .nav-button { color: #b9cde0; font-size: .875rem; padding: .3rem .5rem; border-radius: 4px; white-space: nowrap; }
.topbar nav a.active { color: white; background: #ffffff24; }
.topbar .brand:hover { text-decoration: none; }
.topbar .brand { display: flex; align-items: center; flex-shrink: 0; }
.cavok-brand { display: flex; align-items: center; gap: 1rem; color: white; }
.cavok-brand img { width: 112px; height: auto; display: block; filter: brightness(0) invert(1); }
.cavok-brand span { font-size: 1.35rem; font-weight: 500; border-left: 1px solid #7294b1; padding-left: 1rem; letter-spacing: .02em; }
.cavok-brand-login { justify-content: center; margin: 1rem auto 2rem; }
.cavok-brand-login img { width: 145px; }
.cavok-brand-login span { font-size: 1.8rem; }
.eyebrow { font-size: .875rem; letter-spacing: .12em; color: var(--accent); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 1.15rem; }
.card-head { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.card-head .spacer { margin-left: auto; }
.card-head time { margin-left: auto; color: var(--muted); font-size: .875rem; }
.cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.banner { border: 1px solid #f85149; border-radius: 6px; padding: .8rem; color: #ffb4ae; background: #f8514914; overflow-wrap: anywhere; }
.notice { border: 1px solid #3fb950; border-radius: 6px; padding: .8rem; color: #b5ecc0; background: #3fb95014; }
label { display: block; margin-bottom: .75rem; color: var(--muted); }
input { display: block; width: 100%; margin-top: .3rem; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: .65rem; font-size: 1rem; }
label small { display: block; font-size: .875rem; line-height: 1.5; margin-top: .35rem; }
button, .button-link { background: var(--accent); color: #06121f; border: 1px solid transparent; border-radius: 6px; padding: .65rem 1rem; font-size: .95rem; font-weight: 600; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button.ghost { background: transparent; color: var(--muted); border-color: var(--line); font-weight: 500; }
.nav-button { background: transparent; border: 0; font-weight: 500; }
.button-link { display: inline-block; text-decoration: none; }
.button-link:hover { background: #98c8ff; text-decoration: none; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem 1.2rem; }
.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }
.table-scroll { overflow-x: auto; }
summary { cursor: pointer; }
.auth-page { max-width: 34rem; margin: 6vh auto; }
.auth-card { display: grid; gap: 1rem; padding: 2rem; }
.auth-card h1 { font-size: 1.65rem; }
.auth-card p { margin: 0; }
.microsoft-button { background: #fff; color: #162535; padding: .9rem; }
@media(max-width:850px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .topbar nav { margin-left: -.5rem; gap: .4rem; justify-content: flex-start; }
}
@media(max-width:650px) {
  main { padding: 1rem; }
  .card { padding: 1rem; }
  .cards, .form-grid { grid-template-columns: minmax(0,1fr); }
  .card-head time { margin-left: 0; }
  .auth-card { padding: 1.25rem; }
}

@media(max-width:380px) {
  .cavok-brand-login img { width: 112px; }
  .cavok-brand-login span { font-size: 1.35rem; }
}
