/* QuotesNova homepage parity layer — source of truth: app.html.
   This file is intentionally scoped to #home so Worker-only pages are untouched.
   Worker-only sections (activity feed, sponsored block, community, bottom links)
   remain present and receive compatible editorial styling. */
#home{padding-bottom:42px}
#home .eyebrow{margin:0}
main#main:has(>#home){padding-top:clamp(24px,3.8vw,46px);padding-bottom:80px}
#home>.intro{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:5px 0 28px;padding:clamp(32px,5vw,62px) 0 clamp(24px,3vw,36px)}
#home>.intro h1{font:500 clamp(38px,5.4vw,66px)/1.02 var(--serif);letter-spacing:-1.8px;max-width:780px;margin:10px 0}
#home>.intro p{max-width:620px;line-height:1.85;font-size:14px;color:var(--muted);margin:0}
#home>.intro .note{padding:13px 17px;border:1px solid var(--line);border-radius:999px;background:var(--paper);font:italic 13px var(--serif);font-size:11px;letter-spacing:.04em;color:#817a70}
#home .hero{display:grid;grid-template-columns:1.6fr .8fr;gap:clamp(14px,2vw,22px);align-items:stretch;margin-bottom:clamp(34px,4vw,52px);padding:0;max-width:none}
#home .hero-main{aspect-ratio:2/1;max-height:380px;min-height:250px;position:relative;display:flex;align-items:end;overflow:hidden;border-radius:22px;box-shadow:0 12px 34px #30291d12;background:#25221d}
#home .hero-main:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,#26352d 0%,#596557 58%,#9b8069 100%)}
#home .hero-main .hero-slides{position:absolute;inset:0;z-index:0}
#home .hero-main .hero-slides img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s ease}
#home .hero-main .hero-slides img.on{opacity:1}
#home .hero-main:after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(20,18,14,.68) 0%,rgba(20,18,14,.38) 55%,rgba(20,18,14,.12) 100%);pointer-events:none}
#home .hero-copy{position:relative;z-index:2;inset:auto;display:block;flex:0 1 auto;max-width:580px;padding:clamp(24px,4.5vw,48px);color:#fff}
#home .hero-copy .eyebrow{color:#e6c9b9}
#home .hero-copy h2{font:500 clamp(31px,4vw,48px)/1.07 var(--serif);max-width:580px;letter-spacing:normal;margin:12px 0;color:#fff}
#home .hero-copy p{font-size:12px;color:#f2eee8;max-width:410px;margin:1em 0}
#home .hero-copy .light{display:inline-block;margin-top:10px;background:#fffefa;color:var(--ink);border:0;border-radius:0;padding:11px 16px;text-decoration:none;font-size:11px;font-weight:750}
#home .hero-side{min-height:0;border-radius:22px;padding:clamp(22px,3vw,32px);background:#ece9e1;border:0;box-shadow:0 14px 38px rgba(40,34,24,.075);display:flex;flex-direction:column;justify-content:space-between}
#home .hero-side blockquote{font:500 28px/1.22 var(--serif);margin:22px 0;color:var(--ink)}
#home .hero-side .byline{font-size:9px;letter-spacing:1.3px;text-transform:uppercase;color:var(--muted)}
#home .hero-side .sidefoot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #d9d5cb;padding-top:14px;margin-top:18px;color:var(--muted);font-size:11px}
#home .hero-controls{position:absolute;right:14px;bottom:12px;z-index:3;display:flex;align-items:center;gap:10px}
#home .hero-dots{display:flex;gap:7px}
#home .hero-dots button{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.5)}
#home .hero-dots button[aria-current="true"]{background:#fff;transform:scale(1.25)}
#home .hero-pp{width:26px;height:26px;padding:0;border:0;border-radius:50%;background:rgba(0,0,0,.35);color:#fff;font-size:9px;line-height:1}
#home .premium-panel{margin:clamp(38px,5vw,58px) 0 0;border:0;background:#26251f;color:#f8f4eb;border-radius:22px;padding:clamp(24px,4vw,42px)}
#home .premium-pill{display:inline-block;border-radius:30px;background:#e9ddc8;color:#5b4830;padding:4px 9px;font-size:9px;font-weight:800;letter-spacing:1px;text-transform:uppercase}
#home .premium-panel h2{font:700 clamp(25px,3vw,34px)/1.15 var(--serif);letter-spacing:normal;margin:14px 0 8px}
#home .premium-panel>p{font-size:12px;line-height:1.8;max-width:620px;color:#ddd6c9}
#home .premium-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:17px 0;font-size:12px}
#home .premium-benefits span{font-size:12px;padding:10px;background:#ffffff12;border:1px solid #ffffff20}
#home .premium-actions{display:flex;flex-wrap:wrap;gap:9px}
#home .premium-actions a{display:inline-flex;align-items:center;text-decoration:none;border:1px solid #d8c4a5;border-radius:0;padding:11px 15px;background:#d8c4a5;color:#28251f;font-size:12px;font-weight:750}
#home .premium-actions a.secondary{background:transparent;border:1px solid #ffffff55;color:#fff}
#home .section{margin-top:clamp(48px,6vw,76px)}
#home .head{display:flex;align-items:end;justify-content:space-between;margin-bottom:22px;gap:18px}
#home .head h2{font:500 clamp(25px,2.7vw,32px)/1.15 var(--serif);letter-spacing:-.7px;margin:0}
#home .head p{font-size:12px;line-height:1.7;color:var(--muted);margin:5px 0 0}
#home .head>a{white-space:nowrap;color:var(--accent);font-size:12px;font-weight:700;text-decoration:none}
#home .quote-feature{display:grid;grid-template-columns:1.3fr .7fr;min-height:245px;border:0;border-radius:22px;overflow:hidden;box-shadow:0 8px 26px #29251e08;background:#eeebe4}
#home .quote-copy{padding:clamp(25px,4vw,44px)}
#home .quote-copy .mark{font:45px/.6 var(--serif);color:#b18c78}
#home .quote-copy blockquote{font:500 clamp(23px,3vw,34px)/1.2 var(--serif);margin:13px 0}
#home .quote-art{display:grid;place-items:center;background:linear-gradient(135deg,#d8d0c3,#b9b2a4);font:italic 112px var(--serif);color:#fff9;min-height:210px}
#home .quote-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start;margin-top:22px}
#home .qcard{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 8px 28px #29251e0a;transition:transform .2s,box-shadow .2s;display:block;padding:0;gap:0}
#home .qcard:hover{transform:translateY(-3px);box-shadow:0 14px 34px #29251e13;border-color:#d7c8b8}
#home .qimage{height:clamp(170px,23vw,260px);position:relative;overflow:hidden;background:linear-gradient(135deg,#d8d0c3,#aeb6a6)}
#home .qimage img,#home .qimage svg{display:block;width:100%;height:100%;object-fit:cover}
#home .qimage:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#17191442);pointer-events:none}
#home .qtop{padding:22px 24px 19px;min-height:0;display:flex;flex-direction:column;justify-content:space-between;gap:10px}
#home .qtop .qcategory{font-size:9px;letter-spacing:1.5px;text-transform:uppercase;color:var(--accent);font-weight:800}
#home .qtop blockquote{font:500 clamp(20px,2.1vw,26px)/1.32 var(--serif);letter-spacing:-.35px;margin:2px 0 8px;color:var(--ink)}
#home .qtext-link{display:block;color:inherit;text-decoration:none}
#home .qtop .qauthor{font-size:10px;letter-spacing:1.1px;text-transform:uppercase;color:var(--muted);margin:0}
#home .qtop .qc-rate{display:inline-flex;align-items:center;gap:2px;margin-top:8px;font:600 14px/1.3 var(--sans);color:var(--ink);white-space:nowrap}
#home .qtop .qc-rate__star{font-size:15px;line-height:1;color:#e0a100}
#home .qtop .qc-rate small{font:400 10px var(--sans);color:var(--muted)}
#home .qbottom{display:flex;flex-wrap:wrap;align-items:center;gap:clamp(8px,1.3vw,15px);padding:12px 17px;border-top:1px solid var(--line);min-height:0;row-gap:8px}
#home .qbottom .action{border:0;background:none;padding:5px 0;color:#77746c;font-size:11px;font-weight:650;text-decoration:none;white-space:nowrap;cursor:pointer}
#home .qbottom .action:hover,#home .qbottom .action.on,#home .qbottom .action.active{color:var(--accent)}
#home .qbottom .action .sym{font-size:16px;vertical-align:-1px;margin-right:4px}
#home .qbottom .action-count{font-size:10px;color:#8a867e;margin-left:auto;white-space:nowrap}
#home .qbottom button:disabled{opacity:.55;cursor:wait}
#home .comments,#home .qnai-in-card{padding:18px 22px;border-top:1px solid var(--line)}
#home .money-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#home .money-card,#home .box,#home .spotlight{border:1px solid var(--line);border-radius:0;background:var(--paper);padding:22px}
#home .money-card h3{font:500 21px var(--serif);margin:8px 0}
#home .money-card p{font-size:12px;line-height:1.55;color:var(--muted);min-height:52px}
#home .money-card .primary{display:inline-flex;text-decoration:none;border:0;border-radius:99px;background:var(--ink);color:#fff;padding:10px 14px;font-size:12px;font-weight:700}
#home .sponsored{border-radius:16px;padding:24px 26px;border:1px solid #e6dfd3;background:#f0ece3;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:25px}
#home .sponsored small{color:var(--accent);font-weight:800}
#home .sponsored h3{margin:6px 0;font:700 22px var(--serif)}
#home .sponsored p{margin:0;font-size:12px;color:var(--muted);line-height:1.7}
#home .sponsored .primary{white-space:nowrap}
#home .bookrow{display:flex;gap:22px;overflow:auto;padding:4px 2px 14px}
#home .book{flex:0 0 170px;border-radius:12px;overflow:hidden;display:block}
#home .book .cover{height:205px;background:#e6e1d8;display:grid;place-items:center;padding:15px;border-radius:12px;box-shadow:0 9px 24px #28251e12}
#home .book .cover span{width:112px;height:166px;box-shadow:7px 8px 16px #0003;background:#4c5a50;color:#f5f0e7;padding:15px 11px;display:flex;flex-direction:column;justify-content:space-between;font:9px var(--sans);letter-spacing:1px}
#home .book .cover b{font:21px/1.05 var(--serif)}
#home .book h3{font:500 17px/1.3 var(--serif);margin:12px 0 1px}
#home .book p{font-size:10px;color:var(--muted);margin:0}
#home .book .stars{font-size:10px;color:#987653;margin-top:4px}
#home .community-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:22px}
#home .box{border-radius:12px;box-shadow:0 5px 22px #30291d08}
#home .question{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;padding:19px 0;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
#home .question:hover h3{text-decoration:underline}
#home .question .votes{border:1px solid var(--line);text-align:center;padding:5px 0;color:var(--olive);font-size:12px}
#home .question .votes small{display:block;color:var(--muted);font-size:8px}
#home .question h3{font:500 17px/1.2 var(--serif);margin:0 0 4px}
#home .question p{font-size:10px;color:var(--muted);margin:0}
#home .question .answers{font-size:10px;color:var(--muted);white-space:nowrap}
#home .spotlight{display:flex;flex-direction:column;justify-content:space-between;background:#eae6de}
#home .spotlight .initial{height:115px;display:grid;place-items:center;background:linear-gradient(140deg,#b9a28d,#e2d7c9);font:italic 70px var(--serif);color:#fff;margin-bottom:15px;overflow:hidden}
#home .spotlight .initial img{width:100%;height:100%;object-fit:cover}
#home .spotlight h3{font:500 26px var(--serif);margin:5px 0}
#home .spotlight p{font-size:11px;color:#716c63}
#home .spotlight a{align-self:start;border:0;border-bottom:1px solid #aa9a8a;background:none;font-size:11px;font-weight:750;padding:4px 0;color:var(--ink)}
#home .qn-community-question{display:block;padding:0;margin:0;border:0;border-radius:0;background:transparent;text-decoration:none;color:var(--ink)}
#home .activity{display:flex;flex-direction:column;gap:10px}
#home .activity article{background:var(--paper);border:1px solid var(--line);padding:14px 16px;border-radius:12px}
#home .activity strong{font-size:13px}
#home .activity article a{color:inherit;text-decoration:underline;text-underline-offset:2px}
#home .activity .when{display:block;margin-top:4px;font-size:10px;color:var(--muted)}
#home .activity article.sugg{display:flex;align-items:center;gap:12px}
#home .sg-av{flex:none;width:40px;height:40px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:linear-gradient(140deg,#b9a28d,#e2d7c9);color:#fff;font:italic 20px var(--serif)}
#home .sg-av img{width:100%;height:100%;object-fit:cover}
#home .sg-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#home .sg-name{border:0;background:none;padding:0;text-align:left;font-size:13px;font-weight:700;color:var(--ink);text-decoration:none}
#home .sg-btn{flex:none;border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:7px 12px;font-size:11px;font-weight:700}
#home .sg-btn[aria-pressed="true"]{background:var(--ink);color:var(--paper)}
#home .qn-bottom-links{display:flex;gap:10px;flex-wrap:wrap}
#home .qn-bottom-links a{padding:9px 13px;border:1px solid var(--line);border-radius:12px;background:var(--paper);text-decoration:none;font-weight:650;font-size:12px}
#home .home-empty{font-size:12px;color:var(--muted)}
@media(max-width:900px){#home .hero{grid-template-columns:1fr}#home .hero-side{min-height:190px}#home .money-grid{grid-template-columns:1fr 1fr}#home>.intro{padding-top:32px}}
@media(max-width:700px){
 #home>.intro{padding:28px 0 22px;gap:15px;align-items:flex-start}
 #home>.intro h1{font-size:clamp(36px,10vw,48px);letter-spacing:-1.2px}
 #home>.intro p{font-size:13px;line-height:1.75}
 #home>.intro .note{align-self:flex-start}
 #home .hero{gap:12px;margin-bottom:30px}
 #home .hero-main{aspect-ratio:1.45/1;min-height:190px;border-radius:14px}
 #home .hero-copy{padding:22px}
 #home .hero-copy h2{font-size:clamp(29px,8vw,38px)}
 #home .hero-side{padding:20px;border-radius:14px;min-height:175px}
 #home .hero-side blockquote{font-size:24px;margin:14px 0}
 #home .section{margin-top:40px}
 #home .head{align-items:flex-start}
 #home .head h2{font-size:25px}
 #home .quote-feature{grid-template-columns:1fr;min-height:0}
 #home .quote-copy{padding:23px}
 #home .quote-art{min-height:95px;font-size:76px;display:grid}
 #home .money-grid{grid-template-columns:1fr}
 #home .premium-benefits{grid-template-columns:1fr}
 #home .quote-feature{grid-template-columns:1fr}
 #home .quote-art{min-height:95px;font-size:76px}
 #home .premium-panel{padding:24px 18px}
 #home .bookrow{gap:12px}
 #home .book{flex-basis:138px}
 #home .book .cover{height:183px}
 #home .book .cover span{width:101px;height:151px}
 #home .community-grid{grid-template-columns:1fr}
 #home .sponsored{align-items:flex-start;flex-direction:column}
 #home .head{align-items:center}
 #home .quote-list{grid-template-columns:1fr;gap:11px}
 #home .qimage{height:210px}
 #home .qtop{padding:20px 19px 17px}
 #home .qtop blockquote{font-size:23px}
 #home .qbottom{gap:10px;padding:12px 15px}
 #home .qbottom .action-count{width:100%;margin-left:0;padding-top:4px;border-top:1px solid var(--line)}
}
@media(prefers-reduced-motion:reduce){#home .hero-main .hero-slides img{transition:none}}
