/* Fablun GEO P0+P1 editorial, comparison, CLI docs, FAQ, and dark-shell overrides */
.fm-catalog-head h1.fm-catalog-h1 {
  margin: 0 0 4px !important;
  font-size: 22px !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.fm-geo-editorial {
  margin-top: 40px;
}

.fm-geo-lead {
  font-size: 15px;
  line-height: 1.65;
  color: #2c3442;
  margin: 10px 0 10px;
  max-width: 78ch;
}

.fm-geo-sub {
  font-size: 14px;
  line-height: 1.65;
  color: #525d70;
  margin: 0 0 18px;
  max-width: 78ch;
}

.fm-geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.fm-geo-card {
  border: 1px solid rgba(10, 11, 14, 0.10);
  border-radius: 14px;
  padding: 18px 18px 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(10, 11, 14, 0.03);
}

.fm-geo-card h2,
.fm-geo-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  color: #0a0b0e;
}

.fm-geo-card p,
.fm-geo-card li {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #4a5568;
}

.fm-geo-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.fm-geo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.fm-geo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(10, 11, 14, 0.12);
  background: #f8fafc;
  color: #0f172a !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.fm-geo-pill:hover {
  border-color: rgba(43, 120, 201, 0.45);
  background: #eff6ff;
}

.fm-compare-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 0 36px;
}

.fm-breadcrumb-back {
  margin: 0 0 14px;
  font-size: 13.5px;
}

.fm-breadcrumb-back a {
  color: #475569;
  text-decoration: none;
}

.fm-breadcrumb-back a:hover {
  color: #0f172a;
  text-decoration: underline;
}

.fm-compare-hero {
  margin-bottom: 24px;
}

.fm-compare-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.028em;
  color: #0a0b0e;
}

.fm-tldr-box {
  margin: 16px 0 20px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.20);
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6ff 100%);
}

.fm-tldr-box strong {
  display: block;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1d4ed8;
  margin-bottom: 6px;
}

.fm-tldr-box p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #1e293b;
}

.fm-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
  margin: 20px 0 8px;
}

.fm-compare-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.fm-compare-card h2 a {
  color: #0a0b0e;
  text-decoration: none;
}

.fm-compare-card h2 a:hover {
  text-decoration: underline;
}

.fm-compare-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.fm-cli-code {
  margin: 12px 0 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  border: 1px solid #1e293b;
}

.fm-cli-tools {
  margin: 12px 0 16px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}

.fm-faq {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.fm-faq details {
  border: 1px solid rgba(10, 11, 14, 0.10);
  border-radius: 13px;
  background: #ffffff;
  padding: 0;
}

.fm-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #0a0b0e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fm-faq summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
  color: #64748b;
}

.fm-faq details[open] summary::after {
  content: "−";
}

.fm-faq-a {
  padding: 0 18px 14px;
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
}

.fm-faq-a p {
  margin: 0;
}

/* Dark-shell overrides for /models/<slug> */
.fm-page-dark .fm-geo-editorial h2,
.fm-page-dark .fm-geo-faq-wrap h2 {
  color: #f4f4f6;
}

.fm-page-dark .fm-geo-lead {
  color: #d4d4d8;
}

.fm-page-dark .fm-geo-sub {
  color: #a1a1aa;
}

.fm-page-dark .fm-geo-card {
  background: #141417;
  border-color: #26262c;
  box-shadow: none;
}

.fm-page-dark .fm-geo-card h3 {
  color: #f4f4f6;
}

.fm-page-dark .fm-geo-card p {
  color: #a1a1aa;
}

.fm-page-dark .fm-geo-pill {
  background: #18181c;
  border-color: #2b2b33;
  color: #e4e4e7 !important;
}

.fm-page-dark .fm-geo-pill:hover {
  background: #202026;
  border-color: #3f3f4a;
}

.fm-page-dark .fm-faq details {
  background: #141417 !important;
  border-color: #26262c !important;
  box-shadow: none !important;
}

.fm-page-dark .fm-faq details[open] {
  background: #17171b !important;
  border-color: #32323b !important;
}

.fm-page-dark .fm-faq summary {
  color: #f4f4f6 !important;
}

.fm-page-dark .fm-faq summary::after {
  color: #a1a1aa;
}

.fm-page-dark .fm-faq-a,
.fm-page-dark .fm-faq-a p {
  color: #b4b4be !important;
}
@media (max-width: 640px) {
  .fm-compare-shell .sd-table-scroll table {
    min-width: 0;
    width: 100%;
  }
  .fm-compare-shell .sd-table-scroll th,
  .fm-compare-shell .sd-table-scroll td {
    padding: 8px 8px;
    font-size: 12px;
    line-height: 1.45;
  }
}

.fm-page-dark .fm-faq details[open] summary::after {
  background-color: #272730;
  color: #f4f4f6;
}
