/* Nil Doces · Natal 2026 · página de pedido. Mobile first. Colours and type follow the catalogue. */
/* the hand-lettered headings: the catalogue's own Snell Roundhand where the device has it (Apple), the free Pinyon Script everywhere else */
@font-face{font-family:'Nil Script';font-weight:400;font-style:normal;font-display:swap;src:local('Snell Roundhand'),local('SnellRoundhand'),url('fonts/pinyon-script.woff2') format('woff2')}
:root{--brown:#611A06;--red:#B8323A;--cream:#FFF8EC;--paper:#FFFDF6;--gold:#CFAA77;--sage:#9DB083;--blush:#F0CFC2;--ink2:#8a5a3c;--line:#E3D3B6}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{background:var(--cream);color:var(--brown);font:17px/1.45 'Iowan Old Style','Baskerville',Georgia,serif;padding-bottom:96px}
body.lock{overflow:hidden}
.wrap{max-width:640px;margin:0 auto;padding:0 18px}
a{color:inherit}
button{font:inherit;color:inherit;cursor:pointer}
.script{font-family:'Nil Script','Snell Roundhand','Apple Chancery','Segoe Script','Lucida Handwriting','Brush Script MT',cursive;font-weight:400}
.kick{font:600 12px/1.3 'Avenir Next',Helvetica,Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--ink2)}

/* top strip and hero */
.top{background:var(--sage);border-bottom:6px solid var(--red);padding:10px 0}
.top .wrap{display:flex;justify-content:space-between;align-items:baseline;font:600 13px 'Avenir Next',Helvetica,Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:var(--cream)}
.hero{padding:22px 0 10px;text-align:center}
.hero img.cover{width:100%;aspect-ratio:4/3.1;object-fit:cover;object-position:50% 78%;border-radius:10px;border:1px solid var(--gold)}
.hero h1{font-size:46px;line-height:1.02;margin:16px 0 6px}
.hero .sub{font-style:italic;color:#6b3a2a;font-size:18px}
.hero .intro{margin-top:14px;font-size:17px}

/* stop chips */
.chips{position:sticky;top:0;z-index:20;background:rgba(255,248,236,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(6px)}
.chips .wrap{display:flex;gap:8px;overflow-x:auto;padding:10px 18px;scrollbar-width:none}
.chips .wrap::-webkit-scrollbar{display:none}
.chips a{flex:none;text-decoration:none;font:600 14px 'Avenir Next',Helvetica,Arial,sans-serif;padding:8px 13px;border:1px solid var(--gold);border-radius:99px;background:var(--paper);white-space:nowrap}

/* stops */
.stop{padding:28px 0 8px;scroll-margin-top:56px}
/* a door with its own paper (colours come from build_shop.py door_css): the content sits on a card inside the paper */
.stop[data-door]{padding:18px 14px 18px}
.stop[data-door]>.wrap{background:var(--panel);border:1px solid #D9C4A2;border-radius:10px;padding:14px 18px 6px;box-shadow:var(--ring)}
.stop[data-door] .num{background:var(--acc)}
.stop h2{font-size:40px;line-height:1.05;margin:4px 0 10px}
.num{display:inline-block;width:28px;height:28px;border-radius:50%;background:var(--red);color:var(--cream);font:700 15px/28px Georgia,serif;text-align:center;margin-right:8px;vertical-align:2px}
/* the stop number sits in the top right corner of its card, so the title has the full width */
.stop>.wrap{position:relative}
.stop h2 .num{position:absolute;top:10px;right:16px;margin:0;width:28px;height:28px;font-size:15px;line-height:28px;box-shadow:0 0 0 2px var(--cream),0 0 0 3px var(--acc,var(--red))}
.stop h2{text-wrap:balance}
.stop:has(h2 .num) .kick{padding-right:44px}
.photos{display:grid;gap:8px;margin:6px 0 12px}
.photos.n2{grid-template-columns:1fr 1fr}.photos.n3{grid-template-columns:1fr 1fr 1fr}
.photos img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:8px;border:1px solid var(--gold);background:#eadfce}
.photos.n1 img{aspect-ratio:16/10}
.story{font-style:italic;font-size:18px;color:#5b2a1e;margin-bottom:10px}

/* items */
.items{border-top:3px double var(--gold)}
.it{padding:14px 0 14px;border-bottom:1px dotted var(--gold)}
.it .nm{font-weight:700;font-size:20px;line-height:1.2}
.it .ds{font-size:15.5px;line-height:1.35;color:#6b3a2a;font-style:italic;margin-top:3px}
.it .nt{font:600 13px 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2);margin-top:4px}
.it .row2{display:flex;justify-content:space-between;align-items:center;margin-top:10px;gap:12px}
.pr{font-weight:700;font-size:21px;white-space:nowrap}
.step{min-height:44px;display:flex;align-items:center}
.add{background:var(--brown);color:var(--cream);border:0;border-radius:99px;padding:11px 20px;font:600 15px 'Avenir Next',Helvetica,Arial,sans-serif;min-height:44px}
.qty{display:inline-flex;align-items:center;border:1.5px solid var(--brown);border-radius:99px;background:var(--paper)}
.qty button{width:44px;height:44px;border:0;background:transparent;font:600 24px/1 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--brown)}
.qty output{min-width:30px;text-align:center;font:700 19px 'Avenir Next',Helvetica,Arial,sans-serif}
.add:active,.qty button:active{transform:scale(.94)}

/* closing */
.ask{margin:30px 0 10px;padding:18px;border:2px dashed var(--gold);background:var(--paper);border-radius:10px;text-align:center}
.ask p{margin-bottom:12px}
.btn{display:inline-block;background:var(--brown);color:var(--cream);text-decoration:none;border:0;border-radius:99px;padding:13px 22px;font:600 16px 'Avenir Next',Helvetica,Arial,sans-serif}
.foot{padding:20px 0 10px;font:13px/1.4 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2);text-align:center}

/* floating order bar */
#bar{position:fixed;left:0;right:0;bottom:0;z-index:40;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:var(--brown);color:var(--cream);transform:translateY(110%);transition:transform .25s}
#bar.on{transform:none}
#bar button{display:flex;width:100%;max-width:640px;margin:0 auto;align-items:center;justify-content:space-between;gap:10px;background:transparent;border:0;color:var(--cream);font:600 16px 'Avenir Next',Helvetica,Arial,sans-serif;min-height:48px}
#bar .tot{font-weight:700;font-size:18px}
#bar .go{background:var(--cream);color:var(--brown);border-radius:99px;padding:10px 16px}
#bar.bump{animation:bump .3s}
@keyframes bump{50%{transform:translateY(-6px)}}
#toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translate(-50%,10px);background:var(--paper);color:var(--brown);border:1px solid var(--gold);border-radius:99px;padding:8px 16px;font:600 14px 'Avenir Next',Helvetica,Arial,sans-serif;opacity:0;pointer-events:none;transition:.2s;z-index:45;max-width:90vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#toast.on{opacity:1;transform:translate(-50%,0)}

/* cart sheet */
#sheet,#gsheet{position:fixed;inset:0;z-index:60;background:rgba(40,12,4,.5);display:flex;align-items:flex-end;justify-content:center}
#gsheet{z-index:70}
#sheet[hidden],#gsheet[hidden]{display:none}
/* a gift's recipient: the question asked when a product is added, and the cart line that shows the answer */
.gitem{font:600 14px 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2);margin-top:2px}
.line.gift{grid-template-columns:1fr auto}
/* who the gift is for ("Motorista, Bob"): in handwriting, like the little card that goes with it */
.gw{font-family:'Nil Script','Snell Roundhand','Apple Chancery','Segoe Script','Lucida Handwriting','Brush Script MT',cursive;font-size:25px;line-height:1.1;color:var(--brown);font-weight:400;margin-top:3px}
.gw i{font:13px/1.35 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2);font-style:normal}
.gb{grid-column:1/-1;display:flex;gap:14px}
.gb .linkbtn{padding:2px 0;min-height:0;font-size:13px}
#gsheet select{width:100%;font:16px/1.4 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--brown);background:#fff;border:1px solid var(--gold);border-radius:8px;padding:11px}
/* who you forgot, as in the catalogue */
.tag{margin:6px 0 10px;padding:10px 14px;background:#FDE6D4;border:1.5px solid var(--brown);border-radius:6px 14px 14px 6px}
.tag .k{font:600 11px 'Avenir Next',Helvetica,Arial,sans-serif;letter-spacing:.13em;text-transform:uppercase;color:var(--ink2);margin-bottom:2px}
.tag .t{font-size:16px;line-height:1.35}
/* editing with Liliane's key (editlite.js): the texts she can change show a dotted line, what she changed is marked */
.editing .edf{outline:1px dotted var(--gold);outline-offset:2px;cursor:text;-webkit-nbsp-mode:normal}   /* Safari lets editable text break at a no-break space; this keeps "um pouco" together while editing too */
.editing .edf.chg{background:#fff3b0}
#edstatus{font:600 13px 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--cream)}
#edstatus.off{color:#ffd9b8}
#edbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;padding:6px 12px;background:var(--brown);border-bottom:1px solid rgba(255,255,255,.18)}
body.editing .chips{top:46px}
body.editing .stop{scroll-margin-top:106px}

.panel{width:100%;max-width:640px;max-height:94vh;overflow:auto;background:var(--cream);border-radius:16px 16px 0 0;padding:18px 18px calc(24px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}
.ph{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.ph h2{font-size:36px;line-height:1}
.x{background:transparent;border:0;font-size:30px;width:44px;height:44px;line-height:1}
.line{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:12px 0;border-bottom:1px dotted var(--gold);align-items:center}
.line .nm{font-weight:700;line-height:1.2}
.line .lt{font-weight:700;text-align:right;white-space:nowrap}
.line .qty{grid-column:1;justify-self:start}
/* the order lives in its own warm box so it reads apart from the form below; the whole panel scrolls (a long order never traps the form) */
.ordbox{background:#F7E6DA;border:1px solid var(--gold);border-radius:12px;padding:2px 16px 4px;margin:6px 0 18px}
.ordbox .line:first-child{border-top:0}
/* the little card inside the package, as it prints: same lettering (Pinyon Script) and the same two parts, "Psiu! Nome!" and the message */
@font-face{font-family:'Pinyon Script';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/pinyon-script.woff2') format('woff2')}
.gb{align-items:center}
.cardbtn{display:inline-flex;align-items:center;gap:7px;min-height:38px;margin-left:auto;border:1px solid var(--gold);border-radius:19px;background:var(--paper);color:var(--brown);padding:0 14px 0 11px;font:600 14px 'Avenir Next',Helvetica,Arial,sans-serif}
.cardbtn.on{background:var(--blush)}
.cardprev{grid-column:1/-1;background:var(--paper);border:1px dashed #a89888;border-radius:8px;padding:14px 16px 8px;margin-top:4px;text-align:center;color:var(--brown)}
.cardhead{font:400 34px/1.05 'Pinyon Script','Snell Roundhand','Apple Chancery','Segoe Script','Brush Script MT',cursive;margin-bottom:6px}
.cardmsg,.cardta{font:400 20px/1.3 'Pinyon Script','Snell Roundhand','Apple Chancery','Segoe Script','Brush Script MT',cursive}
.cardta{width:100%;border:1px solid var(--gold);border-radius:8px;background:#fff;color:var(--brown);padding:8px 10px;text-align:center;resize:vertical}
.cardct{font:12px 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2);text-align:right;margin-top:2px}
.cardbtns{display:flex;gap:16px;justify-content:center;margin-top:4px}
.cs{display:inline-block;text-wrap:balance}
/* who each unit is for, under the product where it was chosen */
.whos{display:flex;flex-direction:column;align-items:flex-start;gap:0;margin:0 0 8px}
.whob{background:none;border:0;padding:3px 0;text-align:left;color:var(--brown);font:400 23px/1.1 'Nil Script','Snell Roundhand','Apple Chancery','Segoe Script','Brush Script MT',cursive;cursor:pointer}
.whob::before{content:'\2022';color:var(--gold);margin-right:7px;font-family:Georgia,serif}
.whob i{font:14px/1.3 'Avenir Next',Helvetica,Arial,sans-serif;font-style:normal;color:var(--ink2);text-decoration:underline}
.whob.me{cursor:default}
/* the running gift list: a sheet of paper in the free space beside the page, so it never covers the photos: only when the window is wide enough (1500 px and up) */
#lista{display:none}
@media (min-width:1500px){#lista.on{display:block;position:fixed;top:120px;right:14px;width:min(250px,calc((100vw - 1100px)/2 - 28px));max-height:68vh;overflow:auto;background:var(--paper);border:1px dashed #a89888;border-radius:6px;padding:14px 16px 10px;box-shadow:0 6px 18px rgba(97,26,6,.16);transform:rotate(1.2deg);z-index:30}}
#lista h3{font-size:30px;line-height:1;margin:0 0 8px}
#lista .lg{padding:6px 0;border-bottom:1px dotted var(--gold)}
#lista .lp{font:700 15px/1.2 'Iowan Old Style','Baskerville',Georgia,serif}
#lista .whob{font-size:21px;padding:1px 0}
#lista .lsum{display:flex;justify-content:space-between;align-items:baseline;padding:8px 0 0;font:600 14px 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2)}
#lista .lsum b{font-size:17px;color:var(--brown)}
#lista .linkbtn{display:block;margin:2px auto 0;min-height:36px}
.cardfixed{margin-bottom:6px}
.cardmsg,.cardhead{text-wrap:balance}
/* typography on every screen: balanced headings and short labels, no lonely last word in paragraphs (where the browser can; the words that must not be split are tied with a no-break space) */
h1,h2,h3,.script,.kick,.gw,.zh{text-wrap:balance}
p,.note,.f-help,.lead,.empty,.cardhelp{text-wrap:pretty}
.cardhelp{font:13px/1.35 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2);margin:2px 0 6px}
.ordbox .note:last-child{margin-bottom:8px}
.sum{display:flex;justify-content:space-between;align-items:baseline;padding:14px 0 4px;font-size:22px;font-weight:700}
.note{font:14px/1.4 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2);margin:2px 0 12px}
label.f{display:block;font:600 14px 'Avenir Next',Helvetica,Arial,sans-serif;margin:14px 0 5px}
.f-help{font:13px/1.35 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2);margin-top:3px}
select{appearance:auto}
input[type=email]{width:100%;font:16px/1.4 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--brown);background:#fff;border:1px solid var(--gold);border-radius:8px;padding:11px}
label.chk{display:flex;gap:10px;align-items:flex-start;margin-top:10px;padding:11px 12px;border:1.5px solid var(--gold);border-radius:10px;background:var(--paper);font:14px/1.4 'Avenir Next',Helvetica,Arial,sans-serif}
label.chk[hidden]{display:none}
label.chk input{width:22px;height:22px;margin-top:1px;flex:none;accent-color:var(--brown)}
input[type=text],textarea,select{width:100%;font:16px/1.4 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--brown);background:#fff;border:1px solid var(--gold);border-radius:8px;padding:11px}
textarea{min-height:72px;resize:vertical}
/* region picker: zones, name left, dotted leader, price right */
.regbtn{display:block;width:100%;text-align:left;font:16px/1.4 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--brown);background:#fff;border:1px solid var(--gold);border-radius:8px;padding:11px 36px 11px 11px;position:relative;min-height:46px}
.regbtn::after{content:'▾';position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--ink2)}
.regbtn[aria-expanded=true]::after{content:'▴'}
#reglist,#rellist{margin-top:6px;border:1px solid var(--gold);border-radius:10px;background:var(--paper);max-height:46vh;overflow:auto;-webkit-overflow-scrolling:touch}
#reglist[hidden],#rellist[hidden]{display:none}
.zh{position:sticky;top:0;background:var(--blush);font:700 12px/1.3 'Avenir Next',Helvetica,Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--brown);padding:7px 12px}
.zhb{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;border-bottom:1px solid var(--line);text-align:left;cursor:pointer;min-height:44px}
.zhb .chev{font-size:18px;letter-spacing:0}
.ro{display:flex;align-items:baseline;width:100%;gap:8px;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--line);padding:12px;min-height:46px;font:16px/1.3 'Avenir Next',Helvetica,Arial,sans-serif}
.ro .rl{flex:1;min-width:14px;border-bottom:2px dotted var(--gold);transform:translateY(-3px)}
.ro .rp{font-weight:700;white-space:nowrap}
.ro.on{background:#FDE6D4}.ro.on .rn{font-weight:700}
.modes{display:flex;gap:8px}
.modes label{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;border:1.5px solid var(--gold);border-radius:10px;padding:12px 8px;font:600 15px 'Avenir Next',Helvetica,Arial,sans-serif;background:var(--paper);text-align:center}
.modes input{accent-color:var(--brown)}
.modes label:has(input:checked){border-color:var(--brown);background:#FDE6D4}
.err{color:var(--red);font:600 14px 'Avenir Next',Helvetica,Arial,sans-serif;margin-top:6px}
.send{display:block;width:100%;margin-top:20px;background:var(--red);color:#fff;border:0;border-radius:12px;padding:16px;font:700 18px 'Avenir Next',Helvetica,Arial,sans-serif;min-height:54px}
.linkbtn{background:none;border:0;text-decoration:underline;font:14px 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2);padding:12px 0;min-height:44px}
.pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.pills button{background:var(--paper);border:1.5px solid var(--gold);border-radius:99px;padding:10px 14px;font:600 14px 'Avenir Next',Helvetica,Arial,sans-serif;min-height:44px}
.pills button.on{background:#FDE6D4;border-color:var(--brown)}
.stepno{font:600 12px 'Avenir Next',Helvetica,Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--ink2)}
.lead{font-size:19px;line-height:1.35;margin:6px 0 14px}
.amount{display:flex;justify-content:space-between;align-items:baseline;padding:14px 16px;border:2px solid var(--brown);border-radius:12px;background:var(--paper);font-size:20px;margin-bottom:6px}
.amount b{font-size:28px}
.pixcode{width:100%;font:12px/1.3 ui-monospace,Menlo,monospace;word-break:break-all;margin:6px 0 4px;min-height:88px;color:var(--ink2)}
.empty{padding:26px 0;text-align:center;font-style:italic}
@media (min-width:700px){.hero h1{font-size:56px}.photos img{aspect-ratio:1/1}.photos.n1 img{aspect-ratio:16/9}}
@media print{#bar,#toast,#sheet,.chips{display:none}}

/* the full catalogue version (build_shop.py --full): the pages that are not shop stops */
.stop.plain>.wrap{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:16px 18px 14px;margin-top:10px}
.stop.plain{padding:14px 14px 10px}
.mylist{margin:12px 0;padding:12px 16px;border:1.5px solid var(--brown);border-radius:6px 14px 14px 6px;background:#FDE6D4}
.mylist .k{font:600 11px 'Avenir Next',Helvetica,Arial,sans-serif;letter-spacing:.13em;text-transform:uppercase;color:var(--ink2);margin-bottom:4px}
.mylist ul{list-style:none;columns:2;column-gap:18px}
.mylist li{padding:4px 0;border-bottom:1px dotted var(--gold);font-size:15.5px;break-inside:avoid}
.route{list-style:none;margin:14px 0 6px}
.route a{display:grid;grid-template-columns:28px 1fr;gap:2px 10px;align-items:center;text-decoration:none;padding:8px 0;border-bottom:1px dotted var(--gold)}
.route .num{grid-row:1/3;margin:0}
.route .rn{font-weight:700;line-height:1.2}
.route .rd{font:13.5px/1.3 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2)}
.foot2{margin-top:12px;font:600 14px/1.4 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2)}
.rest .body{margin:6px 0 12px}
.callout{padding:12px 16px;border:1.5px solid var(--brown);border-radius:6px 14px 14px 6px;background:#FDE6D4}
.callout p{margin-top:5px}.callout .q{font-style:italic}
.photos.n4{grid-template-columns:1fr 1fr}.photos.n4 img{aspect-ratio:1/1}
.hint{margin:10px 0 4px;font-style:italic;color:#5b2a1e}
.cta{margin:12px 0 10px;text-align:center}
.internal{margin:14px 0 8px;padding:10px 12px;border:2px dashed #c47a00;background:#fff4d6;border-radius:8px;font:13px/1.4 'Avenir Next',Helvetica,Arial,sans-serif;color:#6a4400}
.internal b{display:block;margin-bottom:3px;letter-spacing:.08em;text-transform:uppercase;font-size:11px}
.it img.up{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px;border:1px solid var(--gold);margin-bottom:8px}
.pr.tbd{font-size:16px;font-weight:600;color:var(--ink2)}
.sep{height:0;border-top:3px double var(--gold);margin:22px 0 14px}
.pt{margin:8px 0;font-size:16px}
.fwd{margin:12px 0;padding:10px 14px;border:1.5px dashed var(--gold);border-radius:10px;background:var(--cream)}
.fwd .k{font:600 11px 'Avenir Next',Helvetica,Arial,sans-serif;letter-spacing:.13em;text-transform:uppercase;color:var(--ink2);margin-bottom:3px}
.tier{margin:14px 0}
.tier .th{padding:6px 0;border-bottom:2px solid var(--brown);font-size:17px}.tier .th i{color:var(--ink2);font-size:15px}
.tier ul{list-style:none}
.tier li{display:grid;grid-template-columns:1fr auto;gap:3px 10px;align-items:baseline;padding:8px 0;border-bottom:1px dotted var(--gold)}
.tier .pn{line-height:1.25}.tier .pp{font-weight:700;white-space:nowrap;grid-row:1;grid-column:2}
.tier .pw{grid-column:2;grid-row:2;justify-self:end;font:600 12px 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2)}
.tier .pw a{display:inline-block;margin-left:3px;min-width:22px;text-align:center;border:1px solid var(--gold);border-radius:99px;padding:1px 5px;text-decoration:none;background:var(--cream)}
.stp{display:grid;grid-template-columns:34px 1fr;gap:10px;margin:12px 0}
.stp p{margin-top:2px;font-size:15.5px}
.pay{margin:8px 0;font-size:15.5px}

/* ---- editing controls (only exist when editlite.js runs with Liliane's key) ---- */
.eact{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.ebtn{font:600 13px 'Avenir Next',Helvetica,Arial,sans-serif;padding:8px 14px;min-height:40px;border:1.5px solid var(--brown);background:var(--paper);border-radius:99px;color:var(--brown)}
.ebtn.go{background:var(--brown);color:var(--cream)}
.badge{font:600 11px 'Avenir Next',Helvetica,Arial,sans-serif;letter-spacing:.04em;background:#FDE6D4;border:1px solid var(--gold);border-radius:99px;padding:3px 10px;color:var(--ink2)}
.eadd{margin:12px 0 4px;text-align:center}
.eadd.wide{max-width:640px;margin:18px auto}
.it.gone>*:not(.eact){display:none}
.it.gone::before{content:'Tirado desta página: ' attr(data-name);display:block;font-style:italic;color:var(--ink2);text-decoration:line-through}
.it.new{border-left:4px solid var(--sage);padding-left:10px}
.edp{outline:1px dotted var(--gold);outline-offset:2px;border-radius:4px;min-width:3ch;cursor:text}
.edp.chg{background:#fff3b0}
.emodal{position:fixed;inset:0;z-index:90;background:rgba(40,12,4,.5);display:flex;align-items:center;justify-content:center;padding:14px}
.ep{width:100%;max-width:520px;max-height:92vh;overflow:auto;background:var(--cream);border-radius:14px;padding:18px 20px}
.ep h3{font:400 26px/1.1 'Snell Roundhand','Apple Chancery','Segoe Script','Lucida Handwriting','Brush Script MT',cursive;margin-bottom:8px}
.ep label{display:block;font:600 14px 'Avenir Next',Helvetica,Arial,sans-serif;margin:12px 0 4px}
.ep .seg label{display:flex;gap:8px;align-items:center;margin:6px 0;font-weight:600}
.ep .hint{font:13px/1.4 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2);margin-top:8px;font-style:normal}
.ep .btns{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}

/* ---- every screen: tablet, laptop, big monitor ---- */
@supports (height:100dvh){.panel{max-height:94dvh}.ep{max-height:92dvh}}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[contenteditable]:focus-visible{outline:3px solid var(--red);outline-offset:2px}
@media (hover:hover){.add:hover,.btn:hover,.send:hover,.ebtn:hover{filter:brightness(1.18)}.chips a:hover{background:#FDE6D4}.route a:hover .rn{text-decoration:underline}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}#bar{transition:none}#bar.bump{animation:none}}
@media (min-width:700px){
  .wrap{max-width:780px;padding:0 28px}
  .story{max-width:64ch}
  .stop[data-door]{padding:24px 23px}
  .stop[data-door]>.wrap{padding:22px 30px 12px}
  .items{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));column-gap:30px}
  .it{break-inside:avoid}
  .photos img{max-height:440px}
  .route{columns:2;column-gap:30px}.route li{break-inside:avoid}
  .mylist ul{columns:3}
  .tier,.stp,.pay,.stop.plain .story{max-width:720px}
  /* the cart and the gift question are windows in the middle, not sheets from the bottom */
  #sheet,#gsheet,.emodal{align-items:center}
  .panel{border-radius:16px;max-width:600px;max-height:90vh;padding-bottom:24px}
  @supports (height:100dvh){.panel{max-height:90dvh}}
  #bar{left:50%;right:auto;bottom:18px;width:min(680px,calc(100% - 36px));border-radius:16px;padding:8px 14px;transform:translate(-50%,140%)}
  #bar.on{transform:translate(-50%,0)}
  @keyframes bump{50%{transform:translate(-50%,-6px)}}
  body{padding-bottom:110px}
  #toast{bottom:96px}
}
@media (min-width:1024px){
  .wrap{max-width:1080px;padding:0 36px}
  .top .wrap{max-width:1080px}
  .hero{padding:34px 0 18px}
  .hero .wrap{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);column-gap:48px;align-items:center;text-align:left}
  .hero img.cover{grid-column:1;grid-row:1/span 3;aspect-ratio:4/3.4}
  .hero h1,.hero .sub,.hero .intro{grid-column:2}
  .hero h1{font-size:68px;margin-top:0}
  .hero .sub{font-size:21px}.hero .intro{font-size:19px}
  .chips{position:static;border-bottom:0;background:transparent;backdrop-filter:none}
  .chips .wrap{flex-wrap:wrap;justify-content:center;overflow:visible;padding:10px 36px 18px}
  .stop{scroll-margin-top:16px}
  body.editing .stop{scroll-margin-top:62px}
  body.editing .chips{top:auto}
  .stop h2{font-size:48px}
  .stop[data-door]>.wrap{padding:26px 40px 16px}
  .photos.n3{grid-template-columns:repeat(3,1fr)}
  .photos.n1 img{max-height:380px}
  .mylist ul{columns:4}
  .route{columns:3}
  .items{grid-template-columns:repeat(auto-fill,minmax(310px,1fr))}
  .tier{margin-inline:auto}
}
/* a note per stop, only when editing (editlite.js) */
.enote{margin:10px 14px;max-width:740px;padding:10px 12px;border:1.5px dashed var(--brown);border-radius:10px;background:#fffbe8}
@media (min-width:780px){.enote{margin:12px auto}}
.enote label{display:block;font:600 13px 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2)}
.enote textarea{display:block;width:100%;margin-top:6px;font:16px/1.4 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--brown);background:#fff;border:1px solid var(--gold);border-radius:8px;padding:10px;min-height:64px;resize:vertical}
.editing .route a .edf{cursor:text}

/* "Sente um pouco": the two people of the house, next to the title, as on the catalogue page */
.resthead{display:flex;gap:16px;align-items:flex-end;margin-bottom:12px}
.resthead>div{min-width:0;flex:1}
.resthead{gap:22px;margin:8px 0 18px}
.resthead img{flex:none;width:132px;height:160px;margin:12px 0 12px 12px;object-fit:cover;object-position:30% 40%;border-radius:66px 66px 8px 8px;border:0;background:#eadfce;box-shadow:0 0 0 3px #FFFDF6,0 0 0 9px #CFAA77,0 0 0 11px #611A06,0 12px 18px 6px rgba(97,26,6,.22)}
.resthead h2{font-size:36px;line-height:1.02;margin:2px 0 0;text-wrap:balance}
.makernote{margin-top:12px;font:13px/1.4 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2)}
@media (min-width:700px){.resthead{gap:44px;align-items:center}.resthead .kick{font-size:13px}.resthead img{width:230px;height:280px;margin:16px 0 16px 16px;border-radius:115px 115px 10px 10px;box-shadow:0 0 0 4px #FFFDF6,0 0 0 13px #CFAA77,0 0 0 16px #611A06,0 16px 26px 8px rgba(97,26,6,.22)}.resthead h2{font-size:64px}}
@media (min-width:1024px){.resthead{gap:64px}.resthead img{width:290px;height:350px;margin:20px 0 20px 20px;border-radius:145px 145px 12px 12px;box-shadow:0 0 0 5px #FFFDF6,0 0 0 16px #CFAA77,0 0 0 20px #611A06,0 20px 32px 10px rgba(97,26,6,.22)}.resthead h2{font-size:88px}.resthead .kick{font-size:15px}}

/* the buttons that add a product or a stop: easy to find */
.eadd .ebtn{background:var(--brown);color:var(--cream);padding:11px 20px;font-size:15px;min-height:46px}
.eadd{margin:16px 0 6px}

/* "Ver como cliente": the same page without the outlines, buttons and notes of the editing view */
#edmode{flex:none;background:var(--paper);color:var(--brown);border:0;border-radius:99px;padding:7px 14px;font:600 13px 'Avenir Next',Helvetica,Arial,sans-serif;min-height:34px}
body.preview .edf,body.preview .edp{outline:none!important;background:none!important;cursor:auto!important}
body.preview .eact,body.preview .eadd,body.preview .enote,body.preview .internal,body.preview #edstatus,body.preview .it.gone{display:none!important}
body.preview #edbar{justify-content:flex-end}
body.preview .it.new{border-left:0;padding-left:0}

/* optional look for the page buttons at the top: each one is framed in the paper of the page it leads to (add ?chips=paper to the address to see it) */
.chip-paper .chips a{padding:4px;border-width:1.5px}
.chip-paper .chips a span{display:block;background:var(--paper);border-radius:99px;padding:5px 11px}

/* sharing: the button in the top bar, the block after an order is sent, and the end of the catalogue */
.top .r{display:flex;align-items:center;gap:12px}
.sharetop{display:inline-flex;align-items:center;gap:6px;background:var(--cream);color:var(--brown);border:0;border-radius:99px;padding:5px 13px;min-height:32px;font:700 12px 'Avenir Next',Helvetica,Arial,sans-serif;letter-spacing:.04em;cursor:pointer}
.sharetop svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sharebtn{display:block;width:100%;max-width:420px;margin:6px auto 0;background:var(--paper);color:var(--brown);border:1.5px solid var(--brown);border-radius:12px;padding:14px;font:700 16px 'Avenir Next',Helvetica,Arial,sans-serif;min-height:50px;cursor:pointer}
.sharebox{margin-top:22px;padding-top:16px;border-top:1px dotted var(--gold);text-align:center}
.sharebox .lead{font-size:17px;margin:0 0 6px}
#fim .shareh{font:600 20px/1.3 Georgia,serif;text-align:center;margin:4px 0 10px}
#fim .pdfline{text-align:center;margin:14px 0 0;font:14px 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2)}
#fim .stopbox{margin-top:24px;padding-top:16px;border-top:1px dotted var(--gold);text-align:center;font:14px/1.45 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2)}
#fim .stopbox .row{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:10px}
#fim .stopbox button{background:transparent;border:1px solid var(--gold);border-radius:99px;padding:9px 14px;font:600 14px 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2);min-height:44px;cursor:pointer}
#fim .trk{margin-top:16px;text-align:center;font-size:12.5px}
@media (max-width:520px){.top .sn{display:none}}
.stop{scroll-margin-top:58px}
/* the question on arrival ("Este catálogo chegou com o nome de Ana…"): one small card in the middle of the screen, above everything else */
#whoq{position:fixed;inset:0;z-index:90;background:rgba(40,12,4,.55);display:flex;align-items:center;justify-content:center;padding:18px}
#whoq[hidden]{display:none}
#whoq .panel{border-radius:16px;max-width:460px;max-height:92vh;padding:22px 22px 24px;text-align:left}
#whoq h2{font-size:30px;line-height:1.1;margin-bottom:10px}
#whoq p{margin:0 0 10px}
#whoq .send{margin-top:12px}
.send.alt{background:var(--paper);color:var(--brown);border:1.5px solid var(--brown)}
/* the suggested thank-you in the order: dashed, so it reads as an idea and not yet as a line of the order */
.offer{margin:12px 0 4px;padding:12px 14px 6px;border:1.5px dashed var(--brown);border-radius:10px;background:var(--paper)}
.offer .oh{font:700 16px/1.3 'Avenir Next',Helvetica,Arial,sans-serif}
.offer .note{margin:4px 0 10px}
.offer .orow{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}
.offer .orow select{flex:1 1 100%;min-width:0}
.offer .oadd{flex:1 1 100%;background:var(--red);color:#fff;border:0;border-radius:8px;padding:0 14px;font:700 15px 'Avenir Next',Helvetica,Arial,sans-serif;min-height:46px;cursor:pointer}
.offer .obtn{text-align:center}

/* the pop-up: a count beside "not a gift: it is for me" */
.gme{display:flex;gap:10px;align-items:center}
.gme .qty{flex:none}
.gme .send{margin-top:0;flex:1;padding:10px 12px;min-height:48px;font-size:16px;line-height:1.2}
.whob b{font:700 17px 'Avenir Next',Helvetica,Arial,sans-serif;color:var(--ink2);margin-right:4px}

/* product pictures: small beside the product, in the pop-up and in the order; tapped for the big one */
.thumb{position:relative;display:block;padding:0;border:1px solid var(--gold);border-radius:10px;background:#fff;overflow:hidden;cursor:zoom-in;flex:none}
.thumb img{display:block;width:100%;height:100%;object-fit:cover}
.thumb .tcount{position:absolute;right:4px;bottom:4px;background:rgba(40,12,4,.72);color:#fff;border-radius:99px;font:700 11px/1 'Avenir Next',Helvetica,Arial,sans-serif;padding:3px 6px}
.thumb.row{width:76px;height:76px}
.thumb.pop{width:52px;height:52px}
.thumb.ln{width:40px;height:40px;float:left;margin-right:8px}
.it.hasph{display:grid;grid-template-columns:76px 1fr;column-gap:12px;align-items:start}
.it.hasph>*{grid-column:2}
.it.hasph>.thumb{grid-column:1;grid-row:1/span 3}
.it.hasph>.whos{grid-column:1/-1}
#g-item{display:flex;align-items:center;gap:10px}
#viewer{position:fixed;inset:0;z-index:90;background:rgba(20,6,2,.93);display:flex;align-items:center;justify-content:center;touch-action:pan-y}
#viewer[hidden]{display:none}
#viewer figure{margin:0;max-width:96vw;display:flex;flex-direction:column;align-items:center;gap:10px}
#viewer img{max-width:96vw;max-height:82vh;object-fit:contain;border-radius:10px;background:#000}
#viewer figcaption{color:#fff;font:600 15px 'Avenir Next',Helvetica,Arial,sans-serif;text-align:center}
#viewer .vx,#viewer .vnav{position:absolute;width:48px;height:48px;border-radius:50%;border:0;background:rgba(255,255,255,.18);color:#fff;font:400 30px/1 'Avenir Next',Helvetica,Arial,sans-serif;cursor:pointer}
#viewer .vx{top:max(12px,env(safe-area-inset-top));right:12px}
#viewer .vnav{top:50%;transform:translateY(-50%)}
#viewer .vprev{left:8px}
#viewer .vnext{right:8px}
@media (hover:hover){#viewer .vx:hover,#viewer .vnav:hover{background:rgba(255,255,255,.34)}}
