/* ========================================
   MilitaryPayTools.com - Main Stylesheet
   ======================================== */

:root {
  --army-green: #4a5c2f;
  --army-green-dark: #2e3a1c;
  --army-green-light: #6b7f45;
  --gold: #c9a84c;
  --gold-light: #e8c96b;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --mid-gray: #6c757d;
  --text-muted: #555555;   /* AAA-safe muted text: 7.3:1 on white */
  --dark-gray: #343a40;
  --text: #212529;
  --border: #dee2e6;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 14px;
  --transition: 0.2s ease;
  --focus-ring: 3px solid var(--army-green-dark);
}

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

/* ---- SKIP NAVIGATION (WCAG 2.4.1) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: var(--army-green-dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
  transition: top 0.1s;
}
.skip-link:focus { top: 0; }

/* ---- VISUALLY HIDDEN UTILITY ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- GLOBAL FOCUS INDICATORS (WCAG 2.4.11 / 2.4.13) ---- */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: 3px;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
}

a { color: var(--army-green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--army-green-dark); }

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

/* ---- HEADER ---- */
header {
  background: linear-gradient(135deg, var(--army-green-dark) 0%, var(--army-green) 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* SVG shield logo icon — replaces the emoji circle */
.logo-icon-svg {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  display: block;
}


.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.logo-text span {
  color: var(--gold-light);
}

.logo-tagline {
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.45);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  margin-bottom: 1.1rem;
  opacity: 0.9;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  color: var(--white);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.93rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.nav-cta {
  background: var(--gold) !important;
  color: var(--army-green-dark) !important;
  font-weight: 700 !important;
  padding: 0.45rem 1rem !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(160deg, var(--army-green-dark) 0%, var(--army-green) 60%, var(--army-green-light) 100%);
  color: var(--white);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--gold-light); }

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto 1.75rem;
  opacity: 0.9;
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--army-green-dark);
}

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--army-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: var(--white);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- SECTIONS ---- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--army-green-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.divider {
  width: 52px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

/* ---- CALCULATOR ---- */
#calculator { background: var(--white); }

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.calc-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--army-green-dark);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.98rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--mid-gray);
  font-size: 0.85rem;
}

.form-group select:focus,
.form-group input:focus {
  outline: var(--focus-ring);
  outline-offset: 0;
  border-color: var(--army-green-dark);
  box-shadow: none;
}

.radio-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.radio-btn {
  flex: 1;
  min-width: 90px;
}

/* Visually hidden but keyboard-accessible (WCAG 2.1.1) */
.radio-btn input[type="radio"],
.radio-btn input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.radio-btn label {
  display: block;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-btn input[type="radio"]:checked + label,
.radio-btn input[type="checkbox"]:checked + label {
  background: var(--army-green);
  border-color: var(--army-green);
  color: var(--white);
}

/* Focus ring on the visible label when input is focused */
.radio-btn input[type="radio"]:focus-visible + label,
.radio-btn input[type="radio"]:focus + label,
.radio-btn input[type="checkbox"]:focus-visible + label,
.radio-btn input[type="checkbox"]:focus + label {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

/* Fieldset wrapper for radio/checkbox groups */
.radio-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.radio-fieldset > legend {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--army-green-dark);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0;
  float: left;
  width: 100%;
}

/* Clear the floated legend so radio/checkbox content sits below it */
.radio-fieldset > legend + * {
  clear: both;
}


.calc-btn {
  width: 100%;
  padding: 0.85rem;
  background: var(--army-green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
  min-height: 44px;
}

.calc-btn:hover {
  background: var(--army-green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ---- RESULTS ---- */
.results-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.results-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--army-green-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--light-gray);
}

.result-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

.result-empty .icon { font-size: 3rem; margin-bottom: 0.75rem; }

.pay-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--light-gray);
  gap: 0.5rem;
}

.pay-item:last-child { border-bottom: none; }

.pay-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pay-label small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.pay-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--army-green-dark);
  text-align: right;
}

.pay-total {
  background: var(--army-green-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pay-total .label {
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pay-total .value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-light);
}

.disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--light-gray);
  border-radius: var(--radius);
  line-height: 1.5;
}

/* ---- PAY TABLE ---- */
#pay-tables { background: var(--off-white); }

.table-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  align-items: center;
}

.table-btn {
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  min-height: 44px;
}

.table-btn.active, .table-btn:hover {
  background: var(--army-green);
  color: var(--white);
  border-color: var(--army-green);
}

.table-scroll { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

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

thead th {
  background: var(--army-green-dark);
  color: var(--white);
  padding: 0.75rem 0.6rem;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

thead th:first-child { text-align: left; padding-left: 1rem; }

tbody tr:nth-child(even) { background: var(--off-white); }

tbody td {
  padding: 0.6rem 0.6rem;
  text-align: center;
  border-bottom: 1px solid var(--light-gray);
  font-variant-numeric: tabular-nums;
}

tbody td:first-child {
  text-align: left;
  font-weight: 700;
  color: var(--army-green-dark);
  padding-left: 1rem;
  white-space: nowrap;
}

tbody tr:hover { background: rgba(74,92,47,0.05); }

/* ---- FEATURE CARDS ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--army-green), var(--army-green-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--army-green-dark);
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---- NCOER/OER SAMPLES ---- */
.samples-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.tab-btn {
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: transparent;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
  bottom: -2px;
  border-bottom: 3px solid transparent;
  min-height: 44px;
}

.tab-btn.active {
  color: var(--army-green-dark);
  border-bottom-color: var(--army-green);
  background: var(--off-white);
}

.tab-btn:hover { color: var(--army-green); }

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

.bullet-category {
  margin-bottom: 2.5rem;
}

.bullet-category h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--army-green-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bullet-category h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.cat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bullet-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--army-green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  transition: all var(--transition);
}

.bullet-item:hover {
  border-left-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateX(2px);
}

.bullet-item .copy-icon {
  flex-shrink: 0;
  opacity: 0;
  font-size: 0.8rem;
  color: var(--mid-gray);
  margin-top: 2px;
  transition: opacity var(--transition);
}

.bullet-item:hover .copy-icon { opacity: 1; }

.copy-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--army-green-dark);
  color: var(--white);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s;
  pointer-events: none;
}

.copy-toast.show { opacity: 1; transform: translateY(0); }

/* ---- INFO CARDS ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--army-green-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.info-card li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.info-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--army-green);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: var(--army-green-dark);
  padding: 0.6rem 1.5rem;
  font-size: 0.82rem;
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.85);
}

.breadcrumb-inner a { color: rgba(255,255,255,0.85); }
.breadcrumb-inner a:hover { color: var(--gold-light); }
.breadcrumb-inner .sep { opacity: 0.45; }
.breadcrumb-inner .current { color: var(--gold-light); }

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--army-green);
  color: var(--white);
  padding: 1.5rem;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-item .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
}

.stat-item .lbl {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.95);
  margin-top: 0.2rem;
}

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--army-green-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
}

.faq-q:hover { background: var(--off-white); }
.faq-q .arrow { transition: transform var(--transition); font-size: 0.8rem; color: var(--mid-gray); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--light-gray);
  padding-top: 0.85rem;
}

.faq-item.open .faq-a { display: block; }

/* ---- FOOTER ---- */
footer {
  background: var(--army-green-dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-text { font-size: 1.1rem; margin-bottom: 0.75rem; display: block; }

.footer-brand p { font-size: 0.85rem; line-height: 1.6; }

.footer-col h4 {
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }

.footer-col li a {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col li a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.65;
}

/* ---- ALERT BOX ---- */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.5;
}

.alert-info {
  background: rgba(74,92,47,0.08);
  border: 1px solid rgba(74,92,47,0.2);
  color: var(--army-green-dark);
}

.alert-gold {
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.4);
  color: #6b4800;  /* 8.2:1 on white — AAA */
}

/* ---- ZIP LOCATION HINT ---- */
.zip-location-hint {
  min-height: 1.4rem;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  line-height: 1.4;
}
.zip-found {
  color: var(--army-green);
  font-weight: 600;
}
.zip-notfound {
  color: #6b4800;  /* 8.2:1 on white — AAA */
}

/* ---- PAY BREAKDOWN BAR ---- */
.pay-breakdown {
  margin: 1rem 0 0.25rem;
}
.pbd-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.pbd-bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  gap: 2px;
  background: var(--light-gray);
}
.pbd-seg {
  height: 100%;
  transition: width 0.35s ease;
  min-width: 3px;
}
.pbd-basic { background: var(--army-green); }
.pbd-bah   { background: var(--gold); }
.pbd-bas   { background: var(--army-green-light); }
.pbd-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  align-items: center;
}
.pbd-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 3px;
  vertical-align: middle;
}
.pbd-basic-dot { background: var(--army-green); }
.pbd-bah-dot   { background: var(--gold); }
.pbd-bas-dot   { background: var(--army-green-light); }

/* ---- TAX EQUIVALENT ROW ---- */
.pay-item-taxeq {
  background: rgba(201,168,76,0.06);
  border-radius: var(--radius);
  padding: 0.7rem 0.6rem;
  margin-top: 0.25rem;
  border-bottom: none !important;
}
.pay-value-gold {
  color: #6b4800 !important;  /* 8.2:1 on white — AAA */
}

/* ---- COPY RESULTS BUTTON ---- */
.copy-results-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding: 0.45rem 1rem;
  background: var(--light-gray);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--army-green-dark);
  transition: all var(--transition);
  width: 100%;
  justify-content: center;
}
.copy-results-btn:hover {
  background: var(--army-green);
  color: var(--white);
  border-color: var(--army-green);
}

/* ---- DONUT CHART ---- */
.donut-chart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.75rem 0 1rem;
  gap: 0.6rem;
}

.donut-svg {
  width: 150px;
  height: 150px;
  overflow: visible;
}

/* SVG segment colors via CSS so custom properties resolve */
.donut-svg .seg-track  { stroke: var(--light-gray); }
.donut-svg .seg-basic  { stroke: var(--army-green-dark); }
.donut-svg .seg-bah    { stroke: var(--gold); }
.donut-svg .seg-bas    { stroke: var(--army-green-light); }

.donut-center-amount {
  font-size: 13px;
  font-weight: 800;
  fill: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.donut-center-label {
  font-size: 7px;
  fill: var(--text-muted);
  font-family: 'Segoe UI', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.donut-legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.donut-leg-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.donut-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
}

/* ---- PROJECTED DATA BANNER ---- */
.projected-banner {
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.5);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #6b4800;  /* 8.2:1 on white — AAA */
  margin-bottom: 1rem;
  line-height: 1.5;
}

.projected-banner a { color: #6b4800; text-decoration: underline; }

/* ---- TAKE-HOME PAY & DRILL PAY SECTIONS ---- */
.takehome-section,
.drill-pay-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px dashed var(--border);
}

.takehome-section h4,
.drill-pay-section h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pay-value-red {
  color: #7a0000;  /* dark red for deductions — 8.6:1 on white */
}

.takehome-total {
  background: linear-gradient(135deg, #1a2a10 0%, var(--army-green-dark) 100%);
  margin-top: 0.75rem;
}

.takehome-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ---- VA LOAN CTA ---- */
.va-loan-cta {
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, rgba(201,168,76,0.14) 100%);
  border: 1px solid rgba(201,168,76,0.4);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-top: 1.25rem;
}

.va-loan-cta strong {
  display: block;
  font-size: 0.95rem;
  color: var(--army-green-dark);
  margin-bottom: 0.35rem;
}

.va-loan-cta p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.55;
}

.btn-va {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  background: var(--gold);
  color: var(--army-green-dark);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-va:hover {
  background: var(--gold-light);
  color: var(--army-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,168,76,0.35);
}

/* ---- 2027 PAY RAISE PAGE ---- */
.raise-highlight {
  background: linear-gradient(135deg, var(--army-green-dark) 0%, var(--army-green) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.raise-highlight .raise-pct {
  font-size: 4rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.raise-highlight p {
  font-size: 1rem;
  opacity: 0.85;
  margin-top: 0.5rem;
}

.raise-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.raise-comparison-table th {
  background: var(--army-green-dark);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.raise-comparison-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--light-gray);
  color: var(--text);
}

.raise-comparison-table tr:nth-child(even) td { background: var(--off-white); }

.raise-comparison-table .td-new {
  font-weight: 700;
  color: var(--army-green-dark);
}

.raise-comparison-table .td-diff {
  color: #1a6b00;  /* green for positive — 7.5:1 on white */
  font-weight: 600;
}

/* ---- PRINT ---- */
@media print {
  header, footer, .hero-btns, .calc-btn, .table-controls { display: none; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .calc-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .hamburger { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--army-green-dark);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
  nav.open { display: flex; }
  nav a { padding: 0.65rem 1rem; border-radius: var(--radius); width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .hero { padding: 2.5rem 1.25rem 2rem; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .table-scroll { margin: 0 -1.5rem; border-radius: 0; }
}
