.anbs-reader {
    --anbs-rule: #e4e4e4;
    display: block;
    width: 100%;
    box-sizing: border-box;
    color: #161616;
    background: #fff;
    border: 1px solid var(--anbs-rule);
    border-radius: 16px;
    font-family: inherit;
    line-height: 1.35;
}
.anbs-reader *, .anbs-reader *::before, .anbs-reader *::after { box-sizing: border-box; }
.anbs-reader [hidden] { display: none !important; }

.anbs-reader .anbs-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px clamp(16px, 3vw, 28px);
    cursor: pointer;
    list-style: none;
    background: #fff;
    border-radius: inherit;
    color: #161616;
    text-align: left;
}
.anbs-summary::-webkit-details-marker { display: none; }
.anbs-summary::marker { content: ""; }
.anbs-summary strong { display: block; font-size: clamp(17px, 3vw, 22px); }
.anbs-summary .anbs-title { display: block; font-size: 13px; margin-top: 3px; overflow-wrap: anywhere; }
.anbs-disclosure {
    display: grid;
    flex: 0 0 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #161616;
    border-radius: 50%;
}
.anbs-disclosure::after {
    content: "";
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border: solid #161616;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 200ms ease, margin-top 200ms ease;
}
.anbs-reader[open] .anbs-disclosure::after { transform: rotate(225deg); margin-top: 4px; }

.anbs-body {
    border-top: 1px solid var(--anbs-rule);
    padding: clamp(12px, 3vw, 28px);
}
.anbs-scroll { overflow: hidden; padding: 10px; }
.anbs-scroll.anbs-zoomed { overflow: auto; max-height: 68vh; }
.anbs-stage {
    position: relative;
    width: min(100%, 790px);
    aspect-ratio: calc(var(--anbs-ratio, .69) * 2);
    margin: 0 auto;
    perspective: 1800px;
    isolation: isolate;
    touch-action: pan-y pinch-zoom;
}
.anbs-stage.anbs-single { width: min(100%, 400px); aspect-ratio: var(--anbs-ratio, .69); }
.anbs-zoomed .anbs-stage { width: 150%; max-width: none; margin: 0; touch-action: auto; }
.anbs-static { display: flex; position: absolute; inset: 0; }
.anbs-page { position: relative; width: 50%; min-width: 0; background: transparent; }
.anbs-single .anbs-page { width: 100%; }
.anbs-page.anbs-printed {
    background: #fff;
    box-shadow: 0 1px 5px rgb(0 0 0 / 13%);
}
.anbs-page.anbs-printed::after, .anbs-face.anbs-printed::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to right, rgb(0 0 0 / 10%), transparent 8%);
}
.anbs-static .anbs-page:first-child:not(:only-child)::after {
    background: linear-gradient(to left, rgb(0 0 0 / 10%), transparent 8%);
}
.anbs-reader :is(.anbs-page, .anbs-face) img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    user-select: none;
}
.anbs-leaf {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    transform-style: preserve-3d;
}
.anbs-forward { left: 50%; transform-origin: left center; }
.anbs-backward { left: 0; transform-origin: right center; }
.anbs-single .anbs-leaf { left: 0; width: 100%; }
.anbs-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
}
.anbs-face.anbs-printed { background: #fff; }
.anbs-face-back { transform: rotateY(180deg); }
.anbs-backward .anbs-face-front::after, .anbs-forward .anbs-face-back::after {
    background: linear-gradient(to left, rgb(0 0 0 / 13%), transparent 12%);
}
.anbs-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px auto 8px;
}
.anbs-reader .anbs-toolbar button {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #d7d7d7;
    border-radius: 999px;
    background: #fff;
    color: #161616;
    font-weight: 500;
    font-family: inherit;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    text-transform: none;
}
.anbs-reader .anbs-toolbar button:disabled { cursor: default; opacity: .4; }
.anbs-reader .anbs-toolbar button:not(:disabled):hover,
.anbs-reader .anbs-toolbar button[aria-pressed="true"] { background: #161616; color: #fff; border-color: #161616; }
.anbs-reader .anbs-toolbar .anbs-zoom { font-size: 13px; }
.anbs-position { min-width: 96px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.anbs-reader :is(summary, button, input, .anbs-stage):focus-visible { outline: 2px solid #161616; outline-offset: 2px; }

.anbs-reader .anbs-progress {
    appearance: none;
    width: min(100%, 430px);
    height: 26px;
    display: block;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}
.anbs-progress::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(to right, #000 var(--anbs-fill, 0%), #e3e3e3 var(--anbs-fill, 0%));
}
.anbs-progress::-moz-range-track {
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(to right, #000 var(--anbs-fill, 0%), #e3e3e3 var(--anbs-fill, 0%));
}
.anbs-progress::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    margin-top: -5px;
    border: 0;
    border-radius: 50%;
    background: #000;
}
.anbs-progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: #000;
}
.anbs-fallback a { display: inline-block; padding: 8px; }
@media (prefers-reduced-motion: reduce) {
    .anbs-disclosure::after { transition: none; }
}

@font-face {
    font-family: AnbsPoppins;
    src: url("poppins.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
.anbs-thumbs { display:flex; gap:5px; }
.anbs-thumbs:empty { display:none; }
.anbs-thumbs img { display:block; height:clamp(42px,7vw,70px); width:auto; max-width:62px; object-fit:contain; }
.anbs-disclosure { margin-left:auto; }
.anbs-stage.stf__parent { aspect-ratio:auto; perspective:none; width:100%; max-width:800px !important; min-width:0 !important; }
.anbs-zoomed .anbs-stage.stf__parent { width:155%; max-width:none !important; }
.anbs-paper { background:#fff; overflow:hidden; border:1px solid #eee; }
.anbs-paper > img { display:block; width:100%; height:100%; object-fit:contain; pointer-events:none; }
.anbs-end { height:100%; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; padding:12%; color:#151515; font:400 clamp(13px,1.7vw,18px)/1.6 AnbsPoppins,Poppins,sans-serif; }
.anbs-end p { margin:0 0 .55em; font:inherit; }
.anbs-end a { margin-top:.5em; color:inherit; text-decoration:underline; font:inherit; }
