/* Tangle-me — the look of a public portal page (moved out of portal.php, 2026-12-01)
   Location on server: /public_html/portal/portal.css
   Used by portal/portal.php (the portal) and portal/gift.php (a gift draft's
   preview), so a preview looks exactly like the real portal. Colours come from
   portal/look.css, loaded first. */
body{background:#0b0c0d; display:flex;flex-direction:column;align-items:center;padding:26px 16px 34px}
/* THE PHONE. Everything inside .wrap is the portal itself, exactly as the
   template shows it. No height is forced, so the orange outline closes where
   the portal's own content ends. Kept at every width, so the frame shows on a
   real phone too. */
.wrap{position:relative;width:100%;max-width:412px;background:var(--bg);flex:none;
      min-height:540px;   /* a sparse portal still reads as a phone, not a card */
      border:1.5px solid var(--frame);border-radius:42px;overflow:hidden;
      box-shadow:0 20px 60px rgba(0,0,0,.7),0 0 0 6px rgba(233,152,66,.05),0 0 34px rgba(233,152,66,.12)}
/* OUTSIDE the phone: the Tangle-me attribution line. Never inside the frame —
   the frame is the customer's portal, not our advertising. */
.below{width:100%;max-width:412px;flex:none}
.speaker{position:absolute;top:11px;left:50%;transform:translateX(-50%);width:92px;height:5px;
         border-radius:5px;background:rgba(255,255,255,.13);z-index:6;pointer-events:none}
.homebar{width:120px;height:4px;border-radius:4px;background:rgba(255,255,255,.14);margin:18px auto 16px}
svg{display:block}
.ico{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ico-sm{width:16px;height:16px}
/* hero — photo tile sits centred INSIDE the band, never crossing its edge */
.hero{position:relative}
.cover{height:196px;position:relative;background:radial-gradient(120% 150% at 50% -30%,#4a3821 0%,#2a2013 40%,#1b1c1e 75%);
       border-bottom:1px solid var(--line);overflow:hidden}
.cover::after{content:"";position:absolute;inset:0;opacity:.06;background:repeating-linear-gradient(115deg,#fff 0 1px,transparent 1px 13px)}
.avatar{position:absolute;left:50%;transform:translateX(-50%);bottom:18px;width:96px;height:96px;border-radius:24px;
        background:linear-gradient(145deg,#2c2e32,#191a1c);border:1.5px solid rgba(201,164,104,.45);
        display:flex;align-items:center;justify-content:center;font-size:38px;font-weight:600;color:var(--accent);
        z-index:3;box-shadow:0 8px 22px rgba(0,0,0,.5);overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover;object-position:50% 42%}
.head{padding:18px 22px 6px;text-align:center}
.name{font-size:26px;font-weight:700;letter-spacing:-.3px;line-height:1.15}
.meta{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:9px;color:var(--dim);font-size:13px;flex-wrap:wrap}
.meta .dot{opacity:.5}
.biz{color:var(--accent);font-weight:600}
.place{display:flex;align-items:flex-start;justify-content:center;gap:8px;margin-top:12px;color:var(--text);font-size:14px;line-height:1.4}
.place .ico{color:var(--accent);flex:none;margin-top:1px}
/* Plus Code — an identifier, not a button. Quiet, and select-all on one tap
   so it can be pasted into any maps app that accepts one. */
.pl{display:block;margin-top:6px;font-size:11.5px;color:var(--faint);text-align:left}
.pl b{font-weight:500;color:var(--dim)}
.pl code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;
         color:var(--accent);-webkit-user-select:all;user-select:all}
.place-link{color:inherit;text-decoration:none;border-bottom:1px dotted rgba(201,164,104,.5)}
.tagline{margin-top:10px;color:var(--dim);font-size:13.5px;line-height:1.55}
.demo-note{display:inline-block;margin-top:12px;padding:6px 12px;border-radius:20px;border:1px dashed rgba(201,164,104,.55);
           color:var(--accent);font-size:12px;line-height:1.45}
/* location card */
.loc{margin:0 20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}
.loc-map{position:relative;display:block;width:100%;height:150px;overflow:hidden;border:0;padding:0;
         background:#2a2c30;cursor:pointer;border-bottom:1px solid var(--line)}
.loc-tiles{position:absolute;width:768px;height:768px;display:grid;grid-template-columns:repeat(3,256px);
           filter:saturate(.85) brightness(.92)}
.loc-tiles img,.loc-tiles i{display:block;width:256px;height:256px}
.loc-pin{position:absolute;left:50%;top:50%;transform:translate(-50%,-100%);filter:drop-shadow(0 3px 4px rgba(0,0,0,.55))}
.loc-open{position:absolute;right:8px;top:8px;display:flex;align-items:center;gap:5px;padding:6px 10px;
          border-radius:16px;background:rgba(22,23,25,.88);color:var(--text);font-size:11.5px;font-weight:600}
.loc-attr{position:absolute;right:4px;bottom:2px;font-size:9px;color:#333;background:rgba(255,255,255,.7);padding:0 3px;border-radius:3px}
.loc-body{padding:12px 14px 13px}
.loc-addr{font-size:14px;line-height:1.45}
.loc-near{font-size:12.5px;color:var(--dim);margin-top:3px;line-height:1.4}
.loc-note{display:flex;gap:8px;align-items:flex-start;margin-top:10px;padding:9px 10px;border-radius:10px;
          background:var(--accent-soft);color:var(--text);font-size:13px;line-height:1.45}
.loc-note .ico{color:var(--accent);flex:none;margin-top:1px}
.loc-body .pl{margin-top:9px}
.loc-addr-row{display:flex;align-items:flex-start;gap:10px}
.loc-addr-row .loc-addr{flex:1;min-width:0;overflow-wrap:anywhere}
.loc-copy{flex:none;display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:16px;
          border:1px solid var(--line);background:var(--surface2);color:var(--text);font:inherit;font-size:12px;
          font-weight:600;cursor:pointer}
.loc-copy .ico{width:14px;height:14px}
.loc-copy.ok{border-color:rgba(123,191,143,.6);color:var(--open)}
.loc-hint{font-size:11.5px;color:var(--faint);margin-top:4px;line-height:1.45}
.loc-dir{display:flex;gap:7px;align-items:flex-start;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.loc-dir .ico{flex:none;width:13px;height:13px;margin-top:1px;color:var(--accent)}
/* full-screen map for visitors */
.mapv{position:fixed;inset:0;z-index:80;background:#111214;display:none}
.mapv.show{display:block}
.mapv-map{position:absolute;inset:0}
.mapv-top{position:absolute;top:0;left:0;right:0;z-index:520;display:flex;justify-content:flex-end;gap:8px;
          padding:calc(10px + env(safe-area-inset-top)) 12px 10px}
.mapv-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;height:44px;padding:0 14px;
          border-radius:22px;border:1px solid var(--line);background:rgba(38,40,44,.96);color:var(--text);
          font:inherit;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.45)}
.mapv-btn.on{background:var(--accent);color:#161719;border-color:var(--accent)}
.mapv-sheet{position:absolute;left:0;right:0;bottom:0;z-index:520;background:var(--bg);border-top:1px solid var(--line);
            border-radius:20px 20px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));
            box-shadow:0 -10px 30px rgba(0,0,0,.5);max-width:520px;margin:0 auto}
.mapv-name{font-size:16px;font-weight:700}
.mapv-sheet .loc-addr{margin-top:3px}
.mapv-row{display:flex;gap:8px;margin-top:14px}
.mapv-go{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:13px;border-radius:12px;
         background:var(--accent);color:#161719;font-weight:700;font-size:14.5px;text-decoration:none}
.mapv-go .ico{stroke:#161719}
.mapv-sm{flex:none;width:50px;display:flex;align-items:center;justify-content:center;border-radius:12px;
         border:1px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer}
/* Leaflet's stylesheet is injected after this one; the extra class makes these win. */
.mapv .leaflet-bottom .leaflet-control-attribution{font-size:9.5px;margin-bottom:190px}
.mapv .leaflet-top .leaflet-control-zoom{margin-top:66px}
.mapv-toast{position:absolute;left:50%;top:70px;transform:translateX(-50%);z-index:530;padding:8px 14px;border-radius:18px;
            background:rgba(22,23,25,.94);color:var(--text);font-size:12.5px;display:none}
/* action row — swipeable, sized so more buttons can be added later */
.actions-wrap{position:relative}
.actions-wrap::after{content:"";position:absolute;top:0;right:0;bottom:6px;width:26px;z-index:2;pointer-events:none;
                     background:linear-gradient(to right,rgba(22,23,25,0),rgba(22,23,25,.94))}
.actions{display:flex;gap:9px;padding:18px 20px 6px;overflow-x:auto;
         scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scroll-padding-left:20px}
.actions::-webkit-scrollbar{height:0}
.pill{flex:0 0 70px;scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;gap:6px;
      padding:12px 6px;border:1px solid var(--line);border-radius:14px;background:var(--surface);
      color:var(--text);font-size:11px;font-weight:500;text-decoration:none;cursor:pointer;
      transition:transform .1s,border-color .15s}
.pill:active{transform:scale(.96)}
.pill.primary{background:var(--accent-soft);border-color:rgba(201,164,104,.4);color:var(--accent)}
.pill{position:relative}
.pill-n{position:absolute;top:4px;right:8px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#e5484d;
        color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;box-sizing:border-box}
.pill.off{background:transparent;border-style:dashed;border-color:rgba(255,255,255,.22);color:var(--faint)}
.pill .ico{width:19px;height:19px}
.section-h{padding:20px 22px 8px;font-size:11px;letter-spacing:.5px;text-transform:uppercase;color:var(--faint)}
/* services — one free-text line, no prices, works for any trade */
.svc-note{margin:0 20px;padding:15px 16px;border:1px solid var(--line);border-left:2px solid rgba(201,164,104,.55);
          border-radius:12px;background:var(--surface);color:var(--text);font-size:14.5px;line-height:1.6;
          white-space:pre-wrap;overflow-wrap:anywhere}
/* work album */
.album-wrap{position:relative}
.album-wrap::after{content:"";position:absolute;top:0;right:0;bottom:4px;width:24px;z-index:2;pointer-events:none;
                   background:linear-gradient(to right,rgba(22,23,25,0),rgba(22,23,25,.94))}
.album{display:flex;gap:8px;overflow-x:auto;padding:2px 20px 4px;scroll-snap-type:x proximity;scroll-padding-left:20px}
.album::-webkit-scrollbar{height:0}
.album img{flex:0 0 132px;width:132px;height:166px;object-fit:cover;border-radius:12px;
           border:1px solid var(--line);scroll-snap-align:start;cursor:pointer;background:var(--surface)}
/* lightbox */
.shot{position:fixed;inset:0;background:rgba(8,9,10,.97);z-index:70;display:none;
      flex-direction:column;align-items:center;justify-content:center}
.shot.show{display:flex}
.shot img{max-width:94vw;max-height:78vh;object-fit:contain;border-radius:12px}
.shot .bar{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;
           padding:16px 18px;color:var(--dim);font-size:13px}
.shot .x{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:var(--surface);
         color:var(--text);font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer}
.shot .nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;
           border:1px solid var(--line);background:rgba(31,33,36,.9);color:var(--text);cursor:pointer;
           display:flex;align-items:center;justify-content:center}
.shot .nav.prev{left:10px}.shot .nav.next{right:10px}
/* opening hours — consecutive days with the same times are grouped into ranges */
.hours{margin:2px 22px 0;color:var(--dim);font-size:12.5px;line-height:1.7}
.hours b{color:var(--text);font-weight:600}
/* find me online — branded rows, same as the template */
.links{display:flex;flex-direction:column;gap:9px;padding:4px 22px 4px}
.linkbtn{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid var(--line);
         border-radius:12px;background:var(--surface);font-size:13.5px;font-weight:500;color:var(--text);
         text-decoration:none;transition:border-color .15s}
.linkbtn:hover{border-color:rgba(201,164,104,.4)}
.linkbtn .badge{width:32px;height:32px;border-radius:9px;flex:none;display:flex;align-items:center;justify-content:center;color:#161719}
.b-web{background:linear-gradient(135deg,#c9a468,#a9863f)}
.b-ig{background:linear-gradient(135deg,#feda75,#d62976 45%,#962fbf 80%,#4f5bd5)}
.b-fb{background:#1877f2}
.b-wa{background:#25d366}
.b-yt{background:#ff0000}
.linkbtn .lt{display:flex;flex-direction:column;min-width:0}
.linkbtn .lt small{color:var(--faint);font-size:11px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.linkbtn .chev{margin-left:auto;color:var(--faint);flex:none}
.footer{text-align:center;padding:22px 20px 24px}
.footer a{color:var(--faint);font-size:11.5px;text-decoration:none}
.footer .made{font-size:11px;margin-top:8px}
/* The provenance badge. One colour, takes the footer's own ink, and it is
   a link so the taps can be counted. It must never out-shout the owner. */
.footer .made a{display:inline-flex;align-items:center;gap:6px;color:#5a6066;text-decoration:none}
.footer .made a:hover{color:var(--dim)}
.footer .report-name{background:none;border:0;color:var(--faint);font-size:11px;margin-top:10px;cursor:pointer;font-family:inherit}
.footer .made .mk{width:13px;height:15px;flex:none}
.footer .what{margin:12px auto 0;max-width:300px;font-size:11px;line-height:1.5;color:#5a6066}
.footer .what a{font-size:11px;color:var(--dim);border-bottom:1px dotted rgba(154,160,166,.5)}
.owner-bar{margin:8px 20px 0;padding:8px 12px;border:1px dashed rgba(201,164,104,.45);border-radius:10px;color:var(--accent);font-size:12px;text-align:center;background:var(--accent-soft)}
.owner-links{display:flex;gap:8px;justify-content:center;margin-top:7px}
.owner-bar > .owner-links:first-child{margin-top:0}
.owner-links a{flex:1;max-width:150px;padding:8px 10px;border-radius:9px;border:1px solid var(--accent);background:var(--accent);color:#161719;
               font-weight:700;text-decoration:none}
.owner-links a + a{background:transparent;color:var(--accent);border:1px solid rgba(201,164,104,.5)}
.owner-other{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:8px}
.owner-other button{font:inherit;font-size:11.5px;font-weight:600;padding:5px 10px;border-radius:14px;cursor:pointer;
                    background:transparent;color:var(--accent);border:1px dashed rgba(201,164,104,.6)}
/* "Saved to your Portal Book": shown once per Book, after its first Save */
.sheet-bg{position:fixed;inset:0;z-index:75;background:rgba(6,7,8,.72);display:none}
.sheet-bg.show{display:block}
.sheet{position:absolute;left:0;right:0;bottom:0;max-width:520px;margin:0 auto;background:var(--bg);
       border-top:1px solid var(--line);border-radius:20px 20px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom))}
.sheet-h{font-size:16px;font-weight:700;margin-bottom:4px}
.sheet-s{font-size:12.5px;color:var(--dim);margin-bottom:14px}
.sheet-opt{display:flex;align-items:center;gap:13px;width:100%;padding:14px;margin-bottom:10px;border-radius:14px;
           border:1px solid var(--line);background:var(--surface);color:var(--text);font:inherit;text-align:left;
           text-decoration:none;cursor:pointer}
.sheet-opt .ic{flex:none;width:40px;height:40px;border-radius:11px;display:flex;align-items:center;justify-content:center;
               background:var(--accent-soft);color:var(--accent)}
.sheet-opt .ic .ico{width:20px;height:20px}
.sheet-opt b{display:block;font-size:14.5px;font-weight:600}
.sheet-opt small{display:block;font-size:12px;color:var(--dim);margin-top:2px;line-height:1.4}
.sheet-link{display:block;text-align:center;margin-top:4px;padding:10px;color:var(--accent);font-size:13.5px;
            font-weight:600;text-decoration:none}
.sheet-close{display:block;width:100%;margin-top:6px;padding:11px;border-radius:12px;border:1px solid var(--line);
             background:transparent;color:var(--dim);font:inherit;font-size:13.5px;cursor:pointer}
.save-book{display:flex;align-items:center;justify-content:center;gap:8px;width:calc(100% - 40px);margin:10px 20px 0;
           padding:12px 14px;border-radius:12px;border:1px solid var(--accent);background:var(--accent);color:#161719;
           font:inherit;font-size:14.5px;font-weight:700;cursor:pointer}
.save-book .ico{width:18px;height:18px}
.save-book.saved{background:transparent;color:var(--open);border-color:rgba(123,191,143,.45)}
.save-book:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.install-book{display:flex;align-items:center;justify-content:center;gap:7px;width:calc(100% - 40px);margin:8px 20px 0;
              padding:10px 14px;border-radius:12px;border:1px dashed rgba(201,164,104,.55);background:transparent;
              color:var(--accent);font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;text-decoration:none}
.install-book .ico{width:16px;height:16px}
.install-book[hidden]{display:none}
.sheet-steps{margin:0 0 12px;padding-inline-start:20px;font-size:13px;color:var(--text);line-height:1.6}
.sheet-go{display:block;width:100%;padding:13px;border-radius:12px;border:0;background:var(--accent);color:#161719;
          font:inherit;font-size:14.5px;font-weight:700;text-align:center;text-decoration:none;cursor:pointer;margin-bottom:6px}
#saveSheet [hidden]{display:none}
.footer .saved-link{display:inline-block;margin-top:8px;color:var(--accent);font-size:12px;text-decoration:none}
.footer .get-book{display:block;margin:10px auto 0;padding:8px 14px;border-radius:10px;border:1px solid rgba(201,164,104,.45);
                  background:none;color:var(--accent);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
.footer .get-book[hidden]{display:none}
.pb-toast{position:fixed;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:80;
          background:#2d2f33;border:1px solid var(--line);border-radius:22px;padding:10px 16px;font-size:13px;
          color:var(--text);box-shadow:0 8px 24px rgba(0,0,0,.5);display:none;white-space:nowrap}
/* QR overlay */
/* QR overlay — pinned to the frame, not the viewport, so it stays "inside the phone" */
.overlay{position:fixed;top:26px;bottom:34px;left:50%;transform:translateX(-50%);
         width:min(412px,calc(100% - 32px));border-radius:42px;background:rgba(10,11,12,.96);z-index:60;display:none;
         flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center}
.overlay.show{display:flex}
.qr-card{background:#fff;padding:22px;border-radius:22px}
.overlay .qn{margin-top:22px;font-size:18px;font-weight:700}
.overlay .qs{margin-top:6px;font-size:12.5px;color:var(--dim)}
.overlay .close{margin-top:26px;padding:11px 26px;border:1px solid var(--line);border-radius:22px;
                color:var(--text);font-size:13px;background:var(--surface);cursor:pointer}
.nf{padding:80px 24px;text-align:center}
.nf h1{font-size:20px;margin-bottom:10px}
.nf p{color:var(--dim);font-size:14px}
.nf p + p{margin-top:14px}
/* The retired-ID reassurance on a deleted Tangle. Quieter than the headline,
   but it is the sentence that answers 'is my printed QR now dangerous?'. */
.nf-note{max-width:340px;margin-left:auto;margin-right:auto;font-size:13px;
         line-height:1.55;color:var(--faint);border-top:1px solid var(--line);padding-top:14px}
/* on a phone the frame stays — just tucked closer to the screen edge */
@media (max-width:480px){
  body{padding:9px 9px 12px}
  .wrap{border-radius:34px}
  .speaker{top:9px;width:78px}
  .overlay{top:9px;bottom:12px;width:calc(100% - 18px);border-radius:34px}
}
