/* Stay Vault Days — legal & article (prose) pages. Light, readable, official.
   Reuses tokens from styles.css. */

.doc-main { padding: 56px 0 96px; background: var(--bg-0); }
.doc-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.doc-eyebrow {
  color: var(--gold); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 13px;
}
.doc-wrap h1 {
  font-family: var(--font-display); font-size: clamp(30px, 5vw, 46px);
  color: var(--text); margin: 12px 0 8px; line-height: 1.1;
}
.doc-meta { color: var(--muted); font-size: 15px; margin-bottom: 36px; }

.doc-wrap h2 {
  font-family: var(--font-display); font-size: 24px; color: var(--text);
  margin: 40px 0 12px;
}
.doc-wrap h3 { font-size: 18px; color: var(--text); margin: 26px 0 8px; }
.doc-wrap p, .doc-wrap li {
  color: var(--muted); font-size: 17px; line-height: 1.7;
}
.doc-wrap p { margin: 0 0 16px; }
.doc-wrap strong { color: var(--text); }
.doc-wrap a { color: var(--indigo-soft); text-decoration: underline; }
.doc-wrap ul, .doc-wrap ol { margin: 0 0 18px; padding-left: 22px; }
.doc-wrap li { margin-bottom: 8px; }

.doc-toc {
  background: var(--bg-2); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 22px 26px; margin: 0 0 36px;
}
.doc-toc h2 { margin: 0 0 10px; font-size: 16px; }
.doc-toc ol { margin: 0; }
.doc-toc a { text-decoration: none; }
.doc-toc a:hover { text-decoration: underline; }

.doc-callout {
  border-left: 3px solid var(--indigo); background: rgba(99,102,241,0.06);
  padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 0 0 22px;
}
.doc-callout p { margin: 0; color: var(--text); }

/* ---- Article / blog ---- */
.article-hero { max-width: 760px; margin: 0 auto 28px; }
.article-cat {
  display: inline-block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--indigo-soft); background: rgba(99,102,241,0.10);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.article-body figure.lead-quote {
  margin: 28px 0; padding: 18px 22px; border-left: 3px solid var(--gold);
  background: rgba(176,125,24,0.06); border-radius: 0 12px 12px 0;
}
.article-cta {
  margin: 40px 0 0; padding: 28px; text-align: center;
  background: var(--bg-2); border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.article-cta h3 { margin: 0 0 8px; }
.article-cta p { margin: 0 0 16px; }

/* ---- News index ---- */
.news-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 36px;
}
.news-card {
  display: block; background: var(--bg-2); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 26px; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card .nc-cat {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--indigo-soft);
}
.news-card h3 {
  font-family: var(--font-display); font-size: 21px; color: var(--text);
  margin: 8px 0 8px; line-height: 1.25;
}
.news-card p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.news-card .nc-meta { color: var(--muted-2); font-size: 13px; }

@media (max-width: 700px) {
  .news-grid { grid-template-columns: 1fr; }
  .doc-wrap p, .doc-wrap li { font-size: 16px; }
}

/* ---- compliance pages: review markers, tables, notes ---- */
.review-flag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.02em;
  color:#92600a;background:#fdf1d6;border:1px solid #f0d692;border-radius:6px;padding:1px 6px;vertical-align:middle;}
.legal-table{width:100%;border-collapse:collapse;margin:18px 0;font-size:14px;}
.legal-table th,.legal-table td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--card-border,#e6e8f0);vertical-align:top;}
.legal-table th{font-weight:700;}
.legal-table tbody tr:nth-child(odd){background:rgba(99,102,241,.04);}
.legal-note{font-size:14px;color:var(--muted,#5b6270);margin-top:14px;}
@media (prefers-color-scheme:dark){
  .review-flag{color:#fbbf24;background:#2a2410;border-color:#5a4a16;}
  .legal-table tbody tr:nth-child(odd){background:rgba(255,255,255,.03);}
}

/* ---- Shared fixed nav on doc pages (no scroll JS here) ----
   components.css styles .nav as fixed + transparent-until-.scrolled. These doc
   pages have no site.js, so pin a solid light backdrop by default and reserve
   space below the bar so the page title isn't tucked underneath it. */
.nav {
  background: rgba(250,250,251,0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}
body { padding-top: 68px; }
.doc-main { padding-top: 32px; }

/* ============ Insights hub + article enhancements ============ */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--indigo-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.insights-lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); line-height: 1.65; max-width: 760px; margin: 0 0 40px; }
.insights-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--bg-2); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; margin: 0 0 40px; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.insights-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.insights-feature .if-media { min-height: 240px; }
.insights-feature .if-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.insights-feature .if-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.insights-feature .if-body h2 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); color: var(--text); margin: 8px 0 10px; line-height: 1.2; }
.insights-feature .if-body p { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
@media (max-width: 760px) { .insights-feature { grid-template-columns: 1fr; } }
.article-hero-img { margin: 8px 0 28px; }
.article-hero-img img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--card-border); display: block; }
.hero-credit { font-size: 12px; color: var(--muted-2); margin-top: 8px; text-align: right; }
.hero-credit a { color: var(--muted-2); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.article-tag { font-size: 12px; font-weight: 600; color: var(--indigo-soft); background: rgba(99,102,241,0.10); border-radius: 999px; padding: 5px 12px; }
.article-disclaimer { margin-top: 24px; font-size: 14px; color: var(--muted-2); border-top: 1px solid var(--card-border); padding-top: 20px; }
.related-wrap { margin-top: 56px; border-top: 1px solid var(--card-border); padding-top: 32px; }
.related-wrap h2 { font-family: var(--font-display); font-size: 24px; color: var(--text); margin: 0 0 22px; }

/* ============ Doc/Insights pages: footer + self-contained mobile nav ============ */
/* These pages load styles+components+legal.css but NOT sections.css, so the
   footer styling and the responsive nav collapse must live here too. */

/* Footer (dark panel, light text) */
.footer { border-top: 1px solid rgba(255,255,255,0.06); background: linear-gradient(180deg, #05060d, #04050a); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.62); margin-bottom: 20px; }
.footer .f-brand-text { color: rgba(255,255,255,0.80); font-size: 15px; max-width: 320px; margin: 16px 0 10px; }
.footer .f-copy { font-size: 13px; color: rgba(255,255,255,0.58); }
.footer .brand { display: inline-flex; align-items: center; gap: 10px; }
.footer .brand-name { color: #fff; font-family: var(--font-display); font-size: 20px; }
.footer .brand-name b { color: var(--gold-fill); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.footer-links a { color: rgba(255,255,255,0.82); font-size: 15px; transition: color 0.25s; }
.footer-links a:hover { color: var(--gold-fill); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 12px; color: rgba(255,255,255,0.60); max-width: 760px; line-height: 1.6; }

/* Self-contained mobile hamburger (toggled via inline onclick → .nav-inner.open) */
.nav .nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--text); padding: 6px; margin-left: auto; }
.nav .nav-toggle svg { width: 26px; height: 26px; display: block; }
@media (max-width: 820px) {
  .nav .nav-inner { flex-wrap: wrap; }
  .nav .nav-toggle { display: inline-flex; }
  .nav .nav-inner > .btn-gold { display: none; }
  .nav .nav-links { display: none; width: 100%; order: 3; flex-direction: column; gap: 0; }
  .nav .nav-inner.open .nav-links { display: flex; }
  .nav .nav-links a { padding: 15px 2px; border-bottom: 1px solid var(--card-border); font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
