/* ==============================================
       DESIGN SYSTEM
    =============================================== */
    :root {
      --navy:        #003366;
      --navy-mid:    #1A4A7A;
      --navy-light:  #2E6DA4;
      --gold:        #FCBA19;
      --red:         #B83232;
      --orange:      #D4691E;
      --blue-mid:    #2471A3;
      --purple:      #6C3483;
      --teal:        #117A65;
      --green:       #1E8449;
      --bg:          #F4F5F7;
      --bg-card:     #FFFFFF;
      --text:        #1A1A1A;
      --text-2:      #444;
      --text-muted:  #888;
      --border:      #DDE1E6;
      --shadow:      0 1px 4px rgba(0,0,0,0.07), 0 2px 10px rgba(0,0,0,0.04);
      --radius:      8px;
      --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    }

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

    body {
      font-family: var(--font);
      background: var(--bg);
      color: var(--text);
      font-size: 15px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    /* ==============================================
       NAVIGATION
    =============================================== */
    #site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--navy);
      box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    }

    .header-inner {
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 56px;
      gap: 16px;
    }

    .site-title {
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      letter-spacing: -0.01em;
      display: flex;
      align-items: center;
      gap: 10px;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .site-badge {
      background: var(--gold);
      color: var(--navy);
      font-size: 10px;
      font-weight: 800;
      padding: 2px 7px;
      border-radius: 3px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    #main-nav { display: flex; gap: 2px; overflow-x: auto; }

    .nav-btn {
      background: none;
      border: none;
      border-bottom: 2px solid transparent;
      color: rgba(255,255,255,0.62);
      font-family: var(--font);
      font-size: 13px;
      font-weight: 500;
      padding: 0 14px;
      height: 56px;
      cursor: pointer;
      transition: color 0.15s, border-color 0.15s;
      white-space: nowrap;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
    }

    .nav-btn:hover { color: rgba(255,255,255,0.9); }
    .nav-btn.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 600; }

    /* ==============================================
       LAYOUT
    =============================================== */
    main { max-width: 1240px; margin: 0 auto; padding: 36px 28px 80px; }
    .section { display: none; }
    .section.active { display: block; }

    /* ==============================================
       SECTION HEADERS
    =============================================== */
    .section-hd {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 16px;
      margin-bottom: 28px;
    }

    .section-title {
      font-size: 28px;
      font-weight: 800;
      color: var(--navy);
      letter-spacing: -0.025em;
      line-height: 1.1;
    }

    .section-sub { font-size: 13.5px; color: var(--text-muted); margin-top: 5px; }

    /* ==============================================
       YEAR SELECTOR
    =============================================== */
    .year-selector {
      display: flex;
      gap: 3px;
      background: var(--border);
      border-radius: 10px;
      padding: 3px;
      flex-shrink: 0;
    }

    .year-btn {
      background: none;
      border: none;
      font-family: var(--font);
      font-size: 12px;
      font-weight: 500;
      color: var(--text-muted);
      padding: 6px 13px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.15s;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      text-decoration: none;
    }

    .year-btn:hover { color: var(--text-2); background: rgba(255,255,255,0.5); }
    .year-btn.active { background: #fff; color: var(--navy); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }

    .year-type {
      display: block;
      font-size: 9px;
      font-weight: 400;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--text-muted);
      line-height: 1;
    }

    .year-btn.active .year-type { color: var(--navy-mid); }

    /* ==============================================
       STAT CARDS  (Section 1)
    =============================================== */
    .stat-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 14px;
      margin-bottom: 22px;
    }

    .stat-card {
      background: var(--bg-card);
      border-radius: var(--radius);
      padding: 20px 16px 16px;
      box-shadow: var(--shadow);
      border-top: 3px solid transparent;
      transition: transform 0.1s;
    }

    .stat-card:hover { transform: translateY(-1px); }
    .stat-card.c-rev  { border-top-color: var(--navy); }
    .stat-card.c-exp  { border-top-color: var(--red); }
    .stat-card.c-def  { border-top-color: var(--orange); }
    .stat-card.c-cap  { border-top-color: var(--blue-mid); }
    .stat-card.c-debt { border-top-color: var(--purple); }

    .stat-label {
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.09em;
      color: var(--text-muted);
      margin-bottom: 9px;
    }

    .stat-val {
      font-size: 30px;
      font-weight: 800;
      letter-spacing: -0.04em;
      line-height: 1;
      color: var(--text);
    }

    .stat-card.c-def .stat-val { color: var(--red); }
    .stat-note { font-size: 12px; color: var(--text-muted); margin-top: 7px; line-height: 1.35; }

    /* ==============================================
       CALLOUT CARDS  (Sections 2–5, large-format)
    =============================================== */
    .callout-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-bottom: 22px;
    }

    .callout-card {
      background: var(--bg-card);
      border-radius: var(--radius);
      padding: 22px 20px 18px;
      box-shadow: var(--shadow);
      border-left: 4px solid var(--border);
    }

    .callout-hed {
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.09em;
      color: var(--text-muted);
      margin-bottom: 8px;
    }

    .callout-big {
      font-size: 42px;
      font-weight: 800;
      letter-spacing: -0.04em;
      line-height: 1;
      color: var(--navy);
    }

    .callout-lbl {
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      margin-top: 5px;
    }

    .callout-note {
      font-size: 12.5px;
      color: var(--text-muted);
      margin-top: 5px;
      line-height: 1.4;
    }

    /* ==============================================
       CHART CARDS
    =============================================== */
    .chart-card {
      background: var(--bg-card);
      border-radius: var(--radius);
      padding: 24px 24px 20px;
      box-shadow: var(--shadow);
      margin-bottom: 18px;
    }

    .chart-hd {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 4px;
    }

    .chart-title { font-size: 15px; font-weight: 700; color: var(--text); }
    .chart-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

    .legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
    .legend-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
    .swatch { width: 13px; height: 13px; border-radius: 3px; flex-shrink: 0; }

    /* ==============================================
       CONTEXT NOTES
    =============================================== */
    .context-note {
      background: #EBF1FA;
      border-left: 3px solid var(--navy-light);
      border-radius: 0 6px 6px 0;
      padding: 12px 16px;
      font-size: 13px;
      color: var(--text-2);
      line-height: 1.6;
      margin-top: 18px;
    }

    .context-note strong { color: var(--navy); }

    /* ==============================================
       PLACEHOLDER SECTIONS
    =============================================== */
    .placeholder {
      background: var(--bg-card);
      border-radius: var(--radius);
      border: 2px dashed var(--border);
      padding: 72px 24px;
      text-align: center;
      color: var(--text-muted);
    }

    .placeholder h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }

    /* ==============================================
       D3 SHARED STYLES
    =============================================== */
    .tick text { font-family: var(--font); font-size: 11.5px; fill: var(--text-muted); }
    .tick line { stroke: var(--border); }
    .domain { stroke: var(--border); }

    /* Chart group separator (used in revenue chart) */
    .cat-sep { stroke: #E8EAED; stroke-width: 1; }

    @media (max-width: 860px) {
      .stat-grid { grid-template-columns: repeat(2, 1fr); }
      .stat-card:last-child { grid-column: span 2; }
      .callout-row { grid-template-columns: 1fr 1fr; }
      .callout-card:last-child { grid-column: span 2; }
      .callout-big { font-size: 34px; }
      .header-inner { padding: 0 16px; }
      main { padding: 24px 16px 64px; }
      .section-title { font-size: 22px; }
    }