:root {
  --navy: #0D1B2A; --navy2: #1B2D42; --gold: #B8860B; --gold-light: #D4A843;
  --gold-pale: #FDF6E3; --bg: #FAFAF8; --surface: #FFFFFF; --border: #E5E0D8;
  --text: #1A1A1A; --muted: #6B6560;
  --it: #1A5276; --sports: #1E8449; --blogs: #922B21; --general: #4A235A;
  --heading: #0D1B2A;
}
[data-theme="dark"] {
  --bg: #121212; --surface: #1E1E1E; --border: #333333;
  --text: #F5F5F5; --muted: #A0A0A0; --navy: #1E1E1E;
  --navy2: #121212; --gold-pale: #2A2000;
  --it: #4CC9F0; --sports: #4CAF50; --blogs: #F07167; --general: #9D4EDD;
  --heading: #F5F5F5;
}
*:focus-visible { outline: 3px solid var(--gold) !important; outline-offset: 2px; }
* { margin:0; padding:0; box-sizing:border-box }
body { font-family:'Inter',sans-serif; background:var(--bg); color:var(--text); min-height:100vh; padding-bottom:80px }
nav { background:var(--navy); border-bottom:3px solid var(--gold); position:sticky; top:0; z-index:100 }
.nav-inner { max-width:1200px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; padding:0 24px; height:60px }
.nav-brand { display:flex; align-items:center; gap:10px; cursor:pointer; text-decoration:none }
.nav-logo { background:var(--gold); color:var(--navy); font-weight:900; font-size:12px; padding:5px 9px; border-radius:4px }
.nav-name { font-family:'Playfair Display',serif; font-weight:700; font-size:18px; color:#fff }
.nav-back { color:rgba(255,255,255,.7); font-size:13px; cursor:pointer; text-decoration:none; display:flex; align-items:center; gap:6px }
.nav-back:hover { color:#fff }
.article-wrap { max-width:640px; margin:0 auto; padding:40px 20px 60px }
.cat-badge { display:inline-block; padding:4px 12px; border-radius:3px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; margin-bottom:16px }
.article-title { font-family:'Playfair Display',serif; font-size:clamp(24px,4vw,40px); font-weight:900; line-height:1.2; color:var(--heading); margin-bottom:20px }
.article-summary { font-size:17px; color:var(--muted); line-height:1.7; padding:16px 20px; border-left:4px solid var(--gold); background:var(--gold-pale); margin-bottom:24px; font-style:italic }
.author-row { display:flex; align-items:center; gap:12px; padding:14px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); margin-bottom:28px }
.author-avatar { width:36px; height:36px; border-radius:50%; background:var(--gold); color:var(--navy); font-weight:800; font-size:14px; display:flex; align-items:center; justify-content:center; flex-shrink:0 }
.author-info { flex:1 }
.author-dateline { font-size:10px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:1.5px; margin-bottom:2px }
.author-name { font-size:13px; font-weight:700; color:var(--heading) }
.author-pub { font-size:11px; color:var(--gold); font-weight:600 }
.author-date { font-size:11px; color:var(--muted); margin-top:1px }
.author-bio { margin-top:16px; padding:14px 16px; background:var(--gold-pale); border-left:3px solid var(--gold); border-radius:0 4px 4px 0; font-size:12px; color:var(--muted); line-height:1.7 }
.author-bio strong { color:var(--heading); font-weight:700 }
.hero-img-wrap { position:relative; width:100%; border-radius:12px; overflow:hidden; margin-bottom:32px; box-shadow:0 8px 24px rgba(0,0,0,0.06) }
.hero-img { width:100%; max-height:480px; object-fit:cover; display:block; margin-bottom:0; border-radius:0 }
.article-content { font-size:18px; line-height:1.8; color:var(--text); letter-spacing:-0.01em }
.article-content p { margin-bottom:24px }
.attribution { margin-top:32px; padding:16px 20px; background:var(--gold-pale); border:1px solid var(--border); border-left:4px solid var(--gold); border-radius:0 4px 4px 0 }
.attribution p { font-size:12px; color:var(--muted); font-style:italic; line-height:1.7; margin:0 }
.attribution a { color:var(--gold); text-decoration:none }
.actions { display:flex; gap:12px; margin-top:28px; flex-wrap:wrap }
.btn-back { background:var(--navy); color:#fff; padding:11px 22px; border-radius:4px; font-size:13px; font-weight:600; border:none; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; gap:6px }
.btn-back:hover { background:var(--navy2) }
.btn-share { background:transparent; color:var(--heading); padding:11px 22px; border-radius:4px; font-size:13px; font-weight:600; border:2px solid var(--heading); cursor:pointer; display:inline-flex; align-items:center; gap:6px }
.btn-share:hover { background:var(--heading); color:var(--bg) }
#readingProgress { position:fixed; top:60px; left:0; height:4px; background:var(--gold); width:0%; z-index:101; transition:width 0.1s ease-out }
.bottom-bar { position:fixed; bottom:0; left:0; right:0; background:rgba(255,255,255,0.92); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-top:1px solid var(--border); display:flex; justify-content:space-around; align-items:center; z-index:100; transform:translateY(100%); transition:transform 0.3s cubic-bezier(0.4,0,0.2,1); box-shadow:0 -4px 20px rgba(0,0,0,0.06); padding:10px 24px calc(10px + env(safe-area-inset-bottom)) }
.bottom-bar.visible { transform:translateY(0) }
.bottom-btn { display:flex; flex-direction:column; align-items:center; gap:4px; font-size:10px; font-weight:700; color:var(--heading); text-decoration:none; background:none; border:none; cursor:pointer; padding:8px 16px; transition:transform 0.2s }
.bottom-btn:active { transform:scale(0.92) }
.bottom-btn svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round }
.loader { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:80px 20px; gap:16px }
.spinner { width:36px; height:36px; border:3px solid var(--border); border-top-color:var(--gold); border-radius:50%; animation:spin .8s linear infinite }
@keyframes spin { to { transform:rotate(360deg) } }
.loader-text { color:var(--muted); font-size:14px }
.error-wrap { text-align:center; padding:80px 20px }
.error-wrap h2 { font-family:'Playfair Display',serif; font-size:28px; color:var(--heading); margin-bottom:12px }
.error-wrap p { color:var(--muted); margin-bottom:24px }
footer { background:var(--navy); border-top:3px solid var(--gold); padding:28px 20px; text-align:center; margin-top:auto }
.footer-brand { font-family:'Playfair Display',serif; font-size:18px; font-weight:700; color:#fff; margin-bottom:8px }
.footer-link { color:rgba(255,255,255,.5); font-size:12px; text-decoration:none }
.footer-link:hover { color:var(--gold-light) }
@media(max-width:600px) { .article-wrap { padding:24px 16px 60px } .article-title { font-size:24px } }
.article-h2 { font-family:'Playfair Display',serif; font-size:20px; font-weight:700; color:var(--heading); margin:32px 0 12px; padding-bottom:6px; border-bottom:2px solid var(--gold) }
.related-section { margin-top:40px; padding-top:24px; border-top:2px solid var(--border) }
.related-title { font-family:'Playfair Display',serif; font-size:18px; font-weight:700; color:var(--heading); margin-bottom:16px }
.related-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px }
.related-card { background:var(--surface); border:1px solid var(--border); border-top:3px solid var(--gold); padding:14px; text-decoration:none; display:block; transition:box-shadow .2s }
.related-card:hover { box-shadow:0 4px 12px rgba(0,0,0,.08) }
.related-cat { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; color:var(--gold); margin-bottom:6px }
.related-headline { font-size:13px; font-weight:600; color:var(--heading); line-height:1.4 }