/* Article-page styles — inherits design tokens via shared base */
:root {
  /* AI Realty — "Ink Panel" palette (design system v1.1, Aug 2026): white,
     graphite ink, no gold — gold is reserved for the app's dark showcase
     panel, not spent on these pages. */
  --bg: oklch(1 0 0); /* #FFFFFF */
  --bg-elev: #fff;
  --bg-sunk: oklch(0.9523 0.0029 84.56); /* #F0EFED */
  --card: #fff;
  --card-tinted: oklch(0.98 0.003 84.59);
  --ink: oklch(0.2225 0.0041 84.59); /* #1C1B19 — the dark theme's own background, as ink */
  --ink-2: oklch(0.3417 0.0059 78.25); /* #3A3835 */
  --ink-3: oklch(0.4685 0.0054 78.27); /* #5C5A57 */
  --ink-4: oklch(0.7 0.004 84.59);
  --line: oklch(0.92 0.005 84.59);
  --line-2: oklch(0.9223 0.0058 84.57); /* #E7E5E1 */
  --accent: oklch(0.2225 0.0041 84.59); /* #1C1B19 — graphite, not gold */
  --accent-ink: oklch(0.3178 0.0075 84.59); /* #34322E — lighter graphite for hover */
  --accent-soft: oklch(0.943 0.0042 91.45); /* #EDECE9 */
  --accent-soft-2: oklch(0.92 0.005 84.59);
  --trust: oklch(0.5171 0.0595 150.11); /* #4F7256 — darkened for AA text contrast on light bg */
  --trust-soft: oklch(0.9459 0.0102 145.49); /* #E9EFE9 */
  --info: oklch(0.5447 0.0621 240.56); /* #4E7591 — matches app chart-4 */
  --info-soft: oklch(0.95 0.015 240);
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --shadow-1: 0 1px 0 rgba(60, 40, 20, 0.04), 0 1px 2px rgba(60, 40, 20, 0.04);
  --shadow-2: 0 1px 0 rgba(60, 40, 20, 0.04), 0 4px 14px rgba(60, 40, 20, 0.06);
  --shadow-pop: 0 18px 40px -16px rgba(60, 40, 20, 0.18);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--accent-ink);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Top nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    color-mix(in oklch, var(--accent) 70%, black) 100%
  );
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
}
.nav nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav nav a {
  color: inherit;
}
.nav nav a:hover {
  color: var(--ink);
  text-decoration: none;
}
.btn-cta {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.btn-cta:hover {
  background: var(--accent-ink);
}

/* Article hero */
.hero-cover {
  height: 320px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  /* Graphite fallback behind the real cover photo — no per-article hue is
     ever set, so this is what actually renders when an image is missing. */
  background: linear-gradient(
    135deg,
    oklch(0.2779 0.0062 78.23) 0%,
    oklch(0.2225 0.0041 84.59) 100%
  );
}
.hero-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.03);
}
.hero-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(25, 18, 12, 0.18), rgba(25, 18, 12, 0.56)),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 20% 90%, rgba(255, 255, 255, 0.12) 0%, transparent 45%);
  z-index: 1;
}
.hero-cover-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1;
  margin-top: 8px;
}

/* Article container */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 28px 32px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.breadcrumb a {
  color: var(--ink-3);
}
.breadcrumb a:hover {
  color: var(--accent-ink);
}
.article-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cat-pill {
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
h1.title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  color: var(--ink);
  padding-bottom: 8px;
}
h1.title em {
  font-style: italic;
  color: var(--accent-ink);
}
.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 36px;
  font-weight: 400;
}

/* Body content */
article.body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}
article.body p {
  margin: 0 0 22px;
}
article.body h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 56px 0 18px;
  color: var(--ink);
}
article.body h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  margin: 36px 0 12px;
  color: var(--ink);
}
article.body strong {
  color: var(--ink);
  font-weight: 600;
}
article.body ul,
article.body ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
article.body li {
  margin-bottom: 10px;
}
article.body blockquote {
  border-left: 3px solid var(--accent);
  margin: 28px 0;
  padding: 8px 0 8px 22px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
}
article.body code {
  background: var(--bg-sunk);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.92em;
}
article.body figure {
  margin: 32px -40px;
  background: var(--card-tinted);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
article.body figure.article-image img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}
article.body figcaption {
  padding: 12px 20px;
  background: #fff;
  font-size: 13px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}

/* Callout / TLDR */
.tldr {
  background: var(--info-soft);
  border: 1px solid oklch(0.85 0.03 240);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 0 0 36px;
}
.tldr-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--info);
  margin-bottom: 8px;
}
.tldr p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.direct-answer {
  margin: 0 0 32px;
  padding: 20px 24px;
  border: 1px solid oklch(0.85 0.03 155);
  border-radius: var(--r-md);
  background: var(--trust-soft);
}
.direct-answer p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}
.comparison-table,
.benchmark-table {
  display: grid;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.comparison-table div,
.benchmark-table div {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
.comparison-table span,
.benchmark-table span {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
}
.comparison-table div:first-child span,
.benchmark-table div:first-child span {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
}

/* Stats grid (illustrative figures) */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0;
}
.stat {
  background: var(--card-tinted);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 16px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1;
  color: var(--accent-ink);
  font-style: italic;
}
.stat-label {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 6px;
  line-height: 1.4;
}

/* Numbered tactic list */
.tactic-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  counter-reset: tactic;
}
.tactic-list > li {
  counter-increment: tactic;
  padding: 20px 0 20px 56px;
  position: relative;
  border-top: 1px solid var(--line);
}
.tactic-list > li::before {
  content: counter(tactic, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-ink);
  font-weight: 500;
}
.tactic-list > li:last-child {
  border-bottom: 1px solid var(--line);
}
.tactic-list h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}
.tactic-list p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-2);
}

/* CTA banner inside article */
.cta-banner {
  background: linear-gradient(
    135deg,
    oklch(0.2779 0.0062 78.23) 0%,
    oklch(0.2225 0.0041 84.59) 100%
  );
  color: #fff;
  border-radius: var(--r-lg);
  padding: 36px 32px;
  margin: 48px 0;
  text-align: center;
}
.cta-banner h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  color: #fff;
}
.cta-banner p {
  margin: 0 0 18px;
  opacity: 0.85;
  font-size: 15px;
}
.cta-banner .btn-cta {
  background: var(--accent);
}

.geo-note {
  margin: 40px 0;
  padding: 22px 24px;
  border: 1px solid oklch(0.85 0.03 240);
  border-radius: var(--r-md);
  background: var(--info-soft);
}
.geo-note h3 {
  margin-top: 0;
}
.faq-block {
  margin: 56px 0 0;
}
.faq-block details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.faq-block details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-block summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
.faq-block details p {
  margin: 10px 0 0;
  color: var(--ink-2);
}
.data-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.data-table th,
.data-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
.data-table th {
  color: var(--ink);
  background: var(--bg-sunk);
}

/* Tag list */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.tag-row span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--bg-sunk);
  color: var(--ink-2);
  padding: 5px 11px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* Related */
.related {
  background: var(--bg-sunk);
  border-top: 1px solid var(--line);
  padding: 64px 28px;
}
.related-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.related h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 28px;
  color: var(--ink);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.related-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
  text-decoration: none;
}
.related-img {
  display: block;
  width: 100%;
  height: 128px;
  object-fit: cover;
}
.related-cover {
  height: 110px;
  display: grid;
  place-items: center;
  color: #fff;
}
.related-cover .label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  opacity: 0.92;
}
.related-body {
  padding: 16px;
}
.related-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 8px;
}
.related-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}
.article-index {
  max-width: 960px;
}
.article-list .related-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 28px 32px;
  background: var(--bg);
  font-size: 13px;
  color: var(--ink-3);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner nav {
  display: flex;
  gap: 18px;
}

/* Responsive */
@media (max-width: 720px) {
  .article-wrap {
    padding: 32px 20px;
  }
  article.body figure {
    margin: 24px 0;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .article-list .related-grid {
    grid-template-columns: 1fr;
  }
  .nav nav {
    display: none;
  }
}
