/*--------------------------------------------------------------
# Keystone Repositioning Layer (Aug 2026)
# District evaluation capacity positioning.
# Builds on enhanced.css tokens: Libre Caslon headings, Inter body,
# Navy #1E3A8A / Blue #2563EB / Teal #0F766E. No new palette.
--------------------------------------------------------------*/

/* ---------- small typographic primitives ---------- */
.kicker {
  display: inline-block;
  font-family: var(--nav-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.kicker-light { color: #93C5FD; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--slate);
  line-height: 1.75;
  max-width: 720px;
}

/* primary button usable outside the hero */
.btn-primary-ks,
.btn-secondary-ks {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 8px;
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}
.btn-primary-ks {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn-primary-ks:hover {
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue) 100%);
}
.btn-secondary-ks {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(147, 197, 253, 0.6);
}
.btn-secondary-ks:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-2px);
}
.light-surface .btn-secondary-ks {
  color: var(--navy);
  border-color: rgba(30, 58, 138, 0.35);
  background: transparent;
}
.light-surface .btn-secondary-ks:hover {
  color: var(--navy);
  background: rgba(37, 99, 235, 0.06);
}

/* inline arrow links */
.link-arrow {
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-arrow:hover { color: var(--navy); gap: 10px; }

/* hero tweaks for the repositioned homepage */
.hero .hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero .hero-actions .btn-get-started { margin-top: 0; }
.hero .hero-kicker {
  display: inline-block;
  font-family: var(--nav-font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93C5FD;
  margin-bottom: 16px;
}
.hero .hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}
.pill {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--nav-font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(147, 197, 253, 0.45);
}
.pill-light {
  color: var(--navy);
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.18);
}

/* ---------- section title, left-aligned variant ---------- */
.section-title.text-start h2::after { left: 0; transform: none; }
.section-title.text-start p { margin: 0; }

/* ---------- numbered cards (service routes, principles) ---------- */
.num-card {
  position: relative;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 32px 28px 28px;
  transition: var(--transition-smooth);
  overflow: hidden;
}
.num-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  opacity: 0;
  transition: var(--transition-smooth);
}
.num-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: rgba(37, 99, 235, 0.15); }
.num-card:hover::before { opacity: 1; }
.num-card .num {
  font-family: var(--nav-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.num-card .num::after {
  content: '';
  height: 1px;
  width: 36px;
  background: rgba(37, 99, 235, 0.35);
}
.num-card .num.num-letter {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(15, 118, 110, 0.08));
  align-items: center; justify-content: center;
  font-size: 0.95rem;
  letter-spacing: 0;
}
.num-card .num.num-letter::after { display: none; }
.num-card h3 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 10px;
}
.num-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 0;
}
.num-card .meta {
  display: inline-block;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--nav-font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  width: 100%;
}
.num-card .icon {
  font-size: 30px;
  color: var(--blue);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.06));
}

/* ---------- editorial band (3 or 4 cells with dividers) ---------- */
.editorial-band {
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid rgba(203, 213, 225, 0.8);
  padding: 38px 20px;
}
.editorial-band .row { display: flex; flex-wrap: wrap; }
.editorial-band .band-item {
  text-align: center;
  padding: 20px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.editorial-band .band-item p { margin-top: auto; }
/* vertical divider drawn as an overlay so it never offsets a cell */
.editorial-band .band-item + .band-item::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: rgba(148, 163, 184, 0.45);
}
.editorial-band .band-item i {
  font-size: 32px;
  color: var(--blue);
  margin-bottom: 14px;
  display: inline-block;
}
.editorial-band .band-item .step-no {
  font-family: var(--nav-font);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}
.editorial-band .band-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.editorial-band .band-item p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}
/* 2-column layout: no divider on the cell that starts a row */
@media (min-width: 768px) and (max-width: 991px) {
  .editorial-band .band-item:nth-child(odd)::before { display: none; }
  .editorial-band .band-item:nth-child(n+3)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(148, 163, 184, 0.35);
  }
}
@media (max-width: 767px) {
  .editorial-band .band-item + .band-item::before {
    top: 0;
    bottom: auto;
    left: 12%;
    right: 12%;
    width: auto;
    height: 1px;
    background: rgba(148, 163, 184, 0.35);
  }
  .editorial-band .band-item { padding: 24px 20px; }
}

/* ---------- process stages (horizontal journey) ---------- */
.stages .stage {
  text-align: center;
  padding: 12px 14px 0;
  position: relative;
}
.stages .stage .stage-badge {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nav-font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.18);
  transition: var(--transition-smooth);
}
.stages .stage:hover .stage-badge {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #ffffff;
}
.stages .stage h4 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.stages .stage h4 span {
  display: block;
  font-family: var(--nav-font);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.stages .stage p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}
.stages .stage .stage-tags {
  font-family: var(--nav-font);
  font-size: 0.78rem;
  color: var(--navy);
  margin-top: 10px;
  display: block;
}
.stages .stage:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: rgba(147, 197, 253, 0.75);
}
@media (max-width: 991px) {
  .stages .stage:not(:last-child)::after {
    left: 50%;
    top: calc(100% - 4px);
    transform: translateX(-50%);
    width: 2px;
    height: 24px;
  }
  .stages .stage { padding-bottom: 28px; }
}

/* ---------- split panels: Keystone delivers / District retains ---------- */
.split-panel {
  height: 100%;
  border-radius: 16px;
  padding: 34px 30px;
  border: 1px solid var(--border);
  background: var(--surface-color);
  transition: var(--transition-smooth);
}
.split-panel:hover { box-shadow: var(--shadow-lg); }
.split-panel.panel-accent {
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 100%);
  border-color: rgba(147, 197, 253, 0.3);
}
.split-panel .kicker { margin-bottom: 8px; }
.split-panel h3 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.split-panel.panel-accent h3,
.split-panel.panel-accent li { color: #F1F5F9; }
.split-panel.panel-accent .kicker { color: #93C5FD; }
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--slate);
  font-size: 0.97rem;
  line-height: 1.6;
}
.check-list li:last-child { border-bottom: none; }
.check-list li i {
  color: var(--blue);
  flex-shrink: 0;
  font-size: 1.05rem;
  margin-top: 3px;
}
.split-panel.panel-accent .check-list li { border-color: rgba(255, 255, 255, 0.1); }
.split-panel.panel-accent .check-list li i { color: #5EEAD4; }

/* ---------- image + stacked list (reasons / audiences) ---------- */
.media-split .media-image-wrap {
  height: 100%;
  min-height: 420px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
  border-radius: 4px;
}
.media-split .media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-split .reason-list { display: grid; gap: 12px; }
.media-split .reason-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}
.media-split .reason-row:last-child { border-bottom: none; }
.media-split .reason-row i,
.media-split .reason-row .abbr {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  font-size: 22px;
  flex-shrink: 0;
}
.media-split .reason-row .abbr {
  font-family: var(--nav-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 8px;
}
.media-split .reason-row h3 { font-size: 1.15rem; margin-bottom: 6px; }
.media-split .reason-row p { margin: 0; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 991px) {
  .media-split .media-image-wrap { min-height: 300px; }
}

/* ---------- stakeholder chips ---------- */
.stakeholders { display: grid; gap: 12px; }
.stakeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--surface-color);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}
.stakeholder:hover { border-color: rgba(37, 99, 235, 0.25); box-shadow: var(--shadow-md); }
.stakeholder strong {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1rem;
  color: var(--heading-color);
}
.stakeholder span {
  font-family: var(--nav-font);
  font-size: 0.88rem;
  color: var(--muted);
  text-align: right;
}
@media (max-width: 575px) {
  .stakeholder { flex-direction: column; align-items: flex-start; }
  .stakeholder span { text-align: left; }
}

/* ---------- statement / callout ---------- */
.statement {
  border-left: 4px solid var(--blue);
  background: var(--surface-color);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.statement .kicker { margin-bottom: 6px; }
.statement p {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1.15rem;
  color: var(--heading-color);
  margin: 0;
  line-height: 1.5;
}
.statement.statement-muted p {
  font-family: var(--default-font);
  font-size: 0.98rem;
  color: var(--slate);
}
.statement.statement-warn { border-left-color: var(--gold); }

/* ---------- compare (avoid / use) ---------- */
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.compare-cell {
  border-radius: 12px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  background: var(--surface-color);
}
.compare-cell .tag {
  display: inline-block;
  font-family: var(--nav-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.compare-cell.avoid .tag { color: #9A3412; background: rgba(180, 83, 9, 0.1); }
.compare-cell.use .tag { color: var(--teal); background: rgba(15, 118, 110, 0.1); }
.compare-cell.avoid { border-color: rgba(180, 83, 9, 0.2); }
.compare-cell.use { border-color: rgba(15, 118, 110, 0.25); }
.compare-cell p {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1.05rem;
  color: var(--heading-color);
  margin: 0;
}
@media (max-width: 767px) {
  .compare-row { grid-template-columns: 1fr; }
}

/* ---------- resource cards ---------- */
.resource-card {
  display: block;
  height: 100%;
  text-decoration: none;
  border-radius: 14px;
  padding: 26px 26px 24px;
  background: var(--surface-color);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.resource-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  opacity: 0;
  transition: var(--transition-smooth);
}
.resource-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: rgba(37, 99, 235, 0.15); }
.resource-card:hover::before { opacity: 1; }
.resource-card .kicker { margin-bottom: 8px; font-size: 0.72rem; }
.resource-card h3 {
  font-size: 1.12rem;
  color: var(--heading-color);
  margin-bottom: 8px;
}
.resource-card p {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.resource-card .link-arrow { font-size: 0.88rem; }

/* ---------- simple tag row ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(15, 118, 110, 0.12), transparent 60%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 {
  color: #ffffff;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}
.cta-band p {
  color: rgba(203, 213, 225, 0.9);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 28px;
}

/* ---------- contact page discovery block ---------- */
.discovery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.discovery-q {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface-color);
  border: 1px solid var(--border);
}
.discovery-q .q-no {
  font-family: var(--nav-font);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--blue);
  letter-spacing: 0.08em;
  padding-top: 3px;
}
.discovery-q p { margin: 0; color: var(--heading-color); font-weight: 500; font-size: 0.98rem; }
@media (max-width: 575px) { .discovery-grid { grid-template-columns: 1fr; } }

/* ---------- footer grid ---------- */
.footer .footer-grid { margin-bottom: 10px; }
.footer .footer-logo { height: 40px; width: auto; margin-right: 10px; }
.footer .footer-wordmark {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}
.footer .footer-brand p { margin: 0; max-width: 320px; }
.footer h4 {
  font-family: var(--nav-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.9);
  margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 8px; font-size: 0.92rem; }
.footer ul li a, .footer ul li span {
  color: rgba(148, 163, 184, 0.85);
  text-decoration: none;
  transition: var(--transition-smooth);
}
.footer ul li a:hover { color: #ffffff; }
.footer .footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer .footer-contact li i { color: #93C5FD; margin-top: 3px; }
.footer .copyright { text-align: center; }

/* ---------- leadership (about page) ---------- */
.leader-card {
  border-radius: 16px;
  padding: 36px 30px;
  background: var(--surface-color);
  border: 1px solid var(--border);
}
.leader-card img {
  width: 140px; height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(37, 99, 235, 0.15);
}
.leader-card h3 { font-size: 1.2rem; margin: 16px 0 2px; }
.leader-card .role {
  font-family: var(--nav-font);
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.leader-card p { font-size: 0.95rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- utilities ---------- */
.section.light-surface { background-color: var(--light-bg); }
.section-tight { padding-top: 50px; padding-bottom: 50px; }

/* ---------- stage alignment fix (Aug 19) ---------- */
.stages .stage { display: flex; flex-direction: column; align-items: center; }
.stages .stage h4 {
  min-height: 2.6em;           /* reserve two lines so single-word titles like Mobilize line up */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}
.stages .stage h4 span { min-height: 0; }
.stages .stage p { width: 100%; }
@media (min-width: 768px) and (max-width: 991px) {
  .stages .stage:not(:last-child)::after { display: none; }   /* no dangling connectors in 2-col tablet view */
}
@media (max-width: 767px) {
  .stages .stage h4 { min-height: 0; }
}

/* ---------- stage alignment fix (Aug 19) ---------- */
.stages .stage { display: flex; flex-direction: column; }
.stages .stage h4 { min-height: 2.6em; display: flex; flex-direction: column; justify-content: flex-start; }
.stages .stage p { flex: 1 1 auto; }
.stages .stage .stage-tags { margin-top: auto; padding-top: 10px; }
@media (max-width: 767px) {
  .stages .stage h4 { min-height: 0; }
}
