/*
 * 热读 — /hot/, the site's own attention ranking over three windows.
 *
 * HAND-WRITTEN, NOT GENERATED. chrome.css, submit.css, fanqiang.css,
 * after-the-wall.css, home-skins.css, source-profile.css and wenku-skins.css
 * are all built by scripts/build-*.sh and an edit here would be reverted by
 * the next build (scripts/check-builds-idempotent.sh exists because that
 * happened twice on 2026-08-30). This page's stylesheet is its own file for
 * that reason as much as for weight: it is loaded only on /hot/.
 *
 * EXTENDS THE PAPER, DOES NOT RESTATE IT. Every colour is an existing token
 * (--ink, --ink-2, --rule, --rule-strong, --accent, --bg), so dark mode comes
 * free — theme-dark.css re-binds those ten names site-wide and this file
 * inherits the rebinding. The --mh-* family is FRONT-PAGE ONLY and must not
 * appear here. Fallbacks mirror chrome.css so a token-less context still
 * renders.
 *
 * THE RANGE SWITCH IS A RADIO GROUP AND NOTHING ELSE. Three inputs sit as
 * direct children of .mh-hot, before .hot-tabs and .hot-panes, and every rule
 * below reaches them with `:checked ~`. Wrapping the inputs in ANYTHING breaks
 * the sibling combinator and the whole page stops switching, silently — the
 * markup renders, the tabs render, nothing happens on click. There is no
 * JavaScript on this page.
 *
 * THE THREE WINDOWS ARE WRITTEN OUT. 24 / 168 / 720 come from
 * HotIndexData::RANGES; the id and the class are derived from the hour count
 * in PHP so the two halves cannot drift on a rename, but adding a FOURTH range
 * needs a rule triplet here too. There is no selector that covers "whichever
 * one is checked" without naming them.
 *
 * TWO COLUMNS BY MULTICOL, NOT GRID, AND THAT IS THE WHOLE POINT. A grid with
 * fixed rows fills column one to twelve and leaves column two empty whenever a
 * range is short — the blank space the owner has objected to three times.
 * Multicol balances, so nine rows come out five and four rather than nine and
 * nothing.
 *
 * NO CARDS, NO SHADOWS, NO RADIUS. The desks are hairline-ruled lists and this
 * is one of them.
 *
 * PHONE TIER IS LAST IN THE FILE AND MUST STAY LAST — chrome.css, deep.css and
 * home-rescue.css guard theirs the same way. Append new rules ABOVE the banner.
 */

.mh-hot {
  /* A Bricks custom element renders inside a flex child that claims no width
     of its own; max-width alone would cap a width never claimed (the /team/
     page shipped ten different index widths before this was understood). */
  width: 100%;
  max-width: 60em;
  margin: 0 auto;
  padding: 0 0 8px;
}

/* ---------------------------------------------------------------- masthead */

.hot-k {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink, #1a1a18);
}

.hot-k .zh {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink, #1a1a18);
}

.hot-k .en {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-2, #5c5c56);
}

.hot-lede {
  margin: 14px 0 0;
  max-width: 40em;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2, #5c5c56);
}

/* ------------------------------------------------------------------- tabs */

/* Off-screen, never display:none — a hidden input is not focusable, and the
   tabs would stop working for anyone using a keyboard. */
.hot-r {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hot-tabs {
  display: flex;
  gap: 26px;
  margin: 20px 0 0;
  border-bottom: 1px solid var(--rule, #e3e1da);
}

.hot-tab {
  padding: 0 0 9px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-2, #5c5c56);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.hot-tab:hover { color: var(--ink, #1a1a18); }

#mh-hot-r24:checked ~ .hot-tabs .hot-tab-24,
#mh-hot-r168:checked ~ .hot-tabs .hot-tab-168,
#mh-hot-r720:checked ~ .hot-tabs .hot-tab-720 {
  color: var(--ink, #1a1a18);
  border-bottom-color: var(--accent, #1e6b4e);
}

#mh-hot-r24:focus-visible ~ .hot-tabs .hot-tab-24,
#mh-hot-r168:focus-visible ~ .hot-tabs .hot-tab-168,
#mh-hot-r720:focus-visible ~ .hot-tabs .hot-tab-720 {
  outline: 2px solid var(--accent, #1e6b4e);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ lists */

.hot-panes { margin-top: 4px; }

.hot-list {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hot;
}

#mh-hot-r24:checked ~ .hot-panes .hot-list-24,
#mh-hot-r168:checked ~ .hot-panes .hot-list-168,
#mh-hot-r720:checked ~ .hot-panes .hot-list-720 {
  display: block;
  -webkit-columns: 2;
  columns: 2;
  -webkit-column-gap: 52px;
  column-gap: 52px;
}

.hot-list li {
  position: relative;
  padding: 15px 0 14px 40px;
  border-bottom: 1px solid var(--rule, #e3e1da);
  -webkit-column-break-inside: avoid;
  break-inside: avoid;
}

/* The rank. A counter rather than the <ol> marker so the figure can carry the
   column's only weight; the element is still an <ol>, so a screen reader is
   told this is a ranking whatever the marker looks like. */
.hot-list li::before {
  counter-increment: hot;
  content: counter(hot);
  position: absolute;
  left: 0;
  top: 15px;
  width: 28px;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--rule-strong, #c9c6bc);
}

.hot-list li:nth-child(-n+3)::before { color: var(--accent, #1e6b4e); }

/* The row wrapper carries the chrome so the anchor can shrink to its text —
   owner ruling 2026-08-15, verified by hit-test: the dead space after a short
   headline stays dead. */
.hot-row { display: block; }

.hot-t {
  color: var(--ink, #1a1a18);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.hot-t:hover,
.hot-t:focus-visible { border-bottom-color: var(--accent, #1e6b4e); }

.hot-m {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2, #5c5c56);
}

.hot-m > span + span::before {
  content: "·";
  margin: 0 6px;
  color: var(--rule-strong, #c9c6bc);
}

.hot-desk { font-weight: 600; }

/* -------------------------------------------------------------------- foot */

.hot-note {
  margin: 26px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule, #e3e1da);
  max-width: 44em;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-2, #5c5c56);
}

/* ------------------------------------------------------------------ */
/* PHONE TIER — KEEP LAST. Append new rules ABOVE this banner.         */
/* ------------------------------------------------------------------ */
@media (max-width: 760px) {
  #mh-hot-r24:checked ~ .hot-panes .hot-list-24,
  #mh-hot-r168:checked ~ .hot-panes .hot-list-168,
  #mh-hot-r720:checked ~ .hot-panes .hot-list-720 {
    -webkit-columns: 1;
    columns: 1;
  }

  .hot-k .zh { font-size: 22px; }
  .hot-lede { font-size: 14px; }
  .hot-tabs { gap: 20px; }
  .hot-tab { font-size: 15px; }
  .hot-list li { padding: 13px 0 12px 34px; }
  .hot-list li::before { top: 13px; width: 24px; font-size: 14px; }
  .hot-t { font-size: 15.5px; }
}
