/* Trust pages (templates/trust/): About, How we use AI, Corrections, Grievances, Terms. Loaded after app.css and
   css/site-nav.css and uses their tokens, so light, dark and phone layouts follow the rest of the site. */

.trust-tabs { display: flex; gap: 6px; margin: 14px 0 0; overflow-x: auto; scrollbar-width: none; }
.trust-tabs::-webkit-scrollbar { display: none; }
.trust-page .trust-tabs a.subnav-link { color: var(--text-2); }
.trust-page .trust-tabs a.subnav-link.is-on { color: var(--bg); }
.trust-page .site-card h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.trust-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 12px; }
.trust-stat { padding: 12px 14px; border-radius: var(--radius); background: var(--raised); }
.trust-stat strong { display: block; font: 700 22px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.trust-stat span { display: block; font-size: 13px; }
.trust-stat small { display: block; margin-top: 2px; color: var(--text-3); font-size: 12px; }

.trust-modes { list-style: none; padding: 0 !important; margin: 0 0 12px !important; }
.trust-modes li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.trust-modes .badge { flex: 0 0 auto; }

.trust-sources summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.trust-table-wrap { margin-top: 10px; max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.trust-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.trust-table th, .trust-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.trust-table th { position: sticky; top: 0; background: var(--surface); color: var(--text-2); font-weight: 600; }
.trust-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.trust-table tr:last-child td { border-bottom: 0; }

.trust-features { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 12px; }
.trust-feature { padding: 12px 14px; border-radius: var(--radius); background: var(--raised); }
.trust-feature + .trust-feature { margin-top: 0 !important; }
.trust-feature p { margin: 4px 0 0 !important; }
.trust-feature.is-off { opacity: 0.7; }
.trust-feature-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.trust-corrections { list-style: none; margin: 0; padding: 0; }
.trust-correction-date { margin: 0 0 4px !important; color: var(--text-2); font-size: 13px; }
.trust-correction-what { white-space: pre-line; }
.trust-correction:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.trust-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.trust-dl dt { color: var(--text-2); }
.trust-dl dd { margin: 0; overflow-wrap: anywhere; }
.trust-address { white-space: pre-line; }

.trust-form { display: grid; gap: 14px; }
.trust-form fieldset { margin: 0; padding: 0; border: 0; }
.trust-form legend { margin-bottom: 8px; font-weight: 600; }
.trust-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-choice { position: relative; }
.trust-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.trust-choice span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--surface); font-size: 14px; cursor: pointer;
}
.trust-choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.trust-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.trust-field { display: grid; gap: 6px; font-weight: 600; }
.trust-field small { color: var(--text-2); font-weight: 400; font-size: 12px; }
.trust-field input, .trust-field textarea {
  width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--text); font: 400 15px/1.45 var(--font); outline: none;
}
.trust-field textarea { resize: vertical; min-height: 120px; }
.trust-field input:focus, .trust-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.trust-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.trust-form .pill-button { justify-self: start; }
.trust-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.trust-page .banner p { margin: 0; }
.trust-page .banner p + p { margin-top: 4px; }

.trust-ticket { text-align: left; }
.trust-ticket-label { color: var(--text-2); font-size: 13px; }
.trust-ticket-id strong { font: 700 26px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.02em; }
.trust-translated { margin-top: 18px; }

@media (max-width: 640px) {
  .trust-row { grid-template-columns: minmax(0, 1fr); }
  .trust-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .trust-dl dd { margin-bottom: 8px; }
}
