/* /trust page body. The header and footer come from public/_base.html
   (site-chrome.css). The page reuses the /security and /docs patterns from
   charter.css (ruled hero, divided strips, one bordered band) and this sheet
   only sets the trust-specific pieces: the agent prompt, key/value lists, the
   checklist, the repo tiles and the printed release record. */

.trust-page .public-wrap {
  padding-top: 24px;
  gap: 0;
}

.trust-page .public-wrap > section + section {
  margin-top: var(--tr-space-stack-3xl);
}

/* Shared text sizes: the same reading size /docs uses. */
.trust-page :is(.marketing-card, .quote-feature, .trust-notice) p {
  margin: 0 0 var(--tr-space-stack-md);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.7;
}

.trust-page :is(.marketing-card, .quote-feature > div, .trust-notice) > :last-child {
  margin-bottom: 0;
}

.trust-page .marketing-card h2,
.trust-open h2,
.trust-record h2 {
  margin: 0 0 var(--tr-space-stack-md);
  color: var(--text-display);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

/* Hero: one left-aligned column on Ink, closed by the lime "Ask your agent"
   panel. nyte-theme.css makes it fill the first screen with the Band below. */
.trust-page .trust-hero {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 32px;
  padding-top: 40px;
}

.trust-page .trust-hero > * {
  width: 100%;
  max-width: 960px;
}

.trust-hero-copy code {
  font-size: 0.9em;
}

.trust-hero h1 {
  max-width: 900px;
  margin: 20px 0;
}

.trust-page .trust-hero-copy .lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--tr-color-text-primary);
  font-size: 18px;
  font-weight: 450;
  line-height: 1.6;
}

/* The page's one action: Ink on lime, square, no border or shadow. */
.agent-verify {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 32px;
  align-items: center;
  padding: 20px 24px;
  border-radius: 0;
  background: var(--tr-color-panel-mint-bg);
  color: var(--tr-color-panel-mint-ink);
}

/* Three classes deep so the theme's light display h2 does not win. */
.trust-page .agent-verify .agent-verify-text h2 {
  margin: 0 0 4px;
  color: inherit;
  font-family: var(--tr-font-family-sans);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.trust-page .agent-verify-text p {
  margin: 0;
  color: inherit;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.5;
}

.copy-prompt {
  display: inline-flex;
  flex-shrink: 0;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 0;
  border-radius: 0;
  background: var(--tr-color-panel-mint-ink);
  color: var(--tr-color-panel-mint-bg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.copy-prompt[hidden] {
  display: none;
}

.copy-prompt:hover {
  background: var(--tr-color-panel-mint-ink-2);
}

.copy-prompt:disabled {
  cursor: wait;
}

.copy-status {
  grid-column: 1 / -1;
  display: block;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.copy-status:empty {
  display: none;
}

/* Release warning, right under the hero when the live record is stale or missing. */
.trust-page .trust-notice {
  padding: 20px 24px;
  border-color: var(--warn-border);
  background: var(--warn-bg);
}

.trust-page .trust-notice h2 {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.025em;
}

.trust-page .trust-notice p {
  color: var(--amber);
}

/* The full agent prompt under the hero uses the shared code block
   (content-layout.js builds the strip and Copy). It is prose, so it wraps. */
.trust-page .trust-prompt-block pre {
  white-space: pre-wrap;
  max-width: 80ch;
}

/* Under the prompt: the how-to paragraph, review link and source links
   beside the current workload facts. */
.trust-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 56px;
  align-items: start;
}

.trust-page .trust-overview-copy p {
  max-width: 600px;
  margin: 0 0 var(--tr-space-stack-md);
  color: var(--text-display);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.65;
}

.trust-page .trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--tr-space-stack-lg) 0 0;
}

.trust-workload {
  min-width: 0;
}

.trust-workload h2 {
  margin: 0 0 var(--tr-space-stack-sm);
  letter-spacing: 0;
}

/* Key/value lists: one ruled row per fact, label above a mono value. */
.trust-kv {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--border-default);
}

.trust-kv > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.trust-kv > div:last-child,
.trust-checks li:last-child,
.trust-files li:last-child {
  border-bottom: 0;
}

.trust-kv dt {
  margin: 0 0 4px;
}

.trust-workload h2,
.trust-kv dt {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
}

.trust-kv dd {
  margin: 0;
  color: var(--text-display);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.trust-page .marketing-card .trust-kv + p {
  margin-top: var(--tr-space-stack-lg);
}

/* The three clouds are detail: headings one size down from the verification strip. */
.trust-page .trust-planes h2 {
  font-size: 18px;
}

/* Plane notes from trust.py: a quiet callout rather than a bold paragraph. */
.trust-page .marketing-card .trust-plane-note {
  padding: 2px 0 2px 14px;
  border-left: 2px solid var(--gold);
  color: var(--text-muted);
  line-height: 1.6;
}

.trust-plane-note strong {
  color: var(--gold);
  font-weight: 500;
}

/* Divided strips: cells share rules, so there is one box per strip at most. */
.trust-page .trust-strip {
  border-top: 1px solid var(--border-default);
}

.trust-page .trust-strip .marketing-card {
  padding: 28px 28px 8px;
  border-bottom: 0;
}

.trust-page .trust-strip .marketing-card:first-child {
  padding-left: 0;
}

.trust-page .trust-strip .marketing-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.trust-page .trust-caution h2 {
  color: var(--gold);
}

/* Checklist and file list: ruled rows, like the check-list on /docs. */
.trust-checks,
.trust-files {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-default);
  list-style: none;
}

.trust-checks li,
.trust-files li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.6;
}

.trust-checks li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
}

.trust-check {
  padding-top: 2px;
  color: var(--tr-color-accent-base);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.trust-files a,
.trust-repo-list a,
.trust-kv a {
  text-decoration: underline;
  text-decoration-color: var(--tr-color-link-underline);
}

/* The one bordered band: heading beside the explanation. */
.trust-page .trust-why {
  gap: 32px 48px;
  padding: 32px;
}

.trust-why h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.trust-why strong {
  color: var(--text-display);
}

/* Repository tiles, as on the /docs SDK block. */
.trust-page .trust-repo-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  border-top: 1px solid var(--border-default);
}

.trust-page .trust-repo-list .repo-card {
  padding: 22px 24px 24px;
  border-right: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.trust-page .trust-repo-list .repo-card:nth-child(3n) {
  padding-right: 0;
  border-right: 0;
}

.trust-page .trust-repo-list .repo-card:nth-child(3n + 1) {
  padding-left: 0;
}

.trust-repo-list .repo-card a {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.trust-repo-list .repo-card p {
  margin: 0;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.6;
}

/* Printed release record: folded behind its heading, since the same record
   is one click away as gcp-release.json and the text is long on a phone. */
.trust-record {
  --content-note-color: var(--text-display);

  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.trust-record summary {
  min-height: 64px;
}

.trust-record summary h2 {
  margin: 0;
}

.trust-record summary::after {
  color: var(--text-muted);
}

.trust-record pre {
  margin: 0 0 24px;
  padding: 20px 24px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-panel);
  background: var(--tr-color-surface-panel-inset);
  color: var(--code-ink);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 1040px) {
  .trust-page .public-wrap > section + section {
    margin-top: var(--tr-space-stack-2xl);
  }

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

  /* One column: every cell becomes a ruled row across the page gutter. */
  .trust-page .trust-strip.marketing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-page .trust-strip .marketing-card {
    padding: 20px 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--border-hairline);
  }

  .trust-kv > div,
  .trust-checks li,
  .trust-files li {
    padding: 10px 0;
  }

  .trust-page .trust-strip .marketing-card:last-child {
    border-bottom: 0;
  }

  .trust-page .trust-why {
    gap: 20px;
    padding: 24px 20px;
  }

  .trust-why h2 {
    font-size: 24px;
  }

  .trust-page .trust-repo-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-page .trust-repo-list .repo-card,
  .trust-page .trust-repo-list .repo-card:nth-child(3n),
  .trust-page .trust-repo-list .repo-card:nth-child(3n + 1) {
    padding: 16px 0 18px;
    border-right: 0;
  }

  .trust-record summary {
    min-height: 56px;
  }

  .trust-record pre {
    padding: 16px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .trust-page .public-wrap > section + section {
    margin-top: var(--tr-space-stack-xl);
  }

  .agent-verify {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .copy-prompt {
    width: 100%;
    min-height: 44px;
  }

  .copy-status {
    margin-top: -4px;
  }

  /* Phones: tighter hero so the panel and the Band share the first screen. */
  .trust-page .trust-hero {
    row-gap: 20px;
    padding-top: 16px;
  }

  .trust-hero h1 {
    margin: 12px 0 10px;
  }

  .trust-page .trust-hero-copy .lead {
    font-size: 16px;
    line-height: 1.55;
  }

  .trust-hero h1 {
    font-size: 30px;
  }

  .trust-page .trust-hero-copy .lead {
    font-size: 16px;
  }

}

/* Phones get a shorter hero: one short lead, no panel subline. */
.trust-page .trust-lead-short { display: none; }

@media (max-width: 760px) {
  .trust-page .trust-lead-full,
  .trust-page .agent-verify-text p { display: none; }
  .trust-page .trust-lead-short { display: block; }
}
