/* Shared dark premium theme — all inner pages + index base */

:root {
  --page-dark-bg: linear-gradient(180deg, #050505 0%, #070707 48%, #050505 100%);
}

html,
body.page-root {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: transparent !important;
  background-image: none !important;
  color: rgba(255, 255, 255, 0.86);
  overflow-x: clip;
}

body.page-root > *:not(.zoom-overlay):not(#site-head):not(.layout-top):not(.ambient-bg) {
  position: relative;
  z-index: 1;
}

#page-body,
main.page {
  position: relative;
  z-index: 0;
  background: transparent;
}

.site-head {
  margin-top: 0;
  top: 0;
}

.band,
.band--muted {
  position: relative;
  z-index: 1;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-top: none;
}

.band::before,
.band::after {
  display: none !important;
  content: none !important;
}

.page-foot,
.page-foot:not(.page-foot) {
  position: relative;
  z-index: 1;
  background: #030303 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 24px 36px;
}

.page-foot .border-t,
.page-foot .border-t {
  border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Inner page shell — body offsets head-bar; avoid stacking extra top padding */
body.page-root:not(:has(.hero-wrap)) #page-body {
  padding: 0 24px 40px !important;
}

body.page-root:not(:has(.hero-wrap)) #page-body.dl-page,
body.page-root:not(:has(.hero-wrap)) #page-body.walk-page,
body.page-root:not(:has(.hero-wrap)) #page-body.feat-page,
body.page-root:not(:has(.hero-wrap)) #page-body.qa-page,
body.page-root:not(:has(.hero-wrap)) #page-body.trust-page {
  padding: 0 !important;
}

/* Premium inner pages — hero clears fixed head-bar; no double body offset */

body.page-root:has(#page-body.dl-page),
body.page-root:has(#page-body.walk-page),
body.page-root:has(#page-body.feat-page),
body.page-root:has(#page-body.qa-page),
body.page-root:has(#page-body.trust-page) {
  padding-top: 0 !important;
}

body.page-root #page-body > .mx-auto {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 28px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.22);
}

.breadcrumb li[aria-current="page"] {
  color: rgba(255, 255, 255, 0.62);
}

/* Page intro — centered header on all inner pages */
#page-body .section-label {
  margin-bottom: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
}

#page-body > .mx-auto > h1,
#page-body h1.text-4xl,
#page-body h1.text-3xl,
.walk-intro h1 {
  margin: 0 auto 20px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem) !important;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: transparent !important;
  background: linear-gradient(180deg, #fff 0%, #d8d8dc 38%, #8b8d94 72%, #f2f2f4 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

#page-body > .mx-auto > p.text-lg,
#page-body > .mx-auto > .max-w-3xl.text-lg,
#page-body .page-lead,
.walk-intro p.text-lg {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.02rem !important;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.68) !important;
}

/* Tailwind slate overrides — match home palette */
#page-body .text-slate-300,
#page-body .text-slate-400,
.walk-page .text-slate-300,
.walk-page .text-slate-400 {
  color: rgba(255, 255, 255, 0.68) !important;
}

#page-body .text-slate-500,
.walk-page .text-slate-500 {
  color: rgba(255, 255, 255, 0.42) !important;
}

#page-body .text-white,
.walk-page .text-white {
  color: rgba(255, 255, 255, 0.94) !important;
}

#page-body h2,
.walk-page h2 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

#page-body h3,
.walk-page h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

/* Panels & cards */
#page-body .panel,
.walk-page .panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(8, 8, 8, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    inset 0 0 22px rgba(255, 255, 255, 0.025),
    0 18px 55px rgba(0, 0, 0, 0.42);
}

#page-body section:not(.hero-wrap),
.walk-page #page-body section {
  margin-top: 2rem;
}

#page-body .stat-cell {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

#page-body .text-accent {
  color: rgba(255, 255, 255, 0.82) !important;
}

/* Related pages block */
.related-pages {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: none;
  text-align: center;
}

.related-pages h2 {
  margin-bottom: 1.25rem;
}

.related-pages ul {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.related-pages li {
  width: 100%;
  display: flex;
  justify-content: center;
}

.related-pages li + li {
  margin-top: 0;
}

.related-pages a {
  display: inline-block;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-pages a:hover {
  color: rgba(255, 255, 255, 0.92);
}

/* FAQ accordion — match home */
#page-body .acc-item.panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

#page-body .acc-btn {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#page-body .accordion-panel {
  color: rgba(255, 255, 255, 0.68) !important;
}

/* Links */
#page-body .link-cyan,
.walk-page .link-cyan {
  color: rgba(255, 255, 255, 0.72);
}

#page-body .link-cyan:hover,
.walk-page .link-cyan:hover {
  color: #fff;
}

/* Floating download — index page only (see index.html + index.css) */

/* Guides page — align with shared theme (visual section in guides.css) */
.page-toc {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.page-toc h2 {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

.page-toc a {
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-toc a:hover {
  color: rgba(255, 255, 255, 0.92);
}

#page-body .feature-list li {
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 640px) {
  body.page-root:not(:has(.hero-wrap)) #page-body {
    padding: 0 18px 32px !important;
  }
}
