/* ======================================================================
   TEC — main.css
   Shell layout, navbar, grids, cards, and shared utilities
   (Intake-specific polish lives in apps/intake/assets/css/intake.css)
   ====================================================================== */

/* ======================================================================
   0) CSS VARIABLES — PALETTE + GLOBALS
   ====================================================================== */

:root{
  --logo-blue:  #0D16D7;  /* logo / primary links */
  --gold:       #F2B831;  /* logo gold / key dividers */

  /* Core + Accents */
  --navy:       #070D81;  /* structural navy */
  --support:    #316bf2;  /* secondary UI blue */
  --highlight:  #007FFF;  /* focus rings / borders */
  --accent:     #090f96;  /* badges / special callouts */

  /* Neutrals */
  --bg:         #ffffff;
  --card:       #f4f4f4;
  --ink:        #030640;
  --ink-black:  #000000;
  --muted:      #557C99;

  /* Lines */
  --line:       #e2a20e;
  --line-accent:#f4c65a;

  /* Deep shades */
  --navy-deep:  #050856;
  --navy-deeper:#02042b;

  /* Layout */
  --radius:     14px;
  --shadow:     0 8px 22px rgba(0,0,0,.08);
  --shadow2:    0 2px 10px rgba(0,0,0,.06);
  --max:        1180px;
}


/* ======================================================================
   1) BASE / RESET / UTILITIES
   ====================================================================== */

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

html,body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  line-height:1.35;
  min-height:100vh;
  background:
    linear-gradient(90deg, rgba(13,22,215,.28) 0%, rgba(0,51,102,0) 55%),
    linear-gradient(180deg, var(--logo-blue) 0%, var(--navy) 22%, var(--navy-deeper) 100%);
  background-repeat:no-repeat;
  background-size: 100% 100%;
}

a{ color:var(--logo-blue); text-decoration:none; }
a:hover{ color:var(--gold); text-decoration:underline; text-underline-offset:3px; }
a.btn:hover{ text-decoration:none; }

:focus-visible{
  outline: 3px solid var(--highlight);
  outline-offset: 2px;
  border-radius: 8px;
}

.wrap{ max-width:var(--max); margin:0 auto; padding:0 18px; }
.topline{ height:5px; background:var(--gold); }

.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* Utility helpers used in cards */
.muted{ color:var(--muted); }
.small{ font-size:12px; }

.scroll-target{ scroll-margin-top:90px; }


/* ======================================================================
   2) HEADER / MASTHEAD
   ====================================================================== */

.masthead{
  background: linear-gradient(180deg, var(--support) 0%, var(--navy) 52%, var(--navy-deep) 100%);
  border-bottom:0;
}

.masthead-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{ display:flex; align-items:center; gap:14px; min-width:260px; }

.logo{
  width: fit-content;
  height: auto;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  border:2px solid color-mix(in srgb, var(--highlight) 35%, transparent);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex:0 0 auto;
}

.logo img{
  height:64px;
  width:auto;
  max-width: 260px;
  display:block;
  object-fit:contain;
  object-position:center;
  border-radius: 10px;
  background: transparent;
  filter:none;
}

.brand h1{ font-size:18px; margin:0; line-height:1.1; color:#fff; }
.brand h1 a{ color:inherit; text-decoration:none; }
.brand h1 a:hover{ color:var(--gold); text-decoration:none; }
.brand small{ display:block; margin-top:4px; color: rgba(255,255,255,.88); font-size:12px; }

.tagline{ text-align:right; color: rgba(255,255,255,.88); font-size:13px; }
.tagline strong{ color:#fff; }
.tagline a{ color:#fff; text-decoration:underline; text-underline-offset:3px; font-weight:900; }
.tagline a:hover{ color: var(--gold); }


/* ======================================================================
   3) NAVBAR + DROPDOWNS
   ====================================================================== */

.nav{
  background:var(--navy-deep);
  border-bottom: 4px solid var(--gold);
}

.nav .wrap{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  padding:10px 0;
  flex-wrap:wrap;
}

.nav a,
.nav .nav-link{
  appearance:none;
  background:transparent;
  border:0;
  color:#fff;
  padding:6px 10px;
  font-weight:800;
  font-size:13px;
  border-radius:10px;
  text-decoration:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.nav a:hover,
.nav .nav-link:hover{
  color: var(--gold);
  background: rgba(255,255,255,.10);
  border: 1px solid color-mix(in srgb, var(--highlight) 50%, transparent);
  text-decoration:none;
}

.nav a:focus-visible,
.nav .nav-link:focus-visible{
  background: rgba(255,255,255,.10);
  border: 1px solid color-mix(in srgb, var(--highlight) 60%, transparent);
  color: var(--gold);
  outline: none;
}

.nav a.active{
  background: rgba(255,255,255,.10);
  border: 1px solid color-mix(in srgb, var(--highlight) 60%, transparent);
  color:#fff;
}

.nav a.active:hover{ color: var(--gold); }

.nav-item{ position:relative; }

.nav-caret{
  width:8px; height:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform: rotate(45deg);
  margin-top:-2px;
  opacity:.9;
}

/* Dropdown panel */
.dropdown{
  position:absolute;
  top: calc(100% + 10px);
  left:50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 260px;
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--highlight) 45%, transparent);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.20);
  padding: 10px;
  z-index: 50;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

.nav-item.open .dropdown{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}

.dropdown a{
  display:block;
  padding:10px 10px;
  border-radius: 12px;
  font-weight:900;
  font-size:13px;
  color: var(--ink);
  text-decoration:none;
  border:1px solid transparent;
}

.dropdown a:hover,
.dropdown a:focus-visible{
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  border-color: var(--gold);
  color: var(--accent);
  outline:none;
}

@media (max-width: 640px){
  .dropdown{
    left:0;
    transform:none;
    width: min(92vw, 360px);
  }
}


/* ======================================================================
   4) MAIN SHELL + LAYOUT GRID
   ====================================================================== */

main{
  padding:18px 0 34px;
  background:
    radial-gradient(circle at 50% 40%,
      var(--logo-blue) 0%,
      var(--logo-blue) 34%,
      var(--navy-deep) 64%,
      var(--navy-deeper) 100%
    );
  background-repeat:no-repeat;
  background-size: 100% 100%;
}

.dashboard-toolbar-strip{
  margin-top: -18px;
  margin-bottom: 14px;
  background: color-mix(in srgb, #ffffff 10%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--line-accent) 45%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line-accent) 55%, transparent);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.08);
}

.dashboard-toolbar-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:10px 18px;
}

.dashboard-tool-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid color-mix(in srgb, #ffffff 25%, transparent);
  background: rgba(255,255,255,.08);
  color:#fff;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  transition: all .15s ease;
}

.dashboard-tool-tab:hover,
.dashboard-tool-tab:focus-visible{
  color: var(--gold);
  text-decoration:none;
  border-color: color-mix(in srgb, var(--highlight) 65%, transparent);
  background: rgba(255,255,255,.14);
}

.dashboard-tool-tab.is-active{
  color: var(--ink);
  background: linear-gradient(180deg, #fff0c2 0%, var(--gold) 100%);
  border-color: color-mix(in srgb, var(--gold) 75%, #c88a00 25%);
}

.timesheet-section-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}


.timesheet-grid{ overflow-x:auto; }


.timesheet-matrix-wrap{
  overflow-x:auto;
  border:1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  border-radius:12px;
  background:#fff;
}

.timesheet-matrix{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
}

.timesheet-matrix th,
.timesheet-matrix td{
  border-right:1px solid #e6e9f0;
  border-bottom:1px solid #e6e9f0;
  padding:4px 6px;
  font-size:11px;
  vertical-align:middle;
  background:#fff;
}

.timesheet-matrix thead th{
  position:sticky;
  top:0;
  z-index:3;
  background:#f4f7ff;
  font-weight:800;
  text-align:center;
}

.timesheet-matrix .sticky-col{
  position:sticky;
  left:0;
  background:#fff;
  z-index:2;
}

.timesheet-matrix .sticky-col-1{
  width:132px;
  min-width:132px;
  font-weight:800;
  text-align:left;
}

.timesheet-matrix thead .sticky-col-1{
  z-index:4;
  background:#dfe8ff;
}

.timesheet-matrix .day-col{
  width:56px;
}

.timesheet-matrix .week-divider-left{
  border-left:3px solid color-mix(in srgb, var(--gold) 82%, #c48b00 18%);
}

.timesheet-matrix .totals-col{
  background:#f7f9ff;
  width:58px;
  min-width:58px;
  font-weight:700;
  text-align:center;
}

.timesheet-matrix .matrix-section-row td{
  background:#eef3ff;
  font-weight:900;
  color:#070D81;
  text-align:left;
}

.timesheet-matrix .is-holiday{
  background:#fff4da;
}

.timesheet-matrix .holiday-name{
  display:block;
  color:#8a6000;
  font-weight:700;
  margin-top:1px;
  font-size:10px;
}

.matrix-cell-input{
  width:46px;
  border:1px solid #cfd7e6;
  border-radius:4px;
  padding:3px 4px;
  text-align:right;
  font-size:11px;
  background:#fff;
}

.matrix-cell-input:focus-visible{
  outline:2px solid var(--highlight);
  outline-offset:1px;
}

.matrix-empty{
  color:var(--muted);
  font-size:11px;
}

.input{
  width:100%;
  border:1px solid color-mix(in srgb, var(--muted) 45%, transparent);
  border-radius:10px;
  padding:10px 12px;
  font:inherit;
  color:var(--ink);
  background:#fff;
}

.input:focus-visible{
  outline:2px solid var(--highlight);
  outline-offset:1px;
}

.workspace-tool-pill-wrap{
  margin: 0;
  padding: 12px 0 4px;
  background: transparent;
}

.workspace-tool-pill{
  background: #070D81;
  border: 4px solid #F2B831;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(3, 6, 64, .30);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.workspace-tool-pill.is-expanded{
  border-radius: 32px;
}

.workspace-tool-main-row,
.workspace-tool-sub-row{
  list-style:none;
  margin:0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
}

.workspace-tool-item{
  margin:0;
}

.workspace-tool-main-link,
.workspace-tool-sub-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .14);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  text-decoration:none;
  line-height: 1;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.workspace-tool-main-link:hover,
.workspace-tool-main-link:focus-visible,
.workspace-tool-sub-link:hover,
.workspace-tool-sub-link:focus-visible{
  text-decoration:none;
  color:#FFFFFF;
  border-color:#FFFFFF;
  background: rgba(255, 255, 255, .20);
  outline: none;
}

.workspace-tool-main-link.is-active,
.workspace-tool-sub-link.is-active{
  background:#FFFFFF;
  border-color:#FFFFFF;
  color:#070D81;
}

.workspace-tool-divider{
  height: 6px;
  background: #F2B831;
  width: calc(100% - 32px);
  margin: 0 auto;
  border-radius: 999px;
}

.workspace-tool-sub-row{
  padding-top: 12px;
  padding-bottom: 14px;
}

.portal-page{
  min-height: 100vh;
  min-height: 100svh;
  display:flex;
  flex-direction:column;
}

.portal-main{
  flex:1 1 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  padding-block: clamp(24px, 5vh, 64px);
}

.portal-auth-wrap{
  width:100%;
  max-width:760px;
}

.portal-login-shell{
  width:100%;
}

@media (max-height: 760px){
  .portal-main{
    align-items:flex-start;
  }
}

.surface{
  background:transparent;
  border:0;
  border-radius:0;
  padding:0;
  box-shadow:none;
  backdrop-filter:none;
}

/* Generic grid utility (used by cards/forms too). */
.grid{
  display:grid;
  gap:18px;
}

/* Site shell 2-column layout (targets the actual page wrapper) */
main > .wrap > .grid{
  grid-template-columns: 1.55fr .75fr;
  align-items:start;
}

@media (max-width: 860px){
  main > .wrap > .grid{ grid-template-columns: 1fr; }
  .tagline{ display:none; }
}

.stack{ display:grid; gap:14px; }



.dashboard-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.dashboard-head h1{ margin:0 0 6px; }

.role-pill{
  display:inline-flex;
  align-items:center;
  border:1px solid color-mix(in srgb, var(--muted) 40%, transparent);
  border-radius:999px;
  padding:7px 12px;
  font-weight:800;
  color:var(--muted);
  background: rgba(255,255,255,.85);
}

.dashboard-grid-three{
  display:grid;
  gap:14px;
  grid-template-columns:1fr;
  margin-bottom:14px;
}

@media (min-width: 900px){
  .dashboard-grid-three{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}

.dashboard-card{ padding:16px; margin-bottom:14px; }
.dashboard-card h2{ margin:0 0 8px; }

.dashboard-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.dashboard-row-split{ justify-content:space-between; }

.dashboard-table{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
}

.dashboard-table th,
.dashboard-table td{
  text-align:left;
  padding:10px;
  border-bottom:1px solid color-mix(in srgb, var(--muted) 24%, transparent);
}

.dashboard-table th{
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:12px;
  color:var(--muted);
}

.dev-tests-output{
  margin:10px 0 0;
  border-radius:12px;
  background:#010b17;
  color:#e9eef8;
  padding:12px;
  overflow:auto;
}

/* ======================================================================
   5) CARDS + SHARED CONTENT ELEMENTS
   ====================================================================== */

.card{
  background:var(--card);
  border:0;
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
  overflow:hidden;
}

.card.pad{ padding:16px; }

.card h2, .card h3{ margin:0 0 8px; line-height:1.15; }
.card h2{ font-size:20px; }
.card h3{ font-size:16px; }

.sub{ color:var(--muted); font-size:13px; margin:0; }

.divider{
  height:2px;
  background:linear-gradient(90deg, var(--gold), rgba(242,184,49,.15));
  margin:12px 0 0;
  border-radius:999px;
}

/* Card section header/body helpers (used by some cards) */
.card .card-header + .card-body{ margin-top:10px; }


/* ======================================================================
   6) HERO / BADGES / FEATURE BLOCKS
   ====================================================================== */

.hero{ text-align:center; padding:18px 16px 16px; }
.hero h2{ font-size:22px; color:var(--navy); margin-bottom:6px; }
.hero .sub{ margin:0 auto; max-width: 56ch; }

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:900;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 82%, black));
  padding:6px 10px;
  border-radius:999px;
  border: 1px solid rgba(242,184,49,.55);
  box-shadow: 0 10px 20px rgba(153,51,0,.15);
}

.feature{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
  align-items:center;
}

@media (max-width: 640px){
  .feature{ grid-template-columns:1fr; }
}

.media{
  border-radius:12px;
  border:1px solid color-mix(in srgb, var(--highlight) 55%, transparent);
  height:120px;
  overflow:hidden;
  background: rgba(255,255,255,.12);
}

.media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: 45% 35%;
  display:block;
}


/* ======================================================================
   7) BUTTONS (UNIFIED)
   ====================================================================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  text-decoration:none;
  user-select:none;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
}

.btn:active{ transform: translateY(1px); }

/* Primary CTA */
.btn.primary,
.btn.secondary{
  background:var(--logo-blue);
  color:#fff;
  box-shadow:0 8px 18px rgba(13,22,215,.18);
  border:1px solid transparent;
}

.btn.primary:hover,
.btn.secondary:hover{
  background: color-mix(in srgb, var(--logo-blue) 88%, black);
  border-color: var(--gold);
  color: var(--gold);
  text-decoration:none;
}

/* Ghost */
.btn.ghost{
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  border-color: color-mix(in srgb, var(--muted) 55%, transparent);
  color: var(--navy-deep);
}

.btn.ghost:hover{
  background: color-mix(in srgb, var(--muted) 26%, transparent);
  border-color: var(--gold);
  color: var(--gold);
  text-decoration:none;
}

/* Optional helper used in some cards */
.btn.btn-soft{ opacity:.95; }


/* ======================================================================
   8) SERVICES CATALOG (PILL + TILES)
   ====================================================================== */

.section-title{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
  margin-bottom:10px;

  background: rgba(255,255,255,.92);
  border: 3px solid var(--gold);
  border-left: 6px solid var(--gold);
  border-right: 6px solid var(--gold);
  padding:10px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.section-title h3{
  margin:0;
  font-size:16px;
  color: var(--navy);
  flex: 1 1 auto;
  text-align:center;
}

.cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}

@media (max-width: 720px){

  .cards{ grid-template-columns:1fr; }
}

.svc .thumb{
  height:128px;
  border-bottom: 1px solid var(--line-accent);
  overflow:hidden;
  background: rgba(255,255,255,.10);
}

.svc .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: 50% 40%;
  display:block;
}

/* Per-image object-position tweaks */
.svc .thumb img[src*="OYC.png"]{ object-position: 20% 25%; }
.svc .thumb img[src*="ILP.png"]{ object-position: 55% 40%; }
.svc .thumb img[src*="Adult_DW.png"]{ object-position: 55% 35%; }
.svc .thumb img[src*="Youth.png"]{ object-position: 55% 40%; }
.svc .thumb img[src*="JOBS.png"]{ object-position: 50% 40%; }

.svc .body{ padding:14px; }
.svc p{ margin:0 0 12px; color:var(--muted); font-size:13px; }

.svc .meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}


/* ======================================================================
   9) FAQ / DETAILS
   ====================================================================== */

details{ border-top:1px solid var(--line-accent); padding:10px 0; }
details:first-of-type{ border-top:none; }

summary{
  cursor:pointer;
  list-style:none;
  font-weight:900;
  color:var(--navy);
  font-size:13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

summary::-webkit-details-marker{ display:none; }

.chev{
  width:10px; height:10px;
  border-right:2px solid var(--support);
  border-bottom:2px solid var(--support);
  transform: rotate(-45deg);
  transition: transform .15s ease;
  margin-left:auto;
}

details[open] .chev{ transform: rotate(45deg); }
details p{ margin:10px 0 0; color:var(--muted); font-size:13px; }


/* ======================================================================
   10) FOOTER
   ====================================================================== */

footer{ border-top:4px solid var(--gold); color:#fff; }

.footer-band-top{
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 52%, var(--support) 100%);
}

.footer-band-bottom{
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-deeper) 100%);
}

.footer-sep-gold{ height:2px; background: var(--gold); }

.footer-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:18px 0 14px;
  flex-wrap:wrap;
}

.footer-head-left{
  display:flex;
  gap:14px;
  align-items:flex-start;
  min-width:min(640px, 100%);
}

.footer-logo{
  width: fit-content;
  height: auto;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  border:2px solid color-mix(in srgb, var(--highlight) 35%, transparent);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  overflow:hidden;
}

.footer-logo img{
  height:55px;
  width:auto;
  max-width: 240px;
  display:block;
  object-fit:contain;
  object-position:center;
  border-radius: 10px;
  background: transparent;
  filter:none;
}

.footer-meta h4{
  margin:0 0 6px;
  font-size:15px;
  font-weight:900;
  letter-spacing:.2px;
  color:#fff;
}

.footer-meta p{ margin:4px 0 0; color: rgba(255,255,255,.90); font-size:13px; }

.footer-meta a{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:3px;
  font-weight:800;
}

.footer-meta a:hover{ color: var(--gold); text-decoration-thickness:2px; }

.footer-actions{ display:flex; align-items:flex-start; gap:10px; margin-left:auto; }

.portal-btn{
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  display:grid;
  place-items:center;
  color: var(--gold);
  cursor:pointer;
}

.portal-btn:hover{ background: rgba(255,255,255,.14); }

.footer-nav-band{ padding:10px 0 12px; }
.footer-nav-links{ display:flex; justify-content:center; gap:18px; flex-wrap:wrap; }

.footer-nav-links a{
  color:#fff;
  font-weight:800;

  font-size:13px;
  text-decoration:none;
  padding:6px 6px;
  border-radius:8px;
}

.footer-nav-links a:hover{ text-decoration:underline; text-underline-offset:3px; color: var(--gold); }

.footer-legal{
  padding:14px 0 18px;
  color: rgba(255,255,255,.90);
  font-size:12px;
  line-height:1.45;
  max-width: 120ch;
  margin:0 auto;
  text-align:center;
}


/* ======================================================================
   11) MODALS (CONTACT + APPLY)
   ====================================================================== */

.modal-backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:999;
}

/* Contact modal uses .open (ui.js) */
.modal-backdrop.open{ display:flex; }

/* Apply modal uses aria-hidden toggling (cards.js) */
#applyModal[aria-hidden="false"]{ display:flex; }
#applyModal[aria-hidden="true"]{ display:none; }

.modal{
  width:min(560px, 100%);
  background: var(--card);
  color: var(--ink);
  border-radius: 16px;
  border: 2px solid color-mix(in srgb, var(--highlight) 55%, transparent);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.modal-head{
  padding:14px 16px;
  background: linear-gradient(180deg, rgba(13,22,215,.10), rgba(0,51,102,.06));
  border-bottom: 1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.modal-head h3{ margin:0; font-size:16px; color: var(--navy); }

.modal-close{
  appearance:none;
  border:1px solid rgba(0,102,153,.35);
  background:#fff;
  color: var(--support);
  border-radius: 12px;
  padding:8px 10px;
  font-weight:900;
  cursor:pointer;
}

.modal-body{ padding:14px 16px 16px; }
.modal-body p{ margin:0 0 10px; color: var(--muted); font-size:13px; }
.modal-actions{ display:flex; gap:10px; flex-wrap:wrap; }

body.modal-open{ overflow:hidden; }


/* =======================================================================
   12) LOADER BANNERS + MEDIA UTILITIES
   ======================================================================= */

.card.banner{ padding:0; }
.banner-inner{ padding:22px 18px; text-align:center; }
.banner-inner h1{ margin:0; }
.banner-inner .sub{ margin-top:8px; }

.media-card{ overflow:hidden; }
.media-figure img{ display:block; width:100%; height:auto; }


/* =======================================================================
   13) ABOUT CARD SUPPORT STYLES
   ======================================================================= */

/* Partner logo grid */
.partners{
  display:flex;
  flex-wrap: wrap;
  gap:16px;
  align-items:center;
}

.partner-logo{
  max-height:52px;
  width:auto;
  height:auto;
}

/* Success story layout */
.success-grid{
  display:grid;
  gap:18px;
}

@media (min-width: 760px) {
  .success-grid{ grid-template-columns: 1fr 1fr; }
}

/* Staff directory */
.team-grid{
  display:grid;
  gap:16px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px){
  .team-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.staff-card{
  border-radius: inherit;
  padding: 14px;
  background: transparent;
}

.staff-person-tile{
  border:2px solid var(--gold);
  border-radius:var(--radius);
  padding:14px;
  background:var(--card);
  height:100%;
}

.staff-person-tile .staff-card{
  padding:0;
}

.staff-top{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.staff-avatar{
  width:56px;
  height:56px;
  border-radius:14px;
  overflow:hidden;
  flex:0 0 auto;
}

.staff-avatar img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.staff-name{ margin:0; }
.staff-title{ margin:2px 0 0; }
.staff-lines{ margin:6px 0 0; }
.staff-lines .dot{ margin:0 6px; opacity:.7; }

.staff-bio{ margin:12px 0 0; }
.staff-bio--empty{ opacity:.75; }

.staff-actions{ margin-top:12px; }

/* Locations card */
.locations-region{
  display:grid;
  gap:16px;
}

.loc-map{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background: color-mix(in srgb, var(--muted) 18%, transparent);
}

.loc-map img{
  display:block;
  width:100%;
  height:auto;
}

.county-buttons{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}

@media (min-width: 760px){
  .county-buttons{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.county-btn.is-active{
  border-color: var(--gold);
  box-shadow: 0 6px 12px rgba(13,22,215,.12);
}

.office-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}

@media (min-width: 760px){
  .office-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.office-item{
  padding:12px;
  border-radius:14px;
}

.office-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}

.office-badge{ font-size:12px; opacity:.85; }
.office-actions{ margin-top:10px; }

/* Board card */
.board-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}

@media (min-width: 760px){
  .board-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1020px){
  .board-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.board-member{
  padding:12px;
  border-radius:14px;
}

.board-name{ margin:0 0 4px; }
.board-role{ margin:0; }

/* Careers card */
.job-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}

@media (min-width: 760px){
  .job-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.job-card{
  padding:12px;
  border-radius:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.job-meta .sep{ margin:0 .35rem; opacity:.7; }
.job-summary{ margin:0; }
.job-actions{ margin-top:auto; }
