/* South Texas Radiology Group. Tokens mirror strg-sso's BRAND_CSS, which
   styles auth.southtexasradiologygroup.com. Keep them in step. */
:root {
  --navy-900: #0b1f3a;
  --navy-700: #14355e;
  --navy-500: #24476a;
  --navy-400: #2f5c88;
  --navy-600: #1b3854;
  --ink: #20344c;
  --ink-soft: #46586e;
  --ink-mute: #5a6b80;
  --on-navy: #eef1f5;
  --footer: #8a94a6;
  --hairline: #e4e7ec;
  --surface: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--navy-900);
  background-image: radial-gradient(
    ellipse 90% 70% at 50% 30%, var(--navy-700) 0%, var(--navy-900) 65%
  );
  background-attachment: fixed;
}

/* ── Header ─────────────────────────────────────────────────────── */
.masthead {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
}
.masthead__logo { display: block; width: 208px; height: auto; }
.masthead__nav { display: flex; gap: 22px; margin-left: auto; }
.masthead__nav a,
.masthead__session a {
  color: var(--on-navy);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.masthead__nav a:hover,
.masthead__nav a:focus-visible { border-bottom-color: var(--footer); }
.masthead__nav a[aria-current="page"] { border-bottom-color: var(--on-navy); }
.masthead__session {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--footer);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Layout ─────────────────────────────────────────────────────── */
.shell { max-width: 1180px; margin: 0 auto; padding: 0 24px 48px; }
.card {
  background: var(--surface);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card + .card { margin-top: 24px; }

h1, h2 {
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: 1.5rem; }
h2 { font-size: 1.1rem; }
.lede { margin: 0; color: var(--ink-soft); }

.label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ── Controls ───────────────────────────────────────────────────── */
.button {
  display: inline-block;
  border: 0;
  border-radius: 0;
  padding: 14px 30px;
  background: var(--navy-500);
  color: var(--surface);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.button:hover, .button:focus-visible { background: var(--navy-400); }
.button:active { background: var(--navy-600); }
.button--quiet {
  background: transparent;
  color: var(--navy-500);
  border: 1px solid var(--hairline);
}
.button--quiet:hover, .button--quiet:focus-visible {
  background: var(--hairline);
  color: var(--navy-500);
}

input[type="date"] {
  border: 0;
  border-bottom: 1px solid var(--ink-mute);
  border-radius: 0;
  padding: 8px 2px;
  font: inherit;
  color: var(--ink);
  background: transparent;
}
input[type="date"]:focus-visible {
  outline: 2px solid var(--navy-400);
  outline-offset: 2px;
}
a { color: var(--navy-500); }
a:hover { color: var(--navy-400); }
:focus-visible { outline: 2px solid var(--navy-400); outline-offset: 2px; }

/* ── Tables ─────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td {
  text-align: left;
  padding: 7px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
th {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
tbody tr:hover { background: #f6f8fa; }
.rowhead { font-weight: 600; white-space: nowrap; }
.is-empty { color: var(--ink-mute); }

/* ── Feedback ───────────────────────────────────────────────────── */
.notice { padding: 16px 20px; border-left: 3px solid var(--navy-500); background: #f6f8fa; }
.notice--error { border-left-color: #c9190b; }

.sitefoot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  color: var(--footer);
  font-size: 0.78rem;
}

/* Temporary: migration notice. Remove with the markup in base.html once the
   legacy hosts are switched off. The 56x2 rule is the divider device from the
   group's password-reset email, so the notice reads as part of the identity
   rather than as a bolted-on banner. */
.sitefoot__notice {
  max-width: 62ch;
  margin: 0 auto 14px;
  line-height: 1.7;
}
.sitefoot__notice::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 0 auto 16px;
  background: var(--footer);
}
.sitefoot__notice strong {
  color: var(--on-navy);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.sitefoot__org {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.weeknav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
