/* ==========================================================================
   Atmaikya Vastu — Inner pages (everything except home)
   Palette locked to site tokens. Mobile-first reading, tools, and listings.
   ========================================================================== */

body:not(.home) {
  --gold: #768875;
  --gold2: #586b54;
  --gold-bg: #edeae0;
  --gold-border: #c9c4b8;
  --navy: #1c2d27;
  --navy2: #1c2d27;
  --bg: #f7f5ee;
  --bg2: #edeae0;
  --bg3: #edeae0;
  --bg4: #e6e2d6;
  --border: #d8d4c9;
  --border2: #c9c4b8;
  --text: #1c2d27;
  --text2: #666666;
  --text3: #666666;
  --sf: #788675;
  --sf2: #9da78e;
  --mn: #768875;
  --mn2: #1c2d27;
  --gd: #788675;
  --gd2: #9da78e;
  --iv: #f7f5ee;
  --iv2: #edeae0;
  --cr: #f7f5ee;
  --td: #1c2d27;
  --tm: #666666;
  --tl: #666666;
  --wh: #ffffff;
  --e1: #1c2d27;
  --e2: #51634d;
  --maroon: #768875;
  --maroon2: #586b54;
  --maroon3: #1c2d27;
  --saffron: #788675;
  --saffron2: #9da78e;
  --cream: #f7f5ee;
  --cream2: #edeae0;
  --cream3: #d8d4c9;
  --ink: #1c2d27;
  --ink2: #3a4a44;
  --ink3: #666666;
  --blue: #5a6e68;
  --shadow: 0 4px 24px rgba(28, 45, 39, 0.06);
  --shadow-md: 0 8px 32px rgba(28, 45, 39, 0.1);
  --green: #4a6b52;
  --green-lt: #e8efe6;
  --red: #8b4a42;
  --red-lt: #f3e8e6;
}

body:not(.home) .site-page {
  padding-bottom: 1.5rem;
}

/* Keep site logo intact when page CSS targets header/img */
body:not(.home) header.site-header {
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: visible !important;
  height: calc(64px + env(safe-area-inset-top, 0px)) !important;
  min-height: 64px !important;
}

body:not(.home) header.site-header img {
  height: 40px !important;
  width: auto !important;
  max-width: 180px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body:not(.home) header.site-header .header-inner,
body:not(.home) header.site-header .container {
  display: flex !important;
  align-items: center !important;
  overflow: visible !important;
}

body:not(.home) header.site-header .brand-wrap {
  display: flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 200px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body:not(.home) .topbar .logo img,
body:not(.home) a.logo img {
  height: 36px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain !important;
  display: block !important;
}

body:not(.home) header.site-header .brand-logo-plain,
body:not(.home) .drawer-brand-logo {
  display: block !important;
  height: 40px !important;
  width: auto !important;
  max-width: 180px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  object-position: left center !important;
  position: static !important;
  inset: auto !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}
@media (min-width: 768px) {
  body:not(.home) header.site-header nav.desktop-nav,
  body:not(.home) header.site-header .nav-links {
    display: flex !important;
  }
}

body:not(.home) header.site-header .btn-menu {
  display: flex !important;
}

/* Duplicate in-page chrome (pages already have site header/footer) */
body:not(.home) .site-page .topnav,
body:not(.home) .site-page .page-footer,
body:not(.home) .site-page .mnav,
body:not(.home) .site-page .ham,
body:not(.home) .site-page .bottab {
  display: none !important;
}

/* ---------- Reading / article (viq-*) ---------- */
.viq-breadcrumb {
  background: #edeae0;
  border-bottom: 1px solid #d8d4c9;
}

.viq-breadcrumb-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.viq-breadcrumb-inner a {
  color: #768875;
  text-decoration: none;
  font-weight: 600;
}

.viq-breadcrumb-inner a:hover {
  text-decoration: underline;
}

.viq-breadcrumb-sep {
  opacity: 0.55;
}

.viq-post-hero {
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(118, 136, 117, 0.12), transparent 60%),
    #f7f5ee;
  border-bottom: 1px solid #d8d4c9;
}

.viq-post-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 32px;
}

.viq-post-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #edeae0;
  border: 1px solid #c9c4b8;
  color: #586b54;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.viq-post-title,
h1.viq-post-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 5.2vw, 2.45rem);
  font-weight: 600;
  color: #1c2d27;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.viq-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
}

.viq-post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.viq-featured-img-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

.viq-featured-img-wrap img {
  width: 100%;
  border-radius: 12px;
  display: block;
  background: #edeae0;
}

.viq-post-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 8px 20px 48px;
}

.viq-article {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #3d3228;
}

.viq-article h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  color: #1c2d27;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.viq-article h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c2d27;
  margin: 1.5rem 0 0.5rem;
}

.viq-article p {
  margin: 0 0 1rem;
}

.viq-article a {
  color: #586b54;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.viq-article ul,
.viq-article ol {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}

.viq-article li {
  margin: 0.35rem 0;
}

.viq-article table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0 0 1.5rem;
  background: #fff;
  border-radius: 10px;
}

.viq-article th,
.viq-article td {
  padding: 10px 12px;
  border: 1px solid #d8d4c9;
  text-align: left;
  vertical-align: top;
}

.viq-article th {
  background: #768875;
  color: #f7f5ee;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .viq-article p[style*="font-size:18px"] {
    font-size: 16px !important;
  }
}

/* ---------- Landing / direction guides ---------- */
body:not(.home) .elementor,
body:not(.home) .e-flex,
body:not(.home) .e-con,
body:not(.home) .e-con-inner,
body:not(.home) .elementor-widget-html {
  display: block !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  background-image: none !important;
}

body:not(.home) .site-page .hero,
body:not(.home) .site-page .page-hero,
body:not(.home) .site-page .facing-hero {
  display: block !important;
  min-height: 0 !important;
  background-image: none !important;
  padding: clamp(28px, 6vw, 52px) 16px 36px;
  overflow: visible;
}

body:not(.home) .site-page .hero h1,
body:not(.home) .site-page .page-hero h1 {
  width: 100%;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}

body:not(.home) .site-page .hero-stats,
body:not(.home) .site-page .compass-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

body:not(.home) .site-page .hero-stats {
  max-width: 640px;
}

body:not(.home) .faq-a {
  display: none;
}

body:not(.home) .faq-item.open > .faq-a,
body:not(.home) .faq-item.open .faq-a {
  display: block !important;
}

body:not(.home) .faq-item.open > .faq-q,
body:not(.home) .faq-item.open .faq-q {
  background: var(--gold-bg, #edeae0);
}

body:not(.home) .site-page .container {
  max-width: 860px;
  padding-left: 16px;
  padding-right: 16px;
}

body:not(.home) .pada-strip {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}

body:not(.home) .czone-grid {
  gap: 6px;
}

@media (max-width: 560px) {
  body:not(.home) .cz {
    font-size: 9px !important;
    padding: 8px 2px !important;
  }
  body:not(.home) .cta-primary {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
  body:not(.home) .hero-stats {
    gap: 12px !important;
  }
  body:not(.home) .benefits-grid,
  body:not(.home) .rule-grid,
  body:not(.home) .related-grid {
    grid-template-columns: 1fr !important;
  }
}

body:not(.home) .cta-block {
  margin-left: 0;
  margin-right: 0;
}

body:not(.home) a.cta-primary,
body:not(.home) .cta-primary {
  background: #768875 !important;
  box-shadow: 0 4px 14px rgba(118, 136, 117, 0.28) !important;
}

body:not(.home) a.cta-primary:hover,
body:not(.home) .cta-primary:hover {
  background: #586b54 !important;
}

/* ---------- Forms & tools ---------- */
body:not(.home) input,
body:not(.home) select,
body:not(.home) textarea,
body:not(.home) button {
  max-width: 100%;
}

body:not(.home) input[type="text"],
body:not(.home) input[type="email"],
body:not(.home) input[type="tel"],
body:not(.home) input[type="number"],
body:not(.home) input[type="date"],
body:not(.home) select,
body:not(.home) textarea {
  font-size: 16px !important;
  min-height: 44px;
  border-radius: 8px;
}

body:not(.home) button,
body:not(.home) .btn,
body:not(.home) [type="submit"] {
  min-height: 44px;
}

/* ---------- Blog index ---------- */
@media (max-width: 1000px) {
  body:not(.home) .blog-wrap {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 2rem 16px 4rem !important;
  }
  body:not(.home) .blog-sidebar {
    position: static !important;
  }
}

@media (max-width: 700px) {
  body:not(.home) .posts-grid {
    grid-template-columns: 1fr !important;
  }
  body:not(.home) .post-featured {
    flex-direction: column !important;
  }
  body:not(.home) .pf-thumb {
    width: 100% !important;
    height: 180px !important;
  }
  body:not(.home) .blog-hero {
    padding: 2.25rem 16px 2rem !important;
  }
  body:not(.home) .cat-bar {
    padding: 10px 12px !important;
    justify-content: flex-start !important;
  }
  body:not(.home) .cat-bar-inner {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    width: 100%;
  }
  body:not(.home) .cat-btn {
    flex: 0 0 auto;
  }
}

/* ---------- Legal / simple pages ---------- */
body:not(.home) .page-content,
body:not(.home) .elementor-widget-html {
  max-width: 100%;
}

body:not(.home) .e-con-inner {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px) {
  body:not(.home) .e-con-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

body:not(.home) .container.section-padding {
  padding-left: 16px;
  padding-right: 16px;
}

body:not(.home) .shop-controls,
body:not(.home) .shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body:not(.home) .filter-btn {
  min-height: 40px;
}

/* ---------- Contact / policy longform ---------- */
body:not(.home) .site-page h1 {
  overflow-wrap: break-word;
  word-break: normal;
}

body:not(.home) .site-page table {
  max-width: 100%;
}

body:not(.home) .site-page .comp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

body:not(.home) .site-page .comp-table-wrap table {
  display: table !important;
  width: 100%;
  max-width: none;
  overflow: visible !important;
}

/* ---------- 404 ---------- */
.page-404-main {
  padding: 3rem 16px 4rem;
}

@media (max-width: 560px) {
  .page-404-actions {
    flex-direction: column;
    width: min(100%, 320px);
  }
  .page-404-actions .btn,
  .page-404-actions a {
    width: 100%;
    text-align: center;
  }
}

/* Stats / trust bars sit under the banner, not between header and hero */
body:not(.home) .page-hero + .stats-bar,
body:not(.home) .page-hero + .trust-bar,
body:not(.home) .compare-hero + .stats-bar,
body:not(.home) .compare-hero + .trust-bar,
body:not(.home) .cert-hero + .stats-bar,
body:not(.home) .cert-hero + .trust-bar,
body:not(.home) section.hero + .hero-stats {
  position: relative;
  z-index: 1;
}

/* ---------- Focus & tap comfort ---------- */
body:not(.home) a:focus-visible,
body:not(.home) button:focus-visible,
body:not(.home) input:focus-visible,
body:not(.home) select:focus-visible {
  outline: 2px solid #768875;
  outline-offset: 2px;
}

/* Re-lock palette after Elementor / landing-page :root dumps */
html body.inner-page {
  --gold: #768875 !important;
  --gold2: #586b54 !important;
  --gold-bg: #edeae0 !important;
  --gold-border: #c9c4b8 !important;
  --navy: #1c2d27 !important;
  --navy2: #1c2d27 !important;
  --text: #1c2d27 !important;
  --text2: #666666 !important;
  --text3: #666666 !important;
}

body.inner-page .viq-post-title,
body.inner-page h1.viq-post-title,
body.inner-page .viq-article h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

body.inner-page .page-hero {
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem !important;
  min-height: 0;
}

body.inner-page .page-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(1.7rem, 4.6vw, 2.6rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

body.inner-page .page-hero p {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

/* Article + sidebar */
.viq-post-body {
  max-width: 1120px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 12px 20px 72px;
}

@media (min-width: 980px) {
  .viq-post-body {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
  .viq-post-body > .viq-sidebar {
    grid-column: 2;
    grid-row: 1 / span 8;
    position: sticky;
    top: 88px;
  }
}

.viq-sidebar-card {
  background: #fff;
  border: 1px solid #d8d4c9;
  margin-bottom: 1rem;
}

.viq-sidebar-card-hdr {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #586b54;
  padding: 0.85rem 1rem 0.55rem;
  border-bottom: 1px solid #edeae0;
}

.viq-sidebar-card-body {
  padding: 0.85rem 1rem 1rem;
}

.viq-sb-btn,
.viq-mid-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  background: #768875;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.88rem;
  width: 100%;
  box-sizing: border-box;
}

.viq-sb-btn:hover,
.viq-mid-cta-btn:hover {
  background: #586b54;
}

.viq-sb-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1.5px solid #c9c4b8;
  color: #1c2d27 !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.84rem;
  width: 100%;
  box-sizing: border-box;
}

.viq-mid-cta {
  background: #edeae0;
  border: 1px solid #d8d4c9;
  margin: 1.5rem 0;
}

.viq-mid-cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.15rem;
}

.viq-mid-cta-text {
  flex: 1 1 220px;
}

.viq-mid-cta-text strong {
  display: block;
  color: #1c2d27;
  margin-bottom: 0.2rem;
}

.viq-mid-cta-text span {
  font-size: 0.84rem;
  color: #666;
}

.viq-mid-cta-btn {
  width: auto;
  min-width: 140px;
}

.viq-related-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  padding: 0.65rem 0;
  border-bottom: 1px solid #edeae0;
}

.viq-related-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: #edeae0;
}

.viq-related-title {
  font-size: 0.82rem;
  font-weight: 650;
  color: #1c2d27;
  line-height: 1.35;
}

.viq-related-date {
  font-size: 0.72rem;
  color: #666;
  margin-top: 0.2rem;
}

.viq-share-btns {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.viq-share-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.4rem 0.7rem;
  border: 1px solid #d8d4c9;
  background: #f7f5ee;
  color: #1c2d27;
  text-decoration: none;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
}

.viq-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 1.5rem 0;
}

.viq-post-tag {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  background: #edeae0;
  color: #586b54 !important;
  text-decoration: none !important;
}

.viq-author-box {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.85rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #d8d4c9;
  margin: 1.5rem 0;
}

.viq-author-avatar-placeholder {
  width: 48px;
  height: 48px;
  background: #768875;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.viq-author-name {
  font-weight: 700;
  color: #1c2d27;
}

.viq-author-title,
.viq-author-bio {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
}

/* Knowledge library cards */
body.inner-page .num-grid,
body.inner-page .chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 1.75rem;
}

body.inner-page .num-card,
body.inner-page .chapter-card {
  background: #fff;
  border: 1px solid #d8d4c9;
  padding: 1rem;
}

body.inner-page .nc-digit {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #768875;
}

body.inner-page .nc-planet,
body.inner-page .ch-num {
  font-size: 0.78rem;
  color: #586b54;
  font-weight: 600;
}

body.inner-page .nc-name,
body.inner-page .ch-title {
  font-weight: 700;
  color: #1c2d27;
  margin: 0.3rem 0;
}

body.inner-page .nc-quality,
body.inner-page .ch-desc,
body.inner-page .nc-compat {
  font-size: 0.84rem;
  color: #666;
  line-height: 1.5;
}

body.inner-page .manuscript-quote {
  background: #edeae0;
  border-left: 3px solid #768875;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}

body.inner-page .mq-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #586b54;
  margin-bottom: 0.4rem;
}

body.inner-page .cta-block {
  background: #edeae0;
  border: 1px solid #d8d4c9;
  padding: 1.5rem 1.25rem;
  text-align: center;
  margin: 1.75rem 0;
}

body.inner-page .cta-block .btn-primary,
body.inner-page a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  background: #768875;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  border-radius: 12px;
}

body.inner-page .compare-table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.inner-page .site-page > .elementor {
  overflow-x: clip;
}

body.inner-page .viq-featured-img-wrap img {
  min-height: 160px;
  background: #edeae0;
}

