:root {
  --red: #e41b23;
  --ink: #101010;
  --paper: #fff;
  --soft: #f4f3f1;
  --line: #c9c7c3;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}
a {
  color: inherit;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
.masthead {
  border-bottom: 1px solid #111;
}
.mast-grid {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  text-decoration: none;
}
.brand-name {
  font: 700 1.55rem/1 var(--serif);
}
.brand-name span {
  display: block;
}
.brand-sub,
.eyebrow,
.meta {
  font: 700 0.72rem/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand-sub {
  margin-top: 5px;
  font-size: 0.58rem;
}
.mast-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-search {
  display: flex;
  border: 1px solid #222;
}
.header-search input {
  border: 0;
  padding: 10px 12px;
  min-width: 240px;
}
.header-search button,
.menu-btn,
.button {
  border: 0;
  background: #111;
  color: #fff;
  padding: 11px 15px;
  font: 700 0.72rem var(--sans);
  letter-spacing: 0.08em;
}
.nav {
  border-bottom: 1px solid #bbb;
}
.nav-inner {
  display: flex;
  gap: 24px;
  overflow: auto;
}
.nav a {
  padding: 12px 0;
  text-decoration: none;
  white-space: nowrap;
  font: 700 0.68rem var(--sans);
  letter-spacing: 0.07em;
}
.breadcrumbs {
  padding: 20px 0;
  font-size: 0.78rem;
  color: #666;
}
.page-head {
  padding: 34px 0 28px;
  border-bottom: 1px solid #111;
}
.page-head h1,
.entity-hero h1 {
  font: 600 clamp(2.5rem, 6vw, 5.4rem)/0.92 var(--serif);
  margin: 10px 0 14px;
  max-width: 970px;
}
.page-head p,
.entity-dek {
  font: 500 clamp(1.05rem, 1.5vw, 1.3rem)/1.5 var(--serif);
  max-width: 760px;
}
.demo-note {
  font: 700 0.7rem var(--sans) !important;
  color: #8c1116;
  letter-spacing: 0.06em;
}
.search-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 42px;
  padding: 34px 0 70px;
}
.search-box {
  display: flex;
  border: 2px solid #111;
  margin-bottom: 20px;
}
.search-box input {
  flex: 1;
  border: 0;
  padding: 17px;
  font: 500 1.08rem var(--sans);
  min-width: 0;
}
.search-box button {
  background: var(--red);
  border: 0;
  color: #fff;
  padding: 0 22px;
  font-weight: 700;
}
.filters {
  background: var(--soft);
  padding: 20px;
  align-self: start;
}
.filters h2 {
  font: 600 1.5rem var(--serif);
  margin: 0 0 15px;
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.field select,
.field input {
  width: 100%;
  padding: 10px;
  border: 1px solid #999;
  background: white;
}
.result-summary {
  display: flex;
  justify-content: space-between;
  border-bottom: 3px solid #111;
  padding: 12px 0;
}
.result {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.result img {
  width: 112px;
  height: 78px;
  object-fit: cover;
  filter: grayscale(1);
}
.result h2 {
  font: 600 clamp(1.35rem, 2.5vw, 2rem)/1.05 var(--serif);
  margin: 5px 0;
}
.result p {
  margin: 6px 0;
  color: #494949;
}
.result-type {
  color: var(--red);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}
.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.chip {
  border: 1px solid #aaa;
  padding: 5px 8px;
  font-size: 0.68rem;
  text-decoration: none;
  background: #fff;
}
.empty {
  padding: 55px 0;
  border-bottom: 1px solid #111;
}
.autocomplete {
  position: absolute;
  z-index: 5;
  background: white;
  border: 1px solid #222;
  width: min(520px, calc(100vw - 40px));
  box-shadow: 0 8px 30px #0002;
}
.autocomplete a {
  display: block;
  padding: 11px 14px;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
}
.entity-hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 50px;
  padding: 40px 0;
}
.entity-mark {
  background: #111;
  color: #fff;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font: 600 5rem var(--serif);
}
.entity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 50px;
  padding-bottom: 70px;
}
.section {
  padding: 27px 0;
  border-top: 2px solid #111;
}
.section h2 {
  font: 600 clamp(1.8rem, 4vw, 3.2rem)/1 var(--serif);
  margin: 0 0 20px;
}
.record {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 17px 0;
  border-top: 1px solid #ccc;
  text-decoration: none;
}
.record time {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
}
.record h3 {
  font: 600 1.35rem/1.1 var(--serif);
  margin: 0 0 5px;
}
.status {
  display: inline-block;
  border: 1px solid #111;
  padding: 5px 8px;
  font-size: 0.68rem;
  font-weight: 700;
}
.side-card {
  padding: 20px;
  background: var(--soft);
  margin-bottom: 20px;
}
.side-card h3 {
  font: 600 1.4rem var(--serif);
  margin-top: 0;
}
.sticky {
  position: sticky;
  top: 20px;
}
.timeline {
  border-left: 2px solid var(--red);
  margin-left: 6px;
  padding-left: 24px;
}
.timeline div {
  position: relative;
  padding: 0 0 24px;
}
.timeline div:before {
  content: "";
  position: absolute;
  left: -30px;
  top: 3px;
  width: 10px;
  height: 10px;
  background: var(--red);
}
.timeline time {
  font-weight: 700;
  color: var(--red);
}
.archive-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px 0;
}
.archive-controls select,
.archive-controls input {
  padding: 11px;
  border: 1px solid #777;
}
.archive-list {
  padding-bottom: 70px;
}
.archive-group h2 {
  font: 600 clamp(2rem, 4vw, 3.4rem) var(--serif);
  border-bottom: 3px solid #111;
  padding-bottom: 8px;
}
.document-card {
  border: 1px solid #111;
  padding: 28px;
}
.document-card h1 {
  font: 600 clamp(2.5rem, 6vw, 5rem)/0.95 var(--serif);
  margin: 12px 0;
}
.ad-slot {
  display: none;
}
.ad-slot.has-ad {
  display: flex;
  min-height: 120px;
  background: #111;
  color: #fff;
  align-items: center;
  justify-content: center;
  border-left: 12px solid var(--red);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
}
.footer {
  background: #111;
  color: white;
  padding: 36px 0;
}
.mobile-only {
  display: none;
}
.footer .container {
  display: flex;
  justify-content: space-between;
}
.footer span {
  color: #aaa;
  font-size: 0.78rem;
}
@media (max-width: 760px) {
  .mobile-only.has-ad {
    display: flex;
  }
  .container {
    width: min(100% - 28px, 1180px);
  }
  .mast-grid {
    min-height: 58px;
  }
  .brand-sub {
    display: none;
  }
  .header-search {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .nav {
    display: none;
  }
  .nav.open {
    display: block;
  }
  .nav-inner {
    display: grid;
    gap: 0;
  }
  .page-head {
    padding-top: 24px;
  }
  .search-shell,
  .entity-layout,
  .entity-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .filters {
    order: -1;
  }
  .filters[data-collapsed="true"] > *:not(h2):not(.filter-toggle) {
    display: none;
  }
  .result {
    grid-template-columns: 82px 1fr;
  }
  .result img {
    width: 82px;
    height: 68px;
  }
  .result p {
    display: none;
  }
  .entity-mark {
    width: 120px;
    aspect-ratio: 1;
    font-size: 3rem;
  }
  .sticky {
    position: static;
  }
  .record {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .archive-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .archive-controls input {
    grid-column: 1/-1;
  }
  .footer .container {
    display: grid;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; } }
@media (max-width:760px){
  .search-shell{grid-template-columns:minmax(0,1fr)}
  .search-shell>section,.search-box,.result-summary,#results{min-width:0;max-width:100%}
  .search-box input{width:0;flex:1 1 0;padding:11px;font-size:1rem}
  .search-box button{flex:0 0 auto;padding:0 10px;font-size:.75rem}
  .result{grid-template-columns:82px minmax(0,1fr)}
  .result h2,.result small{overflow-wrap:anywhere}
}
