/* Use the existing paper, ink and numeric typefaces in both themes. */
.forecast .ledger-top { margin: 0; }
.forecast .ledger-top .quiet-link { min-height: 30px; }
.edition-focus {
  background: var(--sheet); color: var(--ink); border: 1px solid var(--paper-edge);
  border-radius: 16px; box-shadow: var(--skin-shadow);
}
.edition-focus h2 { font-size: clamp(17px,1.7vw,22px); line-height: 1.4; }
.forecast .quiet-link:is(:hover,:focus-visible) { text-decoration: underline; }
.edition-focus { padding: clamp(16px,2vw,28px); margin-block: 20px; }
.edition-focus dl { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 12px 0 0; }
.edition-focus dt { color: var(--secondary); font-size: 14px; }
.edition-focus dd { margin: 4px 0; font: 650 24px/1.1 var(--numerals); }
.edition-focus dd a { color: var(--sum); }
.edition-focus dd a:is(:hover,:focus-visible) { text-decoration: underline; }
.edition-focus small { font: 500 13px/1.4 var(--cn); color: var(--secondary); }

.directory-page .directory-main.pick-page {
  --face: #edf3ef; --stub: #e2ebe6; --engraving: #527c70;
  --big: #9b3542; --small: #355f98; --odd: #694985; --even: #286652;
  --inset: clamp(18px, 3.4vw, 42px);
  max-width: 1000px; margin-inline: auto;
}
[data-theme="night"] .directory-main.pick-page {
  --face: #20312f; --stub: #1c2b2a; --engraving: #b0cfc1;
  --big: #ffa0a9; --small: #a1c5ff; --odd: #d4b7f5; --even: #96dcc1;
}
.pick-page .directory-heading { align-items: center; margin-block-end: clamp(16px,2vw,24px); }
.pick-page .prediction-board-link {
  display: inline-flex; align-items: center; gap: 9px; flex: none; min-height: 44px;
  padding-inline: 8px 4px; color: var(--sum); font-size: 14px; font-weight: 600;
}
.prediction-board-link::after, .pick-rules summary b::after {
  content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.pick-page .prediction-board-link:is(:hover,:focus-visible), .pick-rules summary:is(:hover,:focus-visible) b {
  text-decoration: underline; text-underline-offset: 4px;
}
.pick-page #pick-sheet { display: grid; gap: clamp(23px,3vw,36px); }
.pick-ticket {
  min-width: 0; overflow: hidden; border: 1px solid color-mix(in srgb,var(--engraving) 29%,var(--sheet));
  border-radius: 16px; background: var(--sheet); box-shadow: var(--skin-shadow);
}
.pick-current { display: grid; grid-template-columns: minmax(0,1fr) minmax(205px,31%); }
.pick-face {
  position: relative; isolation: isolate; overflow: hidden; padding: 24px var(--inset) 26px;
  background: linear-gradient(113deg,color-mix(in srgb,var(--face) 86%,var(--sheet)),var(--face) 74%);
}
.pick-ident { display: flex; align-items: baseline; gap: 10px 15px; flex-wrap: wrap; }
.pick-ident h2 { font: 650 15px/1.4 var(--cn); }
.pick-period { display: inline-flex; align-items: baseline; gap: .22em; color: var(--secondary); font-size: 13px; }
.pick-period > span { color: var(--ink); font: 600 19px/1 var(--numerals); font-variant-numeric: tabular-nums; }
.pick-tail { font: italic 700 1.16em/1 var(--numerals); color: var(--title-ink); }
.pick-display { width: max-content; margin-block-start: 17px; }
.pick-choice, .pick-meaning { display: grid; grid-template-columns: repeat(2,minmax(62px,1fr)); column-gap: clamp(8px,1.3vw,17px); text-align: center; }
.pick-page [data-value="大"] { --category-ink: var(--big); }
.pick-page [data-value="小"] { --category-ink: var(--small); }
.pick-page [data-value="单"] { --category-ink: var(--odd); }
.pick-page [data-value="双"] { --category-ink: var(--even); }
.pick-choice [data-value] { color: var(--category-ink); font: 680 clamp(47px,5.2vw,65px)/1.13 "Noto Marks",var(--cn); }
.pick-meaning { margin-top: 7px; color: var(--secondary); font: 550 13px/1.4 var(--cn); }
.pick-choice.pick-wait { display: block; min-height: 72px; color: var(--secondary); font: 600 26px/1.5 var(--cn); }
/* Engraved brand mark on the unprinted part of the ticket. */
.pick-seal {
  position: absolute; z-index: -1; pointer-events: none; top: 50%; right: clamp(20px,7%,64px);
  width: clamp(94px,11vw,139px); aspect-ratio: 1; transform: translateY(-50%) rotate(-12deg);
  border-radius: 50%; color: var(--engraving); opacity: .43;
  border: 1px solid currentColor; outline: 1px solid color-mix(in srgb,currentColor 43%,transparent); outline-offset: 4px;
  background: repeating-conic-gradient(from 3deg,transparent 0 .4deg,currentColor .8deg 1.5deg,transparent 2deg 7.5deg);
}
.pick-seal::before {
  content: ""; position: absolute; inset: 7%; border: 1px solid currentColor; border-radius: 50%;
  background: var(--face); box-shadow: inset 0 0 0 3px var(--face),inset 0 0 0 4px currentColor;
}
.pick-seal::after { content: ""; position: absolute; inset: 31%; background: currentColor; mask: url("maple.svg") center/contain no-repeat; }
.pick-publication {
  position: relative; display: grid; align-content: center; justify-items: start; gap: 7px; min-width: 0;
  padding: 22px clamp(18px,2.8vw,36px); background: var(--stub);
}
.pick-publication::before {
  content: ""; position: absolute; inset: 10px auto 10px 0; width: 1px;
  background: repeating-linear-gradient(to bottom,color-mix(in srgb,var(--engraving) 58%,transparent) 0 3px,transparent 3px 7px);
}
.pick-time-label, .pick-publication time > span { color: var(--secondary); font: 500 13px/1.4 var(--cn); }
.pick-publication time { display: grid; gap: 7px; }
.pick-publication time strong { color: var(--ink); font: 600 clamp(29px,3vw,38px)/1 var(--numerals); font-variant-numeric: tabular-nums; }
.pick-publication time small { margin-inline-start: 3px; font: inherit; }
.pick-publication p { max-width: 14em; font-size: 14px; color: var(--secondary); }
.pick-rules { border-top: 1px solid var(--hair); color: var(--secondary); }
.pick-rules summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px;
  padding: 7px var(--inset); list-style: none; font: 500 13px/1.5 var(--cn); touch-action: manipulation;
}
.pick-rules summary::-webkit-details-marker { display: none; }
.pick-rules summary b { display: inline-flex; align-items: center; gap: 8px; color: var(--sum); font-weight: 600; white-space: nowrap; }
.pick-rules summary b::after { width: 6px; height: 6px; transform: translateY(-2px) rotate(135deg); }
.pick-rules[open] summary b::after { transform: translateY(1px) rotate(-45deg); }
.pick-rules summary:focus-visible { outline-offset: -3px; }
.pick-rules p { padding: 0 var(--inset) 13px; max-width: 56em; font-size: 14px; line-height: 1.65; }

.pick-history { min-width: 0; }
.pick-history-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; }
.pick-history-heading h2 { color: var(--title-ink); font: 680 clamp(19px,2.1vw,25px)/1.45 var(--cn); letter-spacing: -.035em; }
.pick-history-heading > span { color: var(--secondary); font-size: 13px; white-space: nowrap; }
.pick-history-heading b { color: var(--ink); font: 600 17px/1 var(--numerals); }
.pick-page .pick-table { border-collapse: collapse; table-layout: fixed; color: var(--ink); }
.pick-page .pick-table thead th {
  height: 38px; padding: 7px 3px; background: transparent; border-block: 1px solid var(--rule);
  color: var(--secondary); font: 550 13px/1.35 var(--cn);
}
.pick-page table.pick-table tr > :first-child { width: 21%; padding-inline-start: clamp(6px,1.2vw,16px); text-align: start; }
.pick-page table.pick-table .pick-time-column { width: 27%; text-align: start; }
.pick-page table.pick-table tr > :last-child { width: 16%; text-align: end; padding-inline-end: clamp(6px,1.2vw,16px); }
.pick-compact-time { display: none; }
.pick-page .pick-table tbody tr > :is(td,th) { height: 52px; padding-block: 6px; border: 0; border-bottom: 1px solid var(--hair); }
.pick-page .pick-table tr:is(:hover,:focus-within) td, .pick-page .pick-table tr:is(:hover,:focus-within) th[scope="row"] { background: var(--tint); }
.pick-table th[scope="row"] { position: relative; }
.pick-row-id { display: inline-block; min-width: 7ch; color: var(--ink); font: 600 20px/1.05 var(--numerals); white-space: nowrap; vertical-align: middle; }
.pick-row-link::after { content: ""; position: absolute; inset: 0; }
.pick-row-link:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: 3px; }
.pick-table time { color: var(--secondary); font: 500 14px/1.5 var(--cn); }
.pick-table time span { white-space: nowrap; }
.pick-pair { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.pick-pair [data-value] {
  display: inline-grid; place-items: center; width: 1.65em; height: 1.65em; color: var(--category-ink);
  background: color-mix(in srgb,var(--category-ink) 10%,var(--canvas)); border-radius: 5px;
  font: 680 16px/1 "Noto Marks",var(--cn);
}
.pick-verdict { display: inline-flex; justify-content: flex-end; align-items: center; gap: 7px; color: var(--secondary); font: 550 14px/1.45 var(--cn); }
.pick-verdict::before { content: ""; flex: none; width: 8px; height: 1.5px; background: currentColor; }
.pick-verdict[data-state="match"] { color: var(--signal); }
.pick-verdict[data-state="match"]::before { width: 6px; height: 10px; margin-block-start: -4px; background: transparent; border: solid currentColor; border-width: 0 1.7px 1.7px 0; transform: rotate(45deg); }
.pick-verdict[data-state="pending"]::before { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; background: transparent; }
.pick-empty { border-block-start: 1px solid var(--rule); padding-block: 20px; color: var(--secondary); font-size: 15px; }
.forecast .ticket-result { align-content: center; gap: 4px; }
.forecast #pick-vote-count { color: var(--secondary); font: 600 14px/1.35 var(--cn); }
.forecast #pick-vote-count:empty { display: none; }
.pick-vote-count { display: inline-block; margin-block-start: 11px; color: var(--sum); font: 650 15px/1.35 var(--cn); }
.pick-source-time, .pick-votes-wait, .pick-model-original { color: var(--secondary); font: 500 13px/1.6 var(--cn); }
.pick-votes { scroll-margin-top: 110px; }
.pick-distribution, .pick-ballots { margin: 0; padding: 0; list-style: none; }
.pick-distribution {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; overflow: hidden;
  border: 1px solid var(--paper-edge); border-radius: 9px; background: var(--rule);
}
.pick-distribution li { padding: 9px 5px; text-align: center; background: var(--sheet); font-size: 13px; color: var(--secondary); }
.pick-distribution li span { color: var(--ink); }
.pick-distribution li b { margin-inline-start: .45em; font: 600 21px/1 var(--numerals); color: var(--sum); }
.pick-ballots { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 8px 16px; margin-top: 12px; }
.pick-ballots li { min-width: 0; font-size: 14px; }
.pick-model summary { display: grid; position: relative; align-content: start; justify-items: start; gap: 7px; min-height: 44px; padding: 6px 4px; cursor: pointer; list-style: none; }
.pick-model summary::-webkit-details-marker { display: none; }
.pick-model-label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.pick-model-label::after { content: ""; width: 6px; height: 6px; border: solid var(--secondary); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.pick-model[open] .pick-model-label::after { transform: translateY(2px) rotate(225deg); }
.pick-model summary:is(:hover,:focus-visible) .pick-model-label { color: var(--sum); }
.pick-model summary:focus-visible { outline: 2px solid var(--sum); outline-offset: 1px; border-radius: 4px; }
.pick-model-original { margin: 0; padding: 0 4px 6px; overflow-wrap: anywhere; }
.pick-ballots .pick-pair { flex: none; }
.pick-history-vote { display: inline-grid; justify-items: center; align-content: center; min-height: 44px; }
.pick-history-vote small { font-size: 12px; color: var(--sum); white-space: nowrap; }
.pick-history-vote .pick-split { color: var(--secondary); }
.pick-publication .pick-basis { margin: 0; flex-basis: 100%; max-width: 30em; font: 500 13px/1.5 var(--cn); }
.pick-history-vote:is(:hover,:focus-visible) small { text-decoration: underline; }
@media (max-width: 540px) {
  .pick-ballots { grid-template-columns: 1fr; gap: 0; }
  .pick-model summary { display: flex; align-items: center; justify-content: space-between; padding: 4px; }
  .pick-source-time { flex-basis: 100%; }
}

@media (max-width: 700px) {
  .pick-time-column { display: none; }
  .pick-compact-time { display: block; }
  .pick-page table.pick-table tr > :first-child { width: 34%; }
  .pick-table time { font-size: 13px; }
  .pick-seal { width: 76px; right: 18px; }
}
@media (max-width: 540px) {
  .directory-page .directory-main.pick-page { --inset: 17px; }
  .pick-page .directory-heading h1 { font-size: clamp(24px,7.3vw,30px); }
  .pick-current { grid-template-columns: 1fr; }
  .pick-face { padding-block: 17px 19px; }
  .pick-ident { gap: 6px 11px; }
  .pick-display { margin-block-start: 12px; }
  .pick-seal { width: clamp(62px,20vw,92px); top: auto; bottom: 16px; right: var(--inset); transform: rotate(-12deg); }
  .pick-publication { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px var(--inset); }
  .pick-publication::before { inset: 0 var(--inset) auto; width: auto; height: 1px; background: repeating-linear-gradient(to right,color-mix(in srgb,var(--engraving) 50%,transparent) 0 3px,transparent 3px 7px); }
  .pick-publication time { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; }
  .pick-publication time strong { font-size: 21px; }
  .pick-publication time > span, .pick-time-label { font-size: 12px; }
  .pick-page .pick-table thead th { font-size: 12px; }
  .pick-page table.pick-table tr > :first-child { width: 32%; padding-inline-start: 4px; }
  .pick-page table.pick-table tr > :last-child { width: 21%; padding-inline-end: 4px; }
  .pick-table time { font-size: 12px; }
  .pick-table .pick-row-id { font-size: 19px; }
  .pick-pair { gap: 3px; }
  .pick-pair [data-value] { font-size: 15px; width: 1.5em; height: 1.5em; }
  .pick-verdict { font-size: 13px; gap: 4px; }
}
