:root {
  color-scheme: light;
  font-size: clamp(42px, 12vw, 50px);
  --rose: #dcb6ae;
  --panel: linear-gradient(to right, #cebcb7, #dcb6ae, #ecbfda, #e4bdd0, #efc6ce,
    #c6b6cd, #dec9ae, #c6b6cd, #efc6ce, #e4bdd0, #ecbfda, #dcb6ae, #cebcb7);
  --nav-row: clamp(24px, 6.4vw, 30px);
  --notice: clamp(25px, 6.9vw, 33px);
  --nav-height: calc(var(--notice) + 3 * var(--nav-row) + 40px);
  --section-title: clamp(20px, 5.2vw, 26px);
  --row-font: clamp(14px, 4.8vw, 24px);
  --row-height: clamp(26px, 7.45vw, 36px);
  --line: #c0c0c0;
  --red: #df0000;
  background: #f1f1f1;
}
* { box-sizing: border-box; }
body { margin: 0; color: #000; font: clamp(11px, 2.8vw, 14px) "Microsoft YaHei", Arial, Helvetica, sans-serif; }
main { max-width: 720px; margin: 0 auto; padding-top: 5px; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #173c80; outline-offset: -2px; }
.skip-link { position: fixed; top: 0; left: 0; z-index: 10; padding: 8px; background: white; transform: translateY(-110%); }
.skip-link:focus { transform: none; }
.digest-page :is(.panel, #attributes) { scroll-margin-top: var(--nav-height); }
.digest-page .site-nav { display:flex; flex-wrap:wrap; justify-content:center; gap:3px; padding:2px; margin-bottom:5px; border-radius:5px; background:var(--panel); text-align:center; }
.digest-page .site-nav a { display:grid; flex:1 0 52px; place-items:center; min-height:44px; padding:3px 1px; background:#fff6f4; color:#8c3432; font-size:12px; font-weight:700; }
.digest-page .site-nav a:hover { background:#f4ded9; }

.brand :is(h1,.article-back), .draw-archive .digest-wordmark {
  padding: 4px 8px; margin-bottom: 5px; border-radius: 5px;
  background: var(--panel); color: #b84c48; text-align: center;
  font: italic 700 clamp(20px, 5.6vw, 30px)/1.33 "Microsoft YaHei", Arial, sans-serif;
  overflow-wrap: anywhere;
}
.hero {
  display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center;
  aspect-ratio: 8 / 3; margin-bottom: 5px; padding: 2% 4% 2.5%;
  background: #ee7958; text-align: center;
}
.hero-name {
  color: #ffea65; font: 900 clamp(46px, 18.8vw, 144px)/.98 "Kaiti SC", KaiTi, "Songti SC", serif;
  max-width: 100%; letter-spacing: .13em; padding-inline-start: .13em; text-shadow: .035em .045em #211207;
  -webkit-text-stroke: .035em #211207; paint-order: stroke fill; overflow-wrap: anywhere;
}
.hero.medium .hero-name { font-size: clamp(30px, 11vw, 84px); }
.hero.long .hero-name { font-size: clamp(20px, 5vw, 36px); line-height: 1.12; letter-spacing: 0; padding: 0; }
.hero-edition { color: #fff; font-size: clamp(17px, 5.4vw, 40px); font-weight: 900; letter-spacing: .09em; }
.hero-edition b:first-child { color: #ffec73; }
.hero-edition b:last-child { color: #093e8a; }

.channel-nav { position: sticky; z-index: 4; top: 0; padding: 10px 4px; background: #fff; text-align: center; }
.channel-notice {
  display: block; margin: 0 4px 10px 5px; padding: 0 5px; border-radius: 20px;
  background: var(--rose); color: #7725c6; font: italic clamp(12px, 3.2vw, 16px)/var(--notice) Arial, sans-serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.channel-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px clamp(5px, 1.1vw, 11px); padding-inline: 3px; }
.channel-links a {
  display: grid; place-items: center; min-height: var(--nav-row); padding-inline: 1px;
  border-radius: 20px; background: var(--rose); line-height: 1.1;
}
.channel-links a:is(:hover, [aria-current="location"]) { background: #84c26a; }

.panel { margin: 5px 0 0; padding: 3px; border-radius: 5px; background: var(--panel); }
.panel-title {
  font-size: var(--section-title); line-height: 1.35; min-height: 35px;
  display: grid; align-content: center; text-align: center; overflow-wrap: anywhere;
}
.panel-title a:hover, .channel-notice:hover { text-decoration: underline; }
.directory .panel-title { background: linear-gradient(transparent, #fff9); }
.shortcuts { display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; }
.shortcuts a {
  display: grid; place-items: center; min-height: 35px; border: 1px solid #ededed;
  font-size: clamp(16px, 4.4vw, 20px); font-weight: 700;
}
.shortcuts a:hover { background: #f5ebef; }
.draw-box { padding-bottom: 5px; }
.draw-box #own-draw { background: #fff; padding-bottom: 5px; }
.draw-box .draw-status { flex-wrap: wrap; }

.archive-row {
  min-height: var(--row-height); padding: 2px 4px; border-top: 1px solid var(--line);
  background: #fff; text-align: center; font-size: var(--row-font); line-height: 1.32; font-weight: 700;
  overflow-wrap: anywhere;
}
.row-title { color: #008a00; }
.pick { display: inline-block; }
.pick.ink, .published-result b { color: var(--red); }
.pending-result { white-space: nowrap; }
.pending-result { color: #444; }
.feature:is(.layout-single, .layout-seven, .layout-kill-ten) .archive-row { padding: 0; border: 0; }
.material-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: #000; font-weight: 700; }
.material-table td { padding: 2px 4px; height: 40px; border: 1px solid #676767; }
.layout-single .material-table { color: #00fff5; font-size: clamp(14px, 4.1vw, 16px); text-align: center; }
.layout-single .material-table td { border-color: #a0a0a0; }
.layout-single td:not([colspan]) { padding-inline: 0; text-align: start; }
.layout-single td:first-child:not([colspan]) { width: 47%; }
.layout-single .single-lead .pick { font-size: 1.5em; }
.material-table .byline td { background: #ee0808; color: #fffc00; }
.layout-single .byline td { background: #f00; font-size: clamp(15px, 4.8vw, 18.667px); }
.layout-seven .material-table, .layout-kill-ten .material-table { font-size: clamp(12px, 3.4vw, 20px); }
:is(.layout-seven, .layout-kill-ten) td:first-child:not([colspan]) { width: 24%; }
:is(.layout-seven, .layout-kill-ten) td:nth-child(3) { width: 24%; }
.layout-seven td:nth-child(2) { color: #fffc00; }
.layout-seven td:is(:first-child,:nth-child(3)):not([colspan]) { background: #0707d8; color: #b4ff64; }
.layout-kill-ten td { color: #75ff40; }
.layout-kill-ten td:nth-child(2), .number-line { color: #ffc581; }
:is(.layout-six, .layout-numbers24, .layout-numbers8) .archive-row { background: #000; color: #ffdc32; font-size: clamp(14px, 4.1vw, 20px); }
:is(.layout-six, .layout-numbers24, .layout-numbers8) .row-title { color: #ff5ce3; }
:is(.material-table, .layout-six, .layout-numbers24, .layout-numbers8) :is(.pick.ink, .published-result b) { color: #ff6666; }
:is(.material-table, .layout-six, .layout-numbers24, .layout-numbers8) .pending-result { color: inherit; }
.pair-grid { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); justify-content: center; gap: 0 6px; color: #82ff57; }
.pair-grid > span { white-space: nowrap; }
.number-line { letter-spacing: .015em; }

.post-group ul, .print-index ul { list-style: none; margin: 0; padding: 0; }
.post-group:not(.selected-posts) .panel-title { font-size: 20px; }
.post-group li, .print-index li { border: 1px solid var(--line); background: #fff; }
.post-group li + li { border-top: 0; }
.post-group a, .print-index a {
  display: grid; align-content: center; min-height: 40px; padding: 3px 6px; text-align:center;
  overflow-wrap: anywhere; font-size: clamp(14px, 4.6vw, 20px); line-height: 1.25; font-weight: 700;
}
.post-group a { display: block; min-height: 40px; align-content: center; }
.post-group a:hover, .print-index a:hover { text-decoration: underline; }
.selected-posts li { background: #00ff14; }
.selected-posts a { font-size: clamp(14px, 4.65vw, 18.67px); }
.print-index ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.print-index a { font-size: clamp(14px, 4.1vw, 18px); }
.print-index li:last-child { grid-column: 1 / -1; }
footer.panel { padding: 11px 6px; text-align: center; font-weight: 700; }

#random-picks { padding: 12px 8px 20px; background: #fff; text-align: center; font-size: 15px; }
#random-picks p { margin-bottom: 6px; }
#random-picks button { padding: 6px 12px; margin: 7px 0; border: 0; border-radius: 4px; background: #168740; color: white; }
#random-picks button[data-reset] { background: #a82d2b; }
.pick-balls {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-width: 530px;
  margin: 9px auto; padding: 0; list-style: none;
}
.pick-balls li {
  display: grid; place-items: center; width: clamp(24px, 7vw, 34px); aspect-ratio: 1; border-radius: 50%;
  background: #ededed; color: #000; font-weight: 700; border: 1px solid #ddd;
}
.pick-balls .red { color: #ae1717; border-color: #d2393c; }
.pick-balls .green { color: #15752f; border-color: #37a54e; }
.pick-balls .blue { color: #134e99; border-color: #3081d1; }
.pick-balls .selected { background: #ffdd2b; border-color: #745e00; color: #222; }
#random-picks output { display: inline-block; min-height: 1.4em; font-weight: 700; }
#random-picks > div { margin-bottom: 10px; }

.back-top { position: fixed; z-index: 5; bottom: 28%; right: 2%; width: clamp(31px, 8vw, 40px); border-radius: 50%; overflow: hidden; }
.back-top img { display: block; width: 100%; height: auto; }
.article-page { min-height: 100vh; font-size: 16px; }
.brand .article-back { display: block; }
.article-column {
  margin-top: 5px; padding: 3px; border: 1px solid var(--rose); border-radius: 5px; background: #fff;
}
.article-column header { padding: 12px 10px 10px; background: var(--panel); line-height: 1.75; }
.article-column h1 { font-size: 16px; font-weight: 400; }
.article-column h1 b { color: #a94143; }
.article-column .archive-row { padding: 4px 2px; min-height: 29px; text-align: start; font-size: 16px; font-weight: 400; border: 0; }
.article-column.short-post .row-title:not(.edited-title) { display: none; }
.article-column .pair-grid { justify-content: start; }
.article-column.layout-six .archive-row, .article-column.layout-numbers24 .archive-row,
.article-column.layout-numbers8 .archive-row { padding-inline: 6px; }
.empty { padding: 18px 8px; background: #fff; text-align: center; }

@media (max-width: 460px) {
  .brand :is(h1,.article-back), .draw-archive .digest-wordmark { padding-block: 3px; }
  .article-column :is(.archive-row, h1) { font-size: 14px; }
  .pair-grid { gap: 0 3px; }
  .pair-grid > span { white-space: normal; }
  .layout-seven td:nth-child(3), .layout-kill-ten td:nth-child(3) { width: 27%; }
}
.draw-archive[data-draw-edition="13"] {
  --archive-accent:#713551;
  --archive-tint:#f2d9d8;
  --archive-rule:var(--rose);
  --archive-corner:5px;
  --archive-heading-color:#000;
  --archive-heading-background:var(--panel);
}
.draw-archive #main-content { width:min(100%,720px); margin:auto; padding-top:5px; }
.draw-archive .digest-wordmark { color:#8c3432; }

.draw-archive .history-feeds { gap:3px; padding:3px; border-radius:5px; background:var(--panel); }
.draw-archive .history-feeds a { border-radius:3px; background:#fff6f4; color:#8c3432; font-weight:700; }
.draw-archive .history-feeds a[aria-current="page"] { background:#8c3432; color:#fff; }
.draw-archive .history-state { padding:10px 12px; border-radius:var(--archive-corner); background:var(--archive-tint); color:var(--archive-accent); }
