@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');
/* QuotesNova polish layer (Phase 9Z9i). Loaded LAST on every page.
   Warm ivory page, white cards, deep black text, QuotesNova orange accent,
   serif for quotes, sans for interface. Light theme only: dark theme keeps its own colours. */

/* ---------- 1. Tokens ---------- */
:root:not([data-t=dark]){
  --bg:#faf6ee; --paper:#ffffff; --card:#ffffff; --ink:#141414;
  --mut:#6b655a; --muted:#6b655a; --line:#ebe4d6;
  --acc:#f86d2a; --accent:#f86d2a; --accs:#fdeadd;
  --acc-ink:#b8430d; /* orange for small text: passes contrast on white and ivory */
  --shadow:0 10px 30px #3a2a1410;
}
:root[data-t=dark]{--acc-ink:var(--acc)}
html:not([data-t=dark]) body{background:var(--bg)}
html:not([data-t=dark]) .qs-top{background:#faf6eeed}
html:not([data-t=dark]) .qs-logo span{color:var(--acc)}
html:not([data-t=dark]) .qs-nav a.active:after{background:var(--acc)}
html:not([data-t=dark]) #auth .btn{background:var(--accs);color:var(--acc-ink)}
html:not([data-t=dark]) .qs-avatar{background:var(--accs);color:var(--acc-ink)}
html:not([data-t=dark]) a:focus-visible,html:not([data-t=dark]) button:focus-visible{outline:2px solid var(--acc);outline-offset:2px}

/* ---------- 2. Tags and small labels: sentence case, no shouting ---------- */
html body .tag{display:inline-flex;align-items:center;min-height:28px;padding:3px 12px;border-radius:99px;
  font:600 12.5px/1.2 var(--sans);letter-spacing:0;text-transform:none;text-decoration:none;
  background:var(--accs);color:var(--acc-ink)}
html body a.tag:hover{background:var(--acc);color:#fff}
html body .qcategory{font:600 12.5px/1.2 var(--sans);letter-spacing:0;text-transform:none;color:var(--acc-ink)}

/* ---------- 3. One quote card (home, related, For you, search, profile) ---------- */
html body .qc{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:14px;gap:12px;
  display:flex;flex-direction:column;justify-content:flex-start;box-shadow:0 2px 14px #3a2a140a;
  transform:none;overflow:hidden;min-width:0}
html body .qc:hover{transform:none;border-color:#dccfba;box-shadow:0 8px 26px #3a2a1412}
html body .qc>.ph,html body .qc:has(>.ph)>.ph{display:block;width:100%;aspect-ratio:16/10;height:auto;margin:0;border-radius:12px;overflow:hidden;background:#efe7d8}
html body .qc>.ph .art,html body .qc>.ph img,html body .qc>.ph svg{width:100%;height:100%;object-fit:cover;display:block}
html body .qc blockquote,html body .qc:has(>.ph) blockquote{margin:0;padding:2px 2px 0;font:500 clamp(1.05rem,4.4vw,1.25rem)/1.42 var(--serif);
  letter-spacing:-.1px;color:var(--ink);overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:7;overflow:hidden}
html body .qc>a:not(.ph){display:block;color:inherit;text-decoration:none;padding:0 2px}
html body .qc footer{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%;margin-top:auto}
html body .qc .fy-by{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:nowrap;padding:0 2px}
html body .qc .au{font:600 13.5px/1.3 var(--sans);letter-spacing:0;text-transform:none;color:var(--ink);text-decoration:none;
  display:inline-flex;align-items:center;gap:5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .qc .au:hover{color:var(--acc-ink)}
html body .qc .vb,html body .vb{width:16px;height:16px;flex:none;vertical-align:-3px;margin-left:3px}
html body .qc .fy-follow{flex:none;height:30px;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:#fff;color:var(--ink);font:600 12.5px var(--sans)}
html body .qc .fy-follow:hover{border-color:var(--acc);color:var(--acc-ink)}
html body .qc .fy-follow.on{background:var(--accs);border-color:transparent;color:var(--acc-ink)}

/* the older desktop rule turned every image card into a small image-left row: put them back into one stacked card */
html body .qc:has(>.ph){display:flex;flex-direction:column;align-items:stretch;grid-template-columns:none;grid-template-rows:none;padding:14px;gap:12px}
html body .qc:has(>.ph)>.ph{grid-column:auto;grid-row:auto;aspect-ratio:16/10;width:100%;height:auto;border-radius:12px}
html body .qc:has(>.ph)>a:not(.ph){grid-column:auto;grid-row:auto;align-self:stretch}
html body .qc:has(>.ph)>footer,html body .qc>footer{grid-column:auto;grid-row:auto;align-self:stretch;flex-wrap:nowrap;gap:8px}
html body .qc:has(>.ph) .acts .ib{padding:0}
html body .qc:has(>.ph) .au{font-size:13.5px}
html body .qc:has(>.ph) .fy-follow{padding:0 14px;font-size:12.5px}

/* action bar: the same on every card, evenly spaced, nothing floating */
html body .qc .acts{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:2px;width:100%;
  margin:0;padding:6px 0 0;border-top:1px solid var(--line);position:static}
html body .qc .acts .n{flex:none;min-width:22px;margin:0 2px 0 4px;font:600 13px var(--sans);color:var(--mut);font-variant-numeric:tabular-nums}
html body .qc .acts>.ib,html body .qc .acts>.action,html body .qc .acts>.qm{flex:1 1 0;min-width:0;display:flex;justify-content:center;align-items:center}
html body .qc .acts .ib,html body .qc .acts .action{height:44px;min-width:44px;padding:0;border:0;background:none;border-radius:12px;color:var(--mut);
  display:inline-flex;align-items:center;justify-content:center;gap:5px;font:600 13px var(--sans)}
html body .qc .acts .ib:hover,html body .qc .acts .action:hover{background:var(--accs);color:var(--ink)}
html body .qc .acts .ib.on,html body .qc .acts .action.on{color:var(--acc)}
html body .qc .acts .ib.on .i{fill:currentColor}
html body .qc .acts .i{width:21px;height:21px}
html body .qc .acts .qm>.ib{width:100%}
html body .qc .acts .qnai-btn{font-size:12px}
html body .qc .acts .qnai-btn .sym{font-size:15px}

/* menu popup stays inside the card, never clipped sideways */
html body .qc .qm{position:relative}
html body .qm-pop{position:absolute;right:0;bottom:calc(100% + 6px);top:auto;z-index:30;min-width:210px;max-width:calc(100vw - 32px);
  background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 40px #3a2a1426;padding:6px}
html body .qm-pop[hidden]{display:none}
html body .qm-item{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:0 12px;border:0;background:none;border-radius:10px;
  color:var(--ink);font:500 14px var(--sans);text-align:left;text-decoration:none}
html body .qm-item:hover{background:var(--accs)}
html body .qm-item .i{width:18px;height:18px;flex:none}

/* ---------- 4. Explore / client-built cards (.qcard) look the same ---------- */
html body .qcard,html body #ig-grid .qcard,html body #home .qcard{background:var(--paper);border:1px solid var(--line);border-radius:16px;overflow:hidden;
  box-shadow:0 2px 14px #3a2a140a;transform:none;padding:0;gap:0;display:flex;flex-direction:column;min-width:0}
html body .qcard:hover,html body #ig-grid .qcard:hover,html body #home .qcard:hover{transform:none;border-color:#dccfba;box-shadow:0 8px 26px #3a2a1412}
html body .qcard .qimage,html body #ig-grid .qimage,html body #home .qimage{display:block;height:auto;aspect-ratio:16/10;background:#efe7d8;overflow:hidden}
html body .qcard .qimage img,html body .qcard .qimage svg{width:100%;height:100%;object-fit:cover;display:block}
html body .qcard .qtop,html body #ig-grid .qtop,html body #home .qtop{padding:16px 18px 12px;display:flex;flex-direction:column;gap:8px;min-height:0}
html body .qcard .qtop blockquote,html body #ig-grid .qtop blockquote,html body #home .qtop blockquote{margin:0;font:500 clamp(1.1rem,4.6vw,1.4rem)/1.38 var(--serif);
  letter-spacing:-.1px;color:var(--ink);overflow-wrap:anywhere}
html body .qcard .qwho{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:nowrap;margin-top:2px}
html body .qcard .qauthor{font:600 13.5px/1.3 var(--sans);letter-spacing:0;text-transform:none;color:var(--ink);margin:0;min-width:0}
html body .qcard .qauthor .au{font:inherit;letter-spacing:0;text-transform:none;color:inherit;text-decoration:none}
html body .qcard .fy-follow{flex:none;height:30px;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:#fff;color:var(--ink);font:600 12.5px var(--sans)}
html body .qcard .qbottom,html body #ig-grid .qbottom,html body #home .qbottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:2px;
  padding:6px 10px;border-top:1px solid var(--line);min-height:0}
html body .qcard .qbottom .action{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:44px;min-width:44px;padding:0 10px;border:0;background:none;
  border-radius:12px;color:var(--mut);font:600 13px var(--sans);white-space:nowrap}
html body .qcard .qbottom .action:hover{background:var(--accs);color:var(--ink)}
html body .qcard .qbottom .action.on,html body .qcard .qbottom .action.active{color:var(--acc-ink)}
html body .qcard .qbottom .action .sym{font-size:18px;margin:0;vertical-align:0}
html body .qcard .qbottom .action-count{margin-left:auto;font:500 12px var(--sans);color:var(--mut)}
@media(max-width:560px){html body .qcard .qbottom .action .label{display:none}html body .qcard .qbottom .action{flex:1 1 0;padding:0}}

/* card grids: same gap everywhere, one column on phones */
html body #ig-grid.quote-list,html body .quote-list{gap:20px}
html body .qpage-app .grid,html body main section>.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:18px}
@media(max-width:620px){html body #ig-grid.quote-list,html body .quote-list{grid-template-columns:1fr;gap:16px}html body main section>.grid{grid-template-columns:1fr;gap:16px}}

/* ---------- 5. Individual quote page ---------- */
html body .qpage-app{max-width:760px;margin:22px auto 56px;padding:0}
html body .qpage-app .ph.wide{aspect-ratio:16/10;max-height:460px;height:auto;border-radius:18px;overflow:hidden;margin:0;background:#efe7d8}
html body .qpage-app .ph.wide .art,html body .qpage-app .ph.wide img,html body .qpage-app .ph.wide svg{width:100%;height:100%;max-height:none;object-fit:cover;display:block}
html body .qp-meta{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0}
html body .qp-meta:not(:has(*)){display:none}
html body .qpage-app .big{font:500 clamp(1.7rem,6vw,2.7rem)/1.22 var(--serif);font-style:normal;letter-spacing:-.4px;color:var(--ink);
  margin:14px 0 14px;overflow-wrap:anywhere;text-wrap:balance}
html body .qpage-app .by{display:flex;align-items:center;flex-wrap:wrap;gap:0 4px;font:500 15.5px/1.4 var(--sans);color:var(--mut);margin:0 0 14px}
html body .qpage-app .by a{color:var(--ink);font-weight:700;text-decoration:none}
html body .qpage-app .by a:hover{color:var(--acc-ink)}
html body .qpage-app .rate{margin:0 0 16px}
html body .qpage-app .qp-acts{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:2px;padding:6px;
  background:#fff;border:1px solid var(--line);border-radius:16px;margin:0}
html body .qpage-app .qp-acts>.ib,html body .qpage-app .qp-acts>.qm{flex:1 1 0;min-width:0;display:flex;justify-content:center}
html body .qpage-app .qp-acts .ib{width:100%;max-width:64px;height:46px;border:0;border-radius:12px;background:none;color:var(--mut);display:inline-flex;align-items:center;justify-content:center;padding:0}
html body .qpage-app .qp-acts .ib:hover{background:var(--accs);color:var(--ink)}
html body .qpage-app .qp-acts .ib.on{color:var(--acc)}
html body .qpage-app .qp-acts .ib.on .i{fill:currentColor}
html body .qpage-app .qp-acts .i{width:22px;height:22px}
html body .qpage-app .qp-acts .qm{position:relative}
html body .qpage-app .qp-acts .qm-pop{right:0}
html body .qpage-app .qp-stats{margin:10px 2px 0;font:500 13.5px/1.5 var(--sans);color:var(--mut)}
html body .qpage-app .qp-details{display:grid;gap:8px;margin:22px 0 0;padding-top:18px;border-top:1px solid var(--line)}
html body .qpage-app .qp-details:not(:has(*)){display:none}
html body .qpage-app .qp-line{margin:0;font:400 14.5px/1.5 var(--sans);color:var(--mut);display:flex;align-items:center;flex-wrap:wrap;gap:6px}
html body .qpage-app .qp-k{font-weight:700;color:var(--ink)}
html body .qpage-app .qp-line a{color:var(--acc-ink);font-weight:600;text-decoration:underline;text-underline-offset:3px}
html body .qpage-app .qp-ok{color:#2c7a4b;font-weight:600}
html body .qpage-app .qp-ok .i{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4;flex:none}

html body .qpage-app .qshare{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:22px 0 0}
html body .qpage-app .qshare-l{font:700 13.5px var(--sans);letter-spacing:0;text-transform:none;color:var(--ink);margin-right:4px}
html body .qpage-app .qshare-b,html body .qpage-app .qshare-b.wa,html body .qpage-app .qshare-b.fb,html body .qpage-app .qshare-b.x{
  display:inline-flex;align-items:center;justify-content:center;width:auto;height:40px;padding:0 16px;border-radius:99px;border:1px solid var(--line);
  background:#fff;color:var(--ink);font:600 13.5px var(--sans);text-decoration:none;box-shadow:none}
html body .qpage-app .qshare-b:hover{border-color:var(--acc);color:var(--acc-ink);background:#fff}
html body .qpage-app .qp-more{margin-top:18px}
html body .qpage-app .qp-more .btn{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 20px;border-radius:99px;
  border:1px solid var(--ink);background:var(--ink);color:#fff;font:600 14px var(--sans);text-decoration:none}
html body .qpage-app .qp-more .btn:hover{background:var(--acc);border-color:var(--acc);color:#fff}
html body .qpage-app .qp-author{display:flex;align-items:flex-start;gap:14px;margin-top:26px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:16px;text-decoration:none}
html body .qpage-app .qp-author>b{width:44px;height:44px;border-radius:50%;flex:none;display:grid;place-items:center;background:var(--accs);color:var(--acc-ink);font:700 15px var(--serif)}
html body .qpage-app .qp-author strong{font:700 15.5px var(--sans);color:var(--ink);display:inline-flex;align-items:center;gap:4px}
html body .qpage-app .qp-bio{margin:4px 0 6px;font:400 14px/1.5 var(--sans);color:var(--mut)}
html body .qpage-app .qp-link{font:600 14px var(--sans);color:var(--acc-ink);text-decoration:none}

/* related sections: consistent headings and spacing */
html body main>section{margin-top:40px}
html body main>section .sh{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 14px}
html body main>section .sh h2{font:600 clamp(1.25rem,4.6vw,1.6rem)/1.2 var(--serif);margin:0;color:var(--ink)}
html body main>section .sh a{font:600 13.5px var(--sans);color:var(--acc-ink);text-decoration:none}
html body main>section>.grid,html body main>section>.sh{max-width:1100px;margin-left:auto;margin-right:auto}

/* ---------- 6. Phone layout ---------- */
@media(max-width:620px){
  html body .qpage-app{margin:12px auto 40px;padding:0}
  html body .qpage-app .ph.wide{border-radius:14px;max-height:300px}
  html body .qpage-app .qp-acts{padding:4px}
  html body .qpage-app .qshare-l{flex:1 0 100%}
  html body .qpage-app .qshare-b{flex:1 1 calc(50% - 8px)}
  html body .qpage-app .qp-more .btn{width:100%}
}

/* floating controls (AI, Focus, cookie bar) must clear the bottom bar and never sit on top of the action bar */
html body .qnai-fab,html body #qn-ai-fab,html body .qn-fab{bottom:calc(76px + env(safe-area-inset-bottom,0px));right:14px;z-index:40}
@media(max-width:620px){html body main{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}}

/* Explore/home client cards: older #id rules made these tiny and upper-case */
html body #ig-grid .qtop .qcategory,html body #home .qtop .qcategory{font:600 12.5px/1.2 var(--sans);letter-spacing:0;text-transform:none;color:var(--acc-ink)}
html body #ig-grid .qtop .qauthor,html body #home .qtop .qauthor{font:600 13.5px/1.3 var(--sans);letter-spacing:0;text-transform:none;color:var(--ink)}
html body #ig-grid .qtop .qauthor .au,html body #home .qtop .qauthor .au{font:inherit;color:inherit}
html body .qcard .qbottom .action .sym .i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;display:block}
html body .qcard .qbottom .action .sym{display:inline-flex}
/* ad slot lines up with page content */
html body .qn-native-ad,html body .qn-ad-slot{max-width:760px;margin-left:auto;margin-right:auto}



/* ---------- 7. Final detail-page rhythm and mobile safeguards ---------- */
/* Keep the detail page visually related to the quote feed without turning it
   into a crowded dashboard. These rules cover the SSR quote page specifically. */
html body .qpage-app{
  width:min(100% - 40px,760px);
  color:var(--ink);
}
html body .qpage-app .ph.wide{
  display:block;
  width:100%;
  border:1px solid var(--line);
  box-shadow:0 8px 26px #3a2a140d;
}
html body .qpage-app .qp-meta .tag{
  min-height:30px;
  padding:6px 12px;
  font:600 11.5px/1.2 var(--sans);
  letter-spacing:.025em;
}
html body .qpage-app .big{
  max-width:100%;
  font-size:clamp(1.65rem,5.5vw,2.55rem);
  line-height:1.28;
  font-weight:500;
  margin-top:20px;
  margin-bottom:18px;
}
html body .qpage-app .by{
  min-height:30px;
  gap:4px;
  margin:0 0 16px;
}
html body .qpage-app .rate{
  min-height:28px;
  margin:0 0 18px;
}
html body .qpage-app .qp-acts{
  min-height:58px;
  box-shadow:0 2px 12px #3a2a1408;
}
html body .qpage-app .qp-stats{
  margin-top:12px;
  font-size:13px;
}
html body .qpage-app .qp-details{
  margin-top:24px;
  padding-top:18px;
}
html body .qpage-app .qshare{
  padding-top:18px;
  border-top:1px solid var(--line);
}
html body .qpage-app .qp-author{
  margin-top:24px;
}
@media(max-width:620px){
  html body .qpage-app{
    width:calc(100% - 28px);
    margin-top:12px;
    margin-bottom:32px;
  }
  html body .qpage-app .ph.wide{
    aspect-ratio:16/10;
    max-height:260px;
    border-radius:14px;
  }
  html body .qpage-app .qp-meta{gap:6px;margin-top:14px}
  html body .qpage-app .big{
    font-size:clamp(1.55rem,7vw,2rem);
    line-height:1.3;
    margin:16px 0;
    text-wrap:pretty;
  }
  html body .qpage-app .by{font-size:14px}
  html body .qpage-app .qp-acts{
    gap:0;
    padding:3px;
    border-radius:14px;
  }
  html body .qpage-app .qp-acts .ib{height:44px}
  html body .qpage-app .qshare{gap:7px}
  html body .qpage-app .qshare-b{min-height:42px}
}
/* Never let a long author name or quote push card controls outside the card. */
html body .qc,html body .qcard{min-width:0;max-width:100%}
html body .qc blockquote,html body .qcard blockquote{overflow-wrap:anywhere}
html body .qc .acts,html body .qcard .qbottom{min-width:0}
@media(max-width:380px){
  html body .qc .acts .ib,html body .qc .acts .action{min-width:36px;height:42px}
  html body .qcard .qbottom .action{min-width:36px;height:42px}
}


/* ============================================================
   QUOTESNOVA — QUOTE-CARD ACTION BAR
   Home / For-you / related cards (.qc): one tidy row.
     [heart 9] [save] [comment] ............ [more] [share]
   The like count sits right next to the heart, every button is the same
   44px touch slot with the same gap, and the row lines up with the card text.
   Explore cards (.qbottom.acts) keep their own equal-width grid below.
   ============================================================ */
html body .qc .acts {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 2px;
  width: auto;
  box-sizing: border-box;
}
html body .qc footer > .acts { margin: 0 -10px; padding: 6px 0 0; }

html body .qc .acts > .ib,
html body .qc .acts > .action,
html body .qc .acts > .qm {
  flex: 0 0 44px;
  width: 44px;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
html body .qc .acts > .qm > .ib { width: 44px; height: 44px; min-width: 0; padding: 0; display: flex; align-items: center; justify-content: center; }
html body .qc .acts .i { width: 21px; height: 21px; flex: 0 0 21px; }

/* visual order: heart, count, save, comment ... more, share */
html body .qc .acts > [data-action="like"]  { order: 1; }
html body .qc .acts > .n                    { order: 2; }
html body .qc .acts > [data-action="save"]  { order: 3; }
html body .qc .acts > [data-action="comment"] { order: 4; }
html body .qc .acts > .qm                   { order: 5; margin-left: auto; }
html body .qc .acts > [data-action="share"] { order: 6; }

/* count hugs the heart and gets a little air before the next button */
html body .qc .acts > .n {
  flex: 0 0 auto;
  min-width: 14px;
  margin: 0 12px 0 -8px;
  padding: 0;
  text-align: left;
  font: 600 14px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--mut);
}

@media (max-width: 380px) {
  html body .qc .acts > .ib,
  html body .qc .acts > .action,
  html body .qc .acts > .qm,
  html body .qc .acts > .qm > .ib { flex-basis: 40px; width: 40px; height: 42px; }
  html body .qc .acts > .n { margin-right: 8px; }
}

/* Explore cards: equal-width, centered touch slots */
html body .qbottom.acts {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  justify-items: stretch;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}
html body .qbottom.acts > .n {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; width: 100%; min-height: 44px; margin: 0; padding: 0; text-align: center; box-sizing: border-box;
}
html body .qbottom.acts > .action,
html body .qbottom.acts > .action-count {
  display: flex; align-items: center; justify-content: center; justify-self: stretch;
  width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 0; box-sizing: border-box;
}
html body .qbottom.acts > .action { gap: 0; }
html body .qbottom.acts .i { width: 21px; height: 21px; flex: 0 0 21px; }
html body .qbottom.acts > .action-count { white-space: nowrap; font-variant-numeric: tabular-nums; }


/* ============================================================
   QUOTESNOVA PHASE 9Z9n — QUOTE CARD REFRESH (Home + Explore .qcard)
   2:1 image, category pill, quiet icon row, and a real pill Save button
   that sits on the image (top-right). Pin, Listen and Share stay icon-only
   (their text stays available to screen readers). CSS only.
   ============================================================ */
html body .qcard { position: relative; }

/* 2:1 artwork on every card */
html body .qcard .qimage,
html body #home .qimage,
html body #ig-grid .qimage,
html body .qc:has(>.ph)>.ph,
html body .qc>.ph { aspect-ratio: 2 / 1 !important; height: auto !important; }

/* category pill */
html body .qcard .qtop .qcategory {
  align-self: flex-start; display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--accs); color: var(--acc-ink);
  font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
}

/* action row: counts line first, then icons, share on the right */
html body .qcard .qbottom.acts {
  display: flex !important; flex-wrap: wrap; align-items: center; gap: 0;
  grid-template-columns: none; padding: 2px 8px 6px;
}
html body .qcard .qbottom.acts > .action-count {
  order: 0; flex: 0 0 100%; display: block; margin: 0; padding: 8px 10px 0; min-height: 0;
  text-align: left; font: 500 12.5px/1.2 var(--sans); color: var(--mut);
}
html body .qcard .qbottom.acts > .action {
  order: 1; position: relative; flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px;
  padding: 0; margin: 0; justify-content: center;
}
html body .qcard .qbottom.acts > .action .sym { font-size: 20px; margin: 0; }
html body .qcard .qbottom.acts > a.action { display: none; }              /* the quote text already links to the quote */
html body .qcard .qbottom.acts > [data-action="share"] { order: 6; margin-left: auto; }
html body .qcard .qbottom.acts > .action:not([data-action="save"]) .label {
  position: absolute !important; display: inline !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Save: pill on the image */
html body .qcard .qbottom.acts > .action[data-action="save"] {
  position: absolute; top: 10px; right: 10px; z-index: 2; order: 0;
  flex: none; width: auto; min-width: 0; height: 44px; padding: 0 18px; gap: 6px;
  border-radius: 999px; background: var(--acc-ink); color: #fff;
  font: 600 14px/1 var(--sans); box-shadow: 0 2px 10px #0003;
}
html body .qcard .qbottom.acts > .action[data-action="save"] .label { display: inline !important; position: static !important; width: auto; height: auto; clip: auto; }
html body .qcard .qbottom.acts > .action[data-action="save"] .sym { font-size: 16px; }
html body .qcard .qbottom.acts > .action[data-action="save"]:hover { background: #8f3409; color: #fff; }
html body .qcard .qbottom.acts > .action[data-action="save"][aria-pressed="true"],
html body .qcard .qbottom.acts > .action[data-action="save"].on {
  background: #fff; color: var(--acc-ink); box-shadow: 0 0 0 1.5px var(--acc-ink) inset, 0 2px 10px #0003;
}
/* cards with no image: Save joins the row instead of floating */
html body .qcard:not(:has(.qimage)) .qbottom.acts > .action[data-action="save"] {
  position: static; order: 5; margin-left: 6px; box-shadow: none;
}
/* dark themes */
html.night body .qcard .qbottom.acts > .action[data-action="save"],
:root[data-t="dark"] body .qcard .qbottom.acts > .action[data-action="save"] { background: var(--acc); color: #1a0f08; }
html.night body .qcard .qbottom.acts > .action[data-action="save"][aria-pressed="true"],
:root[data-t="dark"] body .qcard .qbottom.acts > .action[data-action="save"][aria-pressed="true"] { background: #22211c; color: var(--acc); box-shadow: 0 0 0 1.5px var(--acc) inset; }

/* ============================================================
   QUOTESNOVA — REFERENCE QUOTE CARD DESIGN
   Applies to the existing Home and Explore quote cards only.
   Keeps existing links, data attributes and action handlers intact.
   ============================================================ */

html body .qcard,
html body #home .qcard {
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:460px;
  height:460px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  border-radius:20px;
  background:#343a34;
  color:#fff;
  box-shadow:0 12px 32px rgba(35,31,25,.13);
  transition:transform .2s ease,box-shadow .2s ease;
}
html body .qcard:hover,
html body #home .qcard:hover {
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(35,31,25,.2);
}
html body .qcard .qimage,
html body #home .qcard .qimage {
  position:absolute;
  inset:0;
  z-index:-2;
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:auto !important;
  overflow:hidden;
  background:#555b50;
}
html body .qcard .qimage img,
html body .qcard .qimage svg,
html body #home .qcard .qimage img,
html body #home .qcard .qimage svg {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.001);
}
html body .qcard:has(.qimage)::before,
html body #home .qcard:has(.qimage)::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(14,19,17,.18) 0%,rgba(14,19,17,.08) 27%,rgba(14,19,17,.60) 58%,rgba(10,14,12,.94) 100%);
}
/* Cards without uploaded artwork receive a deep, editorial gradient. */
html body .qcard:not(:has(.qimage)),
html body #home .qcard:not(:has(.qimage)) {
  background:radial-gradient(ellipse at 85% 12%,rgba(190,151,108,.35),transparent 42%),linear-gradient(145deg,#46554b 0%,#26352f 56%,#18241f 100%);
}
html body .qcard .qtop,
html body #home .qcard .qtop {
  position:relative;
  z-index:1;
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-start;
  gap:13px;
  min-height:0;
  padding:26px 25px 17px;
  color:#fff;
  background:transparent;
}
html body .qcard .qtop .qcategory,
html body #home .qcard .qtop .qcategory {
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border:1px solid rgba(255,255,255,.3);
  border-radius:999px;
  background:rgba(20,25,22,.38);
  color:#fff;
  font:600 10px/1 Inter, sans-serif;
  letter-spacing:.11em;
  text-transform:uppercase;
  backdrop-filter:blur(9px);
}
html body .qcard .qtext-link,
html body #home .qcard .qtext-link {
  display:block;
  width:100%;
  color:#fff;
  text-decoration:none;
}
html body .qcard .qtop blockquote,
html body #home .qcard .qtop blockquote {
  margin:0;
  color:#fff;
  font:500 clamp(23px,2.1vw,29px)/1.25 Fraunces,Georgia,serif;
  letter-spacing:-.025em;
  text-wrap:pretty;
  overflow-wrap:anywhere;
  text-shadow:0 2px 18px rgba(0,0,0,.24);
}
html body .qcard .qwho,
html body #home .qcard .qwho {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px;
  width:100%;
  margin-top:3px;
}
html body .qcard .qauthor,
html body #home .qcard .qauthor {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:rgba(255,255,255,.9);
  font:500 12px/1.4 Inter,sans-serif;
  letter-spacing:0;
  text-transform:none;
}
html body .qcard .qauthor .au,
html body #home .qcard .qauthor .au {color:#fff;text-decoration:none}
html body .qcard .qauthor .vb,
html body #home .qcard .qauthor .vb {width:16px;height:16px;flex:0 0 16px}
html body .qcard .fy-follow,
html body #home .qcard .fy-follow {
  margin-left:auto;
  padding:6px 11px;
  border:1px solid rgba(255,255,255,.48);
  border-radius:999px;
  background:rgba(18,22,20,.25);
  color:#fff;
  font:600 11px Inter,sans-serif;
}
html body .qcard .qbottom,
html body #home .qcard .qbottom {
  position:relative;
  z-index:2;
  display:flex !important;
  flex:0 0 auto;
  align-items:center;
  flex-wrap:nowrap;
  gap:5px;
  min-height:58px;
  width:100%;
  margin:0;
  padding:7px 15px 12px;
  border:0;
  background:transparent;
  color:#fff;
  box-sizing:border-box;
}
html body .qcard .qbottom .action,
html body #home .qcard .qbottom .action {
  display:inline-flex;
  flex:0 0 39px;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:39px;
  min-width:39px;
  height:40px;
  margin:0;
  padding:0;
  border:0;
  border-radius:12px;
  background:rgba(255,255,255,.09);
  color:#fff;
  font:500 11px Inter,sans-serif;
  text-decoration:none;
  cursor:pointer;
  transition:background .15s ease,color .15s ease;
}
html body .qcard .qbottom .action:hover,
html body .qcard .qbottom .action.on,
html body #home .qcard .qbottom .action:hover,
html body #home .qcard .qbottom .action.on {background:rgba(255,255,255,.2);color:#fff}
html body .qcard .qbottom .action .sym,
html body #home .qcard .qbottom .action .sym {margin:0;font-size:19px;line-height:1}
html body .qcard .qbottom .action .i,
html body #home .qcard .qbottom .action .i {width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body .qcard .qbottom .action-count,
html body #home .qcard .qbottom .action-count {
  order:0;
  flex:1 1 auto;
  min-width:0;
  margin:0 5px 0 2px;
  padding:0;
  color:rgba(255,255,255,.8);
  font:500 11px/1.3 Inter,sans-serif;
  white-space:normal;
}
html body .qcard .qbottom .action[data-action="like"],
html body .qcard .qbottom .action[data-action="comment"],
html body .qcard .qbottom .action[data-qpin],
html body .qcard .qbottom .action[data-qspeak],
html body #home .qcard .qbottom .action[data-action="like"],
html body #home .qcard .qbottom .action[data-action="comment"],
html body #home .qcard .qbottom .action[data-qpin],
html body #home .qcard .qbottom .action[data-qspeak] {order:1}
html body .qcard .qbottom .action[data-action="share"],
html body #home .qcard .qbottom .action[data-action="share"] {order:3;margin-left:auto}
html body .qcard .qbottom .action[data-action="save"],
html body #home .qcard .qbottom .action[data-action="save"] {
  position:absolute;
  top:auto;
  right:16px;
  bottom:calc(100% + 345px);
  z-index:4;
  display:inline-flex;
  flex:0 0 auto;
  width:auto;
  min-width:0;
  height:40px;
  padding:0 16px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  background:#b95337;
  color:#fff;
  box-shadow:0 3px 14px rgba(0,0,0,.2);
  font:600 12px Inter,sans-serif;
}
html body .qcard .qbottom .action[data-action="save"] .label,
html body #home .qcard .qbottom .action[data-action="save"] .label {display:inline;position:static;width:auto;height:auto;clip:auto;overflow:visible}
html body .qcard .qbottom .action[data-action="save"] .sym,
html body #home .qcard .qbottom .action[data-action="save"] .sym {font-size:15px}
html body .qcard .qbottom .action:not([data-action="save"]) .label,
html body #home .qcard .qbottom .action:not([data-action="save"]) .label {
  position:absolute !important;
  width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
html body .qcard .qbottom .qm,
html body #home .qcard .qbottom .qm {margin-left:0}
html body .qcard .qbottom .qm button,
html body #home .qcard .qbottom .qm button {color:#fff;background:rgba(255,255,255,.09);border-radius:12px}
html body .qcard:not(:has(.qimage)) .qbottom .action[data-action="save"],
html body #home .qcard:not(:has(.qimage)) .qbottom .action[data-action="save"] {bottom:calc(100% + 345px)}

@media(max-width:700px){
  html body .qcard,html body #home .qcard {height:460px;min-height:460px;border-radius:18px}
  html body .qcard .qtop,html body #home .qcard .qtop {padding:22px 20px 15px;gap:12px}
  html body .qcard .qtop blockquote,html body #home .qcard .qtop blockquote {font-size:clamp(23px,6.2vw,28px);line-height:1.27}
  html body .qcard .qbottom,html body #home .qcard .qbottom {gap:4px;padding:7px 12px 11px}
  html body .qcard .qbottom .action,html body #home .qcard .qbottom .action {flex-basis:36px;width:36px;min-width:36px;height:38px}
  html body .qcard .qbottom .action[data-action="save"],html body #home .qcard .qbottom .action[data-action="save"] {right:13px;bottom:calc(100% + 345px);height:38px;padding:0 14px}
}
@media(max-width:360px){
  html body .qcard .qbottom .action-count,html body #home .qcard .qbottom .action-count {font-size:10px}
  html body .qcard .qbottom .action,html body #home .qcard .qbottom .action {flex-basis:33px;width:33px;min-width:33px}
}

/* Keep the category at the top edge while the quote/author sit low. */
html body .qcard .qtop .qcategory,
html body #home .qcard .qtop .qcategory {position:absolute;top:23px;left:24px;z-index:3}
@media(max-width:700px){html body .qcard .qtop .qcategory,html body #home .qcard .qtop .qcategory{top:19px;left:19px}}

/* ============================================================
   QUOTESNOVA PHASE 279 — HOMEPAGE QUOTE CARDS MATCH "Quote Card Design"
   Homepage cards (.qca-card) are light: 2:1 image banner with category
   badge + Save, then quote, author and actions in a white panel.
   Overrides the dark full-card overlay above for the homepage only;
   Explore cards (.qcard without .qca-card) are unchanged.
   ============================================================ */
html body #home article.qcard.qca-card{
  display:flex;flex-direction:column;height:auto;min-height:0;
  border:1px solid #e6e0d4;border-radius:16px;
  background:#fff;color:#1c1b19;box-shadow:none;isolation:auto;
  transform:none;transition:none;
}
html body #home article.qcard.qca-card:hover{transform:none;box-shadow:none}
html body #home article.qcard.qca-card::before{content:none;display:none}
@media(max-width:700px){
  html body #home article.qcard.qca-card{height:auto;min-height:0;border-radius:16px}
}

/* ============================================================
   QUOTESNOVA PHASE 280 — HOMEPAGE CARDS: EXACT "Quote Card Design" MATCH
   Fixes: like button was pushed to the right by the older .qc .acts order
   rules; type and spacing tightened to the reference (20px quote, 24px
   avatar, 13px author, small action icons, compact badge and Save pill).
   Scoped to #home .qca-card only. Explore cards are untouched.
   ============================================================ */
html body #home article.qcard.qca-card{border-radius:14px;border:1px solid #ebe5da;background:#fff}
html body #home .qca-card .qca-media{aspect-ratio:2/1}
html body #home .qca-card .qca-category{padding:5px 10px;font:600 10.5px/1.2 var(--sans);letter-spacing:.09em;text-transform:uppercase;background:rgba(255,255,255,.92);color:#1c1b19}
html body #home .qca-card .qca-category-over{left:10px;bottom:10px}
html body #home .qca-card .qca-save{top:7px;right:7px;height:40px;padding:0 17px;background:#b8462a;color:#fff;font:700 13px/1 var(--sans)}
html body #home .qca-card .qca-save .label{font-size:13px}
html body #home .qca-card .qca-save[aria-pressed=true],html body #home .qca-card .qca-save.on{background:#fff;color:#1c1b19;font-weight:500;border:0}
html body #home .qca-card .qca-copy{padding:15px 18px 12px;gap:11px}
html body #home .qca-card .qca-copy blockquote{font:400 20px/1.3 var(--serif);letter-spacing:0;color:#1c1b19}
html body #home .qca-card .qca-author{gap:7px;font:600 13px/1.2 var(--sans)}
html body #home .qca-card .qca-avatar{width:24px;height:24px;font:600 9px var(--sans)}
html body #home .qca-card .qca-author .verified,html body #home .qca-card .qca-author .verified-badge,html body #home .qca-card .qca-author svg{width:14px;height:14px}

/* Action row: heart+count, comment+count, pin ... three dots (right) */
html body #home .qca-card .qca-actions{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:6px;width:auto;min-height:0;margin:0 18px;padding:0;border-top:1px solid #ece7dd;color:#5e584f}
html body #home .qca-card .qca-actions>*{order:0 !important;margin:0}
html body #home .qca-card .qca-actions>.qca-action{flex:0 0 auto;width:auto;min-width:0;height:48px;padding:0 6px;gap:5px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:transparent;font:500 12px/1 var(--sans);color:#5e584f}
html body #home .qca-card .qca-actions>.qca-action:first-child{margin-left:-6px}
html body #home .qca-card .qca-actions>.qca-action:last-child{margin-right:-6px;margin-left:auto}
html body #home .qca-card .qca-actions>.qca-spacer{flex:1 1 auto;order:0 !important}
html body #home .qca-card .qca-action svg{width:15px;height:15px;stroke-width:1.7}
html body #home .qca-card .qca-actions>.qca-action:last-child svg{width:16px;height:16px}
html body #home .qca-card .qca-actions>.qca-action[data-qpin]{padding:0 6px}
html body #home .qca-card .qca-count{font:500 12px/1 var(--sans);color:#5e584f}
html body #home .qca-card .qca-action:hover{background:#f6f2ea}


/* ============================================================
   QUOTESNOVA PHASE 281 — REFERENCE CARD FINISH
   Keep homepage quote cards in the reference's single-column,
   image-banner + white-content layout at every viewport width.
   Text-only quotes receive varied soft editorial gradients.
   ============================================================ */
html body #home .quote-list{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
  width:100%;
  max-width:640px;
  margin:22px auto 0;
  align-items:start;
}
html body #home article.qca-card{
  width:100%;
  min-width:0;
  overflow:hidden;
  border:1px solid #e9e3d8;
  border-radius:14px;
  background:#fff;
  color:#1c1b19;
  box-shadow:0 1px 2px rgba(35,29,20,.035);
}
html body #home .qca-card .qca-media{
  display:block;
  position:relative;
  width:100%;
  aspect-ratio:2/1;
  min-height:0;
  overflow:hidden;
  background:#d9cfc0;
}
html body #home .qca-card .qca-image-placeholder{
  background:
    linear-gradient(180deg,rgba(255,255,255,.06),rgba(20,34,28,.08)),
    linear-gradient(165deg,#a9d6e5 0%,#c4e1dc 48%,#547c69 49%,#294b3d 100%);
}
html body #home .qca-card:nth-of-type(3n+2) .qca-image-placeholder{
  background:
    radial-gradient(ellipse at 15% 15%,rgba(255,221,174,.58),transparent 52%),
    linear-gradient(135deg,#f4c49b 0%,#e9a17d 52%,#a95768 100%);
}
html body #home .qca-card:nth-of-type(3n) .qca-image-placeholder{
  background:
    radial-gradient(ellipse at 82% 12%,rgba(246,190,151,.7),transparent 44%),
    linear-gradient(135deg,#293b59 0%,#605174 53%,#d18b70 100%);
}
html body #home .qca-card .qca-copy{
  display:flex;
  flex-direction:column;
  gap:11px;
  padding:15px 18px 12px;
  background:#fff;
}
html body #home .qca-card .qca-copy blockquote{
  margin:0;
  color:#25231f;
  font:400 20px/1.3 Georgia,"Times New Roman",serif;
  letter-spacing:0;
}
html body #home .qca-card .qca-author{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:24px;
  color:#292722;
  font:600 13px/1.2 var(--sans,Arial,sans-serif);
}
html body #home .qca-card .qca-avatar{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  flex:0 0 24px;
  border-radius:50%;
  background:#f0ece3;
  color:#514b41;
  font:600 9px/1 var(--sans,Arial,sans-serif);
}
html body #home .qca-card .qca-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  min-height:0;
  margin:0 18px;
  padding:0;
  border-top:1px solid #ece7dd;
  background:#fff;
}
html body #home .qca-card .qca-actions>.qca-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:auto;
  min-width:0;
  height:46px;
  padding:0 6px;
  gap:5px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#625d55;
  font:500 12px/1 var(--sans,Arial,sans-serif);
}
html body #home .qca-card .qca-actions>.qca-action:first-child{margin-left:-6px}
html body #home .qca-card .qca-actions>.qca-action:last-child{margin-left:auto;margin-right:-6px}
html body #home .qca-card .qca-action svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.7;fill:none}
html body #home .qca-card .qca-count{color:#625d55;font:500 12px/1 var(--sans,Arial,sans-serif)}
html body #home .qca-card .qca-category-over{left:10px;bottom:10px}
html body #home .qca-card .qca-save{
  top:7px;right:7px;height:40px;padding:0 17px;
  border-radius:999px;background:#b8462a;color:#fff;
  font:700 13px/1 var(--sans,Arial,sans-serif);
}
@media(max-width:700px){
  html body #home .quote-list{grid-template-columns:minmax(0,1fr);gap:15px}
  html body #home .qca-card .qca-copy{padding:14px 17px 11px}
  html body #home .qca-card .qca-copy blockquote{font-size:20px}
}

/* Phase 295: a liked heart turns red on EVERY reference card (the homepage lists are .quote-list, not .qca-grid, so the old rule never matched there) */
html body .qca-card .qca-action.on,html body .qca-card .qca-action.active{color:#d65a39}
html body .qca-card .qca-action.on svg,html body .qca-card .qca-action.active svg{fill:currentColor}

/* Phase 308: homepage liked heart. The homepage card rules above start with "#home" and set fill:none / a grey colour,
   which beat the Phase 295 rule. Same colour and fill as Explore, with the same weight, so a liked heart fills on Home too. */
html body #home .qca-card .qca-actions>.qca-action.on,
html body #home .qca-card .qca-actions>.qca-action.active,
html body #home .qca-card .qca-actions>.qca-action[aria-pressed="true"]{color:#d65a39}
html body #home .qca-card .qca-action.on svg,
html body #home .qca-card .qca-action.active svg,
html body #home .qca-card .qca-action[aria-pressed="true"] svg{fill:currentColor;stroke:currentColor}
