:root {
  --bg: #fff;
  --surface: #fff;
  --surface-soft: #f3f3f4;
  --ink: #080a12;
  --muted: #62646d;
  --line: #ededf0;
  --accent: #ffc444;
  --yellow-dark: #f9b72d;
  --max: 1360px;
  --velora-text-font: var(--gh-font-body, var(--gh-font-heading, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif));
}

.tone-citrus {
  --bg: #fff8d6;
  --surface: #fffdf0;
  --surface-soft: #ffe58a;
  --ink: #1f2330;
  --muted: #67604a;
  --line: #ead56f;
  --accent: #ff4d2e;
  --post-badge-bg: #1f2330;
  --topics-card-bg: #ff8a00;
  --authors-card-bg: #c9f24d;
}

.tone-mint {
  --bg: #d9fff5;
  --surface: #f6fffc;
  --surface-soft: #a8f0dd;
  --ink: #071c24;
  --muted: #476b70;
  --line: #99decf;
  --accent: #2351ff;
  --post-badge-bg: #071c24;
  --topics-card-bg: #00a98f;
  --authors-card-bg: #c7f5ea;
}

.tone-berry {
  --bg: #fff3f7;
  --surface: #fffafd;
  --surface-soft: #f5c8d8;
  --ink: #22111b;
  --muted: #775869;
  --line: #e6b7c9;
  --accent: #2f6bff;
  --post-badge-bg: #7f174b;
  --topics-card-bg: #b81766;
  --authors-card-bg: #f6d8e3;
}

.tone-dark {
  --bg: #0e1117;
  --surface: #171b24;
  --surface-soft: #1b2430;
  --ink: #e8edf6;
  --muted: #a9b4c4;
  --line: #2a3342;
  --accent: #ff4f7b;
  --post-badge-bg: #2dd4bf;
  --topics-card-bg: #1f7a69;
  --authors-card-bg: #1b2430;
}

.tone-white {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f3f3f4;
  --ink: #080a12;
  --muted: #62646d;
  --line: #ededf0;
  --accent: #ffc444;
  --post-badge-bg: #080a12;
  --topics-card-bg: #f3f3f4;
  --authors-card-bg: #f3f3f4;
}

.width-comfortable {
  --max: 1230px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--velora-text-font);
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header + main .archive,
.site-header + main .post-hero,
.site-header + main .page-single > .archive-header,
.site-header + main.membership-page,
.site-header + main.contact-page {
  padding-top: 130px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 38px;
  min-height: 86px;
  padding: 0 38px;
  background: transparent;
  font-size: 15px;
  font-weight: 760;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--velora-text-font);
  font-size: 34px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
}

.logo img {
  width: auto;
  max-width: 150px;
  max-height: 44px;
  object-fit: contain;
}

.main-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  margin: 0;
}

.icon-more,
.search-icon {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-more {
  font-size: 24px;
  letter-spacing: 2px;
  padding: 4px 0;
}

.search-icon {
  width: 28px;
  height: 28px;
  padding: 3px;
}

svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.pill-button,
.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  font-weight: 760;
}

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 478px;
  padding: 144px 24px 62px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--cover-image);
  background-position: center right;
  background-size: cover;
  opacity: .18;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .2) 32%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .2) 32%, #000 100%);
}

.wash {
  position: absolute;
  pointer-events: none;
  opacity: .36;
}

.wash-left {
  inset: 104px auto auto 8%;
  width: min(340px, 38vw);
  height: 1px;
  background: var(--line);
  box-shadow: 0 34px 0 var(--line), 0 68px 0 var(--line);
}

.wash-leaves {
  top: 98px;
  right: 9%;
  width: min(280px, 34vw);
  height: 120px;
  background:
    linear-gradient(90deg, transparent 0 48%, var(--line) 48% 52%, transparent 52%),
    linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 24px;
}

.hero h1 {
  position: relative;
  z-index: 1;
  width: min(950px, 100%);
  margin: 0 0 46px;
  font-family: var(--velora-text-font);
  font-size: clamp(39px, 4.4vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero strong {
  font-weight: 900;
}

.hero-showcase {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  justify-items: stretch;
  width: min(var(--max), calc(100% - 48px));
  min-height: 650px;
  margin-inline: auto;
  padding: 142px 0 58px;
  overflow: visible;
  text-align: left;
}

.hero-showcase::before {
  inset: 86px 0 26px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 48%),
    color-mix(in srgb, var(--surface-soft) 72%, transparent);
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}

.hero-showcase-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-left: clamp(0px, 3vw, 46px);
}

.hero-showcase h1 {
  width: 100%;
  max-width: 720px;
  margin-bottom: 28px;
  font-size: clamp(45px, 5.8vw, 86px);
  line-height: .98;
}

.hero-showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-showcase .search-form {
  width: min(460px, 100%);
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(8, 10, 18, .08);
}

.hero-showcase-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-showcase-stats span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-showcase-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-height: 420px;
  padding-right: clamp(0px, 2vw, 34px);
}

.hero-story {
  position: relative;
  min-height: 194px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 22px 55px rgba(8, 10, 18, .12);
}

.hero-story:first-child {
  grid-row: span 2;
}

.hero-story a,
.hero-story img {
  height: 100%;
}

.hero-story img {
  opacity: .9;
  transition: transform .45s ease, opacity .45s ease;
}

.hero-story a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(8, 10, 18, .78));
}

.hero-story span,
.hero-story h2 {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
}

.hero-story span {
  bottom: 76px;
  color: color-mix(in srgb, var(--surface) 78%, transparent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-story h2 {
  bottom: 18px;
  margin: 0;
  color: #fff;
  font-family: var(--velora-text-font);
  font-size: 26px;
  line-height: 1.05;
}

.hero-story:not(:first-child) h2 {
  font-size: 20px;
}

.hero-story:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.search-form {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(500px, 100%);
  height: 58px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.faux-search {
  border: 0;
  color: var(--muted);
  cursor: pointer;
}

.faux-search > span:first-child {
  flex: 1;
  padding-left: 18px;
  text-align: left;
}

.search-submit {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
}

.search-submit svg {
  width: 21px;
  height: 21px;
}

.search-form input,
.newsletter input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-form input {
  padding: 0 20px;
  font-size: 17px;
}

.search-form button {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.search-form svg {
  width: 21px;
  height: 21px;
}

.hero-carousel {
  position: relative;
  height: 520px;
  margin-top: 38px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface-soft);
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform .65s cubic-bezier(.7, 0, .2, 1);
  will-change: transform;
}

.featured-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  width: 100%;
  height: 520px;
  min-height: 520px;
  background: var(--surface);
}

.featured-slide-image {
  min-height: 100%;
  background: var(--surface-soft);
}

.featured-slide-copy {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 52px;
}

.post-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--post-badge-bg, var(--ink));
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.featured-slide h2 {
  margin: 0;
  font-family: var(--velora-text-font);
  font-size: clamp(42px, 4.2vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.featured-slide p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.featured-slide small {
  color: var(--muted);
  font-size: 13px;
}

.hero-controls {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.hero-control {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.section-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tag-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 16px;
}

.tag-card {
  position: relative;
  height: 128px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-soft);
}

.tag-card span,
.chips span,
.chips a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
}

.tag-card span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 0 15px;
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}

.latest {
  margin-top: 42px;
}

.latest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 424px;
  gap: 46px;
  align-items: start;
}

.image-link {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface-soft);
  aspect-ratio: 1.42;
}

.image-link.tall {
  aspect-ratio: 1.35;
  border-radius: 20px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chips span,
.chips a {
  padding: 0 13px;
}

.lead-post h2,
.side-post h3,
.post-card h3,
.featured-panel h2,
.featured-cards h3,
.mini h3 {
  font-family: var(--velora-text-font);
  letter-spacing: 0;
}

.lead-post h2 {
  max-width: 820px;
  margin: 18px 0 16px;
  font-size: clamp(44px, 5vw, 74px);
  line-height: .98;
}

.lead-post p {
  max-width: 650px;
  color: #32343b;
  font-size: 16px;
}

.author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: #22242b;
  font-size: 12px;
  line-height: 1.35;
}

.author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.sidebar {
  display: grid;
  gap: 44px;
}

.newsletter {
  padding: 31px 36px 32px;
  border-radius: 20px;
  background: var(--accent);
}

.newsletter h2 {
  margin: 0 0 24px;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: 0;
}

.newsletter form {
  display: grid;
  gap: 12px;
}

.newsletter input,
.newsletter button {
  height: 54px;
  border: 0;
  border-radius: 999px;
}

.newsletter input {
  padding: 0 24px;
  background: var(--surface);
}

.newsletter button {
  background: var(--surface);
  color: #1a1b20;
  font-weight: 800;
  cursor: pointer;
}

.side-post .chips {
  margin-top: 16px;
}

.side-post h3 {
  margin: 12px 0 8px;
  font-size: 31px;
  line-height: 1.1;
}

.side-post p,
.post-card small,
.mini p {
  color: #33353d;
  font-size: 13px;
}



.featured-panel {
  position: relative;
  overflow: hidden;
  padding: 58px 88px 54px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, var(--surface)), var(--surface-soft));
  text-align: center;
}

.choice {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.featured-panel h2 {
  max-width: 440px;
  margin: 0 auto 40px;
  font-size: 40px;
  line-height: 1.05;
}

.featured-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.featured-cards article {
  padding: 14px;
  border-radius: 12px;
  background: var(--accent);
}

.featured-cards img {
  height: 150px;
  border-radius: 7px;
}

.featured-cards h3 {
  margin: 14px 0 6px;
  font-size: 18px;
  line-height: 1.1;
}

.featured-cards p {
  margin: 0 0 4px;
  font-size: 11px;
}

.see-all {
  display: inline-block;
  margin-top: 28px;
  font-size: 12px;
}

.posts {
  margin-top: 72px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px 46px;
}

.post-card > img {
  height: 220px;
  border-radius: 12px;
}

.post-card-image {
  display: block;
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-soft);
}

.post-card .chips {
  margin-top: 14px;
}

.post-card h3 {
  margin: 12px 0 10px;
  font-size: 28px;
  line-height: 1.08;
}

.post-card p {
  margin: 0 0 14px;
  color: #44464e;
  font-size: 14px;
}

.load-more {
  width: fit-content;
  margin: 62px auto 0;
  min-height: 42px;
  padding: 0 25px;
  font-size: 13px;
}

.mini {
  margin-top: 86px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

.mini img {
  height: 108px;
  border-radius: 9px;
}

.mini h3 {
  margin: 12px 0 4px;
  font-size: 17px;
  line-height: 1.13;
}

.mini p {
  margin: 0;
  font-size: 11px;
}

.site-footer {
  margin-top: 92px;
  padding-bottom: 45px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-top p {
  max-width: 300px;
  margin: 14px 0 0;
  color: #3b3d45;
  font-size: 13px;
}

.footer-top .pill-button {
  min-width: 260px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.footer-links h4 {
  margin: 0 0 12px;
  font-size: 12px;
}

.footer-links a {
  display: block;
  margin: 7px 0;
  color: #15171d;
  font-size: 12px;
}

.copyright {
  margin: 40px 0 0;
  color: #4d4f56;
  font-size: 11px;
}

.archive {
  margin-bottom: 90px;
  margin-top: 100px;
}

.archive-header {
  max-width: 780px;
  margin-bottom: 42px;
  padding: 34px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--archive-header-bg-color) 94%, transparent), color-mix(in srgb, var(--archive-header-bg-color) 72%, transparent)),
    var(--archive-header-bg-image) center right / cover,
    var(--archive-header-bg-color);
}

.archive-header h1,
.post-hero h1 {
  margin: 0;
  font-family: var(--velora-text-font);
  font-size: clamp(48px, 6vw, 86px);
  line-height: 1;
  letter-spacing: 0;
}

.archive-header p,
.post-hero > p {
  color: var(--muted);
  font-size: 20px;
}

.author-profile > img {
  width: 92px;
  height: 92px;
  margin-bottom: 20px;
  border-radius: 50%;
}

.post-hero {
  display: grid;
  justify-items: center;
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
  margin-top: 100px;
}

.post-hero .chips {
  justify-content: center;
  margin: 0 0 20px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
}

.premium-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 16px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.is-premium-post .post-hero h1,
.is-members-post .post-hero h1 {
  text-wrap: balance;
}

.reading-progress {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
  transition: width .12s linear;
}

.post-feature {
  margin-top: 44px;
}

.post-feature img {
  max-height: 680px;
  border-radius: 20px;
}

.post-feature figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.post-body-shell {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 760px) minmax(180px, 240px);
  gap: 36px;
  align-items: start;
}

.post-content {
  width: 100%;
  margin: 52px auto 0;
  grid-column: 2;
  font-size: 20px;
  line-height: 1.75;
}

.post-toc {
  position: sticky;
  top: 28px;
  margin-top: 58px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.post-toc:empty,
.post-toc.is-empty {
  display: none;
}

.post-toc nav {
  display: grid;
  gap: 8px;
}

.post-toc a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.post-toc a:hover,
.post-toc a.is-active {
  color: var(--ink);
}

.post-toc .toc-h3 {
  padding-left: 14px;
}

.post-content > * {
  margin-block: 0 1.35em;
}

.post-content h2,
.post-content h3 {
  margin-top: 1.8em;
  font-family: var(--velora-text-font);
  line-height: 1.1;
}

.post-content h2 {
  font-size: 42px;
}

.post-content h3 {
  font-size: 32px;
}

.post-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.post-content blockquote {
  margin-inline: 0;
  padding-left: 28px;
  border-left: 5px solid var(--accent);
  font-family: var(--velora-text-font);
  font-size: 30px;
  line-height: 1.25;
}

.post-content img,
.kg-image-card img {
  border-radius: 16px;
}

.has-callout-styles .kg-callout-card,
.has-callout-styles .article-callout {
  display: flex;
  gap: 14px;
  margin: 34px 0;
  padding: 22px 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 17%, var(--surface));
}

.has-callout-styles .kg-callout-card div,
.has-callout-styles .article-callout div {
  margin: 0;
}

.has-callout-styles .kg-callout-emoji {
  flex: 0 0 auto;
  line-height: 1.45;
}

.has-faq-styles .kg-toggle-card,
.has-faq-styles .faq-block {
  margin: 20px 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.has-faq-styles .kg-toggle-heading,
.has-faq-styles .faq-block summary {
  padding: 18px 20px;
  font-weight: 800;
  line-height: 1.35;
}

.has-faq-styles .kg-toggle-content,
.has-faq-styles .faq-block > div {
  padding: 0 20px 20px;
  color: var(--muted);
}

.has-faq-styles .kg-toggle-content p:last-child,
.has-faq-styles .faq-block p:last-child {
  margin-bottom: 0;
}

.kg-width-wide {
  width: min(1080px, calc(100vw - 48px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.kg-width-full {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.locked-preview {
  position: relative;
  overflow: hidden;
  margin: 42px 0;
  padding: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line));
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, transparent), transparent 62%),
    var(--surface);
  box-shadow: 0 18px 55px rgba(8, 10, 18, .08);
}

.locked-preview::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--accent);
}

.locked-preview-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--surface);
}

.locked-preview-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.locked-preview h2 {
  margin: 0 0 10px;
  font-size: 34px;
}

.locked-preview p:not(.section-kicker) {
  max-width: 620px;
  color: var(--muted);
}

.locked-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
}

.locked-preview-actions > a:not(.pill-button) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.post-engagement {
  max-width: 760px;
  margin: 42px auto 0;
}

.post-action-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  align-items: stretch;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--ink));
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 44%),
    color-mix(in srgb, var(--surface) 96%, var(--bg));
  box-shadow: 0 18px 55px rgba(8, 10, 18, .08);
}

.post-action-item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  appearance: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.post-action-item:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--ink);
  transform: translateY(-1px);
}

.post-action-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--line) 74%, var(--ink));
  background: color-mix(in srgb, var(--surface) 90%, var(--bg));
  color: color-mix(in srgb, var(--muted) 84%, var(--ink));
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--surface) 82%, transparent);
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.post-action-label {
  overflow-wrap: anywhere;
}

.post-action-label + .reaction-count {
  margin-top: -5px;
}

.post-action-icon svg,
.share-modal svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.post-action-item.is-active {
  color: var(--ink);
}

.post-action-item.is-active .post-action-icon {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--ink));
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  color: var(--accent);
}

.post-action-item[data-reaction="More like this"].is-active .post-action-icon {
  border-color: color-mix(in srgb, #ff4f9a 68%, var(--accent));
  background: color-mix(in srgb, #ff4f9a 18%, var(--surface));
  color: #ff2e83;
}

.post-action-item .reaction-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--ink));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.share-modal[hidden] {
  display: none;
}

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

body.share-modal-open {
  overflow: hidden;
}

body.member-auth-open {
  overflow: hidden;
}

.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 18, .52);
  backdrop-filter: blur(8px);
}

.share-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 26px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--ink));
  border-radius: 20px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 56%),
    var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(8, 10, 18, .28);
}

.share-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 90%, var(--bg));
  color: var(--ink);
  cursor: pointer;
}

.share-modal-card h2 {
  max-width: 420px;
  margin: 6px 0 18px;
  font-family: var(--velora-text-font);
  font-size: 32px;
  line-height: 1.1;
}

.share-preview {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
}

.share-preview-no-image {
  grid-template-columns: 1fr;
}

.share-preview img {
  aspect-ratio: 1;
  border-radius: 10px;
}

.share-preview strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.share-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.share-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.share-modal-actions a,
.share-modal-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, var(--bg));
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.share-modal-actions a:hover,
.share-modal-actions button:hover,
.share-modal-actions button.is-copied {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.post-comments {
  max-width: 960px;
  margin-top: 42px;
}

.post-comments-panel {
  max-width: 760px;
  margin-inline: auto;
  padding: 34px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--ink));
  border-radius: 22px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 52%),
    var(--surface);
  box-shadow: 0 20px 60px rgba(8, 10, 18, .08);
}

.post-comments-panel h2 {
  margin: 0;
  font-family: var(--velora-text-font);
  font-size: 34px;
  line-height: 1.08;
}

.post-comments-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.discussion-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 11%, var(--surface));
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.discussion-member-note {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
}

.discussion-member-note span,
.discussion-gate-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--accent);
}

.discussion-member-note span {
  width: 42px;
  height: 42px;
}

.discussion-member-note svg,
.discussion-gate-icon svg,
.member-auth-close svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.discussion-member-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.discussion-gate {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
}

.discussion-gate-icon {
  width: 58px;
  height: 58px;
}

.discussion-gate h3 {
  margin: 0 0 6px;
  font-family: var(--velora-text-font);
  font-size: 24px;
  line-height: 1.12;
}

.discussion-gate p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.discussion-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.discussion-gate-actions > a:not(.pill-button) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.member-auth-modal[hidden] {
  display: none;
}

.member-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.member-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 18, .56);
  backdrop-filter: blur(10px);
}

.member-auth-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1fr);
  width: min(100%, 860px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--ink));
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 34px 95px rgba(8, 10, 18, .32);
}

.member-auth-copy {
  min-height: 440px;
  padding: 34px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, transparent), transparent 58%),
    color-mix(in srgb, var(--bg) 78%, var(--surface));
}

.member-auth-copy h2 {
  margin: 10px 0 14px;
  font-family: var(--velora-text-font);
  font-size: 42px;
  line-height: 1.02;
}

.member-auth-copy > p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
}

.member-auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.member-auth-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--line) 74%, var(--ink));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  font-size: 12px;
  font-weight: 850;
}

.member-auth-forms {
  padding: 34px;
}

.member-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 24px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, var(--bg));
}

.member-auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.member-auth-tabs button.is-active {
  background: var(--ink);
  color: var(--surface);
}

.member-auth-form {
  display: none;
}

.member-auth-form.is-active {
  display: block;
}

.member-auth-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 850;
}

.member-auth-form input {
  width: 100%;
  height: 52px;
  margin-bottom: 14px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 90%, var(--bg));
  color: var(--ink);
  outline: none;
}

.member-auth-form input:focus {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}

.member-auth-form .pill-button {
  width: 100%;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.member-account-card {
  grid-template-columns: minmax(0, .9fr) minmax(320px, .85fr);
}

.member-account-panel {
  display: grid;
  align-content: center;
  gap: 20px;
}

.member-account-summary {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
}

.member-account-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-size: 0;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.member-account-avatar::first-letter {
  font-size: 24px;
}

.member-account-summary h3,
.member-account-empty h3 {
  margin: 0 0 6px;
  font-family: var(--velora-text-font);
  font-size: 28px;
  line-height: 1.08;
}

.member-account-summary p,
.member-account-empty p {
  margin: 0;
  color: var(--muted);
}

.member-account-summary .section-kicker {
  margin-bottom: 8px;
}

.member-account-actions {
  display: grid;
  gap: 12px;
}

.member-account-actions a,
.member-account-empty .pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, var(--bg));
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.member-account-actions .pill-button,
.member-account-empty .pill-button {
  border: 0;
  background: var(--accent);
}

.member-account-empty {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
}

.member-form-message {
  display: none;
  margin: 14px 0 0;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
}

.member-auth-form.success .member-form-success,
.member-auth-form.error .member-form-error {
  display: block;
}

.member-form-success {
  background: color-mix(in srgb, #16a34a 14%, var(--surface));
  color: color-mix(in srgb, #166534 80%, var(--ink));
}

.member-form-error {
  background: color-mix(in srgb, #ef4444 14%, var(--surface));
  color: color-mix(in srgb, #991b1b 80%, var(--ink));
}

.member-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
  color: var(--ink);
  cursor: pointer;
}

.recommendations,
.subscribe-cta {
  margin-top: 56px;
}

.recommendations-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.recommendations-header h2 {
  margin: 0;
  font-family: var(--velora-text-font);
  font-size: 42px;
  line-height: 1.05;
}

.recommendations-header > a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.recommendations-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.recommendation-image {
  display: block;
  aspect-ratio: 1.45;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-soft);
}

.recommendations-grid h3 {
  margin: 8px 0;
  font-family: var(--velora-text-font);
  font-size: 27px;
  line-height: 1.08;
}

.recommendations-grid article > p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.subscribe-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 30px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, var(--surface)), var(--surface-soft));
}

.subscribe-cta h2 {
  max-width: 760px;
  margin: 0 0 8px;
  font-family: var(--velora-text-font);
  font-size: 36px;
  line-height: 1.08;
}

.subscribe-cta p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.subscribe-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.subscribe-cta-actions > a:not(.pill-button) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.author-box {
  display: flex;
  gap: 18px;
  max-width: 760px;
  margin: 40px auto 0;
  padding: 26px;
  border-radius: 16px;
  background: var(--surface-soft);
}

.author-box img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
}

.author-box h3 {
  margin: 0 0 8px;
  font-family: var(--velora-text-font);
  font-size: 28px;
}

.author-box p {
  margin: 0;
  color: var(--muted);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 58px;
  font-weight: 760;
}

.topic-grid,
.author-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.topic-card,
.author-card,
.pricing-grid article,
.contact-panel {
  border-radius: 18px;
  background: var(--surface);
}

.topic-card {
  position: relative;
  display: block;
  min-height: 220px;
  overflow: hidden;
  background: var(--topics-card-bg);
}

.topic-card img {
  height: 220px;
}

.topic-card span {
  position: absolute;
  left: 18px;
  bottom: 48px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  font-weight: 850;
}

.topic-card small {
  position: absolute;
  left: 22px;
  bottom: 22px;
  color: var(--muted);
}

.featured-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.featured-topic-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface-soft);
  color: #fff;
}

.featured-topic-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 538px;
}

.featured-topic-card img,
.featured-topic-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.featured-topic-card img {
  opacity: .9;
  transition: transform .45s ease, opacity .45s ease;
}

.featured-topic-fallback {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 44%, var(--ink)), var(--ink));
}

.featured-topic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 18, .05), rgba(8, 10, 18, .82));
}

.featured-topic-copy {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
}

.featured-topic-copy .section-kicker {
  color: color-mix(in srgb, #fff 76%, transparent);
}

.featured-topic-copy strong {
  font-size: 31px;
  line-height: 1;
}

.featured-topic-card:first-child .featured-topic-copy strong {
  font-size: 54px;
}

.featured-topic-copy small {
  max-width: 420px;
  color: color-mix(in srgb, #fff 78%, transparent);
  font-size: 14px;
  line-height: 1.35;
}

.featured-topic-card:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.author-card,
.pricing-grid article {
  padding: 30px;
  background: var(--authors-card-bg, var(--surface-soft));
}

.author-card img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
}

.author-card h2,
.pricing-grid h2 {
  margin: 18px 0 10px;
  font-family: var(--velora-text-font);
  font-size: 34px;
  line-height: 1.05;
}

.featured-plan {
  background: var(--accent) !important;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 44px;
  align-items: start;
}

.contact-panel .post-content {
  width: auto;
  margin: 0;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 13px 15px;
}

.docs-page {
  padding-top: 132px;
  margin-bottom: 110px;
}

.docs-hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: grid;
  align-content: end;
  padding: clamp(34px, 5vw, 64px);
  border-radius: 18px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface) 62%, transparent)),
    var(--cover-image) center right / cover,
    linear-gradient(135deg, var(--surface-soft), var(--surface));
}

.docs-hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--velora-text-font);
  font-size: clamp(54px, 8vw, 108px);
  line-height: .92;
  letter-spacing: 0;
}

.docs-hero > p:not(.section-kicker) {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.docs-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.docs-card-featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, var(--surface)), var(--surface));
}

.docs-card h2 {
  margin: 0;
  font-family: var(--velora-text-font);
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0;
}

.docs-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.docs-card code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: .9em;
}

.doc-badge {
  width: fit-content;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--post-badge-bg, var(--ink));
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .site-header {
    position: relative;
    gap: 22px;
    padding: 0 22px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    top: calc(100% - 8px);
    left: 22px;
    right: 22px;
    z-index: 20;
    display: block;
    padding: 16px;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 18px 50px rgba(8, 10, 18, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .site-header.menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav ul {
    display: grid;
    gap: 0;
  }

  .main-nav li + li {
    border-top: 1px solid var(--line);
  }

  .main-nav a {
    display: block;
    padding: 13px 4px;
  }

  .header-actions {
    margin-left: auto;
    gap: 18px;
  }

  .tag-strip,
  .post-grid,
  .mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-carousel {
    height: auto;
    overflow: visible;
  }

  .hero-track {
    display: block;
    transform: none !important;
  }

  .featured-slide {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .hero-carousel .featured-slide:not(:first-child),
  .hero-controls {
    display: none;
  }

  .featured-slide-image {
    aspect-ratio: 1.55;
  }

  .featured-slide-copy {
    padding: 34px;
  }

  .latest-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .post-body-shell {
    grid-template-columns: 1fr;
  }

  .post-content {
    grid-column: 1;
  }

  .post-toc {
    position: static;
    margin-top: 34px;
  }

  .post-action-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recommendations-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-cta {
    grid-template-columns: 1fr;
  }

  .subscribe-cta-actions {
    justify-content: flex-start;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 112px;
  }

  .hero-showcase-copy {
    padding-inline: 22px;
  }

  .hero-showcase-board {
    padding-inline: 22px;
  }

  .newsletter {
    grid-column: 1 / -1;
  }

  .featured-cards,
  .footer-links,
  .topic-grid,
  .featured-topic-grid,
  .author-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-topic-card:first-child {
    min-height: 420px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-auth-card {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }

  .member-auth-copy {
    min-height: 0;
  }
}

@media (max-width: 650px) {
  .wrap {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    min-height: 72px;
  }

  .logo {
    font-size: 33px;
  }

  .header-actions a:not(.pill-button) {
    display: none;
  }

  .header-actions .pill-button {
    min-height: 36px;
    padding: 0 14px;
    font-size: 12px;
  }

  .featured-slide-copy {
    padding: 26px 20px;
  }

  .featured-slide h2 {
    font-size: 35px;
  }

  .hero {
    min-height: 360px;
    padding-top: 104px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-showcase {
    width: min(100% - 28px, var(--max));
    padding-bottom: 38px;
  }

  .hero-showcase::before {
    inset: 78px 0 18px;
    border-radius: 20px;
  }

  .hero-showcase h1 {
    font-size: 42px;
  }

  .hero-showcase-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-showcase .search-form,
  .hero-showcase .pill-button {
    width: 100%;
  }

  .hero-showcase-board {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-story,
  .hero-story:first-child {
    min-height: 230px;
    grid-row: auto;
  }

  .tag-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .tag-card {
    flex: 0 0 185px;
    scroll-snap-align: start;
  }

  .lead-post h2 {
    font-size: 43px;
  }

  .sidebar,
  .featured-cards,
  .post-grid,
  .mini-grid,
  .footer-links,
  .topic-grid,
  .featured-topic-grid,
  .author-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .featured-topic-card,
  .featured-topic-card:first-child {
    grid-column: auto;
    grid-row: auto;
    min-height: 270px;
  }

  .featured-topic-card:first-child .featured-topic-copy strong {
    font-size: 38px;
  }

  .post-content {
    width: min(100% - 28px, 760px);
    font-size: 18px;
  }

  .post-body-shell .post-content {
    width: 100%;
  }

  .post-content h2 {
    font-size: 34px;
  }

  .post-content blockquote {
    font-size: 25px;
  }

  .locked-preview {
    padding: 24px;
  }

  .locked-preview h2,
  .recommendations-header h2,
  .subscribe-cta h2 {
    font-size: 30px;
  }

  .recommendations-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .subscribe-cta {
    padding: 24px;
  }

  .post-engagement,
  .post-comments-panel {
    width: min(100% - 28px, 760px);
  }

  .post-engagement,
  .post-comments-panel {
    padding: 20px;
  }

  .post-engagement {
    padding: 0;
  }

  .post-action-bar {
    padding: 12px;
  }

  .post-comments-header,
  .discussion-gate-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .discussion-gate {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .member-auth-modal {
    padding: 14px;
  }

  .member-auth-card {
    max-height: calc(100vh - 28px);
    border-radius: 20px;
  }

  .member-auth-copy,
  .member-auth-forms {
    padding: 24px;
  }

  .member-auth-copy h2 {
    font-size: 34px;
  }

  .featured-panel {
    padding: 42px 18px;
  }

  .featured-panel h2 {
    font-size: 34px;
  }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-page {
    padding-top: 96px;
  }

  .docs-hero {
    min-height: 280px;
    padding: 28px 22px;
  }

  .docs-hero h1 {
    font-size: 46px;
  }

  .docs-grid,
  .docs-card-featured {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
}


