/* US Veteran Information Network — site styles */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --navy-3: #1d4373;
  --gold: #e0b84c;
  --gold-dark: #8a6a12;
  --red: #9b1c1f;
  --ink: #1b2430;
  --muted: #4d5866;
  --paper: #faf7f0;
  --white: #ffffff;
  --line: #e3ddcf;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 69, .10);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--navy); padding: .6rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Crisis bar */
.crisis-bar { background: var(--red); color: var(--white); font-size: .9rem; }
.crisis-bar .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; justify-content: center; padding: .5rem 0; text-align: center; }
.crisis-bar strong { letter-spacing: .02em; }
.crisis-bar a { color: var(--white); font-weight: 700; }
.crisis-bar a:hover { color: #ffe3a3; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand img { width: 46px; height: 46px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: .5rem .7rem; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a { display: block; padding: .5rem .85rem; border-radius: 8px; text-decoration: none; color: var(--navy); font-weight: 600; }
.site-nav a:hover { background: #f1ede2; color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.site-nav .btn { margin-left: .5rem; }
.site-nav a.btn-navy, .site-nav a.btn-navy:hover { color: var(--white); }
.site-nav a.btn-navy:hover { background: var(--navy-3); }
.site-nav a.btn[aria-current="page"] { color: var(--navy); background: var(--gold); box-shadow: none; border-radius: 999px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ecc75f; color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-3); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,37,69,.96) 0%, rgba(11,37,69,.86) 38%, rgba(11,37,69,.25) 70%, rgba(11,37,69,.05) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding: clamp(4rem, 10vw, 8rem) 0; }
.hero-copy { max-width: 600px; }
.hero h1 { color: var(--white); }
.hero p.lead { font-size: 1.2rem; color: #e6ecf5; max-width: 34em; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.eyebrow.dark { color: var(--gold-dark); }

.page-hero { background: var(--navy); color: var(--white); padding: clamp(3rem, 7vw, 5rem) 0; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: radial-gradient(circle at 1px 1px, var(--gold) 1.5px, transparent 0);
  background-size: 28px 28px;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: #dbe3ef; font-size: 1.15rem; max-width: 40em; margin: 0; }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: #e6ecf5; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-navy .section-head p { color: #c9d4e4; }
.center { text-align: center; margin-inline: auto; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: #f3ecd9; color: var(--navy); margin-bottom: 1rem;
}
.icon svg { width: 28px; height: 28px; }

/* Split feature */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-img img { border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.checklist { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%230b2545' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 3.2rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--navy);
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
}
.step h3 { color: var(--white); }
.step p { color: #c9d4e4; margin: 0; }
.network-art { max-width: 760px; margin: 3rem auto 0; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); }

/* Standards strip */
.standard { display: flex; gap: 1rem; align-items: flex-start; }
.standard .icon { flex: none; margin: 0; }
.standard h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.standard p { color: var(--muted); margin: 0; font-size: .98rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: var(--white); border-radius: 22px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: .4rem; }
.cta-band p { color: #d5deea; margin: 0; }
.cta-band .btn-row { justify-content: flex-end; }

/* Resources page */
.resource-card { display: flex; flex-direction: column; }
.resource-card ul { list-style: none; padding: 0; margin: .5rem 0 0; }
.resource-card li { padding: .55rem 0; border-top: 1px solid var(--line); }
.resource-card li:first-child { border-top: 0; }
.resource-card a { font-weight: 600; }
.resource-card small { display: block; color: var(--muted); font-size: .9rem; }
.phone-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.phone-table th, .phone-table td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.phone-table th { background: var(--navy); color: var(--white); font-weight: 700; }
.phone-table tr:last-child td { border-bottom: 0; }
.phone-table a { font-weight: 700; white-space: nowrap; }
.alert {
  border-left: 6px solid var(--gold); background: #fff8e4; border-radius: 10px;
  padding: 1.25rem 1.5rem; margin: 0;
}
.alert h3 { margin-bottom: .35rem; }
.alert p:last-child { margin-bottom: 0; }
.alert-red { border-left-color: var(--red); background: #fdf0ef; }

/* About page */
.principles { counter-reset: principle; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.principles li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem 1.4rem 4.2rem; position: relative; }
.principles li::before {
  counter-increment: principle; content: counter(principle);
  position: absolute; left: 1.3rem; top: 1.3rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--gold); font-family: var(--serif); font-weight: 700;
}
.principles strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 1.15rem; }
.principles span { color: var(--muted); }

.member-table { width: 100%; border-collapse: collapse; }
.member-table th, .member-table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.member-table th { color: var(--navy); font-family: var(--serif); font-size: 1.05rem; }
.member-table thead th { font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); }
.table-scroll { overflow-x: auto; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #e7f0e3; color: #2d5a1f; white-space: nowrap; }
.badge.no { background: #eef0f3; color: var(--muted); }

/* Join page */
.join-steps { counter-reset: js; list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; }
.join-steps li { position: relative; padding-left: 2.8rem; margin-bottom: 1rem; color: var(--muted); }
.join-steps li::before {
  counter-increment: js; content: counter(js); position: absolute; left: 0; top: 0;
  width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--navy); font-family: var(--serif); font-weight: 700;
}
.join-steps strong { color: var(--navy); }
.contact-box { background: var(--navy); color: var(--white); border-radius: 12px; padding: 1.2rem 1.4rem; }
.contact-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.contact-box a { color: var(--white); font-size: 1.2rem; font-weight: 700; overflow-wrap: anywhere; }
.contact-box a:hover { color: var(--gold); }
.contact-pending { font-size: 1.1rem; color: #dbe3ef; }
.hint { color: var(--muted); font-size: .9rem; }

details.faq { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: .75rem; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
details.faq p { margin: .75rem 0 0; color: var(--muted); }

/* Footer */
.site-footer { background: #071a31; color: #b9c5d6; padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: 1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: #e6ecf5; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand { color: var(--white); margin-bottom: 1rem; }
.site-footer .brand-name small { color: var(--gold); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; color: #93a3b9; }
.footer-legal p { margin-bottom: .5rem; }

/* Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .15rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); border-radius: 0; }
  .site-nav .btn { margin: .5rem 0 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4, .principles, .footer-grid { grid-template-columns: 1fr; }
  .hero-img { height: 300px; object-position: 78% 30%; }
  .hero::after { background: linear-gradient(180deg, rgba(11,37,69,0) 0px, rgba(11,37,69,.15) 150px, rgba(11,37,69,1) 300px, var(--navy) 100%); }
  .hero .wrap { padding: 250px 0 3rem; }
  .brand-name small { display: none; }
  .brand-name { font-size: .95rem; }
  .brand img { width: 40px; height: 40px; }
  .phone-table th:nth-child(3), .phone-table td:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .contact-box a { font-size: 1.05rem; }
  .member-table thead { display: none; }
  .member-table, .member-table tbody, .member-table tr, .member-table th, .member-table td { display: block; width: 100%; }
  .member-table tr { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
  .member-table tr:last-child { border-bottom: 0; }
  .member-table th, .member-table td { padding: 0; border: 0; }
  .member-table td { margin-top: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Member organizations page (organizations.html, filled by assets/js/network.js) */
.net-card { display: flex; flex-direction: column; gap: .35rem; }
.net-card h3 { margin: 0; }
.net-card p { margin: 0; }
.net-when { color: var(--gold-dark); font-weight: 700; font-size: .9rem; }
.net-org { color: var(--navy-2); font-weight: 600; }
.net-where { font-size: .9rem; }
.net-body { white-space: pre-line; overflow-wrap: anywhere; }
.net-empty, .net-loading { color: var(--muted); grid-column: 1 / -1; }
.net-filter { display: inline-flex; gap: .6rem; align-items: center; font-weight: 600; margin-bottom: 1.5rem; }
.net-filter select { font: inherit; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
