/* /predictions/ and /predictions/all/. blog.css tokens only. */
:root { --pl-col: 76px; --pl-gap: 12px; }
@media (max-width: 479px) { :root { --pl-col: 62px; --pl-gap: 10px; } }
.pl-head { margin: 0 0 8px; }
h1.title.pl-h1s { font-size: 30px; max-width: 15em; }
@media (min-width: 720px) { h1.title.pl-h1s { font-size: 48px; } }
.pl-intro { font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 36em; margin: 16px 0 12px; }
.pl-trust { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; margin: 0 0 56px; }
.pl-trust a { color: var(--ink-soft); border-bottom: 1px solid var(--ink-line); text-decoration: none; }
.pl-trust a:hover { color: var(--klein); border-bottom-color: var(--klein); }

.pl-set { margin: 0 0 64px; }
.pl-set h2 { font-size: 26px; letter-spacing: -0.04em; margin: 0; }
@media (min-width: 720px) { .pl-set h2 { font-size: 32px; } }

.pl-day { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); margin: 40px 0 4px; display: flex; justify-content: space-between; gap: 12px; }
.pl-day:first-child { margin-top: 0; }

.pl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-rule); }
.pl-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ink-line); }
.pl-thumb { display: block; width: 44px; height: 44px; object-fit: cover; background: var(--paper); }
.pl-empty { background: var(--stone); }
.pl-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-title { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.3; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.pl-title:hover { color: var(--klein); }
.pl-store { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* two number columns, same widths in the header and every row so they line up */
.pl-nums { display: grid; grid-template-columns: var(--pl-col) var(--pl-col); column-gap: var(--pl-gap); align-items: baseline; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-pred, .pl-act { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.pl-pred { color: var(--klein); }
.pl-act { color: var(--ink); }
.pl-act.pl-quiet, .pl-pred.pl-quiet { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--ink-faint); }
.pl-quiet { color: var(--ink-faint); }

.pl-cols { display: grid; grid-template-columns: minmax(0, 1fr) var(--pl-col) var(--pl-col); column-gap: var(--pl-gap); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); margin: 24px 0 8px; }
.pl-cols span + span { text-align: right; }
.pl-col-sim { color: var(--klein); }
/* a prediction's page names what its numbers count, over both number columns */
.pl-cols-unit { grid-column: 1 / -1; grid-row: 1; text-align: right; color: var(--ink-soft); padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--ink-line); white-space: nowrap; }
.pl-cols-unit ~ span { grid-row: 2; }
.pl-cols .pl-cols-first { text-align: left; }
.pl-def { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 16px; margin: 28px 0 0; font-size: 17px; line-height: 1.4; }
.pl-def dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); padding-top: 5px; }
.pl-def dd { margin: 0; }
@media (max-width: 479px) { .pl-def { grid-template-columns: 80px minmax(0, 1fr); font-size: 15px; } }
.pl-unit { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin: 0 0 4px; }

.pl-note { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin: 10px 0 0; }
.pl-all { display: inline-block; margin-top: 18px; font-size: 15px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--klein); padding-bottom: 2px; }
.pl-all:hover { color: var(--klein); }
.pl-more { font: inherit; font-size: 14px; color: var(--ink); background: none; border: 1px solid var(--ink-rule); border-radius: 0; padding: 8px 16px; margin-top: 28px; cursor: pointer; }
.pl-more:hover:not(:disabled) { color: var(--klein); border-color: var(--klein); }
.pl-more:disabled { opacity: 0.4; cursor: default; }

/* day and store lines: the whole line is the link / the button */
.pl-line-day, .pl-line-store { display: block; padding: 0; }
.pl-line-store { scroll-margin-top: 80px; }  /* clears the sticky header on a #store= deep link */
.pl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; padding: 14px 0; color: var(--ink); text-decoration: none; background: none; border: 0; border-radius: 0; font: inherit; text-align: left; cursor: pointer; }
.pl-row:hover .pl-title, .pl-row:focus-visible .pl-title { color: var(--klein); }
.pl-row:focus-visible { outline: 2px solid var(--klein); outline-offset: 2px; }
.pl-line-day .pl-title, .pl-line-store .pl-title { font-size: 17px; letter-spacing: -0.02em; }
.pl-store-btn { grid-template-columns: 16px minmax(0, 1fr) auto; }
.pl-caret { font-family: var(--mono); font-size: 14px; color: var(--ink-faint); line-height: 1; }
.pl-products { border-top: 0; margin: -4px 0 14px 30px; }
.pl-products .pl-line:last-child { border-bottom: 0; }
.pl-dayhead { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin: 18px 0 40px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pl-dayhead a { color: var(--ink-faint); border-bottom: 1px solid var(--ink-line); text-decoration: none; }
.pl-dayhead a:hover { color: var(--klein); border-bottom-color: var(--klein); }
@media (max-width: 719px) { .pl-products { margin-left: 0; } }

/* phone: one thing per line. A prediction stacks its title, its date, then the two
   numbers with their own labels; a day keeps one header over its stores. */
@media (max-width: 479px) {
  .pl-cols-days { display: none; }
  .pl-line-day .pl-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 0 20px; }
  .pl-line-day .pl-title { white-space: normal; font-size: 19px; }
  .pl-line-day .pl-nums { display: flex; gap: 32px; text-align: left; }
  .pl-line-day .pl-nums > span { display: flex; flex-direction: column; gap: 2px; }
  .pl-line-day .pl-nums > span::before { font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
  .pl-line-day .pl-pred::before { content: "Simulated"; }
  .pl-line-day .pl-act::before { content: "Actual"; }
  .pl-line-day .pl-pred:not(.pl-quiet), .pl-line-day .pl-act:not(.pl-quiet) { font-size: 22px; }
  .pl-def { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); line-height: 1.7; margin-top: 18px; }
  .pl-def dt { display: none; }
  .pl-def dd { display: inline; }
  .pl-def dd:not(:first-of-type)::before { content: " · "; }
  .pl-dayhead a[title] { display: none; }
  .pl-caret { display: none; }
  .pl-store-btn { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; }
}
