.trust-page {
  margin: 0;
  min-height: 100vh;
  color: var(--espresso);
}

.trust-page * {
  box-sizing: border-box;
}

.trust-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--border);
  background: var(--nav-surface);
  backdrop-filter: blur(18px);
}

.trust-brand {
  color: var(--espresso);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.trust-brand span {
  color: var(--terracotta);
}

.trust-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.trust-nav .nav-links a {
  color: var(--warm-brown);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.trust-nav .nav-links a:hover,
.trust-nav .nav-links a[aria-current="page"] {
  color: var(--terracotta);
}

.trust-main {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) 0 88px;
}

.trust-eyebrow {
  margin: 0 0 14px;
  color: var(--terracotta);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trust-main h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--espresso);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.trust-lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--warm-brown);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.trust-updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
}

.trust-panel {
  margin-top: 42px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(var(--surface-wash), var(--surface-wash)),
    url("/textures/plant-fiber-cork.jpg");
  background-size: auto, 540px 540px;
  box-shadow: var(--paper-shadow);
}

.status-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 24px;
}

.status-dot {
  width: 14px;
  height: 14px;
  border: 3px solid var(--signal-gold);
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 0 0 5px rgba(216, 179, 92, 0.13);
}

.status-summary[data-state="operational"] .status-dot,
.check-card[data-state="operational"] .check-mark {
  border-color: var(--system-teal);
  background: var(--system-teal);
  box-shadow: 0 0 0 5px rgba(47, 183, 168, 0.13);
}

.status-summary[data-state="degraded"] .status-dot,
.check-card[data-state="degraded"] .check-mark {
  border-color: var(--danger);
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(185, 56, 77, 0.12);
}

.status-copy strong {
  display: block;
  color: var(--espresso);
  font-size: 18px;
}

.status-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.status-refresh {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--espresso);
  background: var(--surface-wash-solid);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.status-refresh:hover,
.status-refresh:focus-visible {
  border-color: var(--terracotta);
  outline: none;
}

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

.check-card {
  padding: 24px;
}

.check-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-mark {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border: 2px solid var(--signal-gold);
  border-radius: 999px;
}

.check-card h2,
.trust-section h2 {
  margin: 0;
  color: var(--espresso);
  font-size: 18px;
  letter-spacing: -0.01em;
}

.check-result {
  margin: 18px 0 6px;
  color: var(--espresso);
  font-size: 16px;
  font-weight: 700;
}

.check-detail,
.check-purpose {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.check-purpose {
  margin-top: 14px;
}

.endpoint-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--terracotta);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.endpoint-link:hover {
  text-decoration: underline;
}

.trust-section {
  margin-top: 56px;
}

.trust-section h2 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 22px;
}

.trust-section p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--warm-brown);
  font-size: 16px;
  line-height: 1.7;
}

.trust-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  position: relative;
  padding: 0 0 0 24px;
  color: var(--warm-brown);
  font-size: 15px;
  line-height: 1.65;
}

.trust-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--terracotta);
  content: "→";
  font-weight: 700;
}

.trust-list strong {
  color: var(--espresso);
}

.trust-callout {
  margin-top: 24px;
  border-left: 4px solid var(--system-teal);
  padding: 18px 20px;
  background: rgba(47, 183, 168, 0.08);
  color: var(--warm-brown);
  font-size: 15px;
  line-height: 1.65;
}

.trust-callout.warning {
  border-left-color: var(--signal-gold);
  background: rgba(216, 179, 92, 0.08);
}

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

.trust-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  border-radius: 8px;
  padding: 0 20px;
  color: #fff;
  background: var(--terracotta);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.trust-action:hover {
  color: #fff;
  background: var(--terracotta-dark);
}

.change-list {
  display: grid;
  gap: 0;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
}

.change-entry {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 34px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.change-entry:last-child {
  border-bottom: 1px solid var(--border);
}

.change-date time,
.change-date span {
  display: block;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
}

.change-date time {
  color: var(--warm-brown);
  font-weight: 700;
}

.change-date span {
  width: max-content;
  margin-top: 9px;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--system-teal);
  background: rgba(47, 183, 168, 0.09);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.change-copy h2 {
  margin: 0;
  color: var(--espresso);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 3vw, 32px);
  letter-spacing: -0.025em;
}

.change-copy p {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--warm-brown);
  font-size: 15px;
  line-height: 1.7;
}

.change-copy code {
  color: var(--terracotta);
  font-family: "Geist Mono", ui-monospace, monospace;
}

.trust-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.trust-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.trust-footer a {
  color: var(--warm-brown);
  text-decoration: none;
}

.trust-footer a:hover {
  color: var(--terracotta);
}

@media (max-width: 720px) {
  .trust-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .trust-nav .nav-links {
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .trust-nav .nav-links a {
    font-size: 13px;
  }

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

  .status-summary {
    grid-template-columns: auto 1fr;
  }

  .status-refresh {
    grid-column: 1 / -1;
    width: 100%;
  }

  .trust-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .change-entry {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

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