/* ─────────────────────────────────────────
   PyDeployer — styles.css
   Font: Geist · Geist Mono
   ───────────────────────────────────────── */

:root {
  --ink:    #0f0f0f;
  --ink-2:  #333;
  --ink-3:  #999;
  --line:   #e8e8e8;
  --wash:   #f8f8f8;
  --white:  #fff;
  --accent: #a70c39;

  --r:  5px;
  --t:  150ms ease;

  --font: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Geist Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; overflow-y: scroll; }
img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; text-decoration: none; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ── */
.wrap {
  width: 100%;
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.main-content { flex: 1; }

/* ───────────────────────────────────────────
   SITE BANNER
   ─────────────────────────────────────────── */
.site-banner {
  background: var(--accent);
  color: var(--white);
  height: 44px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.site-banner .wrap {
  display: flex;
  align-items: center;
}

.site-banner-msg {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  line-height: 1;
  padding-top: 14px;
}

.site-banner-link {
  color: var(--white);
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  transition: opacity var(--t);
}
.site-banner-link:hover { opacity: .75; }


/* ───────────────────────────────────────────
   NAV
   ─────────────────────────────────────────── */
.site-header {
  position: relative;
  padding: .9rem 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img { height: 20px; display: block; margin-top: 7px; margin-left: -5px; }

.site-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.site-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  padding: .3rem .65rem;
  border-radius: var(--r);
  line-height: 1;
  position: relative;
  transition: background var(--t);
}
.site-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: .65rem;
  right: .65rem;
  height: 1px;
  background: var(--ink);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.site-link:hover::after  { transform: scaleX(1); }
.site-link.is-active::after { transform: scaleX(1); }

.site-link-icon {
  display: inline-flex;
  align-items: center;
  font-size: 1.1rem;
  color: var(--ink);
  padding: .3rem .4rem;
  margin-left: .25rem;
  border-radius: var(--r);
  transition: background var(--t);
}
.site-link-icon:hover { background: var(--wash); }

/* Menu toggle */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: .4rem .45rem;
  cursor: pointer;
  font-size: .95rem;
  color: var(--ink);
  border-radius: var(--r);
  transition: background var(--t);
}
.menu-btn:hover { background: var(--wash); }

@media (max-width: 680px) {
  .menu-btn { display: flex; }

  .site-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
    padding: .75rem 1.5rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
  }
  .site-links.is-open { display: flex; }

  .site-link       { padding: .55rem .25rem; font-size: .9rem; }
  .site-link::after { left: .25rem; right: .25rem; bottom: 3px; }
  .site-link-icon  { margin-left: 0; padding: .55rem .25rem; }
}

/* ───────────────────────────────────────────
   HERO
   ─────────────────────────────────────────── */
.hero {
  padding: 6rem 0 5.5rem;
}

.hero-kicker {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.5rem;
  padding-left: .75rem;
  border-left: 2.5px solid var(--accent);
}

.hero-title {
  font-size: clamp(1.2rem, 2.25vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.06;
  max-width: 680px;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: .975rem;
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 600;
  padding: .6rem 1.25rem;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--white);
  border: 1.5px solid var(--ink);
  transition: opacity var(--t), transform var(--t);
  letter-spacing: -.01em;
}
.btn-primary:hover { opacity: .82; color: var(--white); transform: translateY(-1px); }
.btn-primary.btn-sm { font-size: .775rem; padding: .45rem 1rem; }

/* ───────────────────────────────────────────
   FEATURED GUIDES CAROUSEL
   ─────────────────────────────────────────── */
.featured-guides {
  padding: 3rem 0;
}

.featured-guides-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
}

.featured-carousel { position: relative; }

/* Slide */
.featured-slide {
  display: flex;
  gap: 2.5rem;
  align-items: stretch;
  color: var(--ink);
  height: 155px;
  overflow: hidden;
}

.featured-slide-img {
  width: 240px;
  flex-shrink: 0;
  height: 155px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--wash);
}

.featured-slide-body {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
  padding-block: .875rem;
}

.featured-slide-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.3;
  flex-shrink: 0;
}
.featured-slide-title a { color: inherit; transition: color var(--t); }
.featured-slide-title a:hover { color: var(--accent); }

.featured-slide-intro {
  font-size: .875rem;
  color: var(--ink-2);
  line-height: 1.75;
  max-height: calc(0.875rem * 1.75 * 3);
  overflow: hidden;
}
.featured-slide-intro .rich-text,
.featured-slide-intro p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-slide-intro a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}



/* Nav row: [←] [bars] [→] */
.featured-carousel { padding-bottom: 0; }

.featured-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: .5rem;
}

.featured-nav-arrow {
  background: none;
  border: none;
  padding: .1rem .3rem;
  font-size: .6rem;
  color: var(--ink-3);
  cursor: pointer;
  line-height: 1;
  transition: color var(--t);
}
.featured-nav-arrow:hover { color: var(--ink); }

/* Bar indicators — override Bootstrap */
.featured-indicators {
  position: static !important;
  display: flex !important;
  align-items: center;
  gap: .3rem;
  margin: 0 !important;
}
.featured-indicators button {
  width: 28px !important;
  height: 3px !important;
  min-width: 0;
  border-radius: 2px !important;
  border-top: none !important;
  border-bottom: none !important;
  background-color: #d0d0d0 !important;
  opacity: 1 !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
  transition: background-color var(--t), width var(--t) !important;
}
.featured-indicators button.active {
  background-color: var(--accent) !important;
  width: 42px !important;
}

@media (max-width: 680px) {
  .featured-slide { flex-direction: column; gap: 1rem; height: auto; padding: 0; }
  .featured-slide-img { width: 100%; height: 160px; }
}

/* ───────────────────────────────────────────
   COVERAGE SECTION
   ─────────────────────────────────────────── */
.coverage {
  padding: 4rem 0;
}

.coverage-group {
  margin-bottom: 5rem;
}
.coverage-group:last-child { margin-bottom: 0; }

.coverage-heading {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: .5rem;
}

.coverage-desc {
  font-size: .9rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.coverage-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.125rem;
}

/* Frameworks — icon-above-name logo grid */
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: .5rem;
}

.lib-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.125rem .5rem 1rem;
  border-radius: 10px;
  transition: background var(--t);
}
.lib-item:hover { background: none; }

.lib-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-bottom: .625rem;
}

.lib-icon-fa {
  font-size: 1.75rem;
  color: var(--ink-3);
  margin-bottom: .625rem;
  line-height: 1;
}

.lib-name {
  font-size: .7rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
}

/* Platforms — horizontal list rows */
.provider-list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  max-width: min(420px, 100%);
}

@media (min-width: 861px) {
  .provider-list {
    display: grid;
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    max-width: 100%;
  }
}

.provider-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .625rem .75rem;
  border-radius: 8px;
  color: var(--ink);
  transition: background var(--t);
}
.provider-item:hover { background: var(--wash); }

.provider-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.provider-icon-fa {
  font-size: 1.1rem;
  color: var(--ink-3);
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}

.provider-name {
  font-size: .9rem;
  font-weight: 400;
  flex: 1;
}

.provider-arrow {
  font-size: .65rem;
  color: var(--ink-3);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--t), transform var(--t);
}
.provider-item:hover .provider-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

/* ───────────────────────────────────────────
   CTA STRIP
   ─────────────────────────────────────────── */
.cta-strip {
  padding: 3.5rem 0;
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.cta-strip-heading {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: .2rem;
}

.cta-strip-sub {
  font-size: .875rem;
  color: var(--ink-2);
}

.cta-strip-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: gap var(--t);
}
.cta-strip-link:hover { gap: .65rem; color: var(--accent); }

/* ───────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────── */
.site-footer {
  padding: 3.5rem 0 6rem;
}

.footer-tagline {
  font-size: .75rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--line);
}

.footer-copy {
  font-size: .75rem;
  color: var(--ink);
  margin: 0 auto 0 0;
}

.footer-legal {
  display: flex;
  gap: 1rem;
}

.footer-legal a {
  font-size: .75rem;
  color: var(--ink);
  position: relative;
}
.footer-legal a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.footer-legal a:hover::after { transform: scaleX(1); }

/* ───────────────────────────────────────────
   SHARED — TAG CHIP
   ─────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--wash);
  border-radius: 4px;
  padding: .15rem .5rem;
  line-height: 1.6;
}
a.tag { color: color-mix(in srgb, var(--accent) 80%, #fff); cursor: pointer; }
a.tag:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ───────────────────────────────────────────
   ERROR PAGES
   ─────────────────────────────────────────── */
.error-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  min-height: 100vh;
}

.error-code {
  font-size: clamp(5rem, 20vw, 9rem);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1;
  color: var(--line);
  margin-bottom: 1.25rem;
  font-family: var(--font);
}

.error-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: .5rem;
}

.error-sub {
  font-size: .9rem;
  color: var(--ink-2);
  margin-bottom: 2rem;
}

/* ───────────────────────────────────────────
   CONTACT PAGE
   ─────────────────────────────────────────── */
.contact-page { padding: 4rem 0 5rem; }

.contact-header {
  margin-bottom: 2.75rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.contact-title {
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -.04em;
  margin-top: .875rem;
  margin-bottom: .625rem;
}

.contact-tagline {
  font-size: .95rem;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 560px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

.contact-main { display: flex; flex-direction: column; padding-top: 1.25rem; }

.contact-section { margin-bottom: 2.75rem; }
.contact-section:last-child { margin-bottom: 0; }

.contact-heading {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .875rem;
}

.contact-section p { font-size: .9rem; color: var(--ink-2); line-height: 1.8; margin-bottom: .75rem; }
.contact-section p:last-child { margin-bottom: 0; }

.contact-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem;
  position: sticky;
  top: 2rem;
}

.contact-card-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .875rem;
}

.contact-card-desc {
  font-size: .875rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.contact-email {
  display: inline-block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--accent);
  position: relative;
}
.contact-email::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.contact-email:hover::after { transform: scaleX(1); }

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-aside { order: -1; }
  .contact-card { position: static; }
}

/* ───────────────────────────────────────────
   PROSE PAGES (Terms, Privacy)
   ─────────────────────────────────────────── */
.prose-page { padding: 3.5rem 0 5rem; }

.prose-wrap { }

.prose-header { margin-bottom: 2.5rem; }

.prose-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.04em;
  margin-bottom: .4rem;
}

.prose-date {
  font-size: .78rem;
  color: var(--ink-3);
}

.prose-section {
  margin-bottom: 2rem;
}
.prose-section:last-child { margin-bottom: 0; }

.prose-section-heading {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .875rem;
}

.prose-section p  { font-size: .9rem; color: var(--ink-2); line-height: 1.8; margin-bottom: .75rem; }
.prose-section p:last-child { margin-bottom: 0; }
.prose-section ul,
.prose-section ol { padding-left: 1.375rem; margin-bottom: .75rem; }
.prose-section li { font-size: .9rem; color: var(--ink-2); line-height: 1.8; margin-bottom: .25rem; }
.prose-section a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose-section strong { font-weight: 600; color: var(--ink); }

/* ───────────────────────────────────────────
   GUIDE INDEX
   ─────────────────────────────────────────── */
.guides-page { padding: 4rem 0 5rem; }

.page-header { margin-bottom: 3rem; }

.page-title {
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -.04em;
  margin-bottom: .5rem;
}

.page-sub {
  font-size: .95rem;
  color: var(--ink-2);
}

.active-filter {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 2.25rem;
  margin-bottom: -1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.active-filter-label {
  font-size: .8rem;
  color: var(--ink-3);
}
.active-filter-value {
  font-size: .75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--wash);
  border-radius: 4px;
  padding: .15rem .5rem;
}
.active-filter-clear {
  font-size: .75rem;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .15rem .5rem;
  transition: color var(--t), border-color var(--t);
}
.active-filter-clear:hover { color: var(--ink-2); border-color: var(--ink-3); }

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.guide-card {
  padding: 1.75rem 0;
  color: var(--ink);
}


.guide-card-top {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .625rem;
}

.guide-date {
  font-size: .75rem;
  color: var(--ink-3);
}

.guide-tags { display: flex; gap: .3rem; flex-wrap: wrap; }
.guide-card .tag { color: var(--ink-3); }

.guide-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.35;
  margin-bottom: .5rem;
}
.guide-card-title a { color: var(--ink-2); transition: color var(--t); }
.guide-card-title a:hover { color: var(--accent); }

.guide-card-intro {
  font-size: .875rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: .875rem;
}
.guide-card-intro a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guide-card-intro a:hover { opacity: .75; }

.guide-card-cta {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap var(--t);
}
.guide-card-cta i { position: relative; top: 1px; }
.guide-card-cta:hover { gap: .6rem; }

.empty-state {
  font-size: .9rem;
  color: var(--ink-3);
  padding: 3rem 0;
}

/* ───────────────────────────────────────────
   GUIDE
   ─────────────────────────────────────────── */
.guide-page {
  position: relative;
  padding: 3.5rem 0 5rem;
}

.guide-wrap { }

.guide-header { margin-bottom: 2.5rem; }

.guide-hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 2.5rem;
}

.guide-title {
  font-size: clamp(1.2rem, 2.25vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin-top: .4rem;
  margin-bottom: 1.5rem;
}

.guide-tags { display: flex; gap: .35rem; flex-wrap: wrap; }

.guide-meta-item,
.guide-meta-sep {
  font-size: .7rem;
  color: var(--ink-3);
}

.guide-image { margin-bottom: 2.5rem; }
.guide-img   { width: 100%; border-radius: 8px; }

/* TOC — single element, repositioned via float on wide screens */
.guide-toc {
  background: #fff;
  border-radius: 8px;
  padding: 0;
  margin-bottom: 2rem;
}

.toc-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .75rem;
  text-align: left;
}

.toc-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
  font-size: .78rem;
  line-height: 1.3;
  color: var(--accent);
  padding: .3rem 0;
  text-align: left;
  transition: color var(--t);
}

@media (min-width: 1536px) {
  .guide-toc {
    float: left;
    clear: left;
    width: 200px;
    /* pull outside .wrap: 200px width + 1.5rem wrap padding + .5rem gap.
       Breakpoint needs to stay >=1536px so the wrap's centering gutter
       is wide enough to fit this pull-out without clipping the viewport edge. */
    margin-left: calc(-200px - 2rem);
    margin-bottom: 0;
    position: sticky;
    top: 2rem;
  }
  .toc-label,
  .toc-link {
    text-align: right;
  }
  .toc-link {
    justify-content: flex-end;
  }
}
.toc-link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Intro */
.guide-intro { margin-bottom: 2.5rem; color: var(--ink-2); font-size: .95rem; line-height: 1.8; }
.guide-intro a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Richtext prose */
.richtext-image.full-width { width: 100%; height: auto; border-radius: 6px; }

.richtext h1, .richtext h2, .richtext h3,
.richtext h4, .richtext h5, .richtext h6 {
  font-weight: 700;
  letter-spacing: -.03em;
  margin-top: 1.75rem;
  margin-bottom: .625rem;
  line-height: 1.25;
}
.richtext h2 { font-size: 1.1rem; }
.richtext h3 { font-size: 1rem; }
.richtext p  { font-size: .95rem; color: var(--ink-2); line-height: 1.8; margin-bottom: .875rem; }
.richtext ul,
.richtext ol { padding-left: 1.5rem; margin-bottom: .875rem; }
.richtext li { font-size: .95rem; color: var(--ink-2); line-height: 1.8; }
.richtext a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.richtext a::after,
.guide-intro a::after,
.guide-card-intro a::after,
.featured-slide-intro a::after,
.callout-body a::after {
  content: "\f08e";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  font-size: .55em;
  margin-left: .2em;
  text-decoration: none;
  display: inline-block;
  vertical-align: 0.4em;
}
.richtext strong { font-weight: 600; color: var(--ink); }
.richtext code,
.guide-intro code,
.callout-body code {
  font-family: var(--mono);
  font-size: .82em;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .1em .35em;
}

/* Blockquote */
.guide-quote {
  border-left: 3px solid var(--line);
  padding: .5rem 0 .5rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .95rem;
  color: var(--ink-2);
  font-style: italic;
  line-height: 1.7;
}

/* Table */
.guide-table-wrap { overflow-x: auto; }
.guide-table-caption { font-size: .875rem; color: var(--ink-3); margin-bottom: .5rem; }
.guide-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.guide-table-wrap th {
  text-align: left;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: .5rem .875rem;
  border-bottom: 2px solid var(--line);
}
.guide-table-wrap td {
  padding: .625rem .875rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .8rem;
  line-height: 1.6;
}
.guide-table-wrap tr:last-child td { border-bottom: none; }

/* Code header */
.code-lang {
  position: absolute;
  top: .6rem;
  left: 1rem;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--ink-3);
  text-transform: lowercase;
  letter-spacing: .04em;
  pointer-events: none;
}

/* Summary */
.guide-summary {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.summary-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}

/* Footer: back link + share bar */
.guide-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.guide-back {
  font-size: .85rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: color var(--t);
}
.guide-back:hover { color: var(--accent); opacity: .8; }

.guide-share {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.share-label {
  font-size: .8125rem;
  color: var(--ink-3);
  margin-right: .25rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: .80rem;
  color: var(--white);
  border: 1px solid transparent;
  transition: opacity var(--t);
}

.share-btn--x        { background: #000; }
.share-btn--linkedin { background: #0a66c2; }
.share-btn--reddit   { background: #ff4500; }
.share-btn--hn       { background: #f60; }

.share-btn:hover { opacity: .75; }


/* ───────────────────────────────────────────
   GUIDE BODY BLOCKS
   ─────────────────────────────────────────── */
.guide-body { display: flex; flex-direction: column; gap: 1.25rem; }

.guide-h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.25;
  margin-top: 1.25rem;
  padding-bottom: .625rem;
  border-bottom: 1px solid var(--line);
}
.guide-h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.3;
  margin-top: .5rem;
}
.guide-h4 {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.guide-h3 + .richtext,
.guide-h4 + .richtext {
  margin-top: -.75rem;
}

.guide-figure { margin: .25rem 0; }
.guide-figure-img { width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.guide-figure-caption {
  font-size: .8rem;
  color: var(--ink-3);
  text-align: center;
  margin-top: .5rem;
}

.callout {
  border-radius: 6px;
  padding: .875rem 1.25rem;
  border-left: 3px solid;
}
.callout-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-bottom: .375rem;
}
.callout-body { font-size: .875rem; color: var(--ink-2); line-height: 1.75; }
.callout-body p { margin: 0; font-size: inherit; color: inherit; line-height: inherit; }
.callout-body a { color: var(--accent); text-decoration: underline; }
.callout-body strong { font-weight: 600; }
.callout-body ul, .callout-body ol { padding-left: 1.25rem; margin: .25rem 0 0; }

.callout-info    { background: #eff6ff; border-color: #3b82f6; }
.callout-info    .callout-label { color: #3b82f6; }
.callout-tip     { background: #f0fdf4; border-color: #22c55e; }
.callout-tip     .callout-label { color: #16a34a; }
.callout-warning { background: #fffbeb; border-color: #f59e0b; }
.callout-warning .callout-label { color: #d97706; }
.callout-danger  { background: #fef2f2; border-color: #ef4444; }
.callout-danger  .callout-label { color: #dc2626; }
.callout-note       { background: #f5f3ff; border-color: #8b5cf6; }
.callout-note       .callout-label { color: #7c3aed; }
.callout-disclosure { background: #f0fdfa; border-color: #14b8a6; }
.callout-disclosure .callout-label { color: #0d9488; }
.callout-faq        { background: #eef2ff; border-color: #6366f1; }
.callout-faq        .callout-label { color: #4f46e5; }

.guide-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}
.guide-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ───────────────────────────────────────────
   CODE BLOCKS (guide pages)
   ─────────────────────────────────────────── */
.code-block {
  position: relative;
  background: var(--wash);
  border-radius: var(--r);
  margin-top: -.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
}
.code-block pre  {
  margin: 0;
  padding: 1.75rem 0 .75rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.code-block pre::-webkit-scrollbar { display: none; }
.code-block code { font-family: var(--mono); font-size: .8rem; }
.code-block .hljs { background: transparent; }

.code-copy-btn {
  position: absolute; top: .6rem; right: .6rem;
  background: rgba(0,0,0,.06); border: none; border-radius: 4px;
  color: var(--ink-3); padding: .25rem .5rem; font-size: .75rem; cursor: pointer;
  transition: background var(--t), color var(--t);
}
.code-copy-btn:hover { background: rgba(0,0,0,.12); color: var(--ink); }

/* ───────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────── */


/* Tablet — 480px to 860px */
@media (max-width: 860px) {
  .hero     { padding: 4.5rem 0 4rem; }
  .coverage { padding: 3.25rem 0; }
  .cta-strip { padding: 3rem 0; }
}

/* Mobile — up to 640px */
@media (max-width: 640px) {
  .guides-page   { padding: 2.5rem 0 3.5rem; }
  .guide-page      { padding: 2.5rem 0 3.5rem; }
  .guide-toc       { padding: 0; }
  .hero              { padding: 3rem 0 2.75rem; }
  .hero-sub          { max-width: 100%; }

  .coverage          { padding: 2.5rem 0; }
  .coverage-group    { margin-bottom: 2.5rem; }

  .lib-grid          { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }


  .cta-strip         { padding: 2.25rem 0; }
  .cta-strip-inner   { flex-direction: column; align-items: flex-start; }

  .footer-tagline    { white-space: normal; }
  .footer-bottom     { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .footer-copy       { margin-right: 0; }
}

/* Extra small — up to 400px */
@media (max-width: 400px) {
  .wrap              { padding-inline: 1rem; }
  .hero              { padding: 2.5rem 0 2.25rem; }
  .lib-grid          { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .footer-legal      { flex-direction: column; gap: .5rem; }
}
