:root {
  --bg: #090b0d;
  --surface: #101419;
  --surface2: #151a20;
  --surface3: #1a2027;
  --text: #f1ede4;
  --muted: #9ba2ab;
  --quiet: #737b85;
  --gold: #d8ad55;
  --line: #30363d;
  --softline: #20262c;

  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;

  --content: 1160px;
  --reading: 820px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.drawer-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
}

.mono {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
}


/* HEADER */

.site-header {
  width: min(calc(100% - 48px), var(--content));
  height: 90px;
  margin: auto;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.brand-box {
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 23px;
}

.brand-word {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .12em;
}

.plain-control {
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}


/* HERO */

.hero {
  padding: 92px 24px 84px;
}

.hero-inner {
  max-width: 950px;
  margin: auto;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(70px, 12vw, 145px);
  line-height: .84;
  letter-spacing: -.065em;
}

.hero-subtitle {
  margin: 38px 0 0;
  font-family: var(--serif);
  font-size: clamp(25px, 4vw, 42px);
  font-style: italic;
}

.hero-copy {
  max-width: 680px;
  margin: 38px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.button {
  min-width: 210px;
  padding: 15px 20px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}

.primary-button {
  background: var(--text);
  color: #111;
}

.secondary-button {
  background: transparent;
}

.principles {
  margin-top: 66px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 30px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
}


/* BROWSE */

.browse {
  width: min(calc(100% - 48px), var(--content));
  margin: auto;
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.section-header {
  max-width: 700px;
}

.section-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1;
}

.section-header > p:last-child {
  color: var(--muted);
  line-height: 1.65;
  font-size: 17px;
}

/* CASE */

.case-file {
  width: min(calc(100% - 48px), var(--content));
  margin: auto;
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.case-shell {
  max-width: 980px;
  margin: auto;
}

.case-header {
  display: block;
}

.case-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.category {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.case-identity h2 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(45px, 7vw, 76px);
  line-height: .94;
  letter-spacing: -.035em;
}

.case-range {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.case-role {
  margin: 10px 0 0;
  color: var(--text);
  line-height: 1.5;
}

.fact-grid {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact {
  min-width: 0;
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid var(--line);
}

.fact-label {
  display: block;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.fact-value {
  display: block;
  margin-top: 8px;
  line-height: 1.4;
}

.case-summary-section {
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.case-summary {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.55;
}


/* TIMELINE */

.timeline-section {
  padding-top: 62px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.timeline-header .eyebrow {
  margin-bottom: 10px;
}

.timeline-header h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 52px);
}

.timeline {
  margin-top: 40px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 104px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline-event {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 46px;
  position: relative;
  padding-bottom: 42px;
}

.timeline-event::before {
  content: "";
  position: absolute;
  left: 99px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline-date {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
}

.timeline-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 24px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-type,
.event-status {
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.event-status {
  color: var(--gold);
}

.timeline-card h4 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
}

.timeline-card p {
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.event-details {
  margin-top: 20px;
  border-top: 1px solid var(--softline);
}

.event-detail {
  padding-top: 13px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  font-size: 13px;
}

.event-detail strong {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.source-list {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.source-link {
  color: var(--text);
  font-size: 12px;
  text-underline-offset: 4px;
}


/* METHODOLOGY */

.methodology {
  padding: 94px 24px;
  border-top: 1px solid var(--line);
}

.reading-width {
  max-width: var(--reading);
  margin: auto;
}

.methodology h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1;
}

.methodology p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}


/* DIRECTORY */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,0,0,.7);
}

.directory-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: min(430px, 92vw);
  padding: 28px;
  overflow-y: auto;
  background: #0d1013;
  border-right: 1px solid var(--line);
  transform: translateX(-102%);
  transition: transform 180ms ease;
}

.directory-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.drawer-header .eyebrow {
  margin-bottom: 8px;
}

.drawer-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 40px;
}

.directory-mode {
  margin-top: 14px;
  display: inline-flex;
  border: 1px solid var(--softline);
}

.directory-mode-button {
  min-width: 74px;
  padding: 8px 11px;
  border: 0;
  border-right: 1px solid var(--softline);
  background: transparent;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.directory-mode-button:last-child {
  border-right: 0;
}

.directory-mode-button.active {
  background: var(--surface);
  color: var(--gold);
}

.directory-mode-button:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

.directory-record-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
}

.directory-category-name {
  margin: 0;
  line-height: 1.4;
}

.directory-category-count {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
}

.directory-record-group + .directory-record-group {
  margin-top: 26px;
}

.directory-empty {
  color: var(--muted);
  line-height: 1.5;
}

.search-label {
  display: block;
  margin-top: 32px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.directory-search {
  width: 100%;
  margin-top: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
}

.alphabet-nav {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.alphabet-button {
  min-width: 29px;
  padding: 6px;
  border: 1px solid var(--softline);
  background: transparent;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.alphabet-button.active {
  border-color: var(--gold);
  color: var(--gold);
}

.directory-results {
  margin-top: 26px;
}

.directory-letter {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
}

.directory-person {
  width: 100%;
  padding: 15px 0;
  border: 0;
  border-top: 1px solid var(--softline);
  background: transparent;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
}

.directory-person-name {
  font-family: var(--serif);
  font-size: 18px;
}

.directory-person-category {
  max-width: 130px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
  text-transform: uppercase;
}


/* FOOTER */

.prototype-notice {
  width: min(calc(100% - 48px), var(--content));
  margin: auto;
  padding: 30px 0 70px;
}

.prototype-notice p {
  padding: 17px;
  border: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
}

.site-footer {
  width: min(calc(100% - 48px), var(--content));
  min-height: 88px;
  margin: auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--quiet);
  font-size: 11px;
}


/* MOBILE */

@media (max-width: 700px) {

  .site-header {
    width: calc(100% - 32px);
    height: 74px;
  }

  .brand-box {
    width: 41px;
    height: 41px;
  }

  .brand-word {
    font-size: 15px;
  }

  .hero {
    padding: 64px 20px 58px;
  }

  .hero h1 {
    font-size: clamp(58px, 20vw, 86px);
  }

  .hero-subtitle {
    margin-top: 27px;
    font-size: 26px;
  }

  .hero-copy {
    margin-top: 28px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .principles {
    margin-top: 48px;
    display: grid;
    gap: 9px;
  }

  .browse,
  .case-file {
    width: calc(100% - 32px);
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 40px;
  }

  .case-labels {
    display: grid;
    gap: 6px;
  }

  .case-identity h2 {
    margin-top: 11px;
    font-size: clamp(35px, 11vw, 50px);
  }

  .fact-grid {
    margin-top: 36px;
    grid-template-columns: 1fr 1fr;
  }

  .fact {
    padding: 17px 14px 17px 0;
  }

  .case-summary-section {
    padding: 40px 0;
  }

  .case-summary {
    font-size: 19px;
  }

  .timeline-section {
    padding-top: 48px;
  }

  .timeline-header h3 {
    font-size: 36px;
  }

  .timeline {
    margin-top: 30px;
  }

  .timeline::before {
    left: 13px;
  }

  .timeline-event {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 34px;
    padding-bottom: 30px;
  }

  .timeline-event::before {
    left: 9px;
    top: 5px;
  }

  .timeline-date {
    font-size: 10px;
  }

  .timeline-card {
    padding: 20px 18px;
  }

  .timeline-card h4 {
    font-size: 23px;
  }

  .event-detail {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .methodology {
    padding: 68px 20px;
  }

  .methodology h2 {
    font-size: 39px;
  }

  .prototype-notice,
  .site-footer {
    width: calc(100% - 32px);
  }

  .directory-drawer {
    padding: 22px 19px;
  }
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ==========================================================
   RECEIPTS FINAL INVESTIGATIVE UX
   Horizontal = navigation
   Vertical = chronology
   ========================================================== */

:root {
  --receipt-max: 1180px;
}

.receipts-hero-wordmark,
.hero-wordmark,
.hero .receipts-display,
.hero-display-logo {
  font-size: clamp(3rem, 12vw, 7rem) !important;
  line-height: .86 !important;
  margin-bottom: 1rem !important;
}

@media (max-width: 700px) {
  .receipts-hero-wordmark,
  .hero-wordmark,
  .hero .receipts-display,
  .hero-display-logo {
    font-size: clamp(2.6rem, 16vw, 4.8rem) !important;
  }
}

/* Intentional horizontal rails only */

.subject-rail,
.record-rail,
.browse-track,
.category-rail {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.subject-rail::-webkit-scrollbar,
.record-rail::-webkit-scrollbar,
.browse-track::-webkit-scrollbar,
.category-rail::-webkit-scrollbar {
  display: none;
}

/* Swipe affordance */

.receipts-swipe-indicator {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: .65rem 0 1rem;
  font-size: .72rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  opacity: .62;
}

.receipts-swipe-line {
  position: relative;
  width: 52px;
  height: 1px;
  background: currentColor;
}

.receipts-swipe-line::before,
.receipts-swipe-line::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
}

.receipts-swipe-line::before {
  left: 0;
  border-left: 1px solid currentColor;
  transform: rotate(-45deg);
}

.receipts-swipe-line::after {
  right: 0;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* Entire record card is interactive */

[data-subject-id],
.record-card,
.subject-card {
  cursor: pointer;
}

[data-subject-id]:focus-visible,
.record-card:focus-visible,
.subject-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Case navigation */

.receipts-case-navigation {
  margin: 1.5rem 0 1.25rem;
}

.receipts-axis-label {
  margin: 0 0 .55rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .55;
}

.category-rail {
  display: flex;
  gap: .55rem;
  padding: .1rem .1rem .8rem;
  scroll-snap-type: none;
}

.receipts-category-chip {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid rgba(127,127,127,.32);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: .55rem .85rem;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  scroll-snap-align: none;
  white-space: nowrap;
}

.receipts-category-chip:hover,
.receipts-category-chip:focus-visible {
  border-color: currentColor;
}

.receipts-category-chip.is-active {
  background: currentColor;
}

.receipts-category-chip.is-active span {
  filter: invert(1);
}

/* Vertical chronology */

.receipts-chronology {
  position: relative;
  margin-top: 1.1rem;
  padding-left: 1.35rem;
}

.receipts-chronology::before {
  content: "";
  position: absolute;
  top: .4rem;
  bottom: .4rem;
  left: .28rem;
  width: 1px;
  background: rgba(127,127,127,.28);
}

.receipts-event {
  position: relative;
  margin: 0 0 1rem;
  border: 1px solid rgba(127,127,127,.22);
  border-radius: 12px;
  overflow: hidden;
  background: inherit;
}

.receipts-event::before {
  content: "";
  position: absolute;
  left: -1.35rem;
  top: 1.15rem;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--background, Canvas);
}

.receipts-event summary {
  list-style: none;
  cursor: pointer;
  padding: .9rem 1rem;
}

.receipts-event summary::-webkit-details-marker {
  display: none;
}

.receipts-event-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
}

.receipts-event-date {
  flex: 0 0 auto;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .62;
}

.receipts-event-title {
  margin: .25rem 0 0;
  font-size: .98rem;
  line-height: 1.3;
}

.receipts-event-status {
  display: inline-block;
  margin-top: .45rem;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  opacity: .68;
}

.receipts-event-body {
  padding: 0 1rem 1rem;
  font-size: .88rem;
  line-height: 1.55;
}

.receipts-event-meta {
  display: grid;
  gap: .55rem;
  margin-top: .85rem;
}

.receipts-event-meta-row {
  display: grid;
  grid-template-columns: 95px minmax(0,1fr);
  gap: .7rem;
}

.receipts-event-meta-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .55;
}

.receipts-event-sources {
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(127,127,127,.2);
}

.receipts-event-sources a {
  display: block;
  margin-top: .35rem;
  overflow-wrap: anywhere;
}

.receipts-empty-chronology {
  padding: 1.25rem;
  border: 1px solid rgba(127,127,127,.2);
  border-radius: 12px;
  font-size: .86rem;
  opacity: .7;
}

/* Remove obsolete carousel UI if old markup remains */

.carousel-prev,
.carousel-next,
.previous-record,
.next-record,
.record-counter,
.carousel-counter,
.open-case-file {
  display: none !important;
}

@media (max-width: 700px) {
  .receipts-chronology {
    padding-left: 1.05rem;
  }

  .receipts-event::before {
    left: -1.05rem;
  }

  .receipts-event-topline {
    display: block;
  }

  .receipts-event-date {
    display: block;
    margin-bottom: .2rem;
  }

  .receipts-event-meta-row {
    grid-template-columns: 1fr;
    gap: .15rem;
  }

  .category-rail {
    margin-right: -1rem;
    padding-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .subject-rail,
  .record-rail,
  .browse-track,
  .category-rail {
    scroll-behavior: auto !important;
  }
}

/* RECEIPTS SAFE INLINE SPEECH START */

/*
 * Speech controls are intentionally inline.
 *
 * Do not apply display:flex, display:grid, width,
 * position, or layout rules to the parent label.
 *
 * The speaker must never control the case layout.
 */

.receipts-speech-button {
  appearance: none;
  -webkit-appearance: none;

  display: inline-grid;
  place-items: center;

  width: 1.3rem;
  height: 1.3rem;

  margin: 0 0 0 0.42rem;
  padding: 0;

  border: 0;
  border-radius: 0;

  background: transparent;

  color: var(
    --gold,
    var(
      --accent,
      #c9a15b
    )
  );

  cursor: pointer;

  vertical-align: -0.18em;

  opacity: 0.9;

  line-height: 1;
}

.receipts-speech-button svg {
  display: block;

  width: 1.08rem;
  height: 1.08rem;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;

  pointer-events: none;
}

.receipts-speech-button:hover {
  opacity: 1;
}

.receipts-speech-button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.receipts-speech-button.is-speaking {
  opacity: 1;
}

.receipts-no-speech
.receipts-speech-button {
  display: none !important;
}

@media (max-width: 700px) {
  .receipts-speech-button {
    width: 1.2rem;
    height: 1.2rem;

    margin-left: 0.36rem;

    vertical-align: -0.16em;
  }

  .receipts-speech-button svg {
    width: 1rem;
    height: 1rem;
  }
}

@media (
  prefers-reduced-motion: reduce
) {
  .receipts-speech-button {
    transition: none;
  }
}

/* RECEIPTS SAFE INLINE SPEECH END */

/* RECEIPTS HOW IT WORKS COLOR START */

.receipts-how-it-works,
.receipts-how-it-works:link,
.receipts-how-it-works:visited,
.receipts-how-it-works:hover,
.receipts-how-it-works:active,
.receipts-how-it-works:focus,
.hero-actions a,
.hero-actions a:link,
.hero-actions a:visited,
.hero-actions a:hover,
.hero-actions a:active,
.hero-actions a:focus {
  color: inherit;
  text-decoration: none;
}

/* RECEIPTS HOW IT WORKS COLOR END */

/* RECEIPTS BRAND UI START */

.receipts-brand-mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  overflow: visible !important;
  font-size: 0 !important;
}

.receipts-brand-logo {
  display: block !important;
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

/* RECEIPTS BRAND UI END */

/* RECEIPTS MOBILE RECORD FIT START */

.receipts-responsive-subject-name {
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

@media (max-width: 700px) {
  .receipts-responsive-subject-name {
    font-size: clamp(
      2.7rem,
      12vw,
      3.55rem
    ) !important;

    line-height: 0.96 !important;
    letter-spacing: -0.025em !important;
  }

  .receipts-responsive-subject-name[
    data-receipts-name-length="long"
  ] {
    font-size: clamp(
      2.35rem,
      10.5vw,
      3rem
    ) !important;

    line-height: 0.97 !important;
  }

  .receipts-responsive-subject-name[
    data-receipts-name-length="very-long"
  ] {
    font-size: clamp(
      2rem,
      9vw,
      2.6rem
    ) !important;

    line-height: 0.99 !important;
  }
}

/* RECEIPTS MOBILE RECORD FIT END */

/* RECEIPTS SOURCE LINK POLISH START */

.receipts-event-sources a,
.receipts-event-sources a:link,
.receipts-event-sources a:visited {
  color: var(
    --paper,
    var(
      --cream,
      #f2eee5
    )
  ) !important;

  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(
    242,
    238,
    229,
    0.48
  );

  transition:
    color 140ms ease,
    text-decoration-color 140ms ease;
}

.receipts-event-sources a:hover,
.receipts-event-sources a:focus-visible,
.receipts-event-sources a:active {
  color: var(
    --gold,
    var(
      --accent,
      #c9a15b
    )
  ) !important;

  text-decoration-color: currentColor;
}

.receipts-event-sources a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

/* RECEIPTS SOURCE LINK POLISH END */

/* RECEIPTS DIRECTORY MODE - VISUAL CLEANUP */

.directory-mode {
  display: inline-flex;
  margin-top: 12px;
  border: 1px solid var(--softline);
  background: transparent;
}

.directory-mode-button {
  appearance: none;
  -webkit-appearance: none;
  min-width: 76px;
  padding: 7px 11px;
  border: 0;
  border-right: 1px solid var(--softline);
  border-radius: 0;
  background: transparent;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
}

.directory-mode-button:last-child {
  border-right: 0;
}

.directory-mode-button:hover {
  color: var(--text);
}

.directory-mode-button.active {
  background: var(--surface);
  color: var(--gold);
}

.directory-mode-button:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}


/* RECEIPTS DIRECTORY MODE - CORRECTIVE OVERRIDE */

.directory-drawer .drawer-header {
  align-items: flex-start;
}

.directory-drawer #closeDirectory {
  appearance: none !important;
  -webkit-appearance: none !important;

  flex: 0 0 auto !important;
  align-self: flex-start !important;

  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 11px 14px !important;

  border: 1px solid var(--line) !important;
  border-radius: 0 !important;

  background: transparent !important;
  color: var(--text) !important;

  font: inherit !important;
  line-height: 1.2 !important;

  box-shadow: none !important;
  cursor: pointer !important;
}

.directory-drawer .directory-mode {
  display: inline-flex !important;
  align-items: stretch !important;

  margin-top: 12px !important;
  padding: 0 !important;

  border: 1px solid var(--softline) !important;
  border-radius: 0 !important;

  background: #0d1013 !important;

  overflow: hidden !important;
}

.directory-drawer .directory-mode-button {
  appearance: none !important;
  -webkit-appearance: none !important;

  display: block !important;

  width: auto !important;
  height: auto !important;
  min-width: 76px !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 8px 12px !important;

  border: 0 !important;
  border-right: 1px solid var(--softline) !important;
  border-radius: 0 !important;

  background: #0d1013 !important;
  color: var(--quiet) !important;

  font-family: var(--mono) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;

  box-shadow: none !important;
  cursor: pointer !important;
}

.directory-drawer .directory-mode-button:last-child {
  border-right: 0 !important;
}

.directory-drawer .directory-mode-button:hover {
  color: var(--text) !important;
}

.directory-drawer .directory-mode-button.active {
  background: var(--surface) !important;
  color: var(--gold) !important;
}

.directory-drawer .directory-mode-button:focus-visible {
  outline: 1px solid var(--gold) !important;
  outline-offset: -2px !important;
}


/* ==========================================================
   RECEIPTS DIRECTORY - FINAL SUBJECT / RECORD HIERARCHY
   ========================================================== */

.directory-drawer .drawer-header {
  align-items: flex-start !important;
}

.directory-drawer .directory-mode {
  margin-top: 4px !important;
}

.directory-drawer .directory-mode-button {
  min-width: 88px !important;
}

.directory-drawer .search-label {
  margin-top: 28px !important;
}

.directory-drawer .directory-record-heading {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 12px !important;

  margin: 0 !important;
  padding: 10px 0 8px !important;

  border: 0 !important;
}

.directory-drawer .directory-category-name {
  margin: 0 !important;

  color: var(--gold) !important;

  font-family: var(--mono) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;

  letter-spacing: .16em !important;
  text-transform: uppercase !important;
}

.directory-drawer .directory-category-count {
  flex: 0 0 auto !important;

  color: var(--quiet) !important;

  font-family: var(--mono) !important;
  font-size: 9px !important;
  font-weight: 500 !important;
}

.directory-drawer .directory-record-group {
  margin-top: 0 !important;
}

.directory-drawer
.directory-record-group
+
.directory-record-group {
  margin-top: 22px !important;
}

.directory-drawer
.directory-record-group
.directory-person:first-of-type {
  border-top: 1px solid var(--softline) !important;
}

/* RECEIPTS DIRECTORY THREE-MODE SUPPORT */

.directory-drawer .alphabet-nav[hidden] {
  display: none !important;
}

/* RECEIPTS VERIFIED CONNECTIONS START */

.receipts-connections-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.receipts-connections-header {
  max-width: 760px;
}

.receipts-connections-header h3 {
  margin: .3rem 0 .7rem;
}

.receipts-connections-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.receipts-connections-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.receipts-connection {
  border: 1px solid var(--line);
  padding: 1rem;
  background: var(--surface);
}

.receipts-connection-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.receipts-connection-type {
  color: var(--gold);
}

.receipts-connection-endpoint-type {
  color: var(--quiet);
}

.receipts-connection-name {
  margin-top: .7rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.receipts-connection-counterpart {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.receipts-connection-counterpart:hover,
.receipts-connection-counterpart:focus-visible {
  text-decoration: underline;
}

.receipts-connection-counterpart-static {
  color: inherit;
}

.receipts-connection-meta {
  display: grid;
  gap: .35rem;
  margin-top: .9rem;
}

.receipts-connection-meta-row {
  display: grid;
  grid-template-columns: minmax(120px, .35fr) 1fr;
  gap: .8rem;
  font-size: .82rem;
}

.receipts-connection-meta-row span {
  color: var(--quiet);
}

.receipts-connection-meta-row strong {
  font-weight: 650;
}

.receipts-connection-summary {
  margin: 1rem 0 0;
  line-height: 1.6;
}

.receipts-connection-evidence {
  margin-top: 1rem;
}

.receipts-connection-evidence > span,
.receipts-connection-sources > span {
  display: block;
  margin-bottom: .35rem;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.receipts-connection-evidence p {
  margin: 0;
  line-height: 1.6;
}

.receipts-connection-sources {
  margin-top: 1rem;
}

.receipts-connection-sources a {
  display: block;
  margin-top: .35rem;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .receipts-connection-meta-row {
    grid-template-columns: 1fr;
    gap: .15rem;
  }
}

/* RECEIPTS VERIFIED CONNECTIONS END */

/* ==========================================================
   RECEIPTS REFERENCE + CATEGORY RAIL REPAIR
   ========================================================== */

body.reference-open {
  overflow: hidden;
}

.reference-modal[hidden] {
  display: none !important;
}

.reference-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: grid;
  place-items: stretch end;
}

.reference-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.reference-panel {
  position: relative;
  z-index: 1;

  width: min(560px, 100vw);
  height: 100dvh;
  padding: 30px 28px 36px;

  overflow-y: auto;
  overscroll-behavior: contain;

  background: var(--background, #090b0c);
  border-left: 1px solid var(--softline);

  color: var(--text);
}

.reference-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;

  padding-bottom: 24px;
  border-bottom: 1px solid var(--softline);
}

.reference-header h2 {
  margin: 8px 0 0;

  font-family: inherit;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 500;
  line-height: 1.05;
}

.reference-close {
  appearance: none;
  -webkit-appearance: none;

  flex: 0 0 auto;

  min-height: 44px;
  padding: 0 16px;

  border: 1px solid var(--softline);
  border-radius: 0;

  background: transparent;
  color: var(--text);

  font: inherit;
  cursor: pointer;
}

.reference-close:hover,
.reference-close:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.reference-intro {
  margin: 25px 0 28px;

  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.reference-search-label {
  display: block;

  margin-bottom: 8px;

  color: var(--quiet);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reference-search {
  appearance: none;
  -webkit-appearance: none;

  display: block;
  width: 100%;
  min-height: 54px;
  padding: 0 16px;

  border: 1px solid var(--softline);
  border-radius: 0;

  background: var(--surface);
  color: var(--text);

  font: inherit;
  font-size: 16px;
}

.reference-search:focus {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
  border-color: var(--gold);
}

.reference-status {
  min-height: 20px;
  margin: 16px 0;

  color: var(--quiet);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reference-results {
  display: grid;
  gap: 12px;
}

.reference-result {
  padding: 18px;

  border: 1px solid var(--softline);
  background: transparent;
}

.reference-result-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.reference-term {
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.reference-category {
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
}

.reference-name {
  margin: 10px 0 0;

  color: var(--text);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
}

.reference-summary {
  margin: 10px 0 0;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.reference-aliases {
  margin-top: 12px;

  color: var(--quiet);
  font-size: 12px;
  line-height: 1.5;
}

.reference-source {
  display: inline-block;

  margin-top: 14px;

  color: var(--gold);
  font-size: 12px;
  text-decoration: none;
}

.reference-source:hover,
.reference-source:focus-visible {
  text-decoration: underline;
}

.reference-empty {
  display: grid;
  gap: 7px;

  padding: 20px;

  border: 1px solid var(--softline);

  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.reference-empty strong {
  color: var(--text);
}

/*
  Category rails are always one horizontal row.
  Touch scrolls natively. Mouse and pen can drag.
*/

.category-rail {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;

  width: 100% !important;
  max-width: 100% !important;

  overflow-x: auto !important;
  overflow-y: hidden !important;

  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;

  touch-action: pan-x !important;

  scrollbar-width: none;

  cursor: grab;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.category-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none !important;
  user-select: none;
  -webkit-user-select: none;
}

.category-rail .receipts-category-chip {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.category-rail:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 6px;
}

@media (max-width: 700px) {
  .reference-panel {
    width: 100vw;
    padding:
      max(24px, env(safe-area-inset-top))
      20px
      max(28px, env(safe-area-inset-bottom));
  }

  .reference-header {
    gap: 16px;
  }

  .reference-result-topline {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-rail {
    scroll-behavior: auto !important;
  }
}


/* RECEIPTS 20260817 LINK + BRAND REPAIR */

.brand,
.brand:link,
.brand:visited,
.brand:hover,
.brand:active,
.brand:focus,
.directory-person,
.directory-person:link,
.directory-person:visited,
.directory-person:hover,
.directory-person:active,
.directory-person:focus,
.record-header-actions a,
.record-header-actions a:link,
.record-header-actions a:visited,
.record-header-actions a:hover,
.record-header-actions a:active,
.record-header-actions a:focus,
.rank-nav-link,
.rank-nav-link:link,
.rank-nav-link:visited,
.rank-nav-link:hover,
.rank-nav-link:active,
.rank-nav-link:focus {
  color: inherit;
  text-decoration: none;
}

.directory-person-name,
.directory-person-category,
.brand-word {
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.directory-person {
  width: 100%;
  box-sizing: border-box;
}

.directory-person-category {
  text-align: right;
}

@media (max-width: 700px) {
  .brand-logo {
    width: 38px;
    height: 38px;
  }
}


/* RECEIPTS QUICK REFERENCE DETAIL 20260817 */

.reference-result-button {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.reference-result-button:hover,
.reference-result-button:focus-visible {
  border-color: var(--gold);
  outline: none;
}

.reference-detail {
  padding: 6px 0 32px;
}

.reference-back {
  appearance: none;
  -webkit-appearance: none;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.reference-detail-title {
  margin: 10px 0 10px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
}

.reference-detail-meta {
  margin: 0 0 24px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reference-detail-summary {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.reference-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.reference-keywords span {
  padding: 6px 8px;
  border: 1px solid var(--softline);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}


/* RECEIPTS QUICK REFERENCE DETAIL FINAL */

.reference-result-button {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.reference-result-button:hover,
.reference-result-button:focus-visible {
  border-color: var(--gold);
  outline: none;
}

.reference-detail {
  padding: 4px 0 32px;
}

.reference-back {
  appearance: none;
  -webkit-appearance: none;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.reference-detail-title {
  margin: 10px 0 12px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
}

.reference-detail-meta {
  margin: 0 0 24px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reference-detail-summary {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.reference-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.reference-keywords span {
  padding: 6px 8px;
  border: 1px solid var(--softline);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.3;
  text-transform: uppercase;
}


/* RECEIPTS FINAL DIRECTORY ACCORDION 20260817 */

/* Correct DOB / founding-date alignment */

.directory-person {
  align-items: center !important;
}

.directory-person-category {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: stretch;
  min-width: 110px;
  line-height: 1.2 !important;
  white-space: nowrap;
}


/* Directory accordion */

.directory-accordion-group {
  border-top: 1px solid var(--softline);
}

.directory-accordion-group:last-child {
  border-bottom: 1px solid var(--softline);
}

.directory-accordion-toggle {
  appearance: none;
  -webkit-appearance: none;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  width: 100%;
  min-height: 52px;
  padding: 13px 0;

  border: 0;
  background: transparent;

  color: var(--text);
  text-align: left;

  cursor: pointer;
}

.directory-accordion-label {
  color: var(--gold);

  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;

  letter-spacing: .15em;
  text-transform: uppercase;
}

.directory-accordion-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.directory-accordion-count {
  color: var(--quiet);

  font-family: var(--mono);
  font-size: 9px;
}

.directory-accordion-chevron {
  width: 14px;

  color: var(--gold);

  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.directory-accordion-content {
  padding-bottom: 8px;
}

.directory-accordion-content .directory-person:first-child {
  border-top: 1px solid var(--softline);
}


/* Methodology heading matches hero subtitle typography */

#methodology h2 {
  font-family: var(--serif) !important;
  font-size: clamp(30px, 4vw, 42px) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}


/* Quick Reference */

.reference-result {
  padding: 0 !important;
  overflow: hidden;
}

.reference-result-toggle {
  appearance: none;
  -webkit-appearance: none;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  width: 100%;
  padding: 16px 18px;

  border: 0;
  background: transparent;

  color: inherit;
  text-align: left;

  cursor: pointer;
}

.reference-result-main {
  display: grid;
  gap: 5px;
}

.reference-result .reference-name {
  margin: 0 !important;

  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.reference-result-chevron {
  flex: 0 0 auto;

  color: var(--gold);
  font-size: 18px;
}

.reference-result > .reference-summary {
  margin: 0 !important;
  padding: 0 18px 17px;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.reference-expanded {
  padding: 16px 18px 18px;

  border-top: 1px solid var(--softline);
}

.reference-detail-meta {
  margin: 0;

  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;

  letter-spacing: .09em;
  text-transform: uppercase;
}

.reference-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  margin-top: 14px;
}

.reference-keywords span {
  padding: 5px 7px;

  border: 1px solid var(--softline);

  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;

  text-transform: uppercase;
}


/* RECEIPTS DIRECTORY CORRECTION 20260817 */

#methodology .eyebrow,
#methodology h2 {
  text-align: center !important;
}


/* Records: date/founded value alignment */

.directory-person {
  align-items: center !important;
}

.directory-person-category {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  align-self: stretch !important;

  min-width: 112px;

  line-height: 1.15 !important;
  white-space: nowrap;
}


/* Footer */

.site-footer {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 20px;
}

.site-footer > :first-child {
  justify-self: start;
}

.site-footer .footer-doctrine {
  justify-self: center;

  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-align: center;
  text-transform: uppercase;
}

.site-footer > :last-child {
  justify-self: end;
}

@media (max-width: 700px) {
  .site-footer {
    grid-template-columns: 1fr auto 1fr !important;
    gap: 8px;
  }

  .site-footer .footer-doctrine {
    font-size: 7px;
    letter-spacing: .08em;
  }
}


/* RECEIPTS REFERENCE PARITY 20260817 */

.reference-header-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.reference-header-centered h2 {
  width: 100%;
  margin: 0;
  text-align: center;
}


/* RECEIPTS LANDING WORDMARK CENTER */
.hero h1 {
  text-align: center;
}

/* Record category links preserve RECEIPTS visual language */
.record-category-link,
.record-category-link:link,
.record-category-link:visited,
.record-category-link:hover,
.record-category-link:active,
.record-category-link:focus {
  color: inherit;
  text-decoration: none;
}

.record-category-link:hover,
.record-category-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.record-category-separator {
  opacity: 0.62;
}

/* Records drawer path to encyclopedia page */
.directory-category-page-link,
.directory-category-page-link:link,
.directory-category-page-link:visited {
  display: block;
  padding: 0.8rem 0;
  color: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0.72;
}

.directory-category-page-link:hover,
.directory-category-page-link:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Reference begins directly with search */
.reference-panel {
  padding-top: 1.4rem;
}


/* RECEIPTS GLOBAL HEADER V2 */
.receipts-global-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.header-directory-trigger {
  justify-self: start;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.header-directory-trigger .brand-logo {
  display: block;
}

.header-wordmark,
.header-wordmark:link,
.header-wordmark:visited,
.header-reference {
  color: var(--gold);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-decoration: none;
}

.header-wordmark {
  justify-self: center;
}

.header-reference {
  justify-self: end;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header-wordmark:hover,
.header-wordmark:focus-visible,
.header-reference:hover,
.header-reference:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.directory-record-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
}

.directory-category-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.38rem;
  min-width: 0;
}

.directory-category-count {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  opacity: 1;
}

.directory-accordion-chevron {
  justify-self: end;
}

@media (max-width: 640px) {
  .header-wordmark,
  .header-reference {
    font-size: 0.78rem;
    letter-spacing: 0.13em;
  }
}


/* RECEIPTS RECORD DIRECTORY INLINE COUNT */
.directory-record-toggle {
  grid-template-columns: 1fr auto;
}

.directory-record-toggle .directory-category-name {
  display: inline-flex;
  align-items: baseline;
  justify-self: start;
  gap: 0.42rem;
}

.directory-record-toggle .directory-category-count {
  color: var(--gold);
  opacity: 1;
  font-variant-numeric: tabular-nums;
}

.directory-record-toggle .directory-accordion-chevron {
  justify-self: end;
}


/* RECEIPTS FINAL HEADER POLISH START */

.receipts-global-header {
  box-sizing: border-box;
  padding-left: clamp(1.35rem, 3.25vw, 3rem);
  padding-right: clamp(1.35rem, 3.25vw, 3rem);
}

.header-directory-trigger {
  justify-self: start;
}

.header-wordmark {
  justify-self: center;
}

.header-reference {
  justify-self: end;
}

/* RECEIPTS FINAL HEADER POLISH END */


/* RECEIPTS RECORD SPEECH CSS START */

.record-name-with-speech {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.record-speech-heading {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.record-speech-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
}

.record-page-speech {
  width: 1.9rem;
  height: 1.9rem;
}

.record-speech-button svg {
  display: block;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

.record-page-speech svg {
  width: 1.15rem;
  height: 1.15rem;
}

.record-speech-button:hover,
.record-speech-button:focus-visible,
.record-speech-button.speaking {
  opacity: 1;
}

.record-speech-button.speaking {
  filter: brightness(1.25);
}

.record-speech-button:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 0.22rem;
}

@media (max-width: 700px) {
  .record-name-with-speech {
    gap: 0.45rem;
  }

  .record-speech-button {
    width: 1.55rem;
    height: 1.55rem;
  }

  .record-page-speech {
    width: 1.8rem;
    height: 1.8rem;
  }
}

/* RECEIPTS RECORD SPEECH CSS END */


/* RECEIPTS IMPACT SCOPE START */

.harm-item-wide {
  grid-column: 1 / -1;
  width: 100%;
}

@media (max-width: 700px) {
  .harm-item-wide {
    grid-column: 1;
  }
}

/* RECEIPTS IMPACT SCOPE END */


/* RECEIPTS VERIFIED RECORD CATEGORY RAIL */

.record-category-audit-section {
  margin-top: 1.5rem;
}

.record-category-audit-rail {
  width: 100%;
}

.record-category-audit-rail .record-category-audit-chip {
  flex: 0 0 auto;
  cursor: default;
  user-select: none;
}

.record-category-audit-rail .record-category-audit-chip:hover {
  transform: none;
}

/* RECEIPTS GLOBAL FOOTER TYPOGRAPHY START */

.site-footer > span {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .13em;
  line-height: 1.4;
}

.site-footer .footer-doctrine {
  justify-self: center;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .13em;
  line-height: 1.4;
  text-align: center;
  text-transform: none;
}

@media (max-width: 700px) {
  .site-footer > span,
  .site-footer .footer-doctrine {
    font-size: 7px;
    letter-spacing: .08em;
  }
}

/* RECEIPTS GLOBAL FOOTER TYPOGRAPHY END */


/* RECEIPTS VERIFIED CATEGORY INTERACTION V2 */

.record-category-audit-chip {
  cursor: pointer;
}

.record-category-audit-chip[aria-pressed="true"] {
  border-color: currentColor;
}

.record-category-audit-chip:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.record-entry[hidden],
.record-timeline-entry[hidden] {
  display: none !important;
}


/* RECEIPTS GLOBAL REFERENCE SVG START */

.header-reference {
  line-height: 0;
}

.header-reference-icon {
  display: block;
  width: 24px;
  height: 24px;
  background: currentColor;

  -webkit-mask:
    url("./assets/reference.svg?v=20260817-reference-thin-v2")
    center / contain
    no-repeat;

  mask:
    url("./assets/reference.svg?v=20260817-reference-thin-v2")
    center / contain
    no-repeat;
}

@media (max-width: 700px) {
  .header-reference-icon {
    width: 22px;
    height: 22px;
  }
}

/* RECEIPTS GLOBAL REFERENCE SVG END */

/* RECEIPTS GLOBAL HEADER PARITY START */

.receipts-global-header {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  align-items: center !important;
}

.receipts-global-header .brand,
.receipts-global-header .header-reference {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.receipts-global-header .brand {
  justify-self: start !important;
}

.receipts-global-header .header-wordmark {
  justify-self: center !important;
  text-align: center !important;
  margin: 0 !important;
}

.receipts-global-header .header-reference {
  justify-self: end !important;
}

.receipts-global-header .brand-logo,
.receipts-global-header .header-reference-icon {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

.rank-nav-link.is-empty {
  pointer-events: none;
  opacity: .32;
}

.rank-nav-link.is-empty .rank-nav-name {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
}

@media (max-width: 700px) {
  .receipts-global-header {
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
  }

  .receipts-global-header .brand,
  .receipts-global-header .header-reference {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .receipts-global-header .brand-logo,
  .receipts-global-header .header-reference-icon {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
  }
}

/* RECEIPTS GLOBAL HEADER PARITY END */


/* RECEIPTS FOUR UI DEFECT FIX START */

/*
  Header controls:
  same control geometry,
  larger matching visual icons.
*/
.receipts-global-header {
  grid-template-columns:
    48px minmax(0, 1fr) 48px !important;
}

.receipts-global-header .brand,
.receipts-global-header .header-reference {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
}

.receipts-global-header .brand-logo,
.receipts-global-header .header-reference-icon {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
}

/*
  Header receipt is a control, not a navigation link.
*/
.header-directory-trigger {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/*
  Same receipt artwork provides an obvious directory close.
*/
.directory-drawer #closeDirectory.drawer-close-icon {
  appearance: none !important;
  -webkit-appearance: none !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  flex: 0 0 auto !important;

  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  background: transparent !important;
  color: var(--gold) !important;

  cursor: pointer !important;
}

.directory-drawer #closeDirectory.drawer-close-icon .brand-logo {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
}

/*
  Reference now has an explicit book-icon close control.
*/
.reference-panel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin: 0 0 18px;
}

.reference-panel-label {
  margin: 0 !important;
}

.reference-panel-close {
  appearance: none;
  -webkit-appearance: none;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;

  margin: 0;
  padding: 0;

  border: 0;
  background: transparent;
  color: var(--gold);

  cursor: pointer;
}

.reference-panel-close .header-reference-icon {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
}

/*
  Reference behaves like the Directory drawer on narrow screens:
  it leaves visible backdrop instead of consuming the entire viewport.
*/
@media (max-width: 700px) {
  .receipts-global-header {
    grid-template-columns:
      44px minmax(0, 1fr) 44px !important;
  }

  .receipts-global-header .brand,
  .receipts-global-header .header-reference {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .receipts-global-header .brand-logo,
  .receipts-global-header .header-reference-icon {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
  }

  .directory-drawer #closeDirectory.drawer-close-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .directory-drawer #closeDirectory.drawer-close-icon .brand-logo {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
  }

  .reference-panel {
    width: min(430px, 92vw) !important;
  }

  .reference-panel-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .reference-panel-close .header-reference-icon {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
  }
}

/* RECEIPTS FOUR UI DEFECT FIX END */


/* RECEIPTS PANEL CLEANUP V3 START */

/*
  Directory closes by clicking the dark backdrop or Escape.
  No redundant close icon.
*/
.directory-drawer .drawer-header {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

.directory-drawer .drawer-header > div {
  width: 100% !important;
}

.directory-drawer .drawer-header .eyebrow {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.directory-drawer .directory-mode {
  display: flex !important;
  width: max-content !important;
  max-width: 100% !important;

  margin-left: auto !important;
  margin-right: auto !important;
}

/*
  Reference closes by clicking the dark backdrop or Escape.
  No redundant book close icon inside the panel.
*/
.reference-panel-title {
  width: 100% !important;
  margin: 0 0 22px !important;
  text-align: center !important;
}

.reference-panel-controls,
.drawer-close-icon,
.reference-panel-close {
  display: none !important;
}

/* RECEIPTS PANEL CLEANUP V3 END */


/* RECEIPTS RECORD ACCORDION POLISH START */

/*
  One clean header separator only.
*/
body[data-record-type] .receipts-global-header {
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
}

body[data-record-type] .receipts-global-header::before,
body[data-record-type] .receipts-global-header::after {
  display: none !important;
  content: none !important;
}

/*
  Case Summary uses the same reading family as the rest of
  the record instead of the oversized serif treatment.
*/
body[data-record-type] .case-summary {
  max-width: 880px !important;
  font-family: var(--sans, system-ui, sans-serif) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  color: var(--text) !important;
}

/*
  Every major record block ends with one separator.
  No stacked top and bottom borders between sections.
*/
body[data-record-type] .case-summary-section,
body[data-record-type] .record-category-audit-section,
body[data-record-type] .record-section {
  border-top: 0 !important;
  border-bottom: 1px solid var(--line) !important;
}

body[data-record-type] .record-category-audit-section {
  margin-top: 0 !important;
  padding-top: 34px !important;
  padding-bottom: 34px !important;
}

body[data-record-type] .record-section {
  padding-top: 50px;
  padding-bottom: 50px;
}

/*
  Accordion heading contract.
*/
body[data-record-type] .record-collapse-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  cursor: pointer;
  user-select: none;
}

body[data-record-type] .case-summary-section > .record-collapse-toggle {
  justify-content: flex-start;
}

body[data-record-type] .record-collapse-toggle:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 8px;
}

/*
  Pure CSS chevron so the section state is obvious.
*/
body[data-record-type] .record-collapse-chevron {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 150ms ease;
  color: var(--gold);
}

body[data-record-type]
.record-collapsible:not(.is-collapsed)
.record-collapse-chevron {
  transform: rotate(225deg);
}

/*
  Preserve the heading and separator when collapsed.
*/
body[data-record-type]
.record-collapsible.is-collapsed
> :not(.record-collapse-toggle) {
  display: none !important;
}

body[data-record-type]
.record-collapsible.is-collapsed {
  padding-bottom: 28px !important;
}

/*
  Case Summary keeps the existing intro-to-summary rhythm.
*/
body[data-record-type] .case-summary-section {
  padding-top: 42px !important;
  padding-bottom: 42px !important;
}

/*
  Do not let speaker buttons inherit the whole heading click
  treatment visually.
*/
body[data-record-type]
.record-collapse-toggle
.receipts-speech-button {
  flex: 0 0 auto;
}

/* RECEIPTS RECORD ACCORDION POLISH END */





/* RECEIPTS RECORD CARD RHYTHM V6 START */

/* =========================================================
   HEADER: TRUE THREE-WAY ALIGNMENT
   ========================================================= */

body[data-record-type] .receipts-global-header {
  display: grid !important;

  grid-template-columns:
    52px minmax(0, 1fr) 52px !important;

  align-items: center !important;

  padding-top: 0 !important;
  padding-bottom: 0 !important;

  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
}

body[data-record-type]
.receipts-global-header
.brand,

body[data-record-type]
.receipts-global-header
.header-reference {
  justify-self: center !important;
  align-self: center !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 48px !important;
  height: 48px !important;

  margin: 0 !important;
  padding: 0 !important;
}

body[data-record-type]
.receipts-global-header
> :nth-child(2) {
  justify-self: center !important;
  align-self: center !important;

  margin: 0 !important;

  transform: scale(1.07);
  transform-origin: center;
}

/* =========================================================
   REMOVE THE SECTION-LINE SYSTEM
   ========================================================= */

body[data-record-type]
.case-summary-section,

body[data-record-type]
.record-section {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/* =========================================================
   SEVEN MAJOR RECORD SECTIONS = SUBTLE CARDS
   ========================================================= */

body[data-record-type]
.case-summary-section.record-collapsible,

body[data-record-type]
.record-section.record-collapsible {
  box-sizing: border-box !important;

  width: 100% !important;

  margin: 12px 0 !important;
  padding: 0 !important;

  border: 1px solid rgba(255, 255, 255, 0.065) !important;
  border-radius: 12px !important;

  background:
    rgba(255, 255, 255, 0.012) !important;

  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.12) !important;

  overflow: hidden !important;
}

/*
  Kill the padding responsible for the giant collapsed gaps.
*/
body[data-record-type]
.case-summary-section.record-collapsible.is-collapsed,

body[data-record-type]
.record-section.record-collapsible.is-collapsed {
  min-height: 0 !important;

  margin-top: 12px !important;
  margin-bottom: 12px !important;

  padding: 0 !important;
}

/* =========================================================
   CARD HEADER ROW
   ========================================================= */

body[data-record-type]
.case-summary-section
> .record-collapse-toggle,

body[data-record-type]
.record-section
> .record-section-header.record-collapse-toggle {
  box-sizing: border-box !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  width: 100% !important;
  min-height: 58px !important;

  margin: 0 !important;
  padding: 18px 20px !important;

  border: 0 !important;
}

/*
  No internal separator underneath the heading.
*/
body[data-record-type]
.record-section-header {
  border: 0 !important;
}

/*
  Keep heading + speaker naturally together.
*/
body[data-record-type]
.record-collapse-toggle
.eyebrow {
  margin: 0 !important;
}

/*
  Chevron stays at the far right.
*/
body[data-record-type]
.record-collapse-chevron {
  margin-left: auto !important;
}

/* =========================================================
   EXPANDED CARD CONTENT
   ========================================================= */

body[data-record-type]
.case-summary-section.record-collapsible:not(.is-collapsed)
> .case-summary {
  box-sizing: border-box !important;

  max-width: none !important;

  margin: 0 !important;
  padding:
    0 20px 22px !important;
}

body[data-record-type]
.record-section.record-collapsible:not(.is-collapsed)
> .record-section-header
+ * {
  box-sizing: border-box !important;

  width: 100% !important;

  margin-top: 0 !important;
  padding:
    0 20px 22px !important;
}

/*
  Content rows can retain their own evidence-entry separators,
  but the section itself no longer creates stacked double lines.
*/
body[data-record-type]
.record-section.record-collapsible
> .record-section-header {
  border-bottom: 0 !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {
  body[data-record-type]
  .receipts-global-header {
    grid-template-columns:
      46px minmax(0, 1fr) 46px !important;
  }

  body[data-record-type]
  .case-summary-section.record-collapsible,

  body[data-record-type]
  .record-section.record-collapsible {
    margin: 10px 0 !important;
    border-radius: 10px !important;
  }

  body[data-record-type]
  .case-summary-section
  > .record-collapse-toggle,

  body[data-record-type]
  .record-section
  > .record-section-header.record-collapse-toggle {
    min-height: 54px !important;
    padding: 16px !important;
  }

  body[data-record-type]
  .case-summary-section.record-collapsible:not(.is-collapsed)
  > .case-summary,

  body[data-record-type]
  .record-section.record-collapsible:not(.is-collapsed)
  > .record-section-header
  + * {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: 18px !important;
  }
}

/* RECEIPTS RECORD CARD RHYTHM V6 END */
