/* Quoted (quoted.js): bordered card, bold headline + continuation paragraph, closing marks + avatars on a split
   footer row, rail rows (book icon → straight to the passage, text → preview on the left) — the site's own
   paper/ink/red serif, not the reference's sans-serif. Two tabs: Most popular, Your quotes. */
.quotedp main{max-width:1280px}
.qtd{padding:8px 0 0}  /* main already pads the foot of every page; 80px more here left a blank band at the end */
.qtd-h{margin:0 0 54px;font:400 clamp(40px,4.2vw,60px)/1.05 var(--display);color:var(--ink);text-transform:uppercase}
/* standard-b.css zeroes every page's h1 margin by default (the reader and book pages opt out by name) — this page
   never did, so the 54px above was being silently thrown away; matched up to specificity to actually win here */
html body #app#app main.quotedp.quotedp .qtd-h.qtd-h{margin:0 0 54px!important}
.qtd-tabs{display:flex;gap:48px;margin-bottom:48px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.qtd-tabs button{all:unset;cursor:pointer;font:400 18px "Times New Roman",Times,Tinos,serif;letter-spacing:.08em;color:var(--ink3)}
@media (hover:hover){.qtd-tabs button:hover{color:var(--ink)}}
.qtd-tabs button.on{color:var(--red);position:relative}
.qtd-tabs button.on::after{content:"";position:absolute;left:0;right:0;bottom:-15px;height:2px;background:var(--red)}
/* align-items:stretch, not start, and a tall floor under the row — a sticky item can only stay stuck for as
   long as its own grid cell still has room below it; "start" shrink-wrapped the card's cell to the card's own
   height, so it ran out of room within a couple hundred pixels and released, scrolling off like anything else.
   The floor means that room is always there, whether the quote is three lines or thirty (the user, 2026-11-19). */
.qtd-grid{display:grid;grid-template-columns:1.7fr 360px;gap:58px;align-items:stretch;align-content:start}
/* "Your quotes": the big card sits on the right, the filterable list on the left (the user, 2026-11-19) */
.qtd-grid.qtd-rev{grid-template-columns:360px 1.7fr}
@media (max-width:900px){.qtd-grid,.qtd-grid.qtd-rev{grid-template-columns:1fr}}


/* ---------- the featured card: big, close to square, takes the room ---------- */
/* it stays put the same way the rail does — nothing to scroll to for a short quote, only the rail beside it
   scrolls. No height cap and no scrollbar of its own (the user, 2026-11-19): a long quote just runs past the
   fold and the page scrolls to it normally, same as any other tall thing on a page, down to its own padding. */
/* align-self:start, against the grid's own align-items:stretch — the CELL has to be tall (that's the min-height
   on .qtd-grid, giving sticky room to work in) but the ELEMENT must stay its own natural height, or there's no
   "room" left between the two and it releases almost immediately, which was the actual bug */
.qtd-feat{width:100%;position:sticky;top:76px;align-self:start}
/* a plain 3D scene wrapper only — NO background of its own. A coloured layer here read as a second card sitting
   behind the turning one (the user, 2026-11-19); the book's colour + mark live solely on .qtd-flip-back below */
.qtd-stage{position:relative;perspective:2200px}
/* ---------- the flip: a real two-sided card in a 3D scene, not a cross-fade standing in for one ----------
   .qtd-flip is the thing that actually turns, and the thing that casts the shadow — one object, one shadow,
   not the card and its reverse each carrying their own that would double up at rest. .qtd-flip-front carries
   the quote and sets the scene's height (a flip has nothing of its own to be tall), .qtd-flip-back is glued
   to its reverse, face down, until the turn brings it round. qFlipTo (quoted.js) drives the rotation itself,
   stage by stage, through the Web Animations API — not a single CSS transition, which is why there's no
   `transition` property here at all; this file only sets up the faces, not the motion between them (the user,
   2026-11-19: "the card kind of flipping into place... you are an expert in UI/UX animation, move and add
   nuance to that turn"). */
.qtd-flip{position:relative;width:100%;transform-style:preserve-3d;transform:rotateY(0deg);will-change:transform,box-shadow;
  box-shadow:-22px 26px 46px -18px rgba(30,20,10,.2),-6px 8px 16px -8px rgba(30,20,10,.1)}   /* a white card raised off the page, its shadow cast down to the left (the user, 2026-11-24) */
html.night .qtd-flip{box-shadow:-30px 36px 70px -32px rgba(0,0,0,.2),-6px 10px 24px -14px rgba(0,0,0,.14)}
.qtd-flip-face{backface-visibility:hidden;-webkit-backface-visibility:hidden}
.qtd-flip-front{position:relative}
/* the back face: no more of the separate, unrelated qtd-card-back.jpg — it's now the same stage colour and
   mark, full bleed, continuous with the frame around the front (the user, 2026-11-19) */
.qtd-flip-back{position:absolute;inset:0;transform:rotateY(180deg);border-radius:0;overflow:hidden;
  background:var(--blk) var(--paper-tex);background-blend-mode:multiply}
.qtd-flip-back .qp-prs{position:absolute;inset:0;z-index:0;pointer-events:none;
  filter:drop-shadow(-.7px -.7px .3px rgba(255,248,235,.16)) drop-shadow(1px 1.1px .6px rgba(25,12,0,.3))}
.qtd-flip-back .qp-prs i{position:absolute;inset:0;background:color-mix(in srgb,var(--blk) 90%,var(--tone,#000));
  -webkit-mask:var(--m) 0 0/250px auto repeat;mask:var(--m) 0 0/250px auto repeat}
.qtd-flip-back .qp-prg{position:absolute;inset:0;z-index:0;pointer-events:none;
  background:url(img/paper-matte.svg?v=2) 0 0/220px 220px repeat;mix-blend-mode:multiply;opacity:.9}
/* sized to the quote, not to a fixed minimum — that was the empty space below short ones. No black box around it
   either: real paper, a shade deeper and grainier than the page behind it (the user, 2026-11-19) — its shadow
   now lives on .qtd-flip above, the thing that's actually turning. SHARP corners (the user, 2026-11-19: explicit
   override of the site's usual rounded-corners rule, for this card only) */
.qtd-card{background:#FFFFFF var(--paper-tex);background-blend-mode:multiply;
  border-radius:0;padding:clamp(40px,4.5vw,72px);box-sizing:border-box;display:flex;flex-direction:column}
/* the scene's own entrance, on first load and on every tab switch (fresh grid) — the rail's rows (below) wait
   for this to be settled before they start rising in */
@keyframes qtdFeatIn{from{opacity:0;transform:rotateY(-28deg) translateX(46px)}to{opacity:1;transform:none}}
#qtdFlip{animation:qtdFeatIn .78s cubic-bezier(.22,.9,.24,1) both}
@media (prefers-reduced-motion: reduce){#qtdFlip{animation:none}}
.qtd-top{cursor:pointer}
/* the book's own body text, just set larger — not bold, not justified (the user, 2026-11-19: "exactly like the reader") */
/* smaller (the user, 2026-11-19) — a longer quote was outgrowing the drop cap's own height and the later lines
   fell back to the full width, out of step with the indented ones above them; smaller text, more words a line,
   keeps more quotes inside the cap's own height where that can't happen */
.qtd-text{margin:0 0 22px;font:400 clamp(20px,2vw,27px)/1.4 var(--text);color:var(--ink);text-align:left;-webkit-hyphens:auto;hyphens:auto}
/* the drop cap: the reader's own illuminated-initial face, same one the book pages use */
.qtd-text::first-letter{float:left;font-family:"LDN Garamond Initials","Goudy Initialen",var(--text);
  font-size:3.6em;line-height:.76;margin:.04em .1em 0 -.02em;color:var(--initial);font-weight:400;text-transform:uppercase}
.qtd-more{margin:0 0 22px;font:400 18px/1.55 "EB Garamond",Georgia,serif;color:var(--ink2)}
.qtd-cite{margin:0;font:400 17px "EB Garamond",Georgia,serif;color:var(--ink)}
.qtd-cite b{font-style:italic;font-weight:600}
/* the avatar group sits on the right now, huddled tighter (the user, 2026-11-19) */
.qtd-split{display:flex;align-items:flex-end;justify-content:flex-end;margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}
.qtd-who{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;cursor:pointer;border-radius:8px;padding:4px 6px;margin:-4px -6px}
@media (hover:hover){.qtd-who:hover b{color:var(--red)}}
.qtd-who b{font:600 16px "EB Garamond",Georgia,serif;color:var(--ink)}
.qtd-who small{font:400 13px "EB Garamond",Georgia,serif;color:var(--ink3)}
/* no white ring any more — mock photos now, so a plain hairline is enough to separate one from the next (the user, 2026-11-19) */
.qtd-av{width:30px;height:30px;border-radius:50%;display:inline-block;margin-left:-16px;flex:none;object-fit:cover;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.qtd-av:first-child{margin-left:0}
.qtd-who .qtd-av + b{margin-left:4px}

/* ---------- Filter: one button, the colour/recency/popularity options behind it ("Your quotes" only) ---------- */
.qtd-filters{position:relative;flex:none;margin-bottom:22px}
/* no icon, and the same size as this page's own chip buttons — not a one-off (the user, 2026-11-19) */
.qtd-fbtn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:7px;cursor:pointer;
  padding:6px 12px 5px;border-radius:999px;background:rgba(28,27,25,.05);font:400 13px "EB Garamond",Georgia,serif;color:var(--ink2)}
@media (hover:hover){.qtd-fbtn:hover{background:rgba(28,27,25,.09)}}
.qtd-fbtn.on{background:color-mix(in srgb,var(--red) 10%,transparent);color:var(--red)}
.qtd-fdot{width:8px;height:8px;border-radius:50%;background:var(--red);flex:none}
/* the same glass panel as every other menu on the site (savemenu.css's .svm) — not a flat bordered box of its
   own (the user, 2026-11-19: "make it consistent with all the other open tabs") */
.qtd-fpop{position:absolute;left:0;top:calc(100% + 8px);z-index:20;min-width:260px;padding:16px;isolation:isolate;
  display:flex;flex-direction:column;gap:14px;
  background:color-mix(in srgb, var(--paper) 97%, transparent);
  -webkit-backdrop-filter:blur(26px);backdrop-filter:blur(26px);border-radius:0;
  box-shadow:inset 0 0 0 .5px rgba(255,255,255,.45),inset 0 1px 0 rgba(255,255,255,.55),0 20px 44px -18px rgba(20,12,4,.45)}
.qtd-fgroup{display:flex;flex-wrap:wrap;gap:8px}
.qtd-chip{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:7px;padding:6px 12px 5px;border-radius:999px;
  background:rgba(28,27,25,.05);font:400 13px "EB Garamond",Georgia,serif;color:var(--ink2)}
@media (hover:hover){.qtd-chip:hover{background:rgba(28,27,25,.09)}}
.qtd-chip.on{background:color-mix(in srgb,var(--red) 12%,transparent);color:var(--red)}
.qtd-dot{width:11px;height:11px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}
.qtd-dot-all{background:repeating-conic-gradient(var(--ink3) 0% 25%,transparent 0% 50%)}
.qtd-sort{padding-top:2px}
.qtd-sort .qtd-chip{text-transform:uppercase;letter-spacing:.06em;font:400 11px "Times New Roman",Times,Tinos,serif;background:none;padding:4px 0;border-radius:0;color:var(--ink3)}
.qtd-sort .qtd-chip.on{background:none;color:var(--red)}
.qtd-sort .qtd-chip + .qtd-chip{margin-left:16px}

/* ---------- the rail ---------- */
/* the list scrolls with the page, not inside a box of its own: the inner-scroll box stopped short of the window's
   foot with no visible edge, so rows looked cut off behind an invisible bar (the user, 2026-11-19). The card
   beside it stays pinned, so the effect is the same — card stays, list moves. */
.qtd-rail{align-self:start;display:flex;flex-direction:column}
/* scrolls, but no visible bar sitting over the rows — the same as every other scrolling list on the site
   (the user, 2026-11-19: "this bar comes in the way") */
.qtd-list{display:flex;flex-direction:column;margin-top:4px}
.qtd-r{border-bottom:1px solid var(--line);padding:24px 2px}
/* once the card's own entrance is in place, the rail rises up after it, row by row from the top down the list —
   each row's own --i (set in quoted.js) staggers its start; the 420ms base is where #qtdFlip's animation above
   has settled (the user, 2026-11-19: "once it's in place the side bar appears from the bottom up") */
@keyframes qtdRailIn{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
.qtd-rail .qtd-r{animation:qtdRailIn .52s cubic-bezier(.22,.9,.24,1) both;animation-delay:calc(420ms + var(--i,0) * 70ms)}
@media (prefers-reduced-motion: reduce){.qtd-rail .qtd-r{animation:none}}
.qtd-r:last-child{border-bottom:0}
.qtd-r-row{display:flex;gap:24px;align-items:stretch}
.qtd-r-col{display:flex;flex-direction:column;flex:1;min-width:0}
/* the book icon is its own control: click it to jump straight to the passage. The full cover now, not just its
   symbol on a grey tile — and fanned like more than one page behind it when more than one person has actually
   commented on it; the real cover either way, even when it's only the one. Bigger, and stretched the full height
   of the row — top of the title to the bottom of the comments — not a small tile squeezed beside the first couple
   of lines (the user, 2026-11-19) */
.qtd-r-cv{all:unset;box-sizing:border-box;position:relative;cursor:pointer;width:84px;height:auto;flex:none;align-self:stretch;
  box-shadow:0 2px 6px -2px rgba(0,0,0,.28);transition:transform .2s}
.qtd-r-cv img{width:100%;height:100%;object-fit:cover;border-radius:2px;display:block}
.qtd-r-cv.stacked::before,.qtd-r-cv.stacked::after{content:"";position:absolute;inset:0;border-radius:2px;background:#fff;z-index:-1}
.qtd-r-cv.stacked::before{box-shadow:0 1px 4px -1px rgba(0,0,0,.22);transform:translate(2px,-2px)}
.qtd-r-cv.stacked::after{box-shadow:0 1px 4px -1px rgba(0,0,0,.16);transform:translate(4px,-4px)}
@media (hover:hover){.qtd-r-cv:hover{transform:translateY(-1px)}}
/* the text beside it is a separate control: click it to preview the full quote on the left */
.qtd-r-main{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:8px;min-width:0}
.qtd-r-k{font:400 11px "Times New Roman",Times,Tinos,serif;letter-spacing:.1em;text-transform:uppercase;color:var(--ink3)}
.qtd-r-t{font:600 17px/1.32 "EB Garamond",Georgia,serif;color:var(--ink)}
.qtd-r.on .qtd-r-t{color:var(--red)}
/* in the same flex column as the title now, so it lines up with the quote on its own — no more padding-left
   guessing at where the cover's edge happened to be (the user, 2026-11-19) */
.qtd-r-foot{display:flex;align-items:center;justify-content:space-between;margin-top:16px}
.qtd-r-who{display:flex;align-items:center;gap:8px}
.qtd-r-who .qtd-av{width:19px;height:19px;margin-left:-10px}
.qtd-r-who small{font:400 12px "EB Garamond",Georgia,serif;color:var(--ink3)}
.qtd-r-acts{display:flex;align-items:center;gap:8px}
.qtd-dot-sm{width:9px;height:9px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.qtd-ic{all:unset;box-sizing:border-box;cursor:pointer;display:grid;place-items:center;width:28px;height:28px;border-radius:7px;color:var(--ink3)}
.qtd-ic .ic{width:15px;height:15px}
.qtd-ic.on{color:var(--red)}
@media (hover:hover){.qtd-ic:hover{background:rgba(28,27,25,.06);color:var(--ink)}}

html.night .qtd-card{background-color:var(--card)}
html.night .qtd-av{box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}

/* one column (phone/tablet): nothing sticks and nothing scrolls inside itself — the card, then the list, then the
   end of the page. The sticky/150vh setup is for the two-column layout only; left on here it pinned the list over
   the card and ended the page early, leaving an empty band above the tab bar (the user, 2026-11-19) */
@media (max-width:900px){
  .qtd-grid,.qtd-grid.qtd-rev{grid-template-columns:1fr;gap:40px}
  .qtd-feat{position:static}
}