/* Caspenda · Trust & Footer Institutional Layer
   P3-4 + P3-5: governance pages and site footer. */

/* ---------------- Trust / governance pages ---------------- */
body.institutional-trust main {
  background: #fbfcfd;
}

body.institutional-trust main > .hero {
  padding: 54px 0 30px !important;
  background: linear-gradient(180deg, rgba(7,28,63,.028), rgba(7,28,63,0));
  border-bottom: 1px solid #e1e6eb;
}

body.institutional-trust main > .hero .container {
  max-width: 960px;
}

body.institutional-trust main > .hero .breadcrumb {
  margin-bottom: 24px;
}

body.institutional-trust main > .hero h1 {
  max-width: 760px;
  margin: 0;
  color: #071c3f;
  font-size: clamp(2.35rem, 4.5vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 650;
}

body.institutional-trust main > .hero .sub {
  max-width: 700px;
  margin: 18px 0 0;
  color: #637083;
  font-size: 1.02rem;
  line-height: 1.75;
}

body.institutional-trust main > .section {
  padding-top: 44px;
}

body.institutional-trust .prose {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

body.institutional-trust .prose::before {
  content: "RESEARCH & GOVERNANCE";
  display: block;
  margin: 0 0 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dce3e9;
  color: #168f83;
  font-size: .68rem;
  font-weight: 760;
  letter-spacing: .13em;
}

body.institutional-trust .prose h2 {
  margin: 38px 0 13px;
  padding-top: 24px;
  border-top: 1px solid #e1e6eb;
  color: #071c3f;
  font-size: 1.28rem;
  line-height: 1.3;
  letter-spacing: -.02em;
  font-weight: 650;
}

body.institutional-trust .prose h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

body.institutional-trust .prose h3 {
  color: #102d5e;
}

body.institutional-trust .prose p,
body.institutional-trust .prose li {
  color: #4f5d70;
  font-size: .95rem;
  line-height: 1.78;
}

body.institutional-trust .prose ul,
body.institutional-trust .prose ol {
  margin: 12px 0 18px;
}

body.institutional-trust .prose li + li {
  margin-top: 7px;
}

body.institutional-trust .prose strong {
  color: #26374d;
}

body.institutional-trust .prose a {
  color: #0f766e;
  text-underline-offset: 3px;
}

body.institutional-trust .formula-box,
body.institutional-trust .method-card,
body.institutional-trust .info-card {
  border-radius: 2px !important;
  box-shadow: none !important;
  border-color: #dce3e9 !important;
}

body.institutional-trust .formula-box {
  margin: 16px 0 22px;
  padding: 18px 20px;
  border-left: 3px solid #168f83 !important;
  background: #f5f8fa;
  color: #26374d;
}

/* ---------------- Institutional footer ---------------- */
.site-footer {
  position: relative;
  margin-top: 92px;
  background: #071c3f !important;
  border-top: 0 !important;
  color: rgba(255,255,255,.84);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #168f83 0 14%, #2aa69a 14% 22%, transparent 22%);
}

.site-footer .container {
  max-width: 1200px;
  padding-top: 54px !important;
  padding-bottom: 30px !important;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, 1fr);
  gap: 54px;
  align-items: start;
}

.site-footer .footer-grid > div:first-child {
  padding-right: 32px;
}

.site-footer .logo-img {
  height: 34px;
  width: auto;
  filter: none !important;
}

.site-footer .footer-grid > div:first-child p {
  color: rgba(255,255,255,.62) !important;
  line-height: 1.65;
}

.site-footer .footer-grid h4 {
  margin: 2px 0 17px;
  color: rgba(255,255,255,.48) !important;
  font-size: .66rem !important;
  line-height: 1;
  font-weight: 760;
  letter-spacing: .14em !important;
  text-transform: uppercase;
}

.site-footer .footer-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.site-footer .footer-grid li {
  margin: 0;
}

.site-footer .footer-grid a {
  color: rgba(255,255,255,.78) !important;
  font-size: .86rem;
  text-decoration: none;
  transition: color .14s ease;
}

.site-footer .footer-grid a:hover {
  color: #7ad3ca !important;
}

.site-footer .footer-note {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12) !important;
}

.site-footer .footer-note p {
  margin: 0;
  color: rgba(255,255,255,.46) !important;
  font-size: .74rem;
  line-height: 1.6;
}

.site-footer .footer-note .foot-src a {
  color: rgba(255,255,255,.58) !important;
  font-size: .74rem;
}

.site-footer .footer-note .foot-src a:hover {
  color: #7ad3ca !important;
}

/* Dark theme: footer intentionally stays branded navy; trust pages follow dark system. */
[data-theme="dark"] body.institutional-trust main,
[data-theme="dark"] body.institutional-trust main > .hero {
  background: var(--bg);
}
[data-theme="dark"] body.institutional-trust main > .hero {
  border-color: var(--border);
}
[data-theme="dark"] body.institutional-trust main > .hero h1,
[data-theme="dark"] body.institutional-trust .prose h2,
[data-theme="dark"] body.institutional-trust .prose h3 {
  color: var(--ink);
}
[data-theme="dark"] body.institutional-trust .prose::before,
[data-theme="dark"] body.institutional-trust .prose h2 {
  border-color: var(--border);
}
[data-theme="dark"] body.institutional-trust .prose p,
[data-theme="dark"] body.institutional-trust .prose li,
[data-theme="dark"] body.institutional-trust main > .hero .sub {
  color: var(--ink-soft);
}
[data-theme="dark"] body.institutional-trust .formula-box {
  background: var(--bg-soft);
  color: var(--ink);
}

@media (max-width: 900px) {
  body.institutional-trust main > .hero {
    padding: 38px 0 22px !important;
  }
  body.institutional-trust main > .hero .container {
    text-align: left;
  }
  body.institutional-trust .prose {
    padding: 0 18px;
  }
  .site-footer .container {
    padding-top: 42px !important;
  }
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 26px;
  }
  .site-footer .footer-grid > div:first-child {
    grid-column: 1 / -1;
    padding-right: 0;
    padding-bottom: 8px;
  }
  .site-footer .footer-note {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-footer .footer-grid > div:first-child {
    grid-column: auto;
  }
}
