/* ═══════════════════════════════════════════════════════════
   BUDGET CHALLENGE — STATE STANDARDS 2026 SKIN STYLES

   Companion CSS for StateStandards2026.ascx
   Extracted from preview.html on 2026-05-05.

   This file handles LAYOUT and SECTION styling for the State
   Standards page. The existing Budget skin CSS (bootstrap.css,
   default_mod.css, init.css, start.css) handles the header,
   nav, footer, and base Bootstrap styles.
   ═══════════════════════════════════════════════════════════ */

  :root {
    --bc-blue: #4070B8;
    --bc-blue-dark: #1A4E8A;
    --bc-amber: #EC971F;
    --bc-text: rgb(65, 65, 65);
    --bc-body: rgb(114, 113, 113);
    --bc-border: #CCCCCC;
    --bc-light-bg: #F9F9F9;
    --bc-stage-done: #1A4E8A;             /* published + strict requirement (dark navy) */
    --bc-stage-published-flex: #4070B8;   /* published + flexible requirement (brand blue) */
    --bc-stage-ready: #4070B8;
    --bc-stage-stage2: #70B840;           /* legislation passed (green = approved/done) */
    --bc-stage-pending: #EC971F;          /* legislation pending (orange = in progress) */
    --bc-stage-stage1: #CCCCCC;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--bc-text);
    background: #FFFFFF;
    line-height: 1.5;
  }
  a { color: var(--bc-blue); text-decoration: none; }
  a:hover { text-decoration: underline; }

  /* Header */
  .site-header {
    border-bottom: 1px solid var(--bc-border);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .site-header .brand img {
    display: block;
    height: 44px;
    width: auto;
  }
  .site-header nav a {
    margin-left: 24px;
    color: var(--bc-text);
    font-size: 14px;
    font-weight: 600;
  }

  /* Hero */
  .hero {
    text-align: center;
    padding: 60px 32px 40px;
    background: var(--bc-light-bg);
  }
  .hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--bc-text);
    letter-spacing: -0.5px;
  }
  .hero .subhead {
    font-size: 18px;
    color: var(--bc-body);
    max-width: 720px;
    margin: 0 auto;
  }

  /* Stats bar */
  .stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 24px 32px;
    background: var(--bc-blue);
    color: white;
  }
  .stat {
    text-align: center;
  }
  .stat .num {
    font-size: 32px;
    font-weight: 800;
    display: block;
    line-height: 1;
  }
  .stat .label {
    font-size: 13px;
    opacity: 0.92;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
  }
  .stat.scan .num { font-size: 18px; padding-top: 8px; }

  /* Filters */
  .filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 32px 8px;
    background: white;
  }
  .filter-bar .chip {
    padding: 8px 14px;
    border: 1px solid var(--bc-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--bc-text);
    background: white;
    user-select: none;
  }
  .filter-bar .chip.active {
    background: var(--bc-blue);
    color: white;
    border-color: var(--bc-blue);
  }
  .filter-bar .chip:hover:not(.active) {
    border-color: var(--bc-blue);
  }

  /* Map + panel layout */
  .map-section {
    display: grid;
    grid-template-columns: 1fr 380px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 32px 40px;
    gap: 24px;
  }
  .map-container {
    background: white;
  }
  .legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 12px 0 20px;
    font-size: 13px;
    color: var(--bc-body);
  }
  .legend .swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
  }

  /* US tile map */
  svg.us-map {
    display: block;
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 0 auto;
  }
  svg.us-map .state-tile {
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
  }
  svg.us-map .state-tile:hover rect {
    stroke: var(--bc-text);
    stroke-width: 3;
  }
  svg.us-map .state-tile.selected rect {
    stroke: var(--bc-text);
    stroke-width: 3.5;
  }
  svg.us-map .state-tile.dimmed { opacity: 0.25; }
  svg.us-map .state-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    fill: white;
    text-anchor: middle;
    pointer-events: none;
    dominant-baseline: middle;
  }
  svg.us-map .state-tile.stage1 .state-label { fill: var(--bc-text); }
  svg.us-map .alignment-dot {
    fill: gold;
    stroke: white;
    stroke-width: 1.5;
    pointer-events: none;
  }

  /* Map SVG wrapper — anchors the methodology trigger over the empty
     bottom-right corner of the SVG (below Florida, right of Hawaii). */
  .map-svg-wrap {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
  }

  /* Methodology trigger — small "ⓘ Methodology & Definitions" link that
     floats in the SVG's empty bottom-right area. */
  .methodology-row {
    position: absolute;
    bottom: 4%;
    right: 4%;
    margin: 0;
  }
  @media (max-width: 600px) {
    .methodology-row {
      position: static;
      text-align: center;
      padding-top: 4px;
    }
  }
  .methodology-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--bc-blue);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 4px;
  }
  .methodology-trigger:hover { text-decoration: underline; color: var(--bc-blue-dark); }
  .methodology-trigger .info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: 13px;
    font-weight: 700;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    line-height: 1;
  }

  /* Methodology modal */
  .methodology-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px 40px;
    overflow-y: auto;
  }
  .methodology-modal.open { display: flex; }
  .methodology-modal .modal-card {
    background: white;
    max-width: 720px;
    width: 100%;
    border-radius: 6px;
    padding: 36px 40px 32px;
    position: relative;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  }
  .methodology-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--bc-body);
    line-height: 1;
    padding: 4px 10px;
    font-family: inherit;
  }
  .methodology-modal .modal-close:hover { color: var(--bc-text); }
  .methodology-modal h2 {
    font-size: 24px;
    margin: 0 0 4px;
    color: var(--bc-text);
    font-weight: 700;
  }
  .methodology-modal .modal-lead {
    font-size: 13px;
    color: var(--bc-body);
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bc-border);
  }
  .methodology-modal h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--bc-blue-dark);
    margin: 20px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
  }
  .methodology-modal p {
    font-size: 14px;
    color: var(--bc-body);
    margin: 0 0 12px;
    line-height: 1.55;
  }
  .methodology-modal ul {
    font-size: 14px;
    color: var(--bc-body);
    margin: 0 0 14px;
    padding-left: 20px;
    line-height: 1.5;
  }
  .methodology-modal ul li { margin: 6px 0; }
  .methodology-modal ul li strong { color: var(--bc-text); }
  .methodology-modal .swatch-inline {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
  }
  @media (max-width: 700px) {
    .methodology-modal .modal-card { padding: 28px 24px 24px; }
    .methodology-modal h2 { font-size: 20px; }
  }

  /* Right column wrapper — toggles between list view (default) and detail view (state selected) */
  .right-column {
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }

  /* Back-to-list button (shown above detail content when a state is selected) */
  .back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--bc-border);
    color: var(--bc-blue);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 14px;
  }
  .back-to-list:hover {
    background: var(--bc-light-bg);
    border-color: var(--bc-blue);
  }

  /* Side panel (used inside right-column when a state is selected) */
  .panel {
    background: var(--bc-light-bg);
    border: 1px solid var(--bc-border);
    border-radius: 6px;
    padding: 24px;
  }
  .panel h2 {
    font-size: 24px;
    margin: 0 0 4px;
    color: var(--bc-text);
    font-weight: 600;
  }
  .panel .subtitle {
    font-size: 13px;
    color: var(--bc-body);
    margin-bottom: 16px;
  }
  .badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    letter-spacing: 0.4px;
    margin-right: 6px;
  }
  .badge.published { background: var(--bc-stage-done); }
  .badge.passed { background: var(--bc-stage-stage2); }
  .badge.pending { background: var(--bc-stage-pending); }
  .badge.norequirement { background: #888; color: white; }
  .badge.family {
    background: white;
    color: var(--bc-blue);
    border: 1px solid var(--bc-blue);
  }
  .panel .field {
    margin: 14px 0;
    font-size: 14px;
  }
  .panel .field .key {
    font-weight: 600;
    color: var(--bc-text);
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
  }
  .panel .field .value {
    color: var(--bc-body);
  }
  .panel ul {
    margin: 4px 0;
    padding-left: 18px;
  }
  .panel ul li {
    margin: 4px 0;
    font-size: 13px;
    color: var(--bc-body);
  }
  .panel .download {
    display: inline-block;
    background: var(--bc-blue);
    color: white;
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 10px;
  }
  .panel .download:hover { background: var(--bc-blue-dark); text-decoration: none; }
  .panel .verified {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--bc-border);
    font-size: 12px;
    color: var(--bc-body);
  }
  .panel .notes {
    background: white;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--bc-body);
    line-height: 1.55;
    border-left: 3px solid var(--bc-blue);
  }

  /* Authority strip */
  .authority {
    background: var(--bc-light-bg);
    padding: 60px 32px;
    border-top: 1px solid var(--bc-border);
    border-bottom: 1px solid var(--bc-border);
  }
  .authority-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
  }
  .authority h2 {
    font-size: 28px;
    margin: 0 0 32px;
    color: var(--bc-text);
  }
  .authority .columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    text-align: left;
  }
  .authority .col {
    background: white;
    padding: 24px;
    border: 1px solid var(--bc-border);
    border-radius: 4px;
  }
  .authority .col h3 {
    color: var(--bc-blue);
    font-size: 18px;
    margin: 0 0 8px;
  }
  .authority .col p {
    color: var(--bc-body);
    font-size: 14px;
    margin: 0;
  }

  /* Families */
  .families {
    padding: 60px 32px;
    max-width: 1100px;
    margin: 0 auto;
  }
  .families h2 {
    text-align: center;
    font-size: 28px;
    margin: 0 0 8px;
    color: var(--bc-text);
  }
  .families .lead {
    text-align: center;
    color: var(--bc-body);
    margin: 0 auto 32px;
    max-width: 720px;
    font-size: 16px;
  }
  .families .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }
  .family-card {
    background: white;
    border: 1px solid var(--bc-border);
    border-radius: 4px;
    padding: 24px;
  }
  .family-card h3 {
    color: var(--bc-blue);
    font-size: 18px;
    margin: 0 0 6px;
  }
  .family-card .examples {
    font-size: 13px;
    color: var(--bc-body);
    font-style: italic;
    margin: 0 0 12px;
  }
  .family-card p {
    font-size: 14px;
    color: var(--bc-body);
    margin: 0;
  }

  /* Changelog */
  .changelog {
    background: var(--bc-light-bg);
    padding: 60px 32px;
    border-top: 1px solid var(--bc-border);
  }
  .changelog-inner { max-width: 900px; margin: 0 auto; }
  .changelog h2 {
    text-align: center;
    font-size: 28px;
    margin: 0 0 32px;
    color: var(--bc-text);
  }
  .changelog ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .changelog li {
    background: white;
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 8px;
    border-left: 3px solid var(--bc-blue);
    font-size: 14px;
    color: var(--bc-body);
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
  .changelog li .date {
    color: var(--bc-blue);
    font-weight: 700;
    flex: 0 0 100px;
    font-size: 13px;
  }
  .changelog li .state {
    color: var(--bc-text);
    font-weight: 600;
    flex: 0 0 80px;
    font-size: 13px;
  }
  .changelog li .event { flex: 1; }

  /* Footer */
  .site-footer {
    background: white;
    padding: 32px;
    text-align: center;
    border-top: 1px solid var(--bc-border);
    font-size: 13px;
    color: var(--bc-body);
  }

  /* Teach-100% claim banner — appears above the National callout and above the state map */
  .claim-banner {
    max-width: 1100px;
    margin: 28px auto 4px;
    padding: 0 32px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }
  .claim-banner .claim-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
  }
  .claim-banner .claim-text {
    font-size: 22px;
    color: var(--bc-text);
    font-weight: 600;
    letter-spacing: -0.2px;
  }
  .claim-banner .claim-text strong {
    color: var(--bc-blue-dark);
    font-weight: 800;
  }
  @media (max-width: 700px) {
    .claim-banner { gap: 10px; padding: 0 16px; }
    .claim-banner .claim-icon { font-size: 26px; }
    .claim-banner .claim-text { font-size: 17px; }
  }

  /* National callout — sits above the map; visually distinct from a state tile */
  .national-callout {
    max-width: 1100px;
    margin: 16px auto 0;
    padding: 18px 24px;
    background: linear-gradient(90deg, #FFF8E0 0%, #FFFFFF 60%);
    border: 1px solid var(--bc-border);
    border-left: 5px solid #D4AF37;
    border-radius: 6px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.1s;
  }
  .national-callout:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .national-callout.selected {
    box-shadow: 0 0 0 3px var(--bc-blue);
  }
  .national-callout .nc-icon {
    font-size: 36px;
    color: #FFD700;
    line-height: 1;
  }
  .national-callout .nc-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #8A6800;
    margin-bottom: 2px;
  }
  .national-callout .nc-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--bc-text);
    margin: 0 0 4px;
  }
  .national-callout .nc-subtitle {
    font-size: 13px;
    color: var(--bc-body);
    margin: 0 0 6px;
    line-height: 1.4;
  }
  .national-callout .nc-body {
    font-size: 13px;
    color: var(--bc-body);
    margin: 0;
    line-height: 1.45;
  }
  .national-callout .nc-action {
    text-align: center;
  }
  .national-callout .nc-download {
    display: inline-block;
    background: var(--bc-blue);
    color: white;
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
  }
  .national-callout .nc-download:hover { background: var(--bc-blue-dark); text-decoration: none; }
  .national-callout .nc-version {
    margin-top: 6px;
    font-size: 11px;
    color: var(--bc-body);
  }
  @media (max-width: 700px) {
    .national-callout {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto;
    }
    .national-callout .nc-action {
      text-align: left;
      padding-top: 6px;
      border-top: 1px solid var(--bc-border);
    }
  }

  /* Map style switcher */
  .map-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 32px 4px;
    background: white;
    flex-wrap: wrap;
  }
  .map-switcher .label {
    font-size: 13px;
    color: var(--bc-body);
    font-weight: 600;
    margin-right: 4px;
  }
  .map-switcher button {
    background: white;
    border: 1px solid var(--bc-border);
    color: var(--bc-text);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
  }
  .map-switcher button:hover { border-color: var(--bc-blue); color: var(--bc-blue); }
  .map-switcher button.active {
    background: var(--bc-blue);
    color: white;
    border-color: var(--bc-blue);
  }

  /* Geographic SVG map */
  svg.geo-map {
    display: block;
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 0 auto;
  }
  svg.geo-map .state-path {
    cursor: pointer;
    stroke: white;
    stroke-width: 1;
    transition: opacity 0.15s;
  }
  svg.geo-map .state-path:hover {
    stroke: var(--bc-text);
    stroke-width: 2;
  }
  svg.geo-map .state-path.selected {
    stroke: var(--bc-text);
    stroke-width: 2.5;
  }
  svg.geo-map .state-path.dimmed { opacity: 0.25; }
  svg.geo-map .alignment-dot {
    fill: gold;
    stroke: white;
    stroke-width: 1;
    pointer-events: none;
  }
  svg.geo-map .alignment-star {
    fill: #FFD700;
    stroke: white;
    stroke-width: 0.5;
    pointer-events: none;
  }
  svg.geo-map .inset-frame {
    fill: none;
    stroke: var(--bc-border);
    stroke-width: 1;
    stroke-dasharray: 3,3;
  }
  svg.geo-map .inset-label {
    font-size: 10px;
    fill: var(--bc-body);
    font-weight: 600;
  }

  /* Sidebar list of states */
  .map-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 16px;
    align-items: start;
  }
  .state-list {
    border: 1px solid var(--bc-border);
    border-radius: 4px;
    background: white;
    max-height: 540px;
    overflow-y: auto;
    padding: 4px;
  }
  .state-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
    color: var(--bc-text);
  }
  .state-list-item:hover { background: var(--bc-light-bg); }
  .state-list-item.selected {
    background: var(--bc-blue);
    color: white;
    font-weight: 600;
  }
  .state-list-item.dimmed { opacity: 0.35; }
  .state-list-item .stage-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .state-list-item .code {
    font-weight: 700;
    width: 26px;
    flex-shrink: 0;
    font-size: 12px;
  }
  .state-list-item.selected .code { color: white; }
  .state-list-item .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .state-list-item .alignment-mark {
    color: gold;
    font-size: 14px;
    flex-shrink: 0;
  }
  .state-list-item.selected .alignment-mark { color: white; }
  .state-list-section {
    font-size: 10px;
    color: var(--bc-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 8px 8px 4px;
    border-top: 1px solid var(--bc-border);
    margin-top: 4px;
  }
  .state-list-section:first-child {
    border-top: none;
    margin-top: 0;
  }

  /* ═══════════════════════════════════════════════════════════
     DNN-ONLY full-width section overrides
     ═══════════════════════════════════════════════════════════
     The skin's .ascx wraps every pane in <div class="container">,
     and the existing Budget skin sets a max-width on .container.
     This clips the inner-pane backgrounds (blue stats band, gray
     authority strip, gray changelog strip) so they stop at the
     container edge instead of going edge-to-edge of the viewport.

     Fix: put the full-width background + outer padding on the
     OUTER .bc-ss-X wrapper (which sits OUTSIDE the container in
     the .ascx). Then zero out the inner pane's redundant
     background and outer padding.

     These selectors only match in the DNN-rendered page; the
     standalone preview.html doesn't have .bc-ss-X wrappers so
     the rules are no-ops there. */

  /* Hero — light-gray full-width */
  .bc-ss-hero { background: var(--bc-light-bg); }
  .bc-ss-hero .hero { background: transparent; }

  /* Stats bar — full-width brand-blue band */
  .bc-ss-stats {
    background: var(--bc-blue);
    color: white;
    padding: 24px 0;
  }
  .bc-ss-stats .stats-bar {
    background: transparent;
    padding: 0 32px;
  }

  /* Authority strip — full-width light gray with top + bottom borders */
  .bc-ss-authority {
    background: var(--bc-light-bg);
    padding: 60px 0;
    border-top: 1px solid var(--bc-border);
    border-bottom: 1px solid var(--bc-border);
  }
  .bc-ss-authority .authority {
    background: transparent;
    padding: 0 32px;
    border: 0;
  }

  /* Changelog — full-width light gray with top border */
  .bc-ss-changelog {
    background: var(--bc-light-bg);
    padding: 60px 0;
    border-top: 1px solid var(--bc-border);
  }
  .bc-ss-changelog .changelog {
    background: transparent;
    padding: 0 32px;
    border: 0;
  }

  /* Mobile */
  @media (max-width: 900px) {
    .map-section {
      grid-template-columns: 1fr;
    }
    .panel {
      position: static;
      max-height: none;
    }
    .map-with-sidebar {
      grid-template-columns: 1fr;
    }
    .state-list {
      max-height: 300px;
    }
    .stats-bar { gap: 24px; }
    .stat .num { font-size: 24px; }
    .hero h1 { font-size: 30px; }
  }
