/* Book layout only. Button appearance comes from the existing store components. */
/* Book credit and More Info belong to one compact metadata row. */
.store-featured-description .store-book-meta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--store-padding-high);
  justify-content: center;
  margin-top: var(--store-padding-higher);
  max-width: 100%;
  text-align: left;
}
.store-featured-description .store-book-meta-row .store-book-credit {
  flex: 0 1 auto;
  line-height: 1.4;
  margin: 0;
}
.store-book-meta-divider {
  align-self: center;
  background: color-mix(in srgb, var(--glam-color) 35%, transparent);
  flex: 0 0 1px;
  height: 2.1rem;
  width: 1px;
}
.store-book-access { container-type: inline-size; margin: 1.1rem 0 0; padding-top: .75rem; }
/* Separate the publisher/More Info group from the download actions without
   changing either group's existing typography, colours, or controls. */
.store-book-access::before {
  background: color-mix(in srgb, var(--glam-color) 25%, transparent);
  content: "";
  display: block;
  height: 1px;
  margin: 0 auto var(--store-padding-higher);
  width: 70%;
}
.store-book-access svg,
.store-book-print svg,
.store-book-cncf svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.store-book-access h2 { margin: .5rem 0 1.2rem; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.25; text-align: center; }
.store-book-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.store-book-actions > .store-book-button {
  box-sizing: border-box; gap: .5rem; margin: 0; max-width: none; min-width: 0; text-decoration: none; white-space: nowrap;
}
.store-book-button svg { width: 1.5em; height: 1.5em; flex: 0 0 auto; }
.store-book-read-button.store-featured-actions-button {
  background: var(--store-dark-blue); border: 2px solid var(--store-dark-blue); color: white;
}
.store-book-read-button.store-featured-actions-button:hover,
.store-book-read-button.store-featured-actions-button:focus-visible {
  background: color-mix(in srgb, var(--store-dark-blue) 80%, black);
  border-color: color-mix(in srgb, var(--store-dark-blue) 80%, black); color: white;
}
/* A currentColor mask follows the button's light/dim/dark and hover colours. */
.store-book-info-icon {
  background: currentColor; display: block; flex: 0 0 auto; height: 1.25em; width: 1.25em;
  mask: url('../img/icons/info.svg') center / contain no-repeat;
  -webkit-mask: url('../img/icons/info.svg') center / contain no-repeat;
}
/* A compact outlined button, retaining the existing currentColor icon. */
.store-featured-description .store-book-more-info {
  align-items: center;
  background: color-mix(in srgb, white 94%, var(--store-lighter-blue));
  border: 2px solid var(--store-dark-blue-alt);
  border-radius: 10px;
  box-sizing: border-box;
  color: var(--store-dark-blue-alt);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--glam-font-family);
  font-size: 1.35rem;
  font-weight: 700;
  gap: .6rem;
  justify-content: center;
  line-height: 1.3;
  margin: 0;
  min-height: 56px;
  min-width: 190px;
  padding: .65rem 1.35rem;
  text-align: center;
  text-transform: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.store-featured-description .store-book-more-info-label {
  text-decoration: none;
}
.store-featured-description .store-book-more-info:hover,
.store-featured-description .store-book-more-info:focus-visible {
  background: var(--store-dark-blue-alt);
  border-color: var(--store-dark-blue-alt);
  color: white;
}
html.glam-asphalt .store-featured-description .store-book-more-info,
html.glam-obsidian .store-featured-description .store-book-more-info {
  background: color-mix(in srgb, var(--glam-background-color) 88%, #a9ceff);
  border-color: #a9ceff;
  color: #a9ceff;
}
html.glam-asphalt .store-featured-description .store-book-more-info:hover,
html.glam-asphalt .store-featured-description .store-book-more-info:focus-visible,
html.glam-obsidian .store-featured-description .store-book-more-info:hover,
html.glam-obsidian .store-featured-description .store-book-more-info:focus-visible {
  background: color-mix(in srgb, #a9ceff 20%, var(--glam-background-color));
  border-color: #d5e7ff;
  color: #d5e7ff;
}
/* Compact metadata stays side-by-side on ordinary mobile widths.
   Only genuinely narrow viewports need the stacked fallback. */
@media (max-width: 768px) {
  .store-featured-description .store-book-meta-row {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--store-padding-mid);
    justify-content: center;
  }
  #container:not(.store-featured-open) > .store-featured
  .store-featured-description .store-book-meta-row .store-book-credit {
    flex: 0 1 auto;
    font-size: .9rem;
    line-height: 1.35;
    margin: 0;
    min-width: 0;
    text-align: left;
  }
  .store-book-meta-divider {
    align-self: center;
    flex: 0 0 1px;
    height: 2rem;
    width: 1px;
  }
  .store-featured-description .store-book-more-info {
    align-self: center;
    font-size: 1rem;
    gap: .35rem;
    min-height: 44px;
    min-width: 128px;
    padding: .4rem .65rem;
    white-space: nowrap;
  }
}
@media (max-width: 350px) {
  .store-featured-description .store-book-meta-row {
    align-items: center;
    flex-direction: column;
    gap: var(--store-padding-mid);
  }
  .store-book-meta-divider {
    align-self: stretch;
    flex: 0 0 1px;
    height: 1px;
    width: 100%;
  }
  #container:not(.store-featured-open) > .store-featured
  .store-featured-description .store-book-meta-row .store-book-credit {
    text-align: center;
  }
}
@container (max-width: 36rem) {
  .store-book-actions { grid-template-columns: minmax(0, 1fr); }
}
.store-book-button:focus-visible,
.store-book-more-info:focus-visible,
.store-book-cncf:focus-visible { outline: 3px solid var(--rx-media-pink-1); outline-offset: 4px; }
.store-book-print {
  align-items: center; background: color-mix(in srgb, var(--glam-background-color, white) 94%, var(--rx-media-pink-1));
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent); border-radius: .75rem;
  box-sizing: border-box; display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: .9rem;
  margin-top: 1rem; padding: .9rem 1rem;
}
.store-book-print-icon { color: var(--rx-media-pink-1); height: 3rem; width: 3rem; }
.store-book-print h2 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.2; margin: 0 0 .3rem; }
.store-book-print p { font-size: 1rem; line-height: 1.4; margin: 0; }
.store-book-coming-soon { color: var(--glam-color); font-size: .95rem; line-height: 1.35; white-space: nowrap; }
/* CNCF availability is supporting copy; only "View listing" is linked. */
.store-book-cncf {
  background: transparent;
  border: 0;
  box-sizing: border-box;
  color: var(--store-dark-blue);
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  margin: calc(2 * var(--store-padding-higher)) auto 0;
  max-width: 100%;
  padding: .25rem 0;
  text-align: center;
  text-wrap: balance;
  width: 100%;
}
/* Let the sentence wrap naturally rather than treating the whole intro as
   an independent flex item; keep the name/website and CTA from orphaning. */
.store-book-cncf-website {
  white-space: nowrap;
}
.store-book-cncf-action {
  align-items: baseline;
  display: inline-flex;
  gap: .3em;
  vertical-align: baseline;
  white-space: nowrap;
}
.store-book-cncf-link {
  align-items: center;
  color: var(--store-dark-blue);
  display: inline-flex;
  font-weight: 700;
  gap: .35em;
  text-decoration: underline;
  text-underline-offset: .23em;
  transition: color .2s ease, text-decoration-color .2s ease;
  white-space: nowrap;
}
.store-book-cncf-link:visited { color: var(--store-dark-blue); }
.store-book-cncf-link:hover,
.store-book-cncf-link:focus-visible {
  color: color-mix(in srgb, var(--store-dark-blue) 80%, black);
  text-decoration-color: currentColor;
}
/* Keep all CNCF copy and its link legible in dim and dark themes. */
html.glam-asphalt .store-book-cncf,
html.glam-obsidian .store-book-cncf { color: #a9ceff; }
html.glam-asphalt .store-book-cncf-link,
html.glam-asphalt .store-book-cncf-link:visited,
html.glam-obsidian .store-book-cncf-link,
html.glam-obsidian .store-book-cncf-link:visited { color: #a9ceff; }
html.glam-asphalt .store-book-cncf-link:hover,
html.glam-asphalt .store-book-cncf-link:focus-visible,
html.glam-obsidian .store-book-cncf-link:hover,
html.glam-obsidian .store-book-cncf-link:focus-visible { color: #d5e7ff; }
.store-book-cncf-link svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 1em; height: 1em; width: 1em; }

/* The book's closing invitation remains visible after Behind the Book,
   even if both configurable related-reading cards are disabled. */
.store-featured-detail .glam-pf-article > .store-book-detail-closing {
  color: var(--glam-color);
  font-family: var(--glam-font-family);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.85;
  margin: var(--store-padding-highest) 0 0;
  text-wrap: pretty;
}
.store-featured-detail .store-book-detail-closing cite {
  font-style: italic;
}

.store-book-detail-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.5rem; }
@media (min-width: 1100px) {
  .glam-desc-parent.store-featured-open .store-book-detail-actions {
    margin-bottom: 2.25rem;
  }
}

@media (max-width: 1024px) {
  #container:not(.store-featured-open) > .store-featured .store-featured-container {
    align-items: center; column-gap: 1rem; display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
    margin: 0 auto; max-width: 46rem; padding: 1.5rem 1.25rem; row-gap: 1.25rem; width: 100%;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-container > article { display: contents; }
  #container:not(.store-featured-open) > .store-featured .store-featured-container > figure {
    align-self: center; grid-column: 1; grid-row: 2; height: auto; margin: 0; max-width: none; min-width: 0; position: relative; width: 100%;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-container > figure img {
    display: block; height: auto; margin: 0 auto; max-height: none; max-width: 100%; object-fit: contain; width: 100%;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-container > article > h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem); grid-column: 1 / -1; grid-row: 1; margin: 0; padding: 0; width: auto;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-description {
    font-size: 1rem; grid-column: 2; grid-row: 2; line-height: 1.45; margin: 0; min-width: 0; padding: 0;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-description-heading { font-size: 1rem; line-height: 1.3; margin: 0 0 .6rem; }
  #container:not(.store-featured-open) > .store-featured .store-featured-description p { margin: 0 0 .6rem; }
  .store-book-access { grid-column: 1 / -1; grid-row: 3; margin: 0; }
  .store-book-print { grid-column: 1 / -1; grid-row: 4; margin: 0; }
  .store-book-cncf { grid-column: 1 / -1; grid-row: 5; margin: calc(2 * var(--store-padding-higher)) auto 0; }
}
@media (max-width: 640px) {
  .store-book-detail-actions { grid-template-columns: minmax(0, 1fr); }
  .store-book-print { grid-template-columns: 2.75rem minmax(0, 1fr); gap: .35rem .8rem; }
  .store-book-print-icon { grid-row: 1 / 3; height: 2.75rem; width: 2.75rem; }
  .store-book-coming-soon { grid-column: 2; }
}
@media (max-width: 420px) {
  #container:not(.store-featured-open) > .store-featured .store-featured-container { column-gap: .85rem; padding-left: 1rem; padding-right: 1rem; }
  .store-book-print { gap: .35rem .65rem; padding: .8rem; }
}
@media (max-width: 340px) {
  #container:not(.store-featured-open) > .store-featured .store-featured-container { grid-template-columns: minmax(0, 1fr); }
  #container:not(.store-featured-open) > .store-featured .store-featured-container > figure { grid-column: 1; grid-row: 2; max-width: 10rem; justify-self: center; }
  #container:not(.store-featured-open) > .store-featured .store-featured-description { grid-column: 1; grid-row: 3; }
  .store-book-access { grid-row: 4; }
  .store-book-print { grid-row: 5; }
  .store-book-cncf { grid-row: 6; }
}


/* The featured identity should remain centred even when the book layout
   switches the article into a grid on tablets and phones. */
#container:not(.store-featured-open) > .store-featured .store-featured-container > article > h1 {
  text-align: center;
}
#container:not(.store-featured-open) > .store-featured .store-featured-container > article > h1 sup {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
#container:not(.store-featured-open) > .store-featured .store-featured-container > article > h1 .store-featured-title,
#container:not(.store-featured-open) > .store-featured .store-featured-container > article > h1 sub {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  text-align: center;
}
#container:not(.store-featured-open) > .store-featured .store-featured-container > article > h1 .store-featured-decor {
  margin-left: auto;
  margin-right: auto;
}
#container:not(.store-featured-open) > .store-featured .store-featured-container > article > h1 .store-featured-tag {
  margin: 0;
}
#container:not(.store-featured-open) > .store-featured .store-featured-container > article > h1 .store-featured-share-button {
  margin: 0;
  transform: none;
}

/* A stacked hero avoids the very narrow cover and unreadable story copy
   of the former two-column phone layout. */
@media (max-width: 640px) {
  #container:not(.store-featured-open) > .store-featured .store-featured-container {
    align-items: stretch;
    column-gap: 0;
    grid-template-columns: minmax(0, 1fr);
    max-width: 34rem;
    padding: 1.25rem clamp(1rem, 4vw, 1.5rem) 2rem;
    row-gap: 1.15rem;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-container > article > h1 {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    text-align: center;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-container > article > h1 sup {
    gap: .7rem;
    margin: 0 0 .15rem;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-container > article > h1 .store-featured-title {
    font-size: clamp(1.8rem, 6.8vw, 2.35rem);
    line-height: 1.12;
    margin: .15rem auto 0;
    padding: 0;
    text-wrap: balance;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-container > article > h1 sub {
    font-size: clamp(.8rem, 2.6vw, 1.03rem);
    letter-spacing: .12em;
    line-height: 1.35;
    margin: .1rem auto 0;
    padding: 0;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-container > article > h1 .store-featured-decor {
    margin: .2rem auto 0;
    padding: 0;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-container > figure {
    align-self: center;
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    margin: 0;
    max-width: min(56vw, 205px);
    width: 100%;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-description {
    font-size: 1rem;
    grid-column: 1;
    grid-row: 3;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 30rem;
    padding: 0;
    text-align: left;
    width: 100%;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-description-heading {
    font-size: clamp(1.08rem, 3.7vw, 1.3rem);
    line-height: 1.25;
    margin-bottom: .55rem;
    text-align: center;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-description p {
    margin: 0 0 .65rem;
  }
  .store-book-access { grid-column: 1; grid-row: 4; }
  .store-book-actions { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .store-book-actions > .store-book-button { min-height: 3.2rem; }
  .store-book-print {
    grid-column: 1;
    grid-row: 5;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: .3rem .8rem;
    margin: 0;
    padding: 1rem;
  }
  .store-book-print-icon { grid-column: 1; grid-row: 1 / 3; height: 2.4rem; width: 2.4rem; }
  .store-book-print h2 { font-size: 1.12rem; margin-bottom: .2rem; }
  .store-book-coming-soon { grid-column: 2; justify-self: start; margin-top: .4rem; }
  .store-book-cncf { grid-column: 1; grid-row: 6; justify-self: center; margin-top: var(--store-padding-higher); }
}
@media (max-width: 340px) {
  #container:not(.store-featured-open) > .store-featured .store-featured-container > figure {
    grid-column: 1;
    grid-row: 2;
    max-width: 155px;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-description { grid-column: 1; grid-row: 3; }
  .store-book-access { grid-row: 4; }
  .store-book-print { grid-row: 5; }
  .store-book-cncf { grid-row: 6; }
}

/* Do not let the print card grid override the native hidden attribute. */
.store-book-print[hidden] { display: none !important; }

/* Use the original framed divider beneath the hero AND a second
   instance of the same gradient-and-slashes ornament beneath the title. */
#container:not(.store-featured-open) > .store-featured {
  gap: 0;
  /* The framed strip is the final flex child: no hero padding below it. */
  padding-bottom: 0;
  --store-book-divider-inline-gutter: var(--store-padding-mid);
  --store-book-divider-bar-height: 1.05rem;
  --store-book-divider-block-padding: calc(var(--store-padding-high) + .75rem);
  --store-featured-after-inset:
    0 0 calc(2 * var(--store-book-divider-block-padding) + 2px + var(--store-book-divider-bar-height)) 0;
  /* Keep the cloud artwork attached to the actual bottom of the hero;
     the full-bleed framed strip covers its own lower portion. */
  --store-featured-background-art: 0;
}
/* Store's tablet hero uses high side padding, unlike the phone layout.
   Match those gutters exactly so the divider reaches the section edges. */
@media (min-width: 769px) and (max-width: 1024px) {
  #container:not(.store-featured-open) > .store-featured {
    --store-book-divider-inline-gutter: var(--store-padding-high);
  }
}
/* The wide featured hero has no horizontal section padding. */
@media (min-width: 1025px) {
  #container:not(.store-featured-open) > .store-featured {
    --store-book-divider-inline-gutter: 0px;
  }
}
.store-featured-label-container.store-featured-divider-frame {
  align-items: center;
  align-self: stretch;
  background: var(--store-section-heading-label-background);
  border: var(--store-section-heading-label-border);
  border-left: 0;
  border-right: 0;
  box-sizing: border-box;
  justify-content: center;
  margin: 0 calc(-1 * var(--store-book-divider-inline-gutter));
  padding: var(--store-book-divider-block-padding) var(--store-padding-higher);
}
#container:not(.store-featured-open) > .store-featured
.store-featured-container > article > h1 .store-featured-title-divider {
  align-self: center;
  box-sizing: border-box;
  margin: .9rem auto 0;
  max-width: 100%;
  width: min(90%, 320px);
}
.store-featured-divider-bars {
  align-items: center;
  display: flex;
  gap: .32rem;
  justify-content: center;
  margin: 0 auto;
  max-width: 320px;
  min-width: 0;
  width: 100%;
}

.store-featured-divider-bars::before,
.store-featured-divider-bars::after {
  background: var(--rx-standard-gradient);
  border-radius: 3px;
  content: "";
  flex: 1 1 0;
  height: 3px;
  min-width: 0;
  opacity: .5;
}

.store-featured-divider-bar {
  border-radius: 999px;
  display: block;
  flex: 0 0 .24rem;
  height: var(--store-book-divider-bar-height);
  transform: skewX(-17deg);
}

.store-featured-divider-bar-green { background: var(--rx-media-green-0); }
.store-featured-divider-bar-blue { background: var(--store-dark-blue); }
.store-featured-divider-bar-pink { background: var(--rx-media-pink-1); }

@media (max-width: 640px) {
  #container:not(.store-featured-open) > .store-featured {
    --store-book-divider-bar-height: .95rem;
    --store-book-divider-block-padding: calc(var(--store-padding-mid) + .55rem);
  }
  .store-featured-label-container.store-featured-divider-frame {
    padding: var(--store-book-divider-block-padding) var(--store-padding-high);
  }
  #container:not(.store-featured-open) > .store-featured
  .store-featured-container > article > h1 .store-featured-title-divider {
    margin-top: .6rem;
    width: min(88%, 320px);
  }
  .store-featured-divider-bars { gap: .28rem; }
  .store-featured-divider-bar {
    flex-basis: .22rem;
  }
}

/* Give the download heading visibly more breathing room on desktop only.
   Keep the current mobile layout and button styling unchanged. */
@media (min-width: 1025px) {
  .store-book-access h2 {
    margin-top: 1rem;
    margin-bottom: 1.75rem;
  }
}

/* Phone hero title: compact eyebrow and properly balanced ornament.
   The title/cover/description below retain their existing layout. */
@media (max-width: 640px) {
  #container:not(.store-featured-open) > .store-featured
  .store-featured-container > article > h1 sup {
    align-items: center;
    flex-wrap: nowrap;
    gap: .6rem;
    margin: 0 auto .25rem;
    transform: none;
  }

  #container:not(.store-featured-open) > .store-featured
  .store-featured-container > article > h1 .store-featured-tag {
    font-size: clamp(1.05rem, 4.5vw, 1.2rem);
    letter-spacing: .09em;
    line-height: 1.1;
    margin: 0;
    padding: .6rem .9rem;
  }

  #container:not(.store-featured-open) > .store-featured
  .store-featured-container > article > h1 .store-featured-share-button {
    background: transparent;
    flex: 0 0 44px;
    height: 44px;
    width: 44px;
  }

  #container:not(.store-featured-open) > .store-featured
  .store-featured-container > article > h1 .store-featured-share-button img {
    height: 1.7rem;
    margin: 0;
    transform: none;
    width: 1.7rem;
  }

  #container:not(.store-featured-open) > .store-featured
  .store-featured-container > article > h1 .store-featured-decor {
    align-self: center;
    display: flex;
    gap: .7rem;
    justify-content: center;
    margin: .45rem auto 0;
    max-width: none;
    width: min(86%, 23rem);
  }

  #container:not(.store-featured-open) > .store-featured
  .store-featured-container > article > h1 .store-featured-decor::before,
  #container:not(.store-featured-open) > .store-featured
  .store-featured-container > article > h1 .store-featured-decor::after {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
    width: auto;
  }

  #container:not(.store-featured-open) > .store-featured
  .store-featured-container > article > h1 .store-featured-decor img {
    flex: 0 0 auto;
  }
}

/* A single featured label / share-action control, retaining the existing icon. */
#container:not(.store-featured-open) .store-featured-label-share-combo {
  align-items: stretch;
  background: var(--store-featured-tag-background);
  border-radius: 8px;
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
}
#container:not(.store-featured-open) .store-featured-label-share-combo .store-featured-tag {
  align-items: center;
  background: transparent;
  border-radius: 0;
  display: inline-flex;
  margin: 0;
  padding: .55rem 1rem;
}
#container:not(.store-featured-open) .store-featured-label-share-combo .store-featured-share-button {
  align-self: stretch;
  background: transparent;
  border-left: 1px solid color-mix(in srgb, white 52%, transparent);
  border-radius: 0;
  display: grid;
  flex: 0 0 52px;
  height: auto;
  line-height: 0;
  margin: 0;
  min-height: 48px;
  padding: 0;
  place-items: center;
  transform: none;
  width: 52px;
}
#container:not(.store-featured-open) .store-featured-label-share-combo .store-featured-share-button:hover,
#container:not(.store-featured-open) .store-featured-label-share-combo .store-featured-share-button:focus-visible {
  background: color-mix(in srgb, white 17%, transparent);
}
#container:not(.store-featured-open) > .store-featured .store-featured-container > article > h1 .store-featured-label-share-combo .store-featured-share-button img {
  display: block;
  filter: brightness(0) invert(1);
  height: 1.65rem;
  margin: 0;
  object-fit: contain;
  opacity: 1;
  position: static;
  transform: translateY(-2px);
  width: 1.65rem;
}
@media (max-width: 640px) {
  #container:not(.store-featured-open) .store-featured-label-share-combo .store-featured-tag {
    padding: .5rem .8rem;
  }
  #container:not(.store-featured-open) .store-featured-label-share-combo .store-featured-share-button {
    flex-basis: 44px;
    min-height: 44px;
    width: 44px;
  }
}
/* Footer: maintain a clear progression from brand → policies → independent
   publication notice → rule → company copyright, in that order. */
.rx-store-footer .rx-store-footer-image {
  margin: 1.15rem auto 1.4rem;
}
.rx-store-footer .rx-media-footer-policy-holder {
  margin-top: 1.65rem;
  padding-bottom: 1.9rem;
}
.store-book-disclaimer {
  box-sizing: border-box;
  color: var(--glam-color-muted);
  font-size: .9rem;
  line-height: 1.5;
  margin: 1.65rem auto 0;
  max-width: 64rem;
  padding: 0 var(--store-padding-mid);
  text-align: center;
}
.store-book-disclaimer p { margin: 0; }
.rx-store-footer .rx-media-footer-policy-divider {
  margin: 1.35rem auto;
}
.rx-store-footer .rx-media-footer-copyright {
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  line-height: 1.5;
  margin: 0 auto;
  padding: 0 var(--store-padding-mid);
  text-align: center;
}
.rx-store-footer .rx-media-footer-copyright a {
  /* The linked company name belongs to the same typographic line. */
  font-size: inherit;
  line-height: inherit;
}
.store-book-disclaimer a { color: var(--store-dark-blue); }
html.glam-asphalt .store-book-disclaimer a,
html.glam-obsidian .store-book-disclaimer a { color: #a9ceff; }

/* Phone footer: intentional 2×2 policy grid and restrained legal copy.
   The upper rule mirrors the mobile reference; the existing divider stays
   directly above copyright. All rules are decorative and non-interactive. */
@media (max-width: 700px) {
  .rx-store-footer .rx-store-footer-image {
    margin: .9rem auto 1.1rem;
  }
  .rx-store-footer .rx-media-footer-policy-holder {
    margin-top: 1.15rem;
    padding-bottom: 28px;
  }
  .rx-store-footer .rx-media-footer-policy-links {
    box-sizing: border-box;
    column-gap: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    max-width: 440px;
    padding: 0 16px;
    row-gap: 16px;
  }
  .rx-store-footer .rx-media-footer-policy-links a {
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
  }
  .rx-store-footer .store-book-disclaimer {
    color: #666666;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 24px;
    max-width: 480px;
    padding: 0 16px;
    width: 100%;
  }
  .rx-store-footer .store-book-disclaimer::before {
    background: #dddddd;
    content: "";
    display: block;
    height: 1px;
    margin: 0 auto 22px;
    width: 100%;
  }
  .rx-store-footer .rx-media-footer-policy-divider {
    background: #dddddd;
    height: 1px;
    margin: 24px auto 26px;
    opacity: 1;
    width: calc(100% - 32px);
  }
  .rx-store-footer .rx-media-footer-copyright {
    color: #808080;
    font-size: 12px;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 480px;
    padding: 0 16px;
    text-align: center;
  }
  .rx-store-footer .rx-media-footer-copyright a {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
  }
  html.glam-asphalt .rx-store-footer .store-book-disclaimer,
  html.glam-obsidian .rx-store-footer .store-book-disclaimer {
    color: #c8c8c8;
  }
  html.glam-asphalt .rx-store-footer .rx-media-footer-copyright,
  html.glam-obsidian .rx-store-footer .rx-media-footer-copyright {
    color: #adadad;
  }
  html.glam-asphalt .rx-store-footer .store-book-disclaimer::before,
  html.glam-obsidian .rx-store-footer .store-book-disclaimer::before,
  html.glam-asphalt .rx-store-footer .rx-media-footer-policy-divider,
  html.glam-obsidian .rx-store-footer .rx-media-footer-policy-divider {
    background: #585858;
  }
}

/* Configurable book images belong to the left media pane, never to copy.
   The original cover remains the fallback until gallery images are configured. */
#container:not(.store-featured-open) > .store-featured .store-featured-media > .store-book-detail-media,
.store-book-detail-media[hidden] {
  display: none !important;
}
.glam-desc-parent.store-featured-open .store-featured-container > figure.has-book-gallery {
  align-items: center;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  min-width: 0;
}
.glam-desc-parent.store-featured-open .store-featured-container > figure.has-book-gallery > img {
  display: none;
}
.glam-desc-parent.store-featured-open .store-featured-media .store-book-detail-media:not([hidden]) {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: var(--store-padding-high);
  justify-content: center;
  margin: 0;
  max-height: 100%;
  min-width: 0;
  width: 100%;
}
.store-book-gallery-stage {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  width: 100%;
}
.store-book-gallery-stage > .store-book-gallery-slide {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .136);
  display: none;
  height: auto;
  margin: 0 auto;
  max-height: min(70dvh, 650px);
  max-width: 100%;
  object-fit: contain;
  padding: 0;
  width: auto;
}
/* The store's generic figure-image rule sets display:block.
   Explicit hidden handling prevents inactive slides from stacking. */
.store-book-gallery-stage > .store-book-gallery-slide[hidden] {
  display: none !important;
}
.store-book-gallery-stage > .store-book-gallery-slide.is-active:not([hidden]) {
  display: block;
}
.store-book-gallery-controls {
  align-items: center;
  display: flex;
  gap: var(--store-padding-high);
  justify-content: center;
  min-height: 44px;
  width: 100%;
}
.store-book-gallery-controls[hidden] {
  display: none !important;
}
.store-book-gallery-nav {
  align-items: center;
  background: color-mix(in srgb, var(--glam-background-color) 92%, var(--glam-color) 8%);
  border: 1px solid color-mix(in srgb, var(--glam-color) 22%, transparent);
  border-radius: 10px;
  color: var(--glam-color);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
  transition: background .2s ease, border-color .2s ease;
}
.store-book-gallery-nav:hover,
.store-book-gallery-nav:focus-visible {
  background: color-mix(in srgb, var(--glam-background-color) 82%, var(--store-dark-blue) 18%);
  border-color: var(--store-dark-blue);
}
.store-book-gallery-nav:focus-visible {
  outline: 3px solid var(--rx-media-pink-1);
  outline-offset: 3px;
}
.store-book-gallery-nav svg {
  fill: none;
  height: 1.3rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
  width: 1.3rem;
}
.store-book-gallery-status {
  color: var(--glam-color-muted);
  font-family: var(--glam-font-family);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  min-width: 3.5rem;
  text-align: center;
}
@media (max-width: 1099px) {
  .glam-desc-parent.store-featured-open .store-featured-media .store-book-gallery-stage > .store-book-gallery-slide {
    max-height: min(65vh, 460px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .store-book-gallery-nav {
    transition: none;
  }
}
/* Product media: keep text aligned naturally, with thumbnail cards and
   add-image controls centred independently. */
.store-admin-product-media-editor {
  display: grid;
  gap: 1.35rem;
  margin-top: var(--store-padding-higher);
  min-width: 0;
}
.store-admin-media-section {
  background: color-mix(in srgb, var(--glam-background-color, #fff) 95%, var(--store-dark-blue) 5%);
  border: 1px solid color-mix(in srgb, var(--glam-color) 15%, transparent);
  border-radius: 18px;
  box-shadow: 0 8px 28px color-mix(in srgb, black 4%, transparent);
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  min-width: 0;
  padding: clamp(1rem, 3.5vw, 1.75rem);
}
.store-admin-media-heading {
  margin-inline: auto;
  max-width: 35rem;
  text-align: left;
}
.store-admin-media-heading h4 {
  color: var(--glam-color);
  font-family: var(--glam-font-family);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.store-admin-media-heading p,
.store-admin-media-heading small {
  color: color-mix(in srgb, var(--glam-color) 78%, transparent);
  display: block;
  font-size: .88rem;
  line-height: 1.5;
  margin: .35rem auto 0;
  max-width: 34rem;
  text-align: left;
}
.store-admin-media-heading small {
  color: var(--store-dark-blue);
  font-weight: 600;
  margin-top: .55rem;
}
.store-admin-media-primary,
.store-admin-media-gallery {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: .95rem;
  justify-content: center;
  margin-inline: auto;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}
.store-admin-media-primary .store-admin-media-card {
  max-width: min(100%, 270px);
  width: 100%;
}
.store-admin-media-card {
  background: var(--glam-background-color, #fff);
  border: 1px solid color-mix(in srgb, var(--glam-color) 18%, transparent);
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  flex: 0 1 153px;
  gap: .4rem;
  min-width: 0;
  overflow: hidden;
  padding: .5rem;
  text-align: center;
}
.store-admin-media-card.is-primary { flex-basis: 270px; }
.store-admin-media-card-visual {
  aspect-ratio: 5 / 4;
  background: color-mix(in srgb, var(--store-dark-blue) 5%, var(--glam-background-color, #fff));
  border-radius: 9px;
  display: grid;
  overflow: hidden;
  place-items: center;
  position: relative;
  width: 100%;
}
.store-admin-media-card.is-primary .store-admin-media-card-visual { aspect-ratio: 4 / 3; }
.store-admin-media-preview-link {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 0;
  padding: .35rem;
  width: 100%;
}
.store-admin-media-preview-link img {
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}
.store-admin-media-preview-link:focus-visible {
  outline: 3px solid var(--store-dark-blue);
  outline-offset: -3px;
}
.store-admin-media-card-badge {
  background: color-mix(in srgb, var(--glam-background-color, #fff) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--glam-color) 14%, transparent);
  border-radius: 999px;
  color: var(--glam-color);
  font: 600 .68rem/1.3 var(--glam-font-family);
  padding: .2rem .5rem;
  position: absolute;
  right: .4rem;
  top: .4rem;
}
.store-admin-media-card-title {
  color: var(--glam-color);
  font: 650 .85rem/1.35 var(--glam-font-family);
  text-align: center;
}
.store-admin-media-card-filename {
  color: color-mix(in srgb, var(--glam-color) 66%, transparent);
  display: block;
  font-size: .69rem;
  line-height: 1.4;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-admin-media-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  justify-content: center;
  margin-top: auto;
  padding-top: .2rem;
}
.store-admin-media-card-actions button {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--glam-color) 22%, transparent);
  border-radius: 8px;
  color: var(--glam-color);
  cursor: pointer;
  font: 600 .75rem/1.2 var(--glam-font-family);
  min-height: 32px;
  padding: .3rem .5rem;
}
.store-admin-media-card-actions button:hover:not(:disabled),
.store-admin-media-card-actions button:focus-visible {
  background: color-mix(in srgb, var(--store-dark-blue) 10%, transparent);
  border-color: var(--store-dark-blue);
  color: var(--store-dark-blue);
}
.store-admin-media-card-actions .store-admin-media-icon-button { font-size: 1.05rem; min-width: 34px; }
.store-admin-media-card-actions button:disabled { cursor: default; opacity: .3; }
.store-admin-media-add-tile {
  align-items: center;
  background: color-mix(in srgb, var(--store-dark-blue) 5%, var(--glam-background-color, #fff));
  border: 1.5px dashed color-mix(in srgb, var(--store-dark-blue) 50%, transparent);
  border-radius: 13px;
  color: var(--store-dark-blue);
  cursor: pointer;
  display: flex;
  flex: 0 1 153px;
  flex-direction: column;
  gap: .65rem;
  justify-content: center;
  min-height: 150px;
  min-width: 125px;
  padding: 1rem;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.store-admin-media-plus {
  align-items: center;
  background: var(--store-dark-blue);
  border-radius: 50%;
  color: white;
  display: flex;
  font: 400 2rem/1 var(--glam-font-family);
  height: 44px;
  justify-content: center;
  width: 44px;
}
.store-admin-media-add-label { font: 650 .84rem/1.3 var(--glam-font-family); }
.store-admin-media-add-tile:hover,
.store-admin-media-add-tile:focus-visible {
  background: color-mix(in srgb, var(--store-dark-blue) 12%, var(--glam-background-color, #fff));
  border-color: var(--store-dark-blue);
  transform: translateY(-1px);
}
.store-admin-media-change-button,
.store-admin-media-source-options button,
.store-admin-media-url-editor button {
  align-items: center;
  background: color-mix(in srgb, var(--store-dark-blue) 9%, var(--glam-background-color, #fff));
  border: 1px solid color-mix(in srgb, var(--store-dark-blue) 45%, transparent);
  border-radius: 10px;
  color: var(--store-dark-blue);
  cursor: pointer;
  display: inline-flex;
  font: 650 .9rem/1.35 var(--glam-font-family);
  gap: .5rem;
  justify-content: center;
  min-height: 44px;
  padding: .65rem 1rem;
  text-align: center;
  text-transform: none;
}
.store-admin-media-change-button { align-self: center; }
.store-admin-media-change-button::before {
  content: "+";
  font-size: 1.35rem;
  line-height: .7;
}
.store-admin-media-change-button:hover,
.store-admin-media-source-options button:hover,
.store-admin-media-url-editor button:hover,
.store-admin-media-change-button:focus-visible,
.store-admin-media-source-options button:focus-visible,
.store-admin-media-url-editor button:focus-visible {
  background: var(--store-dark-blue);
  border-color: var(--store-dark-blue);
  color: #fff;
}
.store-admin-media-chooser {
  background: color-mix(in srgb, var(--store-dark-blue) 5%, var(--glam-background-color, #fff));
  border: 1px solid color-mix(in srgb, var(--glam-color) 15%, transparent);
  border-radius: 14px;
  margin-inline: auto;
  max-width: 32rem;
  padding: 1rem;
  width: 100%;
}
.store-admin-media-chooser > p {
  color: var(--glam-color);
  font: 650 .9rem/1.4 var(--glam-font-family);
  margin: 0 auto .8rem;
  text-align: center;
}
.store-admin-media-source-options {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
}
.store-admin-media-source-options button { flex: 1 1 170px; }
.store-admin-media-source-symbol { font-size: 1.2rem; }
.store-admin-media-url-editor {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: 1rem auto 0;
  width: 100%;
}
.store-admin-media-url-editor label {
  color: var(--glam-color);
  font: 600 .83rem/1.35 var(--glam-font-family);
  text-align: center;
}
.store-admin-media-url-editor input {
  background: var(--glam-background-color, #fff);
  border: 1px solid color-mix(in srgb, var(--glam-color) 26%, transparent);
  border-radius: 9px;
  color: var(--glam-color);
  font: 400 .9rem/1.4 var(--glam-font-family);
  min-height: 44px;
  min-width: 0;
  padding: .6rem .8rem;
  width: 100%;
}
.store-admin-media-url-editor button { min-width: 9rem; }
.store-admin-media-empty {
  align-self: center;
  color: color-mix(in srgb, var(--glam-color) 70%, transparent);
  font: 500 .9rem/1.5 var(--glam-font-family);
  margin: auto 0;
  padding: 1rem;
  text-align: center;
}
.store-admin-media-video-label,
.store-admin-media-preview-error {
  color: color-mix(in srgb, var(--glam-color) 70%, transparent);
  font: 550 .8rem/1.4 var(--glam-font-family);
  padding: 1rem;
  text-align: center;
}
.store-admin-media-status {
  color: var(--glam-color);
  font: 550 .85rem/1.5 var(--glam-font-family);
  margin: 0 auto;
  max-width: 40rem;
  text-align: center;
}
.store-admin-media-status[data-state="error"] { color: #b22440; }
.store-admin-media-status[data-state="success"] { color: #167a4a; }
.store-admin-media-save-hint {
  color: color-mix(in srgb, var(--glam-color) 75%, transparent);
  font: 450 .82rem/1.5 var(--glam-font-family);
  margin: -.6rem 0 0;
  text-align: left;
}
.store-admin-media-file-picker {
  height: 1px;
  left: -10000px;
  opacity: 0;
  position: absolute;
  width: 1px;
}
.store-admin-product-media-editor textarea[hidden],
.store-admin-media-chooser[hidden],
.store-admin-media-url-editor[hidden],
.store-admin-media-preview-error[hidden] { display: none !important; }
.store-admin-media-change-button:disabled,
.store-admin-media-source-options button:disabled,
.store-admin-media-add-tile:disabled { cursor: progress; opacity: .6; }
html.glam-asphalt .store-admin-media-heading small,
html.glam-obsidian .store-admin-media-heading small,
html.glam-asphalt .store-admin-media-change-button,
html.glam-obsidian .store-admin-media-change-button,
html.glam-asphalt .store-admin-media-add-tile,
html.glam-obsidian .store-admin-media-add-tile,
html.glam-asphalt .store-admin-media-source-options button,
html.glam-obsidian .store-admin-media-source-options button,
html.glam-asphalt .store-admin-media-url-editor button,
html.glam-obsidian .store-admin-media-url-editor button { color: #a9ceff; }
html.glam-asphalt .store-admin-media-change-button:hover,
html.glam-obsidian .store-admin-media-change-button:hover,
html.glam-asphalt .store-admin-media-source-options button:hover,
html.glam-obsidian .store-admin-media-source-options button:hover,
html.glam-asphalt .store-admin-media-url-editor button:hover,
html.glam-obsidian .store-admin-media-url-editor button:hover { color: white; }
html.glam-asphalt .store-admin-media-plus,
html.glam-obsidian .store-admin-media-plus { background: #a9ceff; color: #10284a; }
html.glam-asphalt .store-admin-media-status[data-state="error"],
html.glam-obsidian .store-admin-media-status[data-state="error"] { color: #ff9dad; }
html.glam-asphalt .store-admin-media-status[data-state="success"],
html.glam-obsidian .store-admin-media-status[data-state="success"] { color: #9dedc3; }
@media (max-width: 600px) {
  .store-admin-media-section { border-radius: 14px; padding: 1rem .75rem; }
  .store-admin-media-card { flex-basis: min(43%, 155px); }
  .store-admin-media-card.is-primary { flex-basis: min(100%, 245px); }
  .store-admin-media-gallery { gap: .55rem; }
  .store-admin-media-add-tile { flex-basis: min(43%, 155px); min-width: 115px; }
  .store-admin-media-card-actions { gap: .2rem; }
  .store-admin-media-card-actions button { padding: .25rem .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .store-admin-media-add-tile { transition: none; }
}


/* Centre introductory hero copy on phones only.
   Wider layouts retain their existing alignment and positioning. */
@media (max-width: 640px) {
  #container:not(.store-featured-open) > .store-featured .store-featured-container > article > h1 {
    text-align: center;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-container > article > h1 sup {
    justify-content: center;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-container > article > h1 sub {
    text-align: center;
  }
  #container:not(.store-featured-open) > .store-featured .store-featured-container > article > .store-featured-description > h3,
  #container:not(.store-featured-open) > .store-featured .store-featured-container > article > .store-featured-description > p {
    text-align: center;
  }
}


/* Featured-book More Info editorial sections and related reading cards.
   Reuse the store's typography, spacing tokens, themes and existing icon assets. */
.glam-desc-parent.store-featured-open .store-featured-detail .store-book-detail-heading h1 {
  margin-bottom: .35rem;
}
.glam-desc-parent.store-featured-open .store-featured-detail .glam-pf-article .store-book-detail-subtitle {
  color: var(--glam-color-muted);
  font-family: var(--glam-font-family);
  font-size: clamp(1.05rem, 1.65vw, 1.25rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.5;
  margin: 0 0 var(--store-padding-highest);
}
.store-featured-detail .store-book-detail-section {
  margin-top: calc(var(--store-padding-highest) + var(--store-padding-mid));
}
.store-featured-detail .store-book-detail-section h2 {
  font-family: var(--glam-heading-font-family);
  line-height: 1.25;
  margin: 0 0 var(--store-padding-high);
}
.store-featured-detail .store-book-detail-section p {
  margin-bottom: 0;
}
.store-featured-detail .store-book-detail-section cite {
  font-style: italic;
}
.store-featured-detail .store-book-related-links {
  display: grid;
  gap: var(--store-padding-high);
  margin-top: var(--store-padding-highest);
}
.store-featured-detail .store-book-related-card {
  --store-book-related-accent: var(--store-dark-blue);
  align-items: center;
  background: color-mix(in srgb, var(--glam-background-color) 94%, var(--glam-color) 6%);
  border: 1px solid color-mix(in srgb, var(--glam-color) 18%, transparent);
  border-radius: 10px;
  box-shadow: 0 2px 5px color-mix(in srgb, var(--glam-color) 7%, transparent);
  box-sizing: border-box;
  color: var(--glam-color);
  display: grid;
  gap: var(--store-padding-highest);
  grid-template-columns: 4rem minmax(0, 1fr) 1.5rem;
  min-height: 118px;
  padding: var(--store-padding-higher) var(--store-padding-highest);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  width: 100%;
}
.store-featured-detail .store-book-related-card:visited {
  color: var(--glam-color);
}
.store-featured-detail .store-book-related-card:hover,
.store-featured-detail .store-book-related-card:focus-visible {
  background: color-mix(in srgb, var(--glam-background-color) 89%, var(--store-book-related-accent) 11%);
  border-color: color-mix(in srgb, var(--store-book-related-accent) 65%, var(--glam-color) 35%);
  box-shadow: 0 5px 14px color-mix(in srgb, var(--glam-color) 13%, transparent);
  transform: translateY(-1px);
}
.store-featured-detail .store-book-related-card:focus-visible {
  outline: 3px solid var(--rx-media-pink-1);
  outline-offset: 3px;
}
.store-featured-detail .store-book-related-card-study {
  --store-book-related-accent: color-mix(in srgb, var(--store-dark-blue) 55%, var(--rx-media-pink-1) 45%);
}
.store-featured-detail .store-book-related-icon {
  align-items: center;
  border-right: 1px solid color-mix(in srgb, var(--glam-color) 24%, transparent);
  color: var(--store-book-related-accent);
  display: flex;
  height: 3.5rem;
  justify-content: flex-start;
  min-width: 0;
}
.store-featured-detail .store-book-related-icon::before {
  background: currentColor;
  content: "";
  display: block;
  height: 2.5rem;
  width: 2.5rem;
}
.store-featured-detail .store-book-related-card-study .store-book-related-icon::before {
  mask: url('../img/icons/eye.svg') center / contain no-repeat;
  -webkit-mask: url('../img/icons/eye.svg') center / contain no-repeat;
}
.store-featured-detail .store-book-related-card-blog .store-book-related-icon::before {
  mask: url('../img/icons/download.svg') center / contain no-repeat;
  -webkit-mask: url('../img/icons/download.svg') center / contain no-repeat;
}
.store-featured-detail .store-book-related-copy {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
}
.store-featured-detail .store-book-related-copy strong {
  color: var(--glam-color);
  font-family: var(--glam-heading-font-family);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: .025em;
  line-height: 1.2;
}
.store-featured-detail .store-book-related-copy > span {
  color: var(--glam-color-muted);
  font-family: var(--glam-font-family);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.45;
  text-wrap: pretty;
}
.store-featured-detail .store-book-related-arrow {
  fill: none;
  height: 1.5rem;
  justify-self: end;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  transition: transform .2s ease;
  width: 1.5rem;
}
.store-featured-detail .store-book-related-card:hover .store-book-related-arrow,
.store-featured-detail .store-book-related-card:focus-visible .store-book-related-arrow {
  transform: translateX(3px);
}
html.glam-asphalt .store-featured-detail .store-book-related-card,
html.glam-obsidian .store-featured-detail .store-book-related-card {
  background: color-mix(in srgb, var(--glam-background-color) 88%, var(--glam-color) 12%);
}
html.glam-asphalt .store-featured-detail .store-book-related-card:hover,
html.glam-obsidian .store-featured-detail .store-book-related-card:hover,
html.glam-asphalt .store-featured-detail .store-book-related-card:focus-visible,
html.glam-obsidian .store-featured-detail .store-book-related-card:focus-visible {
  background: color-mix(in srgb, var(--glam-background-color) 79%, var(--store-book-related-accent) 21%);
}
html.glam-asphalt .store-featured-detail .store-book-related-card-study,
html.glam-obsidian .store-featured-detail .store-book-related-card-study {
  --store-book-related-accent: #c2a6f0;
}
html.glam-asphalt .store-featured-detail .store-book-related-card-blog,
html.glam-obsidian .store-featured-detail .store-book-related-card-blog {
  --store-book-related-accent: #a9ceff;
}
@media (max-width: 600px) {
  .store-featured-detail .store-book-related-card {
    gap: var(--store-padding-mid);
    grid-template-columns: 3rem minmax(0, 1fr) 1.25rem;
    min-height: 105px;
    padding: var(--store-padding-high);
  }
  .store-featured-detail .store-book-related-icon {
    height: 3rem;
  }
  .store-featured-detail .store-book-related-icon::before {
    height: 2rem;
    width: 2rem;
  }
  .store-featured-detail .store-book-related-copy strong {
    font-size: 1.1rem;
  }
  .store-featured-detail .store-book-related-copy > span {
    font-size: 1rem;
  }
  .store-featured-detail .store-book-related-arrow {
    height: 1.25rem;
    width: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .store-featured-detail .store-book-related-card,
  .store-featured-detail .store-book-related-arrow {
    transition: none;
  }
  .store-featured-detail .store-book-related-card:hover,
  .store-featured-detail .store-book-related-card:focus-visible {
    transform: none;
  }
}


/* Link TUF's official website on its first mention in the expanded details.
   Colours follow the existing store link palette in every theme. */
.store-featured-detail .store-book-tuf-link,
.store-featured-detail .store-book-tuf-link:visited {
  color: var(--store-dark-blue);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: .18em;
}
.store-featured-detail .store-book-tuf-link:hover,
.store-featured-detail .store-book-tuf-link:focus-visible {
  color: color-mix(in srgb, var(--store-dark-blue) 80%, black);
}
.store-featured-detail .store-book-tuf-link:focus-visible {
  outline: 3px solid var(--rx-media-pink-1);
  outline-offset: 3px;
}
html.glam-asphalt .store-featured-detail .store-book-tuf-link,
html.glam-asphalt .store-featured-detail .store-book-tuf-link:visited,
html.glam-obsidian .store-featured-detail .store-book-tuf-link,
html.glam-obsidian .store-featured-detail .store-book-tuf-link:visited {
  color: #a9ceff;
}
html.glam-asphalt .store-featured-detail .store-book-tuf-link:hover,
html.glam-asphalt .store-featured-detail .store-book-tuf-link:focus-visible,
html.glam-obsidian .store-featured-detail .store-book-tuf-link:hover,
html.glam-obsidian .store-featured-detail .store-book-tuf-link:focus-visible {
  color: #d5e7ff;
}


/* The listing cover and product-info image are independent. A single-detail
   view reuses the original left-pane image dimensions, with no gallery frame. */
#container:not(.store-featured-open) > .store-featured .store-featured-media > .store-book-single-image,
.glam-desc-parent.store-featured-open .store-featured-media > .store-book-single-image {
  display: none;
}
.glam-desc-parent.store-featured-open .store-featured-media:not(.has-book-gallery) > img:first-child,
.glam-desc-parent.store-featured-open .store-featured.store-product-gallery-hidden .store-featured-media > img:first-child {
  display: none;
}
.glam-desc-parent.store-featured-open .store-featured-media:not(.has-book-gallery) > .store-book-single-image,
.glam-desc-parent.store-featured-open .store-featured.store-product-gallery-hidden .store-featured-media > .store-book-single-image {
  border: 0;
  border-radius: 18px;
  box-shadow: none !important;
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: min(72dvh, 650px);
  max-width: 100%;
  object-fit: contain;
  padding: 0;
  width: auto;
}
.glam-desc-parent.store-featured-open .store-featured.store-product-gallery-hidden .store-featured-media .store-book-detail-media {
  display: none !important;
}
@media (min-width: 1100px) {
  .glam-desc-parent.store-featured-open .store-featured.store-product-gallery-hidden .store-featured-media > .store-book-single-image,
  .glam-desc-parent.store-featured-open .store-featured-media:not(.has-book-gallery) > .store-book-single-image {
    max-height: calc(100dvh - var(--store-nav-height) - 2 * var(--store-featured-open-block-padding));
  }
}


/* Reusing gallery artwork is an explicit per-image admin action. */
.store-admin-media-card-actions .store-admin-media-select-image {
  font-size: 1rem;
  line-height: 1.35;
  min-height: 44px;
  min-width: 0;
  padding: var(--store-padding-mid);
}


/* Product Settings > Display: use the full editor width rather than one
   narrow cell of its parent grid. Listing/info previews sit side by side,
   while the reusable gallery receives a dedicated full-width row. */
.store-admin-product-group-display > .store-admin-product-media-editor {
  box-sizing: border-box;
  display: grid;
  gap: var(--store-padding-highest);
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  min-width: 0;
  width: 100%;
}
.store-admin-product-media-editor > .store-admin-media-section {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}
.store-admin-product-media-editor > .store-admin-media-section[data-admin-media-section="gallery"] {
  grid-column: 1 / -1;
}
.store-admin-product-media-editor > .store-admin-media-status,
.store-admin-product-media-editor > .store-admin-media-save-hint {
  grid-column: 1 / -1;
  margin-block: 0;
  min-width: 0;
}
.store-admin-product-media-editor .store-admin-media-heading {
  margin: 0;
  max-width: none;
  width: 100%;
}
.store-admin-product-media-editor .store-admin-media-heading p,
.store-admin-product-media-editor .store-admin-media-heading small {
  font-size: 1rem;
  line-height: 1.5;
  margin-inline: 0;
  max-width: none;
  width: 100%;
}
.store-admin-product-media-editor .store-admin-media-primary,
.store-admin-product-media-editor .store-admin-media-gallery {
  justify-content: flex-start;
  margin-inline: 0;
  width: 100%;
}
.store-admin-product-media-editor .store-admin-media-primary .store-admin-media-card {
  flex: 0 1 360px;
  max-width: min(100%, 360px);
  width: 100%;
}
.store-admin-product-media-editor .store-admin-media-card-title,
.store-admin-product-media-editor .store-admin-media-card-filename {
  font-size: 1rem;
  line-height: 1.45;
}
.store-admin-product-media-editor .store-admin-media-card-actions button {
  font-size: 1rem;
  min-height: 44px;
}
.store-admin-product-media-editor .store-admin-media-change-button {
  align-self: flex-start;
  min-height: 44px;
}
@media (max-width: 900px) {
  .store-admin-product-group-display > .store-admin-product-media-editor {
    grid-template-columns: minmax(0, 1fr);
  }
  .store-admin-product-media-editor > .store-admin-media-section[data-admin-media-section="gallery"] {
    grid-column: 1;
  }
}


/* The enlarged book figure must shrink with its fixed 54% media pane.
   An auto-sized flex item's intrinsic min-width can otherwise make wide
   artwork spill across the boundary and obscure the 46% text pane. */
@media (min-width: 1100px) {
  .glam-desc-parent.store-featured-open > .store-featured.store-product-detail-large .store-featured-container > figure.store-featured-media {
    box-sizing: border-box;
    flex: 1 1 0;
    max-height: 100%;
    max-width: min(100%, 820px);
    min-width: 0;
    width: 100%;
  }
}
.glam-desc-parent.store-featured-open > .store-featured.store-product-detail-large .store-featured-media > .store-book-single-image {
  max-height: min(87dvh, 900px) !important;
  max-width: 100%;
  object-fit: contain;
  width: 100% !important;
}
.glam-desc-parent.store-featured-open > .store-featured.store-product-detail-large .store-book-gallery-stage > .store-book-gallery-slide.is-active {
  height: auto;
  max-height: min(85dvh, 900px) !important;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}
@media (max-width: 1099px) {
  .glam-desc-parent.store-featured-open > .store-featured.store-product-detail-large .store-featured-container > figure.store-featured-media {
    max-width: min(90vw, 700px);
    width: 100%;
  }
}


/* Display tab media workspace: let artwork occupy the panel, with the
   source picker at the heading edge instead of beneath a small thumbnail. */
.store-admin-product-media-editor > .store-admin-media-section[data-admin-media-section="featured"],
.store-admin-product-media-editor > .store-admin-media-section[data-admin-media-section="detail"] {
  align-content: start;
  align-items: start;
  display: grid;
  gap: var(--store-padding-high);
  grid-template-columns: minmax(0, 1fr) auto;
}
.store-admin-product-media-editor > .store-admin-media-section[data-admin-media-section="featured"] .store-admin-media-heading,
.store-admin-product-media-editor > .store-admin-media-section[data-admin-media-section="detail"] .store-admin-media-heading {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.store-admin-product-media-editor > .store-admin-media-section[data-admin-media-section="featured"] .store-admin-media-change-button,
.store-admin-product-media-editor > .store-admin-media-section[data-admin-media-section="detail"] .store-admin-media-change-button {
  align-self: start;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  white-space: nowrap;
}
.store-admin-product-media-editor > .store-admin-media-section[data-admin-media-section="featured"] .store-admin-media-primary,
.store-admin-product-media-editor > .store-admin-media-section[data-admin-media-section="detail"] .store-admin-media-primary {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
}
.store-admin-product-media-editor > .store-admin-media-section[data-admin-media-section="featured"] .store-admin-media-chooser,
.store-admin-product-media-editor > .store-admin-media-section[data-admin-media-section="detail"] .store-admin-media-chooser {
  box-sizing: border-box;
  grid-column: 1 / -1;
  max-width: none;
  width: 100%;
}
.store-admin-product-media-editor .store-admin-media-primary .store-admin-media-card {
  box-sizing: border-box;
  flex: 1 1 100%;
  max-width: none;
  min-width: 0;
  width: 100%;
}
.store-admin-product-media-editor .store-admin-media-card.is-primary .store-admin-media-card-visual {
  aspect-ratio: 16 / 10;
  max-height: 440px;
}
.store-admin-product-media-editor .store-admin-media-card.is-primary .store-admin-media-preview-link {
  box-sizing: border-box;
  width: 100%;
}
.store-admin-product-media-editor > .store-admin-media-section[data-admin-media-section="gallery"] {
  gap: var(--store-padding-high);
}
.store-admin-product-media-editor .store-admin-media-gallery {
  align-items: stretch;
  display: grid;
  gap: var(--store-padding-high);
  grid-template-columns: repeat(auto-fill, minmax(min(205px, 100%), 1fr));
  justify-content: stretch;
}
.store-admin-product-media-editor .store-admin-media-gallery > .store-admin-media-card,
.store-admin-product-media-editor .store-admin-media-gallery > .store-admin-media-add-tile {
  box-sizing: border-box;
  flex: none;
  max-width: none;
  min-width: 0;
  width: 100%;
}
.store-admin-product-media-editor .store-admin-media-gallery .store-admin-media-card-visual {
  aspect-ratio: 4 / 3;
}
.store-admin-product-media-editor .store-admin-media-gallery .store-admin-media-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.store-admin-product-media-editor .store-admin-media-gallery .store-admin-media-card-actions button {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
@media (max-width: 900px) {
  .store-admin-product-media-editor > .store-admin-media-section[data-admin-media-section="featured"],
  .store-admin-product-media-editor > .store-admin-media-section[data-admin-media-section="detail"] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .store-admin-product-media-editor > .store-admin-media-section[data-admin-media-section="featured"] .store-admin-media-change-button,
  .store-admin-product-media-editor > .store-admin-media-section[data-admin-media-section="detail"] .store-admin-media-change-button {
    align-self: flex-start;
  }
  .store-admin-product-media-editor .store-admin-media-gallery {
    grid-template-columns: repeat(auto-fill, minmax(min(165px, 100%), 1fr));
  }
}

/* Hide individual cards or the whole Behind the Book section when disabled. */
.store-book-related-card[hidden],
.store-book-behind[hidden] { display: none !important; }

/* Expanded-book actions remain in the article until they meet the fixed
   close control. The floating copies are display-only until JS reveals them. */
.store-featured-detail .glam-close-pf-desc {
  inset: calc(var(--store-nav-height) + 16px) 18px auto auto;
  position: fixed;
  z-index: 72;
}
.store-featured-detail .store-book-detail-actions {
  align-items: stretch;
  gap: .65rem;
  margin: 0 0 2rem;
  padding-inline-end: 80px;
}
.store-featured-detail .store-book-detail-actions > .store-book-button {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  flex: 1 1 0;
  font-size: clamp(.98rem, 1.25vw, 1.14rem);
  gap: .65rem;
  justify-content: center;
  letter-spacing: .12em;
  line-height: 1.25;
  min-height: 58px;
  padding: .6rem .85rem;
  text-align: center;
}
.store-featured-detail .store-book-detail-actions svg,
.store-featured-detail .store-book-floating-actions svg {
  fill: none;
  flex: 0 0 auto;
  height: 1.45rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1.45rem;
}
.store-featured-detail .store-book-detail-actions {
  transition: opacity 220ms ease;
}
.store-featured-detail .store-book-detail-actions.is-floating {
  opacity: 0;
  pointer-events: none;
}
.store-book-access .store-book-actions svg,
.store-featured-detail .store-book-detail-actions svg,
.store-featured-detail .store-book-floating-actions svg {
  /* One stroke weight for the homepage, detail actions and floating icons. */
  stroke-width: 2.25;
}
.store-featured-detail .store-book-floating-actions[hidden] {
  display: none !important;
}
.store-featured-detail .store-book-floating-actions {
  align-items: center;
  display: flex;
  gap: 9px;
  inset: calc(var(--store-nav-height) + 16px) 80px auto auto;
  justify-content: flex-end;
  max-width: calc(100vw - 110px);
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transform: translateY(-9px) scale(.94);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(.2, .8, .2, 1),
    visibility 0s linear 260ms;
  visibility: hidden;
  z-index: 71;
}
.store-featured-detail .store-book-floating-actions.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(.2, .8, .2, 1),
    visibility 0s;
  visibility: visible;
}
.store-featured-detail .store-book-floating-actions .store-book-action-label {
  display: none;
}
.store-featured-detail .store-book-floating-actions > .store-book-button,
.store-featured-detail .store-book-floating-actions > .store-book-button:visited,
.store-featured-detail .store-book-floating-actions > .store-book-button:hover,
.store-featured-detail .store-book-floating-actions > .store-book-button:focus-visible {
  text-decoration: none !important;
  text-decoration-line: none !important;
}
.store-featured-detail .store-book-floating-actions > .store-book-button {
  align-items: center;
  border-radius: 12px;
  box-shadow: 0 3px 12px color-mix(in srgb, black 18%, transparent);
  display: inline-flex;
  flex: 0 0 50px;
  height: 50px;
  justify-content: center;
  min-height: 50px;
  min-width: 50px;
  padding: 0;
  text-align: center;
  width: 50px;
}
.store-featured-detail .store-book-floating-actions > .store-book-button svg {
  height: 1.45rem;
  width: 1.45rem;
}
.store-featured-detail .store-book-floating-actions > .store-book-button:focus-visible,
.store-featured-detail .store-book-detail-actions > .store-book-button:focus-visible {
  outline: 3px solid var(--rx-media-pink-1);
  outline-offset: 3px;
}
.store-featured-detail .store-book-opening-question {
  font-style: italic;
}
.store-featured-detail .store-book-behind > h2,
.store-featured-detail .store-book-behind > p {
  text-align: center;
  text-wrap: balance;
}
.store-featured-detail .store-book-behind > p {
  margin-inline: auto;
  max-width: 45ch;
}
@media (max-width: 1099px) {
  .store-featured-detail .store-book-detail-actions {
    padding-inline-end: 0;
  }
  .glam-desc-parent.store-featured-open .store-featured-detail .glam-pf-article {
    box-sizing: border-box;
    padding-inline: clamp(20px, 5vw, 38px);
    width: 100%;
  }
}
@media (max-width: 640px) {
  .store-featured-detail .glam-close-pf-desc {
    inset: calc(var(--store-nav-height) + 14px) 14px auto auto;
  }
  .store-featured-detail .store-book-floating-actions {
    gap: 8px;
    inset: calc(var(--store-nav-height) + 14px) 76px auto auto;
  }
  .store-featured-detail .store-book-floating-actions > .store-book-button {
    flex-basis: 48px;
    height: 48px;
    min-height: 48px;
    min-width: 48px;
    width: 48px;
  }
  .store-featured-detail .store-book-detail-actions {
    gap: .6rem;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 1.65rem;
    margin-top: 3rem;
    padding-inline-end: 0;
  }
  .store-featured-detail .store-book-detail-actions > .store-book-button {
    font-size: 1rem;
    gap: .7rem;
    min-height: 56px;
    padding: .7rem .9rem;
  }
  .glam-desc-parent.store-featured-open .store-featured-detail .glam-pf-article {
    padding: 1rem clamp(20px, 5.5vw, 30px) 4.5rem;
  }
  .glam-desc-parent.store-featured-open .store-featured-detail
  .glam-pf-article .store-book-detail-heading h1 {
    font-size: clamp(1.85rem, 7.8vw, 2.4rem);
    line-height: 1.16;
    margin-bottom: 1.4rem;
    text-align: center;
    text-wrap: balance;
  }
  .store-featured-detail .store-book-detail-section {
    margin-top: 1.85rem;
  }
  .store-featured-detail .store-book-detail-section > h2 {
    font-size: clamp(1.13rem, 5vw, 1.48rem);
    letter-spacing: .045em;
    line-height: 1.3;
    margin-inline: auto;
    max-width: 100%;
    text-align: center;
    text-wrap: balance;
  }
  .glam-desc-parent.store-featured-open .store-featured-detail .glam-pf-article p {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    text-wrap: pretty;
  }
  .store-featured-detail .store-book-behind > p {
    margin-inline: auto;
  }
  .store-featured-detail .store-book-related-links {
    margin-top: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .store-featured-detail .store-book-detail-actions,
  .store-featured-detail .store-book-floating-actions,
  .store-featured-detail .store-book-floating-actions.is-visible,
  .store-featured-detail .store-book-floating-actions > .store-book-button {
    transition: none;
  }
}

/* End-of-story composition: enough width for the single-line invitation on
   desktop, and a gently constrained, centred closing with natural wrapping. */
.store-featured-detail .store-book-behind > .store-book-behind-intro {
  box-sizing: border-box;
  max-width: min(100%, 48rem);
  margin-inline: auto;
  padding-inline: clamp(.25rem, 1vw, 1rem);
  text-align: center;
  text-wrap: pretty;
}
.store-featured-detail .glam-pf-article > .store-book-detail-closing {
  border-top: 1px solid color-mix(in srgb, var(--glam-color) 19%, transparent);
  box-sizing: border-box;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  max-width: 65ch;
  padding: clamp(1.5rem, 3vw, 2.3rem) clamp(1rem, 3.5vw, 2.25rem) 0;
  text-align: center;
  text-wrap: pretty;
}
.store-featured-detail .store-book-attributions {
  border-top: 1px solid color-mix(in srgb, var(--glam-color) 18%, transparent);
  display: grid;
  gap: 1.3rem;
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0;
}
.store-featured-detail .store-book-attribution-section h3 {
  color: var(--glam-color);
  font: 700 clamp(.97rem, 1.4vw, 1.12rem)/1.35 var(--glam-heading-font-family);
  letter-spacing: .05em;
  margin: 0 0 .5rem;
}
.store-featured-detail .glam-pf-article .store-book-attribution-section p {
  color: var(--glam-color-muted);
  font-size: clamp(.88rem, 1.2vw, 1rem);
  line-height: 1.55;
  margin: 0;
}
.store-featured-detail .store-book-attribution-section a {
  color: var(--store-dark-blue);
  text-underline-offset: .2em;
}
@media (max-width: 640px) {
  .store-featured-detail .store-book-behind > .store-book-behind-intro {
    max-width: none;
    padding-inline: 0;
  }
  .store-featured-detail .glam-pf-article > .store-book-detail-closing {
    max-width: 38ch;
    padding-inline: 1rem;
  }
}


/* Shared scroll-driven action island. Desktop Close heads the vertical
   right-side stack, with compact Read and Download actions beneath it. */
.description .store-detail-action-island {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none;
  box-sizing: border-box;
  display: inline-flex;
  gap: 6px;
  inset: calc(var(--store-nav-height) + 12px) clamp(12px, 2vw, 22px) auto auto;
  isolation: isolate;
  min-height: 60px;
  padding: 5px;
  pointer-events: none;
  position: fixed;
  transition:
    background-color 440ms ease,
    border-color 440ms ease,
    box-shadow 500ms ease;
  width: auto;
  z-index: 92;
}
.description .store-detail-action-island.is-floating {
  background: color-mix(in srgb, var(--glam-background-color) 92%, transparent);
  border-color: color-mix(in srgb, var(--glam-color) 18%, transparent);
  box-shadow: 0 9px 30px color-mix(in srgb, black 18%, transparent);
}
.description .store-detail-action-island > .glam-close-pf-desc,
.store-featured-detail .store-detail-action-island > .glam-close-pf-desc {
  align-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 48px;
  height: 48px;
  inset: auto;
  justify-content: center;
  margin: 0;
  min-height: 48px;
  min-width: 48px;
  pointer-events: auto;
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  width: 48px;
  z-index: 2;
}
.description .store-detail-action-island > .store-book-floating-actions,
.store-featured-detail .store-detail-action-island > .store-book-floating-actions {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  height: 48px;
  inset: auto;
  justify-content: flex-start;
  margin: 0;
  max-width: none;
  min-height: 48px;
  min-width: 0;
  opacity: 0;
  /* The entire icon row always has enough room for full circles. The
     JavaScript only fades/slides it, never compresses or cuts buttons. */
  overflow: visible;
  padding: 0;
  pointer-events: none;
  position: relative;
  right: auto;
  top: auto;
  visibility: visible;
  width: 0;
  z-index: 1;
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(.22, 1, .36, 1);
}
.description .store-detail-action-island > .store-book-floating-actions.is-visible,
.store-featured-detail .store-detail-action-island > .store-book-floating-actions.is-visible {
  visibility: visible;
  pointer-events: none;
}
.description .store-detail-action-island > .store-book-floating-actions.is-interactive {
  pointer-events: auto;
}
.description .store-detail-action-island .store-book-floating-actions > .store-book-button {
  align-items: center;
  border-radius: 50%;
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 48px;
  height: 48px;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 0;
  text-decoration: none !important;
  width: 48px;
}
.description .store-detail-action-island .store-book-floating-actions > .store-book-button:is(:hover, :focus-visible, :visited) {
  text-decoration: none !important;
}
.description .store-detail-action-island .store-book-floating-actions .store-book-action-label {
  display: none;
}
.description .store-detail-action-island .store-book-floating-actions .store-action-icon,
.description .store-detail-action-island .store-book-floating-actions svg {
  fill: none;
  flex: 0 0 auto;
  height: 23px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
  width: 23px;
}
.description .store-detail-action-island .store-floating-read {
  background: var(--store-detail-article-button-background);
  border: 2px solid var(--store-dark-blue);
  color: var(--store-dark-blue);
}
.description .store-detail-action-island .store-floating-download {
  background: var(--store-cart-add-control-item-background, transparent);
  border: 2px solid #258347;
  color: #258347;
  cursor: pointer;
}
.description .store-original-actions {
  transition: opacity 480ms cubic-bezier(.22, 1, .36, 1);
}
.description .store-original-actions.is-floating {
  pointer-events: none;
}
@media (max-width: 640px) {
  .description .store-detail-action-island {
    inset: calc(var(--store-nav-height) + 10px) 12px auto auto;
    min-height: 56px;
    padding: 4px;
  }
  .description .store-detail-action-island > .glam-close-pf-desc {
    flex-basis: 46px;
    height: 46px;
    min-height: 46px;
    min-width: 46px;
    width: 46px;
  }
  .description .store-detail-action-island > .store-book-floating-actions {
    height: 46px;
    min-height: 46px;
  }
  .description .store-detail-action-island .store-book-floating-actions > .store-book-button {
    flex-basis: 46px;
    height: 46px;
    min-height: 46px;
    min-width: 46px;
    width: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .description .store-detail-action-island,
  .description .store-detail-action-island > .store-book-floating-actions,
  .description .store-original-actions {
    transition: none !important;
  }
}


/* Editorial book separators reuse the EXACT featured-home component:
   two soft gradient rails with three short, skewed green/blue/pink strokes.
   Do not substitute full-width colour segments or grey <hr> rules. */
#pf-item-tai-keys-of-trust .glam-pf-article > .store-book-editorial-divider {
  --store-book-divider-bar-height: 1.05rem;
  box-sizing: border-box;
  max-width: 320px;
  min-width: 0;
  width: min(90%, 320px);
  margin: clamp(2.4rem, 3.6vw, 3.3rem) auto 0;
}
#pf-item-tai-keys-of-trust .glam-pf-article > .store-book-editorial-divider[data-book-divider="before-closing"] {
  margin-top: clamp(2.6rem, 4vw, 3.6rem);
}
#pf-item-tai-keys-of-trust .glam-pf-article > .store-book-editorial-divider[data-book-divider="after-closing"] {
  margin-top: clamp(2.2rem, 3.3vw, 3rem);
}

#pf-item-tai-keys-of-trust .glam-pf-article > .store-book-editorial-divider + .store-book-behind {
  margin-top: clamp(2.1rem, 3vw, 2.7rem);
}

/* The closing invitation is framed by the actual hero ornaments above
   and below, instead of borders or pseudo-elements on the paragraph. */
#pf-item-tai-keys-of-trust .glam-pf-article > .store-book-detail-closing {
  border: 0;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 65ch;
  padding: clamp(1.5rem, 2.4vw, 2rem) clamp(.8rem, 2vw, 1.5rem) 0;
  text-align: center;
  text-wrap: pretty;
}

/* Stable typography tokens for book notice headings. Do not inherit the
   compressed label tracking used in compact administrator panels. */
#pf-item-tai-keys-of-trust {
  --store-editorial-notice-title-size: clamp(1.09rem, 1.5vw, 1.25rem);
  --store-editorial-notice-title-tracking: .14em;
  --store-editorial-notice-line-height: 1.5;
}
#pf-item-tai-keys-of-trust .glam-pf-article > .store-book-attributions {
  border: 0;
  box-sizing: border-box;
  display: grid;
  gap: clamp(1.75rem, 2.7vw, 2.5rem);
  justify-items: center;
  margin: clamp(3.25rem, 5vw, 4.5rem) auto 0;
  max-width: min(100%, 54rem);
  padding: 0 clamp(.75rem, 2.5vw, 1.75rem);
  text-align: center;
  width: 100%;
}
#pf-item-tai-keys-of-trust .glam-pf-article .store-book-attribution-section {
  box-sizing: border-box;
  max-width: 70ch;
  min-width: 0;
  text-align: center;
  width: 100%;
}
#pf-item-tai-keys-of-trust .glam-pf-article .store-book-attribution-section .store-editorial-notice-title {
  color: var(--glam-color);
  font-family: var(--glam-heading-font-family);
  font-size: var(--store-editorial-notice-title-size);
  font-weight: 700;
  letter-spacing: var(--store-editorial-notice-title-tracking);
  line-height: var(--store-editorial-notice-line-height);
  margin: 0 auto .9rem;
  max-width: 100%;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}
#pf-item-tai-keys-of-trust .glam-pf-article .store-book-attribution-section p {
  color: var(--glam-color-muted);
  font-family: var(--glam-font-family);
  font-size: clamp(.96rem, 1.2vw, 1.05rem);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 70ch;
  padding: 0;
  text-align: center;
  text-wrap: pretty;
}
#pf-item-tai-keys-of-trust .glam-pf-article .store-book-attribution-section a {
  color: var(--store-dark-blue);
}
html.glam-asphalt #pf-item-tai-keys-of-trust .glam-pf-article .store-book-attribution-section a,
html.glam-obsidian #pf-item-tai-keys-of-trust .glam-pf-article .store-book-attribution-section a {
  color: #a9ceff;
}
@media (max-width: 640px) {
  #pf-item-tai-keys-of-trust .glam-pf-article > .store-book-editorial-divider {
    --store-book-divider-bar-height: .95rem;
    width: min(88%, 320px);
  }
  #pf-item-tai-keys-of-trust {
    --store-editorial-notice-title-size: 1.07rem;
    --store-editorial-notice-title-tracking: .13em;
  }
}


/* A selected store item is a media-only pane. Late store-card grid rules
   must not resurrect its homepage View Details/Download buttons beneath
   the gallery while the independent information pane is open. */
#container.glam-desc-parent .store-section .store-item.glam-item-open > .store-item-buttons {
  display: none !important;
}


/* Scrolling action island: the original Close hover label must never slide
   across the adjacent Download icon. All three actions now share the same
   unobstructed tooltip below the island, including on keyboard focus. */
.description .store-detail-action-island > .glam-close-pf-desc > span {
  display: none !important;
}
.description .store-detail-action-island[data-action-tooltip]::after {
  background: var(--glam-color);
  border: 1px solid color-mix(in srgb, var(--glam-background-color) 20%, transparent);
  border-radius: 9px;
  box-shadow: 0 5px 18px color-mix(in srgb, black 22%, transparent);
  color: var(--glam-background-color);
  content: attr(data-action-tooltip);
  font-family: var(--glam-font-family);
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: normal;
  line-height: 1.4;
  max-width: min(260px, calc(100vw - 30px));
  padding: .5rem .75rem;
  pointer-events: none;
  position: absolute;
  right: 0;
  text-align: center;
  text-transform: none;
  top: calc(100% + 9px);
  white-space: normal;
  width: max-content;
  z-index: 10;
}
.description .store-detail-action-island > .store-book-floating-actions {
  /* Keep the clipped action row in the island's own flex flow; only it
     translates slightly left as it reveals, never *into* Close. */
  transform-origin: center top;
}

/* Obvious inverted hover and high-contrast keyboard focus for Read Online,
   both at full size and inside the floating island. */
.store-book-read-button.store-featured-actions-button:is(:hover, :focus-visible),
.description .store-detail-action-island .store-book-floating-actions > .store-floating-read:is(:hover, :focus-visible) {
  background: #e6f0ff;
  border-color: #174bb2;
  color: #123a8a;
  filter: none;
}
.store-book-read-button.store-featured-actions-button:focus-visible,
.description .store-detail-action-island .store-book-floating-actions > .store-floating-read:focus-visible {
  box-shadow: 0 0 0 2px var(--glam-background-color);
  outline: 4px solid var(--rx-media-pink-1);
  outline-offset: 3px;
}
.description .store-detail-action-island .store-book-floating-actions > .store-book-button:focus-visible,
.description .store-detail-action-island > .glam-close-pf-desc:focus-visible {
  outline: 3px solid var(--rx-media-pink-1);
  outline-offset: 3px;
}
@media (hover: none) {
  .description .store-detail-action-island[data-action-tooltip]::after {
    /* Native title/accessible names remain; avoid covering touch content. */
    display: none;
  }
}



/* Desktop action rail: Close first, then Read, then Download. The scroll
   hand-off and the original full-size buttons are unchanged. Mobile retains
   the full-width action bar at the bottom of the viewport. */
@media (min-width: 769px) {
  .description .store-detail-action-island {
    align-items: center;
    border-radius: 32px;
    flex-direction: column;
    gap: 6px;
    justify-content: flex-start;
    min-height: 0;
    width: 60px;
  }
  .description .store-detail-action-island > .glam-close-pf-desc {
    flex: 0 0 48px;
  }
  .description .store-detail-action-island > .store-book-floating-actions,
  .store-featured-detail .store-detail-action-island > .store-book-floating-actions {
    align-items: center;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 6px;
    height: auto;
    justify-content: flex-start;
    max-width: 48px;
    min-height: 0;
    min-width: 48px;
    transform-origin: center top;
    width: 48px;
  }
  .description .store-detail-action-island .store-book-floating-actions > .store-book-button {
    flex: 0 0 48px;
  }
  /* Align each tooltip to its hovered/focused control and place it to
     the left of the vertical rail, never across another button. */
  .description .store-detail-action-island[data-action-tooltip]::after {
    right: calc(100% + 8px);
    top: 14px;
  }
  .description .store-detail-action-island[data-action-tooltip-index="1"]::after {
    top: 68px;
  }
  .description .store-detail-action-island[data-action-tooltip-index="2"]::after {
    top: 122px;
  }
}

/* Mobile product actions are a fixed *bottom bar*, not a floating pill.
   Its surface touches both viewport sides and the bottom edge; safe-area space
   belongs inside the bar so the background reaches the home indicator. The
   Close control remains independent at the top right. */
@media (max-width: 768px) {
  .description.glam-description-open {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
  .description.glam-description-open > .glam-pf-article {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }
  .description.glam-description-open .store-original-actions {
    display: none !important;
  }
  .description.glam-description-open .store-detail-action-island[data-action-tooltip]::after {
    display: none;
  }
  .description.glam-description-open .store-detail-action-island,
  .description.glam-description-open .store-detail-action-island.is-floating {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .description.glam-description-open .store-detail-action-island > .store-book-floating-actions,
  .store-featured-detail.glam-description-open .store-detail-action-island > .store-book-floating-actions {
    align-items: stretch;
    background: var(--glam-background-color);
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--glam-color) 16%, transparent);
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    display: grid;
    gap: clamp(8px, 2vw, 12px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    inset: auto 0 0 0;
    justify-content: stretch;
    margin: 0;
    max-height: none;
    max-width: none;
    min-height: 0;
    min-width: 0;
    overflow: visible;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    pointer-events: auto;
    position: fixed;
    transform: none;
    width: 100%;
    z-index: 95;
  }
  .description.glam-description-open .store-detail-action-island .store-book-floating-actions > .store-book-button {
    align-items: center;
    border-radius: 10px;
    box-shadow: none;
    box-sizing: border-box;
    display: inline-flex;
    flex: 1 1 0;
    font-family: var(--glam-heading-font-family);
    font-size: clamp(.82rem, 3.1vw, 1.08rem);
    font-weight: 800;
    gap: clamp(5px, 1.5vw, 9px);
    height: 58px;
    justify-content: center;
    letter-spacing: .035em;
    line-height: 1.2;
    margin: 0;
    max-width: 100%;
    min-height: 58px;
    min-width: 0;
    padding: 8px clamp(5px, 1.7vw, 12px);
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    white-space: nowrap;
    width: 100%;
  }
  /* The floating clones retain the homepage's original SVG paths. */
  .description.glam-description-open .store-detail-action-island .store-book-floating-actions svg {
    flex: 0 0 auto;
    height: 1.5em;
    width: 1.5em;
  }
  .description.glam-description-open .store-detail-action-island .store-book-floating-actions .store-book-action-label {
    display: inline;
    font: inherit;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* Exactly match the homepage Read Online blue and Download pink tokens,
     including the state palettes; no new mobile-specific accent colours. */
  .description.glam-description-open .store-detail-action-island .store-book-floating-actions > .store-book-read-button.store-featured-actions-button {
    background: var(--store-dark-blue);
    border: 2px solid var(--store-dark-blue);
    color: white;
  }
  .description.glam-description-open .store-detail-action-island .store-book-floating-actions > .store-book-read-button.store-featured-actions-button:is(:hover, :focus-visible) {
    background: #e6f0ff;
    border-color: #174bb2;
    color: #123a8a;
  }
  .description.glam-description-open .store-detail-action-island .store-book-floating-actions > .store-featured-purchase-button {
    background: var(--store-featured-purchase-button-background);
    border: 2px solid var(--store-featured-purchase-button-border-color);
    color: var(--store-featured-purchase-button-color);
  }
  .description.glam-description-open .store-detail-action-island .store-book-floating-actions > .store-featured-purchase-button:is(:hover, :focus-visible) {
    background: var(--store-featured-purchase-button-hover-background);
    border: 2px solid var(--store-featured-purchase-button-hover-border-color);
    color: var(--store-featured-purchase-button-hover-color);
  }
  /* Standard products still use their existing read/article and
     cart/download colour tokens; the bar itself is shared. */
  .description.glam-description-open .store-detail-action-island .store-book-floating-actions > .store-floating-read {
    background: var(--store-detail-article-button-background);
    border: 2px solid var(--store-dark-blue);
    color: var(--store-dark-blue);
  }
  .description.glam-description-open .store-detail-action-island .store-book-floating-actions > .store-floating-download {
    background: var(--store-cart-add-control-item-background, transparent);
    border: 2px solid var(--store-dark-green);
    color: var(--store-dark-green);
  }
  .description.glam-description-open .store-detail-action-island .store-book-floating-actions > .store-book-button:focus-visible {
    outline: 3px solid var(--rx-media-pink-1);
    outline-offset: 2px;
  }
  .description.glam-description-open .store-detail-action-island .store-book-floating-actions:has(> :only-child) {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 360px) {
  .description.glam-description-open .store-detail-action-island .store-book-floating-actions > .store-book-button {
    font-size: .76rem;
    letter-spacing: 0;
  }
}


/* Touch browsers can leave :hover active after closing a native download
   sheet. Keep download buttons in their normal palette after a tap while
   retaining :focus-visible for keyboard/assistive navigation. */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
  .store-book-access .store-book-actions > a[data-book-download]:hover:not(:focus-visible),
  .description.glam-description-open .store-detail-action-island
  .store-book-floating-actions > a[data-book-download]:hover:not(:focus-visible) {
    background: var(--store-featured-purchase-button-background);
    border-color: var(--store-featured-purchase-button-border-color);
    color: var(--store-featured-purchase-button-color);
  }
  .description.glam-description-open .store-detail-action-island
  .store-book-floating-actions > .store-floating-download:hover:not(:focus-visible) {
    background: var(--store-cart-add-control-item-background, transparent);
    border-color: var(--store-dark-green);
    color: var(--store-dark-green);
  }
}


/* Chromium on touch devices can keep a Read Online link in :hover after
   returning from its PDF tab. Only suppress this synthetic touch hover;
   retain the desktop hover inversion and the keyboard :focus-visible ring. */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
  .store-book-access .store-book-actions > .store-book-read-button.store-featured-actions-button:hover:not(:focus-visible),
  .description.glam-description-open .store-detail-action-island
  .store-book-floating-actions > .store-book-read-button.store-featured-actions-button:hover:not(:focus-visible) {
    background: var(--store-dark-blue);
    border-color: var(--store-dark-blue);
    color: white;
  }
  .description.glam-description-open .store-detail-action-island
  .store-book-floating-actions > .store-floating-read:hover:not(:focus-visible) {
    background: var(--store-detail-article-button-background);
    border: var(--store-detail-article-button-border);
    color: var(--store-detail-article-button-color);
  }
}

/* Tablet homepage only: use the available width instead of the phone-sized
   46rem cap. Keep the established title row and expanded viewer untouched. */
@media (min-width: 769px) and (max-width: 1024px) {
  #container:not(.store-featured-open) > .store-featured[data-store-item="tai-keys-of-trust"] .store-featured-container {
    box-sizing: border-box;
    /* Bound the entire composition so the cover and copy retain their
       relative proportions as the available width decreases. */
    --book-hero-gap: clamp(1rem, 3vw, 2rem);
    --book-hero-gutter: clamp(1rem, 3vw, 2rem);
    max-width: 55rem;
    width: 100%;
    grid-template-columns: minmax(0, 21fr) minmax(0, 30fr);
    justify-content: center;
    column-gap: var(--book-hero-gap);
    margin-inline: auto;
    padding-inline: var(--book-hero-gutter);
  }
  #container:not(.store-featured-open) > .store-featured[data-store-item="tai-keys-of-trust"] .store-featured-container > figure {
    max-width: 21rem;
    justify-self: center;
  }
  #container:not(.store-featured-open) > .store-featured[data-store-item="tai-keys-of-trust"] .store-featured-description {
    width: 100%;
    max-width: none;
    text-wrap: pretty;
    justify-self: stretch;
  }
  #container:not(.store-featured-open) > .store-featured[data-store-item="tai-keys-of-trust"] .store-book-meta-row {
    gap: var(--store-padding-mid);
    justify-content: flex-start;
  }
  #container:not(.store-featured-open) > .store-featured[data-store-item="tai-keys-of-trust"] .store-book-meta-divider {
    display: none;
  }
  #container:not(.store-featured-open) > .store-featured[data-store-item="tai-keys-of-trust"] .store-book-more-info {
    min-width: 0;
    font-size: 1.125rem;
    min-height: 48px;
    padding-inline: var(--store-padding-high);
  }
}
