/* ==========================================================================
   VA Disability Claims Guide  (disability.grouchingtiger.com)
   Look inherited from grouchingtiger.com: Poppins + Jost, the diagonal
   pinstripe background, and its Miami-Vice pink/cyan accents (turned up for
   contrast). Content sits on a clean white "sheet" so it stays readable.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Neutrals */
  --bg:            #ffffff;
  --pinstripe:     #e8f1fb;   /* diagonal line color (GT uses #eef6ff)      */
  --surface:       #f6f8fc;
  --surface-2:     #eef1f7;

  --ink:           #3d3d47;   /* body text                                  */
  --ink-strong:    #17151f;   /* headings                                   */
  --muted:         #6c6c79;
  --border:        #e7e3ef;
  --border-strong: #d7d1e4;

  /* Miami Vice accents */
  --pink:          #e5266f;   /* vivid magenta                              */
  --pink-ink:      #c1175f;   /* text-safe magenta (AA on white)            */
  --pink-bright:   #ff3d94;
  --pink-soft:     #fdeaf2;   /* tint bg                                     */

  --cyan:          #1495d6;   /* electric blue (callout borders)            */
  --cyan-ink:      #0e73ac;   /* text-safe blue                             */
  --cyan-bright:   #38b6ff;
  --cyan-soft:     #e9f2fb;   /* tint bg                                     */

  --violet:        #6d3bf0;

  --teal:          #1183c9;   /* solid secondary accent (blue) */
  --teal-deep:     #0a63a8;   /* header strong blue            */

  /* Warm callout (unchanged) */
  --warn-bg:       #fbf4e7;
  --warn-border:   #d08a1e;

  /* Type */
  --font-head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --sheet: 860px;           /* content sheet width       */
  --measure: 720px;         /* comfortable reading width */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(20,15,40,.05), 0 1px 3px rgba(20,15,40,.06);
  --shadow-md: 0 6px 22px rgba(25,25,35,.10);
  --shadow-sheet: 0 20px 50px -26px rgba(25,25,35,.28);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* The grouchingtiger.com diagonal pinstripe */
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    45deg,
    var(--pinstripe),
    var(--pinstripe) 10px,
    transparent 10px,
    transparent 11px
  );
  background-attachment: fixed;
}

img, iframe, video { max-width: 100%; height: auto; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink-strong);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 .5em;
}
p { margin: 0 0 1.1em; }
a { color: var(--pink-ink); text-decoration: none; }
a:hover { color: var(--violet); text-decoration: underline; }
strong { color: var(--ink-strong); font-weight: 600; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--teal-deep);
  color: #fff;
  border-bottom: 3px solid var(--pink);
  position: relative;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 26px;
}
.site-header__mark {
  flex: none;
  width: 58px; height: 58px;
  display: grid; place-items: center;
}
.site-header__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.site-header__titles { min-width: 0; }
.site-header__title {
  font-family: "Jost", var(--font-head);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: #fff;
  margin: 0;
  letter-spacing: .2px;
  text-shadow: 0 1px 10px rgba(0,0,0,.15);
}
.site-header__subtitle {
  margin: 2px 0 0;
  color: rgba(255,255,255,.88);
  font-size: .95rem;
  font-weight: 400;
}

/* ==========================================================================
   Sticky section nav  (collapses to a hamburger on mobile)
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
}
.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
}
.nav__links a {
  display: inline-block;
  padding: 14px 13px;
  font-family: var(--font-head);
  font-size: .86rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav__links a:hover {
  color: var(--ink-strong);
  text-decoration: none;
  border-bottom-color: var(--pink);
}
.nav__toggle {
  display: none;               /* shown only on mobile */
  margin-left: auto;
  align-items: center;
  gap: 9px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink-strong);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .85rem;
}
.nav__toggle .bar {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle .bar + .bar { margin-top: 5px; }
.nav__toggle-icon { display: inline-block; }
.nav.is-open .nav__toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle .bar:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav__toggle  { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 6px 0;
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a {
    padding: 13px 24px;
    border-bottom: 1px solid var(--surface-2);
    border-left: 3px solid transparent;
  }
  .nav__links a:hover {
    background: var(--pink-soft);
    border-bottom-color: var(--surface-2);
    border-left-color: var(--pink);
  }
}

/* ==========================================================================
   Hero  (full-bleed; pinstripe shows through the translucent tint)
   ========================================================================== */
.hero {
  background: transparent;              /* let the pinstripe show through */
}
.hero__inner {
  padding-block: 54px 46px;
  max-width: var(--sheet);
  margin-inline: auto;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pink);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  letter-spacing: -.5px;
  margin-bottom: .35em;
}
.hero__lede {
  font-size: 1.16rem;
  color: var(--ink);
  max-width: var(--measure);
  margin-bottom: 26px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--pink);
  color: #fff;
}
.btn--primary:hover { background: var(--pink-ink); color: #fff; }
.btn--ghost {
  background: #fff;
  color: var(--ink-strong);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--pink); color: var(--pink-ink); }

/* ==========================================================================
   Content sheet
   ========================================================================== */
main {
  width: min(var(--sheet), calc(100% - 24px));
  margin: 28px auto 52px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sheet);
  position: relative;
  z-index: 2;
  padding: 4px clamp(22px, 5vw, 48px) 26px;
}

.section {
  padding-block: 38px;
  border-top: 1px solid var(--border);
}
.section:first-of-type { border-top: 0; }

.section__label {
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pink-ink);
  margin-bottom: 8px;
}
.section h2 {
  font-size: clamp(1.5rem, 3.5vw, 1.95rem);
  letter-spacing: -.3px;
  margin-bottom: .5em;
}
.section h3 { font-size: 1.22rem; margin-top: 1.6em; margin-bottom: .5em; }
.section h4 { font-size: 1.02rem; margin-top: 1.3em; }
.section > p, .section > ul, .section > ol { max-width: var(--measure); }

/* Step heading with solid number badge */
.step-head { display: flex; align-items: center; gap: 16px; margin-bottom: .2em; }
.step-num {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--pink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
}
.step-head h2 { margin: 0; }

/* Lists */
.section ul, .section ol { margin: 0 0 1.2em; padding-left: 0; }
.section ul { list-style: none; }
.section ul li { position: relative; padding-left: 26px; margin-bottom: .5em; }
.section ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink);
}
.section ol { list-style: decimal; padding-left: 22px; }
.section ol li { margin-bottom: .5em; padding-left: 4px; }
.section ol li::marker { color: var(--pink-ink); font-family: var(--font-head); font-weight: 600; }

/* ---------- Callouts ---------- */
.callout {
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 22px 0;
  border-left: 4px solid var(--cyan);
  background: var(--cyan-soft);
  max-width: var(--measure);
}
.callout p:last-child { margin-bottom: 0; }
.callout__title {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink-strong);
  margin: 0 0 6px;
  font-size: .98rem;
}
.callout--warn   { border-left-color: var(--warn-border); background: var(--warn-bg); }
.callout--accent { border-left-color: var(--pink); background: var(--pink-soft); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 22px 0;
  box-shadow: var(--shadow-sm);
  max-width: var(--measure);
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card__meta {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
  background: var(--teal);
  padding: 4px 11px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.card .callout { margin-left: 0; }

/* ---------- Condition chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; max-width: var(--measure); }
.chip {
  font-family: var(--font-head);
  font-size: .84rem;
  font-weight: 500;
  color: var(--ink-strong);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 14px;
}
.chips__note { font-size: .9rem; color: var(--muted); font-style: italic; margin-top: 6px; }

/* ---------- Checklist ---------- */
.checklist {
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 1.2em !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 4px 20px;
  max-width: var(--measure);
}
.checklist li { padding-left: 20px !important; margin-bottom: 8px !important; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50% !important;
  background: var(--pink) !important;
}

/* ==========================================================================
   Downloads
   ========================================================================== */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin-top: 24px;
}
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease;
}
.dl-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--pink);
  transform: translateY(-2px);
  text-decoration: none;          /* keep the shift/shadow, drop the underline */
}
.dl-card__badge {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 9px;
  border-radius: 5px;
  color: #fff;
}
.badge--pdf { background: #c8385a; }
.badge--doc { background: #0e73ac; }
.badge--xls { background: #1f8a5b; }
.badge--va  { background: #0a63a8; }
.dl-card h4 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.dl-card p { font-size: .92rem; color: var(--muted); margin: 0; flex: 1; }
.dl-card__link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .9rem;
  color: var(--pink-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dl-card__link::after { content: "\2193"; }
.dl-card--ext .dl-card__link::after { content: "\2197"; }   /* external → arrow */

/* ==========================================================================
   Support (Ko-fi)
   ========================================================================== */
.support {
  margin: 38px 0 0;
  padding: 28px 30px;
  background: var(--pink-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  box-shadow: var(--shadow-sm);
}
.support__text { flex: 1 1 320px; }
.support__title {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink-strong);
  font-size: 1.12rem;
  margin: 0 0 4px;
}
.support__text p { margin: 0; color: var(--ink); font-size: .95rem; }
.btn--kofi {
  background: #ff5e5b;
  color: #fff;
  flex: none;
}
.btn--kofi:hover { background: #f24946; color: #fff; }

/* ==========================================================================
   Disclaimer + Footer
   ========================================================================== */
.disclaimer {
  margin: 30px 0 6px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--muted);
}
.disclaimer strong { color: var(--ink); }

.site-footer {
  background: #0a2440;                 /* deep navy, matches header family */
  color: rgba(255,255,255,.82);
  border-top: 3px solid var(--pink);
}
.site-footer__inner {
  padding-block: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: .9rem;
}
.site-footer a { color: #fff; }
.site-footer__brand { font-family: var(--font-head); font-weight: 600; color: #fff; }

/* ==========================================================================
   Back-to-top button
   ========================================================================== */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(25,25,35,.30);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background .15s ease;
  z-index: 60;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--pink-ink); }
.to-top:active { transform: translateY(1px); }
.to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__inner { padding-block: 40px 34px; }
  .section { padding-block: 30px; }
  .step-num { width: 42px; height: 42px; font-size: 1.15rem; }
  .card { padding: 20px; }
  main { border-radius: 14px; }
}
