/* QUOTESNOVA PHASE 283 — QUOTE CARDS MATCH THE "Quote Card Design" REFERENCE ON EVERY PAGE
   Same card as the homepage (.qca-card): 2:1 artwork banner with category pill
   bottom-left and terracotta Save pill top-right, white panel with serif quote,
   initials avatar + author + verified tick, divider, heart / comment / pin ... dots.
   Scoped to .qca-grid (the list container on Explore, author, category, country, search,
   All quotes, archive, feed and quote-page rows). The homepage keeps its own #home rules. */
html body .qca-grid,html body .qca-grid.grid,html body .qca-grid.quote-list,html body main section>.qca-grid.grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;width:100%;max-width:640px;margin:22px auto 0;align-items:start}
html body .qca-grid article.qcard.qca-card{position:relative;display:flex;flex-direction:column;width:100%;min-width:0;padding:0;gap:0;overflow:hidden;background:#fff;color:#1c1b19;border:1px solid #e9e3d8;border-radius:14px;box-shadow:0 1px 2px rgba(35,29,20,.035);transform:none;transition:none}
html body .qca-grid article.qcard.qca-card:hover{transform:none;border-color:#e9e3d8;box-shadow:0 1px 2px rgba(35,29,20,.035)}
html body .qca-grid .qca-card::before{content:none;display:none}
html body .qca-grid .qca-media{position:relative;display:block;width:100%;aspect-ratio:2/1;min-height:0;overflow:hidden;background:linear-gradient(135deg,#f2c9a0 0%,#e58f6b 55%,#8e4a5e 100%)}
html body .qca-grid .qca-artwork{position:absolute;inset:0;display:block;overflow:hidden}
html body .qca-grid .qca-artwork img,html body .qca-grid .qca-artwork svg{display:block;width:100%;height:100%;object-fit:cover}
html body .qca-grid .qca-category{display:inline-flex;align-items:center;max-width:calc(100% - 24px);padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.92);color:#1c1b19;font:600 10.5px/1.2 var(--sans,Arial,sans-serif);letter-spacing:.09em;text-transform:uppercase}
html body .qca-grid .qca-category-over{position:absolute;left:10px;bottom:10px;z-index:2}
html body .qca-grid .qca-save{position:absolute;z-index:3;top:7px;right:7px;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 17px;border:0;border-radius:999px;background:#b8462a;color:#fff;font:700 13px/1 var(--sans,Arial,sans-serif);cursor:pointer;box-shadow:none}
html body .qca-grid .qca-save .sym{display:none}
html body .qca-grid .qca-save .label{font-size:13px;line-height:1}
html body .qca-grid .qca-save[aria-pressed=true],html body .qca-grid .qca-save.on{background:#fff;color:#1c1b19;font-weight:500}
html body .qca-grid .qca-save[aria-pressed=true]::before,html body .qca-grid .qca-save.on::before{content:"";flex:none;width:5px;height:10px;margin-top:-3px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
html body .qca-grid .qca-copy{display:flex;flex-direction:column;gap:11px;padding:15px 18px 12px;background:#fff}
html body .qca-grid .qca-quote-link{color:#1c1b19;text-decoration:none}
html body .qca-grid .qca-copy blockquote{margin:0;color:#25231f;font:400 20px/1.3 Georgia,"Times New Roman",serif;letter-spacing:0;overflow-wrap:anywhere}
html body .qca-grid .qca-author{display:inline-flex;align-items:center;gap:7px;min-width:0;min-height:24px;color:#292722;text-decoration:none;font:600 13px/1.2 var(--sans,Arial,sans-serif)}
html body .qca-grid .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 .qca-grid .qca-author-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .qca-grid .qca-author svg{flex:none;width:14px;height:14px}
html body .qca-grid .qca-actions{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:6px;min-height:0;margin:0 18px;padding:0;border-top:1px solid #ece7dd;background:#fff;color:#5e584f}
html body .qca-grid .qca-actions>*{order:0 !important}
html body .qca-grid .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:8px;background:transparent;color:#5e584f;text-decoration:none;font:500 12px/1 var(--sans,Arial,sans-serif);cursor:pointer}
html body .qca-grid .qca-actions>.qca-action:first-child{margin-left:-6px}
html body .qca-grid .qca-actions>.qca-action:last-child{margin-left:auto;margin-right:-6px}
html body .qca-grid .qca-actions>.qca-spacer{flex:1 1 auto}
html body .qca-grid .qca-action:hover{background:#f6f2ea}
html body .qca-grid .qca-action svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html body .qca-grid .qca-actions>.qca-action:last-child svg{width:16px;height:16px}
html body .qca-grid .qca-action .qca-icon{display:none}
html body .qca-grid .qca-count{color:#5e584f;font:500 12px/1 var(--sans,Arial,sans-serif)}
html body .qca-grid .qca-action.on,html body .qca-grid .qca-action.active{color:#d65a39}
html body .qca-grid .qca-action.on svg,html body .qca-grid .qca-action.active svg{fill:currentColor}
html body .qca-grid .qca-card button:disabled{opacity:.55;cursor:wait}
@media(max-width:700px){
  html body .qca-grid,html body .qca-grid.grid,html body main section>.qca-grid.grid{gap:15px;grid-template-columns:minmax(0,1fr)}
  html body .qca-grid .qca-copy{padding:14px 17px 11px}
}

html body .qca-grid>div>.eyebrow{margin:0 0 8px}
/* the legacy .qc footer/hover rules must not touch the new card */
html body .qca-grid article.qca-card.qc{gap:0}

/* Phase 284 — no blank space: polish.css forces .qcard to 460px tall on phones; reference cards size to content. */
html body .qca-grid article.qcard.qca-card{height:auto !important;min-height:0 !important}
/* Share button + "..." menu */
html body .qca-actions>.qm{position:relative;display:inline-flex;margin-left:auto;margin-right:-6px}
html body .qca-actions>.qm>.qca-action{display:inline-flex;align-items:center;justify-content:center;width:auto;height:46px;padding:0 6px;border:0;background:transparent;color:#5e584f;cursor:pointer;border-radius:8px}
html body .qca-actions>.qm>.qca-action svg{width:18px;height:18px;fill:currentColor;stroke:none}
html body .qca-actions>.qca-spacer{flex:1 1 auto}
html body .qca-actions>.qca-action[data-action=share]{margin-left:0}
html body .qca-actions>.qca-action[data-action=share] svg{width:16px;height:16px}
/* the popup is a vertical list; let it escape the card on desktop (on phones it is a bottom sheet) */
html body .qca-grid article.qca-card:has(.qm-pop:not([hidden])){overflow:visible;z-index:40}
html body .qca-card .qm-pop{right:0;left:auto;bottom:calc(100% + 6px);min-width:230px;display:flex;flex-direction:column;gap:2px;text-align:left}
html body .qca-card .qm-pop[hidden]{display:none}
html body .qca-card .qm-item{display:flex;flex-direction:row;align-items:center;gap:12px;width:100%;color:#1c1b19;font:500 15px/1.2 var(--sans,Arial,sans-serif);text-align:left;text-decoration:none}
html body .qca-card .qm-item .i{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8}
html body .qca-card .qm-item.qm-danger{color:#b3261e}
@media(max-width:760px){
  html body .qca-card .qm-pop{position:fixed;left:0;right:0;bottom:0;min-width:0;border-radius:18px 18px 0 0}
}
