/*
Theme Name: WealthyPersons Editorial
Theme URI: https://www.wealthypersons.com/
Author: WealthyPersons
Description: A fast, accessible editorial WordPress theme for verified net-worth profiles, category hubs, and transparent methodology.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: wealthypersons-editorial
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --wp-ink: #132238;
  --wp-muted: #5b6778;
  --wp-navy: #10233f;
  --wp-blue: #1769aa;
  --wp-blue-dark: #0b4d80;
  --wp-gold: #d5a329;
  --wp-paper: #ffffff;
  --wp-soft: #f4f7fa;
  --wp-line: #dce3ea;
  --wp-success: #167654;
  --wp-shadow: 0 12px 30px rgba(16, 35, 63, 0.09);
  --wp-radius: 14px;
  --wp-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--wp-ink);
  background: var(--wp-paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--wp-blue-dark); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--wp-blue); }
button, input, select, textarea { font: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  clip: auto !important; width: auto; height: auto; margin: 8px; padding: 12px 16px;
  color: #fff; background: var(--wp-navy); z-index: 100000;
}
.site-shell { width: min(calc(100% - 40px), var(--wp-container)); margin-inline: auto; }

.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--wp-line); }
.utility-bar { background: var(--wp-navy); color: #dce8f5; font-size: .82rem; }
.utility-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.utility-note { margin: 0; }
.utility-menu, .primary-menu, .footer-menu { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.utility-menu a { color: #fff; text-decoration: none; }
.brand-row { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-branding { display: flex; align-items: center; gap: 14px; }
.custom-logo { max-height: 58px; width: auto; }
.site-title { margin: 0; font: 800 1.55rem/1.1 Georgia, serif; letter-spacing: -.02em; }
.site-title a { color: var(--wp-navy); text-decoration: none; }
.site-tagline { margin: 5px 0 0; color: var(--wp-muted); font-size: .84rem; }
.header-search { width: min(360px, 42vw); }
.search-form { display: flex; border: 1px solid var(--wp-line); border-radius: 999px; background: var(--wp-soft); overflow: hidden; }
.search-form label { flex: 1; }
.search-field { width: 100%; border: 0; outline: 0; padding: 11px 16px; background: transparent; }
.search-submit { border: 0; padding: 10px 18px; color: #fff; background: var(--wp-blue-dark); cursor: pointer; }
.nav-wrap { border-top: 1px solid var(--wp-line); }
.nav-inner { min-height: 52px; display: flex; align-items: center; }
.primary-menu { flex-wrap: wrap; gap: 4px; }
.primary-menu a { display: block; padding: 13px 14px; color: var(--wp-ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current-menu-ancestor > a { color: var(--wp-blue); }
.menu-toggle { display: none; padding: 10px 14px; color: #fff; background: var(--wp-navy); border: 0; border-radius: 6px; }

.hero { padding: 54px 0 44px; color: #fff; background: radial-gradient(circle at 80% 20%, #245f8e, transparent 38%), linear-gradient(130deg, #0c1d35, #153b62); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 50px; }
.eyebrow { margin: 0 0 10px; color: var(--wp-gold); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; font: 800 clamp(2.2rem, 5vw, 4.45rem)/1.04 Georgia, serif; letter-spacing: -.045em; }
.hero-copy { max-width: 690px; margin: 22px 0 0; color: #dbe7f1; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px; font-weight: 800; text-decoration: none; }
.button-primary { color: var(--wp-navy); background: var(--wp-gold); }
.button-secondary { color: #fff; border-color: rgba(255,255,255,.5); }
.method-card { padding: 26px; color: var(--wp-ink); background: rgba(255,255,255,.96); border-radius: var(--wp-radius); box-shadow: var(--wp-shadow); }
.method-card h2 { margin: 0 0 10px; font: 800 1.35rem/1.2 Georgia, serif; }
.method-card p { margin: 0 0 16px; color: var(--wp-muted); font-size: .93rem; }
.method-list { margin: 0; padding: 0; list-style: none; }
.method-list li { position: relative; margin-top: 9px; padding-left: 24px; font-size: .9rem; font-weight: 700; }
.method-list li::before { content: "✓"; position: absolute; left: 0; color: var(--wp-success); }

.content-section { padding: 64px 0; }
.content-section:nth-child(even) { background: var(--wp-soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.section-head h2 { margin: 0; font: 800 clamp(1.65rem, 3vw, 2.35rem)/1.12 Georgia, serif; letter-spacing: -.025em; }
.section-head p { max-width: 700px; margin: 8px 0 0; color: var(--wp-muted); }
.section-link { flex: 0 0 auto; font-size: .9rem; font-weight: 800; }
.post-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.post-grid-featured { grid-template-columns: repeat(3, minmax(0,1fr)); }
.post-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--wp-line); border-radius: var(--wp-radius); box-shadow: 0 5px 16px rgba(16,35,63,.045); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--wp-shadow); }
.post-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: #e8edf2; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card-media img { transform: scale(1.025); }
.post-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #dce5ed, #f5f7f9); }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.card-kicker { margin: 0 0 8px; color: var(--wp-blue); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.post-card h3 { margin: 0; font: 800 1.12rem/1.28 Georgia, serif; }
.post-card h3 a { color: var(--wp-ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--wp-blue); }
.card-excerpt { margin: 12px 0 0; color: var(--wp-muted); font-size: .88rem; line-height: 1.55; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: auto; padding-top: 16px; color: var(--wp-muted); font-size: .76rem; }
.verified-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--wp-success); font-weight: 800; }
.verified-badge::before { content: "✓"; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--wp-success); font-size: 11px; }

.category-band { padding: 56px 0 16px; }
.category-block { margin-bottom: 48px; }
.category-block .post-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.category-empty { margin: 0; padding: 24px; color: var(--wp-muted); background: var(--wp-soft); border-radius: var(--wp-radius); }
.category-directory { padding-top: 30px; }

.archive-hero { padding: 46px 0; background: var(--wp-soft); border-bottom: 1px solid var(--wp-line); }
.breadcrumbs { margin-bottom: 14px; color: var(--wp-muted); font-size: .8rem; }
.breadcrumbs a { color: inherit; }
.archive-hero h1, .page-title { margin: 0; font: 800 clamp(2rem, 4vw, 3.4rem)/1.08 Georgia, serif; letter-spacing: -.035em; }
.archive-description { max-width: 820px; margin-top: 15px; color: var(--wp-muted); }
.hub-featured { padding: 48px 0; background: #fff; }
.directory-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 44px; padding: 54px 0 70px; }
.directory-list { display: grid; gap: 20px; }
.directory-card { display: grid; grid-template-columns: 210px minmax(0,1fr); overflow: hidden; background: #fff; border: 1px solid var(--wp-line); border-radius: var(--wp-radius); }
.directory-card .post-card-media { aspect-ratio: auto; min-height: 160px; }
.directory-card .post-card-body { padding: 22px; }
.sidebar-card { margin-bottom: 22px; padding: 22px; background: var(--wp-soft); border: 1px solid var(--wp-line); border-radius: var(--wp-radius); }
.sidebar-card h2 { margin: 0 0 12px; font: 800 1.15rem/1.2 Georgia, serif; }
.sidebar-card ul { margin: 0; padding-left: 20px; }
.sidebar-card li + li { margin-top: 8px; }
.pagination { margin-top: 34px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 40px; padding: 7px 12px; text-align: center; text-decoration: none; background: var(--wp-soft); border: 1px solid var(--wp-line); border-radius: 6px; }
.page-numbers.current { color: #fff; background: var(--wp-navy); border-color: var(--wp-navy); }

.article-wrap { display: grid; grid-template-columns: minmax(0,780px) 290px; justify-content: space-between; gap: 55px; padding: 48px 0 80px; }
.entry-header { margin-bottom: 30px; }
.entry-title { margin: 0; font: 800 clamp(2.15rem, 5vw, 3.75rem)/1.06 Georgia, serif; letter-spacing: -.04em; }
.entry-deck { margin: 18px 0 0; color: var(--wp-muted); font-size: 1.1rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; color: var(--wp-muted); font-size: .83rem; }
.entry-thumbnail { margin: 0 0 34px; overflow: hidden; border-radius: var(--wp-radius); }
.entry-content { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--wp-navy); line-height: 1.2; }
.entry-content h2 { margin: 2.1em 0 .65em; font-size: 1.75rem; }
.entry-content h3 { margin: 1.7em 0 .55em; font-size: 1.35rem; }
.entry-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--wp-line); }
.entry-content th { background: var(--wp-soft); text-align: left; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; color: var(--wp-muted); border-left: 4px solid var(--wp-gold); }
.editorial-note { margin: 26px 0; padding: 18px 20px; background: #f1f8f5; border-left: 4px solid var(--wp-success); border-radius: 0 8px 8px 0; font-size: .9rem; }
.author-box { display: grid; grid-template-columns: 76px 1fr; gap: 18px; margin-top: 48px; padding: 24px; background: var(--wp-soft); border-radius: var(--wp-radius); }
.author-box img { border-radius: 50%; }
.author-box h2 { margin: 0; font: 800 1.2rem/1.2 Georgia, serif; }
.author-box p { margin: 7px 0 0; color: var(--wp-muted); font-size: .88rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.post-nav a { display: block; padding: 18px; background: var(--wp-soft); border-radius: 8px; text-decoration: none; }

.page-wrap { max-width: 880px; padding: 54px 0 80px; }
.not-found { max-width: 680px; padding: 90px 0; text-align: center; }

.site-footer { color: #d9e4ef; background: #0b1b30; }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; padding: 55px 0; }
.footer-main h2 { margin: 0 0 13px; color: #fff; font: 800 1.2rem/1.2 Georgia, serif; }
.footer-main p { color: #aebed0; font-size: .88rem; }
.footer-menu { display: block; columns: 2; }
.footer-menu li { margin-bottom: 8px; break-inside: avoid; }
.footer-menu a { color: #d9e4ef; text-decoration: none; font-size: .88rem; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); color: #9dafc2; font-size: .78rem; }

@media (max-width: 980px) {
  .hero-grid, .article-wrap { grid-template-columns: 1fr; }
  .post-grid, .category-block .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .post-grid-featured { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .directory-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-shell { width: min(calc(100% - 28px), var(--wp-container)); }
  .utility-inner { justify-content: center; }
  .utility-note, .header-search { display: none; }
  .brand-row { min-height: 76px; }
  .site-tagline { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-inner { padding: 8px 0; }
  .primary-menu { display: none; width: 100%; }
  .primary-menu.is-open { display: block; }
  .primary-menu a { padding: 10px 4px; }
  .hero { padding: 38px 0; }
  .hero-grid { gap: 30px; }
  .post-grid, .post-grid-featured, .category-block .post-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .directory-card { grid-template-columns: 110px minmax(0,1fr); }
  .directory-card .post-card-media { min-height: 130px; }
  .directory-card .card-excerpt { display: none; }
  .article-sidebar { display: block; }
  .entry-content { font-size: 1rem; }
  .author-box, .post-nav, .footer-main { grid-template-columns: 1fr; }
  .footer-menu { columns: 1; }
}

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