.stc-book {
    --stc-ink: #252219;
    --stc-paper: #fcf9f1;
    --stc-rule: #ded6c5;
    max-width: 74rem;
    margin: 1.5rem auto;
    color: var(--stc-ink);
    border: 1px solid var(--stc-rule);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 14px 40px #28221516;
}
.stc-cover {
    background: #24362d;
    color: #fff8e8;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.3rem;
}
.stc-book .stc-store {
    margin: 0 0 .4rem;
    color: #e0d5b8;
    font-size: .875rem;
    letter-spacing: .06em;
}
.stc-book .stc-cover h2,
.stc-book .stc-pages h3 {
    margin: 0;
    font-family: Georgia, serif;
    font-weight: 400;
    color: inherit;
    line-height: 1.1;
}
.stc-book .stc-cover h2 { font-size: clamp(2rem, 6vw, 4rem); }
.stc-book .stc-download {
    display: inline-block;
    padding: .7rem 1rem;
    border: 1px solid #f0dfab;
    border-radius: .4rem;
    color: #252219;
    background: #f0dfab;
    font-size: .925rem;
    font-weight: 650;
    text-decoration: none;
}
.stc-book .stc-download:hover { background: #fff2cd; }
.stc-book :is(summary, a):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.stc-pages {
    background: linear-gradient(90deg, #eee6d6 0, var(--stc-paper) 20px);
    padding: clamp(1.15rem, 4vw, 3rem);
}
.stc-book .stc-pages h3 { font-size: 1.85rem; margin-bottom: 1rem; }
.stc-chapter { border-top: 1px solid var(--stc-rule); }
.stc-chapter:last-child { border-bottom: 1px solid var(--stc-rule); }
.stc-chapter summary {
    display: grid;
    grid-template-columns: 1fr auto 1rem;
    align-items: center;
    gap: .75rem;
    padding: .85rem 0;
    cursor: pointer;
    list-style: none;
}
.stc-chapter summary::-webkit-details-marker { display: none; }
.stc-chapter summary::after { content: '+'; text-align: center; font-weight: 700; }
.stc-chapter[open] summary::after { content: '\2212'; }
.stc-chapter-title { overflow-wrap: anywhere; font-family: Georgia, serif; font-size: 1.15rem; }
.stc-count { color: #655b48; font-size: .8rem; font-variant-numeric: tabular-nums; }
.stc-book .stc-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: .55rem;
    margin: 0;
    padding: .1rem 0 1rem;
    list-style: none;
}
.stc-book .stc-products li { margin: 0; padding: 0; min-width: 0; }
.stc-book .stc-product {
    display: flex;
    align-items: center;
    gap: .65rem;
    height: 100%;
    box-sizing: border-box;
    padding: .55rem;
    border: 1px solid var(--stc-rule);
    border-radius: .35rem;
    background: #fffdf8;
    color: var(--stc-ink);
    text-decoration: none;
    line-height: 1.3;
}
.stc-book .stc-product:hover { border-color: #766b54; }
.stc-book .stc-image {
    display: block;
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    background: #f1ede3;
    border-radius: .2rem;
    overflow: hidden;
}
.stc-book .stc-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.stc-product-text { display: grid; gap: .15rem; font-size: .875rem; overflow-wrap: anywhere; }
.stc-product-text small { color: #655b48; }


/* The original expandable catalog is the fallback when scripting is unavailable. */
.stc-book.stc-reader {
    max-width: 76rem;
    background: #e7e6df;
    border: 1px solid #d0d0c4;
    border-radius: .85rem;
}
.stc-book .stc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .7rem clamp(.75rem, 2vw, 1.5rem);
    background: #253930;
    color: #fff9e8;
}
.stc-book .stc-toolbar button,
.stc-book .stc-open {
    appearance: none;
    cursor: pointer;
    border: 1px solid #a0aa97;
    border-radius: .3rem;
    background: transparent;
    color: inherit;
    padding: .45rem .7rem;
    font: inherit;
    font-size: .88rem;
    line-height: 1.3;
    min-height: 2.3rem;
}
.stc-book .stc-toolbar button:hover { background: #ffffff18; }
.stc-book .stc-toolbar button[aria-disabled="true"] { opacity: .48; cursor: default; }
.stc-book .stc-toolbar :focus-visible,
.stc-book .stc-open:focus-visible { outline: 2px solid #f4db92; outline-offset: 3px; }
.stc-book .stc-turn-controls { display: flex; align-items: center; gap: .5rem; }
.stc-book .stc-turn-controls button { min-width: 2.4rem; }
.stc-book .stc-page-status { min-width: 5.5em; text-align: center; font-size: .82rem; font-variant-numeric: tabular-nums; }
.stc-book .stc-toolbar .stc-download { padding: .45rem .7rem; font-size: .88rem; line-height: 1.3; }
.stc-book .stc-stage {
    padding: clamp(.75rem, 3vw, 2.25rem);
    touch-action: pan-y pinch-zoom;
    background: radial-gradient(ellipse at top, #f1f0e8 0, #d7d9ce 100%);
}
.stc-book .stc-spread { display: grid; grid-template-columns: minmax(0, 34rem); justify-content: center; }
.stc-book .stc-spread-double { grid-template-columns: repeat(2, minmax(0, 34rem)); }
.stc-book .stc-leaf {
    min-width: 0;
    position: relative;
    box-sizing: border-box;
    min-height: 32rem;
    display: flex;
    flex-direction: column;
    background: #fffaf0;
    border: 1px solid #d3cbbb;
    box-shadow: 0 5px 0 -2px #d6cdbb, 0 14px 24px #24281e26;
    padding: clamp(1rem, 3vw, 2.3rem);
    transform-origin: left center;
}
.stc-book .stc-spread-double .stc-leaf:not([hidden]) {
    background: linear-gradient(90deg, #e2dac8 0, #fffaf0 1.25rem);
}
.stc-book .stc-spread-double .stc-leaf:not([hidden]):nth-child(even) {
    background: linear-gradient(270deg, #e2dac8 0, #fffaf0 1.25rem);
    transform-origin: right center;
}
.stc-book .stc-leaf[hidden] { display: none; }
.stc-book .stc-leaf h3 {
    font: 400 clamp(1.35rem, 2.6vw, 2.15rem)/1.14 Georgia, serif;
    color: #263b31;
    overflow-wrap: anywhere;
    margin: 0 0 .85rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid #9d8e65;
}
.stc-book .stc-leaf h3:focus-visible { outline: 2px solid #526f5e; outline-offset: 5px; }
.stc-book .stc-front {
    align-items: flex-start;
    justify-content: center;
    min-height: clamp(23rem, 48vw, 34rem);
    padding: clamp(2rem, 6vw, 4.5rem);
    color: #fff8e8;
    border-color: #25392f;
    background: linear-gradient(90deg, #1c3026 0, #435b4c 2%, #263d32 5%, #293e34 100%);
}
.stc-book .stc-front::before {
    content: '';
    position: absolute;
    inset: .9rem .9rem .9rem 1.3rem;
    border: 1px solid #ad9b6a;
    pointer-events: none;
}
.stc-book .stc-front h2 { max-width: 10ch; font-size: clamp(2.7rem, 6vw, 5rem); }
.stc-book .stc-front .stc-store { overflow-wrap: anywhere; }
.stc-book .stc-open { border-color: #dfc690; }
.stc-book .stc-open:hover { background: #ffffff18; }
.stc-book .stc-index-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.stc-book .stc-index-list li { margin: 0; padding: 0; }
.stc-index-number { color: #665c48; font: 400 .8rem/1.25 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.stc-book .stc-folio {
    order: 1;
    margin-top: auto;
    padding-top: .75rem;
    text-align: end;
    font-size: .75rem;
    color: #685f4e;
    font-variant-numeric: tabular-nums;
}
.stc-book .stc-spread-double .stc-folio { align-self: stretch; }

.stc-book.stc-reader {


    background: var(--stc-stage, #252525);
    border-color: #31353a;
}
.stc-book .stc-toolbar { justify-content: center; background: #30343a; }
.stc-book .stc-toolbar .stc-download,
.stc-book .stc-open {
    color: #252219;
    background: var(--stc-accent);
    border-color: var(--stc-accent);
    font-weight: 650;
}
.stc-book .stc-toolbar .stc-download:hover,
.stc-book .stc-open:hover { background: #ffdc96; }
.stc-book .stc-stage { background: radial-gradient(ellipse at top, #393d42, var(--stc-stage, #252525) 75%); }
.stc-book .stc-leaf { background: #fdfbf6; }
.stc-book .stc-spread-double .stc-leaf:not([hidden]) {
    background: linear-gradient(90deg, #ddd8cc 0, #fdfbf6 1.15rem);
}
.stc-book .stc-spread-double .stc-leaf:not([hidden]):nth-child(even) {
    background: linear-gradient(270deg, #ddd8cc 0, #fdfbf6 1.15rem);
}
.stc-book .stc-front {
    align-items: stretch;
    gap: 0;
    padding: 0;
    border: 1px solid #4c4d50;
    overflow: hidden;
    background: #282c31;
}
.stc-book .stc-front::before { content: none; }
.stc-book .stc-stage-wide .stc-spread-cover {
    grid-template-columns: minmax(0, 68rem);
}
.stc-book .stc-stage-wide .stc-front { flex-direction: row-reverse; }
.stc-book .stc-cover-art {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 24rem;
    background: repeating-linear-gradient(145deg, #292d33 0 16px, #2e3339 16px 18px);
}
.stc-book .stc-cover-art h2 { max-width: none; font-size: clamp(2.3rem, 5vw, 4.3rem); overflow-wrap: anywhere; }
.stc-cover-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: .25rem;
    flex: 1;
    min-height: 14rem;
    background: #272b30;
}
.stc-cover-photos[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.stc-cover-photos[data-count="3"] img:first-child { grid-row: span 2; }
.stc-book .stc-cover-photos img { display: block; width: 100%; height: 100%; max-height: 22rem; object-fit: cover; }
.stc-book .stc-welcome {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    padding: clamp(1.3rem, 4vw, 3.4rem);
    color: #252522;
    background: #fdfbf6;
}
.stc-book .stc-welcome h3 { margin: 0 0 .6rem; padding: 0; border: 0; }
.stc-book .stc-welcome p { margin: 0 0 1.15rem; max-width: 31ch; }
.stc-book .stc-index-chapter > summary {
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto 1em;
    gap: .5rem;
    align-items: center;
    cursor: pointer;
    padding: .63rem .56rem;
    color: #242528;
    background: #f5f1e7;
    border-bottom: 1px solid #e1dbcf;
    font-size: .88rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.stc-index-chapter summary::-webkit-details-marker { display: none; }
.stc-index-chapter summary::after { content: '+'; text-align: center; font-weight: 700; }
.stc-index-chapter[open] summary::after { content: '\2212'; }
.stc-book .stc-index-chapter[open] > summary,
.stc-book .stc-index-chapter > summary:hover { background: #ffe4ad; }
.stc-index-count {
    border-radius: 1rem;
    min-width: 1.3rem;
    padding: .12rem .22rem;
    text-align: center;
    background: #33363b;
    color: #fff;
    font-size: .7rem;
}
.stc-book .stc-index-products {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 11rem;
    overflow: auto;
}
.stc-book .stc-index-products a {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) 1.25rem;
    align-items: center;
    gap: .43rem;
    padding: .34rem .42rem;
    border-bottom: 1px solid #e1dbcf;
    color: #242528;
    background: #fffefa;
    text-decoration: none;
    font-size: .75rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.stc-book .stc-index-products a:hover { background: #fff0ce; }
.stc-book .stc-index-products .stc-image { width: 2rem; height: 1.65rem; }

.stc-book .stc-index-products a:focus-visible,
.stc-book .stc-index-chapter > summary:focus-visible { outline-offset: -3px; }
.stc-book .stc-stage-wide .stc-cover-art,
.stc-book .stc-stage-wide .stc-welcome {
    flex: 0 0 50%;
    box-sizing: border-box;
}
.stc-book .stc-cover-photos {
    flex: none;
    aspect-ratio: 4 / 3;
    min-height: 0;
}
.stc-book .stc-cover-photos img { min-height: 0; max-height: none; }

.stc-book .stc-toolbar {
    background: var(--stc-stage);
    color: #fff;
}
.stc-book .stc-leaf,
.stc-book .stc-welcome,
.stc-book .stc-spread-double .stc-leaf:not([hidden]) {
    background-color: var(--stc-paper);
}
.stc-book .stc-spread-double .stc-leaf:not([hidden]) {
    background-image: linear-gradient(90deg, #0002, transparent 1rem);
}
.stc-book .stc-spread-double .stc-leaf:not([hidden]):nth-child(even) {
    background-image: linear-gradient(270deg, #0002, transparent 1rem);
}
.stc-book .stc-front { background: var(--stc-stage); }
.stc-book .stc-cover-art { background: var(--stc-stage); }
.stc-book .stc-cover-art > .stc-cover-caption {
    padding: clamp(1.3rem, 4vw, 2.35rem);
    background: var(--stc-accent);
    color: var(--stc-accent-ink);
}
.stc-book .stc-cover-caption h2,
.stc-book .stc-welcome h3 {
    color: inherit;
    font-family: system-ui, sans-serif;
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1;
    text-transform: uppercase;
}
.stc-book .stc-cover-caption .stc-store { color: inherit; font-weight: 800; text-transform: uppercase; }
.stc-book .stc-cover-count { font-size: .8rem; font-weight: 800; text-transform: uppercase; margin: .75rem 0 0; }
.stc-book .stc-cover-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .75rem clamp(1.3rem, 4vw, 2.35rem);
    background: var(--stc-stage);
    color: #fff;
}
.stc-book .stc-cover-footer a { color: inherit; overflow-wrap: anywhere; }
.stc-book .stc-cover-logo { max-height: 2.65rem; width: auto; object-fit: contain; }
.stc-book .stc-cover-photos { gap: .28rem; background: #fff; aspect-ratio: 1.55; }
.stc-book .stc-cover-photos img,
.stc-book .stc-welcome-strip img { min-width: 0; height: 100%; width: 100%; display: block; object-fit: cover; }
.stc-book .stc-cover-photos:not([data-count="1"]) img:nth-child(odd) { clip-path: polygon(0 0, 100% 0, 89% 100%, 0 100%); }
.stc-book .stc-welcome { padding: 0; display: flex; align-items: stretch; justify-content: flex-start; }
.stc-book .stc-welcome-strip:not(:empty) {
    display: flex;
    height: clamp(5.5rem, 13vw, 9rem);
    overflow: hidden;
    border-bottom: .56rem solid var(--stc-accent);
}
.stc-book .stc-welcome-strip img { flex: 1; }
.stc-book .stc-welcome-strip img + img { border-inline-start: .28rem solid #fff; }
.stc-book .stc-welcome-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    padding: clamp(1.2rem, 4vw, 2.15rem);
}
.stc-book .stc-welcome-body p,
.stc-book .stc-welcome-body h3 { margin: 0; max-width: none; overflow-wrap: anywhere; }
.stc-book .stc-welcome-body h3 { font-size: clamp(1.75rem, 4vw, 3rem); }
.stc-book .stc-badge {
    align-self: flex-start;
    display: inline-block;
    background: var(--stc-accent);
    color: var(--stc-accent-ink);
    border-radius: .25rem;
    padding: .24rem .55rem;
    font-size: .73rem;
    font-weight: 800;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.stc-book .stc-shop-link,
.stc-book .stc-open,
.stc-book .stc-view-listing,
.stc-book .stc-listing-actions button,
.stc-book .stc-toolbar .stc-download {
    background: var(--stc-accent);
    color: var(--stc-accent-ink);
    border: 2px solid var(--stc-accent-ink);
    border-radius: .4rem;
    padding: .65rem .8rem;
    font: 800 .92rem/1.35 system-ui, sans-serif;
    text-decoration: none;
}
.stc-book .stc-shop-link:hover,
.stc-book .stc-open:hover,
.stc-book .stc-view-listing:hover,
.stc-book .stc-listing-actions button:hover,
.stc-book .stc-toolbar .stc-download:hover { background: var(--stc-accent); filter: brightness(.94); }
.stc-book .stc-open { margin-top: auto; text-transform: uppercase; }
.stc-book .stc-cover-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: .45rem; }
.stc-book .stc-cover-contacts a {
    display: grid;
    border: 2px solid #333;
    border-radius: .38rem;
    padding: .45rem;
    text-decoration: none;
    color: #222;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.stc-book .stc-index-chapter[open] > summary { background: var(--stc-accent); color: var(--stc-accent-ink); }
.stc-book .stc-listing-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    column-gap: .6rem;
    align-content: start;
}
.stc-book .stc-listing-page[hidden] { display: none; }
.stc-book .stc-listing-page > h3 {
    justify-self: start;
    align-self: start;
    margin: 0 0 .75rem;
    padding: .3rem .52rem;
    border: 0;
    border-radius: .25rem;
    color: #fff;
    background: var(--stc-stage);
    font: 800 .77rem/1.3 system-ui, sans-serif;
    text-transform: uppercase;
}
.stc-book .stc-listing-page > .stc-folio { order: 0; margin: 0; padding: .32rem 0 0; }
.stc-book .stc-listing {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .68rem;
    min-width: 0;
}
.stc-book .stc-listing :is(h4, p) { margin: 0; overflow-wrap: anywhere; }
.stc-book .stc-listing h4 { color: #202020; font: 850 clamp(1.25rem, 2.4vw, 2rem)/1.15 system-ui, sans-serif; }
.stc-book .stc-hero-image {
    aspect-ratio: 1.7;
    overflow: hidden;
    border-radius: .5rem;
    background: #f2f2ef;
    border: 1px solid #deded7;
}
.stc-book .stc-hero-image img,
.stc-book .stc-gallery img { width: 100%; height: 100%; display: block; object-fit: contain; }
.stc-book .stc-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .48rem; }
.stc-book .stc-gallery button {
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid #deded7;
    background: #eee;
    border-radius: .35rem;
    aspect-ratio: 1.55;
}
.stc-book .stc-gallery button[aria-pressed="true"] { border-color: #242424; }
.stc-book .stc-gallery img { object-fit: cover; }
.stc-book .stc-listing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: auto; }
.stc-book .stc-listing-actions button { cursor: pointer; }
.stc-book .stc-share-dialog {
    max-width: min(32rem, calc(100% - 2rem));
    width: 100%;
    padding: 1.25rem;
    color: #222;
    background: #fff;
    border: 1px solid #666;
    border-radius: .55rem;
    box-sizing: border-box;
}
.stc-book .stc-share-dialog::backdrop { background: #0009; }
.stc-book .stc-share-dialog label { display: block; margin-bottom: .75rem; }
.stc-book .stc-share-dialog input { display: block; width: 100%; box-sizing: border-box; }

/* Keep both the spread and the single-page view visibly bound. */
.stc-book[aria-labelledby] .stc-reader-controls[hidden],
.stc-book[aria-labelledby] .stc-listing-template[hidden],
.stc-book.stc-reader .stc-spread > .stc-leaf[hidden] { display: none !important; }

.stc-book.stc-reader .stc-stage {
    padding: clamp(.8rem, 2.6vw, 2.2rem);
    background: radial-gradient(ellipse at 50% 12%, #ffffff25, transparent 72%), var(--stc-stage);
}
.stc-book.stc-reader .stc-spread {
    position: relative;
    perspective: 1600px;
    perspective-origin: center center;
    align-items: stretch;
}
.stc-book.stc-reader .stc-spread > .stc-leaf:not([hidden]) {
    isolation: isolate;
    min-height: clamp(30rem, 66vw, 38rem);
    border: 1px solid #0004;
    border-radius: .42rem .25rem .25rem .42rem;
    box-shadow:
        0 3px 0 -1px #e4e0d5,
        0 6px 0 -3px #aea99b,
        0 9px 0 -5px #e2ded3,
        0 12px 0 -7px #9f9a8d,
        0 18px 29px #0008;
    backface-visibility: hidden;
}
.stc-book.stc-reader .stc-spread > .stc-leaf:not(.stc-front):not([hidden]) {
    background-color: var(--stc-paper);
    background-image: linear-gradient(90deg, #0003, #0000000c .55rem, transparent 1.1rem);
}
.stc-book.stc-reader .stc-spread-double > .stc-leaf:not([hidden]) {
    border-radius: 0 .55rem .55rem 0;
}
.stc-book.stc-reader .stc-spread-double > .stc-leaf:not([hidden]):nth-child(even) {
    border-inline-end: 0;
    border-radius: .55rem 0 0 .55rem;
    background-image: linear-gradient(270deg, #0004, #0000000d .55rem, transparent 1.1rem);
}
.stc-book.stc-reader .stc-front { flex-wrap: nowrap; }
.stc-book.stc-reader .stc-stage-wide .stc-front {
    background-image: linear-gradient(90deg, transparent 48.5%, #0005 50%, transparent 51.5%);
}
.stc-book.stc-reader .stc-stage-wide .stc-cover-art { border-inline-start: 1px solid #0006; }
.stc-book.stc-reader .stc-stage-wide .stc-spread-cover .stc-front::after {
    content: '';
    position: absolute;
    inset: 0 49% 0 49%;
    z-index: 1;
    background: linear-gradient(90deg, transparent, #0005 50%, transparent);
    pointer-events: none;
}

.stc-book.stc-reader .stc-stage { container-type: inline-size; }
.stc-book.stc-reader .stc-spread { perspective: 1800px; }
.stc-book.stc-reader .stc-spread > .stc-leaf:not([hidden]),
.stc-book.stc-reader .stc-spread-end::after {
    box-sizing: border-box;
    height: 38rem;
    height: clamp(32rem, 118cqi, 40rem);
    min-height: 0;
}
.stc-book.stc-reader .stc-stage-wide .stc-spread > .stc-leaf:not([hidden]),
.stc-book.stc-reader .stc-stage-wide .stc-spread-end::after {
    height: clamp(33rem, 71cqi, 43rem);
}
.stc-book.stc-reader .stc-spread > .stc-leaf:not(.stc-front):not([hidden]) {
    max-width: none;
}
.stc-book.stc-reader .stc-spread-end::after {
    content: '';
    grid-column: 2;
    grid-row: 1;
    border: 1px solid #0004;
    border-radius: 0 .55rem .55rem 0;
    background: linear-gradient(90deg, #0003, transparent 1rem), var(--stc-paper);
    box-shadow: 0 3px 0 -1px #e4e0d5, 0 7px 0 -3px #b3ad9f, 0 14px 22px #0008;
}
.stc-book.stc-reader .stc-index-list,
.stc-book.stc-reader .stc-listing,
.stc-book.stc-reader .stc-welcome-body {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.stc-book.stc-reader .stc-welcome-body { flex: 1 1 0; }
.stc-book.stc-reader .stc-welcome-strip { flex-shrink: 0; }
.stc-book.stc-reader .stc-listing-page { grid-template-rows: auto minmax(0, 1fr); }
.stc-book.stc-reader .stc-listing > *,
.stc-book.stc-reader .stc-cover-caption,
.stc-book.stc-reader .stc-cover-footer { flex-shrink: 0; }
.stc-book.stc-reader .stc-cover-art { min-height: 0; overflow: auto; }
.stc-book.stc-reader .stc-cover-photos { min-height: 8rem; flex: 1 1 0; }
.stc-book.stc-reader .stc-front { overflow: auto; }
.stc-book.stc-reader .stc-stage:not(.stc-stage-wide) .stc-spread > .stc-front:not([hidden]) {
    height: auto;
    min-height: 32rem;
}
.stc-book.stc-reader .stc-stage:not(.stc-stage-wide) .stc-cover-art,
.stc-book.stc-reader .stc-stage:not(.stc-stage-wide) .stc-welcome { flex: 0 0 auto; }
.stc-book.stc-reader .stc-stage:not(.stc-stage-wide) .stc-cover-photos { flex: none; }
.stc-book.stc-reader .stc-turn-sheet {
    position: absolute;
    top: 0;
    z-index: 5;
    pointer-events: none;
    transform-style: preserve-3d;
}
.stc-book.stc-reader .stc-turn-face {
    position: absolute;
    inset: 0;
    background: var(--stc-paper);
    border-radius: .32rem;
    box-shadow: 0 2px 15px #0006;
    overflow: hidden;
    backface-visibility: hidden;
}
.stc-book.stc-reader .stc-turn-face > .stc-leaf {
    height: 100%;
    min-height: 0;
    box-shadow: none;
    background: linear-gradient(90deg, #0003, transparent 1rem), var(--stc-paper);
}
.stc-book.stc-reader .stc-turn-back { transform: rotateY(180deg); }
.stc-book.stc-reader .stc-turn-face > .stc-cover-art { height: 100%; }
.stc-book.stc-reader .stc-turn-underlay {
    z-index: 4;
    pointer-events: none;
    right: auto;
    bottom: auto;
}
.stc-book.stc-reader .stc-turn-face > .stc-welcome { height: 100%; }

.stc-book.stc-reader .stc-stage { position: relative; }
.stc-book.stc-reader .stc-edge-control {
    position: absolute;
    z-index: 6;
    top: 50%;
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid var(--stc-accent-ink);
    border-radius: 50%;
    background: var(--stc-accent);
    color: var(--stc-accent-ink);
    box-shadow: 0 2px 9px #0006;
    cursor: pointer;
    font: 750 1.2rem/1 system-ui, sans-serif;
}
.stc-book.stc-reader .stc-edge-control:hover { filter: brightness(.92); }
.stc-book.stc-reader .stc-edge-control[aria-disabled="true"] { visibility: hidden; }
.stc-book.stc-reader .stc-edge-previous { inset-inline-start: .3rem; }
.stc-book.stc-reader .stc-edge-next { inset-inline-end: .3rem; }
.stc-book.stc-reader .stc-dragging,
.stc-book.stc-reader .stc-dragging * { cursor: grabbing; user-select: none; }
.stc-book.stc-reader .stc-dragging .stc-turn-sheet { will-change: transform; }
@media (pointer: coarse), (max-width: 520px) {
    .stc-book.stc-reader .stc-edge-control { display: none; }
}

.stc-book[aria-labelledby] {
    -webkit-user-select: none;
    user-select: none;
}
.stc-book[aria-labelledby] img { -webkit-user-drag: none; }
.stc-book[aria-labelledby] .stc-share-dialog input {
    -webkit-user-select: text;
    user-select: text;
}

.stc-book .stc-listing .stc-specs {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: #252525;
    font-size: .875rem;
    line-height: 1.35;
}
.stc-book .stc-specs th,
.stc-book .stc-specs td {
    padding: .36rem .5rem;
    border: 0;
    text-align: start;
    overflow-wrap: anywhere;
}
.stc-book .stc-specs th { width: 37%; font-weight: 650; background: #f5f5f2; }
.stc-book .stc-specs td { background: #fff; }
.stc-book .stc-specs tr:nth-child(odd) th { background: #e2e2de; }
.stc-book .stc-specs tr:nth-child(odd) td { background: #efefed; }

.stc-book .stc-welcome-body .stc-contact-tile {
    display: flex;
    align-items: center;
    gap: .62rem;
    padding: .55rem .65rem;
    border-radius: .5rem;
    text-decoration: none;
}
.stc-book .stc-contact-icon {
    flex: 0 0 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #242424;
    color: #fff;
}
.stc-book .stc-shop-link .stc-contact-icon { color: #ffe958; }
.stc-book .stc-contact-whatsapp { background: #148044; }
.stc-book .stc-contact-icon svg { width: 1.18rem; height: 1.18rem; }
.stc-book .stc-contact-copy { display: grid; gap: .12rem; min-width: 0; overflow-wrap: anywhere; }
.stc-book .stc-contact-copy > span {
    font-size: .69rem;
    font-weight: 750;
    letter-spacing: .085em;
    text-transform: uppercase;
}
.stc-book .stc-contact-copy > strong { font-weight: 850; line-height: 1.18; }
.stc-book .stc-listing-meta { display: flex; flex-wrap: wrap; gap: .38rem; }
.stc-book .stc-listing-meta .stc-listing-category { color: #fff; background: var(--stc-stage, #252525); }

.stc-book .stc-category-cover {
    justify-content: center;
    gap: .6rem;
}
.stc-book .stc-category-cover .stc-category-banner {
    min-height: 0;
    flex: 1 1 9rem;
    overflow: hidden;
    border-radius: .38rem;
    background: var(--stc-stage);
    border-bottom: .4rem solid var(--stc-accent);
}
.stc-book .stc-category-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stc-book .stc-category-cover h3 {
    margin: 0;
    padding: .7rem .8rem;
    border: 0;
    background: var(--stc-accent);
    color: var(--stc-accent-ink);
    font: 850 clamp(1.35rem, 3.6vw, 2.65rem)/1.06 system-ui, sans-serif;
    overflow-wrap: anywhere;
}
.stc-book .stc-category-cover p { margin: 0; font-size: .8rem; font-weight: 700; }
.stc-book .stc-category-browse,
.stc-book .stc-index-cover-link {
    align-self: flex-start;
    padding: .45rem .65rem;
    border: 1px solid currentColor;
    border-radius: .35rem;
    background: transparent;
    color: var(--stc-ink);
    cursor: pointer;
    font: 750 .78rem/1.3 system-ui, sans-serif;
}
.stc-book .stc-index-cover-link { margin: .35rem .45rem; }
.stc-book .stc-category-browse:hover,
.stc-book .stc-index-cover-link:hover { background: var(--stc-accent); color: var(--stc-accent-ink); }

.stc-book .stc-toolbar {
    background: var(--stc-toolbar, var(--stc-stage));
    color: var(--stc-toolbar-ink, #fff);
}
.stc-book .stc-listing h4 { color: var(--stc-listing-ink, #202020); }
.stc-book .stc-listing-page > .stc-listing-meta {
    align-items: flex-start;
    align-self: start;
    margin-bottom: .72rem;
    min-width: 0;
}
.stc-book .stc-listing-meta .stc-listing-sku {
    background: var(--stc-sku, #087a15);
    color: var(--stc-sku-ink, #fff);
}
.stc-book .stc-listing-meta .stc-listing-category {
    background: var(--stc-category, #dedede);
    color: var(--stc-category-ink, #242424);
}
.stc-book .stc-specs tr:nth-child(odd) td { background: var(--stc-spec-stripe, #efefed); }

.stc-book > .stc-cover[hidden],
.stc-book .stc-category-images[hidden] { display: none !important; }
.stc-book .stc-loading > summary {
    padding: .85rem 1rem;
    background: var(--stc-paper);
    cursor: pointer;
    font-weight: 700;
}
.stc-book .stc-category-banner {
    display: grid;
    gap: .2rem;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: minmax(0, 1fr);
}
.stc-book .stc-category-banner:is([data-count="2"], [data-count="3"], [data-count="4"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stc-book .stc-category-banner[data-count="3"] img:first-child { grid-row: span 2; }
.stc-book .stc-category-banner img { min-height: 0; min-width: 0; }
.stc-book .stc-loading:not([open]) > .stc-pages { display: none; }
