/* LineClassroom site styles — sports-network layout, original branding */
:root {
  --paper: #f4efe6;
  --paper-2: #ece6db;
  --ink: #1c1914;
  --ink-soft: #4a453c;
  --line: #d5cec2;
  --forest: #1f4336;
  --forest-2: #16352a;
  --forest-3: #0c1813;
  --gold: #b8892d;
  --gold-2: #e2c16a;
  --card: #fffdf8;
  --danger: #7a2e24;
  --focus: #1f4336;
  --max: 1240px;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}
a { color: var(--forest); }
a:hover { color: var(--forest-2); }
img, svg { max-width: 100%; height: auto; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: .4rem .7rem;
}

/* Age gate */
#age-gate {
  position: fixed;
  inset: 0;
  background: #14110d;
  color: #f4efe6;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
body.age-ok #age-gate { display: none; }
body.age-blocked #site { display: none; }
body.age-blocked #age-gate .gate-choice { display: none; }
body.age-blocked #age-gate .gate-under { display: block; }
#age-gate .gate-under { display: none; }
.gate-card {
  max-width: 34rem;
  background: #1d1a15;
  border: 1px solid #3a342b;
  padding: 2rem 1.75rem;
}
.gate-card h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.8rem;
  margin: 0 0 .8rem;
}
.gate-card p { color: #d9d2c6; }
.gate-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: #f7f3ea;
  font: inherit;
  font-weight: 600;
  padding: .55rem 1rem;
  cursor: pointer;
  text-decoration: none;
  border-radius: 2px;
}
.btn:hover { background: var(--forest-2); color: #fff; }
.btn.secondary {
  background: transparent;
  color: #f4efe6;
  border-color: #8a8173;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  background: #c8c1b4;
  border-color: #c8c1b4;
  color: #5c564c;
  cursor: not-allowed;
  pointer-events: none;
}
.btn.ghost {
  background: transparent;
  color: #f0e6c8;
  border-color: #f0e6c8;
}
.btn.ghost.ink {
  color: var(--forest);
  border-color: var(--forest);
}

/* Dark top nav */
header.site {
  background: var(--forest-3);
  color: #f4efe6;
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-dark { background: var(--forest-3); border-bottom: 1px solid #1e332a; }
.bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: #f7f3ea;
  flex-shrink: 0;
  padding: .55rem 0;
}
.brand strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #fff;
}
.brand span {
  display: block;
  font-size: .7rem;
  color: #cfc6b4;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
nav.primary {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
nav.primary::-webkit-scrollbar { display: none; }
nav.primary a {
  color: #d9d2c6;
  text-decoration: none;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0 .95rem;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
nav.primary a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--gold);
}
nav.primary a:hover { color: #fff; text-decoration: none; }

/* Score / stat ticker */
.ticker {
  display: flex;
  align-items: stretch;
  background: #08110d url("/assets/img/ticker-bg.webp") center / cover no-repeat;
  color: #f4efe6;
  min-height: 42px;
  border-top: 1px solid rgba(184, 137, 45, .35);
  border-bottom: 1px solid #0a0f0c;
  position: relative;
}
.ticker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,17,13,.88) 0%, rgba(8,17,13,.72) 18%, rgba(8,17,13,.55) 100%);
  pointer-events: none;
}
.ticker-label {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: var(--gold);
  color: #1c1914;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 0 .85rem;
  display: flex;
  align-items: center;
}
.ticker-viewport {
  position: relative;
  z-index: 1;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 42px;
}
.ticker-track.is-ready { animation: ticker-scroll 90s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  padding: 0 1.15rem;
  border-right: 1px solid rgba(240, 230, 200, .18);
  white-space: nowrap;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.ticker-flag {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.ticker-main { font-weight: 700; color: #fff; }
.ticker-sub { color: #cfc6b4; font-size: .75rem; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track.is-ready { animation: none; }
  .ticker-viewport { overflow-x: auto; }
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3.5rem;
}
.kicker, p.kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 .5rem;
}
h1, h2, h3, .hero h1 {
  font-family: var(--serif);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); }

/* Homepage top story + headlines */
.top-row {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(240px, 1fr);
  gap: 1.1rem;
  margin-bottom: .4rem;
}
.top-story {
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff;
  min-height: 420px;
  overflow: hidden;
  background: #0c1813;
}
.top-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  display: block;
}
.top-story .overlay {
  position: relative;
  z-index: 1;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(8,17,13,.08) 20%, rgba(8,17,13,.82) 78%, rgba(8,17,13,.94) 100%);
}
.top-story h1 {
  font-size: clamp(1.8rem, 4vw, 2.85rem);
  margin: 0 0 .55rem;
  font-weight: 650;
  color: #fff;
  max-width: 22ch;
}
.top-story .lede { color: #e8e1d4; font-size: 1.05rem; margin: 0 0 1rem; max-width: 42rem; }
.top-story .kicker { color: var(--gold-2); }

.headlines {
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.headlines h2 {
  margin: 0;
  padding: .7rem 1rem;
  background: var(--forest);
  color: #f7f3ea;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.headlines ol { list-style: none; margin: 0; padding: 0; flex: 1; }
.headlines li { border-bottom: 1px solid var(--line); }
.headlines li:last-child { border-bottom: 0; }
.headlines a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: .72rem 1rem;
}
.headlines a:hover { background: var(--paper-2); color: var(--forest-2); }
.headlines .hk {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .15rem;
}
.headlines .ht {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}

/* Section headers with a thumbnail */
.section-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  border-bottom: 3px solid var(--forest);
  margin: 1.8rem 0 1rem;
  padding-bottom: .45rem;
}
.section-head img {
  width: 76px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
  background: #111;
}
.section-head h2 {
  flex: 1;
  margin: 0;
  font-size: 1.45rem;
}
.section-head a {
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}
.section-head a:hover { text-decoration: underline; }

/* Photo news grid + video-style lesson cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.story-card {
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}
a.story-card { color: var(--ink); }
a.story-card:hover { color: var(--ink); }
a.story-card:hover .story-card-title { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c1813;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.play i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(12, 24, 19, .72);
  border: 2px solid #f0e6c8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.play i::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #f0e6c8;
  margin-left: 3px;
}
.story-card-body { padding: .85rem 1rem 1.05rem; flex: 1; display: flex; flex-direction: column; }
.story-card-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 .35rem;
  line-height: 1.25;
}
.story-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.15rem 1.15rem 1.25rem;
}
.card h2, .card h3 { margin-top: 0; }
.note, .rg, .callout {
  border-left: 3px solid var(--gold);
  background: var(--paper-2);
  padding: .9rem 1rem;
  margin: 1.2rem 0;
}
.rg { border-left-color: var(--danger); }
.muted { color: var(--ink-soft); }
.tiny { font-size: .88rem; }
ol.plain, ul.plain { padding-left: 1.2rem; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size: .95rem;
}
th, td { border-bottom: 1px solid var(--line); padding: .45rem .55rem; text-align: left; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #1c1914;
  color: #f4efe6;
  padding: .9rem 1rem;
  overflow-x: auto;
  font-size: .92rem;
}
.calc {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.2rem;
  margin: 1.2rem 0 1.8rem;
}
.calc h2 { margin-top: 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem 1rem; }
label { display: block; font-weight: 600; font-size: .88rem; }
input, select {
  width: 100%;
  margin-top: .25rem;
  padding: .45rem .5rem;
  border: 1px solid #b9b1a4;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.output {
  margin-top: 1rem;
  padding: .8rem 0 0;
  border-top: 1px solid var(--line);
}
.output strong { font-family: var(--serif); font-size: 1.35rem; }
.tabs { display: flex; gap: .4rem; margin: 0 0 1rem; }
.tabs button {
  font: inherit;
  background: transparent;
  border: 1px solid var(--line);
  padding: .35rem .8rem;
  cursor: pointer;
  color: var(--ink);
}
.tabs button[aria-selected="true"] {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.standings { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }

/* Inner page hero banner */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  margin: -1.25rem -1.25rem 1.6rem;
  background: #0c1813;
  color: #f4efe6;
}
.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  display: block;
}
.page-hero .inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.4rem 1.25rem 1.8rem;
  background: linear-gradient(180deg, rgba(8,17,13,.25) 0%, rgba(8,17,13,.78) 100%);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.page-hero h1 { margin: 0 0 .4rem; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; }
.page-hero .lede { color: #e8e1d4; margin: 0; }
.page-hero .kicker { color: var(--gold-2); }

/* Lesson article lead image */
.story-lead {
  margin: 0 0 1.2rem;
  background: #0c1813;
}
.story-lead img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.crumb { margin: 0 0 .8rem; font-size: .95rem; }

/* Dense footer */
footer.site {
  border-top: 3px solid var(--gold);
  background: #0c1813;
  color: #e8e1d4;
  padding: 2rem 1.25rem 2.4rem;
}
footer.site a { color: #f0e6c8; }
footer.site .wrap { max-width: var(--max); margin: 0 auto; }
footer.site .rg-line { font-weight: 600; margin: 0 0 1.1rem; color: #fff; }
.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem 1.5rem;
  margin: 0 0 1.3rem;
}
.foot-col h2 {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 .55rem;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0 0 .35rem; }
.foot-col a { text-decoration: none; font-size: .92rem; }
.foot-col a:hover { text-decoration: underline; }
.foot-legal { border-top: 1px solid #2a3d34; padding-top: 1rem; }
.foot-legal p { margin: 0 0 .6rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .8rem 0; }
.is-hidden, [hidden] { display: none !important; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.price { background: var(--card); border: 1px solid var(--line); padding: 1.4rem; display: flex; flex-direction: column; }
.price .amt { font-family: var(--serif); font-size: 2.2rem; margin: .2rem 0; }
.price ul { padding-left: 1.1rem; flex: 1; }
.soon {
  display: inline-block;
  margin-top: .3rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.score { font-variant-numeric: tabular-nums; white-space: nowrap; }

.credit-list { padding-left: 1.2rem; }
.credit-list li { margin: 0 0 .7rem; }

@media (max-width: 900px) {
  .top-row, .news-grid, .foot-grid { grid-template-columns: 1fr 1fr; }
  .top-story, .top-story .overlay { min-height: 340px; }
}
@media (max-width: 720px) {
  .bar { flex-direction: column; align-items: flex-start; gap: 0; padding: 0; min-height: 0; }
  .brand { padding: .7rem 1.25rem .35rem; }
  nav.primary { width: 100%; padding: 0 .4rem; border-top: 1px solid #1e332a; }
  nav.primary a { padding: .7rem .7rem; }
  .top-row, .news-grid, .foot-grid { grid-template-columns: 1fr; }
  .top-story, .top-story .overlay { min-height: 320px; }
  .page-hero { margin-left: -1.25rem; margin-right: -1.25rem; }
  .section-head a { display: none; }
}
