/* Shared interface; the independent wealth-check theme stays in style.css. */
.site-shell {
  --paper: #f5f7f8;
  --ink: #202e35;
  --muted: #576771;
  --line: #dce3e7;
  --shadow: 0 2px 8px rgb(24 43 52 / 4%);
  line-height: 1.55;
  letter-spacing: 0;
}

.site-shell [hidden] { display: none !important; }
.site-shell main { min-height: 65vh; }
.site-shell :is(section, div, nav)[id] { scroll-margin-top: 100px; }
.site-shell :is(h1, h2, h3, p, a, strong) { overflow-wrap: anywhere; }
.site-shell :is(h1, h2, h3) { text-wrap: balance; }
.site-shell :is(h1, h2, h3, p):first-child { margin-top: 0; }
.site-shell :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #2973ae;
  outline-offset: 3px;
}
.site-shell #main-content:focus { outline: none; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  background: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-shell .topnav {
  height: 76px;
  min-height: 76px;
  padding: 0 max(24px, calc((100% - 1280px) / 2));
  background: #fff;
  backdrop-filter: none;
  z-index: 30;
}
.site-shell .topnav .brand { flex-shrink: 0; font-size: 1.12rem; }
.site-shell .brand img { width: 32px; height: 32px; flex-basis: 32px; }
.site-menu > summary { display: none; }
.site-shell .topnav .site-menu-links { gap: 2px; }
.site-shell .topnav a:not(.brand),
.site-shell .topnav button { font-size: 0.9rem; padding: 0 12px; }
.site-shell .topnav a:hover,
.site-shell .topnav button:hover { background: #edf3f4; }
.site-shell .topnav .nav-cta {
  margin-left: 12px;
  background: var(--primary-dark);
  color: white;
  font-weight: 700;
  min-height: 42px;
}
.site-shell .topnav .nav-cta:hover { background: var(--primary); }
.site-shell .actions { justify-content: flex-start; gap: 12px; }
.site-shell :is(.primary, .secondary, button) {
  padding: 10px 18px;
  line-height: 1.35;
  transition: background-color 140ms, border-color 140ms, box-shadow 140ms;
}
.site-shell :is(.primary, button):hover { background: var(--primary-dark); }
.site-shell .secondary:hover { background: #eef4f5; border-color: #a6bbc1; }
.site-shell :is(button, input, select):disabled { opacity: 0.55; cursor: not-allowed; }
.site-shell .danger-button:hover { background: #8c2d26; }
.site-shell .page-head { gap: 18px 28px; align-items: flex-start; }
.site-shell .page-head > div:first-child { flex: 1 1 380px; min-width: 0; }
.site-shell :is(.page-head, .panel) h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 4px 0 12px;
}
.site-shell .page-head p:not(.eyebrow) { margin: 0; color: var(--muted); max-width: 760px; }
.site-shell .page-head .eyebrow { margin-bottom: 8px; }
.site-shell .page-head-actions { gap: 8px; }
.site-shell .page-head-actions :is(a, button) { font-size: 0.875rem; }
.site-shell .panel { box-shadow: none; }
.site-shell label { font-weight: 600; color: #344850; }
.site-shell :is(input, select, textarea) { font-size: 1rem; border-color: #b9c9cf; }
.site-shell :is(input, textarea)::placeholder { color: #697d86; opacity: 1; }
.site-shell input[type='checkbox'] { accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; }
.site-shell .check-row { align-items: flex-start; }
.site-shell .check-row input { margin-top: 3px; }
.site-shell .error { border-left: 3px solid #b13c33; }
.site-shell .success { border-left: 3px solid var(--primary); }

/* Full-width bands avoid viewport-width offsets and scrollbar overflow. */
.site-shell main:has(> .landing-page) { width: 100%; padding: 0 0 64px; }
.site-shell .landing-page { gap: 0; }
.site-shell .landing-page > * {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-width: 0;
}
.site-shell .landing-page > .landing-hero {
  left: auto;
  width: 100%;
  min-height: min(540px, calc(100svh - 160px));
  padding: 64px max(24px, calc((100% - 1180px) / 2));
  background-position: center;
}
.site-shell .landing-hero-content { max-width: 670px; }
.site-shell .landing-hero h1 { font-size: 4.25rem; line-height: 1.06; }
.site-shell .landing-hero p:not(.eyebrow) { max-width: 590px; margin: 22px 0 26px; font-size: 1.125rem; }
.site-shell .landing-hero .eyebrow { color: #a9e6d5; font-size: 0.8rem; }
.site-shell .landing-hero .actions { width: auto; }
.site-shell .hero-text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  min-height: 36px;
  color: white;
  text-underline-offset: 5px;
  font-size: 0.95rem;
}
.site-shell .landing-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.landing-jump-links a { font-size: 0.875rem; text-decoration: none; padding: 8px 0; color: var(--muted); }
.landing-jump-links a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 5px; }
.site-shell .landing-section { padding: 60px 0; gap: 28px; }
.site-shell .landing-section-head { max-width: 750px; gap: 12px; }
.site-shell :is(.landing-section-head, .landing-split, .landing-cta) h2 { font-size: 2.125rem; line-height: 1.2; }
.site-shell .landing-section-head .eyebrow { margin: 0; }
.site-shell .persona-card {
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 250px;
  box-shadow: none;
}
.site-shell .persona-card img { min-height: 100%; height: 100%; object-fit: cover; }
.site-shell .persona-card div { padding: 24px; gap: 12px; }
.site-shell .persona-card h3 { font-size: 1.35rem; line-height: 1.3; }
.site-shell .persona-card p:not(.eyebrow) { font-size: 0.94rem; }
.site-shell .persona-card .eyebrow { font-size: 0.7rem; }
.site-shell .persona-card a { font-size: 0.875rem; margin-top: 4px; }
.site-shell .persona-card:last-child { border-top: 3px solid var(--blue); }
.site-shell .persona-card:first-child { border-top: 3px solid var(--primary); }
.feature-search { max-width: 580px; }
.feature-search label { margin-bottom: 8px; }
.feature-search p { margin: 8px 0 0; font-size: 0.875rem; }
.site-shell .landing-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.site-shell .landing-feature-card {
  grid-template-columns: 108px minmax(0, 1fr);
  grid-template-rows: 1fr;
  min-height: 176px;
  box-shadow: none;
  align-items: start;
  padding: 20px;
  gap: 18px;
}
.site-shell .landing-feature-card img { border: 0; border-radius: 4px; aspect-ratio: 1; width: 100%; height: auto; }
.site-shell .landing-feature-card div { padding: 0; gap: 8px; }
.site-shell .landing-feature-card h3 { color: var(--ink); font-size: 1.05rem; }
.site-shell .landing-feature-card p { font-size: 0.92rem; line-height: 1.6; }
.site-shell .landing-page > .landing-band {
  width: 100%;
  padding: 56px max(24px, calc((100% - 1180px) / 2));
  margin: 0;
}
.site-shell .landing-band { background: #eaf0f3; }
.site-shell .landing-ai { background: #edf4f0; }
.site-shell .landing-split { gap: 40px; }
.site-shell .landing-process li { background: transparent; border: 0; border-bottom: 1px solid #cddade; border-radius: 0; min-height: 110px; }
.site-shell .landing-ai-grid article { background: transparent; border: 0; border-top: 1px solid #bcd1c8; border-radius: 0; padding: 16px 0; }
.site-shell .landing-page > .landing-security { background: #173d3b; }
.site-shell .landing-page > .landing-cta { padding: 60px 0 0; background: transparent; border: 0; border-radius: 0; text-align: left; }
.site-shell .landing-cta .actions { justify-content: flex-start; margin-top: 22px; }
.site-shell .landing-showcase img { aspect-ratio: 16/9; }
.site-shell .persona-landing .landing-hero h1 { font-size: 3.5rem; }
.site-shell main:has(> .ads-page) { width: 100%; padding: 0 0 64px; }
.site-shell .ads-page > * { width: min(1180px, calc(100% - 48px)); margin: 0 auto; min-width: 0; }
.site-shell .ads-page > .ads-hero {
  width: 100%;
  min-height: min(540px, calc(100svh - 160px));
  padding: 56px max(24px, calc((100% - 1180px) / 2));
  margin: 0;
}
.site-shell .ads-hero h1 { font-size: 3.5rem; line-height: 1.1; }
.site-shell .ads-hero-content { max-width: 740px; }
.site-shell .ads-page > .landing-band { width: 100%; padding: 48px max(24px, calc((100% - 1180px) / 2)); margin: 0; }
.site-shell .seo-hero h1 { font-size: 2.75rem; line-height: 1.15; }

.site-shell .auth { min-height: auto; padding: 24px 0 64px; }
.site-shell .auth > .panel {
  width: min(460px, 100%);
  padding: 32px;
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow);
}
.site-shell .auth h1 { font-size: 1.875rem; }
.site-shell .auth-intro { color: var(--muted); margin: 0 0 28px; }
.site-shell .auth button[type='submit'] { width: 100%; margin-top: 12px; }
.site-shell .auth p > a { color: var(--primary-dark); text-underline-offset: 3px; }
.site-shell .auth .password-control { display: flex; min-width: 0; margin: -7px 0 14px; }
.site-shell .password-control input { min-width: 0; border-radius: 6px 0 0 6px; }
.site-shell .password-toggle {
  flex: 0 0 95px;
  border: 1px solid #b9c9cf;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: #f0f5f6;
  color: #344850;
  font-size: 0.8rem;
  padding: 8px;
}
.site-shell .password-toggle:hover { background: #e1ecef; }
.site-shell .password-hint { font-size: 0.83rem; margin: -6px 0 20px; color: var(--muted); }

.breadcrumbs { display: flex; gap: 12px; font-size: 0.85rem; margin-bottom: 20px; color: var(--muted); }
.breadcrumbs a { color: var(--primary-dark); text-underline-offset: 3px; }
.site-shell .dashboard-shortcuts { display: flex; flex-wrap: wrap; gap: 8px 24px; border-bottom: 1px solid var(--line); padding: 18px 0; margin-top: 12px; }
.dashboard-shortcuts a { color: var(--primary-dark); font-size: 0.9rem; padding: 6px 0; text-underline-offset: 5px; }
.site-shell .weg-overview-section { margin-top: 28px; }
.site-shell .dashboard-section-head h2 { font-size: 1.5rem; }
.site-shell .weg-card { border-top: 3px solid var(--primary); box-shadow: none; }
.site-shell .weg-card:hover { border-color: #7fa99e; background: #fbfdfc; box-shadow: var(--shadow); }
.site-shell .weg-card h2 { font-size: 1.3rem; }
.site-shell .weg-card p { margin: 4px 0 18px; font-size: 0.9rem; }
.site-shell .weg-card-action { display: flex; justify-content: space-between; }
.site-shell .weg-card-action::after { content: '\2192'; }
.site-shell .visual-card { min-height: 140px; box-shadow: none; }
.site-shell .visual-card:nth-child(2) { border-top: 3px solid var(--primary); }
.site-shell .visual-card:nth-child(3) { border-top: 3px solid #c56c4b; }
.site-shell .visual-card:nth-child(4) { border-top: 3px solid var(--blue); }
.site-shell .visual-card strong, .site-shell .stats strong { font-variant-numeric: tabular-nums; }
.site-shell .visual-card .donut { width: 42px; height: 42px; }
.site-shell .dashboard-scope-panel { margin-bottom: 16px; background: #edf2f5; }
.site-shell .private-dashboard-panel { background: #f0f2f8; border: 0; border-radius: 0; }
.site-shell .dashboard-export-panel { margin-top: 36px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 28px 0 0; background: transparent; }
.site-shell .dashboard-export-panel h2 { font-size: 1.35rem; }
.site-shell .professional-dashboard { padding: 24px 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.site-shell .weg-subnav { align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; }
.weg-main-links { display: flex; flex: 1 1 auto; gap: 4px; flex-wrap: wrap; }
.site-shell .weg-main-links a {
  padding: 10px 12px;
  min-height: 44px;
  font-size: 0.875rem;
  background: transparent;
  border-color: transparent;
}
.site-shell .weg-main-links a:hover { background: #e9eef0; }
.site-shell .weg-main-links a.active { background: #dceee6; color: #0d4b40; border-color: #b6d2c7; }
.weg-more-nav { position: relative; margin-left: auto; }
.weg-more-nav > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #bcced2;
  border-radius: 6px;
  background: white;
}
.weg-more-nav > summary.active { background: #dceee6; border-color: #b6d2c7; }
.weg-more-links {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 8px);
  width: 270px;
  max-height: 65vh;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 8px 24px rgb(24 43 52 / 12%);
}
.site-shell .weg-more-links a { display: flex; border: 0; font-size: 0.9rem; min-height: 42px; }
.site-shell .weg-more-links a:hover { background: #edf3f4; }
.role-disclosure { margin: -12px 0 28px; border-bottom: 1px solid var(--line); }
.role-disclosure > summary { cursor: pointer; padding: 10px 0 16px; color: var(--primary-dark); font-weight: 600; font-size: 0.9rem; }
.role-disclosure > summary span { margin-left: 14px; font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.site-shell .role-disclosure .role-visibility-panel { margin: 0 0 16px; box-shadow: none; border: 0; border-radius: 0; }
.site-shell .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-shell .module-card { grid-template-columns: 64px minmax(0, 1fr); min-height: 148px; padding: 20px; gap: 8px 16px; box-shadow: none; }
.site-shell .module-card img { grid-row: 1 / 3; aspect-ratio: 1; align-self: start; }
.site-shell .module-card span { font-size: 1rem; }
.site-shell .module-card p { font-size: 0.875rem; }
.site-shell .module-card:hover { border-color: #7fa99e; background: #fbfdfc; }
.site-shell .admin-table-wrap { overscroll-behavior-x: contain; scrollbar-width: thin; }
.site-shell .admin-table { font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.site-shell .admin-table th { color: #425661; background: #edf2f5; font-size: 0.8rem; }
.site-shell .admin-table tbody tr:hover { background: #f5f9fa; }
.site-shell .site-footer { padding: 32px max(24px, calc((100% - 1180px) / 2)); font-size: 0.85rem; }
.site-shell .site-footer a { text-underline-offset: 4px; }
.site-shell .feedback-widget:not([open]) { width: auto; }
.site-shell .feedback-widget summary { font-size: 0.8rem; font-weight: 600; box-shadow: var(--shadow); }
.site-shell .feedback-widget[open] { max-height: calc(100svh - 100px); overflow-y: auto; }

@media (max-width: 1100px) {
  .site-shell .topnav { position: sticky; display: flex; gap: 16px; height: 68px; min-height: 68px; padding: 0 24px; }
  .site-menu > summary { display: list-item; padding: 10px 14px; cursor: pointer; border: 1px solid var(--line); border-radius: 6px; font-size: 0.9rem; }
  .site-shell .topnav .site-menu-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: 0 10px 14px rgb(24 43 52 / 6%);
    max-height: calc(100svh - 68px);
    overflow-y: auto;
  }
  .site-shell .site-menu-links :is(a, button) { min-height: 44px; }
  .site-shell .topnav .nav-cta { margin-left: 0; }
  .site-shell .persona-card { grid-template-columns: 1fr; }
  .site-shell .persona-card img { height: 128px; min-height: 0; aspect-ratio: auto; }
  .site-shell .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-shell main { width: 100%; padding: 28px 20px 56px; }
  .site-shell .page-head > div:first-child { flex-basis: auto; }
  .site-shell .page-head-actions { display: flex; flex-wrap: wrap; }
  .site-shell .page-head-actions > :is(a, form) { flex: 1 1 150px; width: auto; }
  .site-shell .page-head-actions button { width: 100%; }
  .site-shell .landing-page > * { width: calc(100% - 40px); }
  .site-shell .landing-page > .landing-hero { padding: 40px 20px; min-height: 420px; }
  .site-shell .landing-hero h1 { font-size: 3.125rem; }
  .site-shell .persona-landing .landing-hero h1 { font-size: 2.75rem; }
  .site-shell .landing-hero-content { max-width: 580px; }
  .site-shell .landing-hero .actions { flex-direction: row; }
  .site-shell .landing-hero .actions a { width: auto; flex: 0 1 auto; }
  .site-shell .landing-jump-links { gap: 4px 20px; }
  .site-shell .landing-section { padding: 36px 0; }
  .site-shell :is(.landing-section-head, .landing-split, .landing-cta) h2 { font-size: 1.75rem; }
  .site-shell .landing-feature-grid { grid-template-columns: 1fr; }
  .site-shell .landing-feature-card { min-height: 0; }
  .site-shell .persona-card { grid-template-columns: 112px minmax(0, 1fr); min-height: 0; }
  .site-shell .persona-card img { height: 100%; }
  .site-shell .landing-page > .landing-band { padding: 36px 20px; }
  .site-shell .landing-split { gap: 24px; }
  .site-shell .landing-page > .landing-cta { padding-top: 36px; }
  .site-shell .ads-page > * { width: calc(100% - 40px); }
  .site-shell .ads-page > .ads-hero { padding: 40px 20px; min-height: 420px; }
  .site-shell .ads-page > .landing-band { padding: 36px 20px; }
  .site-shell .ads-hero h1 { font-size: 2.75rem; }
  .site-shell .seo-hero h1 { font-size: 2rem; }
  .site-shell .visual-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-shell .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-shell .visual-card { min-height: 130px; }
  .site-shell .visual-card strong { font-size: 1.3rem; }
  .site-shell .weg-subnav { gap: 8px; }
  .weg-main-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 4px; }
  .site-shell .weg-main-links a { justify-content: center; padding: 8px 4px; font-size: 0.8rem; }
  .weg-more-nav { width: 100%; margin: 0; }
  .weg-more-links { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .site-shell .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-shell .role-disclosure .role-visibility-panel { grid-template-columns: 1fr; }
  .site-shell .role-capability-list { justify-content: flex-start; }
  .site-shell .site-footer { padding: 28px 20px; gap: 18px; }
}

@media (max-width: 520px) {
  .site-shell main { padding: 24px 16px 64px; }
  .site-shell .topnav { padding: 0 16px; }
  .site-shell .topnav .site-menu-links { grid-template-columns: 1fr; padding: 12px 16px 20px; }
  .site-shell .landing-page > * { width: calc(100% - 32px); }
  .site-shell .landing-page > .landing-hero { min-height: 420px; padding: 32px 16px; }
  .site-shell .landing-hero h1 { font-size: 2.625rem; }
  .site-shell .persona-landing .landing-hero h1 { font-size: 2.25rem; }
  .site-shell .landing-hero p:not(.eyebrow) { font-size: 1rem; margin: 18px 0 22px; }
  .site-shell .landing-hero .actions { gap: 10px; }
  .site-shell .landing-hero .actions a { flex: 1 1 100%; font-size: 0.9rem; }
  .site-shell .hero-text-link { margin-top: 14px; }
  .site-shell .landing-jump-links { gap: 4px 18px; padding: 12px 0; }
  .site-shell .landing-jump-links a { font-size: 0.8rem; }
  .site-shell .persona-card { grid-template-columns: 1fr; }
  .site-shell .persona-card img { height: 140px; }
  .site-shell .persona-card div { padding: 20px; }
  .site-shell .landing-feature-card { grid-template-columns: 64px minmax(0, 1fr); padding: 16px; gap: 14px; }
  .site-shell .landing-feature-card h3 { font-size: 1rem; }
  .site-shell .landing-feature-card p { font-size: 0.875rem; }
  .site-shell .landing-page > .landing-band { padding: 32px 16px; }
  .site-shell .ads-page > * { width: calc(100% - 32px); }
  .site-shell .ads-page > .ads-hero { padding: 32px 16px; }
  .site-shell .ads-page > .landing-band { padding: 32px 16px; }
  .site-shell .ads-hero h1 { font-size: 2.25rem; }
  .site-shell .seo-hero h1 { font-size: 1.75rem; }
  .site-shell .auth { padding: 8px 0 24px; }
  .site-shell .auth > .panel { padding: 24px 20px; }
  .site-shell .auth h1 { font-size: 1.65rem; }
  .site-shell .module-grid { grid-template-columns: 1fr; }
  .site-shell .module-card { min-height: 110px; }
  .site-shell .page-head h1 { font-size: 1.65rem; }
  .site-shell .dashboard-shortcuts { gap: 6px 18px; }
  .site-shell .dashboard-shortcuts a { font-size: 0.82rem; }
  .site-shell .stats strong { font-size: 1.125rem; }
  .site-shell .stats div { padding: 14px; }
  .site-shell .role-disclosure > summary span { display: block; margin: 4px 0 0 17px; }
  .site-shell .site-footer { padding: 28px 16px; }
  .site-shell .site-footer nav { gap: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-shell *, .site-shell *::before, .site-shell *::after { transition: none !important; scroll-behavior: auto !important; }
}
