:root {
  color-scheme: light;
  --background: #f6f7f9;
  --surface: #ffffff;
  --surface-alt: #eef2f6;
  --ink: #17191f;
  --muted: #5b6472;
  --line: #d9dee7;
  --line-strong: #b7c0ce;
  --blue: #2157d4;
  --blue-ink: #12327a;
  --green: #15803d;
  --green-soft: #e8f5ed;
  --amber: #b45309;
  --amber-soft: #fff2d9;
  --shadow: 0 22px 60px rgba(25, 30, 42, 0.12);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(217, 222, 231, 0.86);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.nav-icon-link,
.button,
.text-link,
.back-link {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 760;
}

.brand svg {
  color: var(--blue);
  flex: 0 0 auto;
}

.site-nav {
  gap: 20px;
  color: #343b48;
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a {
  white-space: nowrap;
}

.nav-icon-link {
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #dfe5ee;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("/assets/img/bundle-catalog-hero.png");
  background-position: center;
  background-size: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(246, 247, 249, 0.98) 0%, rgba(246, 247, 249, 0.82) 34%, rgba(246, 247, 249, 0.28) 68%, rgba(246, 247, 249, 0.02) 100%),
    linear-gradient(180deg, rgba(246, 247, 249, 0.1), rgba(246, 247, 249, 0.86));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  max-width: 1160px;
  padding: 58px 0 70px;
}

.eyebrow,
.bundle-kicker {
  margin: 0 0 12px;
  color: var(--blue-ink);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  font-size: 4rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.08rem;
}

.hero-copy,
.large {
  max-width: 650px;
  font-size: 1.16rem;
}

.hero-copy {
  margin: 18px 0 18px;
  color: #303744;
}

.prompt-example {
  display: grid;
  gap: 6px;
  width: min(650px, 100%);
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(183, 192, 206, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(25, 30, 42, 0.09);
}

.prompt-example span {
  color: var(--blue-ink);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.prompt-example p {
  margin: 0;
  color: #202734;
  font-size: 0.98rem;
  line-height: 1.45;
}

.muted {
  color: var(--muted);
}

.hero-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(650px, 100%);
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-search svg {
  margin-left: 8px;
  color: var(--blue);
}

.hero-search input,
.filter-search input,
select {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 740;
}

.hero-actions,
.cta-row,
.card-actions,
.filter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 20px;
}

.button,
.icon-button {
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  font-weight: 720;
}

.button {
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-secondary {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  width: 40px;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.metric-band {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

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

.metric-grid div {
  min-height: 96px;
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}

.metric-grid div:last-child {
  border-right: 1px solid var(--line);
}

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

.metric-grid strong {
  font-size: 1.55rem;
  line-height: 1.1;
}

.metric-grid span {
  margin-top: 6px;
  color: var(--muted);
}

.section {
  padding: 72px 0;
}

.section.tight {
  padding-top: 44px;
}

.section-alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.text-link,
.back-link {
  gap: 8px;
  color: var(--blue);
  font-weight: 760;
}

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

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

.bundle-card,
.side-panel,
.process-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.bundle-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  padding: 22px;
}

.bundle-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bundle-card h3 a:hover,
.site-nav a:hover,
.text-link:hover,
.back-link:hover,
.related-link:hover {
  text-decoration: underline;
}

.badge-row,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #394150;
  font-size: 0.82rem;
  font-weight: 700;
  background: #f9fafb;
}

.badge-green {
  border-color: #acd9bd;
  background: var(--green-soft);
  color: #14532d;
}

.badge-blue {
  border-color: #b8caef;
  background: #eaf1ff;
  color: var(--blue-ink);
}

.badge-amber {
  border-color: #efd49d;
  background: var(--amber-soft);
  color: #7c2d12;
}

.solves {
  margin: 0;
  color: #2d3541;
  font-weight: 640;
}

.evaluation-strip {
  position: relative;
  display: inline-grid;
  align-self: flex-start;
  max-width: 100%;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #bfd0eb;
  border-radius: 8px;
  background: #f8fbff;
  cursor: help;
}

.evaluation-strip:focus {
  outline: 3px solid rgba(33, 87, 212, 0.22);
  outline-offset: 2px;
}

.evaluation-strip-planned {
  border-color: var(--line);
  background: #f9fafb;
  color: var(--muted);
  cursor: default;
}

.evaluation-label {
  color: var(--blue-ink);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.evaluation-metric {
  display: grid;
  gap: 1px;
  color: #3d4654;
  font-size: 0.88rem;
  font-weight: 720;
}

.evaluation-metric strong {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 860;
  line-height: 1;
}

.evaluation-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: grid;
  width: min(320px, calc(100vw - 48px));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(25, 30, 42, 0.16);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  visibility: hidden;
}

.evaluation-strip:hover .evaluation-tooltip,
.evaluation-strip:focus .evaluation-tooltip,
.evaluation-strip:focus-within .evaluation-tooltip {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.evaluation-tooltip-title {
  color: var(--blue-ink);
  font-size: 0.78rem;
  font-weight: 820;
}

.evaluation-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.evaluation-tooltip-class {
  display: block;
  color: #303846;
  font-size: 0.9rem;
  font-weight: 760;
}

.evaluation-tooltip-row strong {
  color: var(--green);
  font-size: 1rem;
  font-weight: 860;
  white-space: nowrap;
}

.evaluation-tooltip-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.bundle-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.split-layout,
.detail-layout,
.docs-layout,
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.inspection-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inspection-panel div {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.inspection-panel span,
.affordance-grid span,
.side-panel dt {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.inspection-panel strong,
.affordance-grid strong {
  display: block;
  margin-top: 10px;
  line-height: 1.2;
}

.contribution-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #eef2f6);
}

.page-hero.compact .page-hero-inner {
  min-height: 280px;
}

.page-hero-inner {
  min-height: 360px;
  padding: 56px 0;
}

.detail-hero {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.detail-title-row,
.results-heading {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
}

.filter-panel {
  position: sticky;
  top: 92px;
  order: 2;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.filter-panel form {
  display: grid;
  gap: 12px;
}

.filter-panel label {
  color: #2f3744;
  font-size: 0.86rem;
  font-weight: 750;
}

.filter-search,
select {
  display: grid;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}

.filter-search {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  padding: 0 10px;
}

select {
  padding: 0 10px;
}

.catalog-results {
  min-width: 0;
}

.detail-main,
.docs-content {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.detail-section {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-section h2,
.side-panel h2,
.docs-content h2 {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.performance-section {
  display: grid;
  gap: 24px;
}

.performance-section > *,
.performance-heading > *,
.performance-conditions > *,
.task-result-grid > * {
  min-width: 0;
}

.performance-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  max-width: 100%;
}

.performance-heading h2 {
  margin-bottom: 8px;
}

.performance-score {
  display: grid;
  gap: 2px;
  min-width: 180px;
  text-align: right;
}

.performance-score strong {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 860;
  line-height: 1;
}

.performance-score span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.performance-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.performance-stats div {
  min-height: 112px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.performance-stats div:last-child {
  border-right: 0;
}

.performance-stats span {
  color: var(--blue-ink);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.performance-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 840;
  line-height: 1.12;
}

.performance-stats p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.performance-subsection,
.performance-conditions {
  display: grid;
  gap: 12px;
}

.performance-subsection h3,
.performance-conditions h3,
.performance-task h4 {
  margin: 0;
  color: #242c38;
  font-size: 1rem;
}

.performance-conditions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.performance-conditions p,
.performance-task p {
  margin: 6px 0 0;
  color: var(--muted);
}

.inline-link {
  color: var(--blue);
  font-weight: 740;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.performance-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.performance-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.performance-table th,
.performance-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.performance-table th {
  color: var(--blue-ink);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.performance-table td {
  color: #313a46;
  font-weight: 650;
}

.performance-table.compact {
  min-width: 420px;
}

.performance-task-list {
  display: grid;
  gap: 10px;
}

.performance-task {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.performance-task summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 780;
}

.performance-task summary strong {
  white-space: nowrap;
}

.performance-task[open] summary {
  margin-bottom: 14px;
}

.task-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.task-score-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fafb;
  color: #3b4350;
  font-size: 0.82rem;
  font-weight: 760;
}

.task-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 16px;
}

.prompt-code {
  max-height: 340px;
  margin: 10px 0 16px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.82rem;
  line-height: 1.45;
}

.install-code {
  max-width: 100%;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.82rem;
}

.plain-list,
.ordered-list {
  margin: 0;
  padding: 0;
}

.plain-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.plain-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #2f3744;
}

.plain-list svg {
  margin-top: 3px;
  color: var(--green);
  flex: 0 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.two-column h3 {
  margin-bottom: 10px;
}

.use-section {
  display: grid;
  gap: 20px;
}

.use-section h2 {
  margin-bottom: 8px;
}

.agent-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.agent-steps li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--blue-ink);
  font-weight: 860;
}

.agent-steps strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

.agent-steps p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.affordance-grid div {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.affordance-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.inside-panel {
  min-width: 0;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.inside-panel.wide {
  grid-column: span 2;
}

.inside-panel span {
  color: var(--blue-ink);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.inside-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 860;
  line-height: 1;
}

.inside-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.command-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.command-chip-row code {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 4px 8px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #243044;
  font-size: 0.84rem;
  font-weight: 760;
}

.bundle-map {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(#eff3f8 1px, transparent 1px),
    linear-gradient(90deg, #eff3f8 1px, transparent 1px),
    #fff;
  background-size: 32px 32px;
}

.map-center,
.map-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 180px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(25, 30, 42, 0.1);
  font-size: 0.9rem;
  font-weight: 750;
  text-align: center;
}

.map-center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-color: #9ab4ef;
  color: var(--blue-ink);
}

.map-node-1 {
  left: 12%;
  top: 20%;
}

.map-node-2 {
  right: 12%;
  top: 18%;
}

.map-node-3 {
  left: 16%;
  bottom: 20%;
}

.map-node-4 {
  right: 16%;
  bottom: 18%;
}

.side-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.detail-aside {
  display: grid;
  gap: 16px;
}

.side-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.side-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.side-panel dd {
  margin: 0;
  text-align: right;
  font-weight: 720;
}

.full-width {
  width: 100%;
}

.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-weight: 740;
}

.endpoint-list {
  display: grid;
  gap: 10px;
}

.endpoint-list a,
.code-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.endpoint-list a {
  padding: 14px;
  color: var(--blue);
  font-weight: 740;
}

.ordered-list {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.code-block {
  max-width: 100%;
  overflow-x: auto;
  padding: 18px;
  color: #202734;
}

.docs-aside {
  position: sticky;
  top: 92px;
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.process-block {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.process-block > svg {
  color: var(--blue);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 28px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--blue);
  font-weight: 740;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .hero-content {
    min-height: 600px;
  }

  h1 {
    font-size: 3rem;
  }

  .metric-grid,
  .card-grid,
  .split-layout,
  .detail-layout,
  .docs-layout,
  .catalog-layout,
  .two-column,
  .performance-stats,
  .performance-conditions,
  .task-result-grid,
  .contribution-grid {
    grid-template-columns: 1fr;
  }

  .performance-stats div,
  .performance-stats div:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .performance-stats div:last-child {
    border-bottom: 0;
  }

  .filter-panel,
  .docs-aside {
    position: static;
  }

  .filter-panel {
    order: 0;
  }

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

  .inside-panel.wide {
    grid-column: span 2;
  }

  .metric-grid div,
  .metric-grid div:last-child {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  h1 {
    font-size: 2.05rem;
    line-height: 1.12;
  }

  h2 {
    font-size: 1.55rem;
  }

  .hero-shade {
    background: rgba(246, 247, 249, 0.9);
  }

  .hero-search {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .hero-search button {
    grid-column: 1 / -1;
  }

  .prompt-example {
    padding: 12px;
  }

  .section-heading,
  .bundle-card-header,
  .detail-title-row,
  .performance-heading,
  .contribution-strip,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .performance-score {
    min-width: 0;
    text-align: left;
  }

  .performance-task summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .performance-table,
  .performance-table.compact {
    min-width: 0;
    font-size: 0.8rem;
  }

  .performance-table th,
  .performance-table td {
    padding: 8px 6px;
    word-break: break-word;
  }

  .inspection-panel,
  .affordance-grid,
  .inside-grid {
    grid-template-columns: 1fr;
  }

  .inside-panel.wide {
    grid-column: span 1;
  }

  .detail-section,
  .bundle-card,
  .side-panel,
  .process-block,
  .contribution-strip {
    padding: 18px;
  }

  .metric-grid div {
    min-height: 82px;
    padding: 18px;
  }

}
