@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&family=Spectral:wght@500;600&display=swap");

@import url("../../../../../02_设计系统/David-Legal%20Design%20System/styles.css");

:root {
  --ink: #15171c;
  --paper: #ffffff;
  --gray-50: #f6f7f9;
  --gray-100: #edeff2;
  --gray-200: #e0e3e8;
  --gray-300: #c9ced6;
  --gray-400: #9aa1ac;
  --gray-500: #6b7280;
  --gray-600: #4b525c;
  --gray-700: #333941;
  --gray-800: #23272e;
  --accent: #1c3d6e;
  --accent-hover: #16314f;
  --accent-wash: #e4eaf2;
  --success: #0e7553;
  --danger: #a42e27;
  --font-serif: "Spectral", "Songti SC", "STSong", Georgia, serif;
  --font-sans: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-xs: 0 1px 2px rgba(21, 23, 28, 0.05);
  --shadow-md: 0 4px 16px rgba(21, 23, 28, 0.08);
  --focus: 0 0 0 3px rgba(28, 61, 110, 0.28);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

main {
  display: flex;
  flex-direction: column;
}

/* Keep the take-away manifest as the last item on the materials-kit homepage. */
#kit {
  order: 2;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-color: rgba(28, 61, 110, 0.35);
  text-underline-offset: 0.18em;
  transition: color 160ms cubic-bezier(0.2, 0, 0, 1), text-decoration-color 160ms cubic-bezier(0.2, 0, 0, 1);
}

a:hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[contenteditable="true"]:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

button,
input {
  font: inherit;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--gray-200);
}

.topbar-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-dot {
  color: var(--accent);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
}

.topnav a {
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.topnav a:hover {
  color: var(--ink);
}

.hero {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.hero-inner {
  padding: 72px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  align-items: end;
  gap: 64px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: -0.03em;
  line-height: 1.03;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(29px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h3 {
  margin: 0 0 10px;
  font-size: 23px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h4 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.lede {
  max-width: 64ch;
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.65;
}

.hero-note {
  border-top: 3px solid var(--accent);
  background: var(--paper);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

.hero-note p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.hero-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--gray-200);
  border-width: 1px 0;
}

.stat {
  padding: 24px;
  border-right: 1px solid var(--gray-200);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
}

.stat span {
  color: var(--gray-500);
  font-size: 13px;
}

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--gray-100);
}

.section.subtle {
  background: var(--gray-50);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  gap: 64px;
  align-items: start;
  margin-bottom: 36px;
}

.section-head p {
  margin: 2px 0 0;
  color: var(--gray-600);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

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

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

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

.card {
  min-width: 0;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.card.interactive {
  transition: border-color 180ms cubic-bezier(0.2, 0, 0, 1), box-shadow 180ms cubic-bezier(0.2, 0, 0, 1), transform 180ms cubic-bezier(0.2, 0, 0, 1);
}

.card.interactive:hover {
  transform: translateY(-2px);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.kicker,
.meta,
.mono {
  font-family: var(--font-mono);
}

.kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta {
  color: var(--gray-500);
  font-size: 12px;
  line-height: 1.5;
}

.badge {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.25;
}

.badge.accent {
  border-color: rgba(28, 61, 110, 0.35);
  background: var(--accent-wash);
  color: var(--accent-hover);
}

.badge.success {
  border-color: rgba(14, 117, 83, 0.3);
  color: var(--success);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}

.target-card .booth {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.target-card .why {
  min-height: 4.8em;
  color: var(--gray-600);
  font-size: 14px;
}

.target-card .hook {
  margin: 16px -24px -24px;
  padding: 16px 24px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  color: var(--gray-700);
  font-size: 13px;
}

.target-card .hook strong {
  color: var(--ink);
}

.route {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 28px;
  margin: 0;
}

.route dt,
.route dd {
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--gray-200);
}

.route dt {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.route dd {
  color: var(--gray-700);
}

.route dd strong {
  color: var(--ink);
}

.manifest {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--gray-200);
}

.manifest-index {
  color: var(--gray-400);
  font-family: var(--font-mono);
  font-size: 13px;
}

.manifest h3 {
  margin: 0 0 3px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
}

.manifest p {
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.button,
button.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1), border-color 160ms cubic-bezier(0.2, 0, 0, 1), transform 120ms cubic-bezier(0.2, 0, 0, 1);
}

.button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #fff;
}

.button:active {
  transform: translateY(1px);
}

.button.secondary {
  border-color: var(--gray-300);
  background: var(--paper);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
  color: var(--ink);
}

.button.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.callout {
  padding: 20px 22px;
  border-left: 3px solid var(--accent);
  background: var(--gray-50);
}

.callout p {
  margin: 0;
  color: var(--gray-700);
}

.callout strong {
  color: var(--ink);
}

.warning {
  border-left-color: var(--danger);
}

.checklist,
.plain-list,
.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 11px 0 11px 30px;
  border-top: 1px solid var(--gray-100);
}

.checklist li::before {
  position: absolute;
  top: 16px;
  left: 2px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--gray-400);
  content: "";
}

.plain-list li {
  padding: 10px 0;
  border-top: 1px solid var(--gray-100);
}

.numbered {
  counter-reset: item;
}

.numbered li {
  position: relative;
  padding-left: 42px;
  counter-increment: item;
}

.numbered li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: counter(item, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
}

.source-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--gray-200);
}

.source-list .source-type {
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.source-list p {
  margin: 4px 0 0;
  color: var(--gray-500);
  font-size: 13px;
}

.copy-block {
  position: relative;
  padding: 22px 88px 22px 22px;
  border: 1px solid var(--gray-200);
  background: var(--paper);
}

.copy-block + .copy-block {
  margin-top: 12px;
}

.copy-block p {
  margin: 0;
  color: var(--gray-700);
  white-space: pre-line;
}

.copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 14px;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--gray-50);
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.quick-nav {
  position: sticky;
  z-index: 20;
  top: 70px;
  background: var(--paper);
  border-bottom: 1px solid var(--gray-200);
}

.quick-nav .container {
  display: flex;
  gap: 22px;
  overflow-x: auto;
}

.quick-nav a {
  padding: 13px 0;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.quick-nav a:hover {
  color: var(--ink);
}

.footer {
  padding: 36px 0 48px;
  color: var(--gray-500);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--gray-200);
  padding-top: 20px;
}

.research-note {
  padding: 18px 20px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: 13px;
}

.research-note strong {
  color: var(--ink);
}

.directory-hero {
  background: var(--ink);
  border-bottom: 1px solid #303640;
  color: var(--gray-200);
}

.directory-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  align-items: end;
  gap: 64px;
  padding: 72px 0 64px;
}

.directory-hero h1 {
  color: #fff;
}

.directory-hero .lede {
  color: #c9ced6;
}

.directory-hero .button.secondary {
  border-color: #6b7280;
  background: transparent;
  color: #fff;
}

.directory-hero .button.secondary:hover {
  border-color: #c9ced6;
  background: #23272e;
}

.directory-hero .hero-note {
  border-top-color: #6e91c5;
  background: #23272e;
  box-shadow: none;
}

.directory-hero .hero-note strong {
  color: #fff;
}

.directory-hero .hero-note p {
  color: #c9ced6;
}

.directory-stats {
  border-color: #303640;
}

.directory-stats .stat {
  border-right-color: #303640;
}

.directory-stats .stat b {
  color: #fff;
}

.directory-stats .stat span {
  color: #c9ced6;
}

.directory-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) minmax(160px, 0.8fr) minmax(120px, 0.45fr) auto;
  align-items: end;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.directory-toolbar label {
  display: block;
  margin-bottom: 6px;
}

.directory-toolbar input,
.directory-toolbar select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
}

.directory-toolbar input:focus,
.directory-toolbar select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.directory-reset {
  margin-bottom: 0;
  white-space: nowrap;
}

.directory-results-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: 22px 0;
}

.directory-results-meta p {
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.directory-results-meta p:first-child {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.directory-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.directory-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
}

.directory-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.tier,
.directory-card .booth {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
}

.tier {
  padding: 4px 7px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  color: var(--gray-600);
}

.tier-priority {
  border-color: rgba(28, 61, 110, 0.4);
  background: var(--accent-wash);
  color: var(--accent-hover);
}

.tier-game {
  border-color: rgba(14, 117, 83, 0.28);
  color: var(--success);
}

.tier-partner {
  color: var(--gray-700);
}

.directory-card .booth {
  color: var(--accent);
  font-weight: 500;
  text-align: right;
}

.directory-card h3 {
  margin-bottom: 5px;
  font-size: 22px;
}

.directory-en {
  min-height: 1.62em;
  margin: 0;
  color: var(--gray-500);
  font-size: 12px;
}

.directory-tags {
  min-height: 27px;
  margin-top: 14px;
}

.directory-intro {
  margin: 15px 0 0;
  color: var(--gray-600);
  font-size: 13px;
}

.company-intro,
.official-fields {
  margin-top: 12px;
  color: var(--gray-600);
  font-size: 13px;
}

.company-intro summary,
.official-fields summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
}

.company-intro p {
  margin: 9px 0 0;
  white-space: pre-line;
}

.directory-cue {
  margin: 16px -22px 0;
  padding: 14px 22px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 13px;
}

.directory-cue strong {
  color: var(--ink);
}

.official-fields {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--gray-100);
}

.official-fields dl {
  margin: 10px 0 0;
}

.official-fields dl div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--gray-100);
}

.official-fields dt {
  color: var(--gray-500);
}

.official-fields dd {
  margin: 0;
  color: var(--gray-700);
  overflow-wrap: anywhere;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.directory-load-row {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.animate-in {
  animation: rise 440ms cubic-bezier(0.2, 0, 0, 1) both;
}

.animate-delay-1 {
  animation-delay: 80ms;
}

.animate-delay-2 {
  animation-delay: 150ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.print-body {
  background: var(--gray-100);
}

.print-toolbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.print-toolbar .button.secondary {
  border-color: var(--gray-600);
  background: transparent;
  color: #fff;
}

.print-stack {
  padding: 28px 0 60px;
}

.sheet {
  position: relative;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto 24px;
  padding: 15mm 16mm 14mm;
  overflow: hidden;
  background: #fff;
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-md);
}

.sheet.compact {
  padding: 12mm 14mm;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8mm;
  padding-bottom: 5mm;
  border-bottom: 1px solid var(--gray-200);
}

.sheet-head h1 {
  max-width: none;
  margin: 0;
  font-size: 28px;
  line-height: 1.14;
}

.sheet-head .eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
}

.sheet-meta {
  min-width: 45mm;
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
  text-align: right;
}

.sheet h2 {
  margin: 0 0 4mm;
  font-size: 19px;
  line-height: 1.2;
}

.sheet h3 {
  margin: 0 0 2mm;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}

.sheet p,
.sheet li,
.sheet td,
.sheet th {
  font-size: 10.5px;
  line-height: 1.48;
}

.sheet p {
  margin: 0 0 2.5mm;
}

.sheet .card {
  padding: 5mm;
  border-radius: var(--radius-md);
  box-shadow: none;
}

.sheet .grid-2,
.sheet .grid-3,
.sheet .grid-4 {
  gap: 4mm;
}

.sheet .checklist li {
  padding: 2.4mm 0 2.4mm 7mm;
}

.sheet .checklist li::before {
  top: 3.6mm;
  width: 3.2mm;
  height: 3.2mm;
}

.sheet-footer {
  position: absolute;
  right: 16mm;
  bottom: 7mm;
  left: 16mm;
  display: flex;
  justify-content: space-between;
  padding-top: 3mm;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.form-line {
  display: inline-block;
  min-width: 25mm;
  min-height: 1.3em;
  border-bottom: 1px solid var(--gray-400);
  vertical-align: bottom;
}

.writing-box {
  min-height: 18mm;
  border: 1px solid var(--gray-300);
  background: var(--paper);
}

.edit-field {
  border-bottom: 1px dashed var(--accent);
  background: var(--accent-wash);
}

.qr-placeholder {
  display: grid;
  width: 34mm;
  height: 34mm;
  place-items: center;
  padding: 4mm;
  border: 1px dashed var(--gray-400);
  background: var(--gray-50);
  color: var(--gray-500);
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

.qr-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px dashed var(--gray-400);
  border-left: 1px dashed var(--gray-400);
}

.cut-card {
  min-height: 61mm;
  padding: 7mm;
  border-right: 1px dashed var(--gray-400);
  border-bottom: 1px dashed var(--gray-400);
}

@media (max-width: 900px) {
  .hero-inner,
  .section-head,
  .directory-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

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

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

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--gray-200);
  }

  .sheet {
    transform-origin: top center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .topbar-inner {
    min-height: 60px;
  }

  .topnav {
    display: none;
  }

  .hero-inner {
    padding: 52px 0 48px;
  }

  h1 {
    font-size: 42px;
  }

  .section {
    padding: 52px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .directory-grid {
    grid-template-columns: 1fr;
  }

  .directory-toolbar {
    grid-template-columns: 1fr;
  }

  .directory-results-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

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

  .stat {
    padding: 18px 14px;
  }

  .manifest {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .manifest .button {
    grid-column: 2;
    justify-self: start;
  }

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

  .route dt {
    padding-bottom: 0;
  }

  .route dd {
    padding-top: 6px;
    border-top: 0;
  }

  .source-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .copy-block {
    padding: 56px 18px 18px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .print-stack {
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  html,
  body.print-body {
    width: 210mm;
    margin: 0;
    padding: 0;
    background: #fff;
  }

  .no-print,
  .print-toolbar {
    display: none !important;
  }

  .print-stack {
    padding: 0;
  }

  .sheet {
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    margin: 0;
    break-after: page;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .sheet:last-child {
    break-after: auto;
  }

  .edit-field {
    border-bottom-color: var(--gray-400);
    background: transparent;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
