/*
 * style-blog-article-light.css — TriDigi Blog ARTICLE PAGE, light editorial theme
 * ─────────────────────────────────────────────────────────────────────────────
 * Linked ONLY by individual article pages (e.g. the zero-click-searches post),
 * AFTER style.css and style-blog.css, so it wins the cascade on shared
 * selectors without needing !important.
 *
 * Scope discipline:
 *   - blog.html (the archive/listing page) also carries body.blog-page and
 *     must stay on the existing dark theme — so every rule here that touches
 *     a selector shared with blog.html (nav, WhatsApp float, footer helpers)
 *     is scoped under body.article-light, a class added ONLY to article
 *     pages using this stylesheet.
 *   - .art-* / .toc-list / .sidebar-* / .related-item selectors are, today,
 *     only ever rendered inside .art-layout on an article page, so they are
 *     redesigned directly without the extra prefix.
 *
 * Contents:
 *   1. Nav + WhatsApp float (light overrides, scoped to .article-light)
 *   2. Article hero
 *   3. Layout + sidebar (TOC, share, related)
 *   4. Article content typography (headings, body, lists, emphasis)
 *   5. Lead paragraph
 *   6. Key insight callouts
 *   7. Stat blocks
 *   8. Comparison table
 *   9. Numbered strategy blocks
 *   10. GEO featured section
 *   11. FAQ accordion
 *   12. CTA strip
 *   13. Light footer
 *   14. Responsive
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* ═══════════════════════════════════════════════════════════════════════════
   1. NAV + WHATSAPP FLOAT — restore the light theme on this page only
   ═══════════════════════════════════════════════════════════════════════════ */

body.article-light {
  background: var(--white);
}

body.article-light #mainNav {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--lgrey);
  backdrop-filter: saturate(180%) blur(8px);
}
body.article-light #mainNav .nav-links a,
body.article-light #mainNav .nav-links li a {
  color: var(--black) !important;
}
body.article-light #mainNav .nav-links a:hover {
  color: var(--orange) !important;
}

body.article-light .wa-tooltip {
  background: var(--black);
  color: var(--white);
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. ARTICLE HERO
   ═══════════════════════════════════════════════════════════════════════════ */

body.article-light .art-hero {
  background: var(--white);
  padding: 128px 24px 56px;
  border-bottom: 1px solid var(--lgrey);
}

/* Retire the animated glow/orbs/nodes — too "tech dashboard" for an editorial
   hero — but keep a faint, fully static grid texture for quiet depth. */
body.article-light .art-orb,
body.article-light .art-nodes {
  display: none;
}
body.article-light .art-hero-grid {
  background-image: repeating-linear-gradient(90deg, rgba(13, 13, 13, 0.035) 0 1px, transparent 1px 90px), repeating-linear-gradient(0deg, rgba(13, 13, 13, 0.035) 0 1px, transparent 1px 60px);
  animation: none; /* static — no drift, no pulse */
}

body.article-light .art-hero-inner {
  max-width: 760px;
  position: relative;
  z-index: 1; /* sit above the grid texture */
}

/* One-time entrance on load — plays once, never loops */
@keyframes artHeroFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
body.article-light .art-back-link,
body.article-light .art-cat-pill,
body.article-light .art-title,
body.article-light .art-byline,
body.article-light .art-excerpt {
  opacity: 0;
  animation: artHeroFadeUp 0.7s ease forwards;
}
body.article-light .art-back-link {
  animation-delay: 0s;
}
body.article-light .art-cat-pill {
  animation-delay: 0.08s;
}
body.article-light .art-title {
  animation-delay: 0.16s;
}
body.article-light .art-byline {
  animation-delay: 0.3s;
}
body.article-light .art-excerpt {
  animation-delay: 0.38s;
}

@media (prefers-reduced-motion: reduce) {
  body.article-light .art-back-link,
  body.article-light .art-cat-pill,
  body.article-light .art-title,
  body.article-light .art-byline,
  body.article-light .art-excerpt {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

body.article-light .art-back-link {
  color: var(--grey);
  font-weight: 800;
}
body.article-light .art-back-link:hover {
  color: var(--orange);
}

body.article-light .art-cat-pill {
  background: rgba(242, 116, 33, 0.08);
  border: 1px solid rgba(242, 116, 33, 0.25);
  color: var(--orange);
}

body.article-light .art-title {
  color: var(--black);
}
body.article-light .art-title em {
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
}

body.article-light .art-byline {
  color: var(--grey);
}
body.article-light .art-byline-dot {
  color: var(--lgrey);
}
body.article-light .art-author {
  color: var(--black);
}

body.article-light .art-excerpt {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--grey);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. LAYOUT + SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════ */

body.article-light .art-layout {
  max-width: 1140px;
}

/* Sidebar containers — light editorial cards */
body.article-light .sidebar-toc,
body.article-light .sidebar-share,
body.article-light .sidebar-related {
  background: var(--white);
  border: 1px solid var(--lgrey);
  border-radius: 12px;
}

.sidebar-toc {
  padding: 0;
  overflow: hidden;
}
.sidebar-toc > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-toc > summary::-webkit-details-marker {
  display: none;
}
.sidebar-toc > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--grey);
  border-bottom: 2px solid var(--grey);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.sidebar-toc[open] > summary::after {
  transform: rotate(-135deg);
}

body.article-light .toc-list {
  padding: 4px 14px 16px;
  max-height: 380px; /* keeps a long (10+ section) TOC from dominating the sidebar */
  overflow-y: auto;
}
body.article-light .toc-list a {
  color: var(--grey);
  border-left-color: var(--lgrey);
}
body.article-light .toc-list a:hover,
body.article-light .toc-list a.active {
  color: var(--orange);
  border-left-color: var(--orange);
  background: rgba(242, 116, 33, 0.06);
  border-radius: 0 8px 8px 0;
}

body.article-light .sidebar-share,
body.article-light .sidebar-related {
  padding: 20px 22px;
}
body.article-light .sidebar-toc h4,
body.article-light .sidebar-share h4,
body.article-light .sidebar-related h4 {
  color: var(--grey);
}

body.article-light .share-btn {
  border: 1px solid var(--lgrey);
  color: var(--grey);
  cursor: pointer;
}
body.article-light .share-btn:hover {
  background: var(--offwhite);
  color: var(--black);
}
body.article-light .share-btn.wa {
  border-color: rgba(37, 211, 102, 0.3);
  color: #1a9c53;
}
body.article-light .share-btn.wa:hover {
  background: rgba(37, 211, 102, 0.08);
}

body.article-light .related-item {
  border-bottom-color: var(--lgrey);
}
body.article-light .related-item .rel-cat {
  color: var(--orange);
}
body.article-light .related-item .rel-title {
  color: var(--black);
}
body.article-light .related-item:hover .rel-title {
  color: var(--orange);
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. ARTICLE CONTENT TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════════════ */

body.article-light .art-content {
  color: #333333;
  font-size: 18px;
  line-height: 1.8;
}
body.article-light .art-content h2 {
  color: var(--black);
  font-size: 1.65rem;
  border-top-color: var(--lgrey);
}
body.article-light .art-content h2:first-of-type {
  border-top: none;
}
body.article-light .art-content h3 {
  color: var(--black);
}
body.article-light .art-content h4 {
  color: var(--black);
  font-size: 1rem;
  font-weight: 800;
  margin: 22px 0 8px;
}
body.article-light .art-content .art-emph {
  color: var(--orange);
  font-weight: 800;
}
body.article-light .art-content ul li,
body.article-light .art-content ol li {
  color: #333333;
}
body.article-light .art-content ul li::before {
  color: var(--orange);
}
body.article-light .art-content ol li::before {
  background: rgba(242, 116, 33, 0.1);
  border-color: rgba(242, 116, 33, 0.3);
  color: var(--orange);
}
body.article-light .art-content a:not(.btn-primary) {
  color: var(--orange);
  text-decoration-color: rgba(242, 116, 33, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. LEAD PARAGRAPH
   ═══════════════════════════════════════════════════════════════════════════ */

body.article-light .art-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #222222;
  font-weight: 500;
}
body.article-light .art-lead::first-letter {
  font-family: var(--font-black);
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--orange);
  float: left;
  line-height: 0.8;
  padding: 6px 8px 0 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. KEY INSIGHT CALLOUTS
   ═══════════════════════════════════════════════════════════════════════════ */

body.article-light .art-content .art-callout {
  background: var(--offwhite);
  border-left: 3px solid var(--orange);
  border-radius: 0 10px 10px 0;
  color: #333333;
  font-size: 1.02rem;
  font-style: normal;
}
body.article-light .art-content .art-callout strong {
  display: block;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. STAT BLOCKS — elegant editorial, no card chrome
   ═══════════════════════════════════════════════════════════════════════════ */

body.article-light .art-stat-row {
  border-top: 1px solid var(--lgrey);
  border-bottom: 1px solid var(--lgrey);
  padding: 28px 0;
  gap: 0;
}
body.article-light .art-stat {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0 24px;
  text-align: left;
  position: relative;
}
body.article-light .art-stat + .art-stat {
  border-left: 1px solid var(--lgrey);
}
body.article-light .art-stat .stat-num {
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--orange);
  font-family: var(--font-black);
  font-size: 2.3rem;
}
body.article-light .art-stat .stat-lbl {
  color: var(--grey);
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. COMPARISON TABLE
   ═══════════════════════════════════════════════════════════════════════════ */

body.article-light .art-table {
  border: 1px solid var(--lgrey);
  border-radius: 10px;
  overflow: hidden;
}
body.article-light .art-table th {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
body.article-light .art-table td {
  border-color: var(--lgrey);
  color: #333333;
}
body.article-light .art-table tr:nth-child(even) td {
  background: var(--offwhite);
}
body.article-light .art-table .td-good {
  color: #4a8f1f;
  font-weight: 700;
}
body.article-light .art-table .td-bad {
  color: var(--grey);
}

/* Wide data-matrix variant (4+ columns) — denser type/padding, and a
   min-width on the table itself so the wrapper's horizontal scroll
   kicks in predictably instead of squeezing columns unreadably. */
body.article-light .art-table.art-table--wide {
  border-radius: 10px;
}
body.article-light .art-table.art-table--wide th,
body.article-light .art-table.art-table--wide td {
  padding: 10px 14px;
  font-size: 0.86rem;
}
body.article-light .art-table.art-table--wide th:first-child,
body.article-light .art-table.art-table--wide td:first-child {
  min-width: 160px;
}
body.article-light .art-table.art-table--wide {
  min-width: 560px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. NUMBERED STRATEGY BLOCKS
   ═══════════════════════════════════════════════════════════════════════════ */

.art-strategy {
  display: flex;
  gap: 20px;
  margin: 34px 0;
  align-items: flex-start;
}
.art-strategy-num {
  flex-shrink: 0;
  font-family: var(--font-black);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1.2;
  min-width: 46px;
}
.art-strategy-body h3 {
  margin: 0 0 8px !important;
}
.art-strategy-body p:last-child,
.art-strategy-body ul:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   10. GEO FEATURED SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.art-feature {
  background: var(--offwhite);
  border-radius: 14px;
  padding: 32px 32px 8px;
  margin: 0 0 8px;
  border-top: 3px solid var(--orange);
}
.art-feature h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════════════════ */

.art-faq-item {
  border-bottom: 1px solid var(--lgrey);
}
.art-faq-item:first-of-type {
  border-top: 1px solid var(--lgrey);
}
.art-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 20px 4px;
  font-family: inherit;
}
.art-faq-q h3 {
  margin: 0 !important;
  font-size: 1.05rem !important;
  color: var(--black);
}
.art-faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}
.art-faq-icon::before,
.art-faq-icon::after {
  content: "";
  position: absolute;
  background: var(--orange);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.art-faq-icon::before {
  width: 14px;
  height: 2px;
}
.art-faq-icon::after {
  width: 2px;
  height: 14px;
  transition: transform 0.25s ease;
}
.art-faq-q[aria-expanded="true"] .art-faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.art-faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.art-faq-a-inner {
  padding: 0 4px 20px;
}
.art-faq-a-inner p {
  margin: 0 !important;
  color: #333333;
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. CTA STRIP
   ═══════════════════════════════════════════════════════════════════════════ */

body.article-light .art-cta-strip {
  background: var(--offwhite);
  border: 1px solid var(--lgrey);
  border-radius: 16px;
}
body.article-light .art-cta-strip h3 {
  color: var(--black);
}
body.article-light .art-cta-strip p {
  color: var(--grey);
}

/* ═══════════════════════════════════════════════════════════════════════════
   13. LIGHT FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.art-footer-light {
  background: var(--offwhite);
  border-top: 1px solid var(--lgrey);
  padding: 48px 24px 28px;
}
.art-footer-light .aff-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.art-footer-light .aff-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 36px;
}
.art-footer-light .aff-brand {
  max-width: 280px;
}
.art-footer-light .aff-brand img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  margin-bottom: 14px;
  display: block;
}
.art-footer-light .aff-brand p {
  color: var(--grey);
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0;
}
.art-footer-light h5 {
  color: var(--grey);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.art-footer-light ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.art-footer-light a {
  color: #444444;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.art-footer-light a:hover {
  color: var(--orange);
}
.art-footer-light .aff-bottom {
  border-top: 1px solid var(--lgrey);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.art-footer-light .aff-copy {
  color: var(--grey);
  font-size: 0.8rem;
  margin: 0;
}
.art-footer-light .aff-social {
  display: flex;
  gap: 10px;
}
.art-footer-light .aff-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--lgrey);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 0.75rem;
  font-weight: 800;
}
.art-footer-light .aff-social a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ═══════════════════════════════════════════════════════════════════════════
   14. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  body.article-light .art-hero {
    padding: 112px 20px 40px;
  }
  body.article-light .art-content {
    font-size: 16.5px;
  }
  body.article-light .art-lead {
    font-size: 1.12rem;
  }
  .art-strategy {
    gap: 14px;
  }
  .art-strategy-num {
    font-size: 1.3rem;
    min-width: 36px;
  }
  .art-feature {
    padding: 24px 20px 4px;
    border-radius: 10px;
  }
  .aff-cols {
    flex-direction: column;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  body.article-light .art-stat-row {
    flex-direction: column;
    gap: 20px;
  }
  body.article-light .art-stat + .art-stat {
    border-left: none;
    border-top: 1px solid var(--lgrey);
    padding-top: 16px;
  }
  body.article-light .art-stat {
    padding: 0 4px;
  }
}
