/* The trust centre's shared design language, loaded by every /trust page
   before its own stylesheet: a mint hero field and closing band carrying
   the connector-ribbon motif, dark pill tags, one green phrase per heading,
   and the homepage's heading scale and section spacing. Page-specific parts
   (diagrams, the contents rail, the five-step sequence) stay in each page's
   own stylesheet. Tokens come from site.css. */

/* ---------- Motif: connector ribbons (decorative) ---------- */

.trust-ribbons { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.trust-ribbons .rib { fill: none; stroke: var(--ink); stroke-linecap: round; }
.trust-ribbons .flowline { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 3 9; stroke-linecap: round; opacity: .5; }
.m-intel .trust-ribbons .rib { stroke: rgba(185, 231, 216, .1); }
.m-intel .trust-ribbons .flowline { stroke: var(--mint); opacity: .35; }

/* ---------- Pill tag and heading accent ---------- */

.trust-tag {
  display: inline-flex; align-items: center; gap: 8px; align-self: start; justify-self: start;
  background: var(--ink); color: var(--paper); border-radius: 999px;
  padding: 5px 14px 5px 5px; font-size: 13px; font-weight: 600; line-height: 1.2;
}
.trust-tag span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--mint); color: var(--ink); font: 600 12px/1 var(--mono); }
.trust-tag svg { width: 14px; height: 14px; }
/* A section number on its own: the pill closes round the number. */
.trust-tag-num { padding-right: 5px; }
.m-intel .trust-tag { background: var(--mint); color: var(--night); }
.m-intel .trust-tag span { background: var(--night); color: var(--mint); }
.trust-accent { color: var(--green); }
.m-intel .trust-accent { color: var(--mint); }

/* ---------- Hero: mint field ---------- */

.trust-hero-band { position: relative; overflow: hidden; background: var(--mint); color: var(--ink); }
/* On narrow screens the ribbons would cross the headline, so the mint
   fields keep their colour and drop the motif. */
@media (max-width: 999px) { .trust-hero-band .trust-ribbons, .trust-cta .trust-ribbons { display: none; } }
.trust-hero { position: relative; padding-block: clamp(40px, 7vh, 96px) clamp(48px, 8vh, 104px); }
.trust-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(20px, 3vh, 28px); font-size: 14px; color: var(--ink-2); }
.trust-breadcrumb .breadcrumb { color: var(--ink-2); }
.trust-breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.trust-hero h1 { margin-top: clamp(18px, 3vh, 28px); font-size: clamp(2.6rem, 6vw, 5.6rem); letter-spacing: -.05em; line-height: .98; max-width: 16ch; }
.trust-hero h1 > span { display: block; }
.trust-hero h1 .trust-accent { color: var(--green-2); }
.trust-lead { margin-top: clamp(20px, 3vh, 28px); font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.4; color: var(--ink-2); max-width: 40ch; }
.trust-hero .button { margin-top: clamp(24px, 4vh, 36px); }

/* ---------- Sections: tag above heading, homepage scale ---------- */

.trust-hero-band + .page-sections, .trust-hero-band + .as-layout .page-sections { padding-top: 0; }
.page-sections .page-section { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: clamp(80px, 12vh, 150px); scroll-margin-top: var(--header); }
.page-section > div { display: grid; gap: 18px; align-content: start; }
.page-section h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); letter-spacing: -.045em; max-width: 18ch; }
.page-section .section-prose { margin-top: 0; font-size: clamp(1.05rem, 1.3vw, 1.22rem); max-width: 52ch; }
.page-section .content-cards, .page-section .detail-list { margin-top: 12px; }
.page-section .content-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.page-section .content-cards article { border-radius: 18px; }
.page-section .content-cards h3 { font-size: 1.12rem; line-height: 1.25; letter-spacing: -.015em; }
.page-section .content-cards p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.page-section .detail-list { font-size: clamp(1.02rem, 1.2vw, 1.12rem); }

/* ---------- Night chapter, as on the homepage ---------- */

/* data-mode="intel" on the section switches the site header to match. */
.m-intel { background: var(--night); color: var(--night-ink); }
.trust-chapter { position: relative; overflow: hidden; padding-block: clamp(90px, 14vh, 170px); scroll-margin-top: var(--header); }
.trust-chapter .wrap { position: relative; }
.trust-chapter-head { display: grid; gap: 18px; align-content: start; }
.trust-chapter h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); letter-spacing: -.045em; max-width: 18ch; }
.trust-chapter-prose { font-size: clamp(1.05rem, 1.3vw, 1.22rem); color: var(--night-muted); max-width: 48ch; }
.trust-needs { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.trust-needs li { display: grid; gap: 14px; align-content: start; padding: 22px 22px 24px; border: 1px solid var(--night-line); border-radius: 18px; background: var(--night-2); font-size: 1.12rem; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.trust-needs span { font: 600 12px/1 var(--mono); letter-spacing: .08em; color: var(--mint); }
@media (min-width: 1000px) {
  .trust-chapter-split .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
  .trust-chapter-split .trust-needs { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Closing band: mint field ---------- */

.trust-cta { position: relative; overflow: hidden; background: var(--mint); color: var(--ink); padding-block: clamp(80px, 12vh, 140px); }
.trust-cta .wrap { position: relative; display: grid; gap: 18px; justify-items: start; }
.trust-cta h2 { margin-top: 0; font-size: clamp(2.2rem, 5vw, 4.4rem); letter-spacing: -.045em; max-width: 15ch; }
.trust-cta p:not(.trust-tag) { margin-top: 0; color: var(--ink-2); font-size: 16px; }
.trust-cta .button { margin-top: 10px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.trust-cta .button:hover { background: var(--ink-2); }

/* ---------- Motion ---------- */

.trust-ribbons .flowline { animation: trust-flow 3s linear infinite; }
@keyframes trust-flow { to { stroke-dashoffset: -14; } }
@media (prefers-reduced-motion: reduce) { .trust-ribbons .flowline { animation: none; } }
@media print { .trust-ribbons .flowline { animation: none; } }
