/* ------------------------------------------------------------------
   A stamp catalogue: light paper, printer's ink, and a perforated edge.
   No web fonts and no external assets, so the site works offline.

   Light is the default and does not follow the operating system, because a
   catalogue is a reading surface and most of this page is a dense table. Dark
   is there for anyone who wants it, via the toggle in the header, and the
   choice is remembered.
   ------------------------------------------------------------------ */

:root {
  --paper:      #fbfaf7;
  --paper-2:    #ffffff;
  --paper-3:    #f5f2ec;
  --ink:        #26303c;
  --ink-soft:   #55606e;
  --muted:      #8b8578;
  --rule:       #e7e1d6;
  --rule-soft:  #f1ede4;
  --accent:     #a33a32;
  --accent-2:   #c25a45;
  --link:       #2f6488;
  --row-tint:   rgba(163, 58, 50, .035);
  --row-hover:  rgba(163, 58, 50, .075);
  --shadow:     0 1px 1px rgba(38, 48, 60, .04), 0 4px 14px rgba(38, 48, 60, .045);
  --radius:     4px;
  --measure:    68ch;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper:      #171a1f;
  --paper-2:    #1e222a;
  --paper-3:    #262b34;
  --ink:        #eae5db;
  --ink-soft:   #b7b0a3;
  --muted:      #8d8778;
  --rule:       #343b46;
  --rule-soft:  #282e37;
  --accent:     #e08877;
  --accent-2:   #eda891;
  --link:       #8fbcdb;
  --row-tint:   rgba(224, 136, 119, .05);
  --row-hover:  rgba(224, 136, 119, .10);
  --shadow:     0 1px 1px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
        "Times New Roman", serif;
  text-rendering: optimizeLegibility;
  /* Fill the viewport on short pages -- several country pages hold only a
     handful of cards, and the page colour should still reach the bottom. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 8px; top: 8px; z-index: 10;
  background: var(--paper-2); padding: 8px 12px; border: 1px solid var(--rule);
}

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

.masthead {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

/* The mark is the same drawing as the favicon, inlined so its perforations can
   pick up the header colour and stay crisp at any zoom. */
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--accent);
  display: block;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.02rem; letter-spacing: .01em; font-weight: 600; }
.brand-text small { color: var(--muted); font-size: .78rem; }
/* The tagline names three countries; on a phone it would push the navigation
   onto a second line, and the page title already says where you are. */
@media (max-width: 640px) { .brand-text small { display: none; } }

.topnav {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .9rem;
  flex-wrap: wrap;
}
.topnav > a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius);
}
.topnav > a:hover { color: var(--accent); background: var(--paper-3); }

.lang-switch {
  border: 1px solid var(--rule);
  background: var(--paper);
}

.theme-toggle {
  font: inherit;
  font-size: .9rem;
  line-height: 1;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 6px 8px;
  cursor: pointer;
  display: inline-flex;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { display: block; width: 15px; height: 15px; }
/* Show the icon for the theme the button would switch *to*. */
.theme-toggle .to-dark { display: block; }
.theme-toggle .to-light { display: none; }
:root[data-theme="dark"] .theme-toggle .to-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .to-light { display: block; }

/* ---------------- headings and text ---------------- */

main { padding-top: 30px; padding-bottom: 60px; }

h1 {
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: 1.15;
  margin: .2em 0 .3em;
  letter-spacing: -.01em;
  font-weight: 600;
}
h2 { font-size: 1.45rem; margin: 1.9em 0 .5em; letter-spacing: -.005em; font-weight: 600; }
h3 { font-size: 1.1rem; margin: 0; font-weight: 600; }

.lede { font-size: 1.06rem; color: var(--ink-soft); max-width: var(--measure); }
.muted { color: var(--muted); font-size: .9rem; }
.period {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 1.1em;
}
.prose { max-width: var(--measure); }

/* ---------------- breadcrumbs ---------------- */

.crumbs {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs i { color: var(--rule); font-style: normal; }

/* ---------------- hero and stats ---------------- */

.hero { margin-bottom: 3rem; }
.hero-text { max-width: var(--measure); }

/* Wide enough to set the totals beside the introduction rather than leaving
   half the page empty beside a narrow measure of text. */
@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 16px 56px;
    align-items: start;
  }
  .hero .stat-row {
    flex-direction: column;
    margin: .55rem 0 0;
    gap: 8px;
  }
  /* Stacked in a narrow column the figures read better on one line, number
     against label, like the totals at the foot of a catalogue page. */
  .hero .stat {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 16px;
  }
  .hero .stat b { font-size: 1.45rem; }
}

.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.6rem 0 2.6rem; }
.stat {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 13px 18px;
  min-width: 130px;
}
.stat b {
  display: block;
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  font-weight: 600;
}
.stat span {
  font-size: .76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* ---------------- cards ---------------- */

.group-block { margin-bottom: 3.2rem; }
.group-block h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: .35em;
  border-bottom: 1px solid var(--rule-soft);
}
.group-block h2 a { color: inherit; text-decoration: none; }
.group-block h2 a:hover { color: var(--accent); }
.group-block h2 .count {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.card-grid {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  padding: 16px 18px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.card a:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 4px rgba(38, 48, 60, .06), 0 10px 24px rgba(38, 48, 60, .07);
  transform: translateY(-1px);
}
.card-years {
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.card-title { font-size: 1.06rem; line-height: 1.3; }
.card-count {
  font-size: .82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-top: auto;
  padding-top: 4px;
}

/* ---------------- year navigation and filter ---------------- */

.yearnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  font-variant-numeric: tabular-nums;
  font-size: .85rem;
}
.yearnav span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .72rem;
  margin-right: 4px;
}
.yearnav a { text-decoration: none; padding: 2px 6px; border-radius: 3px; }
.yearnav a:hover { background: var(--paper-3); color: var(--accent); }

/* A long section is cut into periods; this row moves between them, and the
   year row under it moves within one. */
.periodnav + .yearnav { border-top: 0; padding-top: 4px; }
.periodnav [aria-current] {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: inherit;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--paper-3);
  color: var(--ink);
  font-weight: 600;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin: 2rem 0 1rem;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  font-size: .92rem;
}
.pager .next { margin-left: auto; text-align: right; }

.filterbar { margin: 1.5rem 0; display: flex; gap: 12px; align-items: center; }
.filterbar input {
  flex: 1 1 auto;
  max-width: 420px;
  font: inherit;
  font-size: .95rem;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.filterbar.big input { max-width: 100%; font-size: 1.1rem; padding: 12px 16px; }
.filterbar input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.filter-count { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------- issues ---------------- */

.year-head {
  font-size: 1.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin: 2.8rem 0 1rem;
  padding-bottom: .2rem;
  border-bottom: 2px solid var(--rule);
  letter-spacing: -.01em;
}
.year-head:first-child { margin-top: 1.5rem; }

.issue {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin: 0 0 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  /* A big section runs to tens of thousands of pixels and a hundred-odd
     tables. Letting the browser skip the ones that are off screen keeps
     scrolling smooth; the remembered size stops the scrollbar jumping. */
  content-visibility: auto;
  contain-intrinsic-size: auto 340px;
}
.issue-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper-3);
}
.issue-head h3 { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.issue-year {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .06em;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 1px 6px;
  flex: none;
}

.issue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 9px 0 0;
  font-size: .84rem;
}
.issue-meta div { display: flex; gap: 6px; }
.issue-meta dt { color: var(--muted); }
.issue-meta dt::after { content: ":"; }
.issue-meta dd { margin: 0; color: var(--ink-soft); }

/* A watermark that has a drawing opens it in place. <details> rather than a
   popup, so it works without JavaScript and on a phone. */
.wm { display: inline; }
.wm > summary {
  cursor: pointer;
  list-style: none;
  border-bottom: 1px dotted currentColor;
}
.wm > summary::-webkit-details-marker { display: none; }
.wm > summary::after {
  content: "\00a0\25be";
  font-size: .8em;
  color: var(--muted);
}
.wm[open] > summary::after { content: "\00a0\25b4"; }
.wm > summary:hover { color: var(--accent); }
.wm-figure {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.wm-figure img {
  width: 76px;
  height: 76px;
  flex: none;
  color: var(--ink);       /* the drawings stroke in currentColor */
}
.wm-figure small { color: var(--muted); font-size: .78rem; max-width: 22ch; }

/* ---------------- stamp pictures ---------------- */

/* Only rendered for issues that actually have a scan, so a section with no
   pictures yet looks exactly as it did before. */
.issue-images {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper-2);
}
.stamp-pic {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  max-width: 130px;
}
.stamp-pic a { display: block; }
.stamp-pic img {
  display: block;
  max-width: 100%;
  max-height: 130px;
  width: auto;
  height: auto;
  border-radius: 2px;
  /* A faint drop shadow reads as the stamp sitting on the page, without
     drawing a border that would compete with its own perforated edge. */
  filter: drop-shadow(0 1px 2px rgba(38, 48, 60, .22));
}
.stamp-pic figcaption {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* An unnumbered variety: the caption says what differs. */
.stamp-pic.is-variant figcaption { font-style: italic; }

/* A souvenir sheet is wider than a stamp, so it gets more room in the strip. */
.stamp-pic.is-sheet { max-width: 300px; }
.stamp-pic.is-sheet img { max-height: 200px; }

/* A forgery in the collection: kept, shown, never mistaken for the stamp.
   The picture is dimmed a little and carries its label on its face. */
.stamp-pic.is-forgery { position: relative; }
.stamp-pic.is-forgery img { opacity: .82; }
.forgery-mark {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paper-2);
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  z-index: 1;
  font-size: .62rem;
  padding: 2px 7px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.stamp-pic.is-forgery figcaption { color: var(--accent); }

/* The story of an issue: closed by default, one line until opened. */
.story {
  margin: 0;
  padding: 10px 18px 12px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper-2);
}
.story summary {
  cursor: pointer;
  width: max-content;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}
.story summary:hover { text-decoration: underline; }
.story p { margin: .6em 0 0; max-width: var(--measure); line-height: 1.55; color: var(--ink-soft); }
.story .story-src { font-size: .78rem; color: var(--muted); }
.story .story-note {
  font-size: .8rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent-2);
  padding-left: 8px;
}
.story .story-note::before { content: "⚠ "; }
.story .story-src a { color: var(--link); }

/* The hover preview (see app.js): the scan itself, larger, beside the pointer. */
.stamp-pic img { cursor: zoom-in; }
.stamp-zoom {
  position: fixed;
  z-index: 50;
  display: none;
  pointer-events: none;
  padding: 8px 8px 6px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 6px 28px rgba(38, 48, 60, .28);
}
.stamp-zoom.is-open { display: block; }
.stamp-zoom img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(440px, 60vw);
  max-height: min(440px, 70vh);
}
.stamp-zoom.is-sheet img {
  max-width: min(860px, 80vw);
  max-height: 80vh;
}
.stamp-zoom.is-forgery img { opacity: .82; }
.stamp-zoom-cap {
  margin-top: 5px;
  text-align: center;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.stamp-zoom.is-forgery .stamp-zoom-cap { color: var(--accent); }

@media print {
  .stamp-pic img { filter: none; }
  .stamp-zoom { display: none !important; }
  .stamp-pic.is-forgery img { opacity: 1; }
  .forgery-mark { color: #000; background: none; border: 1px solid #000; }
}

/* ---------------- tables ---------------- */

.table-wrap { overflow-x: auto; }

table.stamps {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: .87rem;
}
table.stamps th, table.stamps td {
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
table.stamps thead th {
  font-size: .69rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
  background: var(--paper-2);
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
table.stamps tbody tr:nth-child(even) { background: var(--row-tint); }
table.stamps tbody tr:hover { background: var(--row-hover); }
table.stamps tbody tr:last-child td,
table.stamps tbody tr:last-child th { border-bottom: 0; }

.c-no {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
  width: 1%;
}
/* Another catalogue's number for the same stamp: set beside StampWorld's,
   lighter, so the eye still finds the site's own numbering first. */
.c-cat {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  width: 1%;
  color: var(--ink-soft);
}
.c-type { color: var(--muted); white-space: nowrap; width: 1%; }
.c-den { font-variant-numeric: tabular-nums; white-space: nowrap; width: 1%; }
/* Colour is given a share rather than left to absorb the slack, so the
   description sits next to it instead of across an empty gap. */
.c-col { width: 22%; min-width: 9rem; }
.c-desc { color: var(--ink-soft); }
.c-iss {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  color: var(--muted);
  width: 1%;
}
table.stamps thead .c-iss { text-align: right; }

/* The key to the value columns. A popover on catalogue pages -- worth having
   to hand, not worth a permanent strip above every table -- and shown open on
   the About page, where explaining it is the point. */
.legend-wrap { margin: 0 0 1.2rem; }

.legend-pop {
  position: relative;
  display: inline-block;
  cursor: help;
}
.legend-trigger {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  border-bottom: 1px dotted currentColor;
  padding-bottom: 1px;
}
.legend-trigger::after { content: "\00a0\25be"; }
.legend-pop:hover .legend-trigger,
.legend-pop:focus-within .legend-trigger { color: var(--accent); }

.legend-pop .legend-body {
  display: none;
  position: absolute;
  z-index: 5;
  top: calc(100% + 7px);
  left: 0;
  min-width: 270px;
  padding: 11px 14px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* focus-within covers keyboard and touch, where there is no hover. */
.legend-pop:hover .legend-body,
.legend-pop:focus-within .legend-body { display: block; }
.legend-pop:focus { outline: none; }
.legend-pop:focus-visible .legend-trigger { outline: 2px solid var(--accent); }

.legend-body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .78rem;
}
.legend-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-soft);
  white-space: nowrap;
  padding: 1px 0;
}
.legend-name { flex: 1 1 auto; }
.legend-range {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.legend-note {
  display: block;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid var(--rule-soft);
  color: var(--muted);
  font-style: italic;
  white-space: normal;
}

/* The open form, on the About page. */
.legend-open {
  display: inline-block;
  padding: 12px 16px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.legend-open .legend-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .68rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.legend-open .legend-body { display: block; }
.legend-prose { max-width: var(--measure); }

@media print {
  .legend-wrap { display: none; }
}

/* Value bands: five dots, filled to the band. Deliberately quiet -- a sense
   of scale beside the stamp, not a price list running down the page. */
.c-band {
  width: 1%;
  white-space: nowrap;
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
}
table.stamps thead .c-band {
  text-align: center;
  font-size: .66rem;
  letter-spacing: .05em;
}
.band {
  font-size: .62rem;
  letter-spacing: .09em;
  color: var(--accent);
  cursor: help;
}
.band i { color: var(--rule); font-style: normal; }
.band.b1 { color: var(--muted); }

@media print {
  .band { color: #000; }
  .band i { color: #bbb; }
}

/* ---------------- search results ---------------- */

.results { margin-top: 1rem; }
.result {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
}
.result:hover { border-color: var(--accent); }
.result-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.result-year {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .06em;
}
.result-where { font-size: .82rem; color: var(--muted); }
.result mark { background: rgba(214, 174, 74, .3); color: inherit; padding: 0 1px; }

/* ---------------- print: a usable checklist ---------------- */

@media print {
  :root {
    --paper: #fff; --paper-2: #fff; --paper-3: #fff;
    --ink: #000; --ink-soft: #222; --muted: #555;
    --rule: #999; --rule-soft: #ccc; --row-tint: transparent;
  }
  .masthead, .filterbar, .yearnav, .crumbs, .skip { display: none; }
  body { font-size: 10pt; }
  main { padding: 0; }
  .issue { break-inside: avoid; box-shadow: none; border-color: #999; }
  table.stamps thead th { position: static; }
  a { color: #000; text-decoration: none; }
}
