/*
Theme Name: HotShot Networth
Theme URI: https://hotshotnetworth.com/
Author: HotShot Networth
Description: Celebrity net worth magazine theme with editable net-worth stats, featured/recently-updated/trending sections and a sticky stats sidebar on articles.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hotshot
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --coral:     #D85A30;
  --coral-l:   #FAECE7;
  --coral-d:   #712B13;
  --coral-mid: #993C1D;
  --dark:      #2C2C2A;
  --mid:       #888780;
  --light:     #F1EFE8;
  --white:     #FFFFFF;
  --border:    #E8E6E0;
  --green-l:   #EAF3DE;
  --green-d:   #3B6D11;
  --amber-l:   #FAEEDA;
  --amber-d:   #854F0B;
  --blue-l:    #E6F1FB;
  --blue-d:    #185FA5;
  --purple-l:  #EEEDFE;
  --purple-d:  #3C3489;
  --teal-l:    #E1F5EE;
  --teal-d:    #085041;
  --pink-l:    #FBEAF0;
  --pink-d:    #72243E;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #FAF9F6;
  color: var(--dark);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; z-index: 999; top: 8px; left: 8px;
  background: var(--white); padding: 8px 14px; border-radius: 6px;
}

/* ===== NAV ===== */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 0; } }
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.logo img, .custom-logo { max-height: 36px; width: auto; }
.custom-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); display: inline-block; }
.nav-links { display: flex; gap: 24px; list-style: none; flex: 1; }
.nav-links li { position: relative; }
.nav-links a { font-size: 14px; color: var(--mid); font-weight: 500; transition: color 0.15s; }
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current-menu-ancestor > a,
.nav-links .current-post-ancestor > a { color: var(--coral); }
.nav-links .sub-menu {
  display: none; position: absolute; top: 100%; left: -14px; list-style: none;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 0; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}
.nav-links li:hover > .sub-menu, .nav-links li:focus-within > .sub-menu { display: block; }
.nav-links .sub-menu a { display: block; padding: 6px 14px; }
.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--light); border: 1px solid var(--border);
  border-radius: 8px; padding: 0 14px; height: 36px; min-width: 200px; cursor: text;
  margin-left: auto;
}
.nav-search svg { width: 14px; height: 14px; stroke: var(--mid); flex-shrink: 0; }
.nav-search input {
  border: none; background: transparent; outline: none; font: inherit;
  font-size: 13px; color: var(--dark); width: 100%;
}
.nav-search input::placeholder { color: var(--mid); }
.nav-search:focus-within { border-color: var(--coral); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 36px; height: 36px; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.nav-toggle svg { width: 18px; height: 18px; stroke: var(--dark); }

/* ===== LAYOUT HELPERS ===== */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.main { padding: 40px 0 60px; }

/* ===== HERO (front page) ===== */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: var(--coral-l);
  color: var(--coral-mid);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--dark);
  max-width: 520px;
  margin-bottom: 14px;
}
.hero h1 em { font-style: italic; color: var(--coral); }
.hero-sub {
  font-size: 16px;
  color: var(--mid);
  max-width: 420px;
  margin-bottom: 24px;
  line-height: 1.7;
}
.btn-primary {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 8px;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover { background: var(--coral-mid); transform: translateY(-1px); }
.hero-stats { display: flex; flex-direction: column; gap: 12px; }
.hero-stat {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
  min-width: 130px;
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
}
.hero-stat-label { font-size: 12px; color: var(--mid); margin-top: 2px; }

/* ===== CATEGORY PILLS ===== */
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.cat-pill {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--mid);
  background: var(--white);
  transition: all 0.15s;
}
.cat-pill:hover { border-color: var(--coral); color: var(--coral); }
.cat-pill.active { background: var(--coral); color: var(--white); border-color: var(--coral); }

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}
.see-all { font-size: 13px; font-weight: 500; color: var(--coral); transition: opacity 0.15s; flex-shrink: 0; }
.see-all:hover { opacity: 0.7; }

/* ===== AVATAR PALETTE ===== */
.av { display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-coral  { background: #F0997B; color: var(--coral-d); }
.av-purple { background: #AFA9EC; color: var(--purple-d); }
.av-teal   { background: #5DCAA5; color: var(--teal-d); }
.av-amber  { background: #EF9F27; color: var(--amber-d); }
.av-blue   { background: #85B7EB; color: var(--blue-d); }
.av-pink   { background: #ED93B1; color: var(--pink-d); }
.av-green  { background: #A7CF7B; color: var(--green-d); }
.tint-coral  { background: var(--coral-l); }
.tint-purple { background: var(--purple-l); }
.tint-teal   { background: var(--teal-l); }
.tint-amber  { background: var(--amber-l); }
.tint-blue   { background: var(--blue-l); }
.tint-pink   { background: var(--pink-l); }
.tint-green  { background: var(--green-l); }
/* soft variants used in the small side cards */
.card-sm .av-coral  { background: var(--coral-l); }
.card-sm .av-purple { background: var(--purple-l); }
.card-sm .av-teal   { background: var(--teal-l); }
.card-sm .av-amber  { background: var(--amber-l); }
.card-sm .av-blue   { background: var(--blue-l); }
.card-sm .av-pink   { background: var(--pink-l); }
.card-sm .av-green  { background: var(--green-l); }

/* ===== FEATURED GRID ===== */
.featured-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
.featured-grid.no-side { grid-template-columns: 1fr; }
.card-big {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card-big:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
.card-big-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-big-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-big-avatar { width: 80px; height: 80px; font-size: 28px; }
.card-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--coral);
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  z-index: 1;
}
.card-big-body { padding: 20px 22px; }
.card-name { font-size: 18px; font-weight: 500; color: var(--dark); margin-bottom: 3px; }
.card-prof { font-size: 12px; color: var(--mid); margin-bottom: 12px; }
.card-nw {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.card-change {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 4px;
}

/* ===== SIDE STACK ===== */
.side-stack { display: flex; flex-direction: column; gap: 12px; }
.card-sm {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.15s;
}
.card-sm:hover { transform: translateY(-1px); }
.card-sm-avatar { width: 46px; height: 46px; font-size: 15px; }
.card-sm-info { flex: 1; min-width: 0; }
.card-sm-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sm-prof { font-size: 11px; color: var(--mid); margin-top: 2px; }
.card-sm-nw { font-size: 16px; font-weight: 500; flex-shrink: 0; }

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.card-grid-item {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card-grid-item:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.card-grid-img {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-grid-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-grid-av { width: 52px; height: 52px; font-size: 17px; }
.card-grid-body { padding: 14px 16px; }
.card-grid-name { font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.card-grid-prof { font-size: 11px; color: var(--mid); margin-bottom: 8px; }
.card-grid-nw { font-size: 18px; font-weight: 500; color: var(--coral); }
.card-grid-excerpt { font-size: 13px; color: var(--mid); line-height: 1.6; }

/* ===== TRENDING ===== */
.trending {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 48px;
}
.trending-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-bottom: 16px;
}
.trend-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.trend-item:last-child { border-bottom: none; }
.trend-item:hover .trend-name { color: var(--coral); }
.trend-rank { font-size: 13px; font-weight: 500; color: var(--mid); width: 20px; flex-shrink: 0; }
.trend-name { flex: 1; font-size: 15px; font-weight: 500; transition: color 0.15s; }
.trend-nw { font-size: 14px; font-weight: 500; }
.trend-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 4px;
  margin-left: 8px;
}
.badge-up   { background: var(--green-l); color: var(--green-d); }
.badge-down { background: #FCEBEB; color: #A32D2D; }
.badge-flat { background: var(--light); color: var(--mid); }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 13px; transition: color 0.15s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 13px;
  color: var(--mid);
}
.breadcrumb a { color: var(--mid); }
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb .sep { color: var(--mid); margin: 0 6px; }

/* ===== ARTICLE LAYOUT ===== */
.article-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.article-wrap.no-sidebar { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
.article-tag {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.article-h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.article-meta a:hover { color: var(--coral); }
.meta-update { color: var(--green-d); background: var(--green-l); padding: 3px 9px; border-radius: 4px; font-weight: 500; }

/* HERO IMAGE */
.article-hero-img {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.article-hero-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--coral-mid); }
.hero-avatar-lg { width: 96px; height: 96px; font-size: 36px; }
.hero-caption { font-size: 13px; font-weight: 500; }

/* ===== ARTICLE BODY (content written in the editor) ===== */
.entry-content { font-size: 16px; line-height: 1.8; color: var(--dark); }
.entry-content > * + * { margin-top: 18px; }
.entry-content > p:first-child,
.article-intro { font-size: 16px; line-height: 1.8; }
.entry-content strong, .article-intro strong { font-weight: 500; }
.entry-content a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--coral-mid); }
.entry-content h2,
.article-h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  margin: 36px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--coral);
}
.entry-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 700; margin: 28px 0 10px;
}
.entry-content h4 { font-size: 16px; font-weight: 500; margin: 22px 0 8px; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content li + li { margin-top: 6px; }
.entry-content li::marker { color: var(--coral); }
.entry-content blockquote {
  border-left: 3px solid var(--coral); background: var(--white);
  padding: 16px 20px; border-radius: 0 10px 10px 0; font-style: italic;
}
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content img { border-radius: 12px; }
.entry-content figcaption { font-size: 13px; color: var(--mid); margin-top: 8px; text-align: center; }
.entry-content hr, .divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; }
.entry-content iframe { max-width: 100%; }

/* tables (any table in the post gets the income-table look) */
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content table,
.income-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.5;
}
.entry-content table th,
.income-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  padding: 8px 12px;
  background: var(--light);
  border: none;
  border-bottom: 1px solid var(--border);
}
.entry-content table td,
.income-table td {
  padding: 12px;
  border: none;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.entry-content table tr:last-child td { border-bottom: none; }
.entry-content table tr:hover td { background: var(--light); }
.entry-content .wp-block-table thead { border-bottom: none; }
.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: transparent; }
.income-pct { font-weight: 500; color: var(--coral); }
.income-bar-wrap { display: flex; align-items: center; gap: 10px; }
.income-bar { height: 5px; background: var(--coral); border-radius: 3px; opacity: 0.65; flex-shrink: 0; }

/* TIMELINE */
.timeline { position: relative; padding-left: 24px; margin-bottom: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
.tl-item { position: relative; margin-bottom: 22px; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -21px; top: 5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--coral);
}
.tl-year { font-size: 12px; font-weight: 500; color: var(--coral); margin-bottom: 3px; line-height: 1.6; }
.tl-text { font-size: 15px; color: var(--dark); line-height: 1.6; margin-top: 0 !important; }

/* FAQ */
.faq-list { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item > * + * { margin-top: 0; }
.faq-q { font-size: 15px; font-weight: 500; color: var(--dark); margin-bottom: 8px; line-height: 1.5; }
.faq-a { font-size: 14px; color: var(--mid); line-height: 1.7; }

/* Block-editor versions of timeline & FAQ (patterns) */
.entry-content .timeline > *,
.entry-content .tl-item > *,
.entry-content .faq-list > *,
.entry-content .faq-item > * { margin-block-start: 0; margin-block-end: 0; }
.entry-content .tl-item { margin-bottom: 22px; }
.entry-content .tl-year { margin-bottom: 3px; }
.entry-content .faq-q { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; margin: 0 0 8px; padding: 0; border: none; }
.entry-content .faq-a { margin: 0; }
.entry-content .is-style-income table td:last-child { font-weight: 500; color: var(--coral); }

/* Sources list at the end of AI-written articles */
.entry-content h3 + .sources-list { margin-top: 8px; }
.entry-content .sources-list { font-size: 13px; color: var(--mid); padding-left: 18px; }
.entry-content .sources-list a { color: var(--mid); }
.entry-content .sources-list a:hover { color: var(--coral); }

/* RELATED */
.related-section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-section .article-h2 { margin-top: 0; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.related-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  transition: transform 0.15s;
}
.related-card:hover { transform: translateY(-2px); }
.related-img { height: 80px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.related-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.related-av { width: 44px; height: 44px; font-size: 14px; }
.related-body { padding: 10px 14px; }
.related-name { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.related-nw { font-size: 13px; color: var(--coral); font-weight: 500; }

/* ===== ARTICLE SIDEBAR ===== */
.article-sidebar { position: sticky; top: 80px; }
.admin-bar .article-sidebar { top: 112px; }
.nw-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}
.nw-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-bottom: 8px;
}
.nw-amount {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 4px;
}
.nw-year { font-size: 13px; color: var(--mid); margin-bottom: 16px; }
.nw-bar-track {
  height: 6px;
  background: var(--light);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.nw-bar-fill { height: 100%; background: var(--coral); border-radius: 3px; }
.nw-rank { font-size: 12px; color: var(--mid); }
.nw-change { margin-top: 12px; }
.nw-mobile { display: none; margin-bottom: 28px; }
.nw-mobile .nw-card { margin-bottom: 10px; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.stat-box { background: var(--light); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.stat-label { font-size: 11px; color: var(--mid); margin-bottom: 4px; }
.stat-val { font-size: 14px; font-weight: 500; color: var(--dark); overflow-wrap: anywhere; }

.share-row { display: flex; gap: 8px; margin-bottom: 16px; }
.share-btn {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--mid);
  cursor: pointer;
  background: var(--white);
  transition: all 0.15s;
}
.share-btn:hover { border-color: var(--coral); color: var(--coral); }
.widget { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; margin-bottom: 16px; font-size: 14px; }
.widget-title { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mid); margin-bottom: 12px; }
.widget ul { list-style: none; }
.widget h2, .widget .wp-block-heading { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mid); margin-bottom: 12px; padding: 0; border: none; }
.widget .wp-block-search__label { display: block; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mid); margin-bottom: 10px; }
.widget .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.widget .wp-block-search__input { flex: 1; min-width: 0; border: 1px solid var(--border); background: var(--light); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 13px; }
.widget .wp-block-search__button { border: none; background: var(--coral); color: var(--white); border-radius: 8px; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.widget ol { list-style: none; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.widget li:last-child { border-bottom: none; }
.widget a:hover { color: var(--coral); }

/* ===== ARCHIVE / SEARCH / PAGE ===== */
.archive-head { background: var(--white); border-bottom: 1px solid var(--border); padding: 36px 0; }
.archive-head .hero-tag { margin-bottom: 10px; }
.archive-title { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 900; line-height: 1.2; }
.archive-desc { color: var(--mid); margin-top: 8px; max-width: 640px; }
.archive-desc p + p { margin-top: 8px; }
.archive-head .nav-search { margin: 18px 0 0; max-width: 420px; height: 42px; }
.empty-state { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 48px 28px; text-align: center; }
.empty-state h2 { font-family: 'Playfair Display', serif; font-size: 26px; margin-bottom: 8px; }
.empty-state p { color: var(--mid); margin-bottom: 20px; }
.empty-state .nav-search { margin: 0 auto 20px; max-width: 380px; height: 42px; }
.big-404 { font-family: 'Playfair Display', serif; font-size: 96px; font-weight: 900; color: var(--coral); line-height: 1; margin-bottom: 8px; }

.pagination { display: flex; justify-content: center; margin-bottom: 20px; }
.pagination .nav-links { flex: none; gap: 6px; display: flex; }
.pagination .page-numbers {
  min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px; background: var(--white);
  font-size: 13px; font-weight: 500; color: var(--mid);
}
.pagination .page-numbers.current { background: var(--coral); border-color: var(--coral); color: var(--white); }
.pagination a.page-numbers:hover { border-color: var(--coral); color: var(--coral); }

.page-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.page-tags a { font-size: 12px; padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border); color: var(--mid); background: var(--white); }
.page-tags a:hover { border-color: var(--coral); color: var(--coral); }

/* comments */
.comments-area { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.comment-list { list-style: none; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; font-size: 14px; }
.comment-meta { font-size: 12px; color: var(--mid); margin-bottom: 8px; }
.comment-author { font-weight: 500; color: var(--dark); font-size: 14px; }
.comment-author img { display: inline-block; border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-respond { margin-top: 16px; }
.comment-form p { margin-bottom: 12px; }
.comment-form label { display: block; font-size: 13px; color: var(--mid); margin-bottom: 4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; background: var(--white);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--coral); }
.comment-form .submit { background: var(--coral); color: var(--white); border: none; border-radius: 8px; padding: 11px 22px; font: inherit; font-weight: 500; cursor: pointer; }

/* WP core alignment helpers */
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 13px; color: var(--mid); }
.sticky, .bypostauthor, .gallery-caption { }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .article-wrap { grid-template-columns: minmax(0, 1fr); }
  .article-sidebar { position: static; }
  .nw-mobile { display: block; }
  .article-sidebar .nw-card, .article-sidebar .stats-grid { display: none; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-inner { gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 10px 0; font-size: 15px; }
  .nav-links .sub-menu { position: static; display: block; border: none; box-shadow: none; padding: 0 0 0 14px; }
  .nav-search { min-width: 0; flex: 1; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; }
  .hero-stat { min-width: 0; flex: 1; padding: 14px 10px; }
  .hero h1 { font-size: 30px; }
  .featured-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 600px) {
  .article-h1 { font-size: 26px; }
  .archive-title { font-size: 26px; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .logo { font-size: 17px; }
}
