/* ==========================================================================
   The Off-Reserve Support Association — Design System
   Indigenous-designed · Whitefish Lake First Nation #459 · Treaty 8, Northern Alberta
   Palette drawn from the Association logo (teal teepee) + northern lights.
   ========================================================================== */

:root {
  /* Brand */
  --cyan: #35e0d8;
  --cyan-bright: #6ff7ef;
  --teal: #128f8a;
  --teal-deep: #0c4f52;
  --night: #071c20;         /* deep boreal night */
  --night-2: #0b2a30;
  --ink: #12262a;
  --cream: #f7f2e8;         /* birch-bark cream */
  --sand: #efe7d6;
  --amber: #e9a13b;         /* beadwork amber */
  --clay: #c96f3b;          /* earth / clay red */
  --white: #ffffff;

  --grad-aurora: linear-gradient(115deg, #0c4f52 0%, #128f8a 35%, #35e0d8 65%, #7ce8b8 88%, #b8f0a0 100%);
  --grad-cta: linear-gradient(100deg, #35e0d8, #17b3ab);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(7, 28, 32, 0.12);
  --shadow-soft: 0 4px 14px rgba(7, 28, 32, 0.08);

  --font-head: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; color: var(--night); }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); letter-spacing: -0.3px; }
h3 { font-size: 1.22rem; }

p + p { margin-top: 0.9em; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 72px 0; }
.section-tight { padding: 46px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 2.4px; text-transform: uppercase; color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 8px; flex: none;
  background:
    conic-gradient(from 45deg, var(--amber) 25%, transparent 0) 0 0 / 8px 8px,
    conic-gradient(from 45deg, var(--cyan) 25%, transparent 0) 9px 0 / 8px 8px,
    conic-gradient(from 45deg, var(--clay) 25%, transparent 0) 18px 0 / 8px 8px;
  background-repeat: no-repeat;
}

.lead { font-size: 1.13rem; color: #33484d; }

/* --------------------------------------------------------------------------
   Beadwork divider — a strip of diamonds like a beaded belt
   -------------------------------------------------------------------------- */
.beadline {
  height: 12px;
  background:
    repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,0.06) 6px 12px),
    repeating-linear-gradient(90deg,
      var(--teal-deep) 0 14px, var(--cyan) 14px 28px,
      var(--amber) 28px 42px, var(--cyan) 42px 56px,
      var(--clay) 56px 70px, var(--cyan) 70px 84px);
}
.beadline-thin { height: 6px; }

.bead-divider {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin: 8px 0 26px;
}
.bead-divider i {
  width: 11px; height: 11px; transform: rotate(45deg); border-radius: 2px;
  background: var(--cyan);
}
.bead-divider i:nth-child(odd) { background: var(--amber); width: 8px; height: 8px; }
.bead-divider i:first-child, .bead-divider i:last-child { background: var(--clay); }

/* --------------------------------------------------------------------------
   Top bar + header + dropdown navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--night);
  color: #bfe9e4;
  font-size: 0.8rem;
  text-align: center;
  padding: 7px 14px;
  letter-spacing: 0.4px;
}
.topbar strong { color: var(--cyan); font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid rgba(12, 79, 82, 0.14);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 10px 22px; max-width: var(--maxw); margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  line-height: 1.15; color: var(--night);
}
.brand-name small {
  display: block; font-weight: 600; font-size: 0.68rem;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--teal);
}

.menu { display: flex; align-items: center; gap: 4px; list-style: none; }

.menu > li { position: relative; }

.menu > li > a, .menu > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: 0.92rem; font-weight: 600;
  color: var(--night); background: none; border: 0; cursor: pointer;
  padding: 12px 13px; border-radius: 10px;
}
.menu > li > a:hover, .menu > li > button:hover { background: rgba(53, 224, 216, 0.14); color: var(--teal-deep); }

.caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
li.open > button .caret { transform: rotate(225deg) translateY(-1px); }

.drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 4px solid var(--cyan);
  list-style: none; padding: 10px; display: none; z-index: 70;
}
li.open > .drop { display: block; }
.drop a {
  display: block; padding: 10px 12px; border-radius: 9px;
  color: var(--ink); font-size: 0.93rem; font-weight: 500;
}
.drop a:hover { background: var(--cream); color: var(--teal-deep); }
.drop a small { display: block; color: #6b7f83; font-size: 0.76rem; font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  padding: 12px 24px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-cta {
  background: var(--grad-cta); color: var(--night) !important;
  box-shadow: 0 6px 18px rgba(23, 179, 171, 0.4);
}
.btn-dark { background: var(--night); color: var(--cyan) !important; }
.btn-outline {
  background: transparent; color: var(--teal-deep) !important;
  border: 2px solid var(--teal);
}
.btn-light { background: var(--white); color: var(--teal-deep) !important; box-shadow: var(--shadow-soft); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px; flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 3px; border-radius: 3px;
  background: var(--night); position: relative; margin: 0 auto;
}
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after { position: absolute; top: 8px; }

/* --------------------------------------------------------------------------
   Hero — aurora over the boreal treeline
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(124, 232, 184, 0.34), transparent 60%),
    radial-gradient(900px 420px at 18% -14%, rgba(53, 224, 216, 0.4), transparent 62%),
    radial-gradient(700px 380px at 55% 0%, rgba(233, 161, 59, 0.14), transparent 65%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 62%, #0e3a3d 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px;
  align-items: center; padding: 84px 22px 130px;
  max-width: var(--maxw); margin: 0 auto;
}
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--cyan-bright); }
.hero p { color: #cfe7e4; font-size: 1.14rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-badges span {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.4px;
  border: 1px solid rgba(111, 247, 239, 0.4); color: #bff2ee;
  padding: 6px 14px; border-radius: 999px;
}
.hero-art { position: relative; z-index: 2; }

.treeline { position: absolute; bottom: -2px; left: 0; right: 0; z-index: 1; pointer-events: none; }
.treeline svg { width: 100%; height: auto; }

/* Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 320px at 80% -30%, rgba(124, 232, 184, 0.3), transparent 60%),
    radial-gradient(760px 320px at 12% -30%, rgba(53, 224, 216, 0.34), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, #0d3438 100%);
  padding: 58px 0 64px;
}
.page-hero h1 { color: var(--white); margin-top: 6px; }
.page-hero .eyebrow { color: var(--cyan-bright); }
.page-hero p { color: #cfe7e4; max-width: 46em; margin-top: 12px; font-size: 1.08rem; }
.crumbs { font-size: 0.84rem; color: #9ec9c4; margin-bottom: 4px; }
.crumbs a { color: var(--cyan-bright); }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-soft);
  border: 1px solid rgba(12, 79, 82, 0.08);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
}
.card:hover { box-shadow: var(--shadow); }
.card-accent { border-top: 5px solid var(--cyan); }
.card-accent-amber { border-top: 5px solid var(--amber); }
.card-accent-clay { border-top: 5px solid var(--clay); }
.card-accent-teal { border-top: 5px solid var(--teal-deep); }
.card h3 a { color: inherit; }
.card .more { margin-top: auto; font-weight: 700; font-family: var(--font-head); font-size: 0.9rem; }
.card .more::after { content: " →"; }

.icon-chip {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: rgba(53, 224, 216, 0.16); color: var(--teal-deep);
  font-size: 1.5rem;
}

.amount {
  font-family: var(--font-head); font-weight: 800; font-size: 1.65rem;
  color: var(--teal-deep);
}
.amount small { font-size: 0.8rem; font-weight: 600; color: #5c7276; display: block; letter-spacing: 0.4px; }

.pill {
  display: inline-block; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 1.1px; text-transform: uppercase;
  background: rgba(233, 161, 59, 0.18); color: #9a6314;
  border-radius: 999px; padding: 4px 12px;
}
.pill-teal { background: rgba(18, 143, 138, 0.14); color: var(--teal-deep); }
.pill-clay { background: rgba(201, 111, 59, 0.16); color: #8f4517; }

/* Support detail layout */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
.aside-card {
  background: var(--night); color: #d9efec; border-radius: var(--radius-lg);
  padding: 26px; position: sticky; top: 96px;
}
.aside-card h3 { color: var(--cyan-bright); margin-bottom: 10px; }
.aside-card ul { list-style: none; display: grid; gap: 9px; font-size: 0.94rem; }
.aside-card li::before { content: "◆ "; color: var(--amber); font-size: 0.7rem; }
.aside-card .btn { width: 100%; margin-top: 18px; }
.aside-card hr { border: 0; border-top: 1px solid rgba(111, 247, 239, 0.2); margin: 18px 0; }

.support-block {
  background: var(--white); border-radius: var(--radius-lg); padding: 26px 28px;
  border-left: 6px solid var(--cyan); box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}
.support-block h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.support-block .amount { font-size: 1.25rem; margin-left: auto; }
.support-block ul { margin: 10px 0 0 20px; }
.support-block li { margin-top: 5px; }
.note {
  background: rgba(233, 161, 59, 0.13); border-left: 4px solid var(--amber);
  padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 0.93rem; margin-top: 12px;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-soft); counter-increment: step; position: relative;
}
.step::before {
  content: "";
  width: 44px; height: 44px; border-radius: 12px;
  display: block; margin-bottom: 14px;
  background: var(--grad-cta);
  transform: rotate(45deg);
}
.step::after {
  content: counter(step); position: absolute; top: 28px; left: 28px;
  width: 44px; height: 44px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--night);
}
.step h3 { margin-bottom: 8px; }

/* Checklist */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li {
  background: var(--white); border-radius: 12px; padding: 14px 18px 14px 48px;
  position: relative; box-shadow: var(--shadow-soft);
}
.check-list li::before {
  content: "✓"; position: absolute; left: 16px; top: 13px;
  width: 22px; height: 22px; border-radius: 7px; font-size: 0.85rem; font-weight: 800;
  display: grid; place-items: center; background: rgba(53, 224, 216, 0.22); color: var(--teal-deep);
}

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
table.data { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.95rem; }
table.data th {
  background: var(--night); color: var(--cyan-bright); text-align: left;
  font-family: var(--font-head); font-size: 0.83rem; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 13px 16px;
}
table.data td { padding: 12px 16px; border-top: 1px solid rgba(12, 79, 82, 0.1); vertical-align: top; }
table.data tr:nth-child(even) td { background: rgba(239, 231, 214, 0.4); }

/* Accordion */
.acc { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); background: var(--white); }
.acc + .acc { margin-top: 12px; }
.acc summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: var(--font-head); font-weight: 700; color: var(--night);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.4rem; color: var(--teal); flex: none; }
.acc[open] summary::after { content: "–"; }
.acc[open] summary { border-bottom: 1px solid rgba(12, 79, 82, 0.12); }
.acc .acc-body { padding: 18px 22px; }
.acc .acc-body ul { margin-left: 20px; }
.acc .acc-body li { margin-top: 5px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 34px; border-top: 6px solid var(--cyan);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label.f-label {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: 0.88rem; margin-bottom: 6px; color: var(--night);
}
label.f-label .req { color: var(--clay); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  border: 1.6px solid rgba(12, 79, 82, 0.25); border-radius: 10px;
  background: #fdfcf9; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(53, 224, 216, 0.25); }
.f-hint { font-size: 0.8rem; color: #64797d; margin-top: 4px; }
.f-fieldset {
  border: 1.6px solid rgba(12, 79, 82, 0.16); border-radius: var(--radius);
  padding: 20px 22px; margin-top: 26px;
}
.f-fieldset legend {
  font-family: var(--font-head); font-weight: 700; padding: 0 10px; color: var(--teal-deep);
  display: flex; align-items: center; gap: 8px;
}
.f-fieldset legend::before { content: ""; width: 10px; height: 10px; background: var(--amber); transform: rotate(45deg); border-radius: 2px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.choice input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--teal); flex: none; }
.consent-box {
  background: rgba(18, 143, 138, 0.08); border: 1.5px solid rgba(18, 143, 138, 0.3);
  border-radius: var(--radius); padding: 18px 20px; margin-top: 22px; font-size: 0.93rem;
}
.form-msg { margin-top: 16px; padding: 14px 18px; border-radius: 12px; display: none; }
.form-msg.ok { display: block; background: rgba(53, 224, 216, 0.16); border: 1.5px solid var(--teal); }
.form-msg.err { display: block; background: rgba(201, 111, 59, 0.13); border: 1.5px solid var(--clay); }

/* Eligibility checker */
.quiz-result { margin-top: 22px; }
.result-card {
  border-radius: var(--radius); padding: 18px 20px; margin-top: 12px;
  background: var(--white); box-shadow: var(--shadow-soft); border-left: 6px solid var(--cyan);
}
.result-card.na { border-left-color: #b9c4c2; opacity: 0.65; }

/* --------------------------------------------------------------------------
   Bands / callouts / photo slots
   -------------------------------------------------------------------------- */
.band-dark {
  background:
    radial-gradient(800px 300px at 85% -20%, rgba(53, 224, 216, 0.22), transparent 60%),
    linear-gradient(180deg, var(--night), var(--night-2));
  color: #d9efec;
}
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark .eyebrow { color: var(--cyan-bright); }
.band-sand { background: var(--sand); }

.cta-band {
  background: var(--grad-aurora); color: var(--night);
  border-radius: var(--radius-lg); padding: 44px 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 26px; justify-content: space-between;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: var(--night); }
.cta-band p { max-width: 38em; font-weight: 500; }

.photo-slot {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background:
    radial-gradient(400px 200px at 70% 0%, rgba(124, 232, 184, 0.35), transparent 60%),
    radial-gradient(300px 200px at 20% 10%, rgba(53, 224, 216, 0.4), transparent 60%),
    linear-gradient(180deg, #0b2a30, #10474b);
  min-height: 300px; display: grid; place-items: center;
}
.photo-slot img.real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot .slot-label {
  color: #9ed8d2; font-size: 0.82rem; text-align: center; padding: 18px;
  border: 1.5px dashed rgba(111, 247, 239, 0.4); border-radius: 12px; margin: 20px;
}

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  text-align: center; padding: 26px 14px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(111, 247, 239, 0.18);
}
.stat b { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--cyan-bright); }
.stat span { font-size: 0.86rem; color: #b7d9d5; }

/* News */
.news-card { padding: 0; overflow: hidden; }
.news-card .news-art { height: 160px; }
.news-card .news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-date { font-size: 0.78rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--clay); }

/* Alert / notice bar */
.notice {
  background: rgba(233, 161, 59, 0.15); border: 1.5px solid rgba(233, 161, 59, 0.5);
  border-radius: var(--radius); padding: 16px 20px; display: flex; gap: 14px; align-items: flex-start;
}
.notice b { font-family: var(--font-head); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--night); color: #a8c9c5; font-size: 0.92rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px;
  padding: 56px 0 40px;
}
.site-footer h4 { color: var(--cyan-bright); font-size: 0.85rem; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #cfe7e4; }
.site-footer a:hover { color: var(--cyan-bright); }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 44px; }
.footer-bottom {
  border-top: 1px solid rgba(111, 247, 239, 0.15);
  padding: 18px 0 26px; font-size: 0.8rem; color: #7fa7a2;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Member portal (demo)
   -------------------------------------------------------------------------- */
.demo-banner {
  background: repeating-linear-gradient(135deg, rgba(233,161,59,0.16) 0 14px, rgba(233,161,59,0.28) 14px 28px);
  border: 1.5px solid var(--amber); border-radius: var(--radius);
  padding: 12px 18px; font-size: 0.92rem; display: flex; gap: 12px; align-items: center;
}
.persona-switch { display: flex; gap: 8px; flex-wrap: wrap; }
.persona-switch button {
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1.6px solid rgba(111,247,239,0.5); background: transparent; color: #bff2ee;
}
.persona-switch button.active { background: var(--grad-cta); color: var(--night); border-color: transparent; }
.bar { height: 10px; border-radius: 999px; background: rgba(12,79,82,0.14); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-cta); }
.bar.maxed i { background: linear-gradient(90deg, #c96f3b, #e9a13b); }
.support-tile { display: flex; flex-direction: column; gap: 6px; }
.support-tile .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.support-tile .remaining { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--teal-deep); }
.support-tile .remaining.zero { color: #a06430; }
.doc-upload { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.doc-upload label { font-size: 0.9rem; font-weight: 600; }
.doc-upload input[type="file"] { font-size: 0.85rem; padding: 8px; background: #fdfcf9; border: 1.5px dashed rgba(12,79,82,0.35); border-radius: 10px; width: 100%; }
.activity td:last-child { font-weight: 600; }
.badge-ok { color: var(--teal-deep); font-weight: 700; }
.badge-wait { color: #9a6314; font-weight: 700; }

/* Portal app layout — sidebar + main view */
.portal-layout { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
.portal-side {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); padding: 16px; position: sticky; top: 92px;
}
.side-profile {
  display: flex; gap: 12px; align-items: center;
  padding: 8px 10px 16px; border-bottom: 1px solid rgba(12, 79, 82, 0.12); margin-bottom: 10px;
}
.side-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--grad-cta); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; color: var(--night); font-size: 1.05rem;
}
.side-group {
  font-family: var(--font-head); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 1.6px; text-transform: uppercase; color: #7d9094;
  padding: 14px 12px 6px;
}
.side-nav button {
  display: flex; width: 100%; align-items: center; gap: 10px; justify-content: space-between;
  padding: 11px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 0.94rem; color: var(--ink); text-align: left;
}
.side-nav button:hover { background: var(--cream); }
.side-nav button.active { background: rgba(53, 224, 216, 0.18); color: var(--teal-deep); box-shadow: inset 3px 0 0 var(--teal); }
.side-amt {
  font-size: 0.75rem; font-weight: 700; flex: none;
  color: var(--teal-deep); background: rgba(18, 143, 138, 0.1);
  padding: 2px 9px; border-radius: 999px;
}
.side-amt.zero { color: #a06430; background: rgba(233, 161, 59, 0.18); }
.portal-main { min-height: 460px; }
.donut-wrap { display: flex; gap: 34px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.legend { display: grid; gap: 9px; font-size: 0.93rem; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 8px; vertical-align: -1px; }
.ov-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.ov-row .ov-name { flex: 1; font-weight: 600; font-size: 0.94rem; }
.ov-row .bar { flex: 2; margin-top: 0; }
.ov-row .ov-amt { width: 130px; text-align: right; font-size: 0.85rem; color: #486064; }

@media (max-width: 980px) {
  .portal-layout { grid-template-columns: 1fr; }
  .portal-side { position: static; }
}

/* Admin area (demo) */
.admin-topbar {
  background: var(--night); color: #cfe7e4; padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 60;
}
.admin-topbar .brand-name { color: #fff; }
.admin-topbar select {
  width: auto; padding: 8px 12px; background: var(--night-2); color: var(--cyan-bright);
  border: 1.5px solid rgba(111, 247, 239, 0.4); border-radius: 9px; font-weight: 600;
}
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 22px 24px;
  box-shadow: var(--shadow-soft); border-top: 4px solid var(--cyan);
}
.stat-card b { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--teal-deep); }
.stat-card span { font-size: 0.86rem; color: #5c7276; }
.stat-card .trend { font-size: 0.78rem; font-weight: 700; color: var(--teal-deep); }
.queue-item {
  background: var(--white); border-radius: var(--radius-lg); padding: 20px 22px;
  box-shadow: var(--shadow-soft); border-left: 6px solid var(--amber); margin-bottom: 14px;
}
.queue-item.done-approved { border-left-color: var(--teal); opacity: 0.85; }
.queue-item.done-declined { border-left-color: #b9c4c2; opacity: 0.7; }
.queue-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.doc-chip {
  display: inline-flex; align-items: center; gap: 6px; margin: 4px 6px 0 0;
  font-size: 0.8rem; font-weight: 600; color: var(--teal-deep);
  background: rgba(18, 143, 138, 0.1); border: 1px solid rgba(18, 143, 138, 0.25);
  padding: 4px 12px; border-radius: 999px; cursor: pointer;
}
.doc-chip:hover { background: rgba(53, 224, 216, 0.2); }
.appr-track { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; font-size: 0.85rem; }
.appr-dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800; font-family: var(--font-head);
  background: #ece4d3; color: #8a9a97; border: 2px dashed #c9bfa9;
}
.appr-dot.filled { background: var(--grad-cta); color: var(--night); border: 0; }
.appr-dot.declined { background: #c96f3b; color: #fff; border: 0; }
.status-badge {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.status-pending { background: rgba(233, 161, 59, 0.2); color: #9a6314; }
.status-half { background: rgba(53, 224, 216, 0.2); color: var(--teal-deep); }
.status-approved { background: var(--grad-cta); color: var(--night); }
.status-declined { background: rgba(201, 111, 59, 0.2); color: #8f4517; }
.map-bubble { fill: rgba(23, 179, 171, 0.55); stroke: #0c4f52; stroke-width: 1; }
.map-bubble:hover { fill: rgba(53, 224, 216, 0.8); }
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr 1fr; } }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Print styles (printable forms)
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .topbar, .site-footer, .no-print, .beadline { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .form-card { box-shadow: none; border: 1px solid #999; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 22px 120px; }
  .hero-art { max-width: 380px; margin: 0 auto; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .menu {
    position: fixed; inset: 0; top: 0; z-index: 80;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream); padding: 86px 22px 30px; overflow-y: auto;
  }
  .menu.show { display: flex; }
  .menu > li > a, .menu > li > button { width: 100%; justify-content: space-between; font-size: 1.05rem; padding: 14px 12px; }
  .drop { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--cyan); border-radius: 0; margin: 0 0 8px 10px; }
  .nav-toggle.close-x { position: fixed; top: 14px; right: 16px; z-index: 90; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; }
}
