/* ===========================================================
   Minnesota Vikings fan site — /history/ (Purple Legacy)
   Loads after style.css. Scoped to .page-history where it
   could otherwise collide with shared component classes.
   =========================================================== */

.page-history ol{margin:0;padding:0;list-style:none}

/* ---------- breadcrumbs ---------- */
.hist-crumbs{background:var(--purple-deep);color:rgba(255,255,255,.62)}
.hist-crumbs .wrap{min-height:44px;display:flex;align-items:center}
.hist-crumbs ol{display:flex;align-items:center;flex-wrap:wrap;gap:9px;
  font-family:var(--display);font-weight:500;font-size:11.5px;letter-spacing:.11em;
  text-transform:uppercase;padding:8px 0}
.hist-crumbs a{color:rgba(255,255,255,.72);transition:color var(--t-fast)}
.hist-crumbs a:hover{color:var(--gold)}
.hist-crumbs li[aria-current]{color:var(--gold)}
.hist-crumbs li[aria-hidden]{opacity:.4}

/* ---------- hero ---------- */
.hist-hero{position:relative;isolation:isolate;background:#0d0916;overflow:hidden}
.hist-hero-bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;
  object-fit:cover;object-position:center 42%}
.hist-hero::after{content:"";position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(97deg,rgba(17,8,38,.95) 0%,rgba(17,8,38,.90) 42%,rgba(17,8,38,.62) 74%,rgba(17,8,38,.74) 100%),
    linear-gradient(180deg,rgba(10,5,24,.35) 0%,rgba(10,5,24,0) 40%)}
.hist-hero .wrap{padding-top:62px;padding-bottom:56px;max-width:var(--wrap)}
.hist-hero h1{
  font-family:var(--display);font-weight:700;text-transform:uppercase;color:#fff;
  font-size:clamp(46px,8vw,96px);line-height:.9;letter-spacing:.012em;
  margin:16px 0 20px;text-shadow:0 3px 24px rgba(0,0,0,.55)}
.hist-lede{max-width:620px;color:#fff;font-size:clamp(15px,1.5vw,18px);line-height:1.62;
  text-shadow:0 1px 10px rgba(0,0,0,.5)}

.hist-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;
  margin-top:34px;max-width:760px;
  border-top:1px solid rgba(255,255,255,.22);padding-top:20px}
.hist-facts li{min-width:0}
.hist-facts b{display:block;font-family:var(--display);font-weight:700;color:var(--gold);
  font-size:clamp(24px,3.2vw,34px);line-height:1;letter-spacing:.02em}
.hist-facts span{display:block;margin-top:6px;font-size:12px;line-height:1.4;
  color:rgba(255,255,255,.86);letter-spacing:.03em}

/* ---------- intro + table of contents ---------- */
.hist-intro{padding:var(--space-5) 0 var(--space-4)}
.hist-intro-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.85fr);
  gap:38px;align-items:start}
.hist-intro-copy{min-width:0}
.hist-intro-copy p{font-size:15.5px;line-height:1.68;color:#33333c;margin-top:16px;max-width:66ch}
.hist-intro-copy abbr{text-decoration:none;border-bottom:1px dotted var(--text-faint)}

.hist-toc{min-width:0;background:var(--card);border-radius:var(--radius);
  border-top:3px solid var(--gold);box-shadow:0 1px 3px rgba(20,15,40,.09);padding:18px 20px 12px}
.hist-toc h2{font-family:var(--display);font-weight:700;font-size:12px;letter-spacing:.15em;
  text-transform:uppercase;color:var(--text-faint);margin-bottom:6px}
.hist-toc a{display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:44px;padding:6px 0;border-bottom:1px solid var(--line);
  font-family:var(--display);font-weight:600;font-size:13.5px;letter-spacing:.05em;
  color:var(--purple);transition:color var(--t-fast),padding-left var(--t-fast)}
.hist-toc li:last-child a{border-bottom:0}
.hist-toc a:hover{color:var(--purple-ink);padding-left:5px}
.hist-toc .ar{width:14px;height:14px;flex:none;opacity:.55}

.hist-note{font-size:13px;line-height:1.6;color:var(--text-muted);max-width:70ch;
  margin:-6px 0 var(--space-3)}
.on-dark-note{color:rgba(255,255,255,.6);margin:var(--space-3) 0 0}

/* ---------- decade timeline ---------- */
.hist-decades{background:#ecebef;padding:var(--space-5) 0}
.timeline{position:relative;display:grid;gap:16px}
.tl-item{position:relative;display:grid;grid-template-columns:150px minmax(0,1fr);
  gap:0;background:var(--card);border-radius:var(--radius);overflow:hidden;
  box-shadow:0 1px 3px rgba(20,15,40,.09);
  transition:box-shadow var(--t),transform var(--t)}
.tl-item:hover{box-shadow:0 10px 26px rgba(20,15,40,.15);transform:translateY(-2px)}
.tl-year{min-width:0;background:var(--purple);color:#fff;
  font-family:var(--display);font-weight:700;text-transform:uppercase;
  font-size:clamp(22px,2.4vw,30px);line-height:1;letter-spacing:.02em;
  padding:22px 18px;display:flex;align-items:flex-start;justify-content:center;
  position:relative}
.tl-year::after{content:"";position:absolute;right:0;top:0;bottom:0;width:4px;background:var(--gold);opacity:0;
  transition:opacity var(--t)}
.tl-item:hover .tl-year::after,.tl-item.is-now .tl-year::after{opacity:1}
.tl-item.is-now .tl-year{background:var(--purple-ink)}
.tl-body{min-width:0;padding:20px 24px 22px}
.tl-body h3{font-family:var(--display);font-weight:600;text-transform:uppercase;
  font-size:clamp(17px,1.8vw,21px);letter-spacing:.02em;line-height:1.18;margin-bottom:10px}
.tl-body p{font-size:14.5px;line-height:1.68;color:#3a3a44;max-width:78ch}
.tl-tags{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:14px;
  padding-top:12px;border-top:1px solid var(--line)}
.tl-tags .tag-cat{margin-bottom:0}

/* ---------- purple people eaters feature ---------- */
.hist-feature{position:relative;isolation:isolate;background:#150c28;overflow:hidden;color:#fff}
.hist-feature-bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;
  object-fit:cover;object-position:center 35%}
.hist-feature::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(90deg,rgba(15,7,32,.95) 0%,rgba(15,7,32,.88) 52%,rgba(15,7,32,.55) 100%)}
.hist-feature .wrap{padding-top:var(--space-5);padding-bottom:var(--space-5)}
.hist-feature-copy{max-width:640px;min-width:0}
.hist-feature h2{font-family:var(--display);font-weight:700;text-transform:uppercase;
  font-size:clamp(28px,4vw,46px);line-height:1.02;letter-spacing:.02em;
  margin:14px 0 16px;text-shadow:0 3px 20px rgba(0,0,0,.45)}
.hist-feature p{font-size:15px;line-height:1.68;color:rgba(255,255,255,.88)}
.hist-feature p+p{margin-top:14px}
.hist-feature em{color:var(--gold);font-style:italic}

/* ---------- legends ---------- */
.hist-legends{padding:var(--space-5) 0}
.legend-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.legend{min-width:0;border-top:3px solid var(--purple)}
.legend .card-body{padding:16px 17px 18px}
.legend h3{font-family:var(--display);font-weight:600;text-transform:uppercase;
  font-size:18px;letter-spacing:.02em;line-height:1.15;margin-bottom:8px}
.legend p{font-size:13.5px;line-height:1.58;color:var(--text-muted)}

/* ---------- franchise records ---------- */
.hist-records{background:var(--ink);padding:var(--space-5) 0}
.rec-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;
  background:var(--panel-2);border-radius:var(--radius);border:1px solid rgba(255,255,255,.08)}
.rec-table{width:100%;min-width:560px;border-collapse:collapse;color:#fff}
.rec-table thead th{font-family:var(--display);font-weight:600;font-size:11px;
  letter-spacing:.13em;text-transform:uppercase;color:rgba(255,255,255,.55);
  text-align:left;padding:13px 16px;background:rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.12)}
.rec-table tbody th{font-weight:600;font-size:13.5px;text-align:left;
  padding:13px 16px;border-bottom:1px solid rgba(255,255,255,.08);color:#fff}
.rec-table td{padding:13px 16px;font-size:13.5px;color:rgba(255,255,255,.72);
  border-bottom:1px solid rgba(255,255,255,.08);white-space:nowrap}
.rec-table tbody tr:last-child th,.rec-table tbody tr:last-child td{border-bottom:0}
.rec-table tbody tr:hover th,.rec-table tbody tr:hover td{background:rgba(255,255,255,.04)}
.rec-table b{font-family:var(--display);font-weight:700;font-size:17px;color:var(--gold);letter-spacing:.02em}
.rec-flag{display:inline-block;margin-left:8px;vertical-align:middle;
  font-family:var(--display);font-weight:600;font-size:10px;letter-spacing:.12em;
  text-transform:uppercase;color:#231800;background:var(--gold);padding:2px 7px;border-radius:2px}

/* ---------- memorable games ---------- */
.hist-games{padding:var(--space-5) 0}
.game-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.gm{min-width:0;background:var(--card);border-radius:var(--radius);
  padding:18px 20px 20px;box-shadow:0 1px 3px rgba(20,15,40,.09);
  border-left:3px solid var(--gold);
  transition:transform var(--t),box-shadow var(--t)}
.gm:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(20,15,40,.16)}
.gm-date{font-family:var(--display);font-weight:600;font-size:11.5px;letter-spacing:.13em;
  text-transform:uppercase;color:var(--purple)}
.gm h3{font-family:var(--display);font-weight:700;text-transform:uppercase;
  font-size:19px;letter-spacing:.015em;line-height:1.12;margin:8px 0 9px}
.gm-note{font-size:13.5px;line-height:1.6;color:var(--text-muted)}

/* ---------- stadiums ---------- */
.hist-stadiums{background:#ecebef;padding:var(--space-5) 0}
.stad-grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  gap:30px;align-items:start}
.stad-media{margin:0;min-width:0;background:var(--card);border-radius:var(--radius);
  overflow:hidden;box-shadow:0 1px 3px rgba(20,15,40,.09)}
.stad-media img{width:100%;height:290px;object-fit:cover;object-position:center 45%}
.stad-media figcaption{padding:13px 16px 15px;font-size:12.5px;line-height:1.55;color:var(--text-muted)}
.stad-copy{min-width:0;display:grid;gap:14px}
.stad{min-width:0;background:var(--card);border-radius:var(--radius);
  padding:16px 18px 18px;box-shadow:0 1px 3px rgba(20,15,40,.09);
  border-left:3px solid var(--purple)}
.stad h3{font-family:var(--display);font-weight:600;text-transform:uppercase;
  font-size:17px;letter-spacing:.02em;line-height:1.2;margin-bottom:8px;
  display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.stad-yrs{font-family:var(--body);font-weight:600;font-size:12px;letter-spacing:.04em;
  text-transform:none;color:var(--purple);white-space:nowrap}
.stad p{font-size:13.5px;line-height:1.62;color:var(--text-muted)}

/* ---------- closer ---------- */
.hist-closer .wrap{padding-top:58px;padding-bottom:58px}
.hist-closer::after{background:linear-gradient(90deg,rgba(30,13,60,.86) 0%,rgba(30,13,60,.8) 50%,rgba(30,13,60,.86) 100%)}
.hist-closer p{max-width:440px}

/* ---------- responsive ---------- */
@media (max-width:1080px){
  .legend-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .game-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .hist-intro-grid{grid-template-columns:minmax(0,1fr);gap:26px}
  .stad-grid{grid-template-columns:minmax(0,1fr);gap:18px}
  .stad-media img{height:230px}
  .hist-feature::after{background:linear-gradient(90deg,rgba(15,7,32,.94) 0%,rgba(15,7,32,.9) 100%)}
}
@media (max-width:820px){
  .hist-hero .wrap{padding-top:44px;padding-bottom:44px}
  .hist-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}
  .legend-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tl-item{grid-template-columns:minmax(0,1fr)}
  .tl-year{padding:12px 18px;align-items:center;justify-content:flex-start;
    font-size:20px;letter-spacing:.06em}
  .tl-year::after{left:0;right:auto;top:auto;bottom:0;width:100%;height:3px}
  .tl-body{padding:16px 18px 18px}
}
@media (max-width:640px){
  .legend-grid{grid-template-columns:minmax(0,1fr)}
  .game-list{grid-template-columns:minmax(0,1fr)}
  .hist-hero::after{background:linear-gradient(180deg,rgba(17,8,38,.9) 0%,rgba(17,8,38,.93) 100%)}
  .hist-intro-copy p{font-size:15px}
}

@media (prefers-reduced-motion:reduce){
  .tl-item:hover,.gm:hover{transform:none}
  .hist-toc a:hover{padding-left:0}
  .rec-scroll{scroll-behavior:auto}
}

/* ---------- records: narrow-screen scroll affordance ---------- */
.rec-hint{display:none;font-size:12px;letter-spacing:.02em;color:rgba(255,255,255,.55);
  margin:-8px 0 12px}
@media (max-width:760px){
  .rec-hint{display:block}
  .rec-scroll{position:relative}
  .rec-table{min-width:520px}
  .rec-table thead th,.rec-table tbody th,.rec-table td{padding:12px 13px}
  .rec-flag{margin-left:0;margin-top:4px;display:table}
}
