/* Kenix blog templates
   Colors and type match https://kenix.io/
   Display: Bricolage Grotesque
   Body: Plus Jakarta Sans
*/

:root {
  --ink: #1a1040;
  --muted: #6b679a;
  --faint: #9896b8;
  --purple: #5c53f6;
  --purple-deep: #4638e0;
  --mint: #70f8cd;
  --white: #ffffff;
  --soft: #f9f8ff;
  --line: rgba(92, 83, 246, 0.12);
  --line-strong: rgba(92, 83, 246, 0.22);
  --shadow: 0 4px 24px rgba(92, 83, 246, 0.07);
  --radius: 16px;
  --header-h: 64px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(92, 83, 246, 0.1);
}

.site-header .wrap {
  width: min(1280px, calc(100% - 48px));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.admin-bar .site-header { top: 32px; }

.logo img { height: 36px; width: auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { position: relative; }

.nav-link,
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-btn:hover,
.nav-item:hover > .nav-btn { background: rgba(92, 83, 246, 0.1); }

.nav-btn svg { transition: transform 0.2s ease; }
.nav-item:hover > .nav-btn,
.nav-item:focus-within > .nav-btn { color: var(--purple); }
.nav-item:hover > .nav-btn svg,
.nav-item:focus-within > .nav-btn svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 240px;
  padding-top: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: 0.16s ease;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.dropdown-panel {
  background: #fff;
  border: 1px solid rgba(92, 83, 246, 0.15);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(26, 16, 64, 0.08);
  padding: 8px;
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.dropdown a span {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.dropdown a:hover { background: rgba(92, 83, 246, 0.05); }

.nav-item.nav-item-mega { position: static; }

.dropdown-mega {
  left: 50%;
  width: min(980px, calc(100vw - 48px));
  min-width: 0;
  transform: translateX(-50%) translateY(6px);
}

.dropdown-solutions { width: min(760px, calc(100vw - 48px)); }

.nav-item-mega:hover .dropdown-mega,
.nav-item-mega:focus-within .dropdown-mega {
  transform: translateX(-50%);
}

.dropdown-more { left: 50%; transform: translateX(-50%) translateY(6px); min-width: 208px; }
.nav-item:hover .dropdown-more,
.nav-item:focus-within .dropdown-more { transform: translateX(-50%); }

.dropdown-more .dropdown-panel a {
  font-weight: 500;
  color: var(--ink);
}

.mega {
  display: grid;
  gap: 24px;
  background: #fff;
  border: 1px solid rgba(92, 83, 246, 0.15);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(92, 83, 246, 0.14), 0 2px 8px rgba(92, 83, 246, 0.06);
  padding: 24px;
}

.mega-platform { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mega-solutions { grid-template-columns: repeat(5, minmax(0, 1fr)); }

a.mega-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0;
  background: transparent;
  font-weight: 500;
}

a.mega-head:hover { background: transparent; opacity: 0.8; }

a.mega-head .mega-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border-radius: 6px;
  background: rgba(92, 83, 246, 0.1);
  color: var(--purple);
  flex: 0 0 24px;
  font-size: 0;
}

a.mega-head .mega-icon svg { width: 13px; height: 13px; display: block; }

a.mega-head .mega-head-text {
  display: block;
  min-width: 0;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

a.mega-head .mega-title {
  display: block;
  margin: 0;
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

a.mega-head .mega-tagline {
  display: block;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.25;
}

a.mega-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

a.mega-link:hover { background: rgba(92, 83, 246, 0.1); }

a.mega-link .mega-dot {
  display: block;
  width: 6px;
  height: 6px;
  margin: 0;
  border-radius: 50%;
  background: var(--purple);
  flex: 0 0 6px;
  font-size: 0;
}

a.mega-link .mega-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.mega-rule {
  height: 1px;
  margin-bottom: 12px;
  background: rgba(92, 83, 246, 0.1);
}

.mega-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
}

.nav-tag {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 10px;
  line-height: 1;
}

.nav-tag-free {
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(112, 248, 205, 0.4);
  background: rgba(112, 248, 205, 0.2);
  color: #059669;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-tag-dollar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(92, 83, 246, 0.12);
  color: var(--purple);
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

a.mega-link .nav-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0 auto;
  flex: 0 0 auto;
  color: inherit;
  font-size: 10px;
}

a.mega-link .nav-tag-free { color: #059669; font-size: 9px; }
a.mega-link .nav-tag-dollar { color: var(--purple); font-size: 9px; }

.mobile-acc {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-acc svg { color: var(--purple); transition: transform 0.2s ease; }
.mobile-acc[aria-expanded="true"] svg { transform: rotate(180deg); }

.mobile-sub { padding: 0 0 8px 12px; }
.mobile-head {
  display: block;
  padding: 8px 0 2px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.mobile-sublink {
  display: block;
  padding: 4px 0 4px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.signin {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.signin:hover { color: var(--purple); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--purple);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(26, 16, 64, 0.06);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(0.98); }

.btn-sm { padding: 10px 18px; }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 24px 20px;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.mobile-nav .group-label {
  margin: 12px 0 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 700;
}

body.nav-open .mobile-nav { display: block; }

/* ── Blog listing ── */
.blog-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.glow-purple {
  width: 520px;
  height: 520px;
  background: var(--purple);
  opacity: 0.12;
  top: -180px;
  left: -120px;
}

.glow-mint {
  width: 360px;
  height: 360px;
  background: var(--mint);
  opacity: 0.18;
  top: 20px;
  right: -80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(92, 83, 246, 0.25);
  background: rgba(92, 83, 246, 0.06);
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.blog-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 800;
  max-width: 760px;
  margin-bottom: 16px;
}

.blog-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.filters {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(92, 83, 246, 0.08);
}

.filters .wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0;
}

.pill {
  border: 1px solid rgba(92, 83, 246, 0.2);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.pill.is-active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.section { padding: 56px 0; }

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 1.35rem;
  font-weight: 800;
}

.count {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  background: rgba(92, 83, 246, 0.08);
  border-radius: 999px;
  padding: 2px 10px;
}

.rule {
  height: 1px;
  width: 180px;
  background: rgba(92, 83, 246, 0.12);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid rgba(92, 83, 246, 0.14);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(92, 83, 246, 0.12);
}

.card-media {
  position: relative;
  height: 320px;
  background: #eeeaf8;
  overflow: hidden;
}

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

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

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(92, 83, 246, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
}

.card-body { padding: 24px; }

.card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.card:hover h3 { color: var(--purple); }

.card p {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 15px;
}

.meta {
  display: flex;
  gap: 16px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 500;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--purple);
  font-weight: 700;
  font-size: 14px;
}

.side-stack { display: flex; flex-direction: column; gap: 16px; }

.side-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(92, 83, 246, 0.14);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
}

.side-card:hover { box-shadow: 0 8px 20px rgba(92, 83, 246, 0.1); }

.side-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.kicker {
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.side-card h3 {
  font-size: 15px;
  margin: 6px 0;
  font-weight: 800;
}

.side-card:hover h3 { color: var(--purple); }

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

.post-card .card-media { height: 190px; }

.post-card h3 { font-size: 1.05rem; }

.post-card .card-body {
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.post-card p {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex;
  gap: 14px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(92, 83, 246, 0.08);
  color: var(--faint);
  font-size: 12px;
}

.empty,
.no-posts {
  text-align: center;
  padding: 72px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(92, 83, 246, 0.02);
}

.empty { display: none; }

.no-posts h2 { margin-bottom: 8px; }
.no-posts p { color: var(--muted); margin: 0; }

.card-media { background: #f3f0ff; }

.kenix-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.kenix-pager .page-numbers {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(92, 83, 246, 0.2);
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.kenix-pager .page-numbers.current {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 0 0 18px; }

.cta-band {
  margin-top: 64px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--soft);
  border: 1px solid rgba(92, 83, 246, 0.15);
  border-radius: 18px;
  padding: 48px 28px;
}

.cta-band h2 {
  font-size: 1.8rem;
  margin: 8px 0 10px;
}

.cta-band p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 22px;
}

/* ── Single post ── */
.post-top { padding: 36px 0 8px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--faint);
  font-size: 13px;
  margin-bottom: 18px;
}

.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--purple); }

.post-top h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  max-width: 920px;
  margin-bottom: 16px;
}

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
}

.stars { color: #f5b400; letter-spacing: 1px; }
.rating { color: var(--ink); font-weight: 700; }

.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
}

.byline strong { color: var(--ink); }

.post-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 280px;
  gap: 36px;
  align-items: start;
  padding-bottom: 48px;
}

.toc,
.help-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.toc {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 14px;
  background: #fff;
}

.toc h2 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}

.toc a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 8px;
  border-radius: 8px;
  border-left: 2px solid transparent;
}

.toc a.is-active,
.toc a:hover {
  color: var(--purple);
  background: rgba(92, 83, 246, 0.06);
  border-left-color: var(--purple);
}

.article h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 36px 0 12px;
}

.article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 24px 0 8px;
}

.article p { margin: 0 0 14px; color: #3f3b64; }

.article a { color: var(--purple); font-weight: 600; }

.hero-figure {
  margin: 8px 0 28px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero-figure img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--faint);
  background: var(--soft);
}

.callout {
  border: 1px solid rgba(92, 83, 246, 0.2);
  background: linear-gradient(180deg, rgba(92, 83, 246, 0.06), #fff 70%);
  border-radius: 16px;
  padding: 18px 18px 8px;
  margin-bottom: 22px;
}

.callout h2 { margin-top: 0; font-size: 1.15rem; }

.takeaways {
  background: var(--soft);
  border-radius: 16px;
  padding: 8px 22px 18px;
  margin-bottom: 8px;
}

.takeaways h2 { margin-top: 12px; font-size: 1.35rem; }

.takeaways ul,
.article ul,
.article ol { margin: 0 0 16px; padding-left: 20px; color: #3f3b64; }

.takeaways li,
.article li { margin: 8px 0; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 8px 0 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #1a1040;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(92, 83, 246, 0.03); }

.split-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 12px 0 8px;
}

.choice {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 6px;
  background: #fff;
}

.choice h3 { margin-top: 0; color: var(--purple); }

.inline-cta {
  margin: 28px 0;
  padding: 28px;
  border-radius: 18px;
  background: #1a1040;
  color: #fff;
}

.inline-cta h2,
.inline-cta h3 { color: #fff; }

.inline-cta p { color: rgba(255, 255, 255, 0.78); }

.inline-cta .btn { background: var(--mint); color: #10261c; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 700;
  font-family: var(--font-display);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--purple);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }
.faq details[open] { background: var(--soft); }

.faq details p {
  margin: 0;
  padding: 0 18px 16px;
}

.author-card,
.prev-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-top: 28px;
  text-decoration: none;
}

.author-card .avatar { width: 52px; height: 52px; font-size: 20px; flex-shrink: 0; }

.author-card p,
.prev-card p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.role { color: var(--purple); font-size: 13px; font-weight: 700; }

.prev-card img {
  width: 92px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.help-card {
  border: 1px solid rgba(92, 83, 246, 0.18);
  background: var(--soft);
  border-radius: 18px;
  padding: 20px;
}

.help-card h2 { font-size: 1.25rem; margin-bottom: 8px; }
.help-card p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.help-card .btn,
.help-card .btn-ghost { width: 100%; margin-bottom: 10px; }

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.share-row span { font-weight: 700; font-size: 14px; }

.share-row a,
.share-row button {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.promise {
  background: #1a1040;
  color: #fff;
  padding: 36px 0;
}

.promise h2 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.promise-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--mint);
}

.promise-grid span { color: rgba(255, 255, 255, 0.72); font-size: 14px; }

.newsletter {
  padding: 48px 0;
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.newsletter-box {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}

.newsletter h2 { font-size: 1.8rem; margin-bottom: 8px; }
.newsletter p { color: var(--muted); margin: 0; }

.news-form { display: flex; gap: 8px; }
.news-form input {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
}

.news-form input:focus { border-color: var(--purple); }
.form-note { display: none; margin-top: 8px; color: var(--purple); font-weight: 700; font-size: 14px; }
.form-note.is-on { display: block; }

/* ── Footer ── */
.site-footer {
  background: var(--soft);
  border-top: 1px solid var(--line);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer h3 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}

.site-footer p { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: inline;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.site-footer a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
}

.site-footer a:hover { color: var(--purple); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.status { color: #1f8a5b; font-weight: 700; }

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(26, 16, 64, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie p { margin: 0; color: var(--muted); font-size: 14px; }
.cookie a { color: var(--purple); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie.is-hidden { display: none; }

@media (max-width: 1020px) {
  .nav-desktop, .header-actions .signin, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .featured-grid, .post-grid, .post-layout, .split-choices, .newsletter-box, .footer-grid, .promise-grid {
    grid-template-columns: 1fr;
  }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .toc, .help-card { position: static; }
  .card-media, .hero-figure img { height: 220px; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 700px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .post-grid { grid-template-columns: 1fr; }
  .side-card { flex-direction: column; }
  .side-card img { width: 100%; height: 160px; }
  .cookie { flex-direction: column; align-items: stretch; }
  .news-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
}
