/* ============================================================
   CleanShot™ Resources — Shared Stylesheet
   Matches existing site: navy #1A3A5C, orange #E87722
   ============================================================ */

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

:root {
  --navy:       #1A3A5C;
  --navy-dark:  #122840;
  --orange:     #E87722;
  --orange-lt:  #FDF0E3;
  --blue-lt:    #D6E4F0;
  --blue-mid:   #4A7FA5;
  --gray-bg:    #F5F7FA;
  --gray-border:#DADEE4;
  --gray-text:  #555E6B;
  --white:      #FFFFFF;
  --font:       'Segoe UI', Arial, sans-serif;
  --max-w:      1100px;
  --radius:     8px;
}

body {
  font-family: var(--font);
  color: #222;
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

/* ── Nav bar (shared across all pages) ── */
.cs-nav {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.cs-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.cs-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-size: 1.35rem; font-weight: 700; text-decoration: none; letter-spacing: .5px; }
.cs-logo span { color: var(--orange); }
.cs-logo-icon { height: 28px; width: 28px; border-radius: 6px; }
.cs-nav-links { display: flex; gap: 8px; align-items: center; }
.cs-nav-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .92rem;
  padding: 6px 14px;
  border-radius: 4px;
  transition: background .2s, color .2s;
}
.cs-nav-links a:hover, .cs-nav-links a.active { background: rgba(255,255,255,.12); color: var(--white); }
.cs-nav-links a.active { color: var(--orange); }
.cs-nav-cta {
  background: var(--orange); color: var(--white) !important;
  border-radius: 4px; font-weight: 600;
}
.cs-nav-cta:hover { background: #cf6610 !important; }

/* Dropdown */
.cs-dropdown { position: relative; }
.cs-dropdown-toggle {
  color: rgba(255,255,255,.85); background: none; border: none;
  font: inherit; font-size: .92rem; padding: 6px 14px;
  cursor: pointer; border-radius: 4px; display: flex; align-items: center; gap: 5px;
  transition: background .2s, color .2s;
}
.cs-dropdown-toggle:hover, .cs-dropdown.open .cs-dropdown-toggle {
  background: rgba(255,255,255,.12); color: var(--white);
}
.cs-dropdown-toggle.active-parent { color: var(--orange); }
.cs-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,.14);
  min-width: 220px;
  z-index: 200;
  overflow: hidden;
}
.cs-dropdown.open .cs-dropdown-menu { display: block; }
.cs-dropdown-menu a {
  display: block; padding: 10px 18px;
  color: var(--navy); font-size: .9rem; text-decoration: none;
  transition: background .15s;
}
.cs-dropdown-menu a:hover { background: var(--blue-lt); color: var(--navy); }
.cs-dropdown-menu .menu-divider { border-top: 1px solid #eee; margin: 4px 0; }

/* Mobile hamburger menu */
.mobile-menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; background: none; border: none;
  cursor: pointer; padding: 6px; flex-shrink: 0;
}
.mobile-menu-toggle span {
  display: block; width: 100%; height: 3px;
  background: var(--white); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu-panel {
  max-height: 0; overflow: hidden;
  background: var(--navy-dark);
  transition: max-height .25s ease;
}
.mobile-menu-panel.open { max-height: 80vh; overflow-y: auto; }
.mobile-menu-panel a, .mobile-acc-toggle {
  display: block; width: 100%; text-align: left;
  color: rgba(255,255,255,.85); text-decoration: none;
  font-size: 1rem; padding: 13px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: none; border: none; font: inherit; cursor: pointer;
}
.mobile-acc-toggle { display: flex; align-items: center; justify-content: space-between; }
.mobile-acc-toggle .acc-arrow { transition: transform .2s; }
.mobile-acc-toggle.open .acc-arrow { transform: rotate(180deg); }
.mobile-acc {
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease;
  background: rgba(0,0,0,.15);
}
.mobile-acc.open { max-height: 400px; }
.mobile-acc a { padding: 12px 24px 12px 44px; font-size: .92rem; border-bottom: 1px solid rgba(255,255,255,.05); }
.mobile-menu-panel a.mobile-menu-cta {
  text-align: center; margin: 16px 24px; padding: 14px;
  background: var(--orange); color: var(--white) !important;
  border-radius: 4px; font-weight: 600; border-bottom: none !important;
}
.mobile-menu-panel a.mobile-menu-cta:hover { background: #cf6610 !important; }

/* ── Page hero ── */
.cs-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e4d7a 100%);
  color: var(--white);
  padding: 64px 24px 56px;
  text-align: center;
}
.cs-hero-eyebrow {
  font-size: .82rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}
.cs-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.cs-hero p { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 680px; margin: 0 auto; }

/* ── Breadcrumb ── */
.cs-breadcrumb {
  background: var(--gray-bg);
  border-bottom: 1px solid #e0e4ea;
  padding: 10px 24px;
  font-size: .85rem;
  color: var(--gray-text);
}
.cs-breadcrumb a { color: var(--blue-mid); text-decoration: none; }
.cs-breadcrumb a:hover { text-decoration: underline; }
.cs-breadcrumb span { margin: 0 6px; }

/* ── Main content wrapper ── */
.cs-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ── Section headings ── */
.cs-content h2 {
  font-size: 1.6rem; font-weight: 700; color: var(--navy);
  margin: 52px 0 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
}
.cs-content h2:first-child { margin-top: 0; }
.cs-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 28px 0 8px; }
.cs-content p { margin-bottom: 14px; color: #333; }
.cs-content ul, .cs-content ol { margin: 10px 0 16px 24px; }
.cs-content li { margin-bottom: 7px; color: #333; }

/* ── Stat cards ── */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.cs-stat {
  background: var(--blue-lt);
  border: 1px solid #b8d1e8;
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.cs-stat-value { font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.cs-stat-label { font-size: .85rem; color: var(--gray-text); margin-top: 6px; }

/* ── Callout / highlight box ── */
.cs-callout {
  background: var(--orange-lt);
  border-left: 5px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.cs-callout.blue {
  background: var(--blue-lt);
  border-left-color: var(--navy);
}
.cs-callout strong { color: var(--navy); }

/* ── Info cards grid ── */
.cs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.cs-card {
  border: 1px solid #dde3ec;
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.cs-card-icon { font-size: 2rem; margin-bottom: 10px; }
.cs-card h3 { margin: 0 0 8px; font-size: 1rem; color: var(--navy); }
.cs-card p { font-size: .92rem; color: #444; margin: 0; }

/* ── Table ── */
.cs-table-wrap { overflow-x: auto; margin: 24px 0; }
.cs-table {
  width: 100%; border-collapse: collapse;
  font-size: .93rem;
}
.cs-table th {
  background: var(--navy); color: var(--white);
  padding: 12px 16px; text-align: left; font-weight: 600;
}
.cs-table td { padding: 11px 16px; border-bottom: 1px solid #e5eaf0; vertical-align: top; }
.cs-table tr:nth-child(even) td { background: var(--gray-bg); }
.cs-table tr:hover td { background: var(--blue-lt); }

/* ── Glossary ── */
.cs-glossary { margin: 24px 0; }
.cs-gloss-letter {
  font-size: 1.5rem; font-weight: 700; color: var(--orange);
  border-bottom: 2px solid var(--orange);
  margin: 36px 0 12px;
  padding-bottom: 4px;
}
.cs-gloss-entry { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid #eee; }
.cs-gloss-term { min-width: 180px; font-weight: 700; color: var(--navy); font-size: .95rem; flex-shrink: 0; }
.cs-gloss-def { color: #333; font-size: .93rem; }

/* ── Download button ── */
.cs-download-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  background: var(--gray-bg); border: 1px solid #dde3ec;
  border-radius: var(--radius); padding: 16px 24px;
  margin: 32px 0;
}
.cs-download-bar p { margin: 0; font-size: .93rem; color: #444; }
.cs-btn {
  display: inline-block; padding: 10px 22px;
  border-radius: 5px; font-weight: 600; font-size: .92rem;
  text-decoration: none; transition: background .2s;
  cursor: pointer; border: none;
}
.cs-btn-primary { background: var(--orange); color: var(--white); }
.cs-btn-primary:hover { background: #cf6610; }
.cs-btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.cs-btn-outline:hover { background: var(--navy); color: var(--white); }

/* ── Resource index cards ── */
.cs-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 36px 0;
}
.cs-resource-card {
  border: 1px solid #dde3ec;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.cs-resource-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.cs-resource-card-top {
  background: var(--navy);
  padding: 28px 24px 20px;
  color: var(--white);
}
.cs-resource-card-top .icon { font-size: 2.2rem; margin-bottom: 10px; }
.cs-resource-card-top h3 { font-size: 1.1rem; margin: 0; }
.cs-resource-card-bottom { padding: 18px 24px; flex: 1; }
.cs-resource-card-bottom p { font-size: .9rem; color: #555; margin: 0 0 12px; }
.cs-resource-card-tag {
  display: inline-block; font-size: .75rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  background: var(--orange-lt); color: var(--orange);
  text-transform: uppercase; letter-spacing: .5px;
}

/* ── Footer ── */
.cs-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 32px 24px;
  font-size: .88rem;
}
.cs-footer a { color: var(--orange); text-decoration: none; }
.cs-footer a:hover { text-decoration: underline; }
.cs-footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; flex-wrap: wrap; }

/* ── Regulation badge ── */
.cs-reg-badge {
  display: inline-block; font-size: .75rem; font-weight: 700;
  padding: 2px 9px; border-radius: 3px;
  margin-right: 6px; text-transform: uppercase;
  vertical-align: middle;
}
.badge-federal { background: var(--navy); color: var(--white); }
.badge-state    { background: var(--blue-mid); color: var(--white); }
.badge-local    { background: #6a7f55; color: var(--white); }

@media (max-width: 640px) {
  .cs-nav-links { display: none; }
  .mobile-menu-toggle { display: flex; }
  .cs-gloss-entry { flex-direction: column; gap: 4px; }
  .cs-gloss-term { min-width: unset; }
}
