/* The Trust guide (/trust/), after the owner's mock-up of 21 November 2026.
   Plain HTML with no script: the Local / Cloud switch is two radio buttons
   and the questions are <details>. Without this file, both panels show one
   after the other. Light and dark, from the site's own colours. */
.trust-page {
  --trust-hero: #f6c4ab;
  --trust-hero-fg: #1b2440;
  --trust-panel: #edf1e8;
  --trust-ink: #24453c;
  --trust-ink-fg: #ffffff;
  --trust-mark: #a8442c;
  --card-face: #fffaf2;
  --card-edge: #e48a68;
  --card-back: #f2dccd;
  --card-line: #9ea89a;
  padding-top: 24px;
  padding-bottom: 40px;
}
@media (prefers-color-scheme: dark) {
  .trust-page {
    --trust-hero: #3b2b2a;
    --trust-hero-fg: #f4efe6;
    --trust-panel: #1f2b2a;
    --trust-ink: #b9dccd;
    --trust-ink-fg: #13201c;
    --trust-mark: #f0a088;
    --card-face: #252d47;
    --card-edge: #c9775a;
    --card-back: #4a3732;
    --card-line: #7f8aa3;
  }
}

/* ---------- hero ---------- */
.trust-hero {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 24px;
  background: var(--trust-hero); color: var(--trust-hero-fg); border-radius: 22px; padding: clamp(28px, 5vw, 64px);
}
.trust-eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; }
.trust-hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); margin: 0 0 18px; }
.trust-lead { font-size: 1.15rem; line-height: 1.6; max-width: 26em; margin: 0; }
.trust-card { width: 100%; max-width: 380px; justify-self: end; }
.trust-card .card-back { fill: var(--card-back); stroke: var(--trust-hero-fg); stroke-width: 1.5; stroke-opacity: .35; }
.trust-card .card-mid { fill: var(--card-edge); }
.trust-card .card-front { fill: var(--card-face); stroke: var(--trust-hero-fg); stroke-width: 1.5; stroke-opacity: .55; }
.trust-card .card-bar { fill: var(--trust-mark); }
.trust-card .card-line { fill: none; stroke: var(--card-line); stroke-width: 3; stroke-linecap: round; }
.trust-card .card-line.faint { stroke-dasharray: 2 6; }
.trust-card .card-seal { fill: var(--trust-ink); }
.trust-card .card-seal-ring { fill: none; stroke: var(--card-face); stroke-width: 2; stroke-opacity: .7; }
.trust-card .card-tick { fill: none; stroke: var(--card-face); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- on this page ---------- */
.trust-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 22px 0 6px; font-family: var(--serif); font-size: 1.08rem; }
.trust-nav a { text-decoration: none; padding: 10px 0; }
.trust-nav a:hover { text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; }

/* ---------- each part: its title on the left, the content on the right ---------- */
.trust-row { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 24px 56px; padding: 44px 0; border-top: 1px solid var(--line); }
.trust-nav + .trust-row { border-top: 0; }
.trust-side h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0 0 12px; }
.trust-side p { margin: 0; }
.trust-main > :last-child { margin-bottom: 0; }
.trust-main h3 { font-size: 1.6rem; margin: 0 0 12px; }

/* ---------- Local / Cloud ---------- */
.modes { display: flex; flex-wrap: wrap; gap: 10px; }
.modes label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer;
}
.modes input:checked + label { background: var(--trust-ink); border-color: var(--trust-ink); color: var(--trust-ink-fg); }
.modes input:focus-visible + label { outline: 3px solid #5475fb; outline-offset: 3px; }
.mode-panels { flex-basis: 100%; margin-top: 6px; }
.mode-panel { display: none; background: var(--trust-panel); border-radius: 16px; padding: clamp(20px, 3vw, 30px); }
.mode-panel p:last-child { margin-bottom: 0; }
#mode-local:checked ~ .mode-panels .mode-local,
#mode-cloud:checked ~ .mode-panels .mode-cloud { display: block; }

/* ---------- questions ---------- */
.trust-questions details { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; margin: 0; }
.trust-questions details:last-child { border-bottom: 1px solid var(--line); }
.trust-questions summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 18px 0; font-weight: 700; border-radius: 0;
}
.trust-questions summary::-webkit-details-marker { display: none; }
.trust-questions summary::after { content: "+"; flex: none; color: var(--trust-mark); font-size: 1.4rem; line-height: 1; }
.trust-questions details[open] summary::after { content: "\2212"; }
.trust-questions details > :not(summary) { margin-left: 0; margin-right: 0; }
.trust-questions details > :last-child:not(summary) { padding-bottom: 20px; }

/* ---------- IT reviewers ---------- */
.trust-stores a { margin-right: 4px; }
.trust-page .actions .btn.primary { background: var(--trust-ink); border-color: var(--trust-ink); color: var(--trust-ink-fg); font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.trust-page .actions .btn.primary:hover { filter: brightness(1.08); color: var(--trust-ink-fg); }
.trust-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); padding-top: 20px; margin: 8px 0 0; }

@media (max-width: 760px) {
  .trust-hero { grid-template-columns: 1fr; }
  .trust-card { justify-self: start; max-width: 300px; }
  .trust-row { grid-template-columns: 1fr; padding: 32px 0; }
}
