/* DESIGN: spherecrm.net | modern SaaS, clean, minimal, professional, conversion-focused | Lexend + Inter | wide editorial rhythm + card grids | hero with stat strip + split proof row */

:root {
  --blue-950: #0b1f3a;
  --blue-900: #0f2744;
  --blue-800: #153a5f;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --gray-50: #f6f8fb;
  --gray-100: #eef2f7;
  --gray-200: #dbe3ed;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.08);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --header-h: 72px;
  --max: 1180px;
  --section-y: 72px;
  --block-pad: 24px;
  --layout-inline: clamp(24px, 5vw, 48px);
  --font-display: "Lexend", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-800);
}

a:hover {
  color: var(--teal-600);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--white);
  border: 2px solid var(--teal-500);
  border-radius: 8px;
  z-index: 10000;
}

.shell {
  width: min(calc(100% - 2 * var(--layout-inline)), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  width: min(calc(100% - 2 * var(--layout-inline)), var(--max));
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo--img {
  gap: 0;
  line-height: 0;
}

.logo-image {
  display: block;
  width: auto;
  height: auto;
  max-height: 44px;
  max-width: min(240px, 52vw);
  object-fit: contain;
}

.site-footer .logo--footer .logo-image {
  max-height: 38px;
  max-width: min(200px, 48vw);
}

.logo--img:hover .logo-image {
  opacity: 0.94;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-900), var(--teal-600));
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 1.05rem;
}

.logo-text span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--gray-700);
}

.site-nav a:hover {
  background: var(--gray-100);
  color: var(--blue-900);
}

.site-nav a.is-active {
  background: var(--gray-100);
  color: var(--blue-900);
}

.site-nav a.nav-pill {
  background: var(--blue-900);
  color: var(--white);
}

.site-nav a.nav-pill:hover {
  background: var(--blue-800);
  color: var(--white);
}

.site-nav a.nav-pill.is-active {
  box-shadow: 0 0 0 2px var(--teal-400);
}

.ad-wrap {
  width: min(calc(100% - 2 * var(--layout-inline)), 728px);
  margin: 16px auto 0;
  min-height: 0;
}

.ad-wrap ins,
.ad-inline ins,
.ad-float ins,
.ad-sky ins {
  display: block;
}

.breadcrumb {
  width: min(calc(100% - 2 * var(--layout-inline)), var(--max));
  margin: 0 auto;
  padding: 12px 0 16px;
  text-align: left;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--gray-200);
  font-weight: 500;
  pointer-events: none;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--gray-700);
}

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

.breadcrumb [aria-current="page"] {
  color: var(--blue-950);
  font-weight: 700;
}

.breadcrumb-strip {
  width: 100%;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.08), rgba(15, 39, 68, 0.05));
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-strip .breadcrumb {
  padding-top: 12px;
  padding-bottom: 16px;
  margin-bottom: 0;
}

.hero {
  padding: var(--section-y) 0;
  background: radial-gradient(1200px 500px at 10% -10%, rgba(20, 184, 166, 0.14), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(15, 39, 68, 0.12), transparent 50%),
    linear-gradient(180deg, var(--white), var(--gray-50));
  border-bottom: 1px solid var(--gray-200);
}

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

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 12px 0 16px;
  color: var(--blue-950);
}

.lead {
  font-size: 1.125rem;
  color: var(--gray-700);
  margin: 0 0 24px;
  max-width: 54ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal-600);
  color: var(--white);
  border-color: var(--teal-600);
}

.btn-primary:hover {
  background: #0f766e;
  border-color: #0f766e;
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-900);
  border-color: var(--gray-200);
}

.btn-secondary:hover {
  border-color: var(--teal-500);
  color: var(--blue-900);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .stat-strip {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue-900);
}

.stat-card span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.hero-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-panel figcaption {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-100);
}

.subnav {
  margin-top: 8px;
  padding: 12px 0 0;
  border-top: 1px dashed var(--gray-200);
}

.subnav p {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.subnav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subnav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--blue-900);
}

.subnav-links a:hover {
  border-color: var(--teal-500);
}

section[id] {
  scroll-margin-top: 80px;
}

.section {
  padding: var(--section-y) 0;
}

/* Tinted section surfaces (home + inner pages) */
.section--mint {
  background: linear-gradient(
    180deg,
    rgba(20, 184, 166, 0.1) 0%,
    rgba(246, 248, 251, 0.98) 100%
  );
  border-top: 1px solid rgba(13, 148, 136, 0.18);
  border-bottom: 1px solid var(--gray-200);
}

.section--paper {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.section--slate {
  background: linear-gradient(
    165deg,
    rgba(11, 31, 58, 0.06) 0%,
    rgba(246, 248, 251, 1) 50%,
    rgba(20, 184, 166, 0.06) 100%
  );
  border-top: 1px solid var(--gray-200);
}

.blog-hero--band {
  background: linear-gradient(
    125deg,
    rgba(15, 39, 68, 0.07) 0%,
    rgba(20, 184, 166, 0.11) 45%,
    rgba(255, 255, 255, 1) 100%
  );
  border-bottom: 1px solid var(--gray-200);
}

.blog-hero--band .eyebrow {
  color: var(--blue-800);
}

.blog-layout--surface {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--block-pad);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 980px) {
  .blog-layout--surface {
    padding: 18px;
  }
}

.read-more.read-more--band {
  margin-top: 40px;
  padding: var(--block-pad);
  padding-top: 28px;
  border-top: none;
  border-radius: var(--radius-md);
  background: linear-gradient(
    180deg,
    rgba(11, 31, 58, 0.04) 0%,
    rgba(20, 184, 166, 0.08) 100%
  );
  border: 1px solid rgba(13, 148, 136, 0.25);
  box-shadow: var(--shadow-sm);
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--blue-950);
}

.section-head p {
  margin: 0;
  color: var(--gray-700);
  font-size: 1.05rem;
}

.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .split-feature {
    grid-template-columns: 1fr;
  }
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.feature-list li {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.feature-list strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 4px;
  color: var(--blue-900);
}

.rss-block {
  margin-top: 32px;
  padding: var(--block-pad);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.rss-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.rss-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-900);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(20, 184, 166, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
  }
}

.rss-note {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.rss-cards {
  display: grid;
  gap: 10px;
}

.rss-card {
  display: block;
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
  text-decoration: none;
  color: inherit;
  background: var(--gray-50);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.rss-card:hover {
  border-color: var(--teal-500);
  background: var(--white);
}

.rss-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--blue-950);
}

.rss-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.ticker-wrap {
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.ticker {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
  padding: 12px 0;
}

.ticker:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker a {
  text-decoration: none;
  color: var(--blue-900);
  font-weight: 600;
  font-size: 0.9rem;
}

.ticker a span {
  color: var(--gray-500);
  font-weight: 500;
  margin-left: 8px;
}

/* Legacy .faq (unused on current pages; kept for safety) */
.faq {
  display: grid;
  gap: 12px;
}

.feature-list--workflows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list--workflows li {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .feature-list--workflows {
    grid-template-columns: 1fr;
  }
}

/* Homepage FAQ section */
.faq-section {
  position: relative;
  padding: calc(var(--section-y) + 12px) 0;
  background: linear-gradient(185deg, var(--gray-100) 0%, var(--gray-50) 38%, var(--white) 100%);
  border-top: 1px solid var(--gray-200);
}

.faq-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--teal-600), var(--blue-800), var(--teal-500));
  pointer-events: none;
}

.faq-section__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.faq-section__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.faq-section__intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  color: var(--blue-950);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  line-height: 1.18;
}

.faq-section__lead {
  margin: 0;
  font-size: 1.06rem;
  color: var(--gray-700);
  line-height: 1.62;
}

.faq-section__panel {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  padding: 8px 12px 12px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--blue-950);
  transition: background 0.18s ease;
}

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

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--teal-600);
  border-bottom: 2px solid var(--teal-600);
  transform: rotate(45deg);
  margin-top: -5px;
  transition: transform 0.22s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.faq-item summary:hover {
  background: rgba(13, 148, 136, 0.07);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: -4px;
  border-radius: var(--radius-sm);
}

.faq-item__body {
  padding: 0 16px 20px 16px;
}

.faq-item__body p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.68;
  font-size: 0.98rem;
}

@media (max-width: 600px) {
  .faq-item summary {
    font-size: 0.98rem;
    padding: 16px 12px;
  }

  .faq-item__body {
    padding: 0 12px 16px 12px;
  }
}

.site-footer {
  position: relative;
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 45%);
  padding: 48px 0 40px;
  margin-top: var(--section-y);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-600), var(--blue-800), var(--teal-500));
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand-text {
  margin: 12px 0 0;
  max-width: 44ch;
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.55;
}

.footer-col-title {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-meta {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--gray-200);
  grid-column: 1 / -1;
}

.copyright {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Blog */
.blog-hero {
  padding: var(--section-y) 0 24px;
}

.blog-hero.blog-hero--band {
  padding: var(--section-y) 0 28px;
  margin-bottom: 16px;
}

.blog-hero h1 {
  margin-top: 8px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  padding-bottom: var(--section-y);
}

@media (max-width: 980px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

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

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 20px;
  justify-items: center;
  width: 100%;
}

.sidebar .ad-inline,
.sidebar .ad-sky {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
}

.sidebar .ad-inline ins,
.sidebar .ad-sky ins {
  margin-inline: auto;
}

@media (max-width: 980px) {
  .sidebar {
    position: static;
    max-width: 320px;
    margin-inline: auto;
  }
}

.sidebar .ad-sky {
  display: none;
}

@media (min-width: 981px) {
  .sidebar .ad-sky {
    display: flex;
  }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 22px;
}

.filter-btn {
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--gray-700);
}

.filter-btn.is-active {
  background: var(--blue-900);
  color: var(--white);
  border-color: var(--blue-900);
}

.post-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--white);
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 600px) {
  .post-card {
    grid-template-columns: 1fr;
  }
}

.post-card:hover {
  border-color: var(--teal-500);
}

.post-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-100);
  min-height: 84px;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blue-950);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal-600);
  margin-bottom: 8px;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.post-excerpt {
  margin: 8px 0 0;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.mixed-feed .rss-card[data-hidden="true"] {
  display: none;
}

/* Article — horizontal rhythm from .shell + --layout-inline */
.article-main {
  min-width: 0;
}

.article-layout .prose {
  max-width: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 32px;
  align-items: start;
  padding-bottom: var(--section-y);
}

@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

.article-sky {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

@media (max-width: 980px) {
  .article-sky {
    display: none;
  }
}

.article-header {
  padding: 0 0 24px;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--gray-200);
  background: transparent;
}

.article-header .tag {
  margin-bottom: 10px;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--blue-950);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.topic-tags span {
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.prose {
  font-size: 1.05rem;
  color: var(--gray-900);
  max-width: 68ch;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose h2 {
  font-family: var(--font-display);
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  font-size: 1.45rem;
  color: var(--blue-950);
}

.prose h3 {
  font-family: var(--font-display);
  margin-top: 1.3em;
  margin-bottom: 0.45em;
  font-size: 1.15rem;
  color: var(--blue-900);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  margin: 28px 0;
}

.pull-quote {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--teal-600);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.15rem;
  font-family: var(--font-display);
  color: var(--blue-900);
}

.ad-float {
  float: right;
  width: 300px;
  max-width: 100%;
  margin: 6px 0 16px 20px;
}

@media (max-width: 640px) {
  .ad-float {
    float: none;
    width: 100%;
    margin: 16px 0;
  }
}

.read-more {
  padding: 48px 0 0;
  border-top: 1px solid var(--gray-200);
  margin-top: 40px;
}

.read-more h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 16px;
  color: var(--blue-950);
}

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

@media (max-width: 900px) {
  .read-grid {
    grid-template-columns: 1fr;
  }
}

.read-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.read-card a {
  text-decoration: none;
  color: inherit;
}

.read-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--blue-950);
}

.read-card .read-link {
  margin-top: auto;
  font-weight: 800;
  color: var(--teal-600);
}

.read-card:hover {
  border-color: var(--teal-500);
}

.rss-fallback {
  font-size: 0.9rem;
  color: var(--gray-500);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--gray-200);
  background: var(--gray-50);
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
