/* ============================================================
   SALCIDO — Ghost Theme Stylesheet
   Design System: Jose Salcido Personal Brand
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  --bg-deep:        #063C6B;
  --bg-ocean:       #114D8A;
  --bg-elevated:    #1A5A9E;
  --primary:        #1675A6;
  --primary-soft:   #6FA3C2;
  --accent-orange:  #F07A20;
  --accent-red:     #F02E2B;
  --accent-sand:    #F2B48C;
  --text-main:      #F2F1F0;
  --text-muted:     #CFD3D2;

  --border-subtle:  rgba(207,211,210,0.12);
  --border-default: rgba(207,211,210,0.22);
  --shadow-card:    0 4px 24px rgba(6,60,107,0.5);
  --shadow-deep:    0 8px 48px rgba(6,60,107,0.7);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-pill: 100px;

  --max-content: 1100px;
  --nav-height:  64px;
  --announcement-bar-height: 48px;
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
  min-height: 100vh;
}

/* Noise / ink-wash texture */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#main { position: relative; z-index: 1; }

img   { display: block; max-width: 100%; }
a     { color: var(--primary-soft); text-decoration: none; transition: color 160ms ease-out; }
a:hover { color: var(--text-main); }

::selection { background: rgba(22,117,166,0.4); color: var(--text-main); }
input::placeholder { color: rgba(207,211,210,0.28); }
input:focus { outline: none; }

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(22,117,166,0.45); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(22,117,166,0.7); }

/* ── LAYOUT HELPERS ───────────────────────────────────────── */
.gh-main-wrap          { padding-top: var(--nav-height); }
.gh-main-wrap--post    { padding-top: 0; }

body:has(#announcement-bar-root .gh-announcement-bar) .gh-main-wrap {
  padding-top: calc(var(--nav-height) + var(--announcement-bar-height));
}

body:has(#announcement-bar-root .gh-announcement-bar) .gh-main-wrap--post {
  padding-top: var(--announcement-bar-height);
}

.gh-container          { max-width: var(--max-content); margin: 0 auto; padding: 0 40px; }
.gh-container--article { max-width: 1080px; margin: 0 auto; padding: 0 40px; }

/* Decorative accent rule */
.rule-accent {
  display: block; width: 40px; height: 2px;
  background: var(--accent-orange); border: none; margin-bottom: 16px;
}

/* Section header */
.gh-section-header { padding: 88px 0 52px; }
.gh-section-eyebrow {
  font-size: 10px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-orange); margin-bottom: 12px;
}
.gh-section-title {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 700;
  color: var(--text-main); letter-spacing: -0.03em; line-height: 1.04;
}
.gh-section-subtitle {
  font-size: 16px; color: rgba(207,211,210,0.55);
  max-width: 480px; line-height: 1.6; margin-top: 14px;
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.gh-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(6,60,107,0.88);
  border-bottom: 1px solid rgba(207,211,210,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.gh-head::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242,241,240,0.1) 40%, transparent);
  pointer-events: none;
}
.gh-head-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-content); margin: 0 auto; padding: 0 40px;
}
.gh-head-brand {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: var(--text-main); letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.gh-head-brand:hover { color: var(--text-main); }
.gh-head-brand-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-orange); flex-shrink: 0;
}
.gh-head-nav ul { list-style: none; display: flex; gap: 2px; }
.gh-head-nav a {
  font-size: 13px; color: rgba(207,211,210,0.5);
  padding: 6px 14px; border-radius: 6px; display: block; transition: all 180ms;
}
.gh-head-nav a:hover            { color: var(--text-main); }
.gh-head-nav .nav-current > a  { color: var(--text-main); background: rgba(255,255,255,0.07); }
.gh-head-actions { display: flex; gap: 10px; align-items: center; }
.gh-head-search {
  width: 34px; height: 34px; border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle); background: none;
  color: rgba(207,211,210,0.6); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 150ms;
}
.gh-head-search:hover { border-color: var(--border-default); }
.gh-head-btn {
  background: var(--primary); color: var(--text-main) !important;
  padding: 8px 20px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500; flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(22,117,166,0.35); transition: opacity 180ms;
}
.gh-head-btn:hover { opacity: 0.82; }

/* ── ANNOUNCEMENT BAR ─────────────────────────────────────── */
#announcement-bar-root .gh-announcement-bar {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: var(--announcement-bar-height) !important;
  min-height: var(--announcement-bar-height) !important;
  padding: 0 48px !important;
  overflow: hidden !important;
  z-index: 110 !important;
  background: var(--bg-ocean) !important;
  color: var(--text-main) !important;
  border-bottom: 1px solid rgba(207,211,210,0.12) !important;
  box-shadow: 0 4px 18px rgba(6,60,107,0.28) !important;
}

#announcement-bar-root .gh-announcement-bar-content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: var(--announcement-bar-height) !important;
  max-width: var(--max-content) !important;
  margin: 0 auto !important;
  padding: 0 56px !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  text-align: center !important;
  color: var(--text-main) !important;
}

#announcement-bar-root .gh-announcement-bar-content a {
  color: var(--accent-sand) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
}

#announcement-bar-root .gh-announcement-bar-content a:hover {
  color: var(--text-main) !important;
}

#announcement-bar-root .gh-announcement-bar button,
#announcement-bar-root .gh-announcement-bar svg {
  color: var(--text-main) !important;
}

body:has(#announcement-bar-root .gh-announcement-bar) .gh-head {
  top: var(--announcement-bar-height);
}

/* ── TAG PILL ─────────────────────────────────────────────── */
.post-tag {
  display: inline-flex; align-items: center;
  padding: 4px 11px; border-radius: var(--radius-pill);
  background: rgba(240,122,32,0.11); border: 1px solid rgba(240,122,32,0.22);
  color: var(--accent-orange); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; transition: background 160ms; white-space: nowrap;
}
.post-tag:hover { background: rgba(240,122,32,0.2); color: var(--accent-orange); }

/* ── POST META ────────────────────────────────────────────── */
.post-meta {
  font-size: 11px; color: rgba(207,211,210,0.32);
  display: flex; gap: 8px; align-items: center;
  font-variant-numeric: tabular-nums;
}

/* ── HOME — HERO POST ─────────────────────────────────────── */
.gh-home-hero { margin-bottom: 28px; }

.post-hero {
  display: block; position: relative; border-radius: var(--radius-lg);
  overflow: hidden; background: #0a3a5c; text-decoration: none;
}
.post-hero-image { position: relative; overflow: hidden; height: 460px; }
.post-hero-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.4) brightness(0.62);
  transition: transform 420ms ease-out;
}
.post-hero:hover .post-hero-image img { transform: scale(1.03); }
.post-hero-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,60,107,0.97) 0%, rgba(6,60,107,0.5) 55%, rgba(6,60,107,0.1) 100%);
}
.post-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 44px;
  transition: transform 220ms ease-out;
}
.post-hero:hover .post-hero-content { transform: translateY(-4px); }
.post-hero-content .post-tag { margin-bottom: 16px; }
.post-hero-title {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 700; color: var(--text-main);
  line-height: 1.08; letter-spacing: -0.025em;
  margin-bottom: 14px; max-width: 680px;
}
.post-hero-excerpt {
  font-size: 15px; color: rgba(207,211,210,0.72);
  line-height: 1.65; max-width: 580px; margin-bottom: 18px;
}

/* ── POST GRID ────────────────────────────────────────────── */
.gh-post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.post-card {
  background: var(--bg-ocean); border: 1px solid var(--border-subtle);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 4px 16px rgba(6,60,107,0.3);
  transition: all 200ms ease-out;
}
.post-card:hover {
  border-color: var(--border-default);
  box-shadow: 0 12px 40px rgba(6,60,107,0.65);
  transform: translateY(-3px);
}
.post-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.post-card-image-wrap { overflow: hidden; height: 196px; }
.post-card-image {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.4) brightness(0.62);
  transition: transform 420ms ease-out;
}
.post-card:hover .post-card-image { transform: scale(1.04); }
.post-card-content {
  padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column;
}
.post-card-content .post-tag { margin-bottom: 12px; }
.post-card-title {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  color: var(--text-main); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 10px;
}
.post-card-excerpt {
  font-size: 13px; color: rgba(207,211,210,0.58);
  line-height: 1.65; flex: 1; margin-bottom: 18px;
}

/* ── POST LIST ITEM ───────────────────────────────────────── */
.post-list-item {
  display: flex; gap: 28px; align-items: flex-start;
  padding: 28px 0; border-bottom: 1px solid rgba(207,211,210,0.08);
  color: inherit; padding-left: 0;
  transition: padding-left 200ms ease-out;
}
.post-list-item:hover { padding-left: 14px; }
.post-list-content { flex: 1; min-width: 0; }
.post-list-content .post-tag { margin-bottom: 10px; }
.post-list-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  color: var(--text-main); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 8px;
  transition: color 160ms;
}
.post-list-item:hover .post-list-title { color: var(--primary-soft); }
.post-list-excerpt {
  font-size: 14px; color: rgba(207,211,210,0.58); line-height: 1.65; margin-bottom: 12px;
}
.post-list-thumbnail { width: 176px; height: 118px; flex-shrink: 0; overflow: hidden; border-radius: 6px; }
.post-list-thumbnail img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.4) brightness(0.62);
}

/* ── PAGINATION ───────────────────────────────────────────── */
.gh-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 48px 0;
}
.gh-pagination .older-posts,
.gh-pagination .newer-posts {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 14px; font-weight: 500; color: rgba(207,211,210,0.7);
  transition: all 160ms;
}
.gh-pagination .older-posts:hover,
.gh-pagination .newer-posts:hover { border-color: var(--border-default); color: var(--text-main); }
.gh-pagination .page-number { font-size: 13px; color: rgba(207,211,210,0.4); }

/* ── SINGLE POST ──────────────────────────────────────────── */
.gh-post-cover { overflow: hidden; height: 52vh; max-height: 500px; }
.gh-post-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.4) brightness(0.62); }

.gh-post-header { max-width: 720px; margin: 0 auto; padding: 44px 0 40px; }
.gh-post-breadcrumb {
  font-size: 12px; color: rgba(207,211,210,0.38);
  display: flex; gap: 8px; align-items: center; margin-bottom: 22px;
}
.gh-post-breadcrumb a { color: rgba(207,211,210,0.38); transition: color 140ms; }
.gh-post-breadcrumb a:hover { color: var(--text-main); }
.gh-post-meta-row { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.gh-post-readtime { font-size: 12px; color: rgba(207,211,210,0.38); }
.gh-post-title {
  font-family: var(--font-display); font-size: 54px; font-weight: 700;
  color: var(--text-main); letter-spacing: -0.03em; line-height: 1.04; margin-bottom: 24px;
}
.gh-post-author-row {
  display: flex; align-items: center; gap: 12px;
  padding-top: 22px; border-top: 1px solid rgba(207,211,210,0.1);
}
.gh-post-author-avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(207,211,210,0.15); flex-shrink: 0;
}
.gh-post-author-avatar-placeholder {
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--text-main);
  border: 1px solid rgba(207,211,210,0.15); flex-shrink: 0;
}
.gh-post-author-name { font-size: 14px; font-weight: 500; color: var(--text-main); }
.gh-post-author-date { font-size: 12px; color: rgba(207,211,210,0.38); }

/* Post body 3-col layout */
.gh-post-body-layout {
  display: grid; grid-template-columns: 200px 1fr 36px;
  gap: 48px; align-items: flex-start; padding-bottom: 80px;
}

/* ── READING PROGRESS ─────────────────────────────────────── */
.gh-reading-progress {
  position: fixed; top: var(--nav-height); left: 0; right: 0;
  height: 2px; z-index: 99; pointer-events: none;
}
body:has(#announcement-bar-root .gh-announcement-bar) .gh-reading-progress {
  top: calc(var(--nav-height) + var(--announcement-bar-height));
}
.gh-reading-progress-bar {
  height: 100%; background: var(--accent-orange); width: 0%;
  transition: width 80ms linear;
}

/* ── TABLE OF CONTENTS ────────────────────────────────────── */
.gh-toc { position: sticky; top: 96px; }
.gh-toc-label {
  display: block; font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(207,211,210,0.3); margin-bottom: 16px;
}
.gh-toc-list { list-style: none; }
.gh-toc-item { margin-bottom: 2px; }
.gh-toc-link {
  display: block; font-size: 13px; line-height: 1.5;
  padding: 7px 0 7px 14px;
  border-left: 2px solid rgba(207,211,210,0.12);
  color: rgba(207,211,210,0.4); text-decoration: none; transition: all 150ms;
}
.gh-toc-link:hover { color: rgba(207,211,210,0.75); }
.gh-toc-item.is-active .gh-toc-link {
  border-left-color: var(--accent-orange); color: var(--text-main);
}
.gh-toc-item.is-h3 .gh-toc-link { padding-left: 26px; font-size: 12px; }

/* ── SOCIAL SHARE ─────────────────────────────────────────── */
.gh-share { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.gh-share-label {
  font-size: 9px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(207,211,210,0.28); writing-mode: vertical-rl;
  transform: rotate(180deg); margin-bottom: 4px;
}
.gh-share-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(17,77,138,0.85); border: 1px solid rgba(207,211,210,0.14);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; color: rgba(207,211,210,0.7);
  transition: all 160ms;
}
.gh-share-btn:hover { border-color: rgba(207,211,210,0.35); transform: scale(1.08); color: var(--text-main); }
.gh-share-btn.is-copied { border-color: rgba(240,122,32,0.4); color: var(--accent-orange); }

/* ── ARTICLE CONTENT TYPOGRAPHY ──────────────────────────── */
.gh-content {
  font-family: var(--font-body); font-size: 17px; line-height: 1.8;
  color: rgba(207,211,210,0.8); max-width: 660px;
}
.gh-content > * + * { margin-top: 1.4em; }
.gh-content > h2 + *, .gh-content > h3 + * { margin-top: 0.6em; }

.gh-content p:first-of-type {
  font-size: 20px; font-weight: 300;
  color: rgba(242,241,240,0.88); line-height: 1.7;
}
.gh-content h2 {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  color: var(--text-main); letter-spacing: -0.02em;
  margin-top: 52px; scroll-margin-top: 100px;
}
.gh-content h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  color: var(--text-main); letter-spacing: -0.01em;
  margin-top: 40px; scroll-margin-top: 100px;
}
.gh-content h4 {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  color: var(--text-main); margin-top: 32px;
}
.gh-content a { color: var(--primary-soft); border-bottom: 1px solid rgba(111,163,194,0.3); }
.gh-content a:hover { color: var(--text-main); border-bottom-color: var(--text-main); }
.gh-content strong { color: var(--text-main); font-weight: 600; }
.gh-content em { font-style: italic; }
.gh-content blockquote {
  margin: 36px 0; padding: 22px 28px;
  border-left: 3px solid var(--accent-orange);
  background: rgba(17,77,138,0.38); border-radius: 0 8px 8px 0;
  font-style: italic; font-size: 18px; color: rgba(242,241,240,0.84); line-height: 1.65;
}
.gh-content blockquote p { font-size: 18px; line-height: 1.65; margin: 0; }
.gh-content ul, .gh-content ol { padding-left: 24px; }
.gh-content li { margin-bottom: 8px; color: rgba(207,211,210,0.8); }
.gh-content ul li::marker { color: var(--accent-orange); }
.gh-content hr { border: none; height: 1px; background: rgba(207,211,210,0.12); margin: 48px 0; }
.gh-content code {
  font-family: var(--font-mono); font-size: 14px;
  color: var(--accent-sand); background: rgba(242,180,140,0.1);
  padding: 2px 7px; border-radius: var(--radius-sm);
}
.gh-content pre {
  background: rgba(4,24,46,0.85); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 24px; overflow-x: auto; margin: 28px 0;
}
.gh-content pre code { background: none; padding: 0; color: rgba(207,211,210,0.85); font-size: 13px; }
.gh-content img { border-radius: var(--radius-md); width: 100%; margin: 8px 0; }
.gh-content figcaption { font-size: 12px; color: rgba(207,211,210,0.4); text-align: center; margin-top: 8px; }

/* Post tags footer */
.gh-post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(207,211,210,0.08); }

/* Related posts */
.gh-related { margin-top: 72px; }
.gh-related-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.gh-related-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  color: var(--text-main); letter-spacing: -0.01em;
}

/* ── GHOST KOENIG CARDS ───────────────────────────────────── */
.kg-image-card, .kg-video-card { margin: 32px 0; }
.kg-image-card img { border-radius: var(--radius-md); }
.kg-width-wide  { margin-left: -80px; margin-right: -80px; }
.kg-width-full  { margin-left: -40px; margin-right: -40px; }

.kg-gallery-card { margin: 32px 0; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 4px; }
.kg-gallery-row { display: flex; gap: 4px; }
.kg-gallery-image img { border-radius: 4px; width: 100%; height: 100%; object-fit: cover; }

.kg-bookmark-card {
  margin: 28px 0; border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle); overflow: hidden;
}
.kg-bookmark-container {
  display: flex; background: var(--bg-ocean); text-decoration: none;
  color: inherit; gap: 0; transition: background 150ms;
}
.kg-bookmark-container:hover { background: var(--bg-elevated); }
.kg-bookmark-content { flex: 1; padding: 20px 24px; }
.kg-bookmark-title { font-weight: 600; color: var(--text-main); margin-bottom: 6px; font-size: 15px; }
.kg-bookmark-description { font-size: 13px; color: rgba(207,211,210,0.6); margin-bottom: 12px; }
.kg-bookmark-metadata { font-size: 12px; color: rgba(207,211,210,0.4); display: flex; gap: 8px; align-items: center; }
.kg-bookmark-icon { width: 16px; height: 16px; border-radius: 2px; }
.kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; overflow: hidden; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.kg-callout-card {
  margin: 28px 0; padding: 20px 24px;
  background: rgba(17,77,138,0.5); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); display: flex; gap: 16px;
}
.kg-callout-emoji { font-size: 20px; flex-shrink: 0; line-height: 1.6; }
.kg-callout-text { font-size: 16px; color: rgba(242,241,240,0.85); line-height: 1.7; }

.kg-toggle-card {
  margin: 28px 0; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); overflow: hidden;
}
.kg-toggle-heading {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: var(--bg-ocean); cursor: pointer;
}
.kg-toggle-heading h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text-main); }
.kg-toggle-content { padding: 16px 20px; font-size: 15px; color: rgba(207,211,210,0.8); line-height: 1.7; }

/* ── NEWSLETTER ───────────────────────────────────────────── */
.gh-newsletter {
  background: var(--bg-ocean); border: 1px solid rgba(207,211,210,0.1);
  border-radius: var(--radius-lg); padding: 44px 52px;
  text-align: center; position: relative; overflow: hidden; margin-top: 64px;
}
.gh-newsletter::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,122,32,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.gh-newsletter-inner { position: relative; z-index: 1; }
.gh-newsletter-title {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  color: var(--text-main); letter-spacing: -0.025em; margin-bottom: 10px;
}
.gh-newsletter-desc {
  font-size: 15px; color: rgba(207,211,210,0.6); line-height: 1.65;
  max-width: 380px; margin: 0 auto 28px;
}
.gh-newsletter-form { display: flex; gap: 10px; max-width: 400px; margin: 0 auto; }
.gh-newsletter-form input {
  flex: 1; background: rgba(6,60,107,0.55); border: 1px solid rgba(207,211,210,0.18);
  border-radius: var(--radius-md); padding: 12px 16px;
  color: var(--text-main); font-size: 14px; font-family: inherit;
  transition: border-color 160ms;
}
.gh-newsletter-form input:focus { border-color: rgba(22,117,166,0.6); }
.gh-newsletter-form button {
  background: var(--primary); color: var(--text-main); padding: 12px 22px;
  border-radius: var(--radius-md); font-weight: 500; font-size: 14px;
  border: none; cursor: pointer; font-family: inherit;
  box-shadow: 0 2px 12px rgba(22,117,166,0.4); white-space: nowrap;
  transition: opacity 180ms;
}
.gh-newsletter-form button:hover { opacity: 0.84; }
.gh-newsletter-success { display: none; font-size: 14px; color: var(--accent-orange); font-weight: 500; margin-top: 12px; }
.gh-newsletter-error   { display: none; font-size: 14px; color: var(--accent-red); margin-top: 12px; }
.gh-newsletter-form.success .gh-newsletter-success { display: block; }
.gh-newsletter-form.error   .gh-newsletter-error   { display: block; }
.gh-newsletter-form.success .gh-newsletter-form-fields { display: none; }

/* ── AUTHOR PAGE ──────────────────────────────────────────── */
.gh-author-header {
  background: linear-gradient(to bottom, #114D8A 0%, #063C6B 100%);
  border-bottom: 1px solid rgba(207,211,210,0.09);
  padding: 72px 40px 64px;
}
.gh-author-header-inner { max-width: 760px; margin: 0 auto; display: flex; gap: 48px; align-items: flex-start; }
.gh-author-avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(207,211,210,0.14);
  box-shadow: 0 8px 32px rgba(6,60,107,0.6); flex-shrink: 0;
}
.gh-author-avatar-placeholder {
  width: 96px; height: 96px; border-radius: 50%; background: var(--primary); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--text-main);
  border: 2px solid rgba(207,211,210,0.14);
}
.gh-author-eyebrow {
  font-size: 10px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-orange); margin-bottom: 10px;
}
.gh-author-name {
  font-family: var(--font-display); font-size: 42px; font-weight: 700;
  color: var(--text-main); letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 14px;
}
.gh-author-bio { font-size: 16px; color: rgba(207,211,210,0.62); line-height: 1.65; margin-bottom: 20px; max-width: 520px; }
.gh-author-meta { display: flex; gap: 20px; font-size: 13px; color: rgba(207,211,210,0.4); align-items: center; }
.gh-author-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(207,211,210,0.25); }

/* ── TAG PAGE ─────────────────────────────────────────────── */
.gh-tag-header {
  background: linear-gradient(to bottom, #114D8A 0%, #063C6B 100%);
  border-bottom: 1px solid rgba(207,211,210,0.09);
  padding: 72px 40px 56px;
}
.gh-tag-header-inner { max-width: var(--max-content); margin: 0 auto; }
.gh-tag-eyebrow {
  font-size: 10px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(207,211,210,0.35); margin-bottom: 12px;
}
.gh-tag-name {
  font-family: var(--font-display); font-size: 48px; font-weight: 700;
  color: var(--text-main); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 10px;
}
.gh-tag-count { font-size: 14px; color: rgba(207,211,210,0.38); }

.gh-tag-nav { border-bottom: 1px solid rgba(207,211,210,0.08); padding: 0 40px; }
.gh-tag-nav-inner {
  max-width: var(--max-content); margin: 0 auto;
  display: flex; gap: 8px; padding: 18px 0; overflow-x: auto; align-items: center;
}
.gh-tag-nav-label { font-size: 11px; color: rgba(207,211,210,0.3); margin-right: 4px; white-space: nowrap; flex-shrink: 0; }
.gh-tag-pill {
  padding: 5px 13px; border-radius: var(--radius-pill); background: none;
  border: 1px solid rgba(207,211,210,0.12); color: rgba(207,211,210,0.45);
  font-size: 12px; white-space: nowrap; flex-shrink: 0; text-decoration: none; transition: all 150ms;
}
.gh-tag-pill:hover { border-color: rgba(240,122,32,0.4); color: var(--accent-orange); }

/* ── ERROR PAGE ───────────────────────────────────────────── */
.gh-error {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center; padding: 120px 40px;
}
.gh-error-code {
  font-family: var(--font-display); font-size: 160px; font-weight: 700;
  color: rgba(207,211,210,0.05); line-height: 1; user-select: none; margin-bottom: -80px;
}
.gh-error-content { position: relative; z-index: 1; }
.gh-error-title {
  font-family: var(--font-display); font-size: 38px; font-weight: 700;
  color: var(--text-main); letter-spacing: -0.025em; margin-bottom: 14px;
}
.gh-error-desc { font-size: 16px; color: rgba(207,211,210,0.5); line-height: 1.65; margin-bottom: 36px; max-width: 380px; }
.gh-error-content .rule-accent { margin: 0 auto 20px; }

/* ── BUTTON ───────────────────────────────────────────────── */
.gh-btn {
  display: inline-block; background: var(--primary); color: var(--text-main) !important;
  padding: 13px 30px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500;
  box-shadow: 0 2px 12px rgba(22,117,166,0.4); transition: opacity 180ms;
}
.gh-btn:hover { opacity: 0.82; }

/* ── FOOTER ───────────────────────────────────────────────── */
.gh-foot {
  border-top: 1px solid rgba(207,211,210,0.08);
  padding: 48px 40px; margin-top: 80px; position: relative; z-index: 1;
}
.gh-foot-inner {
  max-width: var(--max-content); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.gh-foot-brand {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  color: var(--text-main); display: flex; align-items: center; gap: 10px;
}
.gh-foot-brand:hover { color: var(--text-main); }
.gh-foot-brand-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-orange); }
.gh-foot-nav ul { list-style: none; display: flex; gap: 28px; }
.gh-foot-nav a { font-size: 13px; color: rgba(207,211,210,0.35); transition: color 150ms; }
.gh-foot-nav a:hover { color: var(--text-main); }
.gh-foot-copy { font-size: 12px; color: rgba(207,211,210,0.25); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .gh-post-grid { grid-template-columns: repeat(2, 1fr); }
  .gh-share { display: none; }
  .gh-post-body-layout { grid-template-columns: 180px 1fr; }
}
@media (max-width: 900px) {
  .gh-toc { display: none; }
  .gh-post-body-layout { grid-template-columns: 1fr; }
  .post-hero-title { font-size: 28px; }
  .gh-post-title { font-size: 38px; }
  .gh-section-title { font-size: 38px; }
  .kg-width-wide, .kg-width-full { margin-left: 0; margin-right: 0; }
}
@media (max-width: 700px) {
  :root { --announcement-bar-height: 64px; }
  #announcement-bar-root .gh-announcement-bar {
    padding: 0 40px 0 16px !important;
  }
  #announcement-bar-root .gh-announcement-bar-content {
    padding: 0 8px !important;
    font-size: 12px !important;
  }
  .gh-head-inner { padding: 0 20px; }
  .gh-head-nav { display: none; }
  .gh-container, .gh-container--article { padding: 0 20px; }
  .gh-post-grid { grid-template-columns: 1fr; }
  .gh-section-title { font-size: 30px; }
  .gh-section-header { padding: 60px 0 36px; }
  .post-hero-content { padding: 24px; }
  .post-hero-title { font-size: 22px; }
  .post-hero-image { height: 320px; }
  .gh-post-title { font-size: 28px; }
  .gh-newsletter { padding: 32px 24px; }
  .gh-newsletter-form { flex-direction: column; }
  .post-list-thumbnail { display: none; }
  .gh-author-header-inner { flex-direction: column; gap: 24px; }
  .gh-author-name { font-size: 30px; }
  .gh-tag-name { font-size: 32px; }
  .gh-foot-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .gh-author-header, .gh-tag-header { padding: 48px 20px 40px; }
  .gh-error-code { font-size: 100px; }
}
