/*
Theme Name: CONUI
Theme URI: https://conui.co
Author: CONUI Editorial
Description: Professional editorial theme for digital economy leaders
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: conui
*/

/* =====================================================
   CSS VARIABLES — Swiss Modernism 2.0 Design System
   ===================================================== */
:root {
  --ink:     #18181B;
  --ink2:    #27272A;
  --accent:  #EC4899;
  --accent2: #FBCFE8;
  --white:   #FFFFFF;
  --g50:     #FAFAFA;
  --g100:    #F4F4F5;
  --g200:    #E4E4E7;
  --g400:    #A1A1AA;
  --text:    #18181B;
  --muted:   #71717A;
  --border:  #E4E4E7;
  --font:    "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --serif:   "Libre Bodoni", Georgia, serif;
  --maxw:    1200px;
  --r:       4px;
  --sh:      0 1px 4px rgba(0,0,0,.06);
  --sh2:     0 8px 24px rgba(0,0,0,.1);
  --t:       .2s ease;
}

/* =====================================================
   RESET
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =====================================================
   SCROLL REVEAL
   ===================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
:root { --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================
   READING PROGRESS BAR
   ===================================================== */
#progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0%; z-index: 9999; transition: width .1s linear; }

/* =====================================================
   HEADER / NAV
   ===================================================== */
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; background: var(--accent); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: var(--white); letter-spacing: -.5px; flex-shrink: 0; }
.logo-text { font-size: 18px; font-weight: 800; color: var(--white); letter-spacing: 3px; text-transform: uppercase; }
.logo-tagline { font-size: 10px; color: rgba(255,255,255,.35); letter-spacing: .5px; display: block; margin-top: -3px; text-transform: uppercase; }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu a { color: rgba(255,255,255,.65); font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; padding: 6px 12px; border-radius: var(--r); transition: var(--t); }
.nav-menu a:hover, .nav-menu a.active { color: var(--white); background: rgba(255,255,255,.08); }
.nav-menu a.active { color: var(--accent); background: transparent; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.btn-search { color: rgba(255,255,255,.6); padding: 7px; border-radius: var(--r); transition: var(--t); display: flex; align-items: center; }
.btn-search:hover { color: var(--white); background: rgba(255,255,255,.08); }
.btn-menu { display: none; color: var(--white); padding: 7px; border-radius: var(--r); }
.nav-mobile { display: none; background: var(--ink2); border-top: 1px solid rgba(255,255,255,.06); padding: 8px 0; }
.nav-mobile a { display: block; color: rgba(255,255,255,.75); font-size: 14px; font-weight: 600; padding: 10px 24px; text-transform: uppercase; letter-spacing: .8px; font-size: 12px; transition: var(--t); }
.nav-mobile a:hover { color: var(--accent); background: rgba(255,255,255,.04); }
.nav-mobile.open { display: block; }

/* Search Overlay */
.search-overlay { display: none; position: fixed; inset: 0; background: rgba(24,24,27,.97); z-index: 2000; align-items: center; justify-content: center; padding: 24px; }
.search-overlay.open { display: flex; }
.search-box { width: 100%; max-width: 600px; }
.search-box form { display: flex; border-bottom: 2px solid var(--accent); }
.search-box input { flex: 1; padding: 16px 0; font-size: 22px; background: transparent; border: none; color: var(--white); font-family: var(--font); outline: none; }
.search-box input::placeholder { color: rgba(255,255,255,.25); }
.search-box button[type=submit] { padding: 16px 20px; background: transparent; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.search-close { position: absolute; top: 24px; right: 24px; color: rgba(255,255,255,.5); font-size: 28px; background: none; border: none; cursor: pointer; transition: var(--t); }
.search-close:hover { color: var(--white); }

/* =====================================================
   BADGES
   ===================================================== */
.badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 9px; border-radius: 2px; line-height: 1; }
.badge-profiles { background: var(--accent); color: #fff; }
.badge-news     { background: #2563EB; color: #fff; }
.badge-analysis { background: #7C3AED; color: #fff; }
.badge-lists    { background: #059669; color: #fff; }
.badge-default  { background: var(--g200); color: var(--text); }

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section { padding: 48px 0 52px; background: var(--white); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }

.hero-main { position: relative; border-radius: var(--r); overflow: hidden; background: var(--ink); min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; }
.hero-main-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; transition: opacity .5s ease; }
.hero-main:hover .hero-main-img { opacity: .52; }
.hero-main-content { position: relative; padding: 32px; background: linear-gradient(to top, rgba(24,24,27,.98) 0%, rgba(24,24,27,.55) 55%, transparent 100%); }
.hero-main-content .badge { margin-bottom: 14px; }
.hero-main-title { font-family: var(--serif); font-size: clamp(22px, 2.8vw, 32px); font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: 12px; transition: var(--t); }
.hero-main:hover .hero-main-title { color: var(--accent2); }
.hero-main-meta { font-size: 12px; color: rgba(255,255,255,.45); letter-spacing: .3px; }

.hero-sidebar { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.hero-side-card { background: var(--white); display: grid; grid-template-columns: 100px 1fr; transition: background var(--t); text-decoration: none; }
.hero-side-card:hover { background: var(--g50); }
.hero-side-img { width: 100px; height: 80px; object-fit: cover; }
.hero-side-body { padding: 12px 14px; }
.hero-side-body .badge { margin-bottom: 6px; }
.hero-side-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--t); }
.hero-side-card:hover .hero-side-title { color: var(--accent); }
.hero-side-meta { font-size: 11px; color: var(--muted); margin-top: 5px; }

/* =====================================================
   POST CARDS
   ===================================================== */
.card { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); overflow: hidden; transition: box-shadow var(--t), border-color var(--t), transform var(--t); display: flex; flex-direction: column; text-decoration: none; }
.card:hover { box-shadow: var(--sh2); transform: translateY(-2px); border-color: transparent; }
.card-img-wrap { overflow: hidden; aspect-ratio: 16/9; background: var(--g100); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img { transform: scale(1.04); }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.card-date, .card-read-time { font-size: 11px; color: var(--muted); letter-spacing: .3px; }
.card-title { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 10px; transition: color var(--t); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title { color: var(--accent); }
.card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.65; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--g100); font-size: 11px; color: var(--muted); }

/* =====================================================
   GRIDS & SECTION HEADERS
   ===================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.section-title { font-size: 11px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text); display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; display: block; width: 16px; height: 2px; background: var(--accent); }
.section-link { font-size: 11px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; transition: color var(--t); letter-spacing: .5px; text-transform: uppercase; }
.section-link:hover { color: var(--accent); }

.latest-section { padding: 56px 0; }
.category-section { padding: 48px 0; border-top: 1px solid var(--border); }

/* =====================================================
   NEWSLETTER STRIP
   ===================================================== */
.newsletter-strip { background: var(--ink); padding: 64px 0; text-align: center; }
.newsletter-label { font-size: 10px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.newsletter-title { font-family: var(--serif); font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.newsletter-sub { font-size: 15px; color: rgba(255,255,255,.4); margin-bottom: 32px; }
.newsletter-form { display: flex; max-width: 460px; margin: 0 auto; border-bottom: 2px solid rgba(255,255,255,.2); }
.newsletter-input { flex: 1; padding: 12px 0; background: transparent; border: none; color: #fff; font-family: var(--font); font-size: 15px; outline: none; }
.newsletter-input::placeholder { color: rgba(255,255,255,.25); }
.newsletter-btn { padding: 12px 24px; background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; border-radius: var(--r); transition: background var(--t); }
.newsletter-btn:hover { background: #DB2777; }
.newsletter-note { font-size: 11px; color: rgba(255,255,255,.2); margin-top: 14px; letter-spacing: .3px; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: #0F0F10; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 28px; }
.footer-logo .logo-text { font-size: 16px; }
.footer-logo .logo-tagline { margin-top: 2px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.28); line-height: 1.75; margin-top: 16px; max-width: 260px; }
.footer-col-title { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 18px; }
.footer-links a { display: block; font-size: 13px; color: rgba(255,255,255,.35); padding: 5px 0; transition: color var(--t); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.18); }
.footer-disclaimer { font-size: 11px; color: rgba(255,255,255,.14); max-width: 560px; line-height: 1.65; text-align: right; }

/* =====================================================
   ARTICLE PAGE
   ===================================================== */
.article-header { padding: 44px 0 36px; background: var(--g50); border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; letter-spacing: .3px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--g400); }
.article-category-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.article-read-time { font-size: 12px; color: var(--muted); font-weight: 500; }
.article-h1 { font-family: var(--serif); font-size: clamp(24px, 3.5vw, 42px); font-weight: 700; line-height: 1.2; color: var(--text); margin-bottom: 24px; max-width: 820px; }
.article-byline { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.byline-author { display: flex; align-items: center; gap: 10px; }
.byline-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--g200); }
.byline-name { font-size: 14px; font-weight: 600; color: var(--text); }
.byline-role { font-size: 12px; color: var(--muted); }
.byline-divider { width: 1px; height: 24px; background: var(--border); }
.byline-meta { font-size: 12px; color: var(--muted); }
.share-bar { display: flex; align-items: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.share-label { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.share-btn { display: flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 20px; font-size: 11px; font-weight: 600; transition: var(--t); border: 1px solid var(--border); color: var(--muted); cursor: pointer; background: none; font-family: var(--font); letter-spacing: .3px; }
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-btn-x:hover { border-color: #000; color: #000; }
.share-btn-li:hover { border-color: #0A66C2; color: #0A66C2; }

.article-featured-wrap { margin: 36px 0; }
.article-featured-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: var(--r); }
.img-caption { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; font-style: italic; }

.article-outer { padding: 44px 0 64px; }
.article-layout { display: grid; grid-template-columns: 1fr 272px; gap: 56px; align-items: start; }
.article-body { min-width: 0; }
.article-body h2 { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--text); margin: 44px 0 16px; line-height: 1.3; padding-top: 4px; border-top: 2px solid var(--accent); display: inline-block; padding-right: 40px; }
.article-body h3 { font-size: 20px; font-weight: 700; color: var(--text); margin: 28px 0 12px; }
.article-body h4 { font-size: 17px; font-weight: 700; color: var(--text); margin: 20px 0 10px; }
.article-body p { font-size: 18px; line-height: 1.85; color: #27272A; margin-bottom: 24px; }
.article-body ul, .article-body ol { margin: 12px 0 24px 24px; }
.article-body ul { list-style: disc; } .article-body ol { list-style: decimal; }
.article-body li { font-size: 17px; line-height: 1.72; color: #27272A; margin-bottom: 8px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; transition: color var(--t); }
.article-body a:hover { color: var(--text); }
.article-body blockquote { border-left: 3px solid var(--accent); padding: 16px 24px; margin: 32px 0; background: var(--g50); border-radius: 0 var(--r) var(--r) 0; font-style: italic; font-size: 19px; color: var(--text); font-family: var(--serif); }
.article-body strong { font-weight: 700; color: var(--text); }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.article-body th { background: var(--ink); color: #fff; padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.article-body td { padding: 11px 16px; border-bottom: 1px solid var(--border); }
.article-body tr:hover td { background: var(--g50); }

/* Quick Facts */
.quick-facts { background: var(--g50); border: 1px solid var(--border); border-top: 2px solid var(--accent); border-radius: var(--r); padding: 18px; float: right; width: 240px; margin: 0 0 24px 32px; }
.quick-facts-title { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.qf-row { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--g100); font-size: 13px; }
.qf-row:last-child { border-bottom: none; }
.qf-label { color: var(--muted); font-weight: 500; min-width: 84px; flex-shrink: 0; }
.qf-value { color: var(--text); font-weight: 600; }

/* Article Sidebar */
.article-sidebar { position: sticky; top: 80px; }
.toc-box, .tags-box { background: var(--g50); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.toc-title, .tags-title { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.toc-list li { margin-bottom: 1px; }
.toc-list a { font-size: 13px; color: var(--muted); padding: 4px 0 4px 10px; display: block; transition: var(--t); line-height: 1.5; border-left: 2px solid transparent; }
.toc-list a:hover, .toc-list a.toc-active { color: var(--accent); border-left-color: var(--accent); }
.toc-h3 a { padding-left: 22px; font-size: 12px; }
.tags-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill { font-size: 11px; padding: 4px 12px; background: var(--white); color: var(--muted); border-radius: 20px; border: 1px solid var(--border); transition: var(--t); }
.tag-pill:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* =====================================================
   FAQ
   ===================================================== */
.faq-section { margin: 48px 0; border-top: 1px solid var(--border); padding-top: 40px; }
.faq-heading { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 24px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 8px; overflow: hidden; transition: border-color var(--t); }
.faq-item.open { border-color: var(--accent); }
.faq-question { width: 100%; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--white); text-align: left; font-size: 15px; font-weight: 600; color: var(--text); transition: background var(--t); }
.faq-question:hover { background: var(--g50); }
.faq-item.open .faq-question { background: var(--ink); color: #fff; }
.faq-icon { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; line-height: 1; transition: transform var(--t); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 18px 20px; font-size: 15px; color: var(--muted); line-height: 1.78; background: var(--g50); }
.faq-item.open .faq-answer { display: block; }

/* =====================================================
   AUTHOR BOX
   ===================================================== */
.author-box { background: var(--g50); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; display: flex; gap: 20px; align-items: flex-start; margin: 48px 0; }
.author-avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--g200); }
.author-info .author-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.author-info .author-role { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 10px; letter-spacing: .3px; }
.author-info .author-bio { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* =====================================================
   DISCLAIMER
   ===================================================== */
.disclaimer-box { border: 1px solid #FDE68A; background: #FFFBEB; border-radius: var(--r); padding: 14px 18px; margin: 40px 0; display: flex; gap: 12px; align-items: flex-start; }
.disclaimer-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.disclaimer-text { font-size: 13px; color: #92400E; line-height: 1.65; }
.disclaimer-text strong { color: #78350F; }

/* =====================================================
   RELATED POSTS
   ===================================================== */
.related-section { padding: 48px 0; border-top: 1px solid var(--border); }
.related-heading { font-size: 11px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.related-heading::before { content: ""; display: block; width: 16px; height: 2px; background: var(--accent); }

/* =====================================================
   ARCHIVE PAGE
   ===================================================== */
.archive-header { background: var(--ink); padding: 56px 0; margin-bottom: 48px; }
.archive-label { font-size: 10px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.archive-title { font-family: var(--serif); font-size: clamp(28px,4vw,48px); font-weight: 700; color: #fff; margin-bottom: 12px; }
.archive-desc { font-size: 16px; color: rgba(255,255,255,.4); max-width: 520px; line-height: 1.7; }
.archive-count { font-size: 12px; color: rgba(255,255,255,.22); margin-top: 8px; letter-spacing: .3px; }
.archive-body { padding-bottom: 64px; }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 48px 0; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--r); font-size: 14px; font-weight: 500; border: 1px solid var(--border); transition: var(--t); color: var(--text); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* =====================================================
   STATIC PAGES
   ===================================================== */
.page-header { background: var(--g50); padding: 52px 0; border-bottom: 1px solid var(--border); margin-bottom: 48px; }
.page-h1 { font-family: var(--serif); font-size: clamp(28px,4vw,44px); font-weight: 700; color: var(--text); }
.page-content-wrap { max-width: 720px; margin: 0 auto; padding: 0 24px 64px; }
.page-content-wrap h2 { font-size: 22px; font-weight: 700; color: var(--text); margin: 36px 0 12px; }
.page-content-wrap p { font-size: 16px; line-height: 1.82; color: var(--muted); margin-bottom: 18px; }
.page-content-wrap ul { margin: 12px 0 18px 24px; list-style: disc; }
.page-content-wrap li { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 6px; }

/* =====================================================
   404
   ===================================================== */
.error-page { text-align: center; padding: 100px 24px; }
.error-code { font-size: 120px; font-weight: 900; color: var(--g200); line-height: 1; font-family: var(--serif); }
.error-page h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.error-page p { color: var(--muted); margin-bottom: 28px; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: var(--ink); color: #fff; border-radius: var(--r); font-weight: 700; font-size: 14px; letter-spacing: .5px; transition: var(--t); }
.btn-primary:hover { background: var(--accent); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: var(--r); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quick-facts { float: none; width: 100%; margin-left: 0; }
}
@media (max-width: 768px) {
  .nav-menu, .btn-search { display: none; }
  .btn-menu { display: flex; align-items: center; justify-content: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-disclaimer { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .newsletter-form { flex-direction: row; }
  .author-box { flex-direction: column; }
  .share-bar { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero-main-title { font-size: 20px; }
  .article-h1 { font-size: 22px; }
  .toc-box { display: none; }
  .quick-facts { display: none; }
  .newsletter-form { flex-direction: column; }
  .newsletter-btn { border-radius: 0 0 var(--r) var(--r); }
}
