/* ============================================================
   RIVISIO GHOST THEME — screen.css
   ============================================================ */

@font-face {
  font-family: 'Anxler';
  src: url('../fonts/Anxler.woff2') format('woff2'),
       url('../fonts/Anxler.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --clear: #FFFFFF;
  --soft-view: #F9F9FA;
  --perspective: #4670B6;
  --focus: #263D92;
  --insight: #1A2038;
  --signal: #F6871F;
  --signal-hover: #e57a10;
  --signal-light: rgba(246,135,31,0.10);
  --muted: #5a6072;
  --line: rgba(26,32,56,0.10);
  --display: 'Quicksand', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --anxler-font: 'Anxler', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--insight);
  background: var(--clear);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--anxler-font); font-weight: 400; line-height: 1.15; color: var(--insight); }
h4 { font-family: var(--display); font-weight: 300; line-height: 1.15; }
a { color: var(--focus); }

/* ── LAYOUT ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.section-label {
  display: inline-block;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 14px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 9px;
  font-family: var(--anxler-font);
  font-weight: 400;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-hover); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(246,135,31,0.34); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.55); }
.btn-outline:hover { background: #fff; color: var(--insight); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--focus); border: 2px solid var(--perspective); }
.btn-ghost:hover { background: var(--focus); color: #fff; border-color: var(--focus); }

/* ── NAV (exact match to rivisio.com) ── */
nav.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(26,32,56,0.96);
  backdrop-filter: blur(12px);
  padding: 14px 0;
}
nav.site .container { display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 34px; width: auto; display: block; }
nav.site ul { list-style: none; display: flex; gap: 30px; align-items: center; }
nav.site ul li a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}
nav.site ul li a:hover,
nav.site ul li a.active { color: var(--signal); }
nav.site .btn { padding: 9px 22px; font-size: 0.9rem; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: 0.3s; border-radius: 2px; }

/* ── BLOG HERO — matches rivisio.com .page-header ── */
.blog-hero {
  background: linear-gradient(135deg, var(--insight) 0%, var(--focus) 100%);
  color: #fff;
  text-align: center;
  padding: 120px 0 64px;
}
.blog-hero .container { position: relative; z-index: 2; }
.blog-hero .section-label { margin-bottom: 12px; }
.blog-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; margin-bottom: 16px; }
.blog-hero p { color: rgba(255,255,255,0.78); font-size: 1.1rem; max-width: 580px; margin: 0 auto; }

/* ── POST FEED ── */
.post-feed { padding: 60px 0; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

/* ── POST CARD ── */
.post-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all 0.28s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(26,32,56,0.10); }
.post-card.featured { border-color: var(--signal); }
.post-card-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-card-no-image {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--insight), var(--focus));
  display: flex; align-items: center; justify-content: center;
}
.post-card-no-image span { color: rgba(255,255,255,0.25); font-family: var(--anxler-font); font-size: 1.8rem; letter-spacing: 4px; }
.post-card-content { padding: 24px; }
.post-card-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--signal);
  margin-bottom: 10px;
}
.post-card-content h2 { font-size: 1.2rem; margin-bottom: 10px; }
.post-card-content h2 a { color: var(--insight); text-decoration: none; }
.post-card-content h2 a:hover { color: var(--focus); }
.post-card-excerpt { font-size: 0.93rem; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.post-card-meta { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); flex-wrap: wrap; }
.author-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.author-avatar-placeholder { width: 24px; height: 24px; border-radius: 50%; background: var(--focus); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.post-card-meta .sep { color: var(--line); }
time { color: var(--muted); }

/* ── POST HEADER ── */
.post-header {
  background: linear-gradient(135deg, var(--insight) 0%, var(--focus) 100%);
  padding: 120px 0 56px;
  text-align: center;
}
.post-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--signal);
  margin-bottom: 14px;
}
.post-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; margin-bottom: 20px; max-width: 820px; margin-left: auto; margin-right: auto; }
.post-meta { display: flex; align-items: center; justify-content: center; gap: 10px; color: rgba(255,255,255,0.7); font-size: 0.88rem; flex-wrap: wrap; }
.post-meta .author-avatar { border: 2px solid rgba(255,255,255,0.3); }
.post-meta .sep { opacity: 0.5; }
.post-meta time, .post-meta span { color: rgba(255,255,255,0.7); }

/* ── POST CONTENT ── */
.post-feature-image { max-height: 520px; overflow: hidden; }
.post-feature-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-body { padding: 56px 0; }
.post-content { max-width: 740px; margin: 0 auto; padding: 0 24px; font-size: 1.05rem; line-height: 1.8; color: var(--insight); }
.post-content h2, .post-content h3, .post-content h4 { margin: 2em 0 0.75em; }
.post-content p { margin-bottom: 1.5em; }
.post-content a { color: var(--focus); }
.post-content a:hover { color: var(--signal); }
.post-content img { max-width: 100%; border-radius: 10px; margin: 1.5em 0; }
.post-content blockquote { border-left: 4px solid var(--signal); padding: 12px 24px; margin: 2em 0; background: var(--soft-view); border-radius: 0 8px 8px 0; }
.post-content blockquote p { margin-bottom: 0; color: var(--muted); font-style: italic; }
.post-content pre { background: var(--insight); color: #e2e8f0; border-radius: 10px; padding: 24px; overflow-x: auto; margin: 1.5em 0; font-size: 0.9rem; }
.post-content code { background: var(--soft-view); border-radius: 4px; padding: 2px 6px; font-size: 0.9em; }
.post-content pre code { background: none; padding: 0; }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1.5em; }
.post-content li { margin-bottom: 0.5em; }
.post-content hr { border: none; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* ── GHOST KOENIG CARD WIDTHS ── */
.post-content .kg-width-wide {
  margin-left: calc(50% - 50vw + 24px);
  margin-right: calc(50% - 50vw + 24px);
  width: auto;
  max-width: 1180px;
}
.post-content .kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}
.post-content .kg-image { max-width: 100%; }
.post-content .kg-image-card { margin: 1.5em 0; }
.post-content .kg-image-card img { border-radius: 8px; display: block; width: 100%; }

.author-box {
  display: flex; gap: 20px; align-items: flex-start;
  margin: 48px auto 0;
  padding: 28px; background: var(--soft-view); border-radius: 14px;
  max-width: 740px;
}
.author-box img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.author-box-placeholder { width: 56px; height: 56px; border-radius: 12px; background: var(--focus); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.author-box-info h4 { font-size: 1rem; margin-bottom: 6px; }
.author-box-info p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ── POST NAVIGATION ── */
.post-navigation { border-top: 1px solid var(--line); padding: 40px 0; }
.post-nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; gap: 24px; }
.post-nav-link { text-decoration: none; max-width: 420px; }
.post-nav-link.next { text-align: right; margin-left: auto; }
.nav-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--signal); margin-bottom: 6px; }
.nav-title { font-size: 0.95rem; color: var(--insight); font-weight: 600; }
.post-nav-link:hover .nav-title { color: var(--focus); }

/* ── TAXONOMY ── */
.taxonomy-hero { background: linear-gradient(135deg, var(--insight) 0%, var(--focus) 100%); padding: 120px 0 56px; text-align: center; }
.taxonomy-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; }
.taxonomy-hero p { color: rgba(255,255,255,0.75); margin-top: 12px; font-size: 1.05rem; }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; }
.pagination a { color: var(--focus); text-decoration: none; font-weight: 600; padding: 8px 18px; border: 2px solid var(--perspective); border-radius: 8px; transition: all 0.2s; }
.pagination a:hover { background: var(--focus); color: #fff; border-color: var(--focus); }
.pagination .page-number { color: var(--muted); font-size: 0.9rem; }

/* ── ERROR PAGE ── */
.error-page { text-align: center; padding: 120px 24px; }
.error-code { font-size: 6rem; font-family: var(--anxler-font); color: var(--signal); line-height: 1; margin-bottom: 16px; }
.error-page h1 { margin-bottom: 16px; }
.error-page p { color: var(--muted); margin-bottom: 32px; }

/* ── FOOTER (exact match to rivisio.com) ── */
footer.site { background: var(--insight); color: rgba(255,255,255,0.6); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 40px; }
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 290px; }
.footer-col h4 {
  color: #fff; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 14px; font-family: var(--body);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.9rem; transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--signal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--signal); }

/* ── RESPONSIVE ── */
@media (max-width: 920px) {
  nav.site ul { display: none; }
  nav.site ul.show {
    display: flex; flex-direction: column;
    position: absolute; top: 62px; left: 0; right: 0;
    