/* ============================================================
   CCVSOA — Colorado County Veterans Service Officers Association
   Main Stylesheet
   Colors drawn from the Colorado state flag & logo:
     Navy   #1B3A6B  (dark blue field)
     Red    #BF1E2E  (Colorado C)
     Gold   #D4A020  (sun circle)
     Cream  #F5F0E8  (off-white background)
     White  #FFFFFF
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --navy:       #1B3A6B;
  --navy-dark:  #112448;
  --navy-light: #2A5298;
  --red:        #BF1E2E;
  --red-dark:   #931722;
  --gold:       #D4A020;
  --gold-light: #E8BC48;
  --cream:      #F5F0E8;
  --white:      #FFFFFF;
  --gray-100:   #F2F4F7;
  --gray-200:   #E2E6EC;
  --gray-400:   #9AA3AF;
  --gray-600:   #5A6472;
  --gray-800:   #2C3340;

  --font-display: 'Oswald', sans-serif;
  --font-serif:   'Source Serif 4', serif;
  --font-body:    'Source Sans 3', sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --shadow-sm:  0 1px 4px rgba(27,58,107,0.10);
  --shadow-md:  0 4px 16px rgba(27,58,107,0.14);
  --shadow-lg:  0 8px 32px rgba(27,58,107,0.18);

  --transition: 0.22s ease;

  --max-width:  1140px;
  --gutter:     24px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--gray-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--navy-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--white);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--gold-stripe {
  background: var(--gold);
  color: var(--navy-dark);
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* Section heading with gold underline accent */
.section-heading {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  position: relative;
}
.section-heading::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--gold);
  margin-top: 8px;
  border-radius: 2px;
}
.section-heading--white { color: var(--white); }
.section-heading--white::after { background: var(--gold-light); }

.section-subheading {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-top: 4px;
  margin-bottom: 40px;
  max-width: 600px;
}
.section--navy .section-subheading { color: var(--gray-200); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Serif body text for article/document reading */
.text-serif { font-family: var(--font-serif); font-size: 1.05rem; }

.text-sm   { font-size: 0.875rem; }
.text-xs   { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.text-lead { font-size: 1.2rem; font-weight: 300; color: var(--gray-600); line-height: 1.75; }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.text-navy  { color: var(--navy) !important; }
.text-red   { color: var(--red) !important; }
.text-gold  { color: var(--gold) !important; }
.text-white { color: var(--white) !important; }
.text-muted { color: var(--gray-400) !important; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Logo area */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo__img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  /* Drop the black background — logo colours show through on dark header */
  mix-blend-mode: lighten;
  filter: brightness(1.05);
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo__abbr {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.site-logo__full {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.primary-nav__link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-200);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.primary-nav__link:hover,
.primary-nav__link.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.primary-nav__link.active::after {
  content: '';
  display: block;
  width: 24px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
}

/* Dropdown menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--navy-dark);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: 8px 0;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown__menu { display: block; }

.nav-dropdown__menu a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gray-200);
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown__menu a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--navy-dark);
    padding: 16px 0;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--gold);
  }
  .primary-nav.open { display: flex; }
  .primary-nav__link { width: 100%; border-radius: 0; padding: 12px 24px; }
  .nav-dropdown__menu {
    position: static;
    border: none;
    box-shadow: none;
    border-left: 3px solid var(--gold);
    margin-left: 24px;
    border-radius: 0;
  }
  .nav-dropdown:hover .nav-dropdown__menu { display: none; }
  .nav-dropdown.open .nav-dropdown__menu { display: block; }
}

/* Header: login button area */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================================================
   GOLD TOP BANNER (optional announcement bar)
   ============================================================ */
.announce-bar {
  background: var(--gold);
  color: var(--navy-dark);
  text-align: center;
  padding: 8px var(--gutter);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.announce-bar a { color: var(--navy-dark); text-decoration: underline; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: var(--navy);
  background-image:
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 88px 0 80px;
  color: var(--white);
}

/* Subtle mountain silhouette texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 75% 50%, rgba(212,160,32,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(191,30,46,0.07) 0%, transparent 50%);
  pointer-events: none;
}

/* Decorative diagonal stripe */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--cream);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero__sub {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__logo-badge {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.35));
}

@media (max-width: 720px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__logo-badge { display: none; }
  .hero { padding: 60px 0 72px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  text-decoration: none;
}

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

/* Primary — Navy fill */
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(27,58,107,0.35);
}

/* Secondary — Gold fill */
.btn-secondary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-secondary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
  box-shadow: 0 4px 16px rgba(212,160,32,0.4);
}

/* Outline — White on dark bg */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

/* Outline — Navy on light bg */
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* Danger / Red */
.btn-danger {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-danger:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

/* Small size */
.btn-sm { padding: 8px 18px; font-size: 0.78rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__header {
  background: var(--navy);
  padding: 20px 24px;
  color: var(--white);
}

.card__header--gold { background: var(--gold); color: var(--navy-dark); }
.card__header--red  { background: var(--red);  color: var(--white); }

.card__body { padding: 24px; }
.card__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Accent left border card */
.card--accent {
  border-left: 4px solid var(--navy);
}
.card--accent-gold { border-left: 4px solid var(--gold); }
.card--accent-red  { border-left: 4px solid var(--red); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(42,82,152,0.15);
}

input::placeholder,
textarea::placeholder { color: var(--gray-400); }

textarea { resize: vertical; min-height: 100px; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%231B3A6B'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 4px;
}

.form-error {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Checkbox / Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 10px;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--navy);
  margin-top: 2px;
  cursor: pointer;
}
.form-check label {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Search input with icon */
.search-wrap {
  position: relative;
}
.search-wrap input { padding-left: 42px; }
.search-wrap::before {
  content: '⌕';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--gray-400);
  pointer-events: none;
}

/* Form card (login / signup panels) */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  margin: 0 auto;
  border-top: 5px solid var(--navy);
}

.form-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.form-card__title {
  text-align: center;
  margin-bottom: 6px;
}

.form-card__sub {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gray-400);
  font-size: 0.85rem;
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ============================================================
   BADGES / TAGS / STATUS CHIPS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-navy   { background: var(--navy);  color: var(--white); }
.badge-gold   { background: var(--gold);  color: var(--navy-dark); }
.badge-red    { background: var(--red);   color: var(--white); }
.badge-green  { background: #22864a;      color: var(--white); }
.badge-gray   { background: var(--gray-200); color: var(--gray-600); }

/* Membership type badges */
.badge-regular   { background: var(--navy);  color: var(--white); }
.badge-associate { background: var(--gold);  color: var(--navy-dark); }
.badge-honorary  { background: var(--red);   color: var(--white); }

/* ============================================================
   ALERT / NOTICE BANNERS
   ============================================================ */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-info    { background: #e8f0fb; border-color: var(--navy-light); color: var(--navy-dark); }
.alert-success { background: #e6f4ec; border-color: #22864a; color: #155130; }
.alert-warning { background: #fdf3d8; border-color: var(--gold); color: #6b4e00; }
.alert-danger  { background: #fbe8ea; border-color: var(--red); color: var(--red-dark); }

/* ============================================================
   DASHBOARD LAYOUT (Members Portal)
   ============================================================ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 68px);
}

/* Sidebar */
.sidebar {
  background: var(--navy-dark);
  color: var(--white);
  padding: 32px 0;
  display: flex;
  flex-direction: column;
}

.sidebar__user {
  padding: 0 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
}

.sidebar__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 10px;
  border: 2px solid var(--gold);
}

.sidebar__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 2px;
}

.sidebar__role {
  font-size: 0.75rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.sidebar__county {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.sidebar-nav { list-style: none; flex: 1; }

.sidebar-nav__section {
  font-size: 0.65rem;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 20px 24px 6px;
}

.sidebar-nav__item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav__item a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border-left-color: var(--gold);
}

.sidebar-nav__item a.active {
  background: rgba(212,160,32,0.12);
  color: var(--white);
  border-left-color: var(--gold);
  font-weight: 600;
}

.sidebar-nav__icon {
  width: 18px;
  text-align: center;
  opacity: 0.7;
  font-size: 1rem;
}

/* Dashboard main content */
.dashboard-main {
  background: var(--gray-100);
  padding: 36px 40px;
  overflow-y: auto;
}

.dashboard-header {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.dashboard-subtitle {
  font-size: 0.9rem;
  color: var(--gray-400);
}

/* Stat / summary tiles */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-tile {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--navy);
}
.stat-tile--gold { border-top-color: var(--gold); }
.stat-tile--red  { border-top-color: var(--red); }
.stat-tile--green { border-top-color: #22864a; }

.stat-tile__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
  color: var(--gray-400);
  margin-bottom: 6px;
}
.stat-tile__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .dashboard-main { padding: 24px 20px; }
}

/* ============================================================
   DOCUMENT / NEWSLETTER REPOSITORY
   ============================================================ */
.doc-list { list-style: none; }

.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.doc-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}

.doc-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.doc-icon--pdf   { background: var(--red); }
.doc-icon--word  { background: #1A5296; }
.doc-icon--sheet { background: #1A7445; }

.doc-info { flex: 1; min-width: 0; }

.doc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-meta {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 2px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Newsletter viewer embed wrapper */
.newsletter-viewer {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.newsletter-viewer__toolbar {
  background: var(--navy);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.newsletter-viewer__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

.newsletter-viewer iframe {
  width: 100%;
  height: 800px;
  border: none;
  display: block;
}

/* ============================================================
   COMMUNITY PARTNER REFERRAL — styling hooks
   (matches your existing app's needs; adjust class names to fit)
   ============================================================ */
.referral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.partner-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--navy);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.partner-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.partner-card__category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 600;
}

.partner-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.partner-card__desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.55;
  flex: 1;
}

.partner-card__contact {
  font-size: 0.82rem;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-200);
  padding-top: 10px;
  margin-top: 4px;
}

/* ============================================================
   PAGE HERO (for interior pages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 48px 0 44px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 40px;
  background: var(--cream);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p  { color: rgba(255,255,255,0.7); max-width: 560px; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.82rem;
  margin-bottom: 16px;
}
.breadcrumb li + li::before {
  content: '/';
  color: rgba(255,255,255,0.35);
  margin-right: 8px;
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb li:last-child { color: rgba(255,255,255,0.6); }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.92rem;
}

thead {
  background: var(--navy);
  color: var(--white);
}

thead th {
  padding: 14px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--gray-200); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--gray-100); }
tbody td { padding: 13px 16px; color: var(--gray-800); }

tfoot {
  background: var(--gray-100);
  border-top: 2px solid var(--gray-200);
}
tfoot td {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gray-600);
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  border-bottom: 2px solid var(--gray-200);
  display: flex;
  gap: 4px;
  list-style: none;
  margin-bottom: 28px;
}

.tab-link {
  display: block;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-400);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.tab-link:hover { color: var(--navy); }
.tab-link.active { color: var(--navy); border-bottom-color: var(--gold); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,36,72,0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  border-top: 5px solid var(--navy);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal__header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal__title { font-size: 1.3rem; color: var(--navy); }
.modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-400);
  line-height: 1;
  padding: 4px;
  transition: color var(--transition);
}
.modal__close:hover { color: var(--red); }

.modal__body    { padding: 24px 28px; }
.modal__footer  { padding: 16px 28px 24px; display: flex; justify-content: flex-end; gap: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand__logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  padding: 3px;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 300px;
  margin-bottom: 0;
}

.footer-col__heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-contact p {
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-legal a { color: rgba(255,255,255,0.4); }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* Gold stripe above footer */
.footer-stripe {
  height: 6px;
  background: linear-gradient(90deg, var(--navy-light) 0%, var(--gold) 50%, var(--red) 100%);
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.pt-0  { padding-top: 0; }
.pb-0  { padding-bottom: 0; }
.p-24  { padding: 24px; }
.p-32  { padding: 32px; }

.d-flex         { display: flex; }
.align-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8          { gap: 8px; }
.gap-16         { gap: 16px; }
.gap-24         { gap: 24px; }
.flex-1         { flex: 1; }
.flex-wrap      { flex-wrap: wrap; }

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

/* Dividers */
.divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 32px 0;
}
.divider--thick { border-top-width: 3px; border-color: var(--navy); }
.divider--gold  { border-top: 3px solid var(--gold); }

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(27,58,107,0.06), rgba(212,160,32,0.08));
  border: 1px solid rgba(27,58,107,0.12);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}

/* Print tweaks */
@media print {
  .site-header, .sidebar, .site-footer { display: none; }
  .dashboard-layout { display: block; }
  .dashboard-main { padding: 0; }
  body { background: white; color: black; }
}
