/* Public shell, tokens, navigation and common components. Generated by scripts/build_frontend_bundles.py. */

/* ChunduAI mixed theme. Local fonts; inherited component structure retained. */

:root {
  color-scheme: light;
  --bg: #FFFFFF; --bg-soft: #F5F8F7; --text: #13263B; --muted: #5C6B72;
  --line: #DDE6E3; --green: #12A594; --green-dark: #0E756B; --green-soft: #E4F4EF;
  --red: #C64B47; --amber: #A85D00; --shadow: none;
  --dark-canvas: #07111F; --dark-surface: #0E1B2B; --dark-border: #22354A;
  --dark-text: #F5F8F7; --dark-muted: #AAB7C4;
}

/* Permanent public-content retirement (HTTP 410). */
.gone-page {
  min-height: min(56vh, 34rem);
  display: grid;
  place-items: center;
  text-align: center;
}

.gone-page h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4rem);
  letter-spacing: .08em;
}

/* Domain history search page: small additions on top of the shared /relays UI. */
.domain-search-page {
  max-width: 920px;
}
.domain-search-panel {
  margin: 0 0 18px;
  padding: 22px 0 16px;
  border-bottom: 1px solid var(--line);
}
.domain-search-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.domain-search-heading h1 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: 0;
}
.domain-search-heading p {
  margin: 0;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.6;
}
.domain-search-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.domain-search-kpis span {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}
.domain-search-kpis strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1.1;
}
.domain-search-kpis small {
  color: var(--muted);
  font-size: 12px;
}
.domain-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 18px;
}
.domain-search-field {
  min-width: 0;
}
.domain-search-field label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.domain-search-form input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.domain-search-form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: none;
}
.domain-search-form .btn {
  height: 46px;
  padding-left: 22px;
  padding-right: 22px;
}
.domain-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.domain-search-results {
  margin-top: 18px;
}
.domain-search-certified {
  margin-top: 22px;
}
.domain-search-card-head,
.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.domain-search-card-head .section-title,
.section-header-row .section-title {
  margin-bottom: 0;
}
.domain-search-list {
  display: grid;
  gap: 0;
}
.domain-search-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.domain-search-list .domain-search-row:last-child {
  border-bottom: 0;
}
.domain-search-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.domain-search-main {
  min-width: 0;
}
.domain-search-domain {
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.domain-search-domain:hover {
  text-decoration: underline;
}
.domain-search-host {
  margin-left: 6px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.domain-search-meta,
.domain-search-counts {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.domain-search-meta strong {
  color: var(--text);
}
.domain-search-counts {
  color: var(--text);
}
.domain-search-facets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.domain-search-facets .btn {
  min-height: 36px;
}
.domain-search-facets .btn span {
  color: var(--muted);
  margin-left: 6px;
}
.domain-search-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .domain-search-heading {
    flex-direction: column;
  }
  .domain-search-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .domain-search-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .domain-search-form {
    grid-template-columns: 1fr;
  }
  .domain-search-form .btn {
    width: 100%;
  }
  .domain-search-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .domain-search-host {
    display: block;
    margin: 2px 0 0;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body.modal-open { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               Arial, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC",
               sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono",
               Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
/* Keep the header on the same rail as the page body so the navigation reads as
   part of the product UI instead of floating against the browser edge. */
.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.home-wide-page .site-header-inner {
  max-width: 1320px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 18px; color: var(--text);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

/* Desktop / tablet: nav inline next to brand, left-grouped (NOT pushed to
   the right). Standard SaaS navbar layout — feels balanced because the
   eye reads brand → nav → empty space, not brand → wide gap → nav. */
.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}
.site-nav a,
.site-nav .nav-link {
  color: var(--muted);
  font-size: 14px;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav .nav-link:hover {
  color: var(--text);
  text-decoration: none;
}
.site-nav .nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
  cursor: pointer;
}
/* Subtle underline on hover/focus — feels more "tappable" than bare text */
.site-nav a::after,
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav .nav-link:hover::after,
.site-nav .nav-link:focus-visible::after { transform: scaleX(1); }

/* GitHub button in nav — pill-shaped chip with the official mark + label.
 * Stronger visual weight than text links so it reads as "primary external
 * action" without needing a real CTA button (which would compete with
 * the page's actual CTA). Underline animation suppressed since the chip
 * has its own border. */
.nav-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--text) !important;
  margin-left: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-github:hover {
  background: var(--bg-soft);
  text-decoration: none;
}
.nav-github svg {
  flex-shrink: 0;
}
.nav-github::after { display: none !important; }  /* suppress nav underline */

.community-modal[hidden] { display: none; }
.community-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}
.community-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 24, 39, 0.62);
  cursor: pointer;
}
.community-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: none;
  text-align: center;
}
.community-modal-card h2 {
  margin: 2px 40px 4px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.community-modal-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.community-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.community-modal-close:hover {
  color: var(--text);
  background: var(--bg-soft);
}
.community-qr {
  display: block;
  width: 100%;
  max-height: min(70vh, 620px);
  object-fit: contain;
  border-radius: 8px;
  background: #1f1f1f;
}

/* Hamburger button — hidden on desktop, shown on mobile. */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Animate to an "X" when open — gives a clear close affordance. */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 24px 64px;
  flex: 1;
  width: 100%;
}
/*
 * V1.2 public-template prototype.
 *
 * This file is intentionally isolated while the representative pages are
 * reviewed. V1.3 folds approved rules into route-scoped production bundles
 * and removes this transitional layer together with duplicate legacy rules.
 */

:root {
  --v1-canvas: #f5f8f7;
  --v1-surface: #ffffff;
  --v1-text: #13263b;
  --v1-muted: #5c6b72;
  --v1-line: #d9e4e1;
  --v1-brand: #0e756b;
  --v1-brand-strong: #0a5f57;
  --v1-brand-bright: #20c4ae;
  --v1-brand-soft: #e4f4ef;
  --v1-danger: #b33f3b;
  --v1-dark: #07111f;
  --v1-dark-surface: #0e1b2b;
  --v1-dark-line: #22354a;
  --v1-dark-text: #f5f8f7;
  --v1-dark-muted: #aab7c4;
  --v1-focus: #33d6c0;
  --v1-radius-sm: 8px;
  --v1-radius: 12px;
  --v1-space-1: 8px;
  --v1-space-2: 16px;
  --v1-space-3: 24px;
  --v1-space-4: 32px;
  --v1-space-5: 40px;
  --v1-space-6: 48px;
  --v1-shell: 1200px;
  --v1-content: 960px;
  --v1-article: 760px;
}

html {
  scroll-padding-top: 80px;
}

body.v1-shell {
  background: var(--v1-canvas);
  color: var(--v1-text);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

body.v1-shell.nav-open {
  overflow: hidden;
}

body.v1-shell h1,
body.v1-shell h2,
body.v1-shell h3 {
  color: var(--v1-text);
  font-weight: 700;
  text-wrap: balance;
}

body.v1-shell h1 {
  font-size: clamp(2rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}

body.v1-shell h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -.025em;
}

body.v1-shell h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -.015em;
}

body.v1-shell a:focus-visible,
body.v1-shell button:focus-visible,
body.v1-shell summary:focus-visible,
body.v1-shell input:focus-visible,
body.v1-shell select:focus-visible,
body.v1-shell textarea:focus-visible {
  outline: 3px solid var(--v1-focus);
  outline-offset: 3px;
}

body.v1-shell code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.v1-shell .container,
body.v1-shell.home-wide-page .container {
  width: min(var(--v1-shell), calc(100% - 48px));
  max-width: var(--v1-shell);
  padding: 40px 0 72px;
}

body.v1-shell.chunduai-home .container {
  padding-top: 0;
}

/* Shared brand */
body.v1-shell .brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  padding: 4px 0;
  color: var(--v1-dark-text);
  text-decoration: none;
  letter-spacing: 0;
}

body.v1-shell .brand:hover {
  text-decoration: none;
}

body.v1-shell .brand-logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: none;
}

/* Header and primary navigation */
body.v1-shell .site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  min-height: 72px;
  border-bottom: 1px solid var(--v1-dark-line);
  background: rgba(7, 17, 31, .98);
  color: var(--v1-dark-text);
}

body.v1-shell .site-header-inner,
body.v1-shell.home-wide-page .site-header-inner {
  width: min(var(--v1-shell), calc(100% - 48px));
  max-width: var(--v1-shell);
  min-height: 72px;
  margin: 0 auto;
  padding: 0;
  gap: 30px;
}

body.v1-shell .site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: visible;
}

body.v1-shell .site-nav > .nav-item,
body.v1-shell .nav-cluster > summary,
body.v1-shell .site-nav > .nav-github {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 0;
  border-radius: var(--v1-radius-sm);
  color: var(--v1-dark-muted);
  font-size: 14px;
  font-weight: 620;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}

body.v1-shell .site-nav > .nav-item::after,
body.v1-shell .site-nav > .nav-github::after,
body.v1-shell .nav-cluster > summary::after {
  display: none;
}

body.v1-shell .site-nav > .nav-item:hover,
body.v1-shell .site-nav > .nav-item[aria-current="page"],
body.v1-shell .site-nav > .nav-github:hover,
body.v1-shell .nav-cluster > summary:hover,
body.v1-shell .nav-cluster.is-active > summary,
body.v1-shell .nav-cluster[open] > summary {
  background: var(--v1-dark-surface);
  color: var(--v1-dark-text);
  text-decoration: none;
}

body.v1-shell .site-nav > .nav-item[aria-current="page"],
body.v1-shell .nav-cluster.is-active > summary {
  box-shadow: inset 0 -2px 0 var(--v1-brand-bright);
}

body.v1-shell .nav-cluster {
  position: relative;
}

body.v1-shell .nav-cluster > summary {
  list-style: none;
}

body.v1-shell .nav-cluster > summary::-webkit-details-marker {
  display: none;
}

body.v1-shell .nav-cluster > summary::before {
  content: "";
  order: 2;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s ease;
}

body.v1-shell .nav-cluster[open] > summary::before {
  margin-top: 3px;
  transform: rotate(225deg);
}

body.v1-shell .nav-cluster-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 75;
  display: grid;
  width: 270px;
  padding: 8px;
  border: 1px solid var(--v1-dark-line);
  border-radius: var(--v1-radius);
  background: var(--v1-dark-surface);
}

body.v1-shell .nav-cluster-panel--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 520px;
}

body.v1-shell .nav-cluster-panel--end {
  right: 0;
  left: auto;
}

body.v1-shell .nav-cluster-panel a {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: var(--v1-radius-sm);
  color: var(--v1-dark-muted);
  text-decoration: none;
}

body.v1-shell .nav-cluster-panel a:hover,
body.v1-shell .nav-cluster-panel a[aria-current="page"] {
  background: #14263a;
  color: var(--v1-dark-text);
}

body.v1-shell .nav-cluster-panel a::after {
  display: none;
}

body.v1-shell .nav-cluster-panel strong {
  color: inherit;
  font-size: 14px;
  line-height: 1.35;
}

body.v1-shell .nav-cluster-panel span {
  font-size: 12px;
  line-height: 1.4;
}

body.v1-shell .site-nav > .nav-github {
  width: 44px;
  margin-left: auto;
  padding: 0;
}

body.v1-shell .nav-toggle {
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-color: var(--v1-dark-line);
  color: var(--v1-dark-text);
}

body.v1-shell .nav-toggle-bar {
  width: 20px;
  background: var(--v1-dark-text);
}

body.v1-shell .nav-scrim {
  display: none;
}

/* Footer */
body.v1-shell .site-footer {
  margin: 0;
  padding: 52px max(24px, calc((100vw - var(--v1-shell)) / 2)) 24px;
  border-top: 1px solid var(--v1-dark-line);
  background: var(--v1-dark);
  color: var(--v1-dark-text);
  text-align: left;
}

body.v1-shell .site-footer .footer-grid {
  display: grid;
  width: 100%;
  max-width: var(--v1-shell);
  margin: 0 auto 32px;
  padding: 0;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

body.v1-shell .site-footer h2 {
  margin: 0 0 14px;
  color: var(--v1-dark-text);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
}

body.v1-shell .site-footer p,
body.v1-shell .site-footer p.muted.small,
body.v1-shell .site-footer a,
body.v1-shell .site-footer .footer-desc {
  color: var(--v1-dark-muted);
  font-size: 13px;
  line-height: 1.65;
}

body.v1-shell .site-footer p {
  max-width: none;
  padding: 0;
}

body.v1-shell .site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.v1-shell .site-footer li {
  margin: 8px 0;
}

body.v1-shell .footer-brand .brand {
  margin-bottom: 18px;
}

body.v1-shell .footer-brand .brand-logo {
  height: 38px;
}

body.v1-shell .footer-brand > p {
  margin: 0 0 7px;
}

body.v1-shell .site-footer .footer-copyright {
  max-width: var(--v1-shell);
  margin: 0 auto;
  padding: 28px 0 0;
  border-top: 1px solid var(--v1-dark-line);
  text-align: left;
}

/* Text cards need their own rhythm because the legacy card rule only draws a border. */
body.v1-shell .features {
  align-items: stretch;
  gap: 16px;
}

body.v1-shell .feature {
  min-width: 0;
  padding: 22px 24px 24px;
}

body.v1-shell .feature h3 {
  margin: 0 0 10px;
  color: var(--v1-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.01em;
}

body.v1-shell .feature p {
  margin: 0;
  color: var(--v1-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* Shared page hierarchy used by the four representative templates. */
body.v1-shell .hero {
  max-width: 840px;
  margin: 0 auto 32px;
  text-align: left;
}

body.v1-shell .hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.4vw, 2.5rem);
  line-height: 1.2;
}

body.v1-shell .hero-sub {
  max-width: 720px;
  margin: 0;
  color: var(--v1-muted);
  font-size: 17px;
  line-height: 1.75;
}

body.v1-shell .form-card {
  max-width: 840px;
  margin-right: auto;
  margin-left: auto;
}

body.v1-shell .hint,
body.v1-shell .checkbox-hint {
  min-width: 0;
  color: var(--v1-muted);
  font-size: 13px;
  line-height: 1.6;
}

body.v1-shell .field label {
  font-size: 15px;
}

body.v1-shell .article-shell {
  max-width: var(--v1-article);
  margin: 0 auto;
}

body.v1-shell .page-head {
  margin: 16px 0 32px;
}

body.v1-shell .page-head h1 {
  margin: 12px 0 14px;
}

body.v1-shell .page-head-meta {
  margin: 0;
  color: var(--v1-muted);
  font-size: 14px;
}

body.v1-shell .article-shell .editorial-section {
  margin: 0 0 28px;
  padding: 32px;
}

body.v1-shell .article-content {
  font-size: 17px;
  line-height: 1.8;
}

body.v1-shell .article-content h2 {
  margin-top: 2em;
}

body.v1-shell .article-content h2:first-child {
  margin-top: 0;
}

body.v1-shell .article-content p,
body.v1-shell .article-content li {
  max-width: 68ch;
}

body.v1-shell .article-followup {
  margin: 36px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--v1-line);
}

/* Report information hierarchy. */
body.v1-shell .result-head {
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

body.v1-shell .result-head > div:first-child {
  min-width: 0;
}

body.v1-shell .result-head h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

body.v1-shell .result-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

body.v1-shell .result-meta > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--v1-line);
  border-radius: var(--v1-radius-sm);
  background: var(--v1-surface);
}

body.v1-shell .result-meta .result-meta-summary,
body.v1-shell .result-meta .result-meta-url {
  grid-column: span 2;
}

body.v1-shell .result-meta dt {
  margin: 0 0 4px;
  color: var(--v1-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

body.v1-shell .result-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--v1-text);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.v1-shell .result-meta-summary dd {
  color: var(--v1-brand);
  font-weight: 750;
}

body.v1-shell .result-alert-copy {
  margin: 8px 0 0;
}

body.v1-shell .result-actions {
  flex-wrap: wrap;
}

body.v1-shell .metrics-row {
  gap: 12px;
}

/* Home prototype retains its distinct dark hero but follows the same rhythm. */
body.v1-shell .chunduai-hero {
  gap: 56px;
  padding: 64px 0 72px;
  margin-bottom: 64px;
}

body.v1-shell .chunduai-hero h1 {
  margin: 18px 0 22px;
  color: var(--v1-dark-text);
  font-size: clamp(2.75rem, 4.7vw, 3.5rem);
  line-height: 1.12;
}

body.v1-shell .chunduai-hero .home-lede {
  font-size: 17px;
  line-height: 1.8;
}

body.v1-shell .home-eyebrow,
body.v1-shell .section-kicker {
  font-size: 13px;
}

body.v1-shell .hero-limits {
  font-size: 13px;
  line-height: 1.65;
}

body.v1-shell .home-detect-card .hint {
  font-size: 13px;
}

@media (min-width: 1121px) {
  body.v1-shell .nav-toggle {
    display: none !important;
  }

  body.v1-shell .site-nav {
    position: static !important;
    display: flex !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
}

@media (max-width: 1280px) and (min-width: 1121px) {
  body.v1-shell .site-header-inner,
  body.v1-shell.home-wide-page .site-header-inner {
    gap: 16px;
  }

  body.v1-shell .site-nav {
    gap: 2px;
  }

  body.v1-shell .site-nav > .nav-item,
  body.v1-shell .nav-cluster > summary {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 13px;
  }
}

@media (max-width: 1120px) {
  body.v1-shell .site-header,
  body.v1-shell .site-header-inner,
  body.v1-shell.home-wide-page .site-header-inner {
    min-height: 64px;
  }

  body.v1-shell .site-header-inner,
  body.v1-shell.home-wide-page .site-header-inner {
    width: calc(100% - 32px);
  }

  body.v1-shell .brand-logo {
    height: 36px;
  }

  body.v1-shell .nav-toggle {
    display: flex;
  }

  body.v1-shell .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 72;
    display: none;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--v1-dark-line);
    background: var(--v1-dark);
  }

  body.v1-shell .nav-toggle[aria-expanded="true"] ~ .site-nav {
    display: grid;
  }

  body.v1-shell .site-nav > .nav-item,
  body.v1-shell .nav-cluster > summary,
  body.v1-shell .site-nav > .nav-github {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 0 14px;
    border: 1px solid var(--v1-dark-line);
    color: var(--v1-dark-text);
    font-size: 14px;
  }

  body.v1-shell .site-nav > .nav-github {
    margin: 0;
    gap: 10px;
  }

  body.v1-shell .site-nav > .nav-github::before {
    content: "GitHub";
    font-size: 14px;
  }

  body.v1-shell .nav-cluster[open] {
    grid-column: 1 / -1;
  }

  body.v1-shell .nav-cluster-panel,
  body.v1-shell .nav-cluster-panel--wide,
  body.v1-shell .nav-cluster-panel--end {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border-radius: var(--v1-radius-sm);
    background: var(--v1-dark-surface);
  }

  body.v1-shell .nav-cluster-panel a {
    min-height: 64px;
    padding: 10px;
    border-bottom: 0;
  }

  body.v1-shell .nav-scrim {
    position: fixed;
    inset: 64px 0 0;
    z-index: 68;
    display: block;
    width: 100%;
    height: calc(100dvh - 64px);
    padding: 0;
    border: 0;
    background: rgba(3, 9, 17, .62);
  }

  body.v1-shell .nav-scrim[hidden] {
    display: none;
  }

  body.v1-shell .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.v1-shell .footer-brand {
    grid-column: 1 / -1;
  }

  body.v1-shell .chunduai-hero {
    gap: 36px;
    padding: 48px 0 56px;
    margin-bottom: 48px;
  }

  body.v1-shell .result-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.v1-shell .result-meta .result-meta-summary,
  body.v1-shell .result-meta .result-meta-url {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body.v1-shell .container,
  body.v1-shell.home-wide-page .container {
    width: calc(100% - 32px);
    padding: 30px 0 48px;
  }

  body.v1-shell h1,
  body.v1-shell .hero h1,
  body.v1-shell .result-head h1 {
    font-size: 1.875rem;
    line-height: 1.25;
  }

  body.v1-shell .hero-sub {
    font-size: 16px;
    line-height: 1.7;
  }

  body.v1-shell .site-footer {
    padding: 40px 16px 22px;
  }

  body.v1-shell .site-footer .footer-grid {
    gap: 26px 20px;
  }

  body.v1-shell .site-footer h2 {
    font-size: 13px;
  }

  body.v1-shell .site-footer .footer-copyright {
    padding-top: 24px;
    font-size: 12px;
  }

  body.v1-shell .feature {
    padding: 20px;
  }

  body.v1-shell .article-shell .editorial-section {
    padding: 22px 18px;
  }

  body.v1-shell .article-content {
    font-size: 16px;
    line-height: 1.75;
  }

  body.v1-shell .result-head {
    display: grid;
  }

  body.v1-shell .result-meta {
    grid-template-columns: 1fr;
  }

  body.v1-shell .result-meta .result-meta-summary,
  body.v1-shell .result-meta .result-meta-url {
    grid-column: auto;
  }

  body.v1-shell .result-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body.v1-shell .result-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  body.v1-shell .chunduai-hero h1 {
    font-size: 2.375rem;
    line-height: 1.18;
  }

  body.v1-shell .chunduai-hero .home-lede {
    font-size: 16px;
  }

  body.v1-shell .home-trust-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  body.v1-shell .home-trust-metrics dd {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.v1-shell *,
  body.v1-shell *::before,
  body.v1-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* V1.2 public template unification. V1.3 moves these route rules into bundles. */
body.v1-shell .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 24px 0 8px;
  color: var(--v1-muted);
  font-size: 13px;
  line-height: 1.5;
}

body.v1-shell .breadcrumb a,
body.v1-shell .breadcrumb-current {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.v1-shell .breadcrumb-sep {
  flex: 0 0 auto;
  color: #8b9a9f;
}

@media (max-width: 600px) {
  body.v1-shell .breadcrumb {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 6px;
  }

  body.v1-shell .breadcrumb a,
  body.v1-shell .breadcrumb-current {
    flex: 0 0 auto;
    max-width: 100%;
  }

  body.v1-shell .breadcrumb-current {
    flex-basis: 100%;
  }
}

body.v1-shell .hero,
body.v1-shell .hub-hero,
body.v1-shell .faq-hero,
body.v1-shell .relays-header,
body.v1-shell .domain-search-panel {
  max-width: var(--v1-content);
  margin: 32px auto 24px;
}

body.v1-shell .hub-hero h1,
body.v1-shell .faq-hero h1,
body.v1-shell .relays-header h1,
body.v1-shell .domain-search-heading {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

body.v1-shell .hero-sub--centered {
  max-width: var(--v1-article);
  margin: 0 auto 14px;
  text-align: center;
}

body.v1-shell .hub-subtitle,
body.v1-shell .faq-hero-sub,
body.v1-shell .relays-header > p,
body.v1-shell .domain-search-panel > p {
  margin: 0 0 14px;
  color: var(--v1-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}

body.v1-shell .answer-capsule {
  max-width: 900px;
  color: var(--v1-muted);
  font-size: 16px;
  line-height: 1.75;
}

body.v1-shell .answer-capsule strong {
  color: var(--v1-text);
}

body.v1-shell .card,
body.v1-shell .notice,
body.v1-shell .editorial-section,
body.v1-shell .lb-answer-panel,
body.v1-shell .lb-ranking-rules,
body.v1-shell .domain-search-results,
body.v1-shell .relays-controls,
body.v1-shell .relays-list {
  border: 1px solid var(--v1-line);
  border-radius: var(--v1-radius);
  background: var(--v1-surface);
  box-shadow: none;
}

body.v1-shell .card,
body.v1-shell .notice,
body.v1-shell .editorial-section,
body.v1-shell .domain-search-results,
body.v1-shell .relays-list {
  margin: 20px 0;
  padding: 24px;
}

body.v1-shell .card > :first-child,
body.v1-shell .notice > :first-child {
  margin-top: 0;
}

body.v1-shell .card > :last-child,
body.v1-shell .notice > :last-child {
  margin-bottom: 0;
}

body.v1-shell .notice-muted,
body.v1-shell .alert-card {
  border-color: #c9ded9;
  background: var(--v1-brand-soft);
  color: #244a46;
}

body.v1-shell .section-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.35;
}

body.v1-shell .form-card {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  padding: 28px;
}

body.v1-shell .field,
body.v1-shell .field-row {
  margin-bottom: 18px;
}

body.v1-shell input,
body.v1-shell select,
body.v1-shell textarea,
body.v1-shell .combo-input {
  min-height: 44px;
  border-color: #b9cac6;
  border-radius: var(--v1-radius-sm);
  background: var(--v1-surface);
  color: var(--v1-text);
  font: inherit;
}

body.v1-shell .btn {
  min-height: 44px;
  border-radius: var(--v1-radius-sm);
  font-size: 14px;
  font-weight: 650;
}

body.v1-shell .features {
  gap: 16px;
  margin: 32px 0;
}

body.v1-shell .feature {
  min-width: 0;
  border: 1px solid var(--v1-line);
  border-radius: var(--v1-radius);
  background: var(--v1-surface);
}

body.v1-shell .cta-row,
body.v1-shell .button-row,
body.v1-shell .official-actions,
body.v1-shell .result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body.v1-shell .cta-row--spaced,
body.v1-shell .hint--spaced {
  margin-top: 16px;
}

body.v1-shell .lookup-path {
  margin-left: 8px;
  overflow-wrap: anywhere;
}
