:root {
  --blue:      #2054b5;
  --blue-dk:   #163c8c;
  --blue-dkr:  #0f2a63;
  --blue-lt:   #3369cc;
  --gold:      #e8a020;
  --gold-lt:   #f5bc4a;
  --gold-pale: #fdf3dc;
  --white:     #ffffff;
  --off-white: #f8f7f4;
  --gray-lt:   #f0eeea;
  --gray:      #9aa0ab;
  --gray-dk:   #5a6270;
  --text:      #1a2133;
  --border:    #dde2eb;
--serif: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --sans:  'Source Sans 3', sans-serif;
  --mono:  'DM Mono', monospace;
  --max:   1140px;
  --pad:   clamp(20px, 5vw, 64px);
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--blue-dkr); border-bottom: 3px solid var(--gold); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); height: 72px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 44px; width: auto; border-radius: 6px; }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a { font-size: 20px; font-weight: 500; color: rgba(255,255,255,0.80); letter-spacing: 0.02em; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { background: var(--gold) !important; color: var(--blue-dkr) !important; padding: 10px 24px !important; border-radius: 6px !important; font-weight: 700 !important; font-size: 19px !important; }
.nav-cta:hover { background: var(--gold-lt) !important; }

/* HAMBURGER BUTTON */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 300;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* POST HERO */
.post-hero { margin-top: 72px; background: var(--blue-dkr); padding: 56px var(--pad) 48px; position: relative; overflow: hidden; }
.post-hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: 0.12; }
.post-hero-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.post-breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 16px; color: rgba(255,255,255,0.50); letter-spacing: 0.06em; margin-bottom: 20px; }
.post-breadcrumb a { color: var(--gold); transition: opacity 0.2s; }
.post-breadcrumb a:hover { opacity: 0.8; }
.post-breadcrumb span { color: rgba(255,255,255,0.30); }
.post-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.post-cat-tag { font-family: var(--mono); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-dkr); background: var(--gold); padding: 4px 12px; border-radius: 100px; font-weight: 600; }
.post-hero h1 { font-family: var(--serif); font-size: clamp(34px, 4.5vw, 58px); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; color: var(--white); margin-bottom: 20px; max-width: 780px; }
.post-byline { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.post-author-name { font-family: var(--mono); font-size: 14px; color: rgba(255,255,255,0.65); letter-spacing: 0.06em; text-transform: uppercase; }
.post-author-name strong { color: var(--gold-lt); }

/* LAYOUT */
.post-layout { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad) 80px; display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }

/* ARTICLE */
.article-body { min-width: 0; }
.article-body p { font-size: 20px; color: var(--gray-dk); line-height: 1.8; margin-bottom: 24px; }
.article-body h2 { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--blue-dkr); margin: 48px 0 16px; letter-spacing: -0.01em; line-height: 1.2; }
.article-body h3 { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--blue-dkr); margin: 36px 0 14px; letter-spacing: -0.01em; }
.article-body h2 .section-num { color: var(--gold); font-family: var(--mono); font-size: 18px; font-weight: 500; display: block; margin-bottom: 6px; letter-spacing: 0.08em; }
.article-body ul, .article-body ol { margin: 0 0 24px 0; padding-left: 0; list-style: none; }
.article-body ul li, .article-body ol li { font-size: 19px; color: var(--gray-dk); line-height: 1.7; padding: 6px 0 6px 28px; position: relative; border-bottom: 1px solid var(--border); }
.article-body ul li:last-child, .article-body ol li:last-child { border-bottom: none; }
.article-body ul li::before { content: ''; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.article-body ol { counter-reset: ol-counter; }
.article-body ol li { counter-increment: ol-counter; }
.article-body ol li::before { content: counter(ol-counter); position: absolute; left: 0; top: 6px; font-family: var(--mono); font-size: 16px; color: var(--gold); font-weight: 500; }
.article-body blockquote { border-left: 4px solid var(--gold); margin: 32px 0; padding: 20px 28px; background: var(--gold-pale); border-radius: 0 8px 8px 0; }
.article-body blockquote p { font-family: var(--serif); font-size: 21px; font-style: italic; color: var(--blue-dkr); margin-bottom: 0; }
.article-body strong { color: var(--blue-dkr); font-weight: 700; }
.article-body em { color: var(--blue-dk); }

.bottom-line { background: var(--blue-dkr); border-radius: 12px; padding: 36px 40px; margin-top: 48px; }
.bottom-line-label { font-family: var(--mono); font-size: 18px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.bottom-line p { font-size: 19px; color: rgba(255,255,255,0.85); line-height: 1.75; margin-bottom: 0 !important; }

.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.post-nav a { font-size: 18px; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 8px; transition: color 0.2s; }
.post-nav a:hover { color: var(--blue-lt); }

/* SIDEBAR */
.sidebar { position: sticky; top: 96px; }
.sidebar-block { background: var(--off-white); border: 1px solid var(--border); border-radius: 12px; padding: 28px; margin-bottom: 24px; }
.sidebar-title { font-family: var(--mono); font-size: 18px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.popular-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.popular-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-item a { font-size: 16px; font-weight: 600; color: var(--blue-dkr); line-height: 1.4; transition: color 0.2s; }
.popular-item a:hover { color: var(--blue); }
.popular-item-cat { font-family: var(--mono); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin-top: 4px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { background: var(--white); border: 1px solid var(--border); color: var(--gray-dk); font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 100px; }
.sidebar-cta { background: var(--blue-dkr); border-radius: 12px; padding: 28px; text-align: center; }
.sidebar-cta-title { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--white); line-height: 1.3; margin-bottom: 12px; }
.sidebar-cta p { font-size: 18px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 20px !important; }
.btn-gold-sm { display: inline-block; background: var(--gold); color: var(--blue-dkr); padding: 12px 24px; border-radius: 8px; font-size: 16px; font-weight: 700; transition: all 0.2s; border: 2px solid var(--gold); }
.btn-gold-sm:hover { background: var(--gold-lt); border-color: var(--gold-lt); }

/* FOOTER */
footer { background: var(--blue-dkr); padding: 56px var(--pad) 28px; border-top: 4px solid var(--gold); }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 52px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.10); margin-bottom: 28px; }
.footer-logo img { height: 48px; margin-bottom: 16px; border-radius: 6px; }
.footer-desc { font-size: 16px; color: rgba(255,255,255,0.50); line-height: 1.7; }
.footer-col-title { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 16px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-size: 14px; color: rgba(255,255,255,0.30); }
.footer-locs { font-family: var(--mono); font-size: 13px; color: rgba(255,255,255,0.30); letter-spacing: 0.06em; }

/* ==============================
   MOBILE — 768px and below
   ============================== */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--blue-dkr);
    flex-direction: column;
    padding: 16px 0 24px;
    gap: 0;
    border-bottom: 3px solid var(--gold);
    z-index: 199;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 28px;
    font-size: 19px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-cta {
    background: var(--gold) !important;
    color: var(--blue-dkr) !important;
    margin: 12px 24px 0 !important;
    border-radius: 8px !important;
    text-align: center !important;
    padding: 14px 24px !important;
  }
  .post-layout {
    grid-template-columns: 1fr;
    padding: 36px var(--pad) 60px;
    gap: 40px;
  }
  .sidebar { position: static; }
  .post-hero { padding: 40px var(--pad) 32px; }
  .article-body h2 { font-size: 26px; margin: 36px 0 14px; }
  .article-body p { font-size: 18px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ==============================
   MOBILE — 480px and below
   ============================== */
@media (max-width: 480px) {
  .post-hero h1 { font-size: clamp(28px, 7vw, 40px); }
  .article-body p { font-size: 17px; }
  .bottom-line { padding: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
