/* ŻyczeniaDziś — warm paper palette: ink brown #3b2a22, terracotta #d0674a (decor) / #a8432a (text, AA), forest #3d6b5c, gold #e8b04a, rose #f6cfc9, paper #fbf3e6.
   Headings Fraunces, text Figtree, hand-written accents Caveat (all self-hosted). Illustrations: assets/illus/*.svg (design/illus.py). */
:root{--ink:#3b2a22;--muted:#6a574b;--terra:#d0674a;--terra-t:#a8432a;--forest:#3d6b5c;--forest-t:#2f5a4c;--gold:#e8b04a;--gold-l:#f6dca3;--rose-l:#f6cfc9;
--paper:#fbf3e6;--cream:#fffaf1;--sand:#f3e7d3;--sage:#e6efe9;--sky-l:#e1eef3;--line:#ecdcc6;--wa:#1a7f45;
--serif:'Fraunces',Georgia,'Times New Roman',serif;--sans:'Figtree',system-ui,-apple-system,'Segoe UI',sans-serif;--hand:'Caveat','Segoe Print',cursive}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#fffdf8;color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.6}
img{max-width:100%;height:auto;display:block}
a{color:var(--ink);text-decoration:none}
a:hover{color:var(--terra-t)}
h1,h2,h3{font-family:var(--serif);font-weight:700;line-height:1.15;margin:0;letter-spacing:-.2px}
.wrap{max-width:1220px;margin:0 auto;padding:0 24px}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-9999px}.skip:focus{left:16px;top:16px;z-index:99;background:#fff;padding:8px 14px;border-radius:8px}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px;padding:0 24px;border:0;border-radius:999px;background:var(--terra-t);color:#fff;font:inherit;font-weight:600;cursor:pointer}
.btn:hover{color:#fff;background:#8f3620}
.kicker{display:block;font-family:var(--hand);font-size:24px;font-weight:700;line-height:1;color:var(--terra-t);margin-bottom:6px}
.hand{font-family:var(--hand);font-size:25px;font-weight:700;color:var(--terra-t);margin:0 0 6px;line-height:1.1}

/* top bar (soft, not a dark slab) */
.topbar{background:var(--rose-l);color:var(--ink);font-size:13.5px}
.topbar .wrap{display:flex;flex-wrap:wrap;gap:4px 24px;justify-content:space-between;padding-top:7px;padding-bottom:7px}
.topbar a{font-weight:600;color:var(--terra-t)}

/* header + mega menu */
.hdr{background:#fffdf8;border-bottom:1px solid var(--line);position:relative;z-index:30}
.hdr>.wrap{display:flex;flex-wrap:wrap;align-items:center;gap:10px 26px;padding-top:12px;padding-bottom:12px}
.logo{display:flex;align-items:center;gap:10px;color:var(--ink)}
.logo img{width:42px;height:42px}
.wm{font-family:var(--serif);font-size:25px;font-weight:700;letter-spacing:-.4px;line-height:1}
.wm em{font-family:var(--hand);font-style:normal;font-size:31px;color:var(--terra-t);margin-left:3px}
.logo:hover{color:var(--ink)}
.nav{display:flex;flex-wrap:wrap;gap:2px;flex:1 1 auto}
.nav-btn{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 12px;border:0;border-radius:10px;background:transparent;font:inherit;font-size:15px;font-weight:500;color:var(--ink);cursor:pointer}
.nav-btn:hover,.nav-btn[aria-expanded=true]{color:var(--terra-t);background:var(--paper)}
.nav-btn svg{transition:transform .2s}.nav-btn[aria-expanded=true] svg{transform:rotate(180deg)}
.hdr-search{display:flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:0 6px 0 16px;height:44px;flex:0 1 250px}
.hdr-search input{border:0;outline:0;font:inherit;font-size:14px;width:100%;background:transparent;min-width:0;color:var(--ink)}
.hdr-search button{border:0;background:transparent;width:36px;height:36px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:var(--ink)}
.mega{position:absolute;left:0;right:0;top:100%;background:#fffdf8;border-top:3px solid var(--gold);box-shadow:0 18px 40px rgba(59,42,34,.13)}
.mega[hidden]{display:none}
.mega .wrap{display:flex;flex-wrap:wrap;gap:32px;padding-top:26px;padding-bottom:30px;align-items:flex-start}
.mega-cols{flex:999 1 620px;display:grid;grid-template-columns:repeat(var(--cols,4),minmax(0,1fr));gap:24px}
.mega-cols h3{font-family:var(--hand);font-size:22px;font-weight:700;color:var(--terra-t);margin-bottom:8px}
.mega-cols ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px;font-size:14.5px}
.mega-cols a:hover{text-decoration:underline}
.mega-feat{flex:1 1 230px;display:flex;flex-direction:column;gap:8px;color:var(--ink)}
.mega-feat .ph{border-radius:16px;overflow:hidden;aspect-ratio:4/3;background:var(--paper)}
.mega-feat .ph img{width:100%;height:100%;object-fit:cover}
.mega-feat b{font-family:var(--serif);font-size:19px;line-height:1.25}
.mega-feat small{font-size:13px;color:var(--muted)}

/* shared */
.sec{padding-top:60px;padding-bottom:8px}
.sec-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:8px 24px;margin-bottom:24px}
.sec-head h2{font-size:36px}
.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.art{display:flex;flex-direction:column;gap:9px;color:var(--ink)}
.art .ph{border-radius:16px;overflow:hidden;aspect-ratio:4/3;background:var(--paper)}
.art .ph img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.art:hover .ph img{transform:scale(1.03)}
.art:hover .t{color:var(--terra-t)}
.art .t{font-family:var(--serif);font-size:19px;font-weight:700;line-height:1.25}
.art .tag{font-size:12px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;color:var(--forest-t)}
.note{background:var(--paper);border-radius:18px;padding:18px 22px;margin:20px 0;color:var(--ink)}
.note.big{padding:28px;margin:28px 0 56px}
.note.ok{background:#e7f4ec}.note.err{background:#fbe4dc}

/* hero */
.hero{background:var(--paper);overflow:hidden}
.hero .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:40px;align-items:center;padding-top:44px;padding-bottom:48px}
.hero h1{font-size:56px;letter-spacing:-.8px;line-height:1.04}
.hero h1 em{font-style:normal;color:var(--terra-t);position:relative;white-space:nowrap}
.hero h1 em::after{content:'';position:absolute;left:2%;right:2%;bottom:-6px;height:10px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8 C40 3 80 10 120 5 S180 4 197 7' fill='none' stroke='%23e8b04a' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%}
.hero .lead{font-size:18px;color:var(--muted);max-width:500px;margin:20px 0 24px}
.bigsearch{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:5px 5px 5px 22px;box-shadow:0 8px 24px rgba(168,67,42,.10);max-width:540px}
.bigsearch input{border:0;outline:0;font:inherit;font-size:15.5px;flex:1;min-width:0;background:transparent;height:44px;color:var(--ink)}
.hero .popular{font-size:14.5px;color:var(--muted);margin:16px 0 0}.hero .popular a{text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
.hero-ph img{width:100%;height:auto;aspect-ratio:4/3}

/* calendar cards */
.cal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.cal a{position:relative;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff;color:var(--ink);transition:box-shadow .2s}
.cal a:hover{box-shadow:0 10px 28px rgba(59,42,34,.10)}
.cal .ph{aspect-ratio:16/10;overflow:hidden;background:var(--paper)}.cal .ph img{width:100%;height:100%;object-fit:cover}
.cal .date{position:absolute;top:14px;left:14px;z-index:1;width:68px;background:#fff;border-radius:12px;box-shadow:0 4px 12px rgba(59,42,34,.12);text-align:center;overflow:hidden}
.cal .date b{display:block;font-family:var(--serif);font-size:30px;line-height:1;padding:9px 0 4px}
.cal .date small{display:block;background:var(--terra-t);color:#fff;font-size:12px;font-weight:600;letter-spacing:.8px;text-transform:uppercase;padding:3px 0}
.cal .txt{padding:16px 20px 20px;display:flex;flex-direction:column;gap:2px}
.cal .txt b{font-family:var(--serif);font-size:22px}
.cal .txt small{font-size:14px;color:var(--muted)}
.cal .go{margin-top:10px;font-size:14px;font-weight:600;color:var(--terra-t)}

/* occasion tiles (portrait, 3 per row) */
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.tile{display:grid;grid-template-columns:44% 1fr;align-items:center;gap:0;border-radius:20px;overflow:hidden;background:var(--paper);color:var(--ink);min-height:150px}
.tile .ph{height:100%;background:#fbf3e6}.tile .ph img{width:100%;height:100%;object-fit:cover}
.tile .lbl{padding:16px 20px;display:flex;flex-direction:column;gap:4px}
.tile b{font-family:var(--serif);font-size:20px;line-height:1.2}
.tile small{font-size:14px;color:var(--muted)}
.tile:hover b{color:var(--terra-t)}
.tile-imieniny,.tile-komunia{background:#fdf0db}.tile-slub,.tile-narodziny-i-chrzest{background:#fbe9e5}.tile-rocznica-slubu{background:#eef3ec}

/* a year of wishes (soft, text-led band) */
.band-year{background:var(--sage);margin-top:64px}.band-year .sec{padding-bottom:56px}
.year-head{max-width:640px;margin-bottom:28px}.year-head h2{font-size:34px}.year-head p{color:var(--muted);margin:10px 0 0}
.year-head .kicker{color:var(--forest-t)}
.year{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;position:relative}
.year::before{content:'';position:absolute;left:0;right:0;top:17px;border-top:2px dashed #9fbcab}
.year li{position:relative;padding:40px 14px 0 0;display:flex;flex-direction:column;gap:6px}
.year li::before{content:'';position:absolute;top:10px;left:0;width:16px;height:16px;border-radius:50%;background:#fff;border:3px solid var(--forest)}
.year li.now::before{background:var(--gold);border-color:var(--terra-t)}
.year li.always::before{border-style:dotted}
.year .m{font-family:var(--hand);font-size:24px;font-weight:700;line-height:1;color:var(--forest-t)}
.year a{font-size:15px;font-weight:500;text-decoration:underline;text-decoration-color:#9fbcab;text-underline-offset:3px}

/* support (soft band with two big links) */
.support{background:var(--sky-l);border-radius:28px;padding:36px;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:36px;align-items:center}
.support h2{font-size:32px;margin-bottom:12px}.support p{margin:0;color:var(--muted)}
.support-list{display:grid;gap:14px}
.support-list a{display:grid;grid-template-columns:150px 1fr;gap:18px;align-items:center;background:#fff;border-radius:18px;padding:10px;color:var(--ink)}
.support-list .ph{border-radius:12px;overflow:hidden;aspect-ratio:4/3}.support-list img{width:100%;height:100%;object-fit:cover}
.support-list b{display:block;font-family:var(--serif);font-size:20px;line-height:1.25}
.support-list small{font-size:14px;color:var(--muted)}
.support-list a:hover b{color:var(--terra-t)}

/* work (horizontal cards) */
.work{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.work a{display:flex;flex-direction:column;border-top:3px solid var(--forest);background:#fff;color:var(--ink)}
.work .ph{aspect-ratio:16/9;overflow:hidden;background:var(--paper)}.work .ph img{width:100%;height:100%;object-fit:cover}
.work .txt{padding:14px 2px 0;display:flex;flex-direction:column;gap:4px}
.work b{font-family:var(--serif);font-size:21px}.work small{font-size:14.5px;color:var(--muted)}
.work a:hover b{color:var(--terra-t)}

/* note from the editor */
.editor{display:grid;grid-template-columns:120px 1fr;gap:28px;align-items:center;max-width:860px;margin:8px auto 0;padding:28px 32px;border:2px dashed var(--line);border-radius:28px}
.editor .ph{width:120px;height:120px;border-radius:50%;overflow:hidden;display:block}
.editor .quote{font-family:var(--serif);font-size:20px;line-height:1.45;margin:0 0 10px}
.editor .sig{margin:0;font-size:14.5px;color:var(--muted)}.editor .sig a{text-decoration:underline}

/* category / archive / page */
.crumbs{font-size:13px;color:var(--muted);padding-top:18px}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 8px}
.crumbs li+li::before{content:'›';margin-right:8px;color:#b9a796}
.crumbs a{text-decoration:underline}
.cat-head{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:40px;align-items:center;padding:20px 0 12px}
.cat-head h1{font-size:46px}
.cat-head .lead{font-size:17.5px;color:var(--muted);margin:14px 0 0;max-width:620px}
.cat-head .ph{border-radius:24px;overflow:hidden;background:var(--paper)}.cat-head .ph img{width:100%;height:auto}
.subcats{display:flex;flex-wrap:wrap;gap:8px 18px;margin:18px 0 0;padding:0;list-style:none;font-size:15px}
.subcats a{text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
.arch-head{padding:28px 0 8px}.arch-head h1{font-size:44px}.arch-head p{color:var(--muted);max-width:640px;margin:12px 0 0;font-size:17px}
.page-head{padding-bottom:18px}
.arch-text{max-width:760px}.arch-text h2{font-size:28px;margin-bottom:12px}
.pager{display:flex;gap:8px;justify-content:center;padding:24px 0 56px}
.pager .page-numbers{min-width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:12px}
.pager .current{background:var(--ink);color:#fff;border-color:var(--ink)}
.e404{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:40px;align-items:center;padding-bottom:40px}
.e404 .bigsearch{margin:22px 0}.e404 .ph{border-radius:24px;overflow:hidden}

/* article */
.post-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:40px;align-items:center;padding:22px 0 30px}
.post-hero h1{font-size:46px;letter-spacing:-.5px}
.post-hero .lead{font-size:17.5px;color:var(--muted);margin:16px 0 0}
.post-hero .ph{border-radius:22px;overflow:hidden;aspect-ratio:4/3;background:var(--paper)}.post-hero .ph img{width:100%;height:100%;object-fit:cover}
.post-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13.5px;color:var(--muted);margin-top:16px}
.post-meta a{text-decoration:underline}
.by-ph{width:34px;height:34px;border-radius:50%;overflow:hidden;display:inline-block;flex:0 0 auto}.by-ph img{width:100%;height:100%}
.layout{display:flex;flex-wrap:wrap;gap:40px;align-items:flex-start;padding-bottom:56px}
.content{flex:999 1 620px;min-width:0;font-size:17px}
.content h2{font-size:30px;margin:44px 0 14px}
.content h3{font-size:22px;margin:28px 0 10px}
.content p{margin:0 0 16px}
.content ul,.content ol{padding-left:22px}
.content a{color:var(--terra-t);text-decoration:underline}
.toc{flex:1 1 240px;position:sticky;top:16px;background:var(--paper);border-radius:18px;padding:18px 20px;font-size:14px}
.toc b{display:block;font-family:var(--serif);font-size:18px;margin-bottom:8px}
.toc ol{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}

/* wish lists: <ul class="zyczenia"><li>…</li></ul> — soft paper slips, Kopiuj + WhatsApp added by app.js */
.zyczenia{--zd-p:#fbf3e6;list-style:none;padding:0!important;margin:0 0 18px;display:grid;gap:10px}
.content>.zyczenia:nth-of-type(4n+2){--zd-p:#fdeee9}
.content>.zyczenia:nth-of-type(4n+3){--zd-p:#edf3ee}
.content>.zyczenia:nth-of-type(4n+4){--zd-p:#fdf3dc}
.zyczenia li{background:var(--zd-p);border-radius:6px 16px 16px 16px;padding:14px 18px 8px;font-size:17px;line-height:1.6;border-left:3px solid rgba(168,67,42,.35)}
.acts{display:flex;gap:16px;margin-top:4px}
.act{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:0;border:0;background:none;font:inherit;font-size:13.5px;font-weight:600;color:var(--muted);cursor:pointer;text-decoration:none}
.act:hover{color:var(--terra-t)}
.act.wa,.act.ok{color:var(--wa)}
.content .act{text-decoration:none}
.zcard{max-width:420px;margin:22px auto 26px;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(59,42,34,.12);background:#fff}
.zcard img{display:block;width:100%;height:auto;aspect-ratio:4/5}
.card-acts{justify-content:center;flex-wrap:wrap;gap:10px;margin:0;padding:10px 12px}
.card-acts .act{font-size:14px;padding:8px 14px;border-radius:999px;background:var(--paper);color:var(--ink)}
.card-acts .act.wa{background:#e7f6ec;color:var(--wa)}
.card-acts .act.pin{background:#fbe6e3;color:#a1172b}
.zd-tips{background:var(--paper);border-radius:18px;padding:6px 22px 14px;margin:32px 0}
.zd-tips h2{margin-top:22px!important}
.faq details{border-bottom:1px solid var(--line);padding:14px 0}
.faq summary{cursor:pointer;font-weight:600;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+';float:right;color:var(--terra-t);font-size:20px;line-height:1}
.faq details[open] summary::after{content:'–'}
.zd-more{margin:36px 0 10px}
.zd-more ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.zd-more a{display:block;padding:10px 14px;border:1px solid var(--line);border-radius:12px;color:var(--ink);text-decoration:none;font-size:15px;background:#fff}
.zd-more a:hover{border-color:var(--terra);color:var(--terra-t)}

/* author box + profile */
.zd-authorbox{display:grid;grid-template-columns:96px 1fr;gap:20px;align-items:start;margin:40px 0 10px;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--cream)}
.zd-authorbox .ph{width:96px;height:96px;border-radius:50%;overflow:hidden;display:block}.zd-authorbox .ph img{width:100%;height:100%}
.zd-authorbox p{margin:0 0 6px;font-size:15px;line-height:1.6}
.zd-authorbox .role,.zd-profile .role{font-family:var(--hand);font-size:21px;font-weight:700;color:var(--terra-t);margin:0}
.zd-authorbox .nm{font-family:var(--serif);font-size:20px;margin-bottom:6px}.zd-authorbox .nm a{color:var(--ink);text-decoration:none}.zd-authorbox .more{font-size:14px}
.zd-profile{display:flex;flex-wrap:wrap;gap:28px;align-items:center;margin-bottom:28px}
.zd-profile .ph{width:160px;height:160px;border-radius:50%;overflow:hidden;flex:0 0 auto}
.zd-profile>div:last-child{flex:1 1 320px}.zd-profile p{margin:8px 0 0}.zd-profile .small{font-size:14.5px;color:var(--muted)}

/* contact form */
.zd-contact{max-width:560px}
.zd-contact label{font-weight:600;font-size:14.5px;display:block;margin-bottom:4px}
.zd-contact input[type=text],.zd-contact input[type=email],.zd-contact select,.zd-contact textarea{width:100%;font:inherit;color:var(--ink);border:1px solid #dcc9b1;border-radius:12px;background:#fff;padding:10px 14px;min-height:46px}
.zd-contact .check label{font-weight:400;display:flex;gap:10px;align-items:flex-start}.zd-contact .check input{margin-top:6px}
.zd-contact .hp{position:absolute;left:-9999px}

/* footer (soft sand, not a dark slab) */
.ftr{background:var(--sand);color:var(--ink);margin-top:72px}
.ftr-top{padding-top:44px;display:flex;flex-wrap:wrap;gap:12px 32px;align-items:center;justify-content:space-between}
.ftr-top p{margin:0;color:var(--muted);max-width:460px;font-size:15px}
.ftr .logo img{width:36px;height:36px}
.ftr-cols{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:28px;padding-top:28px;padding-bottom:32px}
.ftr-cols b{display:block;font-family:var(--hand);font-size:22px;color:var(--terra-t);margin-bottom:8px}
.ftr-cols ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px;font-size:14.5px}
.ftr a:hover{color:var(--terra-t);text-decoration:underline}
.ftr-bottom{border-top:1px solid #e2cfb3;padding-top:16px;padding-bottom:26px;font-size:13.5px;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between}
.ftr-bottom a{color:var(--muted)}

/* responsive */
@media (max-width:1100px){.year{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:24px}.year::before{display:none}}
@media (max-width:980px){
  .hero .wrap,.support,.post-hero,.cat-head,.e404{grid-template-columns:minmax(0,1fr)}
  .hero h1{font-size:42px}.post-hero h1,.cat-head h1{font-size:36px}
  .hero-ph{max-width:560px}
  .grid4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mega-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cal,.work{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ftr-cols{grid-template-columns:repeat(3,minmax(0,1fr))}
  .toc{position:static}
  .support{padding:24px}
  .sec-head h2{font-size:30px}
  .cat-head .ph{max-width:420px}
}
@media (max-width:640px){
  .wrap{padding:0 16px}
  .topbar .wrap{font-size:13px}
  .nav{order:3;flex-basis:100%;overflow-x:auto;flex-wrap:nowrap;margin:0 -16px;padding:0 10px;scrollbar-width:none}
  .nav::-webkit-scrollbar{display:none}
  .nav-btn{white-space:nowrap;padding:0 10px;font-size:14.5px}
  .hdr-search{flex:1 1 100%;order:2}
  .logo{flex:1 1 auto}
  .mega-cols{grid-template-columns:minmax(0,1fr)}
  .mega-feat{display:none}
  .hero h1{font-size:36px}.hero .lead{font-size:16.5px}
  .bigsearch{padding-left:16px}.bigsearch .btn{padding:0 16px}
  .grid4,.cal,.work,.tiles{grid-template-columns:minmax(0,1fr)}
  .tile{min-height:120px}
  .year{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:18px}.year li{padding-top:34px}
  .support-list a{grid-template-columns:110px 1fr}
  .editor{grid-template-columns:72px 1fr;gap:16px;padding:20px}.editor .ph{width:72px;height:72px}.editor .quote{font-size:17px}
  .ftr-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sec{padding-top:44px}
  .sec-head h2,.year-head h2,.support h2{font-size:27px}
  .zd-authorbox{grid-template-columns:64px 1fr}.zd-authorbox .ph{width:64px;height:64px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
@media (max-width:640px){
  .cal a{display:grid;grid-template-columns:120px 1fr;align-items:stretch}
  .cal .ph{aspect-ratio:auto;height:100%}
  .cal .date{top:8px;left:8px;width:50px;border-radius:10px}.cal .date b{font-size:22px;padding:6px 0 3px}.cal .date small{font-size:10.5px}
  .cal .txt{padding:12px 14px 14px}.cal .txt b{font-size:19px}.cal .go{margin-top:6px}
  .work a{display:grid;grid-template-columns:130px 1fr;gap:14px;align-items:center;border-top-width:2px}
  .work .ph{aspect-ratio:4/3}.work .txt{padding:8px 0}
}
.post-meta{display:block}.post-meta .by-ph{vertical-align:middle;margin-right:8px}
@media (max-width:980px){.toc{order:-1;flex-basis:100%}}

/* 2026-11-21 picture/GIF pages: grid of ready-to-send pictures (figure.zcard.zpic reuses the card buttons from app.js) */
.zpics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:18px 0 34px}
.zpics .zcard.zpic{max-width:none;margin:0;display:flex;flex-direction:column}
.zpic img{aspect-ratio:1/1;background:#f4efe6;object-fit:cover}
.zpic .card-acts{flex-wrap:wrap;gap:6px;padding:9px 8px;margin-top:auto}
.zpic .card-acts .act{font-size:13px;padding:7px 12px}
@media (max-width:560px){.zpics{grid-template-columns:minmax(0,1fr);gap:24px}.zpics .zcard.zpic{width:100%;max-width:440px;margin:0 auto}.zpic .card-acts .act{padding:7px 10px}}
.gif-tip{margin:0 0 14px;padding:10px 14px;border-radius:10px;background:#fff7e6;border:1px solid #f1dfb8;font-size:.95rem;line-height:1.45}
.zd-hubnav{margin:10px 0 26px}

/* 2026-11-21 card stats (~/tools/cardstats): heart «like» + download/share counters under each card; a number only when > 0.
   Owner: «likes hearts too small» -> heart 24px in a 44px tap target, counts 15px, download/share icons 20px. */
.cst{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 10px 0 4px;font-size:15px;font-weight:500;line-height:1;color:var(--muted);font-variant-numeric:tabular-nums}
.cst-like{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;padding:0 10px;border:0;border-radius:999px;background:none;font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s}
.cst-like .ci{width:24px;height:24px}
.cst-like:hover{color:#d63a2a;background:#fbe9e4}
.cst-like.on{color:#d63a2a}
.cst-like.on .ci{fill:currentColor}
.cst-like:focus-visible{outline:2px solid #d63a2a;outline-offset:1px}
.cst-like.pop .ci{animation:cst-pop .42s ease-out}
@keyframes cst-pop{0%{transform:scale(1)}35%{transform:scale(1.32) rotate(-8deg)}70%{transform:scale(.94)}100%{transform:scale(1)}}
.cst-r{display:inline-flex;align-items:center;gap:16px}
.cst-i{display:inline-flex;align-items:center;gap:6px}
.cst-i .ci{width:20px;height:20px;opacity:.8}
.cst-i[hidden]{display:none}
.cst .n:empty{display:none}
.cst .ci{flex:none;display:block;overflow:visible}
@media (prefers-reduced-motion:reduce){.cst-like.pop .ci{animation:none}}
/* badges from real numbers only: «Popular» = top 3 of the page (score >= 5), «New» = uploaded in the last 14 days */
figure[data-cid]{position:relative}
.cbadge{position:absolute;top:10px;left:10px;z-index:2;display:inline-flex;align-items:center;gap:4px;padding:5px 11px;border-radius:999px;font-size:13px;font-weight:600;line-height:1.1;letter-spacing:.2px;box-shadow:0 2px 8px rgba(0,0,0,.14);pointer-events:none}
.cbadge.hot{background:#fff;color:#d63a2a}
.cbadge.new{background:#3d6b5c;color:#fff}
/* page line: real downloads + shares of this month (shown from 50 up) */
.cmonth{display:flex;align-items:center;gap:8px;margin:6px 0 12px;font-size:15px;font-weight:500;color:var(--muted)}
.cmonth .ci{width:20px;height:20px;flex:none;color:#d63a2a}

.zcard a.zfull{display:block;line-height:0;cursor:zoom-in}
