/* What the Book Store styles do not cover: CSP-safe values, sign-in dialog, shelf, orders and book contents. */

/* store.css reads these from inline style attributes, which the strict CSP forbids. */
.st-n0 { --n: 0; }
.st-n1 { --n: 1; }
.st-n2 { --n: 2; }
.st-n3 { --n: 3; }
.st-n4 { --n: 4; }
.st-cover-photo { aspect-ratio: 612.28 / 858.9; object-fit: cover; padding: 0; }
/* Save button sits low on a designed cover, because the top corner would hide the O/L in its title. */
.st-card:has(.st-cover-photo) { container-type: inline-size; }
.st-card:has(.st-cover-photo) > .st-heart { top: calc(140.28cqw - 52px); }
/* A book with no page count yet leaves an odd number of details. */
.st-spec div:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* WCAG AA on the greyed-out filter options. */
.st-check.none { color: #6f6f6f; }
.st-check.none small { color: #6f6f6f; }
.st-filter-foot .st-link { flex: none; }

/* Cart */
.lib-cart-results { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 2px; }
.lib-cart-results li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--library-line); font-size: 14px; }
.lib-cart-results li:last-child { border-bottom: 0; }
.lib-cart-results .lib-error { font-size: 12.5px; }
.st-cart-toggle { display: inline-flex; align-items: center; gap: 8px; }
.st-cart-toggle[aria-pressed="true"] { background: var(--library-soft); color: var(--library-accent); box-shadow: inset 0 0 0 1.5px var(--library-accent); }
.st-cart-summary { display: grid; gap: 10px; margin-top: 28px; padding: 24px; border-radius: 20px; background: var(--library-soft); }
.st-cart-summary p { margin: 0; }
#st-cart-summary-title { font-size: 18px; font-weight: 650; }
.st-cart-note { font-size: 13px; color: var(--library-muted); }
.st-cart-summary .button { justify-self: start; }
/* A fifth bottom tab, for Cart alongside Home, Browse, Saved and Library. */
@media (max-width: 720px) { .st-tabs { grid-template-columns: repeat(5, 1fr); } }

/* Sign-in and checkout dialog, in the Book Store's monochrome. */
.lib-dialog { color: #0a0a0a; }
.lib-dialog h2 { color: #0a0a0a; }
.lib-dialog p, .lib-dialog label, .lib-small-note, .lib-auth-switch { font-size: 14px; color: #5c5c5c; }
.lib-dialog .lib-eyebrow { font-size: 12px !important; color: #5c5c5c; }
.lib-dialog input { font-size: 16px; min-height: 46px; border-color: #d4d4d4; color: #0a0a0a; }
.lib-dialog input:focus { outline: 2px solid #0a0a0a; }
.lib-btn, .lib-dialog .lib-btn { min-height: 46px; background: #0a0a0a; font-size: 14px; }
.lib-btn:hover { background: #2a2a2a; }
.lib-text-btn { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; color: #0a0a0a; }
.lib-error:empty, .st-err:empty { display: none; }
.lib-error { color: #b42318; }

/* Shelf */
.store-shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.store-shelf-link { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 20px; background: #f5f5f4; transition: background .2s; }
.store-shelf-link:hover { background: #ececea; }
.store-shelf-link .st-cover { flex: 0 0 76px; width: 76px; }
.store-shelf-link > div:last-child { flex: 1; min-width: 0; }
.store-shelf-link h3 { margin-bottom: 4px; }
.store-shelf progress { display: block; width: 100%; height: 6px; margin-top: 10px; accent-color: #0a0a0a; }

/* Orders. style.css's pricing table is dark and applies to every table. */
.store-table-wrap { overflow-x: auto; }
.store-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.store-table th, .store-table td { padding: 12px 10px; border-top: 0; border-bottom: 1px solid #e6e6e6; text-align: left; white-space: nowrap; }
.store-table td { color: #0a0a0a; }
.store-table th, .store-table th:first-child { position: static; width: auto; font-weight: 600; color: #5c5c5c; background: transparent; }

/* Book contents and sample */
.store-contents ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.store-contents li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #e6e6e6; break-inside: avoid; font-size: 15px; }
.store-preview-pages { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.store-preview-pages img { width: min(100%, 420px); height: auto; border-radius: 12px; box-shadow: 0 0 0 1px #e6e6e6; user-select: none; }
.st-perks li { padding: 6px 0; }
.st-spec { margin-top: 24px; }
@media (max-width: 720px) { .store-contents ol { columns: 1; } }
@media print { .store-preview-pages { display: none !important; } }


/* Library design system. Kept inside this app; no marketing assets are modified. */
:root { --library-accent:#6935bd; --library-soft:#f1ebfa; --library-ink:#211a2b; --library-muted:#665e70; --library-line:#e8e3ed; }
body:not(.is-reader) { background:#fcfbfd; color:var(--library-ink); }
.st { --st-line:var(--library-line); --lilac:#ede5fa; --lime:#edf2df; --coral:#fae8e1; --butter:#faf0d7; --sky:#e3eff8; --leaf:#e3f1e9; }
.st [hidden] { display:none !important; }
.st .wrap { max-width:1200px; }
.st h2 { font-size:clamp(26px,3vw,36px); line-height:1.2; }
.st h3 { line-height:1.45; }
.st a:focus-visible,.st button:focus-visible,.st-tabs a:focus-visible,.st-filters :focus-visible { outline:3px solid var(--library-accent); outline-offset:4px; }
/* No marketing-style navbar above this one anymore: it sits flush at the top of the page everywhere. */
.st { padding-top: 0; }
.st-bar { top: 0; background:#fcfbfdf5; border-color:var(--library-line); }
.st-bar-in { gap:16px; min-height:76px; }
.st-brand { font-size:18px; }
/* The way back to the main SISU Academy site: smaller and quieter than the "E Library" brand next to it. */
.st-main-site { flex:none; padding-right:16px; margin-right:-2px; border-right:1px solid var(--library-line); font-size:13px; font-weight:600; color:var(--library-muted); text-decoration:none; }
.st-main-site:hover { color:var(--library-accent); }
.st-signin { flex: none; min-height: 44px; padding-inline: 18px; font-size: 14px; }
@media (max-width: 720px) { .st-signin { order: 2; min-height: 40px; padding-inline: 14px; font-size: 13px; } .st-main-site { order: 3; flex: 1 0 100%; padding-right:0; margin-right:0; border-right:0; font-size:12px; } }
.st-links a[aria-current] { background:var(--library-soft); color:#552a96; }
.st-search input { background:#f0edf4; border-radius:12px; min-height:46px; }
.st-search input:focus { border-color:var(--library-accent); box-shadow:0 0 0 3px #6935bd15; }
.st-hero { background:linear-gradient(115deg,#f3edf9,#fcfbfd 70%); padding-block:64px; border-bottom:1px solid var(--library-line); }
.st-hero-in { gap:32px; }
.st-hero h1 { font-size:clamp(48px,6.3vw,88px); font-weight:650; line-height:1.04; }
.st-hero h1 em { color:var(--library-accent); font-style:normal; }
.st-hero-copy > p { max-width:440px; color:var(--library-muted); line-height:1.75; }
.st-hero-copy > .st-eyebrow { font-size:11px; font-weight:800; letter-spacing:.15em; color:var(--library-accent); margin:0 0 20px; }
.st-hero-copy > .st-hero-note { font-size:12px; margin:20px 0 0; }
.st .button.dark,.lib-dialog .lib-btn { background:var(--library-accent); color:#fff; }
.st .button.dark:hover,.lib-dialog .lib-btn:hover { background:#542697; }
.st .button { border-radius:12px; min-height:48px; }
.st-ghost { box-shadow:inset 0 0 0 1px #d5cadf; background:#ffffffaa; }
.st-ghost:hover { background:var(--library-soft); color:var(--library-accent); }
.st-fan { height:380px; }
.st-fan a { width:clamp(120px,13vw,188px); }
.st-benefits { display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px 24px; padding-block:22px; border-bottom:1px solid var(--library-line); color:var(--library-muted); font-size:13px; }
.st-benefits span { display:flex; align-items:center; gap:10px; }
.st-benefits .st-ic { color:var(--library-accent); }
.st-sec { padding-top:clamp(44px,6vw,76px); }
.st-tiles { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.st-tile { border:1px solid #24143308; border-radius:18px; min-height:140px; padding:24px; overflow:hidden; }
.st-tile strong { font-size:21px; line-height:1.3; max-width:calc(100% - 54px); word-break:break-word; position:relative; z-index:1; }
.st-tile .st-tile-count { font-size:13.5px; font-weight:500; position:relative; z-index:1; }
.st-tile-action { position:absolute; top:0; right:0; width:64px; height:64px; pointer-events:none; z-index:2; }
.st-tile-cutout { position:absolute; top:-1px; right:-1px; width:65px; height:65px; pointer-events:none; display:block; }
.st-tile-cutout path { fill:#fcfbfd; }
.st-tile-ball { position:absolute !important; top:6px; right:6px; width:40px; height:40px; border-radius:50%; background:#14172a; color:#fff; display:flex !important; align-items:center; justify-content:center; box-shadow:0 4px 14px rgba(15,20,36,.22); pointer-events:auto; z-index:2; transition:transform .28s var(--ease),box-shadow .28s var(--ease),background .28s var(--ease); }
.st-tile-ball .st-ic { width:18px; height:18px; stroke:#fff; stroke-width:2.3; stroke-linecap:round; stroke-linejoin:round; transition:transform .28s var(--ease); }
/* store.css (the reference site's own file) makes this one tile's circle white; keep it the same navy as every other tile instead. */
.st-tile.c-ink .st-tile-ball { background:#14172a; color:#fff; }
.st-tile.c-ink .st-tile-ball .st-ic { stroke:#fff; }
.st-tile:hover { transform:translateY(-3px); border-radius:18px; }
.st-tile:hover .st-tile-ball { transform:scale(1.08) translate(1px,-1px); box-shadow:0 6px 20px rgba(15,20,36,.32); background:#0d1020; }
.st-tile:hover .st-tile-ball .st-ic { transform:translate(1px,-1px); }
.st-card { min-width:0; padding:14px; background:#fff; border:1px solid var(--library-line); border-radius:18px; box-shadow:0 4px 14px #24143304; }
.st-card:has(.st-cover-photo) { container-type:normal; }
.st-card:has(.st-cover-photo) > .st-heart,.st-card > .st-heart { top:auto; bottom:15px; right:66px; width:40px; height:44px; background:#f5f2f8; border-radius:12px; }
.st-card-foot { padding-right:98px; min-height:50px; margin-top:16px; border-top:1px solid var(--library-line); padding-top:12px; }
.st-card-foot .st-add { position:absolute; right:14px; bottom:15px; border-radius:12px; background:var(--library-accent); }
.st-add:hover { transform:none; background:#542697; }
.st-card-link:hover .st-cover { transform:translateY(-3px); }
.st-card h3 { font-size:15px; margin-top:18px; }
.st-card .st-meta { font-size:12px; line-height:1.6; margin-top:6px; }
.st-price { font-size:13px; line-height:1.5; }
.st-price small { display: block; }
.st-card:not(:has(.st-add)) .st-card-foot { padding-right:48px; }
.st-card:not(:has(.st-add)) > .st-heart { right:14px; }
.st-tag { max-width:calc(100% - 20px); }
.st-card-link > .st-tag { transform:none; border-radius:8px; box-shadow:0 2px 12px #211a2b18; }
.st-rail { grid-auto-columns:clamp(220px,24vw,280px); padding-bottom:16px; }
.st-rail-nav button { box-shadow:inset 0 0 0 1px var(--library-line); background:#fff; }
button:disabled { cursor:wait; opacity:.6; }
.st-rail-nav button:disabled { cursor:default; opacity:.35; background:transparent; color:inherit; }
.st-levels { grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); border:1px solid var(--library-line); border-radius:16px; overflow:hidden; background:#fff; }
.st-levels a+a { border-left:1px solid var(--library-line); }
.st-levels span { font-size:24px; }
.st-picker { background:#f1ecf7; border:1px solid #e6dcef; border-radius:24px; }
.st-picker img { animation:none; }
.st-chip input:checked+span { background:var(--library-accent); }
.st-shop { gap:32px; padding-top:32px; }
.st-filters { border:1px solid var(--library-line); border-radius:16px; background:#fff; padding:8px 20px; align-self:start; }
.st-filters fieldset:first-child { border-top:0; }
.st-check { min-height:42px; font-size:14px; }
.st-check input { accent-color:var(--library-accent); }
.st-results-head h1 { font-size:clamp(30px,4vw,44px); }
.st-toolbar { padding-bottom:18px; border-bottom:1px solid var(--library-line); }
.st-pill { background:var(--library-soft); color:#552a96; }
.st-results[aria-busy=true] #st-list { opacity:.45; transition:opacity .15s; pointer-events:none; }
.st-empty { border:1px dashed #d9cde5; border-radius:20px; background:#f7f4fa; }
.st-pdp-art { background:#f1edf6; border-radius:24px; }
.st-spec { border-radius:16px; overflow:hidden; }
.store-table-wrap { border:1px solid var(--library-line); border-radius:16px; background:#fff; }
.store-table th { background:#f6f3f9 !important; }
.store-table td,.store-table th { padding:16px; }
.store-shelf-link { background:#fff; border:1px solid var(--library-line); }
.store-shelf progress { accent-color:var(--library-accent); }
.st-foot { border-color:var(--library-line); padding-block:36px; margin-top:64px; }
.lib-dialog { width:min(480px,calc(100% - 32px)); max-height:calc(100dvh - 32px); padding:36px; border:1px solid var(--library-line); border-radius:24px; box-shadow:0 24px 90px #211a2b30; }
.lib-dialog::backdrop { background:#18102099; backdrop-filter:blur(5px); }
.lib-dialog h2 { font-size:30px; line-height:1.2; padding-right:18px; letter-spacing:-.04em; }
.lib-dialog .lib-eyebrow { color:var(--library-accent); letter-spacing:.1em; }
.lib-dialog input { border-radius:10px; background:#fcfbfd; }
.lib-dialog input:focus { outline:2px solid var(--library-accent); outline-offset:2px; }
.lib-dialog .lib-btn { border-radius:12px; }
.lib-dialog .lib-error { color:#a32121; padding:12px; border-radius:10px; background:#fff0ee; }
.lib-close { min-width:44px; min-height:44px; }
body:has(dialog:modal) { overflow:hidden; }
.st-tabs a[aria-current] { background:var(--library-soft); color:#552a96; }
.st-toast { border-radius:14px; box-shadow:0 8px 30px #211a2b22; text-align:center; }
@media(min-width:901px) { .st-results .st-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:900px) {
 .st-filters { padding:0; border-radius:22px 22px 0 0; }
 .st-filters[open] { height:min(720px,86dvh); max-height:86dvh; }
 #st-filter-form { min-height:0; overscroll-behavior:contain; }
 .st-filter-head,.st-filter-foot { flex-shrink:0; }
 .st-hero { padding-block:40px; }
 .st-fan { height:340px; }
 .st-fan a { width:clamp(115px,24vw,180px); }
}
@media(max-width:720px) {
 .st .wrap { width:calc(100% - 40px); }
 .st-bar-in { padding-block:12px; }
 .st-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .st-tile { padding:18px; min-height:140px; border-radius:16px; }
 .st-tile strong { font-size:17px; max-width:calc(100% - 50px); }
 .st-benefits { justify-content:flex-start; gap:12px; font-size:12px; }
 .st-hero-copy > p { font-size:16px; }
 .st-fan { height:285px; }
 .st-fan a { width:clamp(110px,24vw,155px); }
 .st-grid,.st-results .st-grid { gap:12px; }
 .st-card { padding:10px; border-radius:14px; }
 .st-card h3 { font-size:13px; }
 .st-card-foot { padding-right:0; padding-bottom:50px; }
 .st-card:not(:has(.st-add)) .st-card-foot { padding-right:0; }
 .st-card:has(.st-cover-photo) > .st-heart,.st-card > .st-heart { left:10px; right:auto; bottom:10px; }
 .st-card-foot .st-add { right:10px; bottom:10px; }
 .st-card:not(:has(.st-add)) .st-card-foot { padding-bottom:50px; }
 .st-rail { grid-auto-columns:210px; }
 .st-head { align-items:center; flex-wrap:wrap; gap:8px; }
 .lib-dialog { padding:28px 22px; }
 .st-picker { padding:24px; }
 .st-foot { margin-top:44px; }
}
@media(prefers-reduced-motion:reduce) { .lib-dialog,.st-toast { animation:none; transition:none; } }

/* Book page: cover viewer (radio buttons, no script). One rule per position, up to MAX_VIEWS in www/book.py. */
.st-face { display:none; }
#st-view-1:checked ~ .st-faces .st-face:nth-child(1),
#st-view-2:checked ~ .st-faces .st-face:nth-child(2),
#st-view-3:checked ~ .st-faces .st-face:nth-child(3),
#st-view-4:checked ~ .st-faces .st-face:nth-child(4),
#st-view-5:checked ~ .st-faces .st-face:nth-child(5),
#st-view-6:checked ~ .st-faces .st-face:nth-child(6),
#st-view-7:checked ~ .st-faces .st-face:nth-child(7),
#st-view-8:checked ~ .st-faces .st-face:nth-child(8),
#st-view-9:checked ~ .st-faces .st-face:nth-child(9),
#st-view-10:checked ~ .st-faces .st-face:nth-child(10),
#st-view-11:checked ~ .st-faces .st-face:nth-child(11),
#st-view-12:checked ~ .st-faces .st-face:nth-child(12) { display:block; animation:stViewIn .3s var(--ease); }
@keyframes stViewIn { from { opacity:0; transform:translateY(6px); } }
.st-views { display:flex; gap:10px; margin:24px -4px 0; padding:4px 4px 8px; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:thin; }
.st-views label { flex:0 0 76px; display:grid; gap:6px; justify-items:center; padding:6px; border-radius:12px; cursor:pointer; scroll-snap-align:start; color:var(--library-muted); transition:background .2s,color .2s,box-shadow .2s; }
.st-views label:hover { background:rgba(255,255,255,.7); color:var(--library-ink); }
.st-views img,.st-view-blank { display:block; width:52px; aspect-ratio:612/859; object-fit:cover; border-radius:6px; box-shadow:0 6px 14px -8px rgba(20,23,42,.55); }
.st-view-blank { background:var(--library-soft); }
.st-views span:last-child { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; max-width:72px; font-size:11.5px; font-weight:600; line-height:1.25; text-align:center; }
#st-view-1:checked ~ .st-views label:nth-child(1),
#st-view-2:checked ~ .st-views label:nth-child(2),
#st-view-3:checked ~ .st-views label:nth-child(3),
#st-view-4:checked ~ .st-views label:nth-child(4),
#st-view-5:checked ~ .st-views label:nth-child(5),
#st-view-6:checked ~ .st-views label:nth-child(6),
#st-view-7:checked ~ .st-views label:nth-child(7),
#st-view-8:checked ~ .st-views label:nth-child(8),
#st-view-9:checked ~ .st-views label:nth-child(9),
#st-view-10:checked ~ .st-views label:nth-child(10),
#st-view-11:checked ~ .st-views label:nth-child(11),
#st-view-12:checked ~ .st-views label:nth-child(12) { background:#fff; color:var(--library-accent); box-shadow:inset 0 0 0 2px var(--library-accent); }
#st-view-1:focus-visible ~ .st-views label:nth-child(1),
#st-view-2:focus-visible ~ .st-views label:nth-child(2),
#st-view-3:focus-visible ~ .st-views label:nth-child(3),
#st-view-4:focus-visible ~ .st-views label:nth-child(4),
#st-view-5:focus-visible ~ .st-views label:nth-child(5),
#st-view-6:focus-visible ~ .st-views label:nth-child(6),
#st-view-7:focus-visible ~ .st-views label:nth-child(7),
#st-view-8:focus-visible ~ .st-views label:nth-child(8),
#st-view-9:focus-visible ~ .st-views label:nth-child(9),
#st-view-10:focus-visible ~ .st-views label:nth-child(10),
#st-view-11:focus-visible ~ .st-views label:nth-child(11),
#st-view-12:focus-visible ~ .st-views label:nth-child(12) { outline:3px solid var(--library-accent); outline-offset:2px; }
@media (prefers-reduced-motion:reduce) { .st-face { animation:none !important; } }

/* WhatsApp enquiries and bank-slip review states */
.st-ask { margin:14px 0 0; font-size:14px; color:#5c5c5c; }
.st-ask a { color:#14172a; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.st-order-note { display:block; margin-top:6px; max-width:28ch; font-size:12.5px; line-height:1.4; color:#5c5c5c; }
.st-order-actions { display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; }

/* Bank transfer: pay, then upload the receipt */
.lib-dialog ol.lib-steps { margin:16px 0 0; padding-left:20px; display:grid; grid-template-columns:minmax(0,1fr); gap:8px; list-style:decimal; font-size:13px; line-height:1.55; color:#3c244b; }
.lib-dialog ol.lib-steps li { display:list-item; }
.lib-receipt { display:grid; gap:3px; margin-top:14px; padding:13px 15px; border-radius:10px; font-size:12px; line-height:1.55; }
.lib-receipt strong { font-size:13px; }
.lib-receipt.is-review { background:#eef4ff; color:#1f3a6b; }
.lib-receipt.is-rejected { background:#fdecec; color:#8a1f1f; }
.lib-receipt-form { display:grid; gap:14px; }
.lib-receipt-form small { font-weight:400; color:#9c88a9; }
.lib-dialog input[type=file] { padding:10px 12px; cursor:pointer; }

/* Home: the two O/L books, each fanned out as the six subject covers of its medium */
.st-editions { display:grid; gap:clamp(24px,4vw,44px); }
.st-ed { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); align-items:center; gap:clamp(24px,5vw,72px); padding:clamp(22px,4vw,56px); border-radius:32px; background:linear-gradient(135deg,#f4eefd 0%,#faf8fe 55%,#fff 100%); box-shadow:inset 0 0 0 1px var(--library-line); overflow:hidden; }
.st-ed + .st-ed { background:linear-gradient(135deg,#ebf2fb 0%,#f7fafe 55%,#fff 100%); }
.st-ed-art { position:relative; display:block; height:clamp(260px,30vw,400px); border-radius:24px; }
.st-ed-glow { position:absolute; inset:14% 16%; border-radius:50%; background:radial-gradient(closest-side,rgba(105,53,189,.30),transparent); filter:blur(26px); }
.st-ed + .st-ed .st-ed-glow { background:radial-gradient(closest-side,rgba(28,92,170,.28),transparent); }
.st-ed-fan { position:absolute; inset:0; }
.st-ed-fan img { position:absolute; top:50%; left:50%; width:clamp(104px,11vw,164px); --k:0; --lift:0%; transform:translate(-50%,-50%) translateX(calc(var(--k) * var(--spread,40%))) rotate(calc(var(--k) * 6deg)) translateY(var(--lift)); box-shadow:0 20px 32px -18px rgba(20,23,42,.55); transition:transform .45s var(--ease); animation:stEdIn .8s var(--ease) backwards; animation-delay:calc((var(--k) + 3) * 70ms); }
.st-ed-fan img:nth-child(1) { --k:-2.5; --lift:11%; z-index:1; }
.st-ed-fan img:nth-child(2) { --k:-1.5; --lift:4%; z-index:2; }
.st-ed-fan img:nth-child(3) { --k:-.5; z-index:4; }
.st-ed-fan img:nth-child(4) { --k:.5; z-index:3; }
.st-ed-fan img:nth-child(5) { --k:1.5; --lift:4%; z-index:2; }
.st-ed-fan img:nth-child(6) { --k:2.5; --lift:11%; z-index:1; }
.st-ed-art:hover .st-ed-fan img,.st-ed-art:focus-visible .st-ed-fan img { --spread:48%; }
@keyframes stEdIn { from { opacity:0; transform:translate(-50%,-38%) rotate(0deg); } }
.st-ed-copy .st-eyebrow { margin:0; font-size:13px; font-weight:600; line-height:1.4; letter-spacing:.02em; color:var(--library-accent); }
.st-ed-copy h2 { margin:6px 0 0; font-size:clamp(30px,3.6vw,48px); line-height:1.05; letter-spacing:-.02em; color:var(--library-ink); }
.st-ed-medium { display:inline-flex; margin:18px 0 0; padding:12px 26px; border-radius:16px; background:var(--library-accent); color:#fff; font-size:clamp(18px,1.8vw,24px); font-weight:700; letter-spacing:-.01em; box-shadow:0 14px 26px -16px rgba(105,53,189,.85); }
.st-ed-desc { margin:16px 0 0; max-width:46ch; font-size:15px; line-height:1.6; color:var(--library-muted); }
.st-ed-subjects { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 18px; margin:16px 0 0; padding:0; list-style:none; font-size:14px; line-height:1.4; color:var(--library-ink); }
.st-ed-subjects li { display:flex; gap:8px; align-items:flex-start; }
.st-ed-subjects svg { width:18px; height:18px; flex-shrink:0; color:var(--library-accent); }
.st-ed-buy { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px 20px; margin-top:24px; padding-top:20px; border-top:1px solid var(--library-line); }
.st-ed-price { display:grid; gap:2px; margin:0; font-size:28px; font-weight:700; letter-spacing:-.01em; color:var(--library-ink); }
.st-ed-price small { font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--library-muted); }
.st-ed-cta { min-height:48px; }
@media (max-width:900px) {
 .st-ed { grid-template-columns:1fr; }
 .st-ed-art { height:clamp(220px,58vw,320px); }
 .st-ed-fan img { width:clamp(86px,21vw,140px); }
}
@media (max-width:520px) {
 .st-ed-subjects { grid-template-columns:1fr; }
 .st-ed-fan img { --spread:36%; }
 .st-ed-buy .st-ed-cta { flex:1 1 100%; justify-content:center; }
}
@media (prefers-reduced-motion:reduce) { .st-ed-fan img { animation:none; transition:none; } }

/* Choosing how to pay */
.lib-methods { display:grid; gap:12px; margin-top:18px; }
.lib-method { display:grid; gap:4px; width:100%; padding:16px 18px; border:1.5px solid var(--library-line); border-radius:14px; background:#fff; text-align:left; font:inherit; color:var(--library-ink); cursor:pointer; transition:border-color .2s, box-shadow .2s, transform .2s; }
.lib-method strong { font-size:15px; }
.lib-method span { font-size:12.5px; line-height:1.5; color:var(--library-muted); }
.lib-method:hover,.lib-method:focus-visible { border-color:var(--library-accent); box-shadow:0 10px 22px -16px rgba(105,53,189,.9); transform:translateY(-1px); }
.lib-method:disabled { opacity:.6; cursor:progress; }
.lib-method-line { margin:10px 0 0; font-size:13px; color:var(--library-muted); }
.lib-method-line .lib-text-btn { margin-left:4px; }
@media (prefers-reduced-motion:reduce) { .lib-method { transition:none; } }

/* Set-password page (/update-password) */
.st-auth { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.8fr); align-items:center; gap:clamp(24px,5vw,72px); padding-block:clamp(32px,6vw,80px); }
.st-auth-card { max-width:500px; padding:clamp(24px,4vw,44px); border-radius:28px; background:#fff; box-shadow:0 30px 60px -40px rgba(33,26,43,.45), inset 0 0 0 1px var(--library-line); }
.st-auth-card h1 { margin:10px 0 0; font-size:clamp(28px,3.4vw,40px); line-height:1.1; letter-spacing:-.02em; color:var(--library-ink); }
.st-auth-lead { margin:12px 0 0; font-size:15px; line-height:1.6; color:var(--library-muted); overflow-wrap:anywhere; }
.st-auth-form { display:grid; gap:8px; margin-top:24px; }
.st-auth-form label { margin-top:8px; font-size:12px; font-weight:600; color:#765b87; }
.st-pw { position:relative; display:block; }
.st-pw input { width:100%; padding:13px 76px 13px 15px; border:1px solid #e5dceb; border-radius:10px; background:#fdfcff; color:#3c244b; font:inherit; font-size:14px; }
.st-pw input:focus { outline:2px solid #a77bd4; outline-offset:2px; }
.st-pw-toggle { position:absolute; top:50%; right:8px; transform:translateY(-50%); min-width:56px; min-height:36px; padding:0 10px; border:0; border-radius:8px; background:var(--library-soft); color:var(--library-accent); font:inherit; font-size:12px; font-weight:650; cursor:pointer; }
.st-pw-meter { display:grid; gap:6px; margin-top:4px; }
.st-pw-bar { display:block; height:6px; border-radius:99px; background:var(--library-line); overflow:hidden; }
.st-pw-bar i { display:block; height:100%; width:8%; border-radius:inherit; background:#c2410c; transition:width .25s, background .25s; }
.st-pw-meter[data-score="1"] .st-pw-bar i { width:28%; background:#d97706; }
.st-pw-meter[data-score="2"] .st-pw-bar i { width:52%; background:#ca8a04; }
.st-pw-meter[data-score="3"] .st-pw-bar i { width:78%; background:#15803d; }
.st-pw-meter[data-score="4"] .st-pw-bar i { width:100%; background:#166534; }
.st-pw-meter p { margin:0; font-size:12.5px; line-height:1.45; color:var(--library-muted); }
.st-pw-meter[data-ok="1"] p { color:#166534; }
.st-auth-help { margin:6px 0 0; font-size:12.5px; line-height:1.5; color:var(--library-muted); }
.st-auth .lib-btn { background:var(--library-accent); color:#fff; }
.st-auth .lib-btn:hover { background:#542697; }
.st-auth-form .lib-btn { margin-top:12px; width:100%; }
.st-auth-card > .lib-btn { margin-top:24px; width:100%; }
.st-auth-alt { margin:16px 0 0; font-size:13px; color:var(--library-muted); text-align:center; }
.st-auth-done { margin-top:28px; text-align:center; }
.st-auth-done h2 { margin:12px 0 0; font-size:22px; color:var(--library-ink); }
.st-auth-done p { margin:6px 0 0; color:var(--library-muted); }
.st-auth-tick { display:inline-grid; place-items:center; width:56px; height:56px; border-radius:50%; background:var(--library-soft); color:var(--library-accent); }
.st-auth-tick svg { width:28px; height:28px; }
.st-auth-art { display:grid; place-items:center; }
.st-auth-art img { width:min(100%,380px); height:auto; filter:drop-shadow(0 30px 40px rgba(105,53,189,.18)); }
@media (max-width:860px) { .st-auth { grid-template-columns:1fr; } .st-auth-art { display:none; } .st-auth-card { max-width:none; } }
@media (prefers-reduced-motion:reduce) { .st-pw-bar i { transition:none; } }
