:root {
  color-scheme: light;
  --paper: #faf4e6;
  --surface: #fff9ec;
  --surface-hover: #efe1cb;
  --ink: #2a2218;
  --muted: #5c5042;
  --field-line: #5f5345;
  --line: #d8c6a9;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-ink: #9a3f0f;
  --on-accent: #17130f;
  --tint: rgba(245, 158, 11, .1);
  --scrim: rgba(42, 34, 24, .4);
  --serif: "Baskervville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #141110;
    --surface: #1e1915;
    --surface-hover: #302720;
    --ink: #eae3d9;
    --muted: #a39b92;
    --field-line: #9a9187;
    --line: #3d332d;
    --accent-ink: #f8b94d;
    --tint: rgba(245, 158, 11, .11);
    --scrim: rgba(20, 17, 16, .64);
  }
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus { position: fixed; z-index: 8; top: .6rem; left: .6rem; background: var(--surface); padding: .75rem; }
.shell { max-width: 84rem; margin-inline: auto; padding: 0 clamp(1.1rem, 5.7vw, 5.7rem) 5rem; }
.masthead { border-bottom: 3px solid var(--ink); padding-top: 1.25rem; }
.masthead-top, .masthead-title, .section-head, .directory-tools, .identity, .submit-button, .search-box, .category-button, .entry-meta, .entry-foot { display: flex; align-items: center; }
.masthead-top, .masthead-title, .section-head, .entry-foot { justify-content: space-between; }
.masthead-top { min-height: 3.65rem; gap: .9rem; }
.identity { gap: .6rem; font-weight: 680; font-size: 1.15rem; letter-spacing: -.035em; }
.bank-mark { width: 1.3rem; height: 1.45rem; display: flex; align-items: flex-end; gap: 2px; }
.bank-mark i { display: block; width: .32rem; height: 75%; background: var(--accent); }
.bank-mark i:nth-child(2) { height: 100%; }
.bank-mark i:last-child { height: 87%; transform: rotate(-13deg); transform-origin: bottom; margin-left: .18rem; }
.submit-button { color: var(--on-accent); background: var(--accent); border: 1px solid var(--accent); border-radius: .3rem; font-size: .95rem; font-weight: 620; padding: .65rem .95rem; gap: .45rem; min-height: 2.75rem; }
.submit-button:hover { background: var(--accent-hover); }
.submit-button span { font-size: 1.27rem; line-height: 1; }
.masthead-title { align-items: flex-end; gap: 2rem; padding: 1.85rem 0 2rem; }
.masthead h1, .section-head h2, .entry h3 { font-family: var(--serif); font-weight: 500; }
.masthead h1 { margin: 0; font-size: clamp(4rem, 9.25vw, 8.5rem); letter-spacing: -.075em; line-height: .87; }
.masthead-title p { margin: 0 .05rem .1rem 0; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.25rem); line-height: 1.35; }
#submission-status { color: var(--muted); }
.directory-layout { display: grid; grid-template-columns: minmax(10.4rem, 14rem) minmax(0,1fr); gap: clamp(1.4rem,4.1vw,4.1rem); margin-top: 2.5rem; }
.category-panel { padding-top: .5rem; }
.section-label, .entry-kind, .field-label { font-size: .8rem; line-height: 1.35; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.section-label { font-size: .9rem; margin: 0 0 .85rem .65rem; }
.category-button { width: 100%; justify-content: space-between; gap: .4rem; padding: .67rem .65rem; text-align: left; border: 0; border-radius: .2rem; background: transparent; line-height: 1.32; font-size: .95rem; }
.category-button:hover { background: var(--surface-hover); }
.category-button[aria-pressed="true"] { color: var(--accent-ink); background: var(--tint); font-weight: 700; }
.category-total { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .86rem; }
.mobile-categories { display: none; }
.section-head { gap: 1rem; align-items: baseline; }
.section-head h2 { margin: 0; font-size: clamp(2rem, 3.75vw, 3.35rem); letter-spacing: -.045em; line-height: 1.08; }
#record-count { margin: 0; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.directory-tools { gap: .55rem; margin: 1.15rem 0 1.5rem; }
.search-box, .type-control select, #category-select { background: var(--surface); border: 1px solid var(--field-line); border-radius: .25rem; min-height: 2.85rem; }
.search-box { gap: .85rem; padding-inline: .92rem .65rem; flex: 1; min-width: 0; }
.search-box:focus-within { outline: 2px solid var(--accent-ink); outline-offset: 1px; }
.search-icon { position: relative; width: .9rem; height: .9rem; flex: none; border: 1.7px solid var(--muted); border-radius: 50%; }
.search-icon:after { content: ""; position: absolute; width: .45rem; height: 1.7px; background: var(--muted); transform: rotate(45deg); top: .73rem; left: .61rem; }
.search-box input { width: 100%; min-width: 0; height: 2.72rem; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: var(--muted); }
.type-control select, #category-select { color: var(--ink); padding-inline: .7rem 2rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 51%),linear-gradient(135deg,var(--muted) 50%,transparent 51%); background-size: 5px 5px; background-repeat: no-repeat; background-position: calc(100% - 16px) center, calc(100% - 11px) center; }
#results { border-top: 1px solid var(--ink); }
.entry { padding: 1.45rem 0 1.3rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.entry-meta { gap: .6rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.entry-kind { color: var(--accent-ink); letter-spacing: .045em; }
.meta-rule { height: .8rem; border-left: 1px solid var(--line); }
.entry h3 { font-size: clamp(1.65rem,2.4vw,2.35rem); line-height: 1.13; letter-spacing: -.03em; margin: .45rem 0 .35rem; }
.entry .credit { color: var(--muted); font-size: .9rem; margin: 0 0 1.05rem; }
.entry dl { display: grid; grid-template-columns: 4.55rem minmax(0,1fr); align-items: baseline; gap: .48rem .8rem; margin: 0 0 1rem; }
.entry dt { margin: 0; }
.entry dd { margin: 0; line-height: 1.55; font-size: 1rem; }
.entry-foot { justify-content: flex-start; }
.source-link { font-size: .94rem; font-weight: 650; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.source-link:hover { text-decoration-thickness: 2px; }
.notice { margin: 1.5rem 0; line-height: 1.5; color: var(--muted); }
.reset-button { background: var(--surface); border: 1px solid var(--field-line); border-radius: .25rem; padding: .55rem .75rem; }
@media (max-width: 48rem) {
  .shell { padding-inline: clamp(1rem,4vw,2rem); }
  .masthead { padding-top: .5rem; }
  .masthead-title { padding: 1.5rem 0 1.35rem; flex-wrap: wrap; gap: .85rem; align-items: start; }
  .masthead-title p { font-size: 1rem; }
  .desktop-break { display: none; }
  .directory-layout { display: block; margin-top: 1.15rem; }
  .category-panel { display: flex; gap: .7rem; align-items: center; padding: 0 0 1.25rem; }
  .mobile-categories { display: block; }
  .category-panel label { color: var(--muted); font-size: .9rem; }
  #category-select { flex: 1; min-width: 0; }
  .desktop-categories { display: none; }
  .directory-tools { margin: .9rem 0 1.05rem; }
  .entry { padding: 1.25rem 0; }
}
@media (max-width: 26rem) {
  .entry dl { grid-template-columns: 1fr; gap: .25rem; }
  .entry dd+dt { margin-top: .45rem; }
  .section-head { align-items: flex-start; gap: .45rem; }
  #record-count { margin-top: .45rem; }
  .type-control select { padding-left:.45rem; }
}
