/* The series page (/series/, 2026-11-08). Colours, fonts, buttons and the header come from /assets/lmi.css; every
   class here starts with s- so nothing clashes. */
:root { --s-tile: #16100A; }
:root[data-theme="dark"] { --s-tile: #000000; }
.s-page main { display: block; padding-bottom: 32px; }
.s-page #app a, .s-footer a { text-decoration: none; }
.s-page #app a:hover, .s-footer a:hover { text-decoration: underline; }
.s-page #app .btn:hover { text-decoration: none; }
.s-loading { padding: 40px 0; }

/* Sudoku Mahabharat | Puzzle Ramayan */
.s-switch { display: inline-flex; gap: 4px; margin-top: 22px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.s-switch a { padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--fg2); white-space: nowrap; }
.s-page #app .s-switch a:hover { text-decoration: none; color: var(--fg); }
.s-switch a[aria-current] { background: var(--bar); color: var(--bar-fg); }
.s-page #app .s-switch a[aria-current]:hover { color: var(--bar-fg); }

/* The series: logo tile and what it is */
.s-hero { display: flex; align-items: center; gap: 24px; margin-top: 22px; }
.s-tile { flex: none; background: var(--s-tile); border-radius: 18px; padding: 22px 26px; }
.s-tile img { display: block; height: 64px; width: auto; }
.s-hero h1 { margin: 0; font: 600 34px/1.15 var(--ff-display); }
.s-intro { margin: 8px 0 0; font-size: 17px; color: var(--fg2); max-width: 36em; }

/* How it works: three steps in a row, joined by a line (stacked on a phone) */
.s-path { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; position: relative; }
.s-path li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; }
.s-path li:not(:last-child)::after { content: ''; position: absolute; top: 33px; right: -15px; width: 16px; height: 2px; background: var(--acc); }
.s-pn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 700; font-size: 15px; }
.s-path b { display: block; margin-top: 12px; font: 600 19px/1.2 var(--ff-display); }
.s-cta { margin-top: 14px; }
.s-path p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--fg2); }
.s-path li:last-child .s-pn { background: var(--bar); box-shadow: 0 0 0 2px var(--acc); }

/* Sections */
.s-sec { margin-top: 34px; }
.s-sec h2 { margin: 0 0 12px; font: 600 24px var(--ff-display); }
.s-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.s-head h2 { margin: 0; }
.s-links { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; font-size: 16px; }
.s-links a { color: var(--acc-ink); }
.s-years { display: flex; gap: 14px; font-size: 15px; }
.s-years a { color: var(--acc-ink); font-weight: 600; }

/* Rounds */
.s-rounds { padding: 4px 18px; }
.s-round { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.s-round:last-child { border-bottom: 0; }
.s-rno { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--fg2); font-size: 13px; font-weight: 700; }
.s-grow { flex: 1; min-width: 0; }
.s-rname { display: block; font-weight: 600; font-size: 16px; color: var(--fg); }
.s-round small { display: block; color: var(--fg2); font-size: 13px; margin-top: 2px; }
.s-side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.s-top3 { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: 14px; counter-reset: t; }
.s-top3 li { counter-increment: t; white-space: nowrap; }
.s-top3 li::before { content: counter(t); color: var(--acc); font-weight: 700; margin-right: 5px; }
.s-top3 a { color: var(--fg); }
.s-live { font-size: 13px; font-weight: 700; color: var(--ok); }
.s-round .btn { height: 34px; padding: 0 14px; font-size: 13px; }

/* India | All players */
.s-tabs { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.s-tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font: 600 14px var(--ff); color: var(--fg2); cursor: pointer; }
.s-tabs button[aria-selected="true"] { background: var(--bar); color: var(--bar-fg); }

/* Tables: standings and winners. Wide tables scroll inside their card, never the page. */
.s-table { overflow-x: auto; }
.s-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.s-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--fg2); text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.s-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.s-table tr:last-child td { border-bottom: 0; }
.s-table .s-num { text-align: right; font-variant-numeric: tabular-nums; }
.s-table th.s-num { text-align: right; }
.s-who a { color: var(--fg); font-weight: 500; }
.s-total { font-weight: 700; }
.s-drop { color: var(--fg2); text-decoration: line-through; }
.s-me td { background: var(--current); }
.s-gap td { text-align: center; color: var(--fg2); padding: 2px; }
.s-rule { margin: 10px 0 0; font-size: 13px; color: var(--fg2); }
.s-more { margin-top: 10px; }
.s-win td:first-child { font-weight: 600; }

/* Footer */
.s-footer { border-top: 1px solid var(--line); padding: 26px 0 36px; font-size: 14px; color: var(--fg2); }
.s-fname { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font: 600 18px var(--ff-display); }
.s-fname img { width: 20px; height: 24px; display: block; }
.s-footer p { margin: 10px 0 0; }
.s-legal { font-size: 13px; }

@media (max-width: 700px) {
  .s-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .s-tile { padding: 16px 20px; }
  .s-tile img { height: 48px; }
  .s-hero h1 { font-size: 28px; }
  .s-switch { display: flex; }
  .s-path { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .s-path li:not(:last-child)::after { top: auto; bottom: -13px; right: auto; left: 32px; width: 2px; height: 12px; }
  .s-switch a { flex: 1; text-align: center; padding: 7px 8px; }
  .s-round { flex-wrap: wrap; }
  .s-side { width: 100%; justify-content: space-between; padding-left: 48px; }
  .s-rounds { padding: 4px 14px; }
  /* Phone: rank, player and total only, so the total is always in view */
  .s-table .s-rd { display: none; }
  .s-table td.s-who { white-space: normal; }
}
