/* Carte vive — paper-like reading cards in the existing Agorà shell. */
.quotes-back{padding:0 22px}.quotes-back button{min-height:36px;border:0;background:none;color:#38a5ff;padding:0;font:600 .85rem Inter,system-ui,sans-serif;cursor:pointer}
#quotes .page-head{background:transparent;border:0;padding:6px 22px 12px}#quotes .page-head h1{font:900 clamp(2.8rem,13vw,3.8rem)/.95 'Barlow Condensed',sans-serif;margin:7px 0 9px}#quotes .page-head p{font-size:.9rem;line-height:1.4}#quotes .page-head small{font-size:.64rem;letter-spacing:.12em}
.quotes-filters{display:flex;align-items:center;gap:10px;padding:0 22px 16px}.quotes-filters button,.quotes-filters select{min-height:44px;border:1px solid #2a5579;border-radius:24px;background:#081b2b;color:#b6d0e7;padding:10px 20px;font:600 .85rem Inter,system-ui,sans-serif;cursor:pointer}.quotes-filters button[aria-pressed=true]{color:#fff;background:#0879ff;border-color:#0879ff}.quotes-filters label{min-width:0}.quotes-filters select{max-width:240px;width:100%;padding-right:26px}
.quote-deck{position:relative;margin:0 26px 0 24px;isolation:isolate}.quote-next-paper{position:absolute;z-index:-1;inset:8px -16px 8px 18px;border-radius:17px;background:#bacddd;transform:translateX(8px);opacity:.65}.quote-card{position:relative;height:clamp(315px,calc(100svh - 568px),440px);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;scrollbar-width:thin;scrollbar-color:#9ab3c8 #ecf2f7;background:#f0f5f9;color:#06121c;border:1px solid #fff;border-radius:17px;padding:18px 26px 18px;box-shadow:0 16px 30px #0003;display:flex;flex-direction:column;transition:none;cursor:grab}.quote-card.is-dragging{transition:none;cursor:grabbing;user-select:none}.quote-mark{display:block;flex:none;color:#0879ff;font:900 5rem/.8 Georgia,serif;height:38px;overflow:hidden}.quote-card blockquote{margin:10px 0 0;font:600 clamp(1.25rem,5.8vw,1.65rem)/1.35 Inter,system-ui,sans-serif;letter-spacing:-.025em;flex:none;overflow-wrap:anywhere}.quote-card footer{margin-top:auto;padding-top:20px;flex:none}.quote-card-signature{display:flex;justify-content:space-between;align-items:end;gap:12px}.quote-card h2{font:900 1.45rem/1.05 'Barlow Condensed',sans-serif;text-transform:uppercase;margin:0;overflow-wrap:anywhere}.quote-card-signature p{color:#4f6c88;font:600 .75rem/1.4 Inter,system-ui,sans-serif;letter-spacing:.13em;margin:6px 0 0}.quote-card-signature>span{font:800 .63rem/1.3 'Barlow Condensed',sans-serif;letter-spacing:.1em;color:#1971c7;white-space:nowrap}.quote-brand{border-top:1px solid #ccdae5;padding-top:9px;margin:10px 0 0;color:#49647b;font:800 .56rem/1.5 Inter,system-ui,sans-serif;letter-spacing:.04em}.quote-brand span{display:block;font-weight:500;letter-spacing:0}
.quote-navigation{display:flex;align-items:center;justify-content:space-between;gap:4px;margin:7px 22px 0}.quote-navigation button{min-height:44px;padding:6px;border:0;background:transparent;color:#a8c6e1;font:600 .7rem Inter,system-ui,sans-serif;cursor:pointer}.quote-navigation>span{font:400 .66rem Inter,system-ui,sans-serif;color:#759ab9}.quote-navigation button:disabled{opacity:.4;cursor:default}
.quote-actions{display:grid;grid-template-columns:1.2fr 1fr;gap:12px;padding:0 22px;margin-top:4px}.quote-actions button{min-height:48px;display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 12px;border-radius:28px;border:1px solid #2877b0;color:#fff;background:#061726;font:700 .82rem Inter,system-ui,sans-serif;cursor:pointer}.quote-actions #quoteRandom{background:#0879ff;border-color:#47b2ff}.quote-actions img{width:20px;height:20px;filter:invert(1);flex:none}.quote-actions button:disabled{opacity:.5;cursor:default}.quote-notice{color:#b7cfe2;font:.8rem/1.5 Inter,system-ui,sans-serif;margin:12px 22px}.quote-notice:empty{display:none}.quote-sync{font:.62rem/1.5 Inter,system-ui,sans-serif;color:#829fb9;margin:10px 22px 20px;text-align:center}
#quotes button:focus-visible,#quotes select:focus-visible,.quote-card:focus-visible,.quote-share-dialog button:focus-visible,.quote-share-dialog textarea:focus-visible{outline:2px solid #6fc9ff;outline-offset:3px}
.quote-share-dialog{width:calc(min(500px,100%) - 28px);max-height:85dvh;overflow:auto;margin:auto;padding:22px;border:1px solid #3278a6;border-radius:22px;color:#edf6ff;background:#061726;box-shadow:0 20px 80px #0009}.quote-share-dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}.quote-share-dialog header{display:flex;justify-content:space-between;align-items:center;gap:10px}.quote-share-dialog h2{font:800 1.7rem 'Barlow Condensed',sans-serif;margin:0}.quote-share-dialog p{color:#a9c6dc;font:.82rem/1.5 Inter,system-ui,sans-serif}.quote-share-dialog button{min-height:44px;padding:10px 14px;border:1px solid #2b6994;border-radius:12px;background:#0c3655;color:#fff;font:600 .8rem Inter,system-ui,sans-serif;cursor:pointer}.quote-share-dialog textarea{width:100%;resize:vertical;min-height:210px;max-height:40dvh;padding:14px;border:1px solid #224c6a;border-radius:12px;background:#020d18;color:#e3f0fa;font:400 .9rem/1.6 Inter,system-ui,sans-serif}.quote-share-dialog>div{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.quote-share-dialog #quoteNativeShare{background:#0879ff}.quote-share-dialog #quoteShareStatus:empty{display:none}
@media(prefers-reduced-motion:reduce){.quote-card{transition:none}}
@media(max-width:360px){.quote-card{padding-inline:20px}.quote-card h2{font-size:1.2rem}.quotes-filters select{max-width:190px}.quote-actions{gap:8px}.quote-actions button{gap:7px;font-size:.76rem}.quote-navigation>span{font-size:.57rem}}

.quotes-top-back{display:none;border:0;background:transparent;color:#38a5ff;min-height:44px;min-width:44px;padding:0;font:600 .85rem Inter,system-ui,sans-serif;cursor:pointer}.quotes-open .quotes-top-back{display:block}.quotes-open #searchButton{display:none}

/* The carousel itself owns touch scrolling; each sheet remains vertically readable. */
.quote-carousel{display:flex;gap:14px;position:relative;width:calc(100% + 22px);padding-right:22px;box-sizing:border-box;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;scroll-behavior:auto}.quote-carousel::-webkit-scrollbar{display:none}.quote-carousel>.quote-card{flex:0 0 100%;min-width:0;overscroll-behavior-x:auto;overscroll-behavior-y:contain;scroll-snap-align:start;scroll-snap-stop:always;box-shadow:none}.quote-carousel.is-mouse-dragging{scroll-snap-type:none}.quote-carousel.is-mouse-dragging .quote-card{cursor:grabbing;user-select:none}.quote-neighbor{opacity:.9}.quote-deck{overflow:visible}

.quote-carousel:focus-visible{outline:2px solid #6fc9ff;outline-offset:4px;border-radius:18px}
