:root {
  --navy: #0a2240;
  --blue: #1255a4;
  --blue-mid: #1565c0;
  --blue-bright: #1e88e5;
  --blue-light: #64b5f6;
  --blue-pale: #dbeafe;
  --blue-pale2: #eff6ff;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --gray-bg: #f0f4f9;
  --border: #c8d8ec;
  --text: #0a1929;
  --text-mid: #1e3a5f;
  --text-muted: #4a6a8a;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); }

/* NAV */
.site-nav { position: sticky; top: 0; z-index: 100; background: #ffffff; border-bottom: 2px solid #c8d8ec; box-shadow: 0 2px 16px rgba(10,34,64,0.08); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 5%; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-logo img { height: 42px; border-radius: 6px; display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-mid); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { background: var(--navy) !important; color: white !important; padding: 9px 18px; border-radius: 7px; font-weight: 700 !important; font-size: 13px; }
.nav-cta:hover { background: var(--blue-mid) !important; color: white !important; }

/* HERO BANNER */
.hero-banner { background: var(--navy); padding: 80px 5% 70px; }
.hero-banner-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 20px; }
.hero-banner h1 { font-family: 'Libre Baskerville', serif; font-size: clamp(28px, 4vw, 48px); font-weight: 700; color: white; line-height: 1.2; margin-bottom: 18px; letter-spacing: -0.02em; }
.hero-banner p { font-size: 17px; color: rgba(255,255,255,0.65); line-height: 1.75; margin-bottom: 36px; font-weight: 300; }
.subscribe-form { display: flex; gap: 10px; max-width: 500px; margin: 0 auto; }
.subscribe-form input { flex: 1; padding: 12px 16px; border: 1.5px solid rgba(255,255,255,0.2); border-radius: 8px; background: rgba(255,255,255,0.08); color: white; font-size: 14px; font-family: 'DM Sans', sans-serif; }
.subscribe-form input::placeholder { color: rgba(255,255,255,0.4); }
.subscribe-form input:focus { outline: none; border-color: var(--blue-light); }
.subscribe-form button { padding: 12px 22px; background: var(--blue-mid); color: white; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; transition: background 0.2s; }
.subscribe-form button:hover { background: var(--blue-bright); }
.subscribe-success { color: var(--blue-light); font-size: 14px; margin-top: 12px; }

/* POSTS */
.posts-container { padding: 60px 5%; background: var(--off-white); }
.posts-inner { max-width: 1200px; margin: 0 auto; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--white); border-radius: 14px; overflow: hidden; border: 1.5px solid var(--border); transition: all 0.3s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,34,64,0.12); }
.post-card-image-link { display: block; height: 200px; overflow: hidden; }
.post-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-card-image { transform: scale(1.03); }
.post-card-content { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-mid); text-decoration: none; margin-bottom: 10px; display: block; }
.post-card-title { font-family: 'Libre Baskerville', serif; font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: 10px; }
.post-card-title a { text-decoration: none; color: inherit; }
.post-card-title a:hover { color: var(--blue-mid); }
.post-card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.65; flex: 1; margin-bottom: 16px; }
.post-card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 12px; flex-wrap: wrap; }
.post-card-author { font-weight: 600; color: var(--navy); }

/* TAG HEADER */
.tag-header { background: var(--navy); padding: 60px 5%; }
.tag-header-inner { max-width: 1200px; margin: 0 auto; }
.tag-header h1 { font-family: 'Libre Baskerville', serif; font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: white; margin: 10px 0 12px; }
.tag-header p { color: rgba(255,255,255,0.65); font-size: 16px; line-height: 1.65; font-weight: 300; }
.tag-count { color: rgba(255,255,255,0.4) !important; font-size: 14px !important; margin-top: 8px; }
.author-profile-img { width: 80px; height: 80px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.2); margin-bottom: 16px; }
.post-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-light); text-decoration: none; }

/* SINGLE POST */
.post-full { max-width: 1200px; margin: 0 auto; padding: 0 5% 80px; }
.post-full-header { background: var(--navy); margin: 0 -5% 0; padding: 60px 5% 50px; }
.post-full-header-inner { max-width: 760px; }
.post-full-title { font-family: 'Libre Baskerville', serif; font-size: clamp(28px, 4vw, 46px); font-weight: 700; color: white; line-height: 1.15; margin: 14px 0 18px; letter-spacing: -0.02em; }
.post-full-excerpt { font-size: 18px; color: rgba(255,255,255,0.7); line-height: 1.65; margin-bottom: 24px; font-weight: 300; }
.post-full-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.post-full-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); }
.author-avatar-placeholder { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-mid); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 16px; }
.author-name { display: block; color: white; font-size: 14px; font-weight: 600; }
.author-title { display: block; color: rgba(255,255,255,0.5); font-size: 12px; }
.post-full-date-read { color: rgba(255,255,255,0.5); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.post-full-image { margin: 0 -5%; max-height: 520px; overflow: hidden; }
.post-full-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-full-image figcaption { text-align: center; font-size: 13px; color: var(--text-muted); padding: 10px 5%; }

/* ARTICLE CONTENT */
.gh-content { max-width: 760px; margin: 48px auto 0; font-size: 18px; line-height: 1.8; color: var(--text-mid); }
.gh-content h2 { font-family: 'Libre Baskerville', serif; font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--navy); margin: 48px 0 18px; line-height: 1.25; }
.gh-content h3 { font-family: 'Libre Baskerville', serif; font-size: clamp(18px, 2.5vw, 24px); font-weight: 700; color: var(--navy); margin: 36px 0 14px; }
.gh-content p { margin-bottom: 24px; }
.gh-content a { color: var(--blue-mid); text-decoration: underline; text-underline-offset: 3px; }
.gh-content a:hover { color: var(--blue); }
.gh-content ul, .gh-content ol { margin: 0 0 24px 24px; }
.gh-content li { margin-bottom: 8px; }
.gh-content blockquote { border-left: 4px solid var(--blue-mid); padding: 16px 24px; margin: 32px 0; background: var(--blue-pale2); border-radius: 0 10px 10px 0; }
.gh-content blockquote p { color: var(--navy); font-style: italic; margin: 0; font-size: 17px; }
.gh-content img { width: 100%; border-radius: 10px; margin: 24px 0; }
.gh-content code { background: var(--gray-bg); padding: 2px 6px; border-radius: 4px; font-size: 14px; color: var(--navy); }
.gh-content pre { background: var(--navy); color: white; padding: 24px; border-radius: 10px; overflow-x: auto; margin: 24px 0; }
.gh-content hr { border: none; border-top: 1.5px solid var(--border); margin: 40px 0; }
.gh-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.gh-content th { background: var(--navy); color: white; padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 600; }
.gh-content td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 15px; }
.gh-content tr:nth-child(even) td { background: var(--off-white); }

/* POST CTA */
.post-full-footer { max-width: 760px; margin: 60px auto 0; }
.post-cta { background: var(--navy); border-radius: 16px; padding: 40px; text-align: center; }
.post-cta h3 { font-family: 'Libre Baskerville', serif; font-size: 22px; color: white; font-weight: 700; margin-bottom: 12px; }
.post-cta p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 24px; font-weight: 300; }
.post-cta-btn { background: white; color: var(--navy); padding: 13px 28px; border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.post-cta-btn:hover { background: var(--blue-pale); color: var(--blue); }

/* PAGINATION */
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 48px 0; }
.pagination a { color: var(--blue-mid); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 18px; border: 1.5px solid var(--border); border-radius: 8px; transition: all 0.2s; }
.pagination a:hover { background: var(--navy); color: white; border-color: var(--navy); }
.pagination .page-number { font-size: 14px; color: var(--text-muted); }

/* FOOTER */
.site-footer { background: var(--navy); padding: 60px 5% 28px; margin-top: 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { height: 38px; display: block; margin-bottom: 16px; background: white; border-radius: 6px; padding: 4px 10px; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 13px; line-height: 1.75; max-width: 240px; }
.footer-col h4 { color: white; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; color: rgba(255,255,255,0.55); text-decoration: none; font-size: 13px; margin-bottom: 11px; transition: color 0.2s; }
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 9px; border: 1.5px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: all 0.2s; }
.footer-social a:hover { border-color: var(--blue-light); color: var(--blue-light); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .post-full-meta { flex-direction: column; }
}

/* Ghost Koenig Editor — required classes */
.kg-width-wide { margin-left: calc(25% - 25vw); margin-right: calc(25% - 25vw); max-width: 100vw; }
.kg-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.kg-image-card { margin: 28px 0; }
.kg-image-card img { border-radius: 10px; }
.kg-gallery-container { display: flex; flex-direction: column; margin: 28px 0; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.kg-bookmark-card { border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; margin: 28px 0; }
.kg-bookmark-container { display: flex; text-decoration: none; color: inherit; }
.kg-bookmark-content { padding: 20px; flex: 1; }
.kg-bookmark-title { font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 15px; }
.kg-bookmark-description { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.kg-bookmark-icon { width: 20px; height: 20px; }
.kg-bookmark-publisher { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kg-callout-card { display: flex; gap: 16px; padding: 20px 24px; border-radius: 10px; background: var(--blue-pale2); border: 1.5px solid var(--blue-pale); margin: 28px 0; }
.kg-callout-emoji { font-size: 24px; flex-shrink: 0; }
.kg-callout-text { font-size: 16px; color: var(--navy); line-height: 1.65; }
.kg-toggle-card { border: 1.5px solid var(--border); border-radius: 10px; margin: 28px 0; overflow: hidden; }
.kg-toggle-heading-text { padding: 16px 20px; font-weight: 700; color: var(--navy); cursor: pointer; }
.kg-toggle-content { padding: 16px 20px; border-top: 1px solid var(--border); font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.kg-video-card { margin: 28px 0; border-radius: 10px; overflow: hidden; }
.kg-video-card video { width: 100%; display: block; }
.kg-audio-card { background: var(--off-white); border: 1.5px solid var(--border); border-radius: 10px; padding: 20px; margin: 28px 0; }
.kg-product-card { border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; margin: 28px 0; }
.kg-product-card-container { padding: 24px; }
.kg-product-card-title { font-family: 'Libre Baskerville', serif; font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.kg-product-card-description { font-size: 15px; color: var(--text-muted); line-height: 1.65; }
.kg-product-card-button { display: inline-block; background: var(--navy); color: white; padding: 10px 22px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 14px; margin-top: 16px; }
.kg-header-card { padding: 60px 40px; text-align: center; margin: 28px 0; border-radius: 14px; background: var(--navy); }
.kg-header-card-header { font-family: 'Libre Baskerville', serif; font-size: clamp(24px,4vw,40px); font-weight: 700; color: white; margin-bottom: 12px; }
.kg-header-card-subheader { font-size: 17px; color: rgba(255,255,255,0.65); margin-bottom: 24px; font-weight: 300; }
.kg-header-card-button { background: white; color: var(--navy); padding: 12px 28px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 15px; display: inline-block; }
.kg-button-card { text-align: center; margin: 28px 0; }
.kg-button-card .kg-btn { background: var(--navy); color: white; padding: 12px 28px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 15px; display: inline-block; transition: background 0.2s; }
.kg-button-card .kg-btn:hover { background: var(--blue-mid); }
.kg-divider-card hr { border: none; border-top: 2px solid var(--border); margin: 40px 0; }
.kg-file-card { border: 1.5px solid var(--border); border-radius: 10px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; margin: 28px 0; text-decoration: none; color: inherit; }
.kg-file-card:hover { border-color: var(--blue-mid); }
.kg-file-card-contents { flex: 1; }
.kg-file-card-title { font-weight: 700; color: var(--navy); font-size: 15px; }
.kg-file-card-caption { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.kg-file-card-metadata { font-size: 12px; color: var(--text-light); margin-top: 3px; }

/* Ghost navigation helper output */
.site-nav .nav-links ul { list-style: none; display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; }
.site-nav .nav-links ul li { margin: 0; padding: 0; }
.site-nav .nav-links ul li a { color: #1e3a5f; text-decoration: none; font-size: 13px; font-weight: 500; }
.site-nav .nav-links ul li a:hover { color: #1255a4; }
