
/* Defenders against hostile host-page CSS. Order matters: these come BEFORE the scoped rules so component-specific !important rules override these defaults where needed. Keep these defenders as resets only. */
.strivepath-hs-dashboard, .strivepath-hs-dashboard * { box-sizing: border-box !important; text-shadow: none !important; }
.strivepath-hs-dashboard { font-family: 'DM Sans', system-ui, -apple-system, sans-serif !important; color: #1a2540 !important; background: #f7f4ec; line-height: 1.5 !important; -webkit-font-smoothing: antialiased; text-align: left; }
.strivepath-hs-dashboard h1, .strivepath-hs-dashboard h2, .strivepath-hs-dashboard h3 { font-family: 'Instrument Serif', Georgia, serif !important; color: #1a2540 !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: -0.01em !important; line-height: 1.15 !important; }
.strivepath-hs-dashboard p { font-family: 'DM Sans', system-ui, sans-serif !important; color: #1a2540 !important; line-height: 1.5 !important; font-size: inherit !important; }
.strivepath-hs-dashboard div, .strivepath-hs-dashboard span, .strivepath-hs-dashboard label, .strivepath-hs-dashboard li { font-family: 'DM Sans', system-ui, sans-serif !important; color: #1a2540 !important; }
.strivepath-hs-dashboard .text-muted, .strivepath-hs-dashboard .control-label, .strivepath-hs-dashboard .kpi .label, .strivepath-hs-dashboard .kpi .sub, .strivepath-hs-dashboard .section-desc, .strivepath-hs-dashboard .school-meta { color: #5e6478 !important; }
.strivepath-hs-dashboard .section-head .hint, .strivepath-hs-dashboard .pick-hint, .strivepath-hs-dashboard .hero p.meta, .strivepath-hs-dashboard .school-empty { color: #8d92a1 !important; }
.strivepath-hs-dashboard .kpi .value { color: #1a2540 !important; }
.strivepath-hs-dashboard .kpi.highlight .value { color: #b8893a !important; }
.strivepath-hs-dashboard .guardrail { color: #8d92a1 !important; }
.strivepath-hs-dashboard .guardrail strong { color: #5e6478 !important; }
.strivepath-hs-dashboard .empty-state { color: #8d92a1 !important; }
.strivepath-hs-dashboard .empty-state strong { color: #5e6478 !important; }
.strivepath-hs-dashboard button { font-family: 'DM Sans', system-ui, sans-serif !important; cursor: pointer !important; padding: 0; background: transparent; color: inherit; border: 0; line-height: inherit; }
.strivepath-hs-dashboard .sp-tab { background: transparent !important; color: #5e6478 !important; padding: 9px 22px !important; }
.strivepath-hs-dashboard .sp-tab.active { background: #0f1a30 !important; color: #ffffff !important; }
.strivepath-hs-dashboard .metric-toggle button { background: transparent !important; color: #5e6478 !important; padding: 6px 14px !important; }
.strivepath-hs-dashboard .metric-toggle button.active { background: #0f1a30 !important; color: #ffffff !important; }
.strivepath-hs-dashboard select { font-family: 'DM Sans', system-ui, sans-serif !important; background-color: #faf8f2 !important; color: #1a2540 !important; border: 1px solid #cfc6b2 !important; -webkit-appearance: none !important; appearance: none !important; box-shadow: none !important; text-transform: none !important; letter-spacing: normal !important; font-size: 15px !important; padding: 9px 32px 9px 12px !important; }
.strivepath-hs-dashboard input[type="text"] { font-family: 'DM Sans', system-ui, sans-serif !important; background-color: #faf8f2 !important; color: #1a2540 !important; border: 1px solid #cfc6b2 !important; -webkit-appearance: none !important; appearance: none !important; box-shadow: none !important; font-size: 15px !important; padding: 9px 12px !important; }
.strivepath-hs-dashboard canvas { max-width: 100% !important; height: auto !important; filter: none !important; image-rendering: auto !important; }
.strivepath-hs-dashboard table { border-collapse: collapse !important; border: 0 !important; background: transparent !important; }
.strivepath-hs-dashboard tr, .strivepath-hs-dashboard tbody, .strivepath-hs-dashboard thead { background: transparent !important; color: #1a2540 !important; }
.strivepath-hs-dashboard th, .strivepath-hs-dashboard td { background: transparent !important; border: 0 !important; color: #1a2540 !important; }
.strivepath-hs-dashboard thead th { color: #5e6478 !important; }
.strivepath-hs-dashboard ul, .strivepath-hs-dashboard ol { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.strivepath-hs-dashboard a { font-family: inherit !important; }
.strivepath-hs-dashboard header.top, .strivepath-hs-dashboard header.top * { color: rgba(255,255,255,0.85) !important; }
.strivepath-hs-dashboard header.top .brand-name { color: #ffffff !important; }
.strivepath-hs-dashboard header.top .brand-mark { color: #0f1a30 !important; background: #ffffff !important; }
.strivepath-hs-dashboard header.top .top-cta { background: #b8893a !important; color: #ffffff !important; }
.strivepath-hs-dashboard footer { color: rgba(255,255,255,0.82) !important; }
.strivepath-hs-dashboard footer h3 { color: #ffffff !important; }
.strivepath-hs-dashboard footer p { color: rgba(255,255,255,0.82) !important; }
.strivepath-hs-dashboard footer .disclaimer, .strivepath-hs-dashboard footer .disclaimer a { color: rgba(255,255,255,0.55) !important; }
.strivepath-hs-dashboard footer a { color: #ffffff !important; }



  .strivepath-hs-dashboard {
    --navy-900: #0f1a30;
    --navy-800: #1a2540;
    --navy-700: #2a3654;
    --navy-600: #3a4668;
    --ivory: #f7f4ec;
    --cream: #faf8f2;
    --surface: #ffffff;
    --border: #e3ddcf;
    --border-strong: #cfc6b2;
    --text: #1a2540;
    --text-muted: #5e6478;
    --text-faint: #8d92a1;
    --accent: #b8893a;
    --accent-hover: #9a6f23;
    --teal: #01696F;
    --teal-2: #20808D;
    --red: #a8372d;
    --green: #2f7a4d;
    --radius: 8px;
    --shadow-sm: 0 1px 2px rgba(15, 26, 48, 0.04), 0 0 0 1px rgba(15, 26, 48, 0.04);
  }

  .strivepath-hs-dashboard * { box-sizing: border-box; }

  .strivepath-hs-dashboard, .strivepath-hs-dashboard {
    margin: 0; padding: 0;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    color: var(--text); background: var(--ivory);
    -webkit-font-smoothing: antialiased; line-height: 1.5;
  }


  .strivepath-hs-dashboard header.top {
    background: var(--navy-900); color: white; padding: 18px 32px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--navy-700);
  }

  .strivepath-hs-dashboard .brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }

  .strivepath-hs-dashboard .brand-mark {
    width: 34px; height: 34px; border-radius: 6px; background: white; color: var(--navy-900);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Instrument Serif', Georgia, serif; font-size: 20px; font-weight: 700; letter-spacing: -0.5px;
  }

  .strivepath-hs-dashboard .brand-name { font-weight: 600; font-size: 15px; letter-spacing: 0.02em; }

  .strivepath-hs-dashboard .brand-tag { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 1px; }

  .strivepath-hs-dashboard .top-right { display: flex; align-items: center; gap: 20px; font-size: 14px; }

  .strivepath-hs-dashboard .top-right a { color: rgba(255,255,255,0.85); text-decoration: none; }

  .strivepath-hs-dashboard .top-right a:hover { color: white; }

  .strivepath-hs-dashboard .top-cta { padding: 8px 16px; background: var(--accent); color: white !important; border-radius: 999px; font-weight: 500; }

  .strivepath-hs-dashboard .top-cta:hover { background: var(--accent-hover); }


  .strivepath-hs-dashboard .hero { padding: 44px 32px 20px; max-width: 1280px; margin: 0 auto; }

  .strivepath-hs-dashboard .hero h1 {
    font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
    font-size: 42px; line-height: 1.08; margin: 0 0 12px; letter-spacing: -0.01em;
  }

  .strivepath-hs-dashboard .hero h1 em { font-style: italic; color: var(--accent); }

  .strivepath-hs-dashboard .hero p.lead { font-size: 17px; color: var(--text-muted); max-width: 760px; margin: 0 0 6px; }

  .strivepath-hs-dashboard .hero p.meta { font-size: 13px; color: var(--text-faint); margin: 14px 0 0; }

  .strivepath-hs-dashboard .hero p.meta a { color: var(--teal); text-decoration: none; }

  .strivepath-hs-dashboard .hero p.meta a:hover { text-decoration: underline; }


  .strivepath-hs-dashboard main { max-width: 1280px; margin: 0 auto; padding: 8px 32px 40px; }


  .strivepath-hs-dashboard .sp-tabs {
    display: inline-flex; gap: 0;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 999px; padding: 4px; margin: 0 0 24px;
  }

  .strivepath-hs-dashboard .sp-tab {
    font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
    background: transparent; color: var(--text-muted);
    border: none; padding: 9px 22px; border-radius: 999px; cursor: pointer;
    transition: all 0.16s ease;
    letter-spacing: 0.01em;
  }

  .strivepath-hs-dashboard .sp-tab:hover { color: var(--text); }

  .strivepath-hs-dashboard .sp-tab.active { background: var(--navy-900); color: white; box-shadow: 0 2px 6px rgba(15,26,48,0.15); }


  .strivepath-hs-dashboard .sp-panel { display: none; }

  .strivepath-hs-dashboard .sp-panel.active { display: block; }


  .strivepath-hs-dashboard /* Controls — 4-up grid: county, .strivepath-hs-dashboard school, .strivepath-hs-dashboard UC, .strivepath-hs-dashboard year */
  .controls {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 14px; margin-bottom: 22px;
  }

  .strivepath-hs-dashboard .control {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm);
    min-width: 0;
  }

  .strivepath-hs-dashboard .control .control-label {
    display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
  }

  .strivepath-hs-dashboard .control select, .strivepath-hs-dashboard .control input[type="text"] {
    width: 100%; padding: 9px 12px; font-family: inherit; font-size: 15px;
    color: var(--text); background: var(--cream);
    border: 1px solid var(--border-strong); border-radius: 6px;
    appearance: none;
    cursor: pointer; min-width: 0;
  }

  .strivepath-hs-dashboard .control select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%231a2540' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 32px;
  }

  .strivepath-hs-dashboard .control select:focus, .strivepath-hs-dashboard .control input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }


  .strivepath-hs-dashboard /* Searchable school combobox */
  .school-combo { position: relative; }

  .strivepath-hs-dashboard .school-combo input { cursor: text; }

  .strivepath-hs-dashboard .school-combo .school-list {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
    background: white; border: 1px solid var(--border-strong);
    border-radius: 6px; margin-top: 4px; max-height: 280px; overflow-y: auto;
    box-shadow: 0 6px 16px rgba(15,26,48,0.12);
    display: none;
  }

  .strivepath-hs-dashboard .school-combo.open .school-list { display: block; }

  .strivepath-hs-dashboard .school-combo .school-item {
    padding: 8px 12px; font-size: 14px; cursor: pointer;
    border-bottom: 1px solid var(--border);
  }

  .strivepath-hs-dashboard .school-combo .school-item:last-child { border-bottom: none; }

  .strivepath-hs-dashboard .school-combo .school-item:hover, .strivepath-hs-dashboard .school-combo .school-item.active { background: var(--cream); }

  .strivepath-hs-dashboard .school-combo .school-item .school-meta { font-size: 12px; color: var(--text-muted); }

  .strivepath-hs-dashboard .school-combo .school-empty { padding: 12px; color: var(--text-faint); font-size: 13px; }


  .strivepath-hs-dashboard /* KPIs */
  .kpis {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px;
  }

  .strivepath-hs-dashboard .kpi {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm);
  }

  .strivepath-hs-dashboard .kpi .label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 6px;
  }

  .strivepath-hs-dashboard .kpi .value {
    font-family: 'Instrument Serif', Georgia, serif; font-size: 38px; font-weight: 400;
    color: var(--navy-800); font-variant-numeric: tabular-nums; line-height: 1.05;
  }

  .strivepath-hs-dashboard .kpi .sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

  .strivepath-hs-dashboard .kpi.highlight .value { color: var(--accent); }


  .strivepath-hs-dashboard .sp-chip {
    display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
    padding: 3px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 6px;
    background: var(--cream); color: var(--text-muted); border: 1px solid var(--border);
  }

  .strivepath-hs-dashboard .sp-chip.up { background: #e7f3ec; color: var(--green); border-color: #b8d7c3; }

  .strivepath-hs-dashboard .sp-chip.down { background: #fbe9e6; color: var(--red); border-color: #e8c0b9; }

  .strivepath-hs-dashboard .sp-chip.flat { background: var(--cream); color: var(--text-muted); }


  .strivepath-hs-dashboard .section {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px 26px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
  }

  .strivepath-hs-dashboard .section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 6px; gap: 12px; flex-wrap: wrap;
  }

  .strivepath-hs-dashboard .section-head h2 {
    font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
    font-size: 24px; margin: 0; letter-spacing: -0.01em;
  }

  .strivepath-hs-dashboard .section-head .hint { font-size: 13px; color: var(--text-faint); }

  .strivepath-hs-dashboard .section-desc { font-size: 14px; color: var(--text-muted); margin: 0 0 16px; }


  .strivepath-hs-dashboard .chart-wrap { position: relative; height: 360px; }

  .strivepath-hs-dashboard .chart-wrap.tall { height: 460px; }

  .strivepath-hs-dashboard .chart-wrap.xtall { height: 580px; }


  .strivepath-hs-dashboard /* Trend metric toggle */
  .metric-toggle {
    display: inline-flex; gap: 0; background: var(--cream); border: 1px solid var(--border);
    border-radius: 999px; padding: 3px;
  }

  .strivepath-hs-dashboard .metric-toggle button {
    font-family: inherit; font-size: 12px; font-weight: 500;
    background: transparent; color: var(--text-muted);
    border: none; padding: 6px 14px; border-radius: 999px; cursor: pointer;
    letter-spacing: 0.02em;
  }

  .strivepath-hs-dashboard .metric-toggle button.active { background: var(--navy-900); color: white; }


  .strivepath-hs-dashboard /* Data table */
  .table-wrap { overflow-x: auto; margin-top: 4px; }

  .strivepath-hs-dashboard .sp-data-table {
    width: 100%; min-width: 560px;
    border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums;
  }

  .strivepath-hs-dashboard .sp-data-table thead th {
    text-align: right; font-weight: 600; color: var(--text-muted);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
    padding: 10px 8px; border-bottom: 1px solid var(--border);
  }

  .strivepath-hs-dashboard .sp-data-table thead th.col-label { text-align: left; }

  .strivepath-hs-dashboard .sp-data-table td { padding: 8px; text-align: right; color: var(--text); }

  .strivepath-hs-dashboard .sp-data-table td.col-label {
    text-align: left; font-weight: 500; vertical-align: middle;
    border-right: 1px solid var(--border); padding-right: 14px; min-width: 140px;
  }

  .strivepath-hs-dashboard .sp-data-table td.metric-val.primary { color: var(--navy-800); font-weight: 600; }

  .strivepath-hs-dashboard .sp-data-table tr:nth-child(even) td { background: rgba(247, 244, 236, 0.4); }

  .strivepath-hs-dashboard .sp-data-table .uc-dot, .strivepath-hs-dashboard .sp-data-table .school-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 2px;
    margin-right: 8px; vertical-align: baseline;
  }


  .strivepath-hs-dashboard .empty-state {
    padding: 40px 20px; text-align: center; color: var(--text-faint); font-size: 14px;
  }

  .strivepath-hs-dashboard .empty-state strong { color: var(--text-muted); display: block; font-size: 15px; margin-bottom: 4px; }


  .strivepath-hs-dashboard .guardrail {
    margin: 6px 0 0; font-size: 12px; color: var(--text-faint);
    padding: 12px 16px; border-left: 2px solid var(--border-strong);
    background: rgba(184,137,58,0.04); border-radius: 0 6px 6px 0;
    line-height: 1.5;
  }

  .strivepath-hs-dashboard .guardrail strong { color: var(--text-muted); font-weight: 600; }


  .strivepath-hs-dashboard footer {
    background: var(--navy-900); color: rgba(255,255,255,0.82);
    padding: 32px; margin-top: 40px;
  }

  .strivepath-hs-dashboard .footer-inner {
    max-width: 1280px; margin: 0 auto; display: grid;
    grid-template-columns: 1fr 1fr; gap: 24px; align-items: end;
  }

  .strivepath-hs-dashboard footer h3 {
    font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
    font-size: 22px; margin: 0 0 8px; color: white;
  }

  .strivepath-hs-dashboard footer p { margin: 0 0 6px; font-size: 14px; line-height: 1.55; }

  .strivepath-hs-dashboard footer a { color: white; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }

  .strivepath-hs-dashboard footer a:hover { border-bottom-color: white; }

  .strivepath-hs-dashboard .disclaimer { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 12px; line-height: 1.5; }


  @media (max-width: 1100px) {

    .strivepath-hs-dashboard .controls { grid-template-columns: repeat(2, 1fr); }

  
}

  @media (max-width: 900px) {

    .strivepath-hs-dashboard .hero { padding: 28px 20px 10px; }

    .strivepath-hs-dashboard .hero h1 { font-size: 30px; }

    .strivepath-hs-dashboard main { padding: 8px 20px 32px; }

    .strivepath-hs-dashboard header.top { padding: 14px 20px; }

    .strivepath-hs-dashboard .top-right { gap: 12px; }

    .strivepath-hs-dashboard .top-right a:not(.top-cta) { display: none; }

    .strivepath-hs-dashboard .controls { grid-template-columns: 1fr; }

    .strivepath-hs-dashboard .kpis { grid-template-columns: repeat(2, 1fr); }

    .strivepath-hs-dashboard .section { padding: 18px 16px; }

    .strivepath-hs-dashboard .kpi .value { font-size: 30px; }

    .strivepath-hs-dashboard .section-head h2 { font-size: 20px; }

    .strivepath-hs-dashboard .footer-inner { grid-template-columns: 1fr; }

    .strivepath-hs-dashboard .sp-tab { padding: 8px 16px; font-size: 13px; }

    .strivepath-hs-dashboard .chart-wrap { height: 340px; }

    .strivepath-hs-dashboard .chart-wrap.tall, .strivepath-hs-dashboard .chart-wrap.xtall { height: 420px; }

  
}


