/* =========================================================
   IvyBridge Education · page-stories.css
   Stories page-specific styles
   ========================================================= */

/* ---- Page header ---- */
.st-hero {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.st-hero-inner {
  padding-top: 64px;
  padding-bottom: 48px;
}
.st-hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.st-hero-h1 {
  margin-top: 14px;
  font-size: clamp(40px, 5.5vw, 78px);
  line-height: 1.1;
}
.st-hero-h1 em {
  font-style: italic;
  color: var(--ivy);
}
.st-hero-lede {
  margin-top: 16px;
  max-width: 640px;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---- KPI strip (dark ivy) ---- */
.st-kpi-strip {
  background: var(--ivy);
  color: var(--paper);
}
.st-kpi-strip-inner {
  padding-top: 56px;
  padding-bottom: 56px;
}
.st-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.st-kpi-item {
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 32px;
}
.st-kpi-item:first-child {
  border-left: none;
  padding-left: 0;
}
.st-kpi-num {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(40px, 4vw, 56px);
  color: var(--gold-soft);
  line-height: 1;
}
.st-kpi-label {
  font-family: var(--serif-display);
  font-size: 17px;
  color: var(--paper);
  margin-top: 14px;
}
.st-kpi-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ---- Section head ---- */
.st-sec-head { margin-bottom: 40px; }
.st-sec-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
}
.st-sec-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 6px;
}
.st-sec-head h2 {
  margin-top: 10px;
  font-size: clamp(28px, 2.8vw, 42px);
}
.st-sec-lede {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  max-width: 680px;
  line-height: 1.6;
}

/* ---- Featured stories (3 large horizontal cards) ---- */
.st-stories-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.st-story-row {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.st-story-row:first-child {
  border-top: 1px solid var(--line);
}
.st-story-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.st-story-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ivy);
  margin-top: 14px;
  display: grid;
  place-items: center;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 20px;
  color: var(--paper);
}
.st-story-avatar--gold { background: var(--gold); color: white; }
.st-story-name {
  font-family: var(--serif-display);
  font-size: 24px;
  margin-top: 18px;
}
.st-story-stage {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--muted, #8c7d5c);
  margin-top: 6px;
  text-transform: uppercase;
}
.st-story-school {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 14.5px;
  color: var(--ink-2);
  margin-top: 8px;
}
.st-story-quote {
  margin: 0;
  font-family: var(--serif-display);
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
}
.st-story-meta {
  margin-top: 22px;
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted, #8c7d5c);
  flex-wrap: wrap;
}
.st-story-meta-dash {
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.st-story-delta {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 4px;
}
.st-story-delta-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  opacity: 0.6;
  text-transform: uppercase;
}
.st-story-delta-scores {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 14px;
}
.st-story-delta-before {
  font-family: var(--serif-display);
  font-size: 28px;
  color: var(--muted, #8c7d5c);
  text-decoration: line-through;
}
.st-story-delta-after {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 46px;
  color: var(--ivy);
  line-height: 1;
}
.st-story-delta-pct-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.st-story-delta-pct-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted, #8c7d5c);
}
.st-story-delta-pct-val {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
}

/* ---- Admissions board ---- */
.st-admissions {
  background: var(--paper-2);
}
.st-admissions-inner {
  padding-top: 96px;
  padding-bottom: 96px;
}
.st-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.st-filter-btn {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line);
  padding: 6px 14px;
  font-family: var(--serif-display);
  font-size: 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.st-filter-btn.is-active,
.st-filter-btn:hover {
  background: var(--ivy);
  color: var(--paper);
  border-color: var(--ivy);
}
.st-admissions-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.st-admission-row {
  display: grid;
  grid-template-columns: 48px 1fr 1fr 1fr;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 16px;
}
.st-admission-row:last-child { border-bottom: none; }
.st-admission-row:nth-child(even) { background: var(--paper); }
.st-admission-idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.st-admission-name {
  font-family: var(--serif-display);
  font-size: 17px;
  color: var(--ink);
}
.st-admission-school {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ivy);
}
.st-admission-entry {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted, #8c7d5c);
  text-align: right;
}
.st-admissions-more {
  margin-top: 24px;
  text-align: center;
}

/* ---- Schools grid 4×4 ---- */
.st-schools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.st-school-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
/* Stripe pattern as logo placeholder */
.st-school-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ivy) 0%, var(--gold) 100%);
}
.st-school-name {
  font-family: var(--serif-display);
  font-size: 17px;
  color: var(--ink);
  padding-left: 8px;
}
.st-school-count {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ivy);
  flex-shrink: 0;
}

/* ---- CTA banner ---- */
.st-cta-banner {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
  text-align: center;
}
.st-cta-banner h3 {
  font-size: clamp(26px, 2.5vw, 38px);
}
.st-cta-banner-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .st-kpi-grid          { grid-template-columns: repeat(2, 1fr); }
  .st-kpi-item          { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; }
  .st-kpi-item:first-child { border-top: none; padding-top: 0; }
  .st-story-row         { grid-template-columns: 1fr; gap: 20px; }
  .st-story-delta       { max-width: 340px; }
  .st-admission-row     { grid-template-columns: 40px 1fr 1fr; }
  .st-admission-entry   { display: none; }
  .st-schools-grid      { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .st-kpi-grid          { grid-template-columns: 1fr; }
  .st-admission-row     { grid-template-columns: 40px 1fr; }
  .st-admission-school  { display: none; }
  .st-schools-grid      { grid-template-columns: 1fr; }
}
