:root {
  --bg: #f6efe3;
  --bg-strong: #e7d7ba;
  --ink: #111111;
  --muted: #5f574d;
  --accent: #cb4b2a;
  --accent-dark: #8f2f18;
  --brand-cyan: #12b7d2;
  --brand-gold: #dfb25c;
  --brand-navy: #0d4666;
  --card: rgba(255, 250, 241, 0.82);
  --line: rgba(17, 17, 17, 0.12);
  --shadow: 0 24px 80px rgba(79, 45, 22, 0.16);
  --max: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(203, 75, 42, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(17, 17, 17, 0.09), transparent 24%),
    linear-gradient(180deg, #f4ecdd, #f8f4eb 42%, #fff9ef);
  min-height: 100vh;
}

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

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

.shell {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
}

body.has-nav-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(246, 239, 227, 0.75);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  position: relative;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(13, 70, 102, 0.14));
}

.brand-copy strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-shell {
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.96rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.56);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

body.has-nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.has-nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.has-nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.global-auth-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.global-auth-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(79, 45, 22, 0.12);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.global-auth-button:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 17, 17, 0.22);
  box-shadow: 0 16px 34px rgba(79, 45, 22, 0.18);
}

.global-auth-button.is-user {
  padding-right: 20px;
}

.global-auth-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(203, 75, 42, 0.22), rgba(240, 180, 87, 0.56));
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.global-auth-label {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
}

.button,
button,
input,
textarea {
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: #fff7ec;
  border-color: var(--ink);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.2);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.36);
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: stretch;
}

.hero-copy {
  padding: 24px 0;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(203, 75, 42, 0.12);
  color: var(--accent-dark);
  border: 1px solid rgba(203, 75, 42, 0.18);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

h1,
h2,
h3,
.serif {
  font-family: var(--serif);
}

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  margin: 18px 0 18px;
  font-weight: 700;
}

.hero-copy p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-card,
.glass-card,
.feature-card,
.article-card,
.newsletter-card,
.info-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  min-height: 530px;
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.84), rgba(52, 24, 12, 0.84)),
    radial-gradient(circle at top right, rgba(240, 180, 87, 0.5), transparent 34%);
  color: #fff9ef;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  bottom: -120px;
  right: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 87, 0.9), rgba(203, 75, 42, 0));
  opacity: 0.65;
  filter: blur(10px);
}

.signal-list {
  display: grid;
  gap: 14px;
}

.signal-list div {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.signal-list strong {
  display: block;
  font-size: 1.8rem;
}

.hero-quote {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.4;
  max-width: 340px;
}

.section {
  padding: 44px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-header p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.75;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.glass-card {
  padding: 26px;
}

.glass-card strong {
  display: block;
  font-size: 2rem;
  font-family: var(--serif);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 24px;
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.feature-number {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, 0.06);
  font-weight: 700;
}

.feature-card h3,
.article-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.feature-card p,
.article-card p,
.info-card p {
  color: var(--muted);
  line-height: 1.7;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.article-card {
  padding: 26px;
  display: grid;
  gap: 12px;
}

.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-link {
  color: var(--accent-dark);
  font-weight: 600;
}

.newsletter-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.newsletter-card {
  padding: 28px;
}

.newsletter-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.newsletter-form input,
.newsletter-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.8);
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 16px;
}

.newsletter-form textarea {
  min-height: 110px;
  resize: vertical;
}

.newsletter-status {
  min-height: 24px;
  color: var(--accent-dark);
  font-size: 0.95rem;
}

.consent-check {
  display: flex;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

.consent-check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.consent-check a {
  color: var(--accent-dark);
  text-decoration: underline;
}

.lead-gate-shell {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.lead-gate-shell.is-open {
  pointer-events: auto;
}

.lead-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(10px);
}

.lead-gate-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(620px, calc(100vw - 24px));
  padding: 28px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.99), rgba(244, 234, 220, 0.99)),
    radial-gradient(circle at top right, rgba(203, 75, 42, 0.12), transparent 34%);
  border: 1px solid rgba(17, 17, 17, 0.09);
  box-shadow: 0 32px 90px rgba(51, 29, 17, 0.26);
}

.lead-gate-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(17, 17, 17, 0.06);
  color: var(--ink);
  cursor: pointer;
}

.lead-gate-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}

.lead-gate-copy h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.lead-gate-copy p,
.lead-gate-points li {
  color: var(--muted);
  line-height: 1.7;
}

.lead-gate-points {
  display: grid;
  gap: 10px;
  padding-left: 1.1rem;
}

.lead-gate-form {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.lead-gate-form input,
.lead-gate-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.9);
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
}

.lead-gate-form textarea {
  min-height: 96px;
  resize: vertical;
}

.lead-gate-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lead-gate-status {
  min-height: 24px;
  color: var(--accent-dark);
  font-size: 0.94rem;
  line-height: 1.5;
}

.lead-gate-status.is-error {
  color: #9e2415;
}

.lead-gate-status.is-success {
  color: #1f5d38;
}

.community-stack {
  margin-top: 36px;
  display: grid;
  gap: 20px;
}

.community-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.community-hero h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.community-hero p,
.community-note p,
.community-panel-copy,
.community-comments-empty,
.community-auth-copy,
.community-chat-copy,
.community-meta-note,
.comment-body,
.comment-meta,
.community-status {
  color: var(--muted);
  line-height: 1.7;
}

.community-note,
.community-card,
.comment-item,
.chat-bubble {
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.community-note,
.community-card {
  padding: 24px;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.community-comments-card {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.community-card h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.community-card h4 {
  margin: 0;
  font-size: 1rem;
}

.community-actions,
.community-inline-actions,
.comment-actions,
.chat-actions,
.community-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.community-form,
.community-otp-form,
.comment-form,
.chat-form {
  display: grid;
  gap: 12px;
}

.community-form input,
.community-form textarea,
.community-otp-form input,
.comment-form textarea,
.chat-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.84);
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
}

.community-form textarea,
.comment-form textarea,
.chat-form textarea {
  min-height: 120px;
  resize: vertical;
}

.community-otp-form input {
  letter-spacing: 0.35em;
  text-align: center;
  font-size: 1.2rem;
}

.community-status {
  min-height: 22px;
  font-size: 0.94rem;
}

.community-status.is-error {
  color: #9e2415;
}

.community-status.is-success {
  color: #1f5d38;
}

.community-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  margin-bottom: 14px;
}

.community-user strong {
  display: block;
}

.community-user span {
  color: var(--muted);
  font-size: 0.94rem;
}

.community-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.05);
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.community-tab {
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

.community-tab.is-active {
  background: var(--ink);
  color: #fff7ec;
}

.comment-list,
.chat-thread {
  display: grid;
  gap: 14px;
}

.comment-item {
  padding: 18px 20px;
}

.comments-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  align-items: start;
}

.comments-intro h3 {
  margin: 10px 0 10px;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.comment-composer-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(17, 17, 17, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 239, 227, 0.92));
}

.comment-composer-head {
  margin-bottom: 12px;
}

.comment-login-cta {
  display: grid;
  gap: 12px;
}

.comment-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-author h4 {
  margin: 0;
  font-size: 1rem;
}

.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(203, 75, 42, 0.24), rgba(240, 180, 87, 0.45));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent-dark);
  overflow: hidden;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-votes {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editorial-comments {
  margin-top: 6px;
}

.editorial-comment {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 20px 20px 16px;
}

.comment-rail {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding-top: 6px;
}

.comment-main {
  min-width: 0;
}

.vote-button {
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  font-size: 1rem;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.vote-button:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 17, 17, 0.22);
}

.vote-button.is-active {
  background: var(--ink);
  color: #fff7ec;
}

.comment-score {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-dark);
}

.chat-thread {
  max-height: 420px;
  overflow: auto;
  padding-right: 6px;
}

.chat-bubble {
  padding: 14px 16px;
}

.chat-bubble[data-role="assistant"] {
  background: rgba(17, 17, 17, 0.92);
  color: #fff7ec;
}

.chat-bubble[data-role="assistant"] .community-meta-note,
.chat-bubble[data-role="assistant"] .comment-body {
  color: rgba(255, 247, 236, 0.82);
}

.chat-bubble[data-role="user"] {
  background: rgba(203, 75, 42, 0.10);
}

.community-divider {
  height: 1px;
  background: rgba(17, 17, 17, 0.08);
  margin: 4px 0 10px;
}

.auth-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.auth-modal-shell.is-open {
  pointer-events: auto;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.36);
  backdrop-filter: blur(10px);
}

.auth-modal-card {
  position: absolute;
  top: 88px;
  right: max(16px, calc((100vw - var(--max)) / 2));
  width: min(460px, calc(100vw - 24px));
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.98), rgba(245, 236, 223, 0.98)),
    radial-gradient(circle at top right, rgba(240, 180, 87, 0.28), transparent 38%);
  border: 1px solid rgba(17, 17, 17, 0.1);
  box-shadow: 0 32px 90px rgba(51, 29, 17, 0.28);
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.06);
  color: var(--ink);
  cursor: pointer;
}

.auth-modal-copy {
  display: grid;
  gap: 10px;
}

.chat-widget-shell {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  justify-items: end;
  gap: 14px;
}

.chat-widget-launcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.chat-widget-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 244, 249, 0.96);
  color: #a04e74;
  border: 1px solid rgba(160, 78, 116, 0.16);
  box-shadow: 0 12px 30px rgba(114, 35, 77, 0.18);
  font-size: 0.98rem;
  white-space: nowrap;
}

.chat-widget-bot {
  width: 84px;
  height: 84px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.12) 34%, transparent 35%),
    linear-gradient(145deg, rgba(255, 236, 217, 0.96), rgba(244, 227, 205, 0.96));
  border: 1px solid rgba(150, 82, 44, 0.12);
  box-shadow: 0 18px 36px rgba(98, 55, 28, 0.24);
  position: relative;
  overflow: hidden;
}

.chat-widget-bot::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 22px;
  background: radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.08) 46%, transparent 52%);
}

.chat-widget-face {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(80, 42, 20, 0.16));
}

.chat-widget-panel {
  width: min(390px, calc(100vw - 24px));
  max-height: min(72vh, 700px);
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(14, 13, 21, 0.96), rgba(34, 22, 52, 0.94)),
    radial-gradient(circle at top right, rgba(82, 214, 255, 0.12), transparent 35%);
  color: #fff8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(11, 14, 20, 0.38);
  display: none;
}

.chat-widget-panel.is-open {
  display: grid;
  gap: 14px;
}

.chat-widget-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.chat-widget-header strong {
  display: block;
  font-size: 1.1rem;
}

.chat-widget-header span {
  color: rgba(255, 248, 240, 0.72);
  font-size: 0.94rem;
  line-height: 1.5;
}

.chat-widget-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8f0;
  cursor: pointer;
}

.chat-widget-thread {
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 12px;
  padding-right: 6px;
}

.chat-widget-empty,
.chat-widget-login .community-panel-copy {
  color: rgba(255, 248, 240, 0.74);
  line-height: 1.7;
}

.chat-widget-login {
  display: grid;
  gap: 12px;
}

.chat-widget-panel .chat-form textarea {
  min-height: 110px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff8f0;
}

.chat-widget-panel .community-chip {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 248, 240, 0.78);
}

.chat-widget-panel .button-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff8f0;
}

.page-hero {
  padding: 64px 0 30px;
}

.page-hero h1 {
  max-width: 940px;
  margin-bottom: 12px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.content-shell {
  width: min(820px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 10px 0 80px;
}

.article-body {
  font-size: 1.06rem;
  line-height: 1.9;
}

.article-subtitle {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.lead {
  font-size: 1.16rem;
  color: var(--ink);
}

.article-section {
  margin-top: 34px;
}

.article-body h2,
.article-body h3 {
  margin-top: 38px;
  margin-bottom: 8px;
  font-size: 1.9rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.2rem;
}

.article-body code,
.slide code {
  background: rgba(17, 17, 17, 0.08);
  padding: 2px 8px;
  border-radius: 8px;
}

.article-body pre,
.slide pre {
  overflow: auto;
  padding: 16px;
  border-radius: 20px;
  background: #171717;
  color: #f8f0e5;
}

.callout {
  border-left: 4px solid var(--accent);
  padding: 16px 18px;
  background: rgba(203, 75, 42, 0.08);
  border-radius: 0 18px 18px 0;
}

.tldr-box {
  margin: 28px 0 34px;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(17, 17, 17, 0.045);
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.tldr-label {
  margin-bottom: 10px;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}

.tldr-box ul {
  margin: 0;
}

.article-meta-large {
  margin-top: 12px;
}

.source-list {
  display: grid;
  gap: 10px;
  padding-left: 1.2rem;
}

.source-list span {
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.45);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 18px;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  vertical-align: top;
}

th {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.single-column {
  grid-template-columns: 1fr;
}

.footer {
  padding: 40px 0 60px;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.slides-shell {
  padding: 28px 0 80px;
}

.slides-nav {
  position: sticky;
  top: 92px;
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.slide {
  min-height: calc(100vh - 160px);
  padding: 40px;
  margin-bottom: 18px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(243, 231, 210, 0.9)),
    radial-gradient(circle at top right, rgba(203, 75, 42, 0.18), transparent 28%);
  border: 1px solid rgba(17,17,17,0.08);
  box-shadow: var(--shadow);
  display: grid;
  align-content: start;
}

.slide h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 0 0 12px;
}

.slide p,
.slide li {
  font-size: 1.08rem;
  line-height: 1.8;
}

.slide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.info-card {
  padding: 22px;
}

.notice {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(17,17,17,0.18);
  background: rgba(255,255,255,0.5);
}

@media (max-width: 980px) {
  .hero-grid,
  .newsletter-strip,
  .community-grid,
  .community-hero,
  .comments-layout,
  .lead-gate-layout,
  .slide-grid,
  .stats,
  .grid-3,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .section-header,
  .footer-grid {
    align-items: start;
    flex-direction: column;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 10px 0;
  }

  .brand-copy span {
    display: none;
  }

  .brand-copy strong {
    font-size: 0.82rem;
    letter-spacing: 0.09em;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-shell {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 249, 239, 0.98);
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 24px 70px rgba(44, 26, 17, 0.18);
  }

  body.has-nav-open .nav-shell {
    display: block;
  }

  .nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav a {
    padding: 12px 10px;
    border-radius: 14px;
  }

  .nav a[aria-current="page"],
  .nav a:hover {
    background: rgba(13, 70, 102, 0.07);
  }

  .topbar-actions {
    justify-content: flex-end;
  }

  .auth-modal-card {
    top: 18px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .slides-nav {
    top: 78px;
  }

  .hero {
    padding: 48px 0 28px;
  }

  .page-hero {
    padding: 42px 0 18px;
  }

  .hero-copy {
    padding: 8px 0;
  }

  .hero-copy p,
  .article-subtitle,
  .article-body,
  .slide p,
  .slide li {
    line-height: 1.7;
  }

  .section {
    padding: 34px 0;
  }

  .section-header {
    margin-bottom: 18px;
  }
}

@media (max-width: 640px) {
  .shell,
  .content-shell {
    width: min(var(--max), calc(100vw - 20px));
  }

  h1 {
    line-height: 1;
    font-size: clamp(2.45rem, 12vw, 3.7rem);
  }

  table {
    min-width: 520px;
  }

  .hero-card,
  .slide,
  .article-card,
  .glass-card,
  .feature-card,
  .newsletter-card {
    padding: 22px;
    border-radius: 24px;
  }

  .nav {
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-copy strong {
    font-size: 0.76rem;
  }

  .global-auth-label {
    display: none;
  }

  .global-auth-button {
    min-width: 48px;
    padding: 0 14px;
  }

  .editorial-comment {
    grid-template-columns: 1fr;
  }

  .comment-rail {
    grid-auto-flow: column;
    justify-content: start;
    justify-items: start;
  }

  .chat-widget-shell {
    right: 12px;
    bottom: 12px;
  }

  .chat-widget-bot {
    width: 74px;
    height: 74px;
  }

  .chat-widget-face {
    width: 68px;
    height: 68px;
  }

  .chat-widget-pill {
    font-size: 0.92rem;
    padding: 0 14px;
  }

  .lead-gate-card {
    padding: 22px;
  }

  .chat-widget-pill {
    display: none;
  }

  .chat-widget-panel {
    width: min(100vw - 16px, 390px);
    max-height: 68vh;
  }
}
