/*!
 * Autumn Hendrix Webador Theme — Compiled Bundle
 * Source repo: https://thechigger.github.io/AH-Website
 * Version: 1.5
 * Loaded via a single <link rel="stylesheet"> in Webador Head HTML.
 */

/* ==========================================================================
   src/tokens.css
   Central design tokens & GitHub Pages asset URLs for autumnhendrixauthor.com
   ========================================================================== */

:root {
  /* Typography & Ink (WCAG AA compliant on white frosted surfaces) */
  --ah-heading: #4A3B86;
  --ah-ink: #1E293B;
  --ah-ink-muted: #475569;
  --ah-accent: #5B4B9E;
  --ah-accent-hover: #3F3374;

  /* Reading Surfaces */
  --ah-surface: rgba(255, 255, 255, 0.92);
  --ah-surface-solid: #ffffff;
  --ah-surface-border: rgba(30, 41, 59, 0.12);
  --ah-surface-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --ah-blur: 10px;

  /* Responsive Spacing & Type Scale */
  --ah-radius: 12px;
  --ah-card-pad-desktop: 32px;
  --ah-card-pad-mobile: 16px;
  --ah-body-size-mobile: 16px;

  /* Global & Book Section Brand Assets (hosted in this GitHub Pages repo) */
  /* Copy of AUTHOR WEBSITE TEMPLATE-4.png (792x1804 portrait texture) */
  --ah-bg-site: url("https://thechigger.github.io/AH-Website/assets/backgrounds/site-background.png");
  /* Copy of AUTHOR WEBSITE TEMPLATE-3.png (optional torn pastel rainbow edge) */
  --ah-accent-rainbow: url("https://thechigger.github.io/AH-Website/assets/backgrounds/rainbow-torn-edge.png");
  /* Per-book section backdrops (mapped to #jw-element-* book cards) */
  --ah-bg-when-im-gone: url("https://thechigger.github.io/AH-Website/assets/backgrounds/when-im-gone-background.jpg");
  --ah-bg-begin-again: url("https://thechigger.github.io/AH-Website/assets/backgrounds/begin-again-background.png");
  --ah-bg-broken-things: url("https://thechigger.github.io/AH-Website/assets/backgrounds/broken-things-background.png");
  --ah-bg-only-ever-you: url("https://thechigger.github.io/AH-Website/assets/backgrounds/only-ever-you-background.png");
  --ah-bg-naughty-list: url("https://thechigger.github.io/AH-Website/assets/backgrounds/naughty-list-background.png");
  /* Clean uploaded Unwell Series book covers (replace legacy Canva collages) */
  --ah-cover-when-im-gone: url("https://thechigger.github.io/AH-Website/assets/books/uw-1-when-im-gone.png");
  --ah-cover-begin-again: url("https://thechigger.github.io/AH-Website/assets/books/uw-2-begin-again.png");
  --ah-cover-broken-things: url("https://thechigger.github.io/AH-Website/assets/books/uw-3-broken-things.png");
  --ah-cover-only-ever-you: url("https://thechigger.github.io/AH-Website/assets/books/uw-4-only-ever-you.png");
  --ah-cover-unwell-christmas: url("https://thechigger.github.io/AH-Website/assets/books/uw-5-naughty-and-nice-list.png");
}

/* ==========================================================================
   src/base.css
   Global backdrop (width-fit, zero distortion), Webador reset, and typography
   Note: Webador injects <head> HTML BEFORE main.css & style.css, so selectors
   use high specificity + !important to reliably win the cascade.
   ========================================================================== */

/* Global website background: Copy of AUTHOR WEBSITE TEMPLATE-4.png (792x1804)
   - Uses z-index: 0 on body::before and z-index: 1 on .jw-body so Safari never hides
     the fixed backdrop behind html's background fill.
   - background-size: 100% auto fits full width with natural aspect ratio preserved (zero stretch). */
html {
  background-color: #e9e8f0 !important;
  background-image: none !important;
  overflow-x: clip;
}

body {
  position: relative !important;
  background-color: transparent !important;
  background-image: none !important;
  background-attachment: scroll !important;
  color: var(--ah-ink) !important;
  overflow-x: clip;
}

body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  background-color: transparent !important;
  background-image: var(--ah-bg-site) !important;
  background-size: 100% auto !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  pointer-events: none !important;
  transform: translateZ(0);
}

html body .jw-body {
  position: relative !important;
  z-index: 1 !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

html body .jw-body .main-content,
html body .jw-body main.block-content {
  flex: 1 0 auto !important;
}

/* Strip opaque Webador wrapper fills so the unified global backdrop shows everywhere */
html body .jw-background,
html body .jw-body,
html body .main-content,
html body .block-content,
html body .jw-section,
html body .jw-strip-root,
html body .jw-strip,
html body .jw-strip__background-container,
html body .jw-strip__background {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Hide legacy Webador full-strip background images (e.g. Home rainbow/texture strips)
   while keeping split-image covers & portraits (.jw-strip--style-split-image) intact */
html body .jw-strip--style-image > .jw-strip__background-container {
  display: none !important;
}

/* Keep hero wordmark & content images proportional (never squished) */
.jw-element-image img,
.jw-strip__content-container img {
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
}

/* Legible headings across light frosted surfaces — also overrides Webador inline
   <span style="color: #bbb2fa;"> tags created by the WYSIWYG editor */
.jw-element-heading h1,
.jw-element-heading h1 *,
.jw-element-heading h2,
.jw-element-heading h2 *,
.jw-element-heading h3,
.jw-element-heading h3 *,
.jw-strip__content-container h1,
.jw-strip__content-container h1 *,
.jw-strip__content-container h2,
.jw-strip__content-container h2 *,
.jw-strip__content-container h3,
.jw-strip__content-container h3 *,
.jw-heading-130,
.jw-heading-130 *,
.jw-heading-100,
.jw-heading-100 * {
  color: var(--ah-heading) !important;
  line-height: 1.2 !important;
  text-wrap: balance;
}

.jw-strip__content-container p,
.jw-strip__content-container p span,
.jw-strip__content-container p strong,
.jw-strip__content-container p em,
.jw-strip__content-container li,
.jw-strip__content-container li span {
  color: var(--ah-ink) !important;
  line-height: 1.65 !important;
}

/* Accessible button baseline — forces crisp white caption text over Webador's #737373 default */
html body .jw-btn,
html body a.jw-btn,
html body button.jw-btn {
  background-color: var(--ah-accent) !important;
  border-color: var(--ah-accent) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  min-height: 44px;
  padding: 10px 22px !important;
  font-weight: 600 !important;
  transition: background-color 150ms ease, transform 150ms ease;
}

html body .jw-btn .jw-btn-caption,
html body .jw-btn span,
html body .jw-btn i {
  color: #ffffff !important;
}

html body .jw-btn:hover,
html body a.jw-btn:hover,
html body button.jw-btn:hover {
  background-color: var(--ah-accent-hover) !important;
  border-color: var(--ah-accent-hover) !important;
}

/* Home page Studio parity: frosted hero card around wordmark + crisp spacing */
html body #jw-element-825332002 .jw-strip__content-container {
  padding: 20px 20px 8px 20px !important;
}

html body #jw-element-825332002 .jw-strip__content {
  max-width: 960px !important;
  margin: 0 auto !important;
}

html body #jw-element-825332002 img {
  max-width: 960px !important;
  margin: 0 auto !important;
  border-radius: 10px;
  box-shadow: var(--ah-surface-shadow);
}

html body #jw-element-825338816 .jw-strip__content-container {
  padding: 12px 20px 36px 20px !important;
}

html body #jw-element-825338816 .jw-strip__content {
  background: var(--ah-surface) !important;
  backdrop-filter: blur(var(--ah-blur)) !important;
  -webkit-backdrop-filter: blur(var(--ah-blur)) !important;
  border: 1px solid var(--ah-surface-border) !important;
  border-radius: var(--ah-radius) !important;
  box-shadow: var(--ah-surface-shadow) !important;
  max-width: 960px !important;
  margin: 0 auto !important;
  padding: 36px 32px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

html body #jw-element-825338816 .jw-spacer {
  display: none !important;
}

html body #jw-element-825338816 .jw-element-image,
html body #jw-element-825338816 .jw-element-image-is-left {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
}

html body #jw-element-825338816 .jw-element-image__image-wrapper {
  width: 100% !important;
  max-width: 440px !important;
  padding-top: 0 !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body #jw-element-825338816 .jw-element-image__image,
html body #jw-element-825338816 img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* Optional Studio Home CTA buttons & 5-book showcase (used if pasted in Webador Embed Code) */
.ah-home-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 18px auto 24px auto;
  max-width: 960px;
}

.ah-home-cta-primary,
.ah-home-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: transform 150ms ease, background-color 150ms ease;
}

.ah-home-cta-primary {
  background: var(--ah-accent) !important;
  color: #ffffff !important;
}

.ah-home-cta-primary:hover {
  background: var(--ah-accent-hover) !important;
}

.ah-home-cta-secondary {
  background: var(--ah-surface-solid) !important;
  color: var(--ah-ink) !important;
  border: 1px solid var(--ah-surface-border) !important;
}

.ah-home-showcase {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto 24px auto;
  padding: 24px;
  background: var(--ah-surface);
  backdrop-filter: blur(var(--ah-blur));
  -webkit-backdrop-filter: blur(var(--ah-blur));
  border: 1px solid var(--ah-surface-border);
  border-radius: var(--ah-radius);
  box-shadow: var(--ah-surface-shadow);
  box-sizing: border-box;
}

.ah-home-book {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none !important;
  text-align: left;
}

.ah-home-book img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.ah-home-book__series {
  font-size: 0.72rem;
  color: var(--ah-ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ah-home-book__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ah-heading);
  line-height: 1.25;
}

@media (max-width: 768px) {
  html body #jw-element-825338816 .jw-strip__content {
    padding: 24px 16px !important;
  }

  .ah-home-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: var(--ah-card-pad-mobile);
    gap: 12px;
  }

  .jw-strip__content-container p,
  .jw-strip__content-container li {
    font-size: var(--ah-body-size-mobile) !important;
  }

  .jw-strip__content-container h1 {
    font-size: clamp(1.65rem, 6vw, 2.1rem) !important;
  }

  .jw-strip__content-container h2 {
    font-size: clamp(1.35rem, 5vw, 1.7rem) !important;
  }
}

/* ==========================================================================
   src/header-mobile.css
   Sleek desktop & mobile frosted header, Studio slate footer, and mobile drawer
   ========================================================================== */

/* Desktop Header & Navigation (compact horizontal row matching Studio preview) */
html body header.block-header {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(var(--ah-blur)) !important;
  -webkit-backdrop-filter: blur(var(--ah-blur)) !important;
  border-bottom: 1px solid var(--ah-surface-border) !important;
}

@media (min-width: 769px) {
  html body header.block-header .block-header__inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    padding: 12px 24px !important;
    gap: 24px !important;
  }

  html body header.block-header .block-header__brand,
  html body header.block-header .jw-header-logo {
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  html body header.block-header .jw-header-logo img {
    max-height: 48px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  html body header.block-header .block-header__menu {
    margin: 0 !important;
    padding: 0 !important;
  }
}

html body #jw-header-title,
html body .jw-menu-horizontal .jw-menu-link {
  color: var(--ah-ink) !important;
}

html body.jw-menu-is-desktop .jw-menu > .jw-menu-is-active > .jw-menu-link,
html body .jw-menu-horizontal .jw-menu-is-active > .jw-menu-link {
  background-color: rgba(91, 75, 158, 0.1) !important;
  color: var(--ah-heading) !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
}

html body .jw-menu-horizontal .jw-menu-item > .jw-menu-link:hover {
  background-color: rgba(91, 75, 158, 0.06) !important;
  color: var(--ah-heading) !important;
}

/* Footer matching Studio dark slate anchor bar */
html body footer.block-footer {
  background: #3f3f46 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html body footer.block-footer .jw-strip__content-container {
  padding: 18px 24px !important;
}

html body footer.block-footer .jw-section-footer,
html body footer.block-footer .jw-credits,
html body footer.block-footer p,
html body footer.block-footer span {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

html body footer.block-footer a {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* Mobile Header, Hamburger, Cart & Slide-out Drawer */
html body .jw-mobile-header {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(var(--ah-blur)) !important;
  -webkit-backdrop-filter: blur(var(--ah-blur)) !important;
  border-bottom: 1px solid var(--ah-surface-border) !important;
}

html body .jw-mobile-menu__button.jw-mobile-toggle,
html body .jw-mobile-menu__button.jw-mobile-header-cart {
  background: var(--ah-surface-solid) !important;
  color: var(--ah-ink) !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 8px !important;
  border: 1px solid var(--ah-surface-border) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

html body .jw-mobile-menu__button.jw-mobile-toggle .jw-icon-burger,
html body .jw-mobile-menu__button.jw-mobile-header-cart .website-rendering-icon-basket {
  color: var(--ah-ink) !important;
}

/* Keep the slide-out mobile drawer opaque and easy to tap */
html body .jw-mobile-menu .jw-menu,
html body .jw-mobile-menu__list {
  background-color: var(--ah-surface-solid) !important;
}

html body .jw-mobile-menu .jw-menu-link {
  color: var(--ah-ink) !important;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 500;
}

html body .jw-mobile-menu .jw-menu-is-active > .jw-menu-link {
  background-color: rgba(91, 75, 158, 0.1) !important;
  color: var(--ah-heading) !important;
  font-weight: 700 !important;
}

/* Replace lime-green raster banner PNG (#jw-element-825336887) with Studio purple bar */
html body #jw-element-825336887 .jw-element-image__image-wrapper {
  display: none !important;
}

html body #jw-element-825336887 .jw-element-image::after {
  content: "Broken Things is out now — Read on Kindle Unlimited & Paperback";
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: var(--ah-accent);
  color: #ffffff;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: 10px;
  line-height: 1.4;
  box-shadow: var(--ah-surface-shadow);
}

.ah-release-banner {
  background: var(--ah-accent);
  color: #ffffff;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 16px;
  line-height: 1.4;
}

/* ==========================================================================
   src/books.css
   Unwell Series book cards, uploaded book cover swaps, About Me & Newsletter
   Every uploaded cover and backdrop is framed proportionally — zero stretch.
   ========================================================================== */

.jw-strip__content-container {
  border-radius: var(--ah-radius) !important;
}

/* Baseline frosted surface for standalone text/heading blocks */
.jw-strip__content-container .jw-element-imagetext-text,
.jw-strip__content-container .jw-element-heading {
  background: var(--ah-surface) !important;
  backdrop-filter: blur(var(--ah-blur)) !important;
  -webkit-backdrop-filter: blur(var(--ah-blur)) !important;
  border: 1px solid var(--ah-surface-border) !important;
  padding: 18px 22px !important;
  border-radius: var(--ah-radius) !important;
  box-shadow: var(--ah-surface-shadow) !important;
  margin-top: 8px !important;
  margin-bottom: 14px !important;
}

/* --------------------------------------------------------------------------
   Split-Image Desktop & Mobile Alignment Fix
   Overrides Webador's position:absolute; top:0; left:0 on img.jw-strip__image
   so book covers and the About Me portrait center cleanly in their column.
   -------------------------------------------------------------------------- */
html body .jw-strip--style-split-image {
  align-items: center !important;
}

html body .jw-strip--style-split-image .jw-strip__background,
html body .jw-strip--style-split-image .jw-strip__image-container {
  height: 100% !important;
}

html body .jw-strip--style-split-image .jw-strip__image-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  width: 100% !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

html body .jw-strip--style-split-image img.jw-strip__image {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 10px !important;
}

html body .jw-strip--style-split-image .jw-strip__content-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* --------------------------------------------------------------------------
   Unwell Series Intro Header (#jw-element-824299063) — Single Unified Card
   -------------------------------------------------------------------------- */
html body #jw-element-824299063 .jw-strip__content-container {
  padding: 28px 20px 24px 20px !important;
}

html body #jw-element-824299063 .jw-strip__content {
  background: var(--ah-surface) !important;
  backdrop-filter: blur(var(--ah-blur)) !important;
  -webkit-backdrop-filter: blur(var(--ah-blur)) !important;
  border: 1px solid var(--ah-surface-border) !important;
  border-radius: var(--ah-radius) !important;
  box-shadow: var(--ah-surface-shadow) !important;
  padding: 32px 36px !important;
  max-width: 960px !important;
  margin: 0 auto !important;
}

html body #jw-element-824299063 .jw-element-imagetext-text,
html body #jw-element-824299063 .jw-element-heading {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

/* --------------------------------------------------------------------------
   All 5 Unwell Series Book Cards (/my-books)
   Studio-matched horizontal layout: cover on left (240px) + wide frosted card (1fr)
   -------------------------------------------------------------------------- */
html body .jw-strip:has(#jw-element-824299068),
html body .jw-strip:has(#jw-element-824299073),
html body .jw-strip:has(#jw-element-824915886),
html body .jw-strip:has(#jw-element-824916164),
html body .jw-strip:has(#jw-element-824916346) {
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
  border-radius: var(--ah-radius) !important;
  padding: 24px !important;
  margin: 0 auto 24px auto !important;
  max-width: 960px !important;
  overflow: hidden;
  box-shadow: var(--ah-surface-shadow) !important;
}

@media (min-width: 769px) {
  html body .jw-strip:has(#jw-element-824299068),
  html body .jw-strip:has(#jw-element-824299073),
  html body .jw-strip:has(#jw-element-824915886),
  html body .jw-strip:has(#jw-element-824916164),
  html body .jw-strip:has(#jw-element-824916346) {
    grid-template-columns: [image] 240px [content] 1fr !important;
    column-gap: 24px !important;
  }

  html body .jw-strip:has(#jw-element-824299068) .jw-strip__image-container,
  html body .jw-strip:has(#jw-element-824299073) .jw-strip__image-container,
  html body .jw-strip:has(#jw-element-824915886) .jw-strip__image-container,
  html body .jw-strip:has(#jw-element-824916164) .jw-strip__image-container,
  html body .jw-strip:has(#jw-element-824916346) .jw-strip__image-container {
    padding: 4px !important;
  }

  html body .jw-strip:has(#jw-element-824299068) .jw-strip__content-container,
  html body .jw-strip:has(#jw-element-824299073) .jw-strip__content-container,
  html body .jw-strip:has(#jw-element-824915886) .jw-strip__content-container,
  html body .jw-strip:has(#jw-element-824916164) .jw-strip__content-container,
  html body .jw-strip:has(#jw-element-824916346) .jw-strip__content-container {
    padding: 0 !important;
  }
}

/* Remove Webador's giant vertical spacers inside the 5 book cards */
html body .jw-strip:has(#jw-element-824299068) .jw-spacer,
html body .jw-strip:has(#jw-element-824299073) .jw-spacer,
html body .jw-strip:has(#jw-element-824915886) .jw-spacer,
html body .jw-strip:has(#jw-element-824916164) .jw-spacer,
html body .jw-strip:has(#jw-element-824916346) .jw-spacer {
  display: none !important;
}

/* Unify each book's title, blurb, and Amazon CTA into one crisp frosted card */
html body .jw-strip:has(#jw-element-824299068) .jw-strip__content,
html body .jw-strip:has(#jw-element-824299073) .jw-strip__content,
html body .jw-strip:has(#jw-element-824915886) .jw-strip__content,
html body .jw-strip:has(#jw-element-824916164) .jw-strip__content,
html body .jw-strip:has(#jw-element-824916346) .jw-strip__content {
  background: var(--ah-surface) !important;
  backdrop-filter: blur(var(--ah-blur)) !important;
  -webkit-backdrop-filter: blur(var(--ah-blur)) !important;
  border: 1px solid var(--ah-surface-border) !important;
  border-radius: var(--ah-radius) !important;
  box-shadow: var(--ah-surface-shadow) !important;
  padding: 24px 28px !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

html body .jw-strip:has(#jw-element-824299068) .jw-strip__content h1,
html body .jw-strip:has(#jw-element-824299073) .jw-strip__content h1,
html body .jw-strip:has(#jw-element-824915886) .jw-strip__content h1,
html body .jw-strip:has(#jw-element-824916164) .jw-strip__content h1,
html body .jw-strip:has(#jw-element-824916346) .jw-strip__content h1,
html body .jw-strip:has(#jw-element-824299068) .jw-strip__content h2,
html body .jw-strip:has(#jw-element-824299073) .jw-strip__content h2,
html body .jw-strip:has(#jw-element-824915886) .jw-strip__content h2,
html body .jw-strip:has(#jw-element-824916164) .jw-strip__content h2,
html body .jw-strip:has(#jw-element-824916346) .jw-strip__content h2,
html body .jw-strip:has(#jw-element-824299068) .jw-strip__content p,
html body .jw-strip:has(#jw-element-824299073) .jw-strip__content p,
html body .jw-strip:has(#jw-element-824915886) .jw-strip__content p,
html body .jw-strip:has(#jw-element-824916164) .jw-strip__content p,
html body .jw-strip:has(#jw-element-824916346) .jw-strip__content p,
html body .jw-strip:has(#jw-element-824299068) .jw-element-button,
html body .jw-strip:has(#jw-element-824299073) .jw-element-button,
html body .jw-strip:has(#jw-element-824915886) .jw-element-button,
html body .jw-strip:has(#jw-element-824916164) .jw-element-button,
html body .jw-strip:has(#jw-element-824916346) .jw-element-button {
  text-align: left !important;
}

html body .jw-strip:has(#jw-element-824299068) .jw-element-imagetext-text,
html body .jw-strip:has(#jw-element-824299073) .jw-element-imagetext-text,
html body .jw-strip:has(#jw-element-824915886) .jw-element-imagetext-text,
html body .jw-strip:has(#jw-element-824916164) .jw-element-imagetext-text,
html body .jw-strip:has(#jw-element-824916346) .jw-element-imagetext-text,
html body .jw-strip:has(#jw-element-824299068) .jw-element-heading,
html body .jw-strip:has(#jw-element-824299073) .jw-element-heading,
html body .jw-strip:has(#jw-element-824915886) .jw-element-heading,
html body .jw-strip:has(#jw-element-824916164) .jw-element-heading,
html body .jw-strip:has(#jw-element-824916346) .jw-element-heading {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

/* Replace legacy Webador Canva-collage cover PNGs with clean uploaded book covers */
html body .jw-strip:has(#jw-element-824299068) img.jw-strip__image,
html body .jw-strip:has(#jw-element-824299073) img.jw-strip__image,
html body .jw-strip:has(#jw-element-824915886) img.jw-strip__image,
html body .jw-strip:has(#jw-element-824916164) img.jw-strip__image,
html body .jw-strip:has(#jw-element-824916346) img.jw-strip__image {
  display: none !important;
}

html body .jw-strip:has(#jw-element-824299068) .jw-strip__image-container::after,
html body .jw-strip:has(#jw-element-824299073) .jw-strip__image-container::after,
html body .jw-strip:has(#jw-element-824915886) .jw-strip__image-container::after,
html body .jw-strip:has(#jw-element-824916164) .jw-strip__image-container::after,
html body .jw-strip:has(#jw-element-824916346) .jw-strip__image-container::after {
  content: "" !important;
  display: block !important;
  width: min(100%, 220px) !important;
  aspect-ratio: 2 / 3 !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.3), 0 4px 10px rgba(15, 23, 42, 0.14) !important;
}

/* Book 1: When I'm Gone — Purple rose backdrop + UW 1 clean cover */
html body .jw-strip:has(#jw-element-824299068) {
  background-color: #b9b6fa !important;
  background-image: var(--ah-bg-when-im-gone) !important;
}
html body .jw-strip:has(#jw-element-824299068) .jw-strip__image-container::after {
  background-image: var(--ah-cover-when-im-gone) !important;
}

/* Book 2: Begin Again — Petal wreath backdrop + UW 2 clean cover */
html body .jw-strip:has(#jw-element-824299073) {
  background-color: #f7d5fa !important;
  background-image: var(--ah-bg-begin-again) !important;
}
html body .jw-strip:has(#jw-element-824299073) .jw-strip__image-container::after {
  background-image: var(--ah-cover-begin-again) !important;
}

/* Book 3: Broken Things — Mint hydrangea backdrop + UW 3 clean cover */
html body .jw-strip:has(#jw-element-824915886) {
  background-color: #dbfed2 !important;
  background-image: var(--ah-bg-broken-things) !important;
}
html body .jw-strip:has(#jw-element-824915886) .jw-strip__image-container::after {
  background-image: var(--ah-cover-broken-things) !important;
  aspect-ratio: 5 / 8 !important;
}

/* Book 4: Only Ever You — Butter-yellow floral backdrop + UW 4 clean cover */
html body .jw-strip:has(#jw-element-824916164) {
  background-color: #fafdc8 !important;
  background-image: var(--ah-bg-only-ever-you) !important;
}
html body .jw-strip:has(#jw-element-824916164) .jw-strip__image-container::after {
  background-image: var(--ah-cover-only-ever-you) !important;
}

/* Book 5: A Very Merry Unwell Christmas — Coral floral backdrop + UW 5 clean cover */
html body .jw-strip:has(#jw-element-824916346) {
  background-color: #fd5f66 !important;
  background-image: var(--ah-bg-naughty-list) !important;
}
html body .jw-strip:has(#jw-element-824916346) .jw-strip__image-container::after {
  background-image: var(--ah-cover-unwell-christmas) !important;
  aspect-ratio: 5 / 8 !important;
}

/* --------------------------------------------------------------------------
   About Me (#jw-element-825574326): Single unified frosted card wrapping
   BOTH the illustrated portrait and the bio (exact 1:1 Studio match)
   -------------------------------------------------------------------------- */
html body #jw-element-825574326 {
  max-width: 960px !important;
  margin: 32px auto !important;
  padding: 32px !important;
  background: var(--ah-surface) !important;
  backdrop-filter: blur(var(--ah-blur)) !important;
  -webkit-backdrop-filter: blur(var(--ah-blur)) !important;
  border: 1px solid var(--ah-surface-border) !important;
  border-radius: var(--ah-radius) !important;
  box-shadow: var(--ah-surface-shadow) !important;
  box-sizing: border-box !important;
}

@media (min-width: 769px) {
  html body #jw-element-825574326 {
    grid-template-columns: [image] 240px [content] 1fr !important;
    column-gap: 28px !important;
  }

  html body #jw-element-825574326 .jw-strip__content-container {
    padding: 0 !important;
  }
}

html body #jw-element-825574326 img.jw-strip__image {
  max-width: 220px !important;
  width: 100% !important;
  border-radius: var(--ah-radius);
}

html body #jw-element-825574326 .jw-strip__content {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 0 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

html body #jw-element-825574326 .jw-element-imagetext-text,
html body #jw-element-825574326 .jw-element-heading {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

html body #jw-element-825574326 .jw-spacer {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Newsletter (#jw-element-825007784): Unified right-column frosted card
   -------------------------------------------------------------------------- */
html body #jw-element-825007784 .jw-spacer {
  display: none !important;
}

html body #jw-element-825007784 .jw-column:has(#jw-element-826404931) {
  background: var(--ah-surface) !important;
  backdrop-filter: blur(var(--ah-blur)) !important;
  -webkit-backdrop-filter: blur(var(--ah-blur)) !important;
  border: 1px solid var(--ah-surface-border) !important;
  border-radius: var(--ah-radius) !important;
  box-shadow: var(--ah-surface-shadow) !important;
  padding: 32px !important;
  align-self: center !important;
}

html body #jw-element-825007784 .jw-column:has(#jw-element-826404931) .jw-element-imagetext-text,
html body #jw-element-825007784 .jw-column:has(#jw-element-826404931) .jw-element-heading {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

/* Mobile overrides: reclaim horizontal space on 360px-430px phones */
@media (max-width: 768px) {
  html body .jw-strip:has(#jw-element-824299068),
  html body .jw-strip:has(#jw-element-824299073),
  html body .jw-strip:has(#jw-element-824915886),
  html body .jw-strip:has(#jw-element-824916164),
  html body .jw-strip:has(#jw-element-824916346) {
    padding: var(--ah-card-pad-mobile) !important;
    margin: 0 10px 18px 10px !important;
  }

  html body .jw-strip--style-split-image .jw-strip__content-container {
    padding: 16px 0 0 0 !important;
  }

  html body .jw-strip:has(#jw-element-824299068) .jw-strip__image-container::after,
  html body .jw-strip:has(#jw-element-824299073) .jw-strip__image-container::after,
  html body .jw-strip:has(#jw-element-824915886) .jw-strip__image-container::after,
  html body .jw-strip:has(#jw-element-824916164) .jw-strip__image-container::after,
  html body .jw-strip:has(#jw-element-824916346) .jw-strip__image-container::after {
    width: min(70%, 220px) !important;
  }

  html body .jw-strip:has(#jw-element-824299068) .jw-strip__content,
  html body .jw-strip:has(#jw-element-824299073) .jw-strip__content,
  html body .jw-strip:has(#jw-element-824915886) .jw-strip__content,
  html body .jw-strip:has(#jw-element-824916164) .jw-strip__content,
  html body .jw-strip:has(#jw-element-824916346) .jw-strip__content,
  html body #jw-element-824299063 .jw-strip__content,
  html body #jw-element-825007784 .jw-column:has(#jw-element-826404931) {
    padding: 20px var(--ah-card-pad-mobile) !important;
  }

  html body #jw-element-825574326 {
    margin: 16px 12px !important;
    padding: 20px var(--ah-card-pad-mobile) !important;
  }

  html body #jw-element-825574326 img.jw-strip__image {
    max-width: 210px !important;
  }

  .jw-strip__content-container .jw-element-imagetext-text,
  .jw-strip__content-container .jw-element-heading {
    padding: var(--ah-card-pad-mobile) !important;
  }

  html body .jw-strip:has(#jw-element-824299068) .jw-element-imagetext-text,
  html body .jw-strip:has(#jw-element-824299073) .jw-element-imagetext-text,
  html body .jw-strip:has(#jw-element-824915886) .jw-element-imagetext-text,
  html body .jw-strip:has(#jw-element-824916164) .jw-element-imagetext-text,
  html body .jw-strip:has(#jw-element-824916346) .jw-element-imagetext-text,
  html body #jw-element-824299063 .jw-element-imagetext-text,
  html body #jw-element-825574326 .jw-element-imagetext-text,
  html body #jw-element-825007784 .jw-column:has(#jw-element-826404931) .jw-element-imagetext-text {
    padding: 0 !important;
  }

  .jw-strip__content-container img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
  }
}

/* ==========================================================================
   src/shop.css
   Fixes unreadable text on /my-shop and /product/* pages using Webador's live
   .jw-product, .product-gallery__content, and .product-page selectors.
   ========================================================================== */

.jw-product,
.jw-element-product,
.product-gallery__content,
.product-page,
.product-page__content,
.jw-cart-page {
  background: var(--ah-surface) !important;
  backdrop-filter: blur(var(--ah-blur)) !important;
  -webkit-backdrop-filter: blur(var(--ah-blur)) !important;
  border: 1px solid var(--ah-surface-border) !important;
  border-radius: var(--ah-radius) !important;
  box-shadow: var(--ah-surface-shadow) !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
}

.product-gallery__item {
  border: none !important;
  background: transparent !important;
}

.product-gallery__content {
  height: 100%;
  margin-bottom: 0 !important;
  padding: 14px !important;
}

.jw-product .product__heading,
.jw-product .product__heading a,
.product-gallery__content a,
.jw-element-product .product__name,
.jw-element-product .product__name a,
.product-page__title {
  color: var(--ah-heading) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.jw-product .product-price,
.jw-product .product-price__price,
.product-gallery__content .product-price,
.product-gallery__content .product-price__price,
.jw-element-product .product__price,
.product-page__price {
  color: var(--ah-ink) !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
}

.jw-product .product__description,
.jw-product .product__description p,
.jw-element-product .product__description,
.jw-element-product p,
.product-page__description {
  color: var(--ah-ink) !important;
  line-height: 1.65 !important;
}

.jw-product img,
.product-gallery__content img,
.jw-element-product img,
.product-page__image img {
  border-radius: 8px !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}

@media (max-width: 768px) {
  .jw-product,
  .jw-element-product,
  .product-page {
    padding: var(--ah-card-pad-mobile) !important;
  }

  .jw-product .product__add-to-cart,
  .jw-element-product .jw-btn,
  .product-page .jw-btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   src/modals.css
   Solid opaque surfaces for Webador shopping cart, popups, and newsletter forms
   ========================================================================== */

body div.jw-overlay__content,
body div.jw-overlay__box,
body div.jw-modal__content,
body div.jw-popup__content,
body div.jw-dialog__content,
body div.jw-lightbox__content,
body [role="dialog"],
body [aria-modal="true"] {
  background-color: var(--ah-surface-solid) !important;
  background-image: none !important;
  opacity: 1 !important;
  color: var(--ah-ink) !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25) !important;
}
