/*
 * Kriyasya Ayurveda & Home Remedies — unified 9.5 presentation layer.
 *
 * Presentation only. This file deliberately does not alter routing, access,
 * publication, safety, identity, record-sync or content contracts. It is loaded
 * last by both Ayurveda shells so the previously separate --lv, --ay2 and
 * --ayur component families resolve to one visual language.
 */

:root {
  color-scheme: light;
  --ay95-forest-950: #062f2a;
  --ay95-forest-900: #0b433b;
  --ay95-forest-800: #12584c;
  --ay95-forest-700: #1f6d5d;
  --ay95-forest-100: #e5f0eb;
  --ay95-forest-050: #f2f7f3;
  --ay95-ink: #182722;
  --ay95-ink-soft: #52635c;
  --ay95-copper: #ad632d;
  --ay95-saffron: #d89b27;
  --ay95-saffron-soft: #f8edcf;
  --ay95-paper: #fffefa;
  --ay95-canvas: #f7f4ed;
  --ay95-canvas-deep: #efe9dc;
  --ay95-line: #d9e0da;
  --ay95-line-warm: #e6dcc9;
  --ay95-danger: #a8292f;
  --ay95-danger-soft: #fff1f1;
  --ay95-focus: #0b7766;
  --ay95-max: 1180px;
  --ay95-reading: 720px;
  --ay95-r-sm: 10px;
  --ay95-r-md: 16px;
  --ay95-r-lg: 24px;
  --ay95-shadow-sm: 0 1px 2px rgba(16, 49, 41, .05), 0 8px 22px rgba(16, 49, 41, .055);
  --ay95-shadow-md: 0 16px 44px rgba(16, 49, 41, .10);
  --ay95-shadow-float: 0 22px 65px rgba(13, 42, 35, .16);

  /* Compatibility aliases: one palette, all existing components. */
  --lv-teal: var(--ay95-forest-900);
  --lv-deep-teal: var(--ay95-forest-950);
  --lv-ivory: var(--ay95-paper);
  --lv-paper: var(--ay95-canvas);
  --lv-tulsi: var(--ay95-forest-700);
  --lv-turmeric: var(--ay95-saffron);
  --lv-clay: var(--ay95-copper);
  --lv-brown: var(--ay95-ink);
  --bg: var(--ay95-canvas);
  --surface: var(--ay95-paper);
  --surface-2: var(--ay95-forest-050);
  --ink: var(--ay95-ink);
  --ink-soft: var(--ay95-ink-soft);
  --line: var(--ay95-line);
  --accent: var(--ay95-forest-700);
  --radius: var(--ay95-r-md);
  --radius-sm: var(--ay95-r-sm);
  --radius-lg: var(--ay95-r-lg);
  --shadow-sm: var(--ay95-shadow-sm);
  --shadow-md: var(--ay95-shadow-md);
  --shadow-lg: var(--ay95-shadow-float);
  --maxw: var(--ay95-max);

  --ay2-ink: var(--ay95-ink);
  --ay2-ink-soft: var(--ay95-ink-soft);
  --ay2-forest: var(--ay95-forest-800);
  --ay2-forest-strong: var(--ay95-forest-950);
  --ay2-leaf: var(--ay95-forest-700);
  --ay2-saffron: var(--ay95-saffron);
  --ay2-clay: var(--ay95-copper);
  --ay2-cream: var(--ay95-canvas);
  --ay2-paper: var(--ay95-paper);
  --ay2-mist: var(--ay95-forest-050);
  --ay2-line: var(--ay95-line);
  --ay2-focus: var(--ay95-focus);
  --ay2-max: var(--ay95-max);
  --ay2-reading: var(--ay95-reading);
  --ay2-r1: var(--ay95-r-sm);
  --ay2-r2: var(--ay95-r-md);
  --ay2-r3: var(--ay95-r-lg);
  --ay2-s1: var(--ay95-shadow-sm);
  --ay2-s2: var(--ay95-shadow-md);

  --ayur-emerald: var(--ay95-forest-800);
  --ayur-forest: var(--ay95-forest-950);
  --ayur-sage: var(--ay95-forest-700);
  --ayur-gold: var(--ay95-saffron);
  --ayur-ochre: var(--ay95-copper);
  --ayur-warm-bg: var(--ay95-canvas);
  --ayur-card-bg: var(--ay95-paper);
  --ayur-text-main: var(--ay95-ink);
  --ayur-text-muted: var(--ay95-ink-soft);
  --ayur-border: var(--ay95-line);
  --ayur-border-light: #e9ede9;
  --ayur-shadow-sm: var(--ay95-shadow-sm);
  --ayur-shadow-md: var(--ay95-shadow-md);
  --ayur-shadow-lg: var(--ay95-shadow-float);
  --ayur-radius-sm: var(--ay95-r-sm);
  --ayur-radius-md: var(--ay95-r-md);
  --ayur-radius-lg: var(--ay95-r-lg);
  --ayur-radius-xl: 32px;
  --ayur-shadow-xl: var(--ay95-shadow-float);
}

html { scroll-padding-top: calc(var(--lvh-h, 68px) + 1rem); }

body.v2-shell,
body.v2-home,
body.v2-studio,
body.v2-module,
body.v2-search,
body.remedies-shell {
  color: var(--ay95-ink);
  background:
    radial-gradient(65rem 34rem at 86% -12%, rgba(31, 109, 93, .11), transparent 68%),
    radial-gradient(50rem 28rem at -12% 22%, rgba(216, 155, 39, .08), transparent 68%),
    var(--ay95-canvas);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.remedies-shell { min-width: 0; }

:where(body.v2-shell, body.v2-home, body.v2-studio, body.v2-module, body.v2-search, body.remedies-shell)
  :where(h1, h2, h3, h4) {
  color: var(--ay95-forest-950);
  font-family: var(--font-head, "LV Serif Mind", "Fraunces", Georgia, "Noto Serif Devanagari", serif);
  letter-spacing: -.018em;
  text-wrap: balance;
}

:where(body.v2-shell, body.v2-home, body.v2-studio, body.v2-module, body.v2-search, body.remedies-shell)
  :where(p, li, dd) { text-wrap: pretty; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ay95-focus) 62%, white);
  outline-offset: 3px;
}

/* Universal LifeVedone chrome: visual refinement only. */
#lvh[data-theme] {
  border-bottom-color: rgba(11, 67, 59, .12);
  box-shadow: 0 1px 0 rgba(11, 67, 59, .04);
  backdrop-filter: blur(18px) saturate(135%);
}
#lvh[data-theme] .lvh-inner { max-width: calc(var(--ay95-max) + 2rem); }
#lvh[data-theme] .lvh-world {
  max-width: 13rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#lvh[data-theme] .lvh-cta {
  background: var(--ay95-forest-800);
  border-color: var(--ay95-forest-800);
  box-shadow: 0 8px 20px rgba(18, 88, 76, .18);
}

/* Core controls. */
.btn {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 750;
  letter-spacing: -.005em;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ay95-forest-800);
  border-color: var(--ay95-forest-800);
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 88, 76, .16);
}
.btn-primary:hover { background: var(--ay95-forest-950); border-color: var(--ay95-forest-950); }
.btn-secondary,
.btn-ghost { background: rgba(255, 254, 250, .82); border-color: var(--ay95-line-warm); color: var(--ay95-forest-900); }

.breadcrumb,
.remedy-breadcrumb {
  max-width: var(--ay95-max);
  margin-inline: auto;
  padding: .85rem clamp(1rem, 4vw, 2rem) 0;
  color: var(--ay95-ink-soft);
  font-size: .82rem;
}
.breadcrumb a,
.remedy-breadcrumb a { color: var(--ay95-forest-800); font-weight: 700; }

.v2-kicker,
.v2-eyebrow {
  color: var(--ay95-forest-700);
  font-size: .76rem;
  letter-spacing: .095em;
}
.v2-section { padding-block: clamp(2.25rem, 4vw, 4rem); }
.v2-section--tight { padding-block: clamp(1.25rem, 2.5vw, 2.25rem); }
.v2-section-head { margin-bottom: 1.35rem; }
.v2-section-head p { max-width: 62ch; }

/* Homepage: one clear entry point, then the two product territories. */
.v2-home-hero {
  position: relative;
  padding: clamp(2.2rem, 5vw, 4.8rem) 0 clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(11, 67, 59, .08);
}
.v2-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 254, 250, .70), transparent 66%);
}
.v2-home-hero__grid { position: relative; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .88fr); align-items: center; }
.v2-home-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.45rem, 4.5vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.v2-home-hero__lead { max-width: 52ch; color: var(--ay95-ink-soft); font-size: clamp(1.04rem, 1.35vw, 1.18rem); }
.v2-home-hero__actions { display: flex; align-items: center; gap: .65rem !important; }
.v2-home-hero__actions .btn-primary { order: 1; }
.v2-home-hero__actions .btn-gold { order: 2; background: var(--ay95-saffron-soft) !important; color: var(--ay95-forest-950) !important; border: 1px solid #e6ca80 !important; box-shadow: none !important; }
.v2-home-hero__actions .btn-ghost { order: 3; }
.v2-home-hero__visual { max-width: 36rem; margin-top: 1.8rem; }
.v2-home-editorial { border: 1px solid rgba(11, 67, 59, .09); box-shadow: none; }

.v2-home-hero__panel {
  border: 1px solid rgba(11, 67, 59, .13);
  border-radius: var(--ay95-r-lg);
  background: rgba(255, 254, 250, .9);
  box-shadow: var(--ay95-shadow-md);
  padding: 1.1rem;
}
.v2-home-hero__panel h2 { margin: .15rem .2rem 1rem; font-size: 1.18rem; }
.v2-goal-grid { gap: .55rem; }
.v2-goal-card {
  min-height: 70px;
  border-color: rgba(11, 67, 59, .11);
  border-radius: 13px;
  padding: .65rem 1.45rem .65rem .65rem;
  box-shadow: none;
}
.v2-goal-card:hover { transform: translateY(-1px); border-color: rgba(18, 88, 76, .34); box-shadow: 0 7px 18px rgba(16, 49, 41, .07); }
.v2-goal-card__icon { width: 34px; height: 34px; border-radius: 50%; }
.v2-goal-card__body strong { font-size: .91rem; }
.v2-goal-card__body span { font-size: .74rem; }

.v2-trust-strip {
  gap: 0;
  border: 0;
  border-block: 1px solid var(--ay95-line);
  border-radius: 0;
  background: transparent;
  padding: .85rem 0;
}
.v2-trust-strip > div { padding: .5rem 1rem; border-right: 1px solid var(--ay95-line); }
.v2-trust-strip > div:first-child { padding-left: 0; }
.v2-trust-strip > div:last-child { border-right: 0; }
.v2-trust-strip p { margin: 0; }

/* The platform pass remains platform-owned; only its Ayurveda presentation is harmonised. */
body.v2-home .lvwpb {
  background: linear-gradient(125deg, var(--ay95-forest-950), var(--ay95-forest-900)) !important;
  border-color: rgba(216, 155, 39, .25) !important;
  box-shadow: var(--ay95-shadow-md) !important;
}
body.v2-home .lvwpb::before { background: var(--ay95-saffron) !important; }

.ayur-home-remedies-section {
  background:
    linear-gradient(rgba(255, 254, 250, .90), rgba(255, 254, 250, .90)),
    radial-gradient(40rem 26rem at 8% 12%, rgba(216, 155, 39, .13), transparent 68%);
  border-block: 1px solid var(--ay95-line-warm);
  padding-block: clamp(3rem, 5vw, 5rem);
}
.ayur-home-section-head { max-width: 760px; margin-inline: auto; text-align: center; }
.ayur-home-section-head__title { font-size: clamp(2rem, 3.5vw, 3.15rem); line-height: 1.08; }
.ayur-home-section-head__subtitle { color: var(--ay95-ink-soft); max-width: 68ch; margin-inline: auto; }
.ayur-home-metrics-strip { grid-template-columns: repeat(4, 1fr); gap: .65rem; max-width: 900px; margin-inline: auto; }
.ayur-home-metric-card { min-height: 94px; border-radius: 13px; border-color: var(--ay95-line-warm); box-shadow: none; }
.ayur-home-metric-card__num { color: var(--ay95-forest-800); }
.ayur-home-tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.ayur-home-tool-card {
  min-height: 214px;
  border-color: rgba(11, 67, 59, .11);
  border-radius: var(--ay95-r-md);
  box-shadow: var(--ay95-shadow-sm);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ayur-home-tool-card:hover { transform: translateY(-3px); border-color: rgba(18, 88, 76, .3); box-shadow: var(--ay95-shadow-md); }
.ayur-home-tool-card__badge { font-size: .67rem; letter-spacing: .06em; }

.v2-studio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.v2-studio-card,
.v2-module-card,
.v2-state-card,
.ayc-card,
.lib-card,
.mealcard,
.rev-item,
.rev-prop {
  border-color: rgba(11, 67, 59, .12);
  border-radius: var(--ay95-r-md);
  box-shadow: var(--ay95-shadow-sm);
}
.v2-studio-card { min-height: 0; padding: 1.05rem; }
.v2-studio-card h3 { font-size: 1.08rem; }
.v2-studio-card p { font-size: .86rem; }
.v2-studio-card__visual { border-radius: 12px; }

/* Today, personal record and supporting pages share one calmer document width. */
.v2-today-hero { padding-block: clamp(1.7rem, 3.5vw, 3rem); border-bottom: 1px solid rgba(11, 67, 59, .08); }
.v2-today-hero > .container { max-width: 1040px; }
.v2-today-hero h1 { font-size: clamp(2.15rem, 4vw, 3.4rem); line-height: 1.06; }
.v2-today-hero__lede { max-width: 64ch; color: var(--ay95-ink-soft); }
.v2-today-next,
.v2-today-notice,
.v2-state-card { background: rgba(255, 254, 250, .94); }
.v2-today-next { border-left-width: 3px; box-shadow: var(--ay95-shadow-sm); }
.v2-today-next__actions { gap: .55rem; }
.v2-today-hero + .v2-section { padding-top: 2rem; }

/* Studios and modules: show the useful work earlier. */
.v2-studio-hero,
.v2-module-hero { padding-block: clamp(1.5rem, 3vw, 2.8rem) 1.35rem; }
.v2-studio-hero__grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: center; }
.v2-studio-hero h1,
.v2-module-hero h1 { font-size: clamp(2.35rem, 4.5vw, 4rem); line-height: 1.02; letter-spacing: -.045em; }
.v2-studio-hero__aside,
.v2-module-start {
  border-color: rgba(11, 67, 59, .13);
  background: rgba(255, 254, 250, .94);
  box-shadow: var(--ay95-shadow-sm);
}
.v2-module-hero__grid { grid-template-columns: minmax(0, 1fr) 360px; }
.v2-module-start { top: calc(var(--lvh-h, 68px) + 1rem); box-shadow: var(--ay95-shadow-md); }
.v2-module-grid { gap: .8rem; }
.v2-module-card { min-height: 190px; padding: 1.15rem; }
.v2-module-card h3 { font-size: 1.22rem; }
.v2-input-contract > div,
.v2-action-plan li { background: var(--ay95-paper); border-color: var(--ay95-line); }

/* Learning and reference surfaces: editorial, not another generic card wall. */
.ayc-landing__cta { margin-top: 1.25rem; }
.ayc-grid { gap: .8rem; }
.ayc-card { position: relative; overflow: hidden; padding: 1.1rem; box-shadow: none; }
.ayc-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: transparent; }
.ayc-card:hover::before,
.ayc-card.is-read::before { background: var(--ay95-saffron); }
.ayc-card__title { font-size: 1.08rem; }
.ayc-body { max-width: var(--ay95-reading); }
.ayc-body > p,
.ayc-body > ul,
.ayc-body > ol { font-size: 1.05rem; line-height: 1.78; }
.ayc-player { position: sticky; bottom: 1rem; z-index: 12; box-shadow: var(--ay95-shadow-md); }
.library__grid { gap: .8rem; }
.lib-card { box-shadow: none; }
.lib-rec__hero-img { border-radius: var(--ay95-r-md); box-shadow: var(--ay95-shadow-md); }
.v2-search-box input { border-color: rgba(11, 67, 59, .22); box-shadow: 0 0 0 5px rgba(31, 109, 93, .045); }
.v2-search-result { border-color: rgba(11, 67, 59, .12); box-shadow: none; }
.v2-search-result:hover { border-color: rgba(18, 88, 76, .32); background: var(--ay95-paper); }

/* The twelve-tool switcher becomes a single compact, scrollable rail. */
.ayur-tool-nav-container {
  position: sticky;
  top: var(--lvh-h, 68px);
  z-index: 42;
  max-width: none;
  margin: 0;
  padding: .6rem max(1rem, calc((100vw - var(--ay95-max)) / 2));
  background: rgba(247, 244, 237, .94);
  border-bottom: 1px solid var(--ay95-line);
  box-shadow: 0 8px 24px rgba(16, 49, 41, .055);
  backdrop-filter: blur(14px) saturate(135%);
}
.ayur-tool-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  border-radius: 12px;
  border: 0;
  box-shadow: none;
  grid-template-columns: none;
  gap: .35rem;
  width: 100%;
  max-width: var(--ay95-max);
  margin: 0 auto;
  padding: 0 0 .2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.ayur-tool-nav__item {
  flex: 0 0 auto;
  min-height: 40px;
  padding: .45rem .72rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  scroll-snap-align: start;
  white-space: nowrap;
  box-shadow: none;
}
.ayur-tool-nav__item:hover { background: var(--ay95-paper); border-color: var(--ay95-line); transform: none; }
.ayur-tool-nav__item.active { background: var(--ay95-forest-800); color: #fff; border-color: var(--ay95-forest-800); box-shadow: 0 6px 18px rgba(18, 88, 76, .18); }
.ayur-tool-nav__badge { display: none; }

/* Remedy working surfaces. */
.remedy-page { background: transparent; padding-bottom: 2.5rem; }
.remedy-hero {
  padding: clamp(2rem, 3.8vw, 3.4rem) 1.25rem clamp(1.75rem, 3vw, 2.6rem);
  background:
    radial-gradient(34rem 20rem at 88% 0%, rgba(216, 155, 39, .20), transparent 68%),
    linear-gradient(126deg, var(--ay95-forest-950), var(--ay95-forest-800));
  box-shadow: none;
}
.remedy-hero__inner { max-width: var(--ay95-max); }
.remedy-hero__badge { margin-bottom: .75rem; background: rgba(255, 255, 255, .09); font-size: .72rem; }
.remedy-hero__title { max-width: 22ch; font-size: clamp(2.2rem, 4vw, 3.65rem); line-height: 1.04; letter-spacing: -.04em; }
.remedy-hero__subtitle { max-width: 72ch; font-size: 1.02rem; }
.remedy-hero__stats { gap: .75rem 1.5rem; margin-top: 1.15rem; padding-top: 1.05rem; }
.remedy-stat-item strong { color: #f4c65f; }
.remedy-filter-hub,
.remedy-grid-section,
.remedy-detail-view,
.body-explorer-wrap { max-width: var(--ay95-max); }
.remedy-search-card,
.condition-overview-card,
.remedy-card,
.protocol-card,
.formulation-card,
.ingredient-card,
.body-map-card,
.organ-detail-card { border-radius: var(--ay95-r-md); box-shadow: var(--ay95-shadow-sm); }
.remedy-search-card { border-color: rgba(11, 67, 59, .13); }
.remedy-search-box input { min-height: 52px; border-radius: 13px; }
.remedy-system-pills { gap: .4rem; }
.remedy-pill-btn,
.remedy-az-letter { min-height: 40px; }
.remedy-ailments-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.remedy-ailment-card {
  min-height: 0;
  padding: .95rem;
  border-radius: 13px;
  border-color: rgba(11, 67, 59, .12);
  box-shadow: none;
  content-visibility: auto;
  contain-intrinsic-size: 180px;
}
.remedy-ailment-card:hover { transform: translateY(-2px); box-shadow: var(--ay95-shadow-sm); }
.remedy-ailment-card__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.remedy-badge { border-radius: 999px; }

/* Urgent pages retain semantic red without becoming visually alarming everywhere. */
body.ayur-remedies-first-aid .remedy-hero {
  background:
    radial-gradient(34rem 20rem at 88% 0%, rgba(244, 198, 95, .16), transparent 68%),
    linear-gradient(126deg, #68161c, #8f1f25 54%, var(--ay95-forest-950));
}
body.ayur-remedies-first-aid .emergency-red-flag,
body.ayur-remedies-first-aid .first-aid-emergency-banner { background: var(--ay95-danger-soft); border-color: #e9a2a5; }

/* Compact, progressive legal boundary. Full content remains one action away. */
.ayur-legal-disclaimer-wrap { max-width: var(--ay95-max); margin: clamp(2rem, 4vw, 4rem) auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.ayur-legal-disclaimer-card {
  border: 1px solid #dfcfae;
  border-left: 3px solid var(--ay95-copper);
  border-radius: var(--ay95-r-md);
  background: rgba(255, 254, 250, .92);
  box-shadow: none;
  overflow: clip;
}
.ayur-legal-disclaimer-card > summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .85rem;
  min-height: 72px;
  padding: .9rem 1.05rem;
  cursor: pointer;
}
.ayur-legal-disclaimer-card > summary::-webkit-details-marker { display: none; }
.ayur-legal-disclaimer-card > summary::after { content: "+"; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--ay95-line-warm); border-radius: 50%; color: var(--ay95-forest-900); font-size: 1.2rem; }
.ayur-legal-disclaimer-card[open] > summary::after { content: "−"; }
.ayur-legal-disclaimer-card__header { margin: 0; }
.ayur-legal-disclaimer-card__title { margin: 0; font-size: 1rem; }
.ayur-legal-disclaimer-card__summary-copy { margin: .15rem 0 0; color: var(--ay95-ink-soft); font-size: .82rem; }
.ayur-legal-disclaimer-card__content { padding: 0 1.05rem 1.05rem; border-top: 1px solid var(--ay95-line-warm); }
.ayur-legal-disclaimer-card__intro { margin-top: 1rem; }

/* Platform consent, scoped because this stylesheet is only loaded in Ayurveda. */
#lv-consent-banner {
  max-width: 760px !important;
  padding: 14px !important;
  border-radius: 16px !important;
  border-color: rgba(229, 240, 235, .18) !important;
  background: rgba(6, 47, 42, .98) !important;
  box-shadow: var(--ay95-shadow-float) !important;
  font-size: 13px !important;
}
#lv-consent-banner > div { gap: 10px !important; }
#lv-consent-banner button { min-height: 42px; }
#lv-consent-banner #lvc-all { background: #f0bd45 !important; border-color: #f0bd45 !important; color: #182722 !important; }

/* Settings, reports, safety and policies. */
.utility,
.settings-wrap,
.report-wrap { max-width: 980px; margin-inline: auto; }
.utility__card,
.settings-card,
.report,
.evidence-grid__item { border-color: rgba(11, 67, 59, .12); box-shadow: var(--ay95-shadow-sm); }
.report__cover { background: linear-gradient(135deg, var(--ay95-forest-950), var(--ay95-forest-800)); }
.evidence-grid { gap: .8rem; }

/* Offline is deliberately standalone, but still belongs to the same world. */
.offline-page { min-height: 100vh; margin: 0; background: var(--ay95-canvas); }
.offline-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5vw, 3rem);
  background:
    radial-gradient(34rem 22rem at 12% 8%, rgba(216, 155, 39, .13), transparent 70%),
    radial-gradient(38rem 25rem at 90% 96%, rgba(31, 109, 93, .11), transparent 72%);
}
.offline-card {
  width: min(100%, 560px);
  padding: clamp(1.5rem, 5vw, 3.25rem);
  border: 1px solid rgba(11, 67, 59, .13);
  border-radius: var(--ay95-r-lg);
  background: rgba(255, 254, 250, .95);
  box-shadow: var(--ay95-shadow-md);
  text-align: center;
}
.offline-mark { width: 76px; height: 76px; margin: 0 auto 1.15rem; display: grid; place-items: center; border-radius: 50%; color: var(--ay95-forest-800); background: var(--ay95-forest-050); }
.offline-card h1 { margin: .15rem 0 .65rem; font-size: clamp(2.15rem, 7vw, 3.2rem); }
.offline-card > .muted { max-width: 44ch; margin: 0 auto 1.4rem; }
.offline-safety { margin: 1.35rem 0 0; padding-top: 1rem; border-top: 1px solid var(--ay95-line-warm); color: var(--ay95-ink-soft); font-size: .82rem; }

@media (max-width: 1080px) {
  .ayur-home-tools-grid,
  .v2-studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-home-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); }
}

@media (max-width: 820px) {
  body.v2-shell,
  body.v2-home,
  body.v2-studio,
  body.v2-module,
  body.v2-search { padding-bottom: 0; }
  #lvh[data-theme] .lvh-world { display: none; }
  .v2-home-hero__grid,
  .v2-studio-hero__grid,
  .v2-module-hero__grid { grid-template-columns: 1fr; }
  .v2-home-hero__panel { order: initial; }
  .v2-home-hero__visual { max-width: 100%; }
  .v2-module-start { position: static; }
  .ayur-tool-nav-container { top: var(--lvh-h, 64px); padding-inline: .75rem; }
  .remedy-hero__stats { display: grid; grid-template-columns: 1fr 1fr; }
  .remedy-ailments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .body-map-card { position: static; }
}

@media (max-width: 620px) {
  body.v2-shell,
  body.v2-home,
  body.v2-studio,
  body.v2-module,
  body.v2-search,
  body.remedies-shell { font-size: 1rem; line-height: 1.6; }
  .container { padding-inline: 1rem; }
  .v2-section { padding-block: 1.9rem; }
  .v2-section--tight { padding-block: 1.15rem; }
  .v2-home-hero { padding-top: 1.8rem; }
  .v2-home-hero h1 { font-size: clamp(2.15rem, 10vw, 3rem); max-width: 18ch; }
  .v2-home-hero__actions { display: grid !important; grid-template-columns: 1fr; }
  .v2-home-hero__actions .btn { width: 100%; justify-content: center; }
  .v2-home-hero__visual { margin-top: 1.15rem; }
  .v2-home-hero__panel { padding: .85rem; }
  .v2-goal-grid,
  .v2-module-grid { grid-template-columns: 1fr; }
  .ayur-home-tools-grid,
  .v2-studio-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 84vw);
    gap: .75rem;
    margin-inline: -1rem;
    padding: .25rem 1rem 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(18, 88, 76, .35) transparent;
  }
  .ayur-home-tools-grid > *,
  .v2-studio-grid > * { scroll-snap-align: start; }
  .v2-studio-card { align-content: start; }
  .v2-goal-card { min-height: 66px; }
  .v2-trust-strip { grid-template-columns: 1fr; }
  .v2-trust-strip > div { border-right: 0; border-bottom: 1px solid var(--ay95-line); padding: .7rem 0; }
  .v2-trust-strip > div:last-child { border-bottom: 0; }
  .ayur-home-remedies-section { padding-block: 2.5rem; }
  .ayur-home-metrics-strip { grid-template-columns: 1fr 1fr; }
  .ayur-home-metric-card { min-height: 82px; }
  .ayur-home-tool-card { min-height: 0; }
  .remedy-hero { padding: 1.65rem 1rem 1.5rem; }
  .remedy-hero__title { font-size: clamp(2rem, 9.5vw, 2.8rem); }
  .remedy-hero__subtitle { font-size: .97rem; }
  .remedy-hero__stats { gap: .65rem; }
  .remedy-stat-item { display: grid; gap: 0; }
  .remedy-ailments-grid { grid-template-columns: 1fr; }
  .remedy-ailment-card__desc { -webkit-line-clamp: 3; }
  .ayur-legal-disclaimer-card > summary { grid-template-columns: auto 1fr; }
  .ayur-legal-disclaimer-card > summary::after { display: none; }
  .ayur-legal-disclaimer-card__grid { grid-template-columns: 1fr; }
  #lv-consent-banner {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    padding: 12px !important;
    font-size: 12.5px !important;
  }
  #lv-consent-banner > div { gap: 8px !important; }
  #lv-consent-banner button { min-width: 132px !important; padding: 8px 10px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .v2-goal-card,
  .v2-studio-card,
  .v2-module-card,
  .ayur-home-tool-card,
  .remedy-ailment-card { transition: none !important; transform: none !important; }
}

@media (forced-colors: active) {
  .v2-home-hero__panel,
  .v2-goal-card,
  .v2-studio-card,
  .v2-module-card,
  .ayur-home-tool-card,
  .remedy-ailment-card,
  .ayur-legal-disclaimer-card { border: 1px solid CanvasText; }
}

@media print {
  #lv-consent-banner,
  .ayur-tool-nav-container { display: none !important; }
  body { background: #fff !important; }
  .ayur-legal-disclaimer-card { break-inside: avoid; }
  .ayur-legal-disclaimer-card:not([open]) > .ayur-legal-disclaimer-card__content { display: block !important; }
}
