:root {
  --ink: #18243a;
  --ink-soft: #49556a;
  --paper: #f7f4ed;
  --paper-deep: #eee9de;
  --surface: #fffdf8;
  --line: #d9d3c7;
  --wine: #7b4052;
  --wine-deep: #603040;
  --gold: #b79355;
  --success: #356755;
  --danger: #a03838;
  --shadow: 0 24px 65px rgba(24, 36, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(183, 147, 85, 0.13), transparent 26rem),
    linear-gradient(180deg, #faf8f3 0%, var(--paper) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 211, 199, 0.82);
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--wine);
  border-radius: 50% 50% 50% 14%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 600;
}

.brand-copy small {
  margin-top: 0.24rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.primary-nav a {
  color: var(--ink-soft);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--wine);
}

.menu-button {
  display: none;
}

.search-hero {
  position: relative;
  padding: clamp(3.6rem, 7vw, 7rem) 0 clamp(4rem, 8vw, 7.5rem);
}

.search-hero::before {
  position: absolute;
  top: 3.5rem;
  right: 1.5rem;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(183, 147, 85, 0.35);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.search-hero::after {
  position: absolute;
  top: 5.6rem;
  right: 3.6rem;
  width: 106px;
  height: 106px;
  border: 1px solid rgba(123, 64, 82, 0.24);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.eyebrow {
  margin-bottom: 0.7rem;
  color: var(--wine);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.06rem;
}

.hero-intro {
  max-width: 660px;
  margin-bottom: 2.2rem;
  color: var(--ink-soft);
  font-size: clamp(1.03rem, 2vw, 1.24rem);
}

.search-form {
  position: relative;
  z-index: 2;
  padding: clamp(1.35rem, 3vw, 2.4rem);
  border: 1px solid rgba(217, 211, 199, 0.85);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.names-grid,
.details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.details-grid {
  margin-top: 1rem;
}

.field label,
.period-fieldset legend {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.86rem;
  font-weight: 750;
}

.field label span {
  color: var(--ink-soft);
  font-weight: 500;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0.78rem 0.9rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
  background: #fff;
}

.field select {
  padding-right: 2.4rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("select-arrow.svg");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 14px;
  cursor: pointer;
}

.field input:focus,
.field select:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(123, 64, 82, 0.14);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-hint,
.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
}

.field-hint {
  color: var(--ink-soft);
}

.field-error {
  color: var(--danger);
}

.period-fieldset {
  margin: 1.4rem 0 0;
  padding: 0;
  border: 0;
}

.period-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.period-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.period-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.period-option span {
  display: flex;
  min-height: 74px;
  padding: 0.9rem 1rem;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.period-option span:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.period-option input:checked + span {
  border-color: var(--wine);
  background: rgba(123, 64, 82, 0.07);
  box-shadow: inset 3px 0 0 var(--wine);
}

.period-option input:focus-visible + span {
  outline: 3px solid rgba(123, 64, 82, 0.2);
  outline-offset: 2px;
}

.period-option small {
  margin-top: 0.15rem;
  color: var(--ink-soft);
}

.privacy-row {
  display: flex;
  margin-top: 1.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.privacy-row p {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 50px;
  padding: 0.78rem 1.15rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 750;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.primary-button {
  color: #fff;
  border: 1px solid var(--wine);
  background: var(--wine);
}

.primary-button:hover,
.primary-button:focus-visible {
  border-color: var(--wine-deep);
  background: var(--wine-deep);
  transform: translateY(-1px);
}

.secondary-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--wine);
  color: var(--wine);
}

.results-section {
  margin-bottom: 4rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  border-top: 4px solid var(--wine);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.results-heading,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.results-heading > div,
.section-heading > div {
  max-width: 720px;
}

.results-heading h2 {
  max-width: 760px;
}

.results-summary {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
}

.active-search {
  display: flex;
  margin: 1.7rem 0;
  padding: 0.8rem 0;
  flex-wrap: wrap;
  gap: 0.55rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.search-chip,
.source-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
}

.search-chip {
  padding: 0.36rem 0.68rem;
  color: var(--ink-soft);
  background: var(--paper-deep);
}

.result-list {
  display: grid;
  gap: 0;
}

.result-card {
  display: grid;
  padding: 1.4rem 0;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr) auto;
  align-items: center;
  gap: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.result-card:first-child {
  border-top: 1px solid var(--line);
}

.source-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.source-title-row h3 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.source-tag {
  padding: 0.23rem 0.55rem;
  color: var(--success);
  border: 1px solid rgba(53, 103, 85, 0.32);
  background: rgba(53, 103, 85, 0.08);
}

.source-description {
  max-width: 610px;
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.source-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
}

.source-meta span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.source-meta strong {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
}

.source-link {
  white-space: nowrap;
  color: var(--wine);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.source-link:hover,
.source-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.empty-state {
  padding: 2.4rem 0;
  text-align: center;
}

.content-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.section-heading > p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.location-grid {
  display: grid;
  margin-top: 2.2rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.location-grid a {
  min-height: 150px;
  padding: 1.2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.location-grid a:hover,
.location-grid a:focus-visible {
  color: #fff;
  background: var(--wine);
}

.location-grid strong,
.location-grid span {
  display: block;
}

.location-grid strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.location-grid span {
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.location-grid a:hover span,
.location-grid a:focus-visible span {
  color: rgba(255, 255, 255, 0.78);
}

.steps-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.compact {
  align-items: start;
}

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps-list li {
  display: grid;
  padding: 1.35rem 0;
  grid-template-columns: 54px 1fr;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.steps-list > li > span,
.guide-list article > span {
  color: var(--wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
}

.steps-list strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.steps-list p {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.guide-list {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.guide-list article {
  display: grid;
  padding: 1.25rem 0;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.guide-list h3 {
  margin-bottom: 0.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.guide-list p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.guide-list a {
  color: var(--wine);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.guide-list a:hover,
.guide-list a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.site-footer {
  color: #fff;
  background: var(--ink);
}

.footer-inner {
  display: grid;
  padding: 3rem 0;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 3rem;
}

.footer-brand .brand-mark {
  background: var(--wine);
}

.footer-brand .brand-copy small,
.footer-inner p,
.footer-inner nav a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner > div > p {
  max-width: 370px;
  margin: 1rem 0 0;
  font-size: 0.84rem;
}

.footer-inner nav {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.footer-inner nav a {
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-inner nav a:hover,
.footer-inner nav a:focus-visible {
  color: #fff;
}

.footer-meta p:last-child {
  margin-top: 1.2rem;
  color: #fff;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .search-hero::before,
  .search-hero::after {
    display: none;
  }

  .location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .source-meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .steps-section {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 68px;
  }

  .brand-copy small {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    min-height: 44px;
    padding: 0.45rem 0.2rem;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink);
    border: 0;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
  }

  .menu-lines,
  .menu-lines::before,
  .menu-lines::after {
    display: block;
    width: 19px;
    height: 2px;
    background: currentColor;
    content: "";
  }

  .menu-lines {
    position: relative;
  }

  .menu-lines::before {
    position: absolute;
    top: -6px;
  }

  .menu-lines::after {
    position: absolute;
    top: 6px;
  }

  .primary-nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .names-grid,
  .details-grid,
  .period-options {
    grid-template-columns: 1fr;
  }

  .privacy-row,
  .results-heading,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .results-section {
    margin-right: -0.5rem;
    margin-left: -0.5rem;
  }

  .result-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .source-meta {
    grid-column: auto;
    grid-row: auto;
  }

  .source-link {
    justify-self: start;
  }

  .guide-list article {
    grid-template-columns: 36px 1fr;
  }

  .guide-list article > a {
    grid-column: 2;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-meta {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(100% - 1.25rem, 1180px);
  }

  h1 {
    font-size: 2.65rem;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .location-grid a {
    min-height: 112px;
  }

  .source-meta {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Product and content extensions — built on the original design system. */

:focus-visible {
  outline: 3px solid rgba(123, 64, 82, 0.28);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.details-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inline-button {
  width: fit-content;
  margin-top: 0.8rem;
  text-decoration: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.result-tools {
  display: flex;
  margin: 0 0 0.8rem;
  align-items: end;
  gap: 0.8rem;
}

.compact-field {
  width: min(240px, 100%);
}

.compact-field label {
  margin-bottom: 0.3rem;
}

.compact-field select {
  min-height: 44px;
  padding-block: 0.55rem;
}

.result-copy {
  min-width: 0;
}

.why-source,
.source-limitation {
  max-width: 650px;
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.why-source strong,
.source-limitation strong {
  color: var(--ink);
}

.show-more {
  margin-top: 1.2rem;
}

.alternatives {
  margin-top: 3rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}

.subsection-heading h3 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 500;
}

.section-action {
  margin: 1.2rem 0 0;
  text-align: right;
}

.page-hero {
  padding: clamp(3.3rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5.5rem);
}

.page-hero h1 {
  max-width: 900px;
}

.narrow-shell {
  width: min(850px, calc(100% - 2rem));
}

.breadcrumbs {
  display: flex;
  padding-top: 1.1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.breadcrumbs a {
  color: var(--wine);
  text-underline-offset: 0.2rem;
}

.review-note {
  margin: -0.5rem 0 1.2rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.text-link {
  color: var(--wine);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.card-grid,
.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.info-card,
.directory-card,
.source-summary,
.notice-card {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.82);
}

.info-card h2,
.directory-card h2,
.source-summary h3,
.notice-card h2,
.prose-grid h2,
.article-body h2,
.related-links h2 {
  margin-bottom: 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.info-card p,
.directory-card p,
.source-summary p,
.notice-card p,
.prose-grid p,
.article-body p,
.article-body li {
  color: var(--ink-soft);
}

.source-summary-grid {
  display: grid;
  margin-top: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.source-summary h3 {
  margin-bottom: 0;
}

.access-badge {
  padding: 0.2rem 0.5rem;
  color: var(--wine);
  border: 1px solid rgba(123, 64, 82, 0.24);
  border-radius: 999px;
  background: rgba(123, 64, 82, 0.06);
  font-size: 0.7rem;
  font-weight: 750;
}

.source-summary dl,
.directory-card dl {
  margin: 1rem 0;
}

.source-summary dl div,
.directory-card dl div {
  display: grid;
  padding: 0.38rem 0;
  grid-template-columns: 105px 1fr;
  gap: 0.7rem;
  border-top: 1px solid var(--line);
}

.source-summary dt,
.directory-card dt {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.source-summary dd,
.directory-card dd {
  margin: 0;
  font-size: 0.8rem;
}

.prose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.2rem 3rem;
}

.notice-card {
  border-top: 3px solid var(--wine);
}

.related-links {
  display: flex;
  padding: 2.5rem 0 4.5rem;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
}

.related-links a {
  color: var(--wine);
  font-weight: 700;
  text-underline-offset: 0.2rem;
}

.article-page .page-hero {
  padding-bottom: 3rem;
}

.article-body {
  padding-bottom: 4.5rem;
}

.article-body section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.article-body p,
.article-body ul,
.article-body ol {
  max-width: 720px;
}

.article-body li + li {
  margin-top: 0.5rem;
}

.article-body .notice-card {
  margin-top: 2rem;
}

.directory-grid {
  align-items: start;
}

.directory-card h2 {
  margin-bottom: 0;
}

.directory-card .source-limitation {
  margin-bottom: 1rem;
}

.footer-inner {
  grid-template-columns: 1.2fr 0.72fr 0.8fr 1fr;
  gap: 2rem;
}

.footer-inner nav strong {
  margin-bottom: 0.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

@media (max-width: 1000px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .details-grid,
  .card-grid,
  .directory-grid,
  .source-summary-grid,
  .prose-grid {
    grid-template-columns: 1fr;
  }

  .result-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-field {
    width: 100%;
  }

  .section-action {
    text-align: left;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .narrow-shell {
    width: min(100% - 1.25rem, 850px);
  }

  .button-row,
  .button-row .inline-button {
    width: 100%;
  }

  .source-summary dl div,
  .directory-card dl div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}
