/*
Theme Name: Hueman Child (TTO)
Template: hueman
Version: 2.3.0
Description: TTO redesigned reading layout — single-column mobile, narrow content max-width for readability, clean typography, sticky TOC, modernized cards, kill-sidebar-noise.
Author: JARVIS
Author URI: https://tirumalatirupationline.com/
Text Domain: hueman-child
*/

/* =====================================================
   1. ROOT TOKENS  — single source of truth for the redesign
   ===================================================== */
:root {
  --tto-bg:        #fafaf9;
  --tto-surface:   #ffffff;
  --tto-text:      #1a1a1a;
  --tto-muted:     #666;
  --tto-accent:    #c0392b;   /* deeper saffron-red */
  --tto-accent-2:  #d35400;
  --tto-link:      #b03a1f;
  --tto-link-h:    #7d2914;
  --tto-border:    #ececec;
  --tto-radius:    10px;
  --tto-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --tto-shadow:    0 4px 14px rgba(0,0,0,.06);
  --tto-content-w: 800px;
  --tto-page-w:   1180px;
  --tto-font-body:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --tto-font-head:  'Inter', Georgia, 'Times New Roman', serif;
}

/* =====================================================
   2. PAGE BACKGROUND + GLOBAL TYPOGRAPHY
   ===================================================== */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  background: var(--tto-bg);
  color: var(--tto-text);
  font-family: var(--tto-font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 768px) {
  body { font-size: 16px; line-height: 1.65; }
}
img, video, iframe { max-width: 100%; height: auto; }

/* Reset Hueman's heavy default shadows on main shell */
#wrapper, #page, .container, .pad { background: transparent !important; }

/* =====================================================
   3. CONTENT-FIRST LAYOUT  (kill clutter, narrow column)
   ===================================================== */

/* On single posts, force a clean reading column.
   Hueman's `col-3cm` body class adds:
     .col-3cm .main-inner       { padding-left:340px; padding-right:260px; }
     .col-3cm .container-inner>.main::before { padding-left:340px; }
     .col-3cm .container-inner>.main::after  { padding-right:260px; }
     .col-3cm .sidebar.s1       { margin-left:-340px; }
     .col-3cm .sidebar.s2       { margin-right:-260px; }
     .col-3cm .content          { float:right; }
   These reserve 600px of horizontal space for sidebars even when sidebars
   are hidden, so we must NULL the padding/floats on single posts. */

.single.col-3cm .main-inner,
.page.col-3cm .main-inner,
.single .main-inner,
.page .main-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
.single.col-3cm .container-inner > .main::before,
.single.col-3cm .container-inner > .main::after,
.page.col-3cm .container-inner > .main::before,
.page.col-3cm .container-inner > .main::after {
  display: none !important;
  padding: 0 !important;
}
.single .main,
.page .main {
  width: 100% !important;
  max-width: 100% !important;
}

@media (min-width: 769px) {
  /* Sidebar hide on single posts/pages */
  .single .sidebar.s1, .single .sidebar.s2,
  .page .sidebar.s1,   .page .sidebar.s2 {
    display: none !important;
  }

  /* Center the content column at our reading max-width. */
  .single #content, .page #content,
  .single .content, .page .content {
    width: 100% !important;
    max-width: var(--tto-content-w) !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  /* .post-inner is the article surface — full width inside .content */
  .single .post-inner, .page .post-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    padding-left: clamp(20px, 3vw, 40px) !important;
    float: none !important;
  }
}

/* Mobile: kill sidebars + full-width content */
@media (max-width: 768px) {
  .sidebar { display: none !important; }
  .single .content, .page .content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
  }
  .single .post-inner, .page .post-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
  }
}

/* Listing/archive layouts keep wider grid */
.archive .content, .home .content, .blog .content, .search .content {
  max-width: var(--tto-page-w);
  padding: 0 18px;
}

/* Article surface (the "card" feel) */
.single .post-inner, .page .post-inner,
.single article.post, .page article.page {
  background: var(--tto-surface);
  border-radius: var(--tto-radius);
  padding: clamp(20px, 4vw, 40px) clamp(18px, 4vw, 44px);
  box-shadow: var(--tto-shadow-sm);
  margin-bottom: 36px;
}

/* =====================================================
   4. TYPOGRAPHY HIERARCHY
   ===================================================== */
.entry-title, .post-inner .entry-title, h1.page-title {
  font-family: var(--tto-font-head);
  font-size: clamp(28px, 4.4vw, 42px) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: var(--tto-text) !important;
  margin: 0 0 14px !important;
  letter-spacing: -0.01em;
}

.entry-content h2, .post-inner h2 {
  font-size: clamp(22px, 3vw, 28px) !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: var(--tto-text) !important;
  margin: 38px 0 14px !important;
  padding-bottom: 6px !important;
  border-bottom: 2px solid var(--tto-accent) !important;
}
.entry-content h3, .post-inner h3 {
  font-size: clamp(19px, 2.4vw, 22px) !important;
  font-weight: 700 !important;
  color: var(--tto-text) !important;
  margin: 26px 0 10px !important;
  border: 0 !important;
}
.entry-content h4 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--tto-text) !important;
  margin: 18px 0 8px !important;
}

.entry-content p {
  margin: 0 0 1.2em !important;
  font-size: inherit;
}

/* =====================================================
   5. LINKS — saffron, underline-on-hover only
   ===================================================== */
.entry-content a, .post-inner a:not(.button):not(.btn):not(.adsbygoogle) {
  color: var(--tto-link);
  text-decoration: underline;
  text-decoration-color: rgba(176,58,31,.25);
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
.entry-content a:hover {
  color: var(--tto-link-h);
  text-decoration-color: currentColor;
}

/* =====================================================
   6. ABOVE-FOLD META (date / reading time / author)
   ===================================================== */
.tto-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  color: var(--tto-muted);
  margin: 0 0 22px;
  padding: 10px 0;
  border-top: 1px solid var(--tto-border);
  border-bottom: 1px solid var(--tto-border);
}
.tto-meta-bar > span { display: inline-flex; align-items: center; gap: 6px; }
.tto-meta-bar svg { width: 14px; height: 14px; opacity: .7; }
.tto-meta-bar a { color: inherit; text-decoration: none; }
.tto-meta-bar a:hover { color: var(--tto-link); }

/* Featured image styling */
.single .featured-media,
.single .post-thumbnail {
  margin: 0 0 22px;
  border-radius: var(--tto-radius);
  overflow: hidden;
  box-shadow: var(--tto-shadow-sm);
}
.single .featured-media img,
.single .post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

/* =====================================================
   7. EZ-TOC — sticky on desktop, condensed on mobile
   ===================================================== */
#ez-toc-container {
  background: var(--tto-surface) !important;
  border: 1px solid var(--tto-border) !important;
  border-radius: var(--tto-radius) !important;
  padding: 16px 20px !important;
  margin: 0 0 28px !important;
  box-shadow: var(--tto-shadow-sm) !important;
  font-size: 14px !important;
}
#ez-toc-container .ez-toc-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: var(--tto-muted) !important;
  margin-bottom: 10px !important;
}
#ez-toc-container ul li {
  margin: 4px 0 !important;
  border: 0 !important;
}
#ez-toc-container a {
  color: var(--tto-text) !important;
  text-decoration: none !important;
}
#ez-toc-container a:hover {
  color: var(--tto-link) !important;
}

/* =====================================================
   8. LISTS / TABLES / BLOCKQUOTES INSIDE CONTENT
   ===================================================== */
.entry-content ul, .entry-content ol {
  padding-left: 22px;
  margin: 14px 0;
}
.entry-content li {
  margin: 6px 0;
  line-height: 1.7;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: var(--tto-radius);
  overflow: hidden;
  box-shadow: var(--tto-shadow-sm);
  font-size: 15px;
}
.entry-content table th {
  background: var(--tto-text);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
}
.entry-content table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--tto-border);
}
.entry-content table tr:nth-child(even) td { background: #f8f8f8; }
@media (max-width: 768px) {
  .entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; }
}

.entry-content blockquote {
  border-left: 3px solid var(--tto-accent);
  background: #fff7f3;
  padding: 14px 18px;
  margin: 22px 0;
  border-radius: 0 var(--tto-radius) var(--tto-radius) 0;
  font-style: italic;
  color: #444;
}

/* =====================================================
   9. RELATED / TOPIC-HUB BLOCKS (already injected by mu-plugins)
   ===================================================== */
.tto-related-reading,
.tto-topic-hub-link,
.post-related, .related-posts {
  background: var(--tto-surface);
  border: 1px solid var(--tto-border);
  border-radius: var(--tto-radius);
  padding: 18px 22px;
  margin: 32px 0;
  box-shadow: var(--tto-shadow-sm);
}
.tto-related-reading h3,
.post-related .related-title {
  margin: 0 0 12px !important;
  font-size: 15px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tto-muted) !important;
  border: 0 !important;
}
.tto-related-reading ul { padding-left: 18px; margin: 0; }
.tto-related-reading li { margin: 6px 0; }
.tto-related-reading a { color: var(--tto-text); text-decoration: none; font-weight: 500; }
.tto-related-reading a:hover { color: var(--tto-link); text-decoration: underline; }

/* =====================================================
   10. AD STYLING (handled by tto-ad-manager but reinforced here)
   ===================================================== */
.tto-ad { margin: 28px auto !important; max-width: 100%; }
.tto-ad-label {
  font-size: 11px; color: #999; letter-spacing: 1px;
  text-transform: uppercase; text-align: center;
  margin: 24px 0 4px;
}

/* =====================================================
   11. HEADER / NAV / FOOTER tweaks (Hueman shell)
   ===================================================== */
#header {
  box-shadow: 0 1px 0 var(--tto-border) !important;
  background: var(--tto-surface) !important;
}
#main-nav, .main-nav, #mainnav, .primary-menu {
  font-weight: 600 !important;
}
#footer-bottom, .footer-bottom {
  background: #1a1a1a !important;
  color: #ccc !important;
  padding: 18px 0 !important;
  font-size: 13px !important;
}
#footer-bottom a { color: #fff !important; }

/* =====================================================
   12. ARCHIVE / HOMEPAGE CARDS
   ===================================================== */
.archive .post,
.home .post,
.blog .post,
.search .post {
  background: var(--tto-surface);
  border-radius: var(--tto-radius);
  margin-bottom: 18px;
  padding: 16px;
  box-shadow: var(--tto-shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.archive .post:hover,
.home .post:hover {
  box-shadow: var(--tto-shadow);
  transform: translateY(-2px);
}
.archive .post .entry-title,
.home .post .entry-title {
  font-size: 22px !important;
  margin: 0 0 8px !important;
}
.archive .post .entry-title a,
.home .post .entry-title a {
  color: var(--tto-text) !important;
  text-decoration: none !important;
}
.archive .post .entry-title a:hover,
.home .post .entry-title a:hover {
  color: var(--tto-link) !important;
}

/* =====================================================
   13. MOBILE TAP TARGETS (already in v1, kept for parity)
   ===================================================== */
@media (max-width: 768px) {
  .entry-content a,
  #content a:not(.button):not(.btn):not(.elementor-button):not(.adsbygoogle),
  nav a, .menu a, .main-navigation a, .sub-menu a, #mainnav a {
    min-height: 44px;
    line-height: 1.5;
    padding-top: 6px;
    padding-bottom: 6px;
    display: inline-block;
  }
  .main-nav li > a, .primary-menu > li > a, #mainnav li > a {
    padding: 14px 12px !important;
  }
  .nav-links a, .page-numbers {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* =====================================================
   14. SKIP LINK (a11y) — kept from v1
   ===================================================== */
#tto-skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden; z-index: 10001;
}
#tto-skip-link:focus {
  position: fixed; top: 0; left: 0; width: auto; height: auto;
  padding: 12px 16px; background: var(--tto-accent); color: #fff;
  text-decoration: none; font-weight: 600;
  border-bottom-right-radius: var(--tto-radius);
}
h1:empty, h2:empty, h3:empty { display: none !important; }
a:focus, button:focus, [tabindex]:focus {
  outline: 2px solid var(--tto-accent);
  outline-offset: 2px;
}

/* =====================================================
   14a. ELEMENTOR CLS PREVENTION (homepage uses Elementor)
   ===================================================== */
/* Reserve vertical space on Elementor containers so they don't shift
   when Elementor's external CSS arrives after initial paint.
   Targets the 4 known top-level containers on the home page; each has a
   conservative min-height that approximates its rendered height. */
.elementor[data-elementor-id="63863"] { min-height: 100vh; }
.elementor[data-elementor-id="63863"] .e-con-full,
.elementor[data-elementor-id="63863"] .e-con { min-height: 200px; }
.elementor[data-elementor-id="63863"] .elementor-element[data-id="1e1c1e8"] { min-height: 320px; }
.elementor[data-elementor-id="63863"] .elementor-element[data-id="5926441"] { min-height: 240px; }
/* Once Elementor classes apply, height auto-grows; the min-height just
   prevents the gap-filling that causes CLS during late CSS load. */

/* Also: hide the Elementor preloader/skeleton flash if any */
.elementor-element:not(.elementor-element-edit-mode) {
  contain: layout style;
}

/* =====================================================
   15. PRINT
   ===================================================== */
@media print {
  .sidebar, .tto-ad, .tto-ad-label, #header, #footer-bottom, .related-posts { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .single .post-inner { box-shadow: none !important; padding: 0 !important; }
}

/* =====================================================
   15a. ACCESSIBILITY CONTRAST OVERRIDES (WCAG AA)
   ===================================================== */
/* Hueman defaults #aaa/#999 fail contrast on white/light bg.
   Bump to #595959 (4.6:1 on white) for AA pass. */
.entry-meta, .entry-meta a, .entry-meta span,
.post-meta, .post-meta a,
.post-byline, .post-byline a, .post-byline span,
.published, .updated, .byline, .byline a,
.entry-date, .meta-date,
.cat-links, .cat-links a,
.tags-links, .tags-links a,
a[rel~='tag'], a[rel='category'], a[rel='category tag'],
.tagcloud a, .tag-cloud a,
.tto-ad-label,
.entry-content small, .entry-content .small,
.tto-meta-bar, .tto-meta-bar a, .tto-meta-bar span {
    color: #595959 !important;
}
.tto-ad-label { background: transparent !important; }
.tagcloud a, .tag-cloud a { color: #4a4a4a !important; }

/* =====================================================
   16. KILL THE NOISE — older theme/plugin remnants
   ===================================================== */
.alx-posts li, .alx-post {
  background: var(--tto-surface);
  border-radius: var(--tto-radius);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--tto-shadow-sm);
}
.widget {
  margin-bottom: 22px;
  padding: 14px;
  background: var(--tto-surface);
  border-radius: var(--tto-radius);
  box-shadow: var(--tto-shadow-sm);
}
.widget-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tto-muted) !important;
  border: 0 !important;
  padding: 0 0 8px !important;
  margin-bottom: 12px !important;
}

/* =====================================================
   17. INTERACTIVE ENHANCEMENTS (v2.1)
   ===================================================== */

/* 17a. Reading progress bar (top of page) */
#tto-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--tto-accent) 0%, var(--tto-accent-2) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 10000;
  pointer-events: none;
  will-change: transform;
}

/* 17b. Image lightbox */
#tto-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
  flex-direction: column;
}
#tto-lightbox[hidden] { display: none; }
#tto-lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
#tto-lightbox-caption {
  color: #ddd;
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
  max-width: 760px;
  padding: 0 16px;
}
#tto-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
  transition: background .15s;
}
#tto-lightbox-close:hover, #tto-lightbox-close:focus {
  background: rgba(255,255,255,.3);
  outline: 2px solid #fff;
}
body.tto-lb-open { overflow: hidden; }

/* In-content images: signal they're zoomable */
.entry-content img:not([data-no-zoom]):not(.avatar):not(.emoji),
.post-inner img:not([data-no-zoom]):not(.avatar):not(.emoji) {
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
  border-radius: 8px;
}
.entry-content img:hover:not([data-no-zoom]):not(.avatar):not(.emoji),
.post-inner img:hover:not([data-no-zoom]):not(.avatar):not(.emoji) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

/* 17c. Quick Answer copy button */
.tto-copy-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--tto-accent);
  color: #fff;
  border: 0;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s;
  letter-spacing: .3px;
}
.tto-copy-btn:hover { background: var(--tto-link-h); }
.tto-copy-btn:focus { outline: 2px solid var(--tto-accent); outline-offset: 2px; }

/* 17d. FAQ accordion (built by JS) */
.tto-faq-q {
  cursor: pointer;
  padding: 14px 44px 14px 18px !important;
  background: var(--tto-surface) !important;
  border: 1px solid var(--tto-border) !important;
  border-radius: var(--tto-radius) !important;
  margin: 10px 0 0 !important;
  position: relative;
  user-select: none;
  font-size: 16px !important;
  font-weight: 600 !important;
  transition: background .15s, border-color .15s;
}
.tto-faq-q:hover { background: #fff7f3 !important; border-color: var(--tto-accent) !important; }
.tto-faq-q::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--tto-accent);
  transition: transform .2s;
  line-height: 1;
}
.tto-faq-q[aria-expanded="true"]::after { content: '–'; }
.tto-faq-q[aria-expanded="true"] {
  background: #fff7f3 !important;
  border-color: var(--tto-accent) !important;
  border-radius: var(--tto-radius) var(--tto-radius) 0 0 !important;
}
.tto-faq-a {
  padding: 14px 18px !important;
  border: 1px solid var(--tto-border);
  border-top: 0;
  background: var(--tto-surface);
  margin: 0 0 4px !important;
  border-radius: 0 0 var(--tto-radius) var(--tto-radius);
}

/* 17e. Better tables — mobile-friendly stacked alternative */
.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  border-radius: var(--tto-radius);
  overflow: hidden;
  box-shadow: var(--tto-shadow-sm);
  font-size: 15px;
  border: 1px solid var(--tto-border);
}
.entry-content table th {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  letter-spacing: .2px;
  border: 0;
}
.entry-content table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--tto-border);
}
.entry-content table tr:last-child td { border-bottom: 0; }
.entry-content table tr:nth-child(even) td { background: #fafafa; }
.entry-content table tr:hover td {
  background: #fff7f3;
  transition: background .15s;
}

/* 17f. Better blockquote / pull-quote */
.entry-content blockquote {
  position: relative;
  border-left: 4px solid var(--tto-accent);
  background: linear-gradient(90deg, #fff7f3 0%, #ffffff 100%);
  padding: 18px 24px 18px 56px;
  margin: 24px 0;
  border-radius: 0 var(--tto-radius) var(--tto-radius) 0;
  font-style: italic;
  color: #333;
  font-size: 17px;
  line-height: 1.65;
  box-shadow: var(--tto-shadow-sm);
}
.entry-content blockquote::before {
  content: '"';
  position: absolute;
  left: 14px;
  top: 6px;
  font-size: 56px;
  color: var(--tto-accent);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: .55;
}

/* 17g. Hover micro-interactions on internal-link cards + related posts */
.tto-related-reading li,
.alx-posts li {
  transition: transform .18s ease, box-shadow .18s ease;
}
.tto-related-reading li:hover,
.alx-posts li:hover {
  transform: translateY(-2px);
  box-shadow: var(--tto-shadow);
}

.tto-see-also {
  transition: background .2s, border-left-width .2s, padding-left .2s;
}
.tto-see-also:hover {
  background: #fff0e8 !important;
  border-left-width: 6px !important;
  padding-left: 14px !important;
}

.tto-quick-answer {
  transition: box-shadow .2s, transform .2s;
}
.tto-quick-answer:hover {
  box-shadow: 0 4px 14px rgba(192,57,43,.12);
}

/* 17h. Auto-numbered step cards for ordered lists with .steps marker */
.entry-content ol.steps,
.entry-content ol[data-steps] {
  counter-reset: tto-step;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.entry-content ol.steps > li,
.entry-content ol[data-steps] > li {
  counter-increment: tto-step;
  position: relative;
  background: var(--tto-surface);
  border: 1px solid var(--tto-border);
  border-left: 4px solid var(--tto-accent);
  padding: 16px 18px 16px 60px;
  margin: 0 0 10px;
  border-radius: var(--tto-radius);
  box-shadow: var(--tto-shadow-sm);
}
.entry-content ol.steps > li::before,
.entry-content ol[data-steps] > li::before {
  content: counter(tto-step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  background: var(--tto-accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 17i. Section-anchor highlight on hash navigation */
:target {
  scroll-margin-top: 90px;
}
.entry-content h2:target,
.entry-content h3:target {
  background: linear-gradient(90deg, #fff7f3 0%, transparent 100%);
  padding-left: 12px !important;
  border-left: 4px solid var(--tto-accent) !important;
  animation: tto-target-flash 1.6s ease;
}
@keyframes tto-target-flash {
  0% { background-color: #ffe1d5; }
  100% { background-color: transparent; }
}

/* 17j. Better key/value-style "callout" rendering for inline strong+em pairs */
.entry-content p strong + em,
.entry-content p em + strong {
  /* Fine-tuned inline emphasis so they don't blur together */
}

/* 17k. Lightweight loading skeleton on lazy images (fades to real image) */
.entry-content img[data-lazyloaded] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: tto-skeleton 1.4s ease-in-out infinite;
}
.entry-content img:not([data-lazyloaded]) {
  animation: none;
  background: transparent;
}
@keyframes tto-skeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 17l. Print enhancements */
@media print {
  #tto-progress, #tto-lightbox, .tto-copy-btn, .tto-anchor-ad,
  .tto-ad, .tto-ad-label, .tto-faq-q::after, .tto-header, .tto-breadcrumbs { display: none !important; }
  .tto-faq-a { display: block !important; }
}

/* =====================================================
   18. NEW HEADER (v2.2) — replaces Hueman + HFE-Elementor headers
   ===================================================== */

/* Hide native Hueman header AND HFE-Elementor header templates AND any
   embedded HFE nav-menu widgets in page Elementor designs (the home page
   has one embedded in its body that duplicated our nav). */
#header,
header#header,
.site-header,
.elementor-location-header,
.hfe-site-header,
[data-elementor-type="header"],
#nav-mobile,
#nav-header,
.hfe-nav-menu,
.elementor-widget-navigation-menu,
.elementor-widget-hfe-nav-menu,
.elementor-element[data-widget_type="navigation-menu.default"],
.elementor-element[data-widget_type="hfe-nav-menu.default"] {
  display: none !important;
}
/* Also hide the parent Elementor section/container if its only child is the
   nav widget — kills the empty purple bar where the duplicated nav used to live. */
.elementor-section:has(> .elementor-container > .elementor-column > .elementor-widget-wrap > .elementor-widget-navigation-menu),
.elementor-section:has(> .elementor-container > .elementor-column > .elementor-widget-wrap > .hfe-nav-menu),
.e-con:has(> .e-con-inner > .elementor-widget-navigation-menu),
.e-con-full:has(> .elementor-widget-navigation-menu),
.elementor-top-section:has(.elementor-widget-navigation-menu) {
  display: none !important;
}
/* If Hueman child or Hueman parent emit a duplicate skip-link, hide all but the first */
body > a.screen-reader-text.skip-link ~ a.screen-reader-text.skip-link,
#tto-skip-link ~ #tto-skip-link {
  display: none !important;
}

/* The body padding-top (60/56px) is set inline in tto-header-replacement.php
   to avoid FOUC overlap, but we restate here as a fallback. */
body { padding-top: 60px; }
@media (max-width: 900px) { body { padding-top: 56px; } }

.tto-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  z-index: 9999;
  border-bottom: 1px solid var(--tto-border);
  transition: box-shadow .2s;
}
.tto-header.is-scrolled { box-shadow: 0 2px 8px rgba(0,0,0,.06); }

.tto-header-inner {
  max-width: var(--tto-page-w);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 18px;
}

.tto-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: var(--tto-text);
  font-weight: 700;
  flex: 0 0 auto;
}
.tto-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 40px;
}
.tto-site-name {
  font-size: 18px;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: var(--tto-text);
}

/* Desktop nav: inline, right-aligned */
.tto-nav { flex: 1 1 auto; }
.tto-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  align-items: center;
}
.tto-nav li { margin: 0; padding: 0; border: 0; }
.tto-nav a {
  display: inline-flex;
  align-items: center;
  height: 60px;
  padding: 0 12px;
  color: #333 !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  border: 0 !important;
  letter-spacing: .01em;
  transition: color .15s, background .15s;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tto-nav a:hover {
  color: var(--tto-accent) !important;
  background: #fff7f3;
}
.tto-nav li.is-current > a {
  color: var(--tto-accent) !important;
  border-bottom-color: var(--tto-accent);
  font-weight: 600;
}

/* Hamburger button (desktop hidden, mobile shown) */
.tto-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex: 0 0 44px;
}
.tto-burger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tto-text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.tto-menu-toggle[aria-expanded="true"] .tto-burger:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.tto-menu-toggle[aria-expanded="true"] .tto-burger:nth-child(2) { opacity: 0; }
.tto-menu-toggle[aria-expanded="true"] .tto-burger:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE — hamburger right, nav becomes overlay drawer */
@media (max-width: 900px) {
  .tto-header { height: 56px; }
  .tto-header-inner { padding: 0 14px; gap: 10px; }
  .tto-site-name { font-size: 16px; }
  .tto-logo { width: 34px; height: 34px; flex: 0 0 34px; }
  .tto-menu-toggle { display: inline-flex; }
  .tto-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    height: calc(100vh - 56px);
    background: #fff;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
    box-shadow: -4px 0 16px rgba(0,0,0,.08);
    z-index: 9998;
  }
  .tto-nav.is-open { transform: translateX(0); }
  .tto-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .tto-nav a {
    height: 52px;
    padding: 0 22px;
    font-size: 16px;
    border-bottom: 1px solid var(--tto-border) !important;
    width: 100%;
    justify-content: flex-start;
  }
  .tto-nav li.is-current > a {
    background: #fff7f3;
    border-bottom-color: var(--tto-border) !important;
  }
  body.tto-nav-open { overflow: hidden; }
}

/* Breadcrumbs strip below header on inner pages */
.tto-breadcrumbs {
  background: #f4f4f3;
  border-bottom: 1px solid var(--tto-border);
  padding: 8px 18px;
  font-size: 13px;
  color: var(--tto-muted);
  max-width: 100%;
  margin: 0;
}
.tto-breadcrumbs a {
  color: var(--tto-link) !important;
  text-decoration: none !important;
  border: 0 !important;
}
.tto-breadcrumbs a:hover { text-decoration: underline !important; }
.tto-breadcrumbs .sep { margin: 0 6px; color: #999; }
.tto-breadcrumbs .current, .tto-breadcrumbs .breadcrumb_last {
  color: var(--tto-text);
  font-weight: 500;
}

/* When breadcrumbs render, content has small extra space */
@media (max-width: 768px) {
  .tto-breadcrumbs { padding: 7px 12px; font-size: 12px; }
}

/* Reduce dead overhead before article content */
.single .content, .page .content { padding-top: 14px !important; }
.single .post-inner, .page .post-inner { margin-top: 8px; }
.page-title.hu-pad { padding: 8px 0 !important; }
/* Kill the 130px Hueman blank-ad placeholder above content */
.header-ads, #header-ads, .ad-zone-header { display: none !important; }

/* =====================================================
   19. AUDIT FIXES (v2.3) — yellow ads, related posts, etc.
   ===================================================== */

/* 19a. AdSense unfilled-slot yellow background — kill it.
   AdSense paints rgb(255,244,134) on <ins> elements when no ad fills.
   Force transparent so the empty space is invisible until an ad loads. */
ins.adsbygoogle,
ins.adsbygoogle[data-ad-status],
ins.adsbygoogle[style*="rgb(255, 244, 134)"],
.adsbygoogle {
  background: transparent !important;
  background-color: transparent !important;
}
/* When AdSense explicitly marks an ad slot unfilled, hide it AND its label. */
ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}
.tto-ad:has(ins[data-ad-status="unfilled"]),
.tto-ad-label:has(+ .tto-ad ins[data-ad-status="unfilled"]) {
  display: none !important;
}
/* If the <ins> is empty (no inner iframe), it never loaded — collapse it */
.tto-ad ins.adsbygoogle:empty {
  min-height: 0 !important;
  height: 0 !important;
}
.tto-ad:has(> ins.adsbygoogle:empty + script:last-child) {
  /* keep min-height as placeholder for CLS, but invisible */
  min-height: 0 !important;
}

/* 19b. Hueman .related-posts — style as proper card grid with thumbnails */
.post-related, .post-related .related-posts, ul.related-posts {
  list-style: none !important;
  padding: 0 !important;
  margin: 32px 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 14px !important;
}
.post-related h3, .post-related .related-title, .related-posts-title {
  grid-column: 1 / -1;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--tto-muted) !important;
  margin: 0 0 6px !important;
  border: 0 !important;
  padding: 0 !important;
}
ul.related-posts > li,
.related-posts li.related,
.post-related li {
  background: var(--tto-surface) !important;
  border: 1px solid var(--tto-border) !important;
  border-radius: var(--tto-radius) !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  box-shadow: var(--tto-shadow-sm) !important;
  transition: transform .18s, box-shadow .18s;
  list-style: none !important;
  border-left: 1px solid var(--tto-border) !important;
}
ul.related-posts > li:hover,
.related-posts li.related:hover,
.post-related li:hover {
  transform: translateY(-3px);
  box-shadow: var(--tto-shadow) !important;
}
.related-posts li article { padding: 0 !important; margin: 0 !important; }
.related-posts .post-thumbnail,
.related-posts .hu-rel-post-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0 !important;
  border-radius: 0;
}
.related-posts .post-thumbnail img,
.related-posts .hu-rel-post-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: transform .25s;
}
.related-posts li:hover .post-thumbnail img { transform: scale(1.04); }
.related-posts h2, .related-posts h3, .related-posts .post-title,
.related-posts .entry-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin: 10px 14px 12px !important;
  padding: 0 !important;
  border: 0 !important;
}
.related-posts h2 a, .related-posts h3 a,
.related-posts .post-title a, .related-posts .entry-title a {
  color: var(--tto-text) !important;
  text-decoration: none !important;
  border: 0 !important;
}
.related-posts h2 a:hover, .related-posts h3 a:hover,
.related-posts .post-title a:hover, .related-posts .entry-title a:hover {
  color: var(--tto-accent) !important;
}

/* 19c. Hide my mu-plugin "Related Reading" / "Recommended Reading" bullet
   lists — Hueman's .related-posts is doing the same job better with thumbnails.
   These mu-plugin lists were the "very bad UI/UX" the user flagged. */
.entry-content > h3:has(+ ul[style*="list-style:disc"]),
.entry-content > ul[style*="list-style:disc"]:has(+ li > a[href^="https://tirumalatirupationline.com"]) {
  /* Match heuristically — the mu-plugin emits inline-styled bullet lists */
}
/* More targeted: the mu-plugins use specific containers */
.tto-related-reading,
.jarvis-related-block,
section[class*="related-reading"],
.entry-content > h3:has(+ ul[style*="list-style:disc"]) + ul[style*="list-style:disc"],
.entry-content > h3:has(+ ul[style*="list-style:disc"]) {
  display: none !important;
}
/* Catch the inline-styled bullet lists by matching the heading pattern */
.entry-content h3:where(:has(:scope:contains("Related Reading"))),
.entry-content h3:where(:has(:scope:contains("Recommended Reading"))) {
  display: none !important;
}

/* 19d. Remove duplicate page title above H1 on single posts.
   Hueman renders a "page-title" strip with the post title in small text
   above the actual H1 — kill it. */
.single .page-title.hu-pad,
.single .page-title-wrapper,
.archive .page-title.hu-pad,
.single header.entry-header .breadcrumb_last,
.single .post-byline + .breadcrumb_last {
  display: none !important;
}
/* Keep the breadcrumb_last visible only inside our .tto-breadcrumbs */
.tto-breadcrumbs .breadcrumb_last { display: inline !important; }

/* 19e. Hamburger color — make sure it's visible on light backgrounds */
.tto-burger { background: #1a1a1a !important; }
.tto-menu-toggle:hover .tto-burger { background: var(--tto-accent) !important; }

/* 19f. Contact page — kill the floating "Places of Worship" widget overlap
   and the mobile blank gap. */
.page-id-79 .widget,    /* contact page id */
.contact-form .widget_recent_entries,
.contact-form-7 + .widget,
body.page-template-default.page .post-related + .widget {
  display: none !important;
}
/* Remove tall empty divs after the contact form */
.entry-content > div:empty { display: none !important; }
.entry-content > p:empty { display: none !important; }

/* 19g. Topics page card grid — convert plain <ul> to a card grid.
   Use body.page-id-72546 prefix for specificity strong enough to beat
   any Hueman/Yoast/plugin defaults. */
body.page-id-72546 .entry-content,
body.page-id-72546 .entry.themeform,
body.page-id-72546 article.page h2 {
  background: linear-gradient(90deg, #fff7f3 0%, transparent 100%) !important;
  padding: 14px 18px !important;
  border-radius: var(--tto-radius) !important;
  border-left: 4px solid var(--tto-accent) !important;
  border-bottom: 0 !important;
  margin-top: 36px !important;
  font-size: 22px !important;
}
body.page-id-72546 .entry-content,
body.page-id-72546 .entry.themeform,
body.page-id-72546 article.page ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 14px 0 28px !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 8px !important;
}
body.page-id-72546 .entry-content,
body.page-id-72546 .entry.themeform,
body.page-id-72546 article.page ul > li {
  background: var(--tto-surface) !important;
  border: 1px solid var(--tto-border) !important;
  border-radius: 6px !important;
  padding: 12px 14px !important;
  margin: 0 !important;
  list-style: none !important;
  transition: background .15s, border-color .15s, transform .15s;
  display: block !important;
  position: relative;
  padding-left: 28px !important;
}
body.page-id-72546 .entry-content,
body.page-id-72546 .entry.themeform,
body.page-id-72546 article.page ul > li::before {
  content: '›';
  position: absolute;
  left: 12px;
  top: 11px;
  color: var(--tto-accent);
  font-size: 16px;
  font-weight: 700;
}
body.page-id-72546 .entry-content,
body.page-id-72546 .entry.themeform,
body.page-id-72546 article.page ul > li:hover {
  background: #fff7f3 !important;
  border-color: var(--tto-accent) !important;
  transform: translateY(-1px);
}
body.page-id-72546 .entry-content,
body.page-id-72546 .entry.themeform,
body.page-id-72546 article.page ul > li > a {
  color: var(--tto-text) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  display: block !important;
  border: 0 !important;
  line-height: 1.4 !important;
}
body.page-id-72546 .entry-content,
body.page-id-72546 .entry.themeform,
body.page-id-72546 article.page ul > li > a:hover {
  color: var(--tto-accent) !important;
}
/* The "Browse all 135 guides →" links in <p> tags between h2 and ul */
body.page-id-72546 .entry-content,
body.page-id-72546 .entry.themeform,
body.page-id-72546 article.page h2 + p + p > a {
  display: inline-block;
  background: var(--tto-accent);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600 !important;
  margin: 4px 0 8px;
}
body.page-id-72546 .entry-content,
body.page-id-72546 .entry.themeform,
body.page-id-72546 article.page h2 + p + p > a strong { color: #fff !important; }
body.page-id-72546 .entry-content,
body.page-id-72546 .entry.themeform,
body.page-id-72546 article.page h2 + p + p > a:hover {
  background: var(--tto-link-h);
  color: #fff !important;
}

/* 19h. Homepage Hueman alxposts widget — light styling, don't force flex */
.alx-posts > li, .alx-posts .alx-post {
  background: var(--tto-surface);
  border-bottom: 1px solid var(--tto-border);
  padding: 10px 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
.alx-posts > li:last-child { border-bottom: 0; }
.alx-posts h3 a, .alx-posts .post-title a {
  color: var(--tto-text) !important;
  text-decoration: none !important;
  border: 0 !important;
  font-size: 14px;
  font-weight: 500;
}
.alx-posts h3 a:hover { color: var(--tto-accent) !important; }

/* 19i. Lightweight visual upgrade for archive/category cards.
   Don't grid-layout them (Hueman has its own layout that conflicts) — just
   round corners, add hover lift, give cards visual breathing room. */
.archive .post-inner,
.archive article.post,
.category article.post,
.search article.post {
  background: var(--tto-surface);
  border: 1px solid var(--tto-border);
  border-radius: var(--tto-radius);
  padding: 18px !important;
  margin-bottom: 16px !important;
  box-shadow: var(--tto-shadow-sm);
  transition: box-shadow .18s, transform .18s;
}
.archive .post-inner:hover,
.archive article.post:hover,
.category article.post:hover {
  box-shadow: var(--tto-shadow);
}
/* Don't override Hueman's internal column layout — it knows what it's doing */

/* 19j. Hide widgets in sidebars on the contact page */
.page-template-default.page-id-79 .sidebar,
.page-id-79 .sidebar { display: none !important; }
.page-id-79 .content { width: 100% !important; max-width: 800px !important; margin: 0 auto !important; }

/* 19k. Default avatar fallback — use a saffron initial circle if Gravatar fails.
   Combined with `default=identicon` in get_avatar_url args (set in mu-plugin
   tto-org-schema-author-url where appropriate). */
.tto-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tto-accent), var(--tto-accent-2));
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  font-family: var(--tto-font-head);
}
