/* The page types (templates/types/): loaded after ring28.css on their pages only. Tokens only. */

.claim-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin: 0.75rem 0 1.5rem;
  max-width: 48rem;
}
blockquote {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 4px double var(--navy);
  font-size: 1.125rem;
}
.history { list-style: none; padding: 0; }
.prose .history { padding-left: 0; }
.history li {
  padding: 0.875rem 0;
  border-top: 1px solid var(--road-gray);
}
.history li p { margin-top: 0.375rem; }

/* Games and watching (templates/types/game.html, /watch/, /calendars/). */
.plans { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.plans li { padding: 0.4rem 0; border-bottom: 1px solid var(--road-gray); }
.plans b { font-family: var(--font-mono); font-weight: 400; margin-right: 0.5rem; }
.service { margin-bottom: 1.5rem; }
.service h3, .service h4 { font-size: 1.25rem; margin: 0.5rem 0; }
.service dl div { display: block; }
.service dd { text-align: left; margin-top: 0.25rem; font-family: var(--font-sans); font-size: 0.875rem; }
.service dl div.row { display: flex; }
.service dl div.row dd { margin-top: 0; text-align: right; font-family: var(--font-mono); }
.block > h3 { font-size: 1.375rem; margin: 2.5rem 0 0.75rem; }
.unknowns { margin-top: 0.75rem; }
.services { display: grid; gap: 1.5rem; }
.services .service { margin-bottom: 0; }
.notice { border-left: 4px solid var(--navy); padding: 0.5rem 0 0.5rem 1rem; margin-bottom: 1.5rem; }
.preview dt { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 1rem; }
.preview dd { margin: 0.25rem 0 0; }
.feeds { list-style: none; padding: 0; }
.feeds li { padding: 1rem 0; border-top: 1px solid var(--road-gray); }
.feeds .links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.5rem; }
.feeds code { font-family: var(--font-mono); font-size: 0.8125rem; overflow-wrap: anywhere; }
@media (min-width: 60rem) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.prose .plans, .prose .feeds { padding-left: 0; }
.prose .feeds li + li { margin-top: 0; }
.prose .services { grid-template-columns: minmax(0, 1fr); }
.prose p.source { font-size: 0.75rem; }

/* Fan School: titles and guides (scripts/fan_school.py). */
.cite {
  font-family: var(--font-mono);
  font-size: 0.75em;
  text-decoration: none;
  color: var(--reading-gray);
  margin-left: 0.0625rem;
}
.cite:hover { text-decoration: underline; }
.sources { padding-left: 1.5rem; margin-top: 0.75rem; font-size: 0.9375rem; }
.sources li + li { margin-top: 0.375rem; }
.sources li:target { outline: 2px solid var(--field-green); outline-offset: 2px; }
.draft-banner {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border: 2px dashed var(--navy);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.editor-note {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--reading-gray);
  background: var(--white);
  font-size: 0.9375rem;
}
.editor-note b { font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; display: block; }
.prose .checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 1.75rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 0.875rem;
  height: 0.875rem;
  border: 1.5px solid var(--navy);
}
.guide-table {
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
}
.guide-table th, .guide-table td {
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--road-gray);
  text-align: left;
  vertical-align: top;
}
.guide-table thead th {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--navy);
}
.prose .table-scroll { margin-top: 0.75rem; }
.printable {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid var(--road-gray);
  background: var(--white);
  font-weight: 600;
}

/* /titles/: the tally. 27 marked, and the 28th waiting in field green. */
.tally {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
  border-top: 4px double var(--navy);
  border-left: 1px solid var(--road-gray);
}
.tally li {
  border-right: 1px solid var(--road-gray);
  border-bottom: 1px solid var(--road-gray);
}
.tally li > b, .tally a { display: block; padding: 0.75rem 0.625rem; }
.tally a { text-decoration: none; height: 100%; }
.tally a:hover b { text-decoration: underline; }
.tally b { font-family: var(--font-slab); font-weight: 900; font-size: 1.375rem; }
.tally span { display: block; margin-top: 0.25rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--reading-gray); }
.tally li.next { color: var(--field-green); border: 2px dashed var(--field-green); }
.tally li.next b, .tally li.next span { padding: 0.75rem 0.625rem 0; color: var(--field-green); }
.tally li.next span { padding-top: 0; }
@media (min-width: 40rem) {
  .tally { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 60rem) {
  .tally { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- guides (Going) */

.prose .receipt { margin-top: 1rem; }
.prose .ledger { font-size: 0.875rem; }
.prose p.source { font-size: 0.75rem; }
.prose ul + p, .prose blockquote + p { margin-top: 0.875rem; }
.prose blockquote p { font-size: 1rem; }
.notice {
  margin: 0.5rem 0 1rem;
  padding: 1.25rem;
  background: var(--paper);
  border-top: 4px double var(--navy);
}
.notice h2 { font-size: clamp(1.375rem, 4vw, 1.75rem); margin: 0.5rem 0 0.75rem; }
.notice p { font-size: 0.9375rem; }
.notice .action { margin-top: 0.25rem; }

/* The printable one-page version: hidden on screen; in print, the only thing on the page. A guide
   opts in by ending its body with <section class="sheet">. US Letter, one page. */
.sheet { display: none; }

@media print {
  @page { size: letter; margin: 0.45in; }
  body { background: var(--white); color: var(--navy); }
  .skip, header, .site-footer { display: none; }
  main .wrap { max-width: none; padding: 0; }
  main .block { padding: 0; }
  a { text-decoration: none; }
  .prose:has(> .sheet) > :not(.sheet), main .wrap:has(.sheet) > :not(article) { display: none; }
  .sheet { display: block; font-size: 10.5pt; line-height: 1.4; }
  .sheet p { margin: 0; font-size: 10.5pt; }
  .sheet p + p { margin-top: 0; }
  .sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    border-bottom: 4px double var(--navy);
    padding-bottom: 6pt;
    margin-bottom: 8pt;
  }
  .sheet .sheet-name { font-family: var(--font-slab); font-weight: 900; font-size: 16pt; }
  .sheet .sheet-name span, .sheet-label, .sheet-foot, .sheet-games span {
    font-family: var(--font-mono);
    font-weight: 400;
  }
  .sheet .sheet-name span { display: block; font-size: 7pt; letter-spacing: 0.08em; text-transform: uppercase; }
  .sheet .sheet-title { font-family: var(--font-slab); font-weight: 900; font-size: 18pt; text-align: right; }
  .sheet-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0 18pt; }
  .sheet .sheet-label {
    margin-top: 10pt;
    font-size: 7.5pt;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--reading-gray);
  }
  .sheet-games { list-style: none; padding: 0; margin: 2pt 0 0; }
  .sheet-games li {
    display: grid;
    grid-template-columns: 7em 1fr auto;
    gap: 6pt;
    padding: 2.5pt 0;
    border-bottom: 1px solid var(--road-gray);
    font-size: 10pt;
  }
  .sheet-games span { font-size: 9pt; }
  .sheet-qr { display: flex; gap: 10pt; align-items: center; margin-top: 10pt; }
  .sheet-qr img { width: 1.3in; height: 1.3in; image-rendering: pixelated; }
  .sheet .sheet-foot {
    margin-top: 10pt;
    padding-top: 5pt;
    border-top: 1px solid var(--road-gray);
    font-size: 7pt;
    color: var(--reading-gray);
  }
}

/* A table whose first cell is its row header (the /watch/ comparison): on phones, stack the cells
   in order instead of ring28.css's date-first grid. */
@media (max-width: 39.99rem) {
  .ledger.stacked tr { display: block; }
  .ledger.stacked tbody th { font-weight: 600; }
  .ledger.stacked td, .ledger.stacked td:nth-child(3) { margin-top: 0.25rem; color: inherit; font-size: 0.875rem; }
}
