/*
Theme Name: Rhunt 2026
Theme URI: https://blog.rhunt.com.br/
Author: Equipe Rhunt
Author URI: https://rhunt.com.br/
Description: Tema editorial executivo para o blog da Rhunt. Visual predominantemente claro, aéreo e profissional para RH, DP e Operações, com o banner do Kit Transição 5x2 como bloco de destaque escuro.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: rhunt-2026
*/

:root {
  --bg: #F8FAFC;
  --bg-elev: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-soft: #F1F5F9;
  --glass: #FFFFFF;
  --glass-hover: #F8FAFC;
  --border: #E2E8F0;
  --border-strong: rgba(13, 148, 136, 0.38);

  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-dim: #64748b;

  --teal: #2dd4bf;
  --teal-solid: #0d9488;
  --teal-text: #0d9488;
  --teal-deep: #0f766e;
  --sky: #38bdf8;
  --sky-text: #0284c7;
  --amber: #fbbf24;
  --amber-text: #b45309;
  --violet: #a78bfa;
  --violet-text: #6d28d9;

  /* Editorial reading surface */
  --paper: #ffffff;
  --paper-soft: #f8fafc;
  --paper-border: #e2e8f0;
  --paper-ink: #0f172a;
  --paper-body: #334155;
  --paper-muted: #64748b;
  --paper-accent: #0f766e;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(13, 148, 136, 0.06);
  --shadow-teal: 0 10px 28px rgba(13, 148, 136, 0.22);

  --max-w: 1160px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse 70% 42% at 50% -8%, rgba(45, 212, 191, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 30% at 92% 8%, rgba(56, 189, 248, 0.10), transparent 70%),
    linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   TOP URGENCY STRIP (thin navy) & READING PROGRESS
   ========================================================= */
.top-strip {
  position: relative;
  z-index: 70;
  background: #0B1F3A;
  border-bottom: 1px solid rgba(45, 212, 191, 0.22);
  padding: 8px 16px;
  font-size: 0.78rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-strip strong {
  color: #ffffff;
  font-weight: 600;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: rhuntPulse 2s infinite;
  flex-shrink: 0;
  display: inline-block;
}

@keyframes rhuntPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.strip-timer {
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  font-weight: 700;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.32);
  padding: 2px 9px;
  border-radius: 999px;
}

.strip-link {
  color: var(--teal);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.strip-link:hover {
  color: #5eead4;
  text-decoration: underline;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  z-index: 120;
  background: linear-gradient(90deg, #0d9488, #38bdf8);
  box-shadow: 0 0 12px rgba(13, 148, 136, 0.5);
  transition: width 0.08s linear;
}

/* =========================================================
   SITE HEADER / NAVBAR
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 65;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #0b1f3a;
  border: 1px solid rgba(45, 212, 191, 0.35);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.18);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-name {
  color: var(--ink);
}

.brand-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-dim);
  border-left: 1px solid var(--border);
  padding-left: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.nav-links a {
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links .current-menu-item > a {
  color: var(--teal-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  transition: all 0.16s ease;
}

.icon-btn:hover {
  color: var(--teal-deep);
  border-color: var(--border-strong);
  background: #f0fdfa;
}

.nav-cta {
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 9px;
  background: #f0fdfa;
  border: 1px solid rgba(13, 148, 136, 0.32);
  color: var(--teal-deep);
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-cta:hover {
  background: var(--teal-solid);
  border-color: var(--teal-solid);
  color: #ffffff;
}

.mobile-toggle {
  display: none;
}

/* Search Bar Overlay */
.search-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 16px 0;
}

.search-drawer.is-open {
  display: block;
}

.search-form-inline {
  display: flex;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 16px;
  color: var(--ink);
  font-size: 0.94rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
  border-color: var(--teal-solid);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.search-input::placeholder {
  color: var(--ink-dim);
}

/* Mobile Nav Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.98);
  backdrop-filter: blur(18px);
  padding: 24px;
  flex-direction: column;
  gap: 24px;
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.mobile-nav-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   SHARED BUTTONS & BADGES
   ========================================================= */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f0fdfa;
  border: 1px solid rgba(13, 148, 136, 0.22);
  color: var(--teal-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill-badge.amber {
  background: #fffbeb;
  border-color: rgba(180, 83, 9, 0.22);
  color: var(--amber-text);
}

.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 11px;
  border: none;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: var(--shadow-teal), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(13, 148, 136, 0.32);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-sm {
  padding: 9px 15px;
  font-size: 0.82rem;
  border-radius: 9px;
}

/* =========================================================
   HERO SECTION (HOME)
   ========================================================= */
.blog-hero {
  padding: 52px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 16px 0 14px;
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: unset;
}

.hero-title span {
  background: linear-gradient(90deg, #0d9488, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-metrics strong {
  color: var(--ink-soft);
  font-weight: 600;
}

/* Featured Spotlight Card */
.featured-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.featured-panel:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.10), 0 0 0 1px rgba(13, 148, 136, 0.12);
}

.featured-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  padding: 1px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.45), transparent 55%, rgba(56, 189, 248, 0.28));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.featured-media {
  position: relative;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.featured-body {
  padding: 22px 24px 24px;
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.74rem;
  color: var(--ink-dim);
  flex-wrap: wrap;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f0fdfa;
  color: var(--teal-deep);
  border: 1px solid rgba(13, 148, 136, 0.2);
  white-space: nowrap;
}

.cat-chip.sky {
  background: #f0f9ff;
  color: var(--sky-text);
  border-color: rgba(2, 132, 199, 0.22);
}

.cat-chip.amber {
  background: #fffbeb;
  color: var(--amber-text);
  border-color: rgba(180, 83, 9, 0.22);
}

.cat-chip.violet {
  background: #f5f3ff;
  color: var(--violet-text);
  border-color: rgba(109, 40, 217, 0.2);
}

.featured-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}

.featured-excerpt {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-text);
}

/* =========================================================
   CATEGORY FILTER STRIP
   ========================================================= */
.filter-bar {
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.filter-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: #ffffff;
  border: 1px solid var(--border);
  transition: all 0.16s ease;
}

.filter-pill:hover {
  color: var(--ink);
  border-color: #94a3b8;
}

.filter-pill.is-active {
  background: #f0fdfa;
  border-color: rgba(13, 148, 136, 0.4);
  color: var(--teal-deep);
}

/* =========================================================
   POSTS GRID & CARDS (LOW TEXT DENSITY)
   ========================================================= */
.section-block {
  padding: 52px 0;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.sec-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-text);
  margin-bottom: 6px;
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.sec-sub {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.post-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #f1f5f9;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.03);
}

/* Light / pastel tech covers */
.svg-cover {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(45, 212, 191, 0.22), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(56, 189, 248, 0.14), transparent 55%),
    linear-gradient(135deg, #F0FDFA 0%, #ECFEFF 100%);
}

.svg-cover.tone-sky {
  background:
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.26), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(45, 212, 191, 0.12), transparent 55%),
    linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
}

.svg-cover.tone-amber {
  background:
    radial-gradient(circle at 85% 20%, rgba(251, 191, 36, 0.22), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(45, 212, 191, 0.10), transparent 55%),
    linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
}

.svg-cover.tone-violet {
  background:
    radial-gradient(circle at 85% 20%, rgba(167, 139, 250, 0.22), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(56, 189, 248, 0.12), transparent 55%),
    linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
}

.svg-cover-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.svg-cover-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cover-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}

.cover-art {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.cover-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  max-width: 75%;
}

.post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--ink-dim);
  flex-wrap: wrap;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-excerpt {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.post-card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.read-more {
  color: var(--teal-text);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* =========================================================
   KIT 5X2 BANNER — DARK HIGHLIGHT ISLAND
   ========================================================= */
.kit-banner {
  --ink: #f8fafc;
  --ink-soft: #94a3b8;
  --ink-dim: #64748b;
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.035);
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(17, 26, 46, 0.98) 0%, rgba(9, 14, 28, 1) 100%);
  border: 1px solid rgba(45, 212, 191, 0.38);
  border-radius: 20px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 0 64px rgba(20, 184, 166, 0.12);
  position: relative;
  overflow: hidden;
}

.kit-banner .sec-title {
  color: #ffffff;
}

.kit-banner .sec-sub,
.kit-banner .sec-kicker {
  color: #94a3b8;
}

.kit-banner .sec-kicker {
  color: #2dd4bf;
}

.kit-banner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.deliver-chip {
  font-size: 0.76rem;
  font-weight: 600;
  color: #ccfbf1;
  background: rgba(45, 212, 191, 0.09);
  border: 1px solid rgba(45, 212, 191, 0.24);
  padding: 5px 12px;
  border-radius: 999px;
}

.kit-price-card {
  background: rgba(5, 8, 17, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.kit-price-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin: 6px 0 4px;
  color: #ffffff;
}

.kit-price-val small {
  font-size: 1rem;
  color: #2dd4bf;
  font-weight: 700;
}

.kit-banner .btn-glow,
.in-article-cta:not(.in-article-cta--light) .btn-glow {
  background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
  color: #042f2e;
  box-shadow: 0 0 28px rgba(45, 212, 191, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.kit-banner .btn-glow:hover,
.in-article-cta:not(.in-article-cta--light) .btn-glow:hover {
  box-shadow: 0 0 40px rgba(45, 212, 191, 0.44);
}

.kit-banner .btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
}

.kit-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.kit-banner .pill-badge.amber {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fbbf24;
}

/* Checklist CTA — light, airy companion to the dark kit island */
.checklist-cta-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
  background-image: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(45, 212, 191, 0.10), transparent 70%);
}

.checklist-cta-box .cta-copy {
  max-width: 56ch;
}

.checklist-mini-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.mini-stat {
  background: #f0fdfa;
  border: 1px solid rgba(13, 148, 136, 0.16);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.mini-stat strong {
  color: var(--teal-deep);
  font-weight: 700;
  margin-right: 4px;
}

/* =========================================================
   SINGLE ARTICLE & PAGE
   ========================================================= */
.article-hero {
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-dim);
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: var(--teal-text);
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 24ch;
  margin-bottom: 18px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.author-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2dd4bf, #0f766e);
  color: #042f2e;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.78rem;
}

.article-stage {
  background: #F1F5F9;
  color: var(--paper-ink);
  padding: 44px 0 64px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.article-sheet {
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-radius: 18px;
  padding: 40px 44px;
  box-shadow: var(--shadow-md);
}

.article-featured-img {
  margin: -40px -44px 32px;
  border-bottom: 1px solid var(--paper-border);
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  max-height: 400px;
}

.article-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* High-readability prose */
.article-prose {
  font-size: 1.0625rem;
  line-height: 1.76;
  color: var(--paper-body);
  max-width: 68ch;
}

.article-prose > * + * {
  margin-top: 1.15em;
}

.article-prose h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--paper-ink);
  margin-top: 2em;
  margin-bottom: 0.55em;
  padding-top: 0.6em;
  border-top: 1px solid #e2e8f0;
  scroll-margin-top: 90px;
}

.article-prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-prose h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--paper-ink);
  margin-top: 1.6em;
  margin-bottom: 0.45em;
  scroll-margin-top: 90px;
}

.article-prose h4 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--paper-ink);
  margin-top: 1.3em;
}

.article-prose a {
  color: var(--paper-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(15, 118, 110, 0.35);
  text-underline-offset: 3px;
}

.article-prose a:hover {
  color: #0d9488;
  text-decoration-color: #0d9488;
}

.article-prose strong,
.article-prose b {
  color: var(--paper-ink);
  font-weight: 700;
}

.article-prose ul,
.article-prose ol {
  padding-left: 1.4em;
}

.article-prose li {
  margin-top: 0.45em;
}

.article-prose li[style*="list-style-type: none"] > ul {
  padding-left: 0;
  margin-top: 0;
}

.article-prose li::marker {
  color: #0d9488;
  font-weight: 700;
}

.article-prose blockquote {
  background: #f8fafc;
  border-left: 4px solid #14b8a6;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  color: #1e293b;
  font-weight: 500;
  margin: 1.5em 0;
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.6em 0;
  border: 1px solid var(--paper-border);
  border-radius: 10px;
  overflow: hidden;
}

.article-prose th {
  background: #0f172a;
  color: #f8fafc;
  text-align: left;
  padding: 11px 14px;
  font-weight: 700;
}

.article-prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--paper-border);
}

.article-prose tr:nth-child(even) td {
  background: #f8fafc;
}

.article-prose pre,
.article-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

.article-prose code {
  background: #f1f5f9;
  color: #0f766e;
  padding: 2px 6px;
  border-radius: 5px;
}

.article-prose pre {
  background: #0b1220;
  color: #e2e8f0;
  padding: 16px 18px;
  border-radius: 12px;
  overflow-x: auto;
}

.article-prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Dark in-article Kit CTA (highlight island) */
.in-article-cta {
  margin: 2.2em 0;
  background: linear-gradient(135deg, #070d1c 0%, #0d182f 100%);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 16px;
  padding: 24px 26px;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.in-article-cta .cta-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2dd4bf;
  margin-bottom: 4px;
  display: block;
}

.in-article-cta h4 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
}

.in-article-cta p {
  font-size: 0.86rem;
  color: #94a3b8;
  margin: 0;
  max-width: 44ch;
}

.in-article-cta a.btn-glow {
  text-decoration: none;
}

.in-article-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  text-decoration: none;
}

.in-article-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Mid-article checklist CTA — light variant */
.in-article-cta--light {
  background: linear-gradient(135deg, #F0FDFA 0%, #ECFEFF 100%);
  border: 1px solid rgba(13, 148, 136, 0.22);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.in-article-cta--light .cta-kicker {
  color: var(--teal-deep);
}

.in-article-cta--light h4 {
  color: var(--ink);
}

.in-article-cta--light p {
  color: var(--ink-soft);
}

.in-article-cta--light .btn-glow {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: var(--shadow-teal);
}

/* Article Footer: Tags, Share, Institutional Author, Prev/Next */
.article-end-meta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--paper-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 999px;
}

.tag-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.copy-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 7px 13px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.copy-link-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.author-box {
  margin-top: 24px;
  background: #f8fafc;
  border: 1px solid var(--paper-border);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.author-box-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #0b1f3a;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.author-box h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--paper-ink);
  margin-bottom: 4px;
}

.author-box p {
  font-size: 0.86rem;
  color: var(--paper-muted);
  line-height: 1.5;
}

.post-nav-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.post-nav-card {
  display: block;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--paper-border);
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.post-nav-card:hover {
  border-color: #14b8a6;
}

.post-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--paper-muted);
  display: block;
  margin-bottom: 4px;
}

.post-nav-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--paper-ink);
  line-height: 1.3;
}

/* Sticky Sidebar — light */
.article-rail {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 18px;
}

.rail-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.rail-card.featured {
  border-color: rgba(13, 148, 136, 0.28);
  background-image: radial-gradient(ellipse 80% 80% at 100% 0%, rgba(45, 212, 191, 0.10), transparent 70%);
}

.rail-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 8px 0 8px;
  color: var(--ink);
}

.rail-card p {
  font-size: 0.83rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.5;
}

.rail-toc {
  background: #ffffff;
  border: 1px solid var(--paper-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.rail-toc-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper-muted);
  margin-bottom: 10px;
}

.rail-toc-list {
  list-style: none;
  display: grid;
  gap: 7px;
}

.rail-toc-list a {
  display: block;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.35;
  padding-left: 10px;
  border-left: 2px solid #e2e8f0;
  transition: all 0.15s ease;
}

.rail-toc-list a:hover {
  color: #0f766e;
  border-left-color: #14b8a6;
}

.rail-toc-list a.is-h3 {
  padding-left: 20px;
  font-size: 0.78rem;
}

/* Related Posts */
.related-section {
  background: var(--bg);
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

/* =========================================================
   ARCHIVE / SEARCH / 404 HEADERS & PAGINATION
   ========================================================= */
.archive-hero {
  padding: 46px 0 34px;
  border-bottom: 1px solid var(--border);
}

.archive-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 8px;
  color: var(--ink);
}

.archive-desc {
  font-size: 0.96rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

.pagination-wrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.nav-links-pag {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.16s ease;
}

.page-numbers:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.page-numbers.current {
  background: var(--teal-solid);
  border-color: var(--teal-solid);
  color: #ffffff;
  font-weight: 800;
}

.empty-state {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 48px 28px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.empty-state h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.empty-state p {
  color: var(--ink-soft);
  margin-bottom: 22px;
}

/* =========================================================
   FOOTER — soft light gray
   ========================================================= */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: #F1F5F9;
  padding: 48px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-brand-desc {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-top: 12px;
  max-width: 34ch;
  line-height: 1.55;
}

.footer-col h4 {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--teal-text);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--ink-dim);
}

.footer-disclaimer {
  max-width: 72ch;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.5;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-rail {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
  .rail-toc {
    grid-column: 1 / -1;
    display: none !important;
  }
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .kit-banner {
    grid-template-columns: 1fr;
  }
  .nav-links,
  .brand-tag,
  .nav-cta-desktop {
    display: none;
  }
  .mobile-toggle {
    display: grid;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }
  .top-strip {
    font-size: 0.72rem;
    gap: 6px;
    padding: 7px 12px;
  }
  .blog-hero {
    padding: 34px 0 36px;
  }
  .posts-grid,
  .article-rail,
  .post-nav-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-sheet {
    padding: 26px 20px;
    border-radius: 14px;
  }
  .article-featured-img {
    margin: -26px -20px 24px;
    border-radius: 14px 14px 0 0;
  }
  .kit-banner,
  .checklist-cta-box {
    padding: 24px 20px;
  }
  .hero-actions .btn-glow,
  .hero-actions .btn-ghost {
    width: 100%;
  }
}

@media (min-width: 641px) {
  .in-article-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}
