/*
Theme Name: WhySolved Editorial US (v6.2 Crawl Architecture)
Theme URI: https://whysolved.com
Author: WhySolved
Description: Premium lightweight editorial theme for WhySolved with stronger crawlable internal-link architecture, topic hubs, article pathways, trust, AdSense-ready placements, accessibility, structured data, and Core Web Vitals without external font or JavaScript dependencies.
Version: 6.2.2
Text Domain: whysolved-v6
Requires at least: 6.6
Requires PHP: 7.4
*/

:root {
  --ws-bg: #f6f8fb;
  --ws-surface: #ffffff;
  --ws-surface-soft: #f0f5fb;
  --ws-text: #102033;
  --ws-muted: #5b6878;
  --ws-border: #d9e1ea;
  --ws-brand: #155eef;
  --ws-brand-dark: #0b3da7;
  --ws-navy: #0b1f3a;
  --ws-success: #0f7b50;
  --ws-warning-bg: #fff8e6;
  --ws-warning-border: #f2d48a;
  --ws-shadow: 0 14px 38px rgba(16, 32, 51, 0.08);
  --ws-shadow-sm: 0 7px 22px rgba(16, 32, 51, 0.06);
  --ws-radius: 16px;
  --ws-radius-sm: 10px;
  --ws-content: 760px;
  --ws-wide: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ws-bg);
  color: var(--ws-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--ws-brand); text-underline-offset: 3px; }
a:hover { color: var(--ws-brand-dark); }
button, input { font: inherit; }
button { cursor: pointer; }
::selection { background: #dbe8ff; color: var(--ws-navy); }

.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 {
  width: auto; height: auto; margin: 0; padding: 12px 16px;
  clip: auto; overflow: visible; white-space: normal;
  top: 10px; left: 10px; z-index: 10000;
  background: #fff; color: var(--ws-navy); border-radius: 8px;
  box-shadow: var(--ws-shadow-sm);
}

.ws-container { width: min(calc(100% - 40px), var(--ws-wide)); margin-inline: auto; }
.ws-content-width { width: min(100%, var(--ws-content)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--ws-border);
  backdrop-filter: blur(10px);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.site-branding { min-width: max-content; }
.site-branding a { color: var(--ws-navy); text-decoration: none; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 40px; width: auto; }
.text-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; font-size: 22px; letter-spacing: -.55px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: inline-grid; place-items: center;
  background: var(--ws-brand); color: #fff;
  font-weight: 900; font-size: 18px; letter-spacing: -1px;
  box-shadow: 0 5px 14px rgba(21,94,239,.23);
}
.primary-nav { justify-self: center; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary-nav li { margin: 0; }
.primary-nav a {
  display: block;
  padding: 9px 10px;
  color: #314154;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { color: var(--ws-brand); background: #eef4ff; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-search {
  display: flex; align-items: center;
  border: 1px solid var(--ws-border); background: #fff;
  border-radius: 10px; overflow: hidden;
}
.header-search input[type="search"] {
  width: 150px; border: 0; outline: 0; padding: 9px 4px 9px 12px;
  color: var(--ws-text); background: transparent; font-size: 14px;
}
.header-search button {
  border: 0; background: transparent; color: var(--ws-muted);
  display: grid; place-items: center; width: 38px; height: 38px;
}
.header-search button:hover { color: var(--ws-brand); }
.menu-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--ws-border);
  border-radius: 10px; background: #fff; color: var(--ws-navy);
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 21px; height: 21px; }
.mobile-search { display: none; }
.mobile-search .search-form { display: flex; width: 100%; border: 1px solid var(--ws-border); border-radius: 10px; overflow: hidden; background: #fff; }
.mobile-search input[type="search"] { min-width: 0; flex: 1; border: 0; outline: 0; padding: 11px 12px; color: var(--ws-text); background: transparent; }
.mobile-search button { width: 44px; border: 0; background: var(--ws-brand); color: #fff; display: grid; place-items: center; }

/* Breadcrumbs */
.breadcrumbs { padding-top: 22px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { color: var(--ws-muted); font-size: 13px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 7px; color: #9aa7b5; }
.breadcrumbs a { color: var(--ws-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ws-brand); }

/* Home */
.home-hero { padding: 56px 0 34px; }
.hero-panel {
  padding: clamp(32px, 6vw, 64px);
  border-radius: 24px;
  background: linear-gradient(135deg, #071a34 0%, #0b3d91 58%, #155eef 100%);
  color: #fff;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 50px rgba(11,31,58,.16);
}
.hero-panel::after {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  right: -130px; top: -150px; border: 56px solid rgba(255,255,255,.08);
}
.hero-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; color: #c8d9ff; }
.hero-panel h1 { position: relative; z-index: 1; max-width: 760px; margin: 0; font-size: clamp(36px, 6vw, 62px); line-height: 1.06; letter-spacing: -2px; }
.hero-panel p { position: relative; z-index: 1; max-width: 680px; margin: 20px 0 0; color: #dce8ff; font-size: clamp(17px, 2vw, 19px); line-height: 1.65; }
.hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 10px;
  font-size: 14px; font-weight: 800; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--ws-navy); background: #fff; }
.button-primary:hover { color: var(--ws-navy); box-shadow: 0 9px 24px rgba(0,0,0,.15); }
.button-secondary { color: #fff; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.34); }
.button-secondary:hover { color: #fff; background: rgba(255,255,255,.17); }

.section { padding: 34px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; color: var(--ws-navy); font-size: clamp(25px,3vw,34px); line-height: 1.2; letter-spacing: -.8px; }
.section-heading p { margin: 7px 0 0; color: var(--ws-muted); max-width: 650px; }
.section-link { font-weight: 800; font-size: 14px; white-space: nowrap; text-decoration: none; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.topic-card {
  background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: var(--ws-radius);
  padding: 24px; text-decoration: none; color: var(--ws-text); box-shadow: var(--ws-shadow-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.topic-card:hover { color: var(--ws-text); transform: translateY(-3px); border-color: #9ebeff; box-shadow: var(--ws-shadow); }
.topic-icon {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px;
  background: #eef4ff; color: var(--ws-brand); font-weight: 900; font-size: 14px;
}
.topic-card h3 { margin: 18px 0 7px; color: var(--ws-navy); font-size: 20px; line-height: 1.3; }
.topic-card p { margin: 0; color: var(--ws-muted); font-size: 14px; line-height: 1.65; }
.topic-arrow { display: inline-block; margin-top: 16px; color: var(--ws-brand); font-weight: 850; font-size: 14px; }

/* Article cards */
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.article-card {
  min-width: 0; background: var(--ws-surface); border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius); overflow: hidden; box-shadow: var(--ws-shadow-sm);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--ws-shadow); border-color: #b5c9ea; }
.card-media { display: block; aspect-ratio: 16 / 9; background: #e9eef5; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.article-card:hover .card-media img { transform: scale(1.025); }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.eyebrow { color: var(--ws-brand); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.article-card h3 { margin: 8px 0 9px; color: var(--ws-navy); font-size: 19px; line-height: 1.37; letter-spacing: -.3px; }
.article-card h3 a { color: inherit; text-decoration: none; }
.article-card h3 a::after { content: ""; }
.card-excerpt { margin: 0; color: var(--ws-muted); font-size: 14px; line-height: 1.65; }
.card-meta { margin-top: auto; padding-top: 17px; color: #6d7988; font-size: 12.5px; display: flex; gap: 7px; flex-wrap: wrap; }
.card-placeholder { aspect-ratio: 16/9; display: grid; place-items: center; background: linear-gradient(135deg,#eaf1fb,#f7f9fc); color: #8aa0bc; font-size: 32px; font-weight: 900; }

/* Archive / search */
.page-hero { padding: 34px 0 22px; }
.page-hero-inner { max-width: 840px; }
.page-kicker { margin: 0 0 8px; color: var(--ws-brand); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.page-hero h1 { margin: 0; color: var(--ws-navy); font-size: clamp(32px,5vw,50px); line-height: 1.12; letter-spacing: -1.3px; }
.page-hero .archive-description, .page-hero p { margin: 13px 0 0; color: var(--ws-muted); font-size: 17px; max-width: 760px; }
.empty-state { background: #fff; border: 1px solid var(--ws-border); border-radius: var(--ws-radius); padding: 38px; text-align: center; }
.empty-state h2 { margin-top: 0; color: var(--ws-navy); }

/* Single article */
.single-wrap { padding: 18px 0 24px; }
.article-shell {
  max-width: 920px; margin: 0 auto; background: var(--ws-surface); border: 1px solid var(--ws-border);
  border-radius: 20px; box-shadow: var(--ws-shadow-sm); overflow: hidden;
}
.article-header { padding: clamp(26px,5vw,52px) clamp(22px,6vw,72px) 28px; }
.article-category { display: inline-flex; align-items: center; margin-bottom: 14px; color: var(--ws-brand); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; text-decoration: none; }
.article-title { margin: 0; color: var(--ws-navy); font-size: clamp(34px,5vw,54px); line-height: 1.1; letter-spacing: -1.5px; overflow-wrap: anywhere; }
.article-dek { margin: 17px 0 0; color: var(--ws-muted); font-size: 18px; line-height: 1.65; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 22px; color: #687687; font-size: 13px; }
.article-meta .dot { color: #a3adba; }
.featured-image { margin: 0; background: #edf1f6; }
.featured-image img { width: 100%; max-height: 540px; object-fit: cover; display: block; }
.article-body { padding: 34px clamp(22px,6vw,72px) 48px; }
.article-content { max-width: var(--ws-content); margin-inline: auto; color: #1b2b3d; font-size: 17px; }
.article-content > *:first-child { margin-top: 0; }
.article-content p { margin: 0 0 1.25em; }
.article-content h2, .article-content h3, .article-content h4 { color: var(--ws-navy); line-height: 1.25; scroll-margin-top: 100px; }
.article-content h2 { margin: 2.2em 0 .72em; font-size: clamp(26px,3vw,32px); letter-spacing: -.55px; }
.article-content h3 { margin: 1.8em 0 .65em; font-size: 22px; }
.article-content h4 { margin: 1.5em 0 .6em; font-size: 18px; }
.article-content ul, .article-content ol { margin: 0 0 1.35em; padding-left: 1.35em; }
.article-content li { margin-bottom: .55em; }
.article-content blockquote { margin: 1.6em 0; padding: 2px 0 2px 20px; border-left: 4px solid var(--ws-brand); color: #405166; font-size: 18px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 14px; display: block; overflow-x: auto; }
.article-content th, .article-content td { border: 1px solid var(--ws-border); padding: 11px 12px; text-align: left; vertical-align: top; }
.article-content th { background: var(--ws-surface-soft); color: var(--ws-navy); }
.article-content a { font-weight: 650; }
.article-content figure { margin-left: 0; margin-right: 0; }
.article-content figcaption { color: var(--ws-muted); font-size: 13px; text-align: center; }

.toc-container { max-width: var(--ws-content); margin: 0 auto 30px; border: 1px solid #cbd9ee; border-radius: 13px; background: #f5f8fd; padding: 18px 20px; }
.toc-title { display: flex; align-items: center; gap: 9px; margin: 0 0 11px; color: var(--ws-navy); font-weight: 850; font-size: 15px; }
.toc-container ol { margin: 0; padding-left: 20px; }
.toc-container li { margin: 7px 0; color: #65758a; }
.toc-container a { color: #244a7c; text-decoration: none; font-size: 14px; font-weight: 650; }
.toc-container a:hover { color: var(--ws-brand); text-decoration: underline; }

.share-row { max-width: var(--ws-content); margin: 30px auto 0; padding-top: 24px; border-top: 1px solid var(--ws-border); display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.share-label { color: var(--ws-muted); font-size: 13px; font-weight: 700; margin-right: 3px; }
.share-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--ws-border); border-radius: 9px; background: #fff; color: #32455d; text-decoration: none; font-size: 13px; font-weight: 750; }
.share-link:hover { color: var(--ws-brand); border-color: #9ebeff; background: #f7faff; }

.disclaimer-box { max-width: var(--ws-content); margin: 30px auto 0; padding: 17px 18px; background: var(--ws-warning-bg); border: 1px solid var(--ws-warning-border); border-radius: 12px; color: #5e4c20; font-size: 13px; line-height: 1.6; }
.disclaimer-box strong { color: #493811; }
.author-box { max-width: var(--ws-content); margin: 30px auto 0; padding: 22px; background: #f7f9fc; border: 1px solid var(--ws-border); border-radius: 13px; }
.author-box .label { margin: 0 0 4px; color: var(--ws-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.author-box h3 { margin: 0; color: var(--ws-navy); font-size: 18px; }
.author-box p { margin: 8px 0 0; color: var(--ws-muted); font-size: 14px; }

.related-section { padding: 0 0 48px; }
.related-inner { max-width: 920px; margin: 0 auto; }
.related-inner > h2 { margin: 0 0 17px; color: var(--ws-navy); font-size: 25px; letter-spacing: -.5px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { background: #fff; border: 1px solid var(--ws-border); border-radius: 13px; padding: 18px; }
.related-card .meta { color: var(--ws-muted); font-size: 12px; }
.related-card h3 { margin: 8px 0 0; font-size: 16px; line-height: 1.4; }
.related-card a { color: var(--ws-navy); text-decoration: none; }
.related-card a:hover { color: var(--ws-brand); }

/* Page */
.page-shell { max-width: 900px; margin: 20px auto 50px; padding: clamp(26px,5vw,54px); background: #fff; border: 1px solid var(--ws-border); border-radius: 18px; box-shadow: var(--ws-shadow-sm); }
.page-shell h1 { margin-top: 0; color: var(--ws-navy); font-size: clamp(34px,5vw,48px); line-height: 1.12; letter-spacing: -1px; }
.page-content { font-size: 17px; }
.page-content h2, .page-content h3 { color: var(--ws-navy); line-height: 1.3; }

/* Search */
.search-page-form { max-width: 650px; margin-top: 20px; }
.search-page-form .search-form { display: flex; gap: 8px; }
.search-page-form input[type="search"] { min-width: 0; flex: 1; border: 1px solid var(--ws-border); border-radius: 10px; padding: 11px 13px; background: #fff; color: var(--ws-text); }
.search-page-form button { border: 0; border-radius: 10px; background: var(--ws-brand); color: #fff; font-weight: 800; padding: 0 18px; }
.search-page-form button:hover { background: var(--ws-brand-dark); }

/* Pagination */
.pagination-wrap { margin: 34px 0 10px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.page-numbers { min-width: 40px; height: 40px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ws-border); border-radius: 9px; background: #fff; color: #3a4d64; text-decoration: none; font-size: 13px; font-weight: 800; }
.page-numbers.current, .page-numbers:hover { background: var(--ws-brand); color: #fff; border-color: var(--ws-brand); }

/* Footer */
.site-footer { margin-top: 62px; background: #08182d; color: #c5d0dd; }
.footer-main { padding: 50px 0 36px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 38px; }
.footer-brand .text-brand { color: #fff; }
.footer-brand p { max-width: 340px; margin: 14px 0 0; color: #aebccc; font-size: 14px; }
.footer-title { margin: 0 0 13px; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: #b8c5d3; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: #94a5b7; font-size: 12.5px; }
.footer-bottom p { margin: 0; }

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: auto auto; }
  .menu-toggle { display: inline-flex; }
  .header-actions { justify-self: end; }
  .header-search { display: none; }
  .primary-nav {
    position: fixed; inset: 72px 0 auto 0; background: #fff; border-bottom: 1px solid var(--ws-border);
    box-shadow: 0 16px 30px rgba(16,32,51,.12); padding: 14px 20px 20px;
    display: none; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .admin-bar .primary-nav { inset: 104px 0 auto 0; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 3px; }
  .primary-nav a { padding: 11px 12px; font-size: 15px; }
  .primary-nav .mobile-search { display: block; margin-top: 10px; }
  .topic-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-main .footer-col:last-child { grid-column: 2 / -1; }
}

@media (min-width: 1051px) { .mobile-search { display: none !important; } }

@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar .primary-nav { inset: 118px 0 auto 0; } }

@media (max-width: 720px) {
  .ws-container { width: min(calc(100% - 28px), var(--ws-wide)); }
  .header-inner { min-height: 64px; gap: 12px; }
  .primary-nav { inset: 64px 0 auto 0; }
  .admin-bar .primary-nav { inset: 110px 0 auto 0; }
  .text-brand { font-size: 20px; }
  .brand-mark { width: 32px; height: 32px; }
  .home-hero { padding-top: 28px; }
  .hero-panel { border-radius: 18px; padding: 32px 24px; }
  .hero-panel h1 { letter-spacing: -1.4px; }
  .section { padding: 27px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .topic-grid, .article-grid, .related-grid { grid-template-columns: 1fr; }
  .article-card { border-radius: 14px; }
  .article-shell { border-radius: 14px; }
  .article-header { padding-top: 28px; }
  .article-title { letter-spacing: -1px; }
  .article-body { padding-top: 26px; }
  .article-content { font-size: 16.5px; }
  .related-section { padding-left: 14px; padding-right: 14px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-main .footer-col:last-child { grid-column: auto; }
}

@media (max-width: 460px) {
  .site-title-text { display: inline; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand, .footer-main .footer-col:last-child { grid-column: auto; }
  .button { width: 100%; }
  .hero-actions { flex-direction: column; }
  .share-row { align-items: stretch; }
  .share-link { flex: 1; justify-content: center; }
}

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

/* =========================================================
   WhySolved v6.1 Final refinements
   ========================================================= */
:root {
  --ws-bg: #f7f9fc;
  --ws-surface-soft: #f2f6fb;
  --ws-border: #dbe3ed;
  --ws-navy: #091e3a;
  --ws-brand: #1463ff;
  --ws-brand-dark: #0c47c7;
  --ws-content: 760px;
  --ws-wide: 1200px;
}

body { letter-spacing: -.005em; }
a, button, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(20,99,255,.3);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Faster, calmer sticky header */
.site-header { background: #fff; backdrop-filter: none; }
.header-inner { min-height: 70px; gap: 22px; }
.text-brand { font-size: 21px; }
.brand-mark { border-radius: 10px; background: linear-gradient(145deg,#1463ff,#0d4fd4); }
.header-search { border-color: #d4dee9; }
.header-search input[type="search"] { width: 166px; }
.primary-nav a { font-size: 13.5px; }

/* Desktop dropdown menus */
@media (min-width: 1051px) {
  .primary-nav .menu-item-has-children { position: relative; }
  .primary-nav .menu-item-has-children > a::after {
    content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px;
    border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: rotate(45deg);
  }
  .primary-nav .sub-menu {
    position: absolute; z-index: 30; left: 0; top: calc(100% + 8px); min-width: 220px;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px; background: #fff; border: 1px solid var(--ws-border); border-radius: 12px;
    box-shadow: 0 16px 40px rgba(14,34,60,.13);
  }
  .primary-nav .sub-menu::before { content:""; position:absolute; left:0; right:0; top:-10px; height:10px; }
  .primary-nav .sub-menu a { padding: 10px 11px; font-size: 13.5px; }
  .primary-nav li:hover > .sub-menu,
  .primary-nav li:focus-within > .sub-menu { display: flex; }
}

.menu-toggle-lines { width: 20px; display: grid; gap: 4px; }
.menu-toggle-lines span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero built for editorial trust instead of a generic blog look */
.home-hero { padding: 42px 0 28px; }
.hero-panel {
  display: grid; grid-template-columns: minmax(0,1.55fr) minmax(260px,.75fr); gap: clamp(28px,5vw,64px);
  align-items: end; padding: clamp(34px,5vw,60px); border-radius: 22px;
  background: radial-gradient(circle at 88% 8%, rgba(54,130,255,.32), transparent 27%), linear-gradient(135deg,#071a34 0%,#0a2b60 52%,#0b4bc6 100%);
}
.hero-panel::after { display: none; }
.hero-copy { min-width: 0; }
.hero-panel h1 { max-width: 760px; font-size: clamp(39px,5.7vw,64px); text-wrap: balance; }
/* Explicit contrast: WordPress/global styles must never darken the hero headline. */
.hero-panel h1 { color: #ffffff !important; }
.hero-panel p { max-width: 720px; }
.hero-proof {
  align-self: stretch; display: grid; align-content: center; gap: 2px; padding: 5px;
  border: 1px solid rgba(255,255,255,.17); border-radius: 16px; background: rgba(255,255,255,.07);
}
.hero-proof > div { display: grid; grid-template-columns: 26px 1fr; gap: 9px; padding: 13px 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.hero-proof > div:last-child { border-bottom: 0; }
.proof-check { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; background: rgba(255,255,255,.14); color: #fff; font-size: 12px; font-weight: 900; }
.hero-proof strong { display: block; color: #fff; font-size: 13px; }
.hero-proof small { display: block; margin-top: 2px; color: #bfd2f2; font-size: 11.5px; line-height: 1.45; }
.compact-home-hero .hero-panel { grid-template-columns: 1fr; }

.section { padding: 40px 0; }
.section-kicker { margin: 0 0 6px !important; color: var(--ws-brand) !important; font-size: 11.5px !important; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.section-heading h2 { text-wrap: balance; }
.topics-section { padding-top: 34px; }
.topic-card { box-shadow: 0 4px 16px rgba(16,32,51,.045); }
.topic-icon { width: 46px; height: 46px; color: var(--ws-brand); }
.topic-icon svg { width: 25px; height: 25px; }
.topic-arrow { display: inline-flex; align-items: center; gap: 5px; }

/* Premium but restrained editorial card treatment */
.article-card { box-shadow: 0 4px 18px rgba(16,32,51,.045); }
.article-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16,32,51,.08); }
.card-placeholder { background: linear-gradient(135deg,#edf3fb,#f8fafc); }
.card-placeholder span { color: #8193aa; font-size: 15px; letter-spacing: -.2px; }
.article-card h3 { text-wrap: pretty; }
.card-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

/* Homepage editorial transparency panel */
.editorial-section { padding-top: 20px; padding-bottom: 58px; }
.editorial-panel {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px,5vw,72px); align-items: center;
  padding: clamp(28px,5vw,50px); background: #fff; border: 1px solid var(--ws-border); border-radius: 20px;
}
.editorial-copy h2 { margin: 0; color: var(--ws-navy); font-size: clamp(29px,4vw,42px); line-height: 1.12; letter-spacing: -1px; text-wrap: balance; }
.editorial-copy > p:not(.section-kicker) { margin: 15px 0 0; color: var(--ws-muted); }
.text-link { display: inline-flex; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 800; text-decoration: none; }
.editorial-points { display: grid; gap: 0; }
.editorial-point { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--ws-border); }
.editorial-point:first-child { padding-top: 0; }
.editorial-point:last-child { border-bottom: 0; padding-bottom: 0; }
.editorial-point > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #eef4ff; color: var(--ws-brand); font-size: 11px; font-weight: 900; }
.editorial-point strong { display: block; color: var(--ws-navy); font-size: 15px; }
.editorial-point p { margin: 3px 0 0; color: var(--ws-muted); font-size: 13px; }

/* Archive lead card */
.archive-hero { padding-bottom: 12px; }
.archive-content-section { padding-top: 24px; }
@media (min-width: 801px) {
  .archive-grid .article-card-lead { grid-column: span 2; display: grid; grid-template-columns: 1.12fr .88fr; }
  .archive-grid .article-card-lead .card-media,
  .archive-grid .article-card-lead .card-placeholder { aspect-ratio: auto; min-height: 100%; }
  .archive-grid .article-card-lead .card-body { padding: clamp(24px,4vw,34px); justify-content: center; }
  .archive-grid .article-card-lead h3 { font-size: clamp(24px,3vw,31px); line-height: 1.22; }
  .archive-grid .article-card-lead .card-excerpt { font-size: 15px; -webkit-line-clamp: 4; }
}

/* Article trust + readability */
.single-wrap { padding-top: 14px; }
.article-shell { border-radius: 18px; box-shadow: 0 7px 28px rgba(16,32,51,.05); }
.article-header { padding-bottom: 30px; }
.article-title { font-size: clamp(36px,5vw,55px); text-wrap: balance; }
.article-dek { max-width: 780px; }
.article-byline { display: flex; align-items: center; gap: 11px; margin-top: 23px; }
.author-initial, .author-box-mark {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: #eef4ff; color: var(--ws-brand); font-weight: 900;
}
.byline-primary { color: #405166; font-size: 13px; }
.byline-primary strong { color: var(--ws-navy); }
.article-meta { margin-top: 2px; font-size: 12.5px; }
.article-standard-note {
  display: flex; gap: 9px; align-items: flex-start; max-width: 760px; margin-top: 18px; padding: 11px 13px;
  border: 1px solid #d8e5fa; border-radius: 10px; background: #f7faff; color: #51627a; font-size: 12.5px; line-height: 1.55;
}
.standard-icon { flex: 0 0 auto; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: #e5efff; color: var(--ws-brand); font-size: 10px; font-weight: 900; }
.article-standard-note a { font-weight: 800; text-decoration: none; }
.featured-image img { width: 100%; max-height: none; object-fit: contain; background: #f3f6fa; }
.article-content { font-size: 17px; line-height: 1.78; }
.article-content p { margin-bottom: 1.32em; }
.article-content > p:first-child { font-size: 18px; color: #20354d; }
.article-content h2 { text-wrap: balance; }
.article-content a { text-decoration-thickness: 1.2px; }

.toc-container { padding: 20px 21px; background: #f7faff; border-color: #cfddf2; }
.toc-heading { margin-bottom: 10px; }
.toc-kicker { display: block; color: var(--ws-brand); font-size: 10.5px; font-weight: 850; text-transform: uppercase; letter-spacing: .11em; }
.toc-title { margin: 2px 0 0; font-size: 16px; }
.toc-container ol { columns: 2; column-gap: 32px; }
.toc-container li { break-inside: avoid; }

.disclaimer-box { display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: start; background: #fffaf0; }
.disclaimer-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f6e2ac; color: #674e14; font-size: 13px; font-weight: 900; font-family: Georgia,serif; }
.author-box { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 23px; }
.author-box-mark { width: 48px; height: 48px; border-radius: 12px; font-size: 18px; }
.author-box .label { margin-top: 0; }
.author-link { display: inline-flex; margin-top: 10px; font-size: 13px; font-weight: 800; text-decoration: none; }

.related-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 16px; }
.related-heading-row h2 { margin: 0; color: var(--ws-navy); font-size: 26px; }
.related-heading-row .section-kicker { margin-bottom: 4px !important; }
.related-card { display: flex; flex-direction: column; min-height: 165px; }
.related-card h3 { flex: 1; }
.related-read { display: inline-flex; gap: 5px; margin-top: 12px; font-size: 12.5px; font-weight: 800; text-decoration: none; }

/* AdSense-ready widget slots: invisible unless configured */
.ad-slot { width: min(100%, var(--ws-content)); margin: 30px auto; text-align: center; }
.ad-slot-after-article { width: min(calc(100% - 40px), 920px); margin: 0 auto 32px; }
.ad-label { margin-bottom: 6px; color: #8995a4; font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; }
.ad-slot-inner { width: 100%; min-height: 250px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-slot .widget, .ad-slot .ad-widget { width: 100%; margin: 0; }
.ad-slot ins.adsbygoogle { width: 100%; }

/* Search, legal and 404 page polish */
.page-shell { max-width: 880px; }
.page-title-block { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--ws-border); }
.page-title-block .page-kicker { margin-bottom: 7px; }
.error-actions { margin-top: 18px; }
.button-solid { background: var(--ws-brand); color: #fff; }
.button-solid:hover { background: var(--ws-brand-dark); color: #fff; box-shadow: 0 7px 18px rgba(20,99,255,.2); }
.compact-topic-grid .topic-card p { display: none; }

/* Footer */
.site-footer { margin-top: 64px; background: #07182d; }
.footer-main { padding-top: 54px; grid-template-columns: 1.45fr 1fr 1fr 1fr; }
.footer-logo { color: #fff; }
.footer-trust-note { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,.06); color: #b9c7d6; font-size: 11.5px; }
.footer-trust-note span { color: #7eb0ff; font-weight: 900; }
.footer-secondary-nav { padding: 0 0 22px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.1); }
.footer-menu a { color: #aebdcd; font-size: 12.5px; text-decoration: none; }
.footer-menu a:hover { color: #fff; }

/* Mobile + tablet */
@media (max-width: 1050px) {
  .primary-nav .sub-menu { display: flex; flex-direction: column; position: static; margin: 3px 0 5px 13px; padding: 0 0 0 10px; border-left: 2px solid #e1e9f4; }
  .primary-nav .sub-menu a { padding: 8px 10px; font-size: 14px; color: #526177; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-proof { grid-template-columns: repeat(3,1fr); }
  .hero-proof > div { grid-template-columns: 24px 1fr; border-bottom: 0; border-right: 1px solid rgba(255,255,255,.1); }
  .hero-proof > div:last-child { border-right: 0; }
  .editorial-panel { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1.35fr 1fr 1fr; }
}

@media (max-width: 800px) {
  .hero-panel { padding: 34px 26px; }
  .hero-panel h1 { font-size: clamp(37px,10vw,50px); letter-spacing: -1.5px; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero-proof > div:last-child { border-bottom: 0; }
  .editorial-panel { padding: 28px 24px; }
  .toc-container ol { columns: 1; }
  .related-heading-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .archive-grid .article-card-lead { grid-column: auto; }
}

@media (max-width: 600px) {
  .ws-container { width: min(calc(100% - 28px), var(--ws-wide)); }
  .home-hero { padding-top: 24px; }
  .hero-panel { border-radius: 17px; padding: 30px 22px; }
  .hero-panel h1 { font-size: 38px; line-height: 1.08; }
  .hero-panel p { font-size: 16.5px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .section { padding: 31px 0; }
  .article-header, .article-body { padding-left: 20px; padding-right: 20px; }
  .article-title { font-size: 34px; letter-spacing: -1px; }
  .article-dek { font-size: 16.5px; }
  .article-content, .article-content > p:first-child { font-size: 16.5px; }
  .article-byline { align-items: flex-start; }
  .article-meta { gap: 5px 8px; }
  .article-standard-note { font-size: 12px; }
  .author-box { grid-template-columns: 40px 1fr; padding: 19px; }
  .author-box-mark { width: 40px; height: 40px; }
  .disclaimer-box { grid-template-columns: 26px 1fr; }
  .ad-slot-inner { min-height: 180px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-main .footer-col:last-child { grid-column: auto; }
}

@media (max-width: 420px) {
  .header-inner { min-height: 64px; }
  .site-title-text { font-size: 19px; }
  .brand-mark { width: 31px; height: 31px; }
  .primary-nav { inset: 64px 0 auto 0; }
  .admin-bar .primary-nav { inset: 110px 0 auto 0; }
  .hero-panel h1 { font-size: 34px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .site-header, .breadcrumbs, .share-row, .related-section, .site-footer, .ad-slot, .article-standard-note { display: none !important; }
  .single-wrap, .article-shell { margin: 0; padding: 0; max-width: none; border: 0; border-radius: 0; box-shadow: none; }
  .article-header, .article-body { padding-left: 0; padding-right: 0; }
  .article-content { max-width: none; color: #000; }
  .article-content a { color: #000; }
}


/* v6.2 crawl architecture — visible, useful navigation that also gives crawlers plain HTML paths. */
.crawl-hub-section { padding-top: 8px; }
.crawl-hub-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.crawl-hub-card { background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: var(--ws-radius); padding: 22px; box-shadow: var(--ws-shadow-sm); }
.crawl-hub-card h3 { margin: 0 0 4px; color: var(--ws-navy); font-size: 19px; line-height: 1.3; }
.crawl-hub-card > a { text-decoration: none; }
.crawl-hub-list { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--ws-border); }
.crawl-hub-list li { margin: 0; border-bottom: 1px solid var(--ws-border); }
.crawl-hub-list a { display: block; padding: 11px 0; color: #26394f; font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.crawl-hub-list a:hover { color: var(--ws-brand); }
.crawl-hub-more { display: inline-flex; margin-top: 14px; font-size: 13px; font-weight: 850; text-decoration: none; }
.article-pathway { width: min(calc(100% - 40px), 920px); margin: 0 auto 24px; }
.article-pathway-inner { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.pathway-link { display: block; min-width: 0; padding: 16px 18px; background: #fff; border: 1px solid var(--ws-border); border-radius: 12px; text-decoration: none; box-shadow: var(--ws-shadow-sm); }
.pathway-link small { display: block; margin-bottom: 5px; color: var(--ws-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.pathway-link strong { display: block; color: var(--ws-navy); font-size: 14px; line-height: 1.45; }
.pathway-link:hover { border-color: #a9c3f8; }
.pathway-link:hover strong { color: var(--ws-brand); }
.pathway-next { text-align: right; }
.archive-topic-nav { margin: 0 0 24px; padding: 16px 18px; background: #eef4ff; border: 1px solid #d5e3ff; border-radius: 12px; }
.archive-topic-nav strong { color: var(--ws-navy); font-size: 13px; }
.archive-topic-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.archive-topic-links a { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--ws-border); color: #29405b; font-size: 12px; font-weight: 750; text-decoration: none; }
.archive-topic-links a:hover { color: var(--ws-brand); border-color: #a9c3f8; }
.footer-guide-index { padding: 0 0 24px; }
.footer-guide-index-inner { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-guide-index h2 { margin: 0 0 10px; color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.footer-guide-index-links { display: flex; flex-wrap: wrap; gap: 7px 16px; }
.footer-guide-index-links a { color: #aebdcd; font-size: 12.5px; text-decoration: none; }
.footer-guide-index-links a:hover { color: #fff; }
@media (max-width: 860px) { .crawl-hub-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .article-pathway { width: min(calc(100% - 28px),920px); } .article-pathway-inner { grid-template-columns: 1fr; } .pathway-next { text-align: left; } }
