/* ==========================================================================
   BOLD STYLE OVERRIDES — solid colors, strong borders, no fading
   ========================================================================== */

/* Stronger background contrast — alternate Ivory and full color sections */
body {
  background: var(--bg);
  color: var(--text);
}

/* Buttons — full color, hard shadow (no blur) */
.btn,
.btn-dark,
.btn-ghost {
  border: 2px solid var(--text);
  border-radius: 999px;
  box-shadow: 4px 4px 0 0 var(--text);
  transition: transform 0.15s, box-shadow 0.15s;
  font-weight: 700;
}

.btn-dark {
  background: var(--accent);
  color: var(--text);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
}

.btn:hover,
.btn-dark:hover,
.btn-ghost:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--text);
  background: var(--teal);
  color: var(--text);
}

/* Cards — strong border + flat */
.home-quickstart-card,
.home-topic,
.home-cat,
.home-blog-card,
.related-card,
.post-card,
.home-hero-stat {
  border: 2px solid var(--text) !important;
  border-radius: 16px !important;
  box-shadow: 4px 4px 0 0 var(--text) !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
  background: var(--bg-card) !important;
}

.home-quickstart-card:hover,
.home-topic:hover,
.home-cat:hover,
.home-blog-card:hover,
.related-card:hover,
.post-card:hover {
  transform: translate(-2px, -2px) !important;
  box-shadow: 6px 6px 0 0 var(--text) !important;
  background: var(--teal) !important;
}

/* Topic card thumbnails — solid Pear, no blend */
.home-topic-img {
  background: var(--teal) !important;
  border-bottom: 2px solid var(--text) !important;
}

.home-topic-img span {
  color: var(--text) !important;
  opacity: 1 !important;
  font-weight: 700 !important;
  font-style: normal !important;
}

/* Category icons — solid Indigo bg with strong border */
.home-cat-icon {
  background: var(--accent) !important;
  color: var(--text) !important;
  border: 2px solid var(--text) !important;
  font-style: normal !important;
  font-weight: 700 !important;
}

/* Hero stats card — Indigo accent */
.home-hero-stat-num {
  color: var(--accent) !important;
}

/* Sections rhythm — alternating Ivory + Indigo + Pear */
.home-quickstart {
  background: var(--accent) !important;
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
}

.home-quickstart-card {
  background: var(--bg) !important;
}

.home-quickstart-card:hover {
  background: var(--teal) !important;
}

.home-quickstart-num {
  background: var(--text);
  color: var(--bg);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0 !important;
}

/* Mission section — keep dark, full Indigo accent */
.home-mission {
  background: var(--text) !important;
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
}

.home-mission .eyebrow,
.home-mission .link-arrow {
  color: var(--teal) !important;
}

.home-stat-num {
  color: var(--teal) !important;
}

.home-stat {
  background: rgba(255,255,255,0.08) !important;
  border: 2px solid var(--teal) !important;
  backdrop-filter: none !important;
}

/* Blog section — Pear background */
.home-blog {
  background: var(--teal) !important;
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
}

.home-blog-card {
  background: var(--bg) !important;
}

.home-blog-card:hover {
  background: var(--accent) !important;
}

.home-blog-meta {
  color: var(--text-muted) !important;
}

/* CTA card — solid Pear with strong border */
.home-cta-inner {
  background: var(--accent) !important;
  border: 2px solid var(--text) !important;
  border-radius: 24px !important;
  box-shadow: 8px 8px 0 0 var(--text) !important;
}

/* Partners — Ivory with strong border separators */
.home-partners {
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
}

/* Eyebrow labels — Indigo solid */
.eyebrow,
.home-hero-eyebrow,
.home-topic-cat,
.related-card-cat,
.search-result-cat {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

/* Hero title em — Indigo */
.home-hero-title em {
  color: var(--accent) !important;
}

/* Hero quote — solid Indigo border */
.home-hero-quote {
  border-left: 4px solid var(--accent) !important;
  color: var(--text) !important;
  background: var(--bg-card);
  padding: 1rem 1.25rem !important;
  border: 2px solid var(--text);
  border-left: 6px solid var(--accent) !important;
  border-radius: 12px;
}

/* Links inline — bold Indigo underline */
.link,
.prose a {
  color: var(--accent) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
  font-weight: 600;
}

.prose a:hover {
  background: var(--teal);
  color: var(--text) !important;
}

/* Header — strong bottom border */
.header {
  background: var(--bg) !important;
  border-bottom: 2px solid var(--text) !important;
  backdrop-filter: none !important;
}

.header.is-scrolled {
  background: var(--bg) !important;
  box-shadow: 0 4px 0 0 var(--text) !important;
}

/* Nav links — solid hover state */
.nav-link:hover {
  background: var(--accent) !important;
  color: var(--text) !important;
}

/* Search trigger — strong border */
.search-trigger {
  border: 2px solid var(--text) !important;
  background: var(--bg-card) !important;
  color: var(--text) !important;
}

.search-trigger:hover {
  background: var(--teal) !important;
  border-color: var(--text) !important;
  color: var(--text) !important;
}

/* Dropdown nav — strong border */
.nav-dropdown {
  border: 2px solid var(--text) !important;
  border-radius: 12px !important;
  box-shadow: 4px 4px 0 0 var(--text) !important;
  background: var(--bg-card) !important;
}

.nav-dropdown a:hover {
  background: var(--teal) !important;
  color: var(--text) !important;
}

/* Reading progress — solid Indigo */
.reading-progress {
  background: var(--accent) !important;
  height: 4px !important;
}

/* TOC — bold borders */
.toc {
  border: 2px solid var(--text) !important;
  border-radius: 12px !important;
  background: var(--bg-card) !important;
  box-shadow: 4px 4px 0 0 var(--text);
}

.toc a.is-active {
  background: var(--teal) !important;
  color: var(--text) !important;
  border-left: 3px solid var(--text) !important;
  font-weight: 700;
}

/* Starter banner — solid Pear */
.starter-banner {
  background: var(--teal) !important;
  color: var(--text) !important;
  border-bottom: 2px solid var(--text) !important;
  font-weight: 600;
}

.starter-banner a {
  color: var(--text) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
}

/* Feedback widget */
.feedback-widget {
  background: var(--accent) !important;
  border: 2px solid var(--text) !important;
  border-radius: 16px !important;
  box-shadow: 4px 4px 0 0 var(--text);
}

.feedback-btn {
  border: 2px solid var(--text) !important;
  background: var(--bg-card) !important;
  font-weight: 700;
}

.feedback-btn:hover {
  background: var(--teal) !important;
}

.feedback-btn.is-selected {
  background: var(--text) !important;
  color: var(--bg) !important;
}

/* Page header — solid */
.page-header {
  background: var(--bg) !important;
  border-bottom: 2px solid var(--text) !important;
}

.page-title em {
  color: var(--accent) !important;
}

/* Footer — Pear contrast */
.footer {
  background: var(--accent) !important;
  color: var(--text) !important;
  border-top: 2px solid var(--text) !important;
}

.footer a {
  color: var(--text) !important;
}

.footer a:hover {
  background: var(--teal);
  color: var(--text) !important;
}

/* Search modal — strong border */
.search-modal {
  border: 2px solid var(--text) !important;
  border-radius: 16px !important;
  box-shadow: 6px 6px 0 0 var(--text) !important;
}

.search-result.is-active,
.search-result:hover {
  background: var(--teal) !important;
}

.search-result-title {
  font-weight: 700 !important;
}

/* Decorative circles — kill them entirely (they were the muted radial fades) */
.hero-decoration,
.cta-decoration,
[class*="-decoration"] {
  display: none !important;
}

/* Topic image placeholder text */
.home-topic h3 {
  color: var(--text) !important;
  font-weight: 600;
}

.home-cat h3 {
  font-weight: 700;
}

/* ==========================================================================
   LOGO IMAGE
   ========================================================================== */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 4px 0;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
  transition: transform 0.15s;
}

.logo:hover .logo-img {
  transform: scale(1.03);
}

@media (max-width: 700px) {
  .logo-img { height: 26px; }
}


/* ==========================================================================
   PRINT — Fact Sheet specific
   ========================================================================== */
@media print {
  .dld-banner {
    border: 2px solid #000 !important;
    background: #f0f0f0 !important;
    page-break-inside: avoid;
  }
  .btn, button {
    display: none !important;
  }
  h2 {
    page-break-after: avoid;
  }
  ul, ol {
    page-break-inside: avoid;
  }
}


/* ==========================================================================
   INSTAGRAM FEED SECTION (above footer)
   ========================================================================== */
.ig-feed {
  padding: 4rem 1.5rem 5rem;
  background: var(--bg);
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
}

.ig-feed-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- Header (profile + follow button) ---- */
.ig-feed-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.ig-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 200px;
}

.ig-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}

.ig-avatar svg {
  width: 32px;
  height: 32px;
}

.ig-profile-info {
  flex: 1;
}

.ig-handle {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

.ig-stats {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.ig-follow-btn {
  white-space: nowrap;
}

.ig-bio {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 720px;
}

.ig-bio strong {
  color: var(--accent);
  font-weight: 700;
}

/* ---- Grid of posts ---- */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ig-feed { padding: 3rem 1rem 3.5rem; }
  .ig-handle { font-size: 1.3rem; }
}

.ig-post {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--text);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 4px 4px 0 0 var(--text);
}

.ig-post:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--text);
}

.ig-post-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
}

.ig-post-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.ig-post-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.25;
}

/* Alternating background colors for visual interest */
.ig-post-1 { background: var(--accent); }
.ig-post-2 { background: var(--teal); }
.ig-post-3 { background: var(--bg-card); }
.ig-post-4 { background: var(--teal); }
.ig-post-5 { background: var(--bg-card); }
.ig-post-6 { background: var(--accent); }

/* Heart overlay icon (top-right) */
.ig-post-overlay {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 22px;
  height: 22px;
  color: var(--text);
  opacity: 0.6;
}

.ig-post-overlay svg {
  width: 100%;
  height: 100%;
}

.ig-post:hover .ig-post-overlay {
  opacity: 1;
  transform: scale(1.15);
  transition: all 0.2s;
}

/* ---- Footer (View all link) ---- */
.ig-feed-footer {
  margin-top: 2rem;
  text-align: center;
}

.ig-feed-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: gap 0.2s;
}

.ig-feed-link:hover {
  background: var(--teal);
  color: var(--text);
}

/* Print: hide IG feed */
@media print {
  .ig-feed { display: none !important; }
}
