/*
 * Godspark Refinement — Zensical Theme
 * Nature + futuristic aurora pastel/iridescent upgrade.
 * Additive CSS layer. Preserves toolbar readability.
 */

:root {
  /* Refined iris palette */
  --gp-bg: #f6fbf7;
  --gp-surface: #ffffff;
  --gp-text: #1c2b1c;
  --gp-text-muted: #4e5e4b;
  --gp-primary: #4a8262; /* darker sage — visible link color */
  --gp-secondary: #a8c5b6;
  --gp-tertiary: #e9dfc6;
  --gp-accent: #b9a5d7; /* soft aurora purple */

  /* Iridescent atmosphere tokens */
  --gp-iris-1: #f1f6f3;
  --gp-iris-2: #eef3f6;
  --gp-iris-3: #f6f2f8;
  --gp-iris-4: #f5f1ec;

  --gp-aurora-iris: linear-gradient(
    135deg,
    var(--gp-iris-1),
    var(--gp-iris-2),
    var(--gp-iris-3),
    var(--gp-iris-4)
  );

  --gp-card-bg: rgba(255, 255, 255, 0.74);
  --gp-card-border: rgba(122, 170, 150, 0.22);
  --gp-card-shadow: 0 8px 28px rgba(122, 170, 150, 0.1);
  --gp-card-hover: 0 18px 40px rgba(122, 170, 150, 0.16);

  --gp-glow: rgba(141, 184, 160, 0.35);
  --gp-glow-intense: rgba(160, 130, 210, 0.45);

  --gp-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gp-duration: 0.78s;
  --gp-distance: 20px;

  /* ── Coherent green system (single source of truth for all greens) ──
     Use these everywhere instead of ad-hoc rgba() values so the page reads
     as one consistent sage family rather than a dozen different greens. */
  --green-900: #2f5641; /* deepest — strong emphasis / completion */
  --green-700: #3d6b52; /* deep sage — achievement, button border */
  --green-600: #4a8262; /* primary sage — links, button text */
  --green-500: #5b9a76; /* mid sage — hover */
  --green-300: #a8c5b6; /* light sage — icons, soft accents */
  --green-100: #e4efe9; /* faint sage — fills, tints */
  --green-glow: rgba(74, 130, 98, 0.22); /* unified shadow/glow tint */
}

/* Base atmosphere */
body {
  background-color: var(--gp-bg);
  background-image:
    radial-gradient(
      ellipse at 12% -8%,
      rgba(210, 230, 240, 0.38),
      transparent 56%
    ),
    radial-gradient(
      ellipse at 88% 108%,
      rgba(215, 210, 235, 0.34),
      transparent 58%
    ),
    var(--gp-aurora-iris);
  background-attachment: fixed;
  background-size: 100% 100%;
  color: var(--gp-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
article h1,
article h2,
article h3 {
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: var(--gp-text);
}

a {
  color: var(--gp-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color 0.22s var(--gp-ease),
    text-decoration-color 0.22s;
}
a:hover {
  color: var(--gp-accent);
}

/* Layout helpers */
.zensical article,
.zensical .content,
main,
article {
  position: relative;
  z-index: 1;
}
.zensical article > *,
.zensical .content > *,
main > *,
article > *,
section {
  position: relative;
  z-index: 1;
}

/* Cards */
.zensical .card,
section.card,
div.card,
article.card,
article section,
main section {
  background: var(--gp-card-bg);
  border: 1px solid var(--gp-card-border);
  border-radius: 22px;
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  box-shadow: var(--gp-card-shadow);
  transition:
    transform var(--gp-duration) var(--gp-ease),
    box-shadow var(--gp-duration) var(--gp-ease),
    border-color 0.3s ease;
}
.zensical .card:hover,
section.card:hover,
div.card:hover,
article.card:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 170, 150, 0.48);
  box-shadow: var(--gp-card-hover);
}

/* Homepage hero panels */
.hero-media,
.godspark-hero {
  margin: 1.2rem 0 2rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--gp-card-border);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.52),
      rgba(255, 255, 255, 0.3)
    ),
    var(--gp-aurora-iris);
  background-blend-mode: overlay;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: var(--gp-card-shadow);
}
.hero-media img,
.godspark-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
}
.hero-media figcaption,
.godspark-hero figcaption {
  padding: 0.8rem 1rem;
  color: var(--gp-text-muted);
  font-size: 0.92rem;
}

.intro-lead {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--gp-text-muted);
}

/* Front-page lists */
.index main ul,
.index main ol {
  padding-left: 1.2rem;
  line-height: 1.75;
}
.index main ul li::marker,
.index main ol li::marker {
  color: var(--gp-primary);
}

/* CTA buttons (additive only) */
button.cta,
a.cta,
.zensical .cta,
button[class*="godspark"],
a[class*="godspark"] {
  background: linear-gradient(120deg, var(--gp-primary), var(--gp-accent));
  color: #fff;
  font-weight: 550;
  border: 1px solid rgba(122, 170, 150, 0.24);
  border-radius: 999px;
  padding: 0.55em 1.5em;
  cursor: pointer;
  transition:
    opacity 0.28s,
    box-shadow 0.28s,
    transform 0.28s var(--gp-ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  position: relative;
  overflow: hidden;
}
button.cta:hover,
a.cta:hover,
.zensical .cta:hover,
button[class*="godspark"]:hover,
a[class*="godspark"]:hover {
  opacity: 0.96;
  box-shadow: 0 12px 26px var(--gp-glow);
  transform: translateY(-1px);
}
button.cta::after,
a.cta::after,
.zensical .cta::after,
button[class*="godspark"]::after,
a[class*="godspark"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  background-position: -130% 0;
  pointer-events: none;
  border-radius: inherit;
}
.zensical .cta:hover::after,
button[class*="godspark"]:hover::after,
a[class*="godspark"]:hover::after {
  animation: gp-sheen 7s var(--gp-ease) infinite;
}
@keyframes gp-sheen {
  0% {
    background-position: -140% 0;
  }
  55% {
    background-position: 80% 0;
  }
  100% {
    background-position: 80% 0;
  }
}

/* Code (preserve toolbar button readability) */
pre {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--gp-card-border);
  border-radius: 14px;
}
code,
kbd {
  background: rgba(122, 170, 150, 0.1);
  border: 1px solid rgba(122, 170, 150, 0.18);
  border-radius: 7px;
  color: var(--gp-text);
}

/* Blockquotes */
blockquote {
  border-left: 3px solid var(--gp-secondary);
  background: rgba(141, 184, 160, 0.08);
  border-radius: 0 12px 12px 0;
  padding: 0.9rem 1.2rem;
  margin: 1.4rem 0;
  color: var(--gp-text-muted);
  font-style: italic;
}

/* HR */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gp-primary),
    var(--gp-secondary),
    transparent
  );
  margin: 2.4rem 0;
}

/* Tables */
table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(122, 170, 150, 0.07);
}
th {
  background: linear-gradient(135deg, #3d6b52, #5a8a6e, #92ad9e);
  color: #fff;
  font-weight: 550;
  letter-spacing: 0.02em;
  padding: 0.7rem 1rem;
}
td {
  background: var(--gp-surface);
  border-bottom: 1px solid rgba(122, 170, 150, 0.12);
}

/* Scroll reveals */
.godspark-reveal {
  opacity: 0;
  transform: translateY(var(--gp-distance));
  transition:
    opacity var(--gp-duration) var(--gp-ease),
    transform var(--gp-duration) var(--gp-ease);
}
.godspark-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.godspark-reveal.is-visible > * {
  opacity: 0;
  transform: translateY(var(--gp-distance));
  transition:
    opacity var(--gp-duration) var(--gp-ease),
    transform var(--gp-duration) var(--gp-ease);
}
.godspark-reveal.is-visible > *:nth-child(1) {
  transition-delay: 0s;
}
.godspark-reveal.is-visible > *:nth-child(2) {
  transition-delay: 0.08s;
}
.godspark-reveal.is-visible > *:nth-child(3) {
  transition-delay: 0.16s;
}
.godspark-reveal.is-visible > *:nth-child(4) {
  transition-delay: 0.24s;
}
.godspark-reveal.is-visible > *:nth-child(5) {
  transition-delay: 0.32s;
}
.godspark-reveal.is-visible > *:nth-child(6) {
  transition-delay: 0.4s;
}
.godspark-reveal.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor glow (opt-in attribute) */
[gp-glow]::after,
.gp-glow-active::after {
  content: "";
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  background: radial-gradient(
    circle,
    rgba(141, 184, 160, 0.3) 0%,
    rgba(160, 130, 210, 0.16) 32%,
    transparent 68%
  );
  transform: translate(-50%, -50%);
  opacity: 0;
  left: -400px;
  top: -400px;
  transition: opacity 0.45s ease;
  will-change: left, top, opacity;
}
[gp-glow]::after,
.gp-glow-active::after {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  [gp-glow]::after,
  .gp-glow-active::after {
    display: none !important;
  }
  .godspark-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .godspark-reveal.is-visible > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--gp-bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--gp-primary),
    var(--gp-accent),
    var(--gp-secondary)
  );
  border-radius: 99px;
}

/* Neutralize default Zensical color cycling without breaking toolbar icons */
.md-header,
.md-header__inner,
.md-header__button,
.md-icon,
[data-md-color-component="header"] {
  animation: none !important;
}
h1,
h2,
h3,
h4,
h5,
h6,
article h1,
article h2,
article h3 {
  animation: none !important;
  background: none !important;
  -webkit-text-fill-color: var(--gp-text);
  background-clip: unset !important;
  color: var(--gp-text);
}

/* Selection/focus */
::selection {
  background: var(--gp-primary);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--gp-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.beacon-icons a .md-icon,
.beacon-icons button .md-icon {
  color: inherit;
}

/* Larger logo in header */
.md-header__button.md-logo {
  padding: 0.4rem;
}
.md-header__button.md-logo img {
  height: 3.2rem;
  width: auto;
}

/* Hide the site name text in the header nav bar, keep layout intact */
.md-header__title .md-ellipsis {
  visibility: hidden;
}

/* Homepage refined */

.wp-divider {
  border: none;
  height: 1px;
  margin: 2.8rem auto 3.2rem;
  max-width: 86%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gp-secondary),
    var(--gp-primary),
    var(--gp-accent),
    transparent
  );
  opacity: 0.42;
}

.wp-spacer {
  height: 0;
  opacity: 0;
}

/* Contribution section card */
.wp-section {
  background: var(--gp-card-bg);
  border: 1px solid var(--gp-card-border);
  border-radius: 26px;
  padding: 2rem 2.2rem;
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  box-shadow: var(--gp-card-shadow);
  position: relative;
  z-index: 1;
}

.wp-section h2,
.wp-section h3 {
  margin-top: 0;
  font-weight: 700;
  color: var(--gp-text);
}

.wp-section ul,
.wp-section ol {
  padding-left: 1.35rem;
  line-height: 1.8;
}

.wp-section li {
  margin: 0.28rem 0;
}

.wp-section li::marker {
  color: var(--gp-primary);
}

/* Tighter hero composition on index */
.index .godspark-hero {
  margin-bottom: 0.6rem;
  box-shadow: none;
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.index .godspark-hero img {
  max-height: 420px;
}

/* ── Page hero images — full-width, caption overlay ── */
.page-hero,
.page-infographic {
  position: relative;
  margin: 0.6rem 0 1.2rem;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}
.page-hero img,
.page-infographic img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.page-hero figcaption,
.page-infographic figcaption {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 8px 0 0 0;
  color: var(--gp-text-muted);
  font-size: 0.68rem;
  font-style: italic;
  line-height: 1.35;
  max-width: 55%;
}
.page-hero figcaption a,
.page-infographic figcaption a {
  color: var(--gp-primary);
  font-style: normal;
}

/* ── AI-generated image credit — tiny, no emoji ── */
.ai-credit {
  font-size: 0.68rem;
  color: var(--gp-text-muted);
  font-style: italic;
}

/* ── Footer badges ── */
.md-copyright__badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.md-copyright__zensical {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}
.md-copyright__grebedoc {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.md-copyright__grebedoc img {
  image-rendering: pixelated;
}

/* ── Comments section ── */
#__comments {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 2.5rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gp-secondary);
}
#cusdis_thread {
  min-height: 520px;
  padding: 0.8rem 0;
}
#cusdis_thread iframe {
  border-radius: 12px;
  min-height: 500px !important;
  height: auto !important;
}

/* Print */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #000 !important;
  }
  .gp-glow-active::after,
  [gp-glow]::after {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Grid card background images — Practices & Strategies index pages
   Light: daisyUI-style image-top card  /  Dark: atmospheric full-bleed overlay.
   Images served locally at ~70 KB each.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Grid spacing ──
   NB: the <ul> is display:contents, so the real grid lives on the .grid.cards
   div itself. Gap MUST be set there, not on the ul. */
[class*="gp-cards-"].grid.cards {
  gap: 2.4rem !important;
}
[class*="gp-cards-"].grid.cards > ul {
  gap: 2.4rem;
}

/* ── Shared card shell ── */
[class*="gp-cards-"].grid.cards ul li {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  isolation: isolate;
  border: 1px solid var(--green-100);
  transition:
    transform 0.35s var(--gp-ease),
    box-shadow 0.35s var(--gp-ease),
    border-color 0.3s ease;
}

/* Image layer — positioning & sizing set per theme below */
[class*="gp-cards-"].grid.cards ul li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: transform 1.2s var(--gp-ease);
}

/* ── Full-card clickable overlay (covers entire li) ── */
[class*="gp-cards-"].grid.cards ul li > a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* ── No link underlines ── */
[class*="gp-cards-"].grid.cards ul li a {
  text-decoration: none !important;
  background: transparent !important;
}

/* ── Explore button (outline pill — white fill, green border + text).
   Visual only; clicks pass through to the card link. Subtle fill-on-hover. ── */
[class*="gp-cards-"].grid.cards ul li::after {
  content: "🌱 Explore";
  position: absolute;
  bottom: 1.1rem;
  right: 1.1rem;
  z-index: 3;
  pointer-events: none;
  background: var(--gp-surface);
  color: var(--green-700);
  border: 1.5px solid var(--green-600);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.32rem 0.82rem;
  border-radius: 999px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px var(--green-glow);
  transition:
    background 0.28s var(--gp-ease),
    color 0.28s var(--gp-ease),
    border-color 0.28s var(--gp-ease),
    box-shadow 0.28s var(--gp-ease),
    transform 0.28s var(--gp-ease);
}

/* Flashy-but-subtle: the outline button fills with sage green and lifts
   when the card is hovered. */
[class*="gp-cards-"].grid.cards ul li:hover::after {
  background: var(--green-600);
  color: #fff;
  border-color: var(--green-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--green-glow);
}

/* ═══════════════════════════════════════════════════════════════════════
   LIGHT THEME (default) — daisyUI image-top card
   ═══════════════════════════════════════════════════════════════════════ */

[class*="gp-cards-"].grid.cards ul li {
  background: var(--gp-surface);
  padding: 0 1.4rem 3.4rem 1.4rem;
  padding-top: 176px; /* 150px image + ~26px gap before title */
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

[class*="gp-cards-"].grid.cards ul li::before {
  height: 150px;
  background-image: var(--card-img);
}

[class*="gp-cards-"].grid.cards ul li {
  color: var(--gp-text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

[class*="gp-cards-"].grid.cards ul li a {
  color: var(--green-600);
  display: block;
  margin-bottom: 0.6rem !important;
}

[class*="gp-cards-"].grid.cards ul li strong {
  color: var(--green-700);
  font-size: 1rem;
  font-weight: 650;
}

[class*="gp-cards-"].grid.cards ul li .twemoji {
  color: var(--green-500);
}

/* Clean, minimal hover — title deepens within the same sage family
   (no lilac/purple shift). */
[class*="gp-cards-"].grid.cards ul li a:hover,
[class*="gp-cards-"].grid.cards ul li a:hover strong {
  color: var(--green-900);
}

/* Light hover */
[class*="gp-cards-"].grid.cards ul li:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px var(--green-glow);
  border-color: var(--green-300);
}

[class*="gp-cards-"].grid.cards ul li:hover::before {
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════════════════
   CARD IMAGE URLS — defined once via custom properties
   ═══════════════════════════════════════════════════════════════════════ */

.gp-cards-practices.grid.cards ul li:nth-child(1) {
  --card-img: url("/assets/images/cards/practices-grounding.jpg");
}
.gp-cards-practices.grid.cards ul li:nth-child(2) {
  --card-img: url("/assets/images/cards/practices-nourishing.jpg");
}
.gp-cards-practices.grid.cards ul li:nth-child(3) {
  --card-img: url("/assets/images/cards/practices-sadhana.jpg");
}
.gp-cards-practices.grid.cards ul li:nth-child(4) {
  --card-img: url("/assets/images/cards/practices-digital.jpg");
}
.gp-cards-practices.grid.cards ul li:nth-child(5) {
  --card-img: url("/assets/images/cards/practices-hygiene.jpg");
}

.gp-cards-strategies.grid.cards ul li:nth-child(1) {
  --card-img: url("/assets/images/cards/strategies-digital-sov.jpg");
}
.gp-cards-strategies.grid.cards ul li:nth-child(2) {
  --card-img: url("/assets/images/cards/strategies-community-sov.jpg");
}
.gp-cards-strategies.grid.cards ul li:nth-child(3) {
  --card-img: url("/assets/images/cards/strategies-purpose.jpg");
}
.gp-cards-strategies.grid.cards ul li:nth-child(4) {
  --card-img: url("/assets/images/cards/strategies-awakening.jpg");
}

/* ═══════════════════════════════════════════════════════════════════════
   DARK THEME (slate) — full-bleed atmospheric image + light text
   ═══════════════════════════════════════════════════════════════════════ */

[data-md-color-scheme="slate"] [class*="gp-cards-"].grid.cards ul li {
  background: transparent;
  padding: 1.3rem 1.3rem 3.4rem 1.3rem;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

[data-md-color-scheme="slate"] [class*="gp-cards-"].grid.cards ul li::before {
  height: auto;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(
      160deg,
      rgba(14, 22, 16, 0.62) 0%,
      rgba(6, 14, 10, 0.74) 100%
    ),
    var(--card-img);
}

[data-md-color-scheme="slate"] [class*="gp-cards-"].grid.cards ul li {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-md-color-scheme="slate"] [class*="gp-cards-"].grid.cards ul li a,
[data-md-color-scheme="slate"] [class*="gp-cards-"].grid.cards ul li strong {
  color: rgba(255, 255, 255, 0.94);
}

[data-md-color-scheme="slate"] [class*="gp-cards-"].grid.cards ul li .twemoji {
  color: rgba(255, 255, 255, 0.6);
}

[data-md-color-scheme="slate"] [class*="gp-cards-"].grid.cards ul li a:hover,
[data-md-color-scheme="slate"]
  [class*="gp-cards-"].grid.cards
  ul
  li
  a:hover
  strong {
  color: rgba(255, 255, 255, 1);
}

[data-md-color-scheme="slate"] [class*="gp-cards-"].grid.cards ul li:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Dark mode button — outline on glass; fills sage on hover */
[data-md-color-scheme="slate"] [class*="gp-cards-"].grid.cards ul li::after {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-md-color-scheme="slate"]
  [class*="gp-cards-"].grid.cards
  ul
  li:hover::after {
  background: var(--green-600);
  color: #fff;
  border-color: var(--green-600);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE & ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  [class*="gp-cards-"].grid.cards ul li,
  [class*="gp-cards-"].grid.cards ul li::before,
  [class*="gp-cards-"].grid.cards ul li::after {
    transition: none;
  }
  [class*="gp-cards-"].grid.cards ul li:hover::before {
    transform: none;
  }
}

@media (max-width: 600px) {
  [class*="gp-cards-"].grid.cards ul li {
    min-height: 250px;
    padding: 0 1.2rem 3.2rem 1.2rem;
    padding-top: 146px; /* 120px image + ~26px gap before title */
  }
  /* Image must shrink in step with padding-top, or the text slides up
     underneath it. Keep image height + gap == padding-top above. */
  [class*="gp-cards-"].grid.cards ul li::before {
    height: 120px;
  }
  [class*="gp-cards-"].grid.cards > ul {
    gap: 1.4rem;
  }
  [data-md-color-scheme="slate"] [class*="gp-cards-"].grid.cards ul li {
    min-height: 150px;
    padding: 1.1rem 1.1rem 3.2rem 1.1rem;
  }
}

/* ═════════════════════════════════════════════════════════════════
   Action Points — Interactive Checklist
   ═════════════════════════════════════════════════════════════════ */

/* ── Checkbox interaction ─────────────────────────── */
li.task-list-item input[type="checkbox"] {
  cursor: pointer;
  transition: transform 0.18s var(--gp-ease, cubic-bezier(0.22, 0.61, 0.36, 1));
}
li.task-list-item input[type="checkbox"]:active {
  transform: scale(0.82);
}
li.task-list-item:has(input:checked) {
  text-decoration: line-through;
  color: var(--gp-text-muted);
  opacity: 0.72;
  transition:
    opacity 0.3s ease,
    color 0.3s ease;
}

/* ── Pill badges (via ::after pseudo-element — clean textContent) ── */
h1[data-toa-count]::after,
h2[data-toa-count]::after,
h3[data-toa-count]::after {
  content: attr(data-toa-count);
  display: inline-block;
  float: right;
  background: var(--gp-card-bg, rgba(255, 255, 255, 0.74));
  border: 1px solid var(--gp-card-border, rgba(122, 170, 150, 0.22));
  border-radius: 999px;
  padding: 0.08em 0.62em;
  font-size: 0.62em;
  font-weight: 550;
  color: var(--gp-text-muted, #4e5e4b);
  margin-left: 0.5em;
  line-height: 1.6;
  letter-spacing: 0.01em;
  transition:
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

h1[data-toa-count]::after {
  font-size: 0.48em;
  padding: 0.1em 0.7em;
}

h1[data-toa-complete="true"]::after,
h2[data-toa-complete="true"]::after,
h3[data-toa-complete="true"]::after {
  background: #3d6b52;
  color: #fff !important;
  /* Headings set -webkit-text-fill-color (gradient/fill effect); pseudo-els
     inherit it and it overrides `color`. Override it on the pill ONLY so the
     count text is white on green — the heading's own text color is untouched. */
  -webkit-text-fill-color: #fff !important;
  border-color: #3d6b52;
}

/* ── Heading completion ───────────────────────────── */
.toa-heading--complete {
  color: #3d6b52 !important;
  transition: color 0.5s ease;
}

/* ── Nav badges ───────────────────────────────────── */
.toa-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1em;
  background: var(--gp-card-bg, rgba(255, 255, 255, 0.74));
  border: 1px solid var(--gp-card-border, rgba(122, 170, 150, 0.22));
  border-radius: 999px;
  padding: 0 0.42em;
  font-size: 0.68em;
  font-weight: 550;
  color: var(--gp-text-muted, #4e5e4b);
  margin-left: 0.4em;
  line-height: 1.65;
  transition:
    background 0.35s ease,
    color 0.35s ease;
}

.toa-nav-badge--complete {
  background: #3d6b52;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: #3d6b52;
}

/* The complete nav link goes green (below). Make sure the badge text on its
   green background stays white and isn't dragged green by the link's
   !important color. */
.md-nav__link.toa-nav--complete .toa-nav-badge--complete {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.md-nav__link.toa-nav--complete {
  color: #3d6b52 !important;
  transition: color 0.35s ease;
}

/* ── Export link ──────────────────────────────────── */
.toa-export {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--gp-text-muted, #4e5e4b);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gp-secondary, #a8c5b6);
  margin-top: 0.6rem;
  transition: color 0.22s ease;
}
.toa-export:hover {
  color: var(--gp-primary, #4a8262);
}

/* ═════════════════════════════════════════════════════════════════
   Nav-drawer stacking fix (.md-overlay)
   The backdrop-filter / transform / will-change rules in this stylesheet
   spawn extra stacking contexts that let the drawer scrim (.md-overlay)
   paint ON TOP of the open nav panel, blurring the menu and swallowing
   its clicks. Dropping the scrim's z-index back to 1 puts it below the
   drawer panel again, so the menu is visible and interactive.
   (Verified: z-index:1 restores usable mobile nav.)
   ═════════════════════════════════════════════════════════════════ */
.md-overlay {
  z-index: 1;
}

/* ═════════════════════════════════════════════════════════════════
   Keep In Touch — subscribe admonition (.toa-kit)
   A card with a slowly-rotating iridescent border, two icon fields
   (WhatsApp + email), a progressively-revealed name field, and a small
   "Send" button. Success/celebration states stay in the sage family;
   only the rotating border is full-spectrum iridescent (decorative).
   ═════════════════════════════════════════════════════════════════ */
:root {
  --toa-kit-radius: 16px;
  --toa-kit-border: 1.5px;
}

.toa-kit {
  margin: 2.6rem 0 2rem;
}

/* Clean, soft gradient card — no animation, no iridescent border. */
.toa-kit__inner {
  position: relative;
  border-radius: var(--toa-kit-radius);
  padding: 1.5rem 1.5rem 1.35rem;
  border: 1px solid var(--gp-card-border);
  background: linear-gradient(135deg, #f8faf7 0%, #f2f6f1 40%, #eef3ee 100%);
  box-shadow: 0 2px 16px rgba(122, 170, 150, 0.08);
  overflow: hidden;
}

/* Subtle inner highlight — a single soft radial sweep behind the content. */
.toa-kit__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(168, 197, 182, 0.18),
    transparent 70%
  );
}

.toa-kit__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.05rem;
}

.toa-kit__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  color: var(--green-600);
  background: var(--green-100);
}
.toa-kit__icon .lucide {
  width: 1.2rem;
  height: 1.2rem;
}

.toa-kit__heading {
  min-width: 0;
}

.toa-kit__titletext {
  margin: 0.05rem 0 0.15rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-900);
}

.toa-kit__sub {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--gp-text-muted);
}

.toa-kit__form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Icon-inside-field, mirroring the Zensical search-bar look */
.toa-kit__field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.85rem;
  height: 2.6rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--gp-card-border);
  transition:
    border-color 0.2s var(--gp-ease),
    box-shadow 0.2s var(--gp-ease),
    background 0.2s var(--gp-ease);
}
.toa-kit__field:focus-within {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-glow);
  background: #ffffff;
}
.toa-kit__field[data-valid="true"] {
  border-color: var(--green-700);
  background: var(--green-100);
}
.toa-kit__field[data-invalid="true"] {
  border-color: #c97c7c;
  box-shadow: 0 0 0 3px rgba(201, 124, 124, 0.18);
}

.toa-kit__fieldicon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--green-600);
}
.toa-kit__fieldicon .lucide {
  width: 1.05rem;
  height: 1.05rem;
}

.toa-kit__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  color: var(--gp-text);
}
.toa-kit__input::placeholder {
  color: var(--gp-text-muted);
  opacity: 0.8;
}

.toa-kit__field--name {
  animation: toa-kit-reveal 0.42s var(--gp-ease) both;
}
@keyframes toa-kit-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Small, easy "Send" button */
.toa-kit__send {
  align-self: flex-end;
  margin-top: 0.15rem;
  padding: 0.4rem 1.15rem;
  border: 1px solid var(--green-700);
  border-radius: 9px;
  background: var(--green-600);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.15s var(--gp-ease),
    background 0.2s var(--gp-ease),
    box-shadow 0.2s var(--gp-ease);
}
.toa-kit__send:hover {
  background: var(--green-500);
  box-shadow: 0 6px 18px var(--green-glow);
}
.toa-kit__send:active {
  transform: translateY(1px);
}
.toa-kit__send:disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

/* Thank-you / status notice */
.toa-kit__notice {
  margin: 0.85rem 0 0;
  padding: 0.55rem 0.8rem;
  border-radius: 9px;
  font-size: 0.85rem;
  line-height: 1.4;
  animation: toa-kit-reveal 0.4s var(--gp-ease) both;
}
.toa-kit__notice[data-tone="success"] {
  color: var(--green-900);
  background: var(--green-100);
  border: 1px solid var(--green-300);
}
.toa-kit__notice[data-tone="error"] {
  color: #7a3b3b;
  background: rgba(201, 124, 124, 0.12);
  border: 1px solid rgba(201, 124, 124, 0.35);
}

[data-md-color-scheme="slate"] .toa-kit__field {
  background: rgba(255, 255, 255, 0.05);
}
[data-md-color-scheme="slate"] .toa-kit__field:focus-within {
  background: rgba(255, 255, 255, 0.09);
}
[data-md-color-scheme="slate"] .toa-kit__input {
  color: #e6efe8;
}
[data-md-color-scheme="slate"] .toa-kit__inner {
  background: linear-gradient(135deg, #1e2b22, #1f2d24, #1c2a20);
  border-color: rgba(122, 170, 150, 0.12);
}

/* Fade-out after the visitor has subscribed (localStorage flag). */
.toa-kit--done {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
  transition:
    opacity 0.5s var(--gp-ease),
    max-height 0.5s var(--gp-ease) 0.2s,
    margin 0.5s var(--gp-ease) 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .toa-kit__field--name,
  .toa-kit__notice {
    animation: none;
  }
  .toa-kit--done {
    transition: none;
  }
}

@media (max-width: 600px) {
  .toa-kit__inner {
    padding: 1.2rem 1.05rem;
  }
  .toa-kit__send {
    align-self: stretch;
  }
}
