/* ==========================================================================
   NBC Liquid Glass: the portal's visual theme.

   Ported from the NBC Digital Approval System's sign-in and public pages
   (NBC_R static/css/custom.css, the approved "NBC Liquid Glass" mockups) so
   the two NBC systems read as one family: a deep-green scene fading to
   parchment under a gold glow, a floating glass pill header, frosted panels,
   glossy pill buttons and a thin blue specular shimmer.

   Hand-written rather than Tailwind utilities because the material needs
   backdrop-filter, layered inset highlights and masked shimmer rings that the
   vendored Tailwind build does not express. Layout and spacing stay in
   Tailwind; this file only supplies the material and the components.
   Loaded after app.css by templates/base.html.
   ========================================================================== */

:root {
  --nbc-green: #1a5632;
  --nbc-green-dark: #0e3a20;
  --nbc-green-deep: #123f24;
  --nbc-green-light: #2a7a4a;
  --nbc-gold: #c8a951;
  --nbc-gold-dark: #a88b3a;
  --nbc-gold-soft: #d9bd6e;

  --ink: #1d2a22;
  --ink-soft: #46554c;
  --ink-mute: #5f6e65;
  --line: rgba(20, 60, 35, 0.14);
  --line-soft: rgba(20, 60, 35, 0.08);

  --glass-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.84), rgba(250, 252, 247, 0.68));
  --glass-border: rgba(255, 255, 255, 0.64);
  --glass-blur: blur(24px) saturate(180%);
  --glass-shadow:
    0 16px 40px -14px rgba(8, 30, 17, 0.3),
    0 3px 8px -4px rgba(8, 30, 17, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4);
}

/* ---------------------------------------------------------------- scene --- */

/* The page is a scene: deep green at the top fading to parchment, with a gold
   glow top-right. The stops are lengths, not percentages, so the dark band is
   the same height on a short page and a long form. --band sets that height;
   the landing and sign-in pages use a taller one (.scene-tall). Page titles
   sit on the dark part (white text); content sits in glass below it. */
body.scene {
  --band: 520px;
  position: relative;
  color: var(--ink);
  background-color: #f0efe5;
  background-image:
    radial-gradient(46rem 30rem at 92% -4rem, rgba(212, 180, 96, 0.48), transparent 70%),
    radial-gradient(40rem 26rem at 6% -4rem, rgba(9, 46, 26, 0.6), transparent 72%),
    linear-gradient(180deg,
      #0d3722 0,
      #135030 calc(var(--band) * 0.24),
      #2c6744 calc(var(--band) * 0.42),
      #6f9a7e calc(var(--band) * 0.6),
      #c6d8c6 calc(var(--band) * 0.8),
      #ece9d8 var(--band),
      #f0efe5 calc(var(--band) * 1.35));
  background-repeat: no-repeat;
}

body.scene-tall { --band: 820px; }

/* Soft colour drifting behind the glass, attached to the top of the page.
   Purely decorative: inert to clicks and hidden from screen readers. */
.scene-orbs {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(var(--band) * 1.5);
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.scene-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.scene-orbs .orb-1 {
  width: 40rem; height: 40rem; top: -14rem; left: -12rem;
  background: radial-gradient(circle at 40% 40%, #1f6b3e, #0d3722 60%, transparent 78%);
  opacity: 0.5;
  animation: orb-drift 24s ease-in-out infinite alternate;
}

.scene-orbs .orb-2 {
  width: 36rem; height: 36rem; top: -11rem; right: -9rem;
  background: radial-gradient(circle at 40% 40%, #eed48e, #c8a951 58%, transparent 78%);
  opacity: 0.42;
  animation: orb-drift 30s ease-in-out infinite alternate-reverse;
}

.scene-orbs .orb-3 {
  width: 30rem; height: 30rem; top: calc(var(--band) * 0.5); left: 30%;
  background: radial-gradient(circle at 45% 45%, #bcd9c2, #5c8a6b 62%, transparent 80%);
  opacity: 0.3;
  animation: orb-drift 27s ease-in-out infinite alternate;
}

/* A faint field that stays put while long pages scroll, so glass further down
   still has something to refract instead of reading as a flat white box. */
.scene-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38rem 28rem at 4% 104%, rgba(92, 138, 107, 0.2), transparent 64%),
    radial-gradient(34rem 26rem at 98% 100%, rgba(212, 180, 96, 0.18), transparent 62%);
}

@keyframes orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(2.6rem, 2rem, 0) scale(1.07); }
}

/* The design's blue specular shimmer: a thin NIH-blue glint that sweeps the
   border of a glass element every few seconds (ported verbatim from NBC_R,
   nihShimmer). The mask limits the gradient to a 1.5px ring. */
@keyframes nihShimmer {
  0%   { background-position: 140% 0; }
  26%  { background-position: -40% 0; }
  100% { background-position: -40% 0; }
}

[data-shimmer] { position: relative; }

[data-shimmer]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(115deg,
      transparent 35%, rgba(51, 60, 150, 0) 41%, rgba(70, 90, 220, 0.8) 47%,
      rgba(160, 178, 255, 0.95) 50%, rgba(70, 90, 220, 0.8) 53%,
      rgba(51, 60, 150, 0) 59%, transparent 65%)
    no-repeat 140% 0 / 280% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: nihShimmer 6.5s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .scene-orbs .orb { animation: none; }
  [data-shimmer]::after { animation: none; opacity: 0; }
}

/* --------------------------------------------------- floating pill header --- */

.site-header {
  width: calc(100% - 2rem);
  max-width: 70rem;
  margin: 0.85rem auto 0 auto;
  padding: 0.5rem 0.55rem 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(22, 66, 40, 0.76), rgba(12, 44, 26, 0.6));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 10px 30px rgba(8, 30, 17, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* sticky, so content scrolls under the glass; declared after [data-shimmer]
   (which sets position: relative) and with a higher specificity to win */
.site-header[data-shimmer] {
  position: sticky;
  top: 0.75rem;
  z-index: 40;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  margin-right: auto;
  text-decoration: none;
}

.site-header .brand-emblem {
  height: 36px;
  width: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.site-header .brand-name { line-height: 1.15; min-width: 0; }

.site-header .brand-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.site-header .brand-sub {
  color: #bcd0c0;
  font-size: 0.72rem;
  white-space: nowrap;
}

.site-header .brand-sub { display: block; }
.site-header .brand-short { display: none; }

/* Phones, and the signed-in pill whenever the nav is inline (it carries the
   extra work-area links, and the pill is capped at 70rem at every width):
   the short name, no subtitle. */
@media (max-width: 639.98px) {
  .site-header .brand-long, .site-header .brand-sub, .site-header .brand-emblem-2 { display: none; }
  .site-header .brand-short { display: inline; }
}

@media (min-width: 1280px) {
  .site-header.is-authed .brand-long, .site-header.is-authed .brand-sub { display: none; }
  .site-header.is-authed .brand-short { display: inline; }
  /* ...and shorter public labels ("Registered", "Applied", "Oversight"; the
     links keep their full names as aria-label) and one emblem, so a
     superuser's full set of links still fits the pill. */
  .site-header.is-authed .nav-long, .site-header.is-authed .brand-emblem-2 { display: none; }
  .site-header.is-authed .nav-link { padding-left: 0.6rem; padding-right: 0.6rem; }
  /* all-access accounts: the emblem alone links home */
  .site-header.is-crowded .brand-name { display: none; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  white-space: nowrap;
}

.nav-link {
  display: inline-block;
  color: #e3ece5;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.68rem;
  border-radius: 999px;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.nav-link:focus-visible { outline: 2px solid var(--nbc-gold-soft); outline-offset: 1px; }

.nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* links into the signed-in work area carry the gold of the NBC chrome */
.nav-link.is-app { color: #f0d999; font-weight: 600; }
.nav-link.is-app:hover, .nav-link.is-app[aria-current="page"] { color: #fff3cf; }
.nav-link.is-test { color: #f7c873; font-weight: 600; }

.nav-sep {
  width: 1px;
  height: 1.3rem;
  margin: 0 0.35rem;
  background: rgba(255, 255, 255, 0.22);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover { background: rgba(255, 255, 255, 0.18); }
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }

/* Below 1280px the links fold into a glass sheet under the pill. One list of
   links serves both layouts, so nothing is rendered twice. */
@media (max-width: 1279.98px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    padding: 0.6rem;
    border-radius: 1.4rem;
    background: linear-gradient(150deg, rgba(20, 62, 37, 0.88), rgba(11, 42, 24, 0.84));
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 40px rgba(8, 30, 17, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .site-nav.is-open { display: flex; }

  /* An element with backdrop-filter is the "backdrop root" for everything
     inside it, so while the pill blurs, the sheet nested in it could only blur
     the pill. With the menu open the pill turns near-opaque and drops its
     blur, which lets the sheet frost the page behind it. */
  .site-header.is-open {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(135deg, rgba(22, 66, 40, 0.97), rgba(12, 44, 26, 0.95));
  }
  .site-nav .nav-link { padding: 0.7rem 1rem; border-radius: 0.9rem; font-size: 0.95rem; }
  .site-nav .nav-sep { width: auto; height: 1px; margin: 0.35rem 0.6rem; }
  .site-nav form { display: block; }
  .site-nav form .nav-link { width: 100%; text-align: left; }
  .site-nav .btn { margin-top: 0.3rem; }
}

@media (max-width: 639.98px) {
  .site-header { padding: 0.45rem 0.45rem 0.45rem 0.6rem; gap: 0.5rem; }
  .site-header .brand-emblem { height: 30px; }
}

/* impersonation notice, under the pill */
.notice-strip {
  width: calc(100% - 2rem);
  max-width: 70rem;
  margin: 0.6rem auto 0 auto;
  padding: 0.55rem 1.1rem;
  border-radius: 1.2rem;
  color: #2b1f04;
  font-size: 0.875rem;
  background: linear-gradient(135deg, rgba(244, 208, 122, 0.92), rgba(214, 172, 70, 0.86));
  border: 1px solid rgba(255, 236, 180, 0.8);
  box-shadow: 0 8px 22px rgba(20, 40, 25, 0.25), inset 0 1px 0 rgba(255, 240, 200, 0.8);
}

/* the slim line that replaces the old footer bar */
.site-foot {
  text-align: center;
  color: #5d6a62;
  font-size: 0.8rem;
  line-height: 1.6;
  padding: 1.8rem 1rem 1.6rem 1rem;
}

.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { color: var(--nbc-green); text-decoration: underline; }

/* ------------------------------------------------------------ page heads --- */

.page-kicker {
  color: var(--nbc-gold-soft);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-title {
  color: #fff;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(8, 30, 17, 0.35);
}

.page-sub {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

.on-dark-link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.875rem;
  text-decoration: none;
}

.on-dark-link:hover { color: #fff; text-decoration: underline; }

/* the search box that sits in a page head, on the dark band */
.search-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

body.scene .search-pill input[type="search"] {
  border: 0;
  border-radius: 999px;
  min-width: 15rem;
  background-color: rgba(255, 255, 255, 0.92);
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

@media (max-width: 639.98px) {
  .search-pill { width: 100%; }
  body.scene .search-pill input[type="search"] { min-width: 0; flex: 1; }
}

/* ---------------------------------------------------------------- glass --- */

.glass-card {
  position: relative;
  border-radius: 1.4rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* specular edge-light along the top: the tell that reads as a lens */
.glass-card::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.98), transparent);
  pointer-events: none;
}

/* a card that is a link: lifts on hover */
a.glass-card { display: block; text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease; }
a.glass-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 48px -14px rgba(8, 30, 17, 0.36),
    0 3px 8px -4px rgba(8, 30, 17, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
a.glass-card:focus-visible { outline: 2px solid var(--nbc-gold); outline-offset: 3px; }

/* the deep-green variant: the landing's "Apply" card, the contact panel */
.glass-dark {
  color: #fff;
  background: linear-gradient(150deg, rgba(30, 88, 52, 0.94), rgba(14, 58, 32, 0.94) 70%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 18px 44px -12px rgba(10, 34, 19, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.glass-dark::before { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent); }

/* glass with the gold rule along the top: single-purpose cards (auth, errors) */
.auth-card {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.9rem 1.75rem;
  border-top: 3px solid var(--nbc-gold);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(249, 251, 246, 0.78));
}
.auth-card::before { display: none; }

.auth-card h1 {
  color: var(--nbc-green-deep);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
}

.auth-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 1.9rem;
  background: linear-gradient(145deg, rgba(214, 232, 218, 0.95), rgba(178, 208, 186, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 18px rgba(120, 200, 150, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* a translucent row or sub-panel inside a glass card */
.glass-inset {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

/* card headings */
.card-title {
  color: var(--nbc-green-deep);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
}

.section-title {
  color: var(--nbc-green-dark);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

/* the icon tile on a landing card (NBC_R .info-box-icon) */
.icon-tile {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  display: grid;
  place-content: center;
  color: var(--nbc-green);
  background: linear-gradient(145deg, rgba(214, 232, 218, 0.95), rgba(178, 208, 186, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.glass-dark .icon-tile {
  color: #2a1f05;
  background: linear-gradient(135deg, rgba(236, 200, 112, 0.95), rgba(190, 150, 60, 0.9));
  border-color: rgba(255, 232, 168, 0.75);
  box-shadow: 0 0 16px rgba(200, 160, 70, 0.45), inset 0 1px 0 rgba(255, 238, 190, 0.8);
}

/* --------------------------------------------------------------- tables --- */

.glass-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }

.glass-table thead th {
  text-align: left;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--nbc-green);
  background: rgba(26, 86, 50, 0.06);
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.glass-table tbody td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.glass-table tbody tr:last-child td { border-bottom: 0; }
.glass-table tbody tr:hover td { background: rgba(255, 255, 255, 0.5); }
.glass-table tr.is-muted td { color: #8a968e; }

/* -------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--nbc-gold); outline-offset: 2px; }
.btn-sm { padding: 0.42rem 0.95rem; font-size: 0.82rem; }
.btn-xs { padding: 0.3rem 0.8rem; font-size: 0.75rem; font-weight: 600; }
.btn-lg { padding: 0.78rem 1.7rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* glossy deep-green: the main action (NBC_R .btn-signin) */
.btn-primary {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, #2f7c4c, #1a5632 55%, #123f24);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 20px -6px rgba(10, 34, 19, 0.45), inset 0 1.5px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { color: #fff; background: linear-gradient(180deg, #358a55, #1d6339); }

/* gold glass: the headline call to action (NBC_R .btn-gold) */
.btn-gold {
  color: #241a04;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(214, 172, 70, 0.86), rgba(158, 122, 38, 0.74));
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  border-color: rgba(244, 208, 122, 0.75);
  text-shadow: 0 1px 0 rgba(255, 226, 150, 0.3);
  box-shadow:
    0 0 22px rgba(190, 146, 52, 0.5),
    0 6px 18px rgba(20, 40, 25, 0.28),
    inset 0 1px 0 rgba(255, 232, 168, 0.65),
    inset 0 -6px 12px rgba(232, 178, 76, 0.4);
}
.btn-gold:hover {
  color: #1d1503;
  background: linear-gradient(135deg, rgba(226, 184, 80, 0.94), rgba(172, 134, 44, 0.82));
  box-shadow:
    0 0 30px rgba(202, 156, 58, 0.62),
    0 8px 22px rgba(20, 40, 25, 0.32),
    inset 0 1px 0 rgba(255, 238, 180, 0.75),
    inset 0 -6px 12px rgba(232, 178, 76, 0.45);
}

/* green glass, for a second action on the dark band (NBC_R .btn-green-glass) */
.btn-glass {
  color: #fff;
  background: linear-gradient(135deg, rgba(58, 132, 84, 0.62), rgba(24, 78, 46, 0.48));
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 0 22px rgba(120, 200, 150, 0.3),
    0 6px 18px rgba(10, 34, 19, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -6px 12px rgba(160, 220, 180, 0.18);
}
.btn-glass:hover { color: #fff; background: linear-gradient(135deg, rgba(44, 118, 72, 0.92), rgba(24, 80, 46, 0.85)); }

/* white pill: secondary actions on glass (NBC_R .btn-white-pill) */
.btn-light {
  color: var(--nbc-green-dark);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(20, 60, 35, 0.14);
  box-shadow: 0 4px 14px rgba(14, 58, 32, 0.12), inset 0 1px 0 #fff;
}
.btn-light:hover { color: var(--nbc-green-dark); background: #fff; box-shadow: 0 6px 18px rgba(14, 58, 32, 0.18), inset 0 1px 0 #fff; }

.btn-outline {
  color: var(--nbc-green);
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(26, 86, 50, 0.45);
}
.btn-outline:hover { color: var(--nbc-green-dark); background: rgba(26, 86, 50, 0.08); border-color: var(--nbc-green); }

.btn-dark {
  color: #fff;
  background: linear-gradient(180deg, #4b5952, #2f3b35 60%, #26302b);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 14px -6px rgba(10, 24, 17, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-dark:hover { color: #fff; background: linear-gradient(180deg, #56655d, #34413a); }

.btn-danger {
  color: #fff;
  background: linear-gradient(180deg, #d9534f, #b42318 60%, #9a1c13);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 18px -6px rgba(120, 20, 14, 0.45), inset 0 1.5px 0 rgba(255, 255, 255, 0.3);
}
.btn-danger:hover { color: #fff; background: linear-gradient(180deg, #e0605b, #c0281c); }

.btn-danger-outline {
  color: #b42318;
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(180, 35, 24, 0.4);
}
.btn-danger-outline:hover { background: rgba(180, 35, 24, 0.07); border-color: #b42318; }

.btn-ghost { color: var(--ink-soft); background: transparent; }
.btn-ghost:hover { color: var(--nbc-green-dark); background: rgba(20, 60, 35, 0.07); }

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  color: #7d8a82;
  text-shadow: none;
  background: rgba(225, 230, 226, 0.85);
  border-color: rgba(20, 60, 35, 0.1);
  box-shadow: none;
  transform: none;
}

/* text links on glass */
.link {
  color: var(--nbc-green);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(26, 86, 50, 0.35);
  text-underline-offset: 3px;
}
.link:hover { color: var(--nbc-green-dark); text-decoration-color: currentColor; }
.link-danger { color: #b42318; text-decoration-color: rgba(180, 35, 24, 0.35); }
.link-danger:hover { color: #8f1c13; }

/* --------------------------------------------------------- form controls --- */

/* Restyles the controls the forms render (their Tailwind classes are set in
   each app's forms.py); the higher specificity lets the glass look win. */
body.scene :is(input[type="text"], input[type="email"], input[type="password"],
    input[type="search"], input[type="number"], input[type="date"], input[type="month"],
    input[type="url"], input[type="tel"], select, textarea) {
  background-color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(20, 60, 35, 0.2);
  border-radius: 0.8rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.925rem;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(8, 30, 17, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

body.scene select { padding-right: 2.5rem; }

body.scene :is(input, select, textarea):focus {
  outline: none;
  background-color: #fff;
  border-color: var(--nbc-green);
  box-shadow: 0 0 0 0.25rem rgba(26, 86, 50, 0.15);
}

.field-label {
  display: block;
  color: var(--nbc-green-deep);
  font-size: 0.85rem;
  font-weight: 600;
}

.field-help { color: var(--ink-mute); font-size: 0.78rem; margin-top: 0.3rem; }
.field-error { color: #b42318; font-size: 0.8rem; margin-top: 0.3rem; }

/* The Yes/No toggle (.yesno) is styled inline in templates/base.html so it
   never depends on any stylesheet loading. */

/* ------------------------------------------------------------- messages --- */

.flash {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 1.1rem;
  font-size: 0.9rem;
  border-radius: 1.1rem;
  color: var(--ink);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(250, 252, 247, 0.8));
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 26px -12px rgba(8, 30, 17, 0.35), inset 0 1px 0 #fff;
}

.flash::before {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.flash.is-success::before { background: var(--nbc-green-light); box-shadow: 0 0 0 3px rgba(42, 122, 74, 0.2); }
.flash.is-error { color: #7f1d1d; }
.flash.is-error::before { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18); }
.flash.is-warning::before { background: var(--nbc-gold); box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.25); }

/* ------------------------------------------------------------------ hero --- */

.hero { text-align: center; padding: 2.6rem 1rem 2.2rem 1rem; }

.hero-emblems { display: flex; justify-content: center; gap: 0.9rem; margin-bottom: 1.2rem; }
.hero-emblem { height: 96px; width: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35)); }

.hero-title {
  color: #fff;
  font-weight: 800;
  font-size: 2.9rem;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 12px rgba(8, 30, 17, 0.35);
}

.hero-lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 38rem;
  margin: 0.8rem auto 1.6rem auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

.hero-pill {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

@media (max-width: 639.98px) {
  .hero { padding-top: 1.6rem; }
  .hero-emblem { height: 72px; }
  .hero-title { font-size: 2.1rem; }
}

/* ---------------------------------------- sign-in shell (NBC_R .login-*) --- */

/* deep-green brand pane beside a light glass form pane */
.login-shell {
  max-width: 58rem;
  margin: 0.5rem auto 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, rgba(252, 253, 250, 0.86), rgba(244, 248, 242, 0.72));
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 60px rgba(8, 30, 17, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
  .login-shell { grid-template-columns: 5fr 7fr; }
}

.login-brand {
  color: #fff;
  padding: 2.4rem 2.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, #235c39, #14472a 60%, #0f3a22);
}

.login-brand .brand-emblems { display: flex; gap: 0.7rem; margin-bottom: 0.5rem; }
.login-brand .brand-emblem { height: 62px; width: auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35)); }

.login-brand h2 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0.9rem 0 0.25rem 0;
}

.login-brand .login-brand-sub { font-size: 0.84rem; color: #c4d6c8; margin-bottom: 1.3rem; }

.login-brand ul { list-style: none; padding: 0; margin: 0; }

.login-brand li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #e8f0e9;
  margin-bottom: 0.7rem;
}

.login-brand li svg { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: 0.12rem; color: var(--nbc-gold); }

.login-form-side { padding: 2.4rem 2.3rem; }

.login-form-side h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--nbc-green-deep);
  margin-bottom: 0.2rem;
}

.login-form-side .login-form-sub { color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 1.4rem; }
.login-form-side label { font-weight: 700; font-size: 0.84rem; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #6b7a71;
  font-size: 0.82rem;
  margin: 1.2rem 0;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(20, 60, 35, 0.15);
}

/* phones: the brand block becomes the page header and the form floats as a
   glass card on the scene (NBC_R mobile mock 2d) */
@media (max-width: 767.98px) {
  .login-shell {
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overflow: visible;
  }
  .login-shell[data-shimmer]::after { display: none; }
  .login-brand {
    background: transparent;
    text-align: center;
    align-items: center;
    padding: 0.6rem 1.25rem 1.2rem 1.25rem;
  }
  .login-brand ul { display: none; }
  .login-brand .login-brand-sub { margin-bottom: 0; }
  .login-form-side {
    padding: 1.8rem 1.4rem;
    border-radius: 1.4rem;
    background: linear-gradient(160deg, rgba(252, 253, 250, 0.9), rgba(244, 248, 242, 0.78));
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 18px 44px rgba(8, 30, 17, 0.3);
  }
}

/* -------------------------------------------------------------- stepper --- */

.stepper { display: flex; align-items: flex-start; width: 100%; }
.stepper li { display: flex; align-items: flex-start; }
.stepper .step { display: flex; flex-direction: column; align-items: center; width: 2.25rem; }

.stepper .step-dot {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-mute);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(20, 60, 35, 0.18);
}

.stepper .is-done .step-dot,
.stepper .is-current .step-dot {
  color: #fff;
  background: linear-gradient(180deg, #2f7c4c, #1a5632 55%, #123f24);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.stepper .is-current .step-dot {
  box-shadow: 0 0 0 4px rgba(200, 169, 81, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.stepper .step-label {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  color: var(--ink-mute);
}

.stepper .is-done .step-label { color: var(--nbc-green); font-weight: 600; }
.stepper .is-current .step-label { color: var(--nbc-green-dark); font-weight: 700; }

.stepper .step-line {
  flex: 1 1 auto;
  height: 2px;
  margin: 1.02rem 0.25rem 0 0.25rem;
  border-radius: 2px;
  background: rgba(20, 60, 35, 0.14);
}

.stepper .step-line.is-done { background: linear-gradient(90deg, var(--nbc-green-light), var(--nbc-green)); }

/* -------------------------------------------------------- modal (notice) --- */

.modal-backdrop {
  background: rgba(8, 30, 17, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(249, 251, 246, 0.88));
  box-shadow: 0 30px 70px -20px rgba(8, 30, 17, 0.55), inset 0 1px 0 #fff;
}
.modal-card::before { display: none; }

.modal-head {
  border-radius: 1.4rem 1.4rem 0 0;
  background: linear-gradient(150deg, #235c39, #14472a 60%, #0f3a22);
  border-bottom: 2px solid var(--nbc-gold);
}

/* ------------------------------------------------- fallbacks & printing --- */

/* Without backdrop blur (or when the reader asks for less transparency) the
   panels turn near-opaque so text never sits on an unblurred background. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass-card, .login-shell, .login-form-side, .flash { background: rgba(251, 252, 249, 0.97); }
  .site-header, .site-nav { background: rgba(16, 56, 32, 0.97); }
}

@media (prefers-reduced-transparency: reduce) {
  .glass-card, .login-shell, .flash { background: #fbfcf9; }
  .login-form-side { background: #fbfcf9; }
  .site-header, .site-nav { background: #12432a; }
}

/* ------------------------------------------------- find application (FR-NBCP-14) --- */

.find-search { max-width: 44rem; }
body.scene .find-search input[type="search"] { flex: 1; min-width: 0; padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.find-hint { margin-top: 0.6rem; color: rgba(255, 255, 255, 0.84); font-size: 0.85rem; }
.find-hint a { color: #fff; text-decoration: underline; }
.find-count { margin: 1.5rem 0 0.75rem; color: #fff; font-size: 0.95rem; }
.find-muted { color: var(--ink-mute); font-size: 0.85rem; overflow-wrap: anywhere; }
.find-empty { padding: 1.25rem; color: var(--ink); }
.find-result { padding: 1.25rem; color: var(--ink); }
.find-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.find-why { font-style: italic; }

.find-now { margin-top: 0.9rem; padding: 0.85rem 1rem; border-radius: 0.9rem; border-left: 5px solid; font-size: 0.9rem; overflow-wrap: anywhere; }
.find-now-official { background: #e7f3ec; border-color: var(--nbc-green); }
.find-now-applicant { background: #fbf3dc; border-color: var(--nbc-gold-dark); }
.find-now-done { background: #e9eef5; border-color: #3b5a85; }
.find-now-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.find-now-headline { font-size: 1.15rem; font-weight: 700; color: var(--nbc-green-deep); line-height: 1.3; }
.find-now-since { color: var(--ink-soft); }
.find-holders { margin-top: 0.5rem; }
.find-holders li { margin-top: 0.15rem; }
.find-holders a, .find-detail a { color: var(--nbc-green); text-decoration: underline; }
.find-detail { margin-top: 0.4rem; color: var(--ink); }
.find-warn { margin-top: 0.5rem; font-weight: 600; color: #9b1c1c; }

.find-history { margin-top: 0.9rem; font-size: 0.9rem; }
.find-history > summary, .find-note > summary { cursor: pointer; font-weight: 600; color: var(--nbc-green); }
.find-nohistory { margin-top: 0.9rem; }
.find-steps { margin: 0.6rem 0 0 0.35rem; padding-left: 1rem; border-left: 2px solid var(--line); }
.find-steps li { position: relative; padding: 0.3rem 0 0.5rem; }
.find-steps li::before { content: ""; position: absolute; left: calc(-1rem - 6px); top: 0.65rem; width: 10px; height: 10px; border-radius: 50%; background: var(--nbc-gold-dark); }
.find-steps li.is-latest::before { background: var(--nbc-green); box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.2); }
.find-step-what { font-weight: 600; color: var(--ink); }
.find-note { margin-top: 0.2rem; }
.find-note > p { margin-top: 0.35rem; padding: 0.6rem 0.75rem; border-radius: 0.6rem; background: rgba(255, 255, 255, 0.75); color: var(--ink); overflow-wrap: anywhere; }

@media print {
  body.scene { background: #fff !important; color: #111; }
  .scene-orbs, .scene-field { display: none !important; }
  [data-shimmer]::after { display: none !important; }
  .glass-card, .login-shell, .flash {
    background: #fff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
  }
  .glass-card::before { display: none !important; }
  .page-title { color: #111; text-shadow: none; }
  .page-sub, .page-kicker { color: #444; }
}
