/* MindBank shared styles for trust-document subpages */
:root {
  --ink: #1f1a17; --ink-soft: #4a3f37;
  --paper: #f5efe6; --paper-warm: #ebe1d2; --paper-deep: #e0d3bd;
  --rust: #b85c3a; --rust-deep: #8a3f24;
  --sage: #6b7a5a; --gold: #c8923a;
  --line: rgba(31, 26, 23, 0.12);
  --line-soft: rgba(31, 26, 23, 0.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink);
  font-family: 'Inter Tight', sans-serif; font-weight: 400; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.10 0 0 0 0 0.09 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif; font-weight: 400; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--ink);
  font-variation-settings: "SOFT" 70, "WONK" 0;
}
p { color: var(--ink-soft); margin-bottom: 16px; }
a { color: var(--rust); }
::selection { background: var(--rust); color: var(--paper); }

.container { max-width: 920px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0; background: rgba(245, 239, 230, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
nav .container { max-width: 1280px; display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500;
  letter-spacing: -0.02em; text-decoration: none; color: var(--ink);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
a.logo, a.logo:link, a.logo:visited, a.logo:hover, a.logo:active { color: var(--ink); text-decoration: none; }
a.logo span, a.logo:visited span { color: var(--rust); }
.nav-links { display: flex; gap: 38px; list-style: none; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 14px;
  font-weight: 500; transition: color 0.3s;
}
.nav-links a:hover { color: var(--rust); }
.nav-cta {
  background: var(--ink); color: var(--paper); padding: 10px 22px;
  border-radius: 999px; font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all 0.3s;
}
.nav-cta:hover { background: var(--rust); }

.doc-header { padding: 180px 0 80px; position: relative; }
.doc-header::after {
  content: ''; position: absolute; top: 30%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(184, 92, 58, 0.15) 0%, transparent 70%);
  border-radius: 50%; filter: blur(40px); z-index: 0;
}
.breadcrumb {
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rust); margin-bottom: 32px;
  display: flex; align-items: center; gap: 12px;
}
.breadcrumb::before { content: ''; width: 32px; height: 1px; background: var(--rust); }
.doc-header h1 {
  font-size: clamp(48px, 7vw, 88px); line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 32px; font-weight: 400; max-width: 16ch;
}
.doc-header h1 em { font-style: italic; color: var(--rust); font-weight: 300; }
.doc-meta {
  margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line);
  display: flex; gap: 60px; flex-wrap: wrap;
}
.doc-meta-item .label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; opacity: 0.7;
}
.doc-meta-item .value { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 400; }

.doc-body { padding: 60px 0 140px; max-width: 720px; }
.doc-body section { margin-bottom: 72px; }
.doc-body h2 {
  font-size: 36px; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 24px; padding-top: 24px;
  display: flex; align-items: baseline; gap: 18px;
}
.doc-body h2 .num {
  font-family: 'Fraunces', serif; font-size: 14px; font-weight: 500;
  color: var(--rust); letter-spacing: 0.1em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-style: italic; flex-shrink: 0;
}
.doc-body h3 { font-size: 20px; margin: 28px 0 14px; font-weight: 500; letter-spacing: -0.01em; }
.doc-body p { font-size: 16.5px; line-height: 1.7; }
.doc-body ul { list-style: none; margin: 16px 0 24px; }
.doc-body li {
  padding-left: 24px; position: relative; margin-bottom: 10px;
  font-size: 16px; line-height: 1.6; color: var(--ink-soft);
}
.doc-body li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 12px; height: 1px; background: var(--rust);
}
.doc-body strong { color: var(--ink); font-weight: 500; }
.callout {
  background: var(--paper-warm); padding: 28px 32px; border-radius: 4px;
  margin: 28px 0; border-left: 3px solid var(--rust);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { display: block; font-family: 'Fraunces', serif; font-size: 18px;
  margin-bottom: 8px; color: var(--ink); font-weight: 500; }

/* Tier table for verification page */
.tier-table {
  margin: 32px 0; border-top: 1px solid var(--line);
}
.tier-row {
  display: grid; grid-template-columns: 180px 1fr;
  padding: 24px 0; border-bottom: 1px solid var(--line);
  gap: 32px; align-items: start;
}
.tier-row .level {
  font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em;
}
.tier-row .level small {
  display: block; font-family: 'Inter Tight'; font-size: 11px;
  font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--rust); margin-bottom: 6px;
}
.tier-row .desc p { font-size: 15.5px; margin-bottom: 8px; }
.tier-row .desc p.method {
  font-size: 14px; color: var(--ink-soft); font-style: italic;
  padding-top: 8px; border-top: 1px dashed var(--line);
  margin-top: 10px;
}

footer { background: #1a1612; color: var(--paper); padding: 70px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 56px; }
footer .container { max-width: 1280px; }
footer h5 {
  font-family: 'Inter Tight', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245, 239, 230, 0.5); margin-bottom: 18px;
}
footer .logo { color: var(--paper); margin-bottom: 16px; font-size: 26px; display: block; }
footer .logo span { color: var(--gold); }
footer p { color: rgba(245, 239, 230, 0.65); font-size: 14.5px; max-width: 38ch; }
footer ul { list-style: none; }
footer li { margin-bottom: 9px; }
footer a { color: rgba(245, 239, 230, 0.75); text-decoration: none; font-size: 14px; }
footer a:hover { color: var(--gold); }
.parent-org-credit {
  margin-top: 56px; padding: 28px 0;
  border-top: 1px solid rgba(245, 239, 230, 0.1);
  border-bottom: 1px solid rgba(245, 239, 230, 0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.parent-org-credit .credit-block {
  font-size: 13px; color: rgba(245, 239, 230, 0.65); line-height: 1.6;
}
.parent-org-credit .credit-block strong {
  color: var(--paper); font-weight: 500;
}
.parent-org-credit .credit-block a {
  color: var(--gold); text-decoration: none; font-size: 13px;
}
.parent-org-credit .credit-block a:hover { text-decoration: underline; }
.parent-org-credit .credit-block .founder {
  font-style: italic; color: rgba(245, 239, 230, 0.55);
  font-family: 'Fraunces', serif; font-size: 14px;
}
.land-acknowledgement {
  padding: 28px 0; margin-bottom: 8px;
  font-size: 13px; line-height: 1.7;
  color: rgba(245, 239, 230, 0.6);
  max-width: 78ch;
}
.land-acknowledgement .label {
  display: block; font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px; opacity: 0.85;
}
.footer-bottom {
  padding-top: 28px; border-top: 1px solid rgba(245, 239, 230, 0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 14px; font-size: 13px; color: rgba(245, 239, 230, 0.5);
}

@media (max-width: 768px) {
  .container { padding: 0 22px; }
  .nav-links { display: none; }
  .doc-header { padding: 130px 0 50px; }
  .doc-body { padding: 40px 0 90px; }
  .doc-body h2 { font-size: 28px; flex-direction: column; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .tier-row { grid-template-columns: 1fr; gap: 8px; }
}
