/*
 * Builder cards (layout_version 2). Colours, fonts and background come from
 * CSS variables set per card (CardBuilder::styleVars). Layout variants are
 * classes on <body>: hdr-*, btn-*, sec-* (see config/card_templates.php).
 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
}
/* Computers (owner 2026-11-19: "the back ground image pixelates a lot" on full-page designs): an uploaded background's own
   computer version replaces --bg from 900px (CardBuilder::styleVars, framed wide and up to 2560px). A picture the owner
   chose that was made for phones only (library pictures, older uploads: body.bg-soft) is shown softly blurred and a
   little darker, so it looks deliberate instead of blocky. Phones keep the small phone picture. */
@media (min-width: 900px) {
    body.bg-soft { background: #111; }
    /* ::after, because the glass designs use ::before for their drifting light (it stays above this layer) */
    body.bg-soft::after {
        content: ""; position: fixed; inset: -40px; z-index: -1; pointer-events: none;
        background: var(--bg); filter: blur(9px) brightness(0.88);
    }
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.page { max-width: 480px; margin: 0 auto; padding: 0 0 110px; }
.wrap { padding: 0 16px; }

/* ---------- Header ---------- */
.header { text-align: center; padding: 36px 20px 8px; }
/*
 * Header pictures. Materials set:
 *   --plate        plate colour behind a logo (--plate-dark for light, transparent logos)
 *   --frame        rings around a plated logo or the small logo badge
 *   --photo-frame  rings around the profile photo and the round cover logo
 *   --bare         drop-shadow for a transparent logo shown without a plate (follows its shape)
 */
.logo, .logo-chip { object-fit: contain; background: var(--plate, #fff); box-shadow: var(--frame, 0 0 0 0 transparent), 0 10px 30px rgb(0 0 0 / .18); }
.logo { width: 120px; height: 120px; border-radius: var(--radius); padding: 6px; margin: 0 auto 18px; }
/* A solid, square-ish logo (photo or badge) fills its frame: no plate, nothing cropped by padding. */
.logo.fill, .logo-chip.fill { padding: 0 !important; object-fit: cover; background: transparent; }
.company { font-family: var(--font-head); font-size: 26px; font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.person { margin: 8px 0 0; font-size: 17px; font-weight: 600; }
.position { margin: 2px 0 0; opacity: .8; font-size: 14px; }

.hdr-cover .header { padding: 0 0 8px; }
.hdr-cover .cover { height: 190px; background-size: cover; background-position: center 30%; border-radius: 0 0 var(--radius) var(--radius); }
.hdr-cover .logo.fill { padding: 0; }
/* Logos are not cropped into a circle: a rounded square that follows the logo (wide logos get a wider plate).
   Templates can change the corner with --logo-radius. Profile photos use the same frame unless the owner picks
   Round or Square (.hdr-profile .photo.shape-…). */
.hdr-cover .logo { width: auto; min-width: 116px; max-width: min(260px, 80%); height: 116px; margin-top: -58px; position: relative; border-radius: var(--logo-radius, 26px); padding: 10px; box-shadow: var(--photo-frame, 0 0 0 3px #fff), 0 10px 30px rgb(0 0 0 / .25); }
.hdr-cover .logo.fill { width: 116px; min-width: 0; border-radius: var(--logo-radius, 26px); }

.hdr-split .header { display: flex; align-items: center; gap: 18px; text-align: left; padding: 40px 20px 12px; }
.hdr-split .logo { width: 96px; height: 96px; margin: 0; flex-shrink: 0; }
.hdr-split .company { font-size: 23px; }

.hdr-profile .photo { width: 156px; height: 156px; border-radius: var(--photo-radius, var(--logo-radius, 26px)); object-fit: cover; margin: 0 auto 16px; box-shadow: var(--photo-frame, 0 0 0 3px rgb(255 255 255 / .9)), 0 12px 34px rgb(0 0 0 / .25); }
.hdr-profile .photo.shape-circle { border-radius: 50%; }
.hdr-profile .photo.shape-square { border-radius: 6px; }
/* The owner's cover above the profile photo, and the owner's photo on the cover layout. */
.hdr-profile .header:has(.profile-cover) { padding-top: 0; }
.hdr-profile .profile-cover { height: 150px; margin: 0 -20px; background-size: cover; background-position: center 35%; border-radius: 0 0 var(--radius) var(--radius); }
.hdr-profile .profile-cover + .photo { margin-top: -78px; position: relative; }
.hdr-cover .photo { width: 124px; height: 124px; margin: -62px auto 14px; position: relative; display: block; object-fit: cover; border-radius: var(--photo-radius, var(--logo-radius, 26px)); box-shadow: var(--photo-frame, 0 0 0 3px #fff), 0 10px 30px rgb(0 0 0 / .25); }
.hdr-cover .photo.shape-circle { border-radius: 50%; }
.hdr-cover .photo.shape-square { border-radius: 6px; }
.hdr-cover .logo-chip { width: 50px; height: 50px; border-radius: 14px; padding: 3px; margin: -46px auto 14px 56%; position: relative; box-shadow: var(--frame, 0 0 0 0 transparent), 0 4px 12px rgb(0 0 0 / .2); }
/* Logo plates (CardBuilder::logoPresentation) */
.plate-dark { --plate: var(--plate-dark, #111827); }
.wave-badge.bare, .logo.bare, .logo-chip.bare { background: transparent !important; box-shadow: none !important; border: 0 !important; outline: 0 !important; padding: 0; border-radius: 0; filter: var(--bare, drop-shadow(0 4px 14px rgb(0 0 0 / .35))); }
.hdr-profile .logo-chip { width: 54px; height: 54px; border-radius: 14px; padding: 3px; margin: -48px auto 14px 56%; position: relative; box-shadow: var(--frame, 0 0 0 0 transparent), 0 4px 12px rgb(0 0 0 / .2); }

/* ---------- Quick buttons ---------- */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 18px 16px 6px; }
.action { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 60px; font-size: 11px; font-weight: 500; line-height: 1.2; text-align: center; }
.action .ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-size: 22px; box-shadow: 0 6px 16px rgb(0 0 0 / .18); transition: transform .15s; }
.action:active .ic { transform: scale(.94); }

.btn-pills .actions { gap: 8px; }
.btn-pills .action { width: auto; flex-direction: row; background: var(--accent); color: var(--accent-text); border-radius: var(--radius-btn); padding: 10px 16px; font-size: 14px; box-shadow: 0 4px 12px rgb(0 0 0 / .15); }
/* Designer only: "Add WhatsApp" stands where the WhatsApp button goes until there is a number */
.action.action-add { opacity: .65; }
.action.action-add .ic { outline: 2px dashed currentColor; outline-offset: 3px; }
.btn-pills .action .ic { width: auto; height: auto; background: none; box-shadow: none; font-size: 16px; color: inherit; }

.btn-list .actions { flex-direction: column; gap: 8px; }
.btn-list .action { width: auto; flex-direction: row; gap: 14px; background: var(--surface); color: var(--surface-text); border-radius: var(--radius); padding: 10px 14px; font-size: 15px; box-shadow: 0 2px 10px rgb(0 0 0 / .08); }
.btn-list .action .ic { width: 40px; height: 40px; font-size: 18px; box-shadow: none; }
.btn-list .action::after { content: '\203A'; margin-left: auto; font-size: 22px; opacity: .45; }

.btn-tiles .actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.btn-tiles .action { width: auto; background: var(--surface); color: var(--surface-text); border-radius: var(--radius); padding: 14px 6px; box-shadow: 0 2px 10px rgb(0 0 0 / .08); }
.btn-tiles .action .ic { width: 44px; height: 44px; font-size: 19px; box-shadow: none; }

/* ---------- Sections ---------- */
.section { margin: 14px 16px 0; padding: 20px; border-radius: var(--radius); }
.section > h2 { font-family: var(--font-head); font-size: 19px; margin: 0 0 14px; line-height: 1.25; }
.sec-cards .section { background: var(--surface); color: var(--surface-text); box-shadow: 0 6px 24px rgb(0 0 0 / .1); }
.sec-flat .section { color: var(--text); padding: 18px 4px; margin: 6px 16px 0; border-top: 1px solid rgb(127 127 127 / .25); border-radius: 0; }
.sec-glass .section { background: rgb(255 255 255 / .1); color: var(--text); border: 1px solid rgb(255 255 255 / .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
/* Secondary text is a softer shade of whatever text colour its section uses, so it always reads
   (a fixed grey disappeared on coloured glass sections such as Fresh). */
.muted { color: color-mix(in srgb, currentColor 78%, transparent); }
.rich p { margin: 0 0 10px; }
.rich ul, .rich ol { margin: 0 0 10px; padding-left: 20px; text-align: left; }
.align-center .rich ul, .align-center .rich ol { display: inline-block; }
.rich a { color: var(--accent); }
.sec-glass .rich a, .sec-flat .rich a { color: inherit; text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-text); border: 0; border-radius: var(--radius-btn); padding: 12px 20px; font: 600 14px var(--font-body); text-decoration: none; cursor: pointer; }
.btn-outline { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-row .btn { flex: 1; min-width: 140px; }

/* contact */
.contact-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; text-decoration: none; text-align: left; border-bottom: 1px solid rgb(127 127 127 / .15); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-size: 16px; }
.contact-row small { display: block; font-size: 12px; opacity: .65; }
.contact-row > span:last-child { min-width: 0; overflow-wrap: anywhere; }

/* social */
.socials { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.align-left .socials { justify-content: flex-start; }
.social { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 20px; text-decoration: none; }
.social.fb { background: #1877f2; } .social.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social.in { background: #0a66c2; } .social.yt { background: #ff0000; } .social.tw { background: #000; } .social.pin { background: #e60023; } .social.tt { background: #000; }

/* services */
.item { text-align: left; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgb(127 127 127 / .15); }
.item:last-child { border-bottom: 0; }
.item img { width: 84px; height: 84px; object-fit: cover; border-radius: calc(var(--radius) * .6); flex-shrink: 0; }
.item h3 { margin: 0 0 4px; font-size: 16px; }
.item .rich p { margin: 0 0 6px; font-size: 14px; }
.item a.more { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.sec-glass .item a.more, .sec-flat .item a.more { color: inherit; text-decoration: underline; }

/* gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) * .5); cursor: zoom-in; }
.gallery img:first-child:nth-last-child(odd) { grid-column: span 2; aspect-ratio: 16 / 9; }

/* video (loads YouTube only on tap) */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: calc(var(--radius) * .6); overflow: hidden; background: #000 center / cover; margin-bottom: 10px; cursor: pointer; }
.video::after { content: ''; position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 14px; background: rgb(255 0 0 / .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* hours, links, testimonials, bank */
.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed rgb(127 127 127 / .3); }
.row:last-child { border-bottom: 0; }
.link-btn { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; margin-bottom: 8px; border-radius: var(--radius-btn); background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 600; }
.quote { margin: 0 0 14px; padding: 16px; border-radius: calc(var(--radius) * .6); background: rgb(127 127 127 / .1); text-align: left; }
.quote p { margin: 0 0 8px; font-style: italic; }
.quote cite { font-style: normal; font-weight: 600; font-size: 13px; }

/* shop */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.product { border-radius: calc(var(--radius) * .6); overflow: hidden; background: rgb(127 127 127 / .08); display: flex; flex-direction: column; }
.product img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.product .body { padding: 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product h3 { font-size: 14px; margin: 0; }
.product .price { font-weight: 700; color: var(--accent); }
.sec-glass .product .price, .sec-flat .product .price { color: inherit; }
.product del { font-size: 12px; opacity: .6; margin-left: 6px; font-weight: 400; }
.product .btn { margin-top: auto; padding: 8px 10px; font-size: 12px; }

/* form */
.form input, .form textarea { width: 100%; padding: 12px 14px; margin-bottom: 10px; border-radius: calc(var(--radius) * .5); border: 1px solid rgb(127 127 127 / .35); font: 15px var(--font-body); background: #fff; color: #111; }
/* The phone box sits inside the country-picker wrapper, which swallowed its gap (owner 2026-11-17: no space under Mobile number) */
.form [data-phone] { margin-bottom: 10px; } .form [data-phone] .iti { display: block; width: 100%; } .form [data-phone] input { margin-bottom: 0; }
.alert { padding: 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.alert.ok { background: #dcfce7; color: #166534; } .alert.err { background: #fee2e2; color: #991b1b; }

/* qr */
.qr { box-sizing: border-box; width: 200px; max-width: 100%; height: auto; aspect-ratio: 1; display: block; margin: 0 auto; background: #fff; padding: 10px; border-radius: 12px; }

/* bottom bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgb(0 0 0 / .35), transparent); }
.bar .inner { max-width: 448px; margin: 0 auto; display: flex; gap: 10px; }
.bar .btn { flex: 1; box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
.bar .btn.share { flex: 0 0 52px; padding: 0; background: #fff; color: #111; }

.footer { text-align: center; font-size: 12px; opacity: .75; padding: 24px 16px 0; }
.footer a { font-weight: 600; text-decoration: none; }

.views { position: absolute; top: 8px; right: 10px; font-size: 9px; line-height: 1.4; background: rgb(0 0 0 / .3); color: #fff; padding: 1px 7px; border-radius: 99px; z-index: 2; opacity: .8; }
.views i { margin-right: 2px; }

/* Photo viewer */
.lightbox { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgb(0 0 0 / .92); opacity: 0; transition: opacity .18s; font-family: var(--font-body); }
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; max-width: min(92vw, 900px); text-align: center; }
.lb-stage img { max-width: 100%; max-height: 80vh; border-radius: 10px; margin: 0 auto; box-shadow: 0 20px 60px rgb(0 0 0 / .5); }
.lb-stage figcaption { color: #fff; font-size: 14px; margin-top: 12px; opacity: .9; }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgb(255 255 255 / .14); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); }
.lb-close:hover, .lb-nav:hover { background: rgb(255 255 255 / .28); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-nav { display: none; }
.lb-count { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; opacity: .8; }
.item img { cursor: zoom-in; }

.est { margin-top: -8px; }
.share-row { margin-top: 16px; }
.btn-block { width: 100%; }

/* ---------- Button style: outline rings (icon in a ring, label underneath) ---------- */
.btn-rings .action .ic { background: transparent; color: var(--text); border: 2px solid var(--accent); box-shadow: none; }
.btn-rings .action { color: var(--text); }

/* ---------- Button animations (state.anim; one per card) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .anim-pulse .action .ic { animation: a-pulse 2.4s ease-out infinite; }
    .anim-pulse .action:nth-child(2) .ic { animation-delay: .3s; } .anim-pulse .action:nth-child(3) .ic { animation-delay: .6s; }
    .anim-pulse .action:nth-child(4) .ic { animation-delay: .9s; } .anim-pulse .action:nth-child(5) .ic { animation-delay: 1.2s; }
    @keyframes a-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 12px transparent; } }

    .anim-bounce .action { animation: a-bounce .6s cubic-bezier(.3, 1.6, .5, 1) both; }
    .anim-bounce .action:nth-child(2) { animation-delay: .08s; } .anim-bounce .action:nth-child(3) { animation-delay: .16s; }
    .anim-bounce .action:nth-child(4) { animation-delay: .24s; } .anim-bounce .action:nth-child(5) { animation-delay: .32s; }
    @keyframes a-bounce { from { opacity: 0; transform: translateY(18px) scale(.8); } to { opacity: 1; transform: none; } }

    .anim-glow .action .ic { animation: a-glow 2.8s ease-in-out infinite; }
    @keyframes a-glow { 50% { box-shadow: 0 0 18px 2px color-mix(in srgb, var(--accent) 70%, transparent); } }

    .anim-float .action .ic { animation: a-float 3.2s ease-in-out infinite; }
    .anim-float .action:nth-child(even) .ic { animation-delay: -1.6s; }
    @keyframes a-float { 50% { transform: translateY(-4px); } }

    .anim-shine .action .ic, .anim-shine.btn-pills .action, .anim-shine.btn-list .action, .anim-shine.btn-tiles .action { position: relative; overflow: hidden; }
    .anim-shine .action .ic::after, .anim-shine.btn-pills .action::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .45) 50%, transparent 65%); transform: translateX(-120%); animation: a-shine 3.5s ease-in-out infinite; }
    @keyframes a-shine { 60%, 100% { transform: translateX(120%); } }

    .action:hover .ic { transform: translateY(-2px); }
}

/* ---------- Video background (owner's own clip) ---------- */
.bg-video, .bg-video-dim { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
/* A moving picture behind the page plays phone-sized in the middle, never stretched (it pixelates); the sides show its soft thumbnail. */
.bg-mov { position: fixed; top: 0; bottom: 0; left: 50%; width: min(100vw, 480px); transform: translateX(-50%); z-index: -1; pointer-events: none; background: var(--bg-mov); }
.bg-video { object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .bg-video { display: none; } }

/* ---------- Contact details: plain text ---------- */
.contact-list { margin: 0; }
.contact-list > div { padding: 8px 0; border-bottom: 1px solid rgb(127 127 127 / .15); }
.contact-list > div:last-child { border-bottom: 0; }
.contact-list dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.contact-list dd { margin: 1px 0 0; font-size: 14px; overflow-wrap: anywhere; }

/* ---------- Rounded-square icon buttons ---------- */
.btn-squares .action .ic { border-radius: 14px; }

/* ---------- Share sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgb(0 0 0 / 0); transition: background .2s; }
.sheet.open { background: rgb(0 0 0 / .5); }
.sheet[hidden] { display: none; }
.sheet-panel {
    width: 100%; max-width: 480px; padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
    background: #fff; color: #111827; border-radius: 22px 22px 0 0; font-family: var(--font-body);
    transform: translateY(100%); transition: transform .22s ease-out; box-shadow: 0 -10px 40px rgb(0 0 0 / .25);
}
.sheet.open .sheet-panel { transform: none; }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: #d1d5db; margin: 0 auto 12px; }
.sheet-title { margin: 0 0 14px; text-align: center; font-weight: 600; font-size: 15px; }
.sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
.sheet-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 11.5px; text-decoration: none; cursor: pointer; }
.sheet-item[hidden] { display: none; }
.sheet-ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 22px; }
.sheet-close { display: block; width: 100%; margin-top: 18px; padding: 12px; border: 0; border-radius: 12px; background: #f3f4f6; color: #111827; font: inherit; font-weight: 600; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-panel { transition: none; } }

/* ---------- Bottom bar: buttons sit together in the middle ---------- */
.bar .inner { justify-content: center; }
.bar .btn { flex: 0 1 auto; padding-left: 28px; padding-right: 28px; }
.bar .btn.share { flex: 0 0 52px; }

/* ---------- Quick buttons without text (owner's choice); still read out by screen readers ---------- */
.no-labels .action .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-labels.btn-pills .action, .no-labels.btn-list .action, .no-labels.btn-tiles .action { justify-content: center; }

/* ---------- Send card to a WhatsApp number ---------- */
.wa-send { max-width: 440px; margin: 14px auto 0; padding: 14px; text-align: left; border-radius: calc(var(--radius) + 4px); background: #fff; color: #111827; box-shadow: 0 10px 30px -12px rgb(0 0 0 / .35); font-family: var(--font-body); }
.wa-send-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wa-send-head strong { display: block; font-size: 14px; line-height: 1.2; }
.wa-send-head small { display: block; font-size: 12px; color: #6b7280; }
.wa-send-ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-size: 20px; }
.wa-send-row { display: flex; gap: 8px; }
.wa-send-row .iti { flex: 1; min-width: 0; }
.wa-send input[type=tel] { width: 100%; min-width: 0; flex: 1; height: 46px; border: 1px solid #d1d5db; border-radius: 12px; padding: 0 12px; font: 15px var(--font-body); background: #f9fafb; color: #111827; }
.wa-send input[type=tel]:focus { outline: 2px solid #25d366; outline-offset: 0; border-color: transparent; background: #fff; }
.wa-send-row > button { height: 46px; border: 0; border-radius: 12px; background: #25d366; color: #fff; font: 600 14px var(--font-body); padding: 0 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 6px 14px -6px rgb(37 211 102 / .8); }
.wa-send-row > button:hover { background: #1eb956; }
.wa-send-err { margin: 8px 0 0; font-size: 12px; color: #dc2626; }
.wa-send-err[hidden] { display: none; }
.wa-send .iti__country-container { padding: 0 0 0 4px; }
.wa-send .iti__selected-country { border-radius: 12px 0 0 12px; }
.share-row .alert { max-width: 420px; margin: 10px auto 0; }

/* ---------- Products ---------- */
.product img[data-zoom] { cursor: zoom-in; }
.product .desc { margin: 0; font-size: 12.5px; opacity: .75; line-height: 1.4; }
.product-btns { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.product-btns .btn { margin: 0; width: 100%; }

/* ======================================================================
   Owner's own choices (Design tab). Body classes come from CardBuilder::styleClasses.
   ====================================================================== */
/* Mixed-colour background that slowly moves */
body.bg-flow { background-size: 300% 300%; }
@media (prefers-reduced-motion: no-preference) {
    body.bg-flow { animation: bg-flow 18s ease-in-out infinite alternate; }
    @keyframes bg-flow { 0% { background-position: 0% 0%; } 50% { background-position: 100% 50%; } 100% { background-position: 50% 100%; } }
}

/* Text size */
body.fs { font-size: calc(15px * var(--fs)); }
body.fs .company { font-size: calc(26px * var(--fs)); }
body.fs .person { font-size: calc(17px * var(--fs)); }
body.fs .position { font-size: calc(14px * var(--fs)); }
body.fs .section > h2 { font-size: calc(18px * var(--fs)); }
body.fs .rich, body.fs .contact-list dd, body.fs .item, body.fs .product h3 { font-size: calc(14px * var(--fs)); }

/* Colours */
body.tc { --text: var(--user-text); color: var(--user-text); }
body.tc .company, body.tc .person, body.tc .position, body.tc .action { color: var(--user-text) !important; -webkit-text-fill-color: var(--user-text) !important; }
body.hc .company, body.hc .section > h2 { color: var(--head-color) !important; -webkit-text-fill-color: var(--head-color) !important; }

/* Heading effects (business name, name, title, section titles) */
body[class*=' ts-'] :is(.company, .person, .section > h2) { -webkit-text-fill-color: currentColor; }
body.ts-soft :is(.company, .person, .position, .section > h2) { text-shadow: 0 2px 6px rgb(0 0 0 / .35); }
body.ts-strong :is(.company, .person, .position, .section > h2) { text-shadow: 0 2px 0 rgb(0 0 0 / .35), 0 6px 16px rgb(0 0 0 / .45); }
body.ts-glow :is(.company, .person, .section > h2) { text-shadow: 0 0 10px var(--accent), 0 0 24px color-mix(in srgb, var(--accent) 60%, transparent); }
body.ts-outline :is(.company, .person, .section > h2) { text-shadow: -1px -1px 0 rgb(0 0 0 / .75), 1px -1px 0 rgb(0 0 0 / .75), -1px 1px 0 rgb(0 0 0 / .75), 1px 1px 0 rgb(0 0 0 / .75); }
body.ts-emboss :is(.company, .person, .section > h2) { text-shadow: 0 1px 0 rgb(255 255 255 / .55), 0 -1px 0 rgb(0 0 0 / .45); }
body.hw :is(.company, .section > h2) { font-weight: var(--head-weight); }
/* Light type (templates with weight 300, or the owner's "Light" choice): thin names and text, buttons a touch firmer */
body.lt, body.lt :is(.company, .person, .position, .section > h2, p, li, dd, dt, td, th, h3, h4, span, label, input, textarea, select, .rich, .item, .contact-list *) { font-weight: 300; }
body.lt :is(a, button, .btn, .action, .pill, .tile, .dock *, .rail-btn *) { font-weight: 400; }
body.lt :is(strong, b) { font-weight: 500; }
body.lt .fa { font-weight: normal; }
body.hs :is(.company, .person, .section > h2) { letter-spacing: var(--head-spacing); }
body.h-ul :is(.company, .section > h2) { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
body.h-up :is(.company, .section > h2) { text-transform: uppercase; }
body.h-it :is(.company, .person, .section > h2) { font-style: italic; }

/* Social buttons */
body.soc-brand .socials .social { -webkit-text-fill-color: #fff; color: #fff !important; border: 0; box-shadow: 0 4px 12px rgb(0 0 0 / .18); }
body.soc-brand .socials .social.fb { background: #1877f2; } body.soc-brand .socials .social.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
body.soc-brand .socials .social.in { background: #0a66c2; } body.soc-brand .socials .social.yt { background: #ff0000; } body.soc-brand .socials .social:is(.tw, .tt) { background: #000; } body.soc-brand .socials .social.pin { background: #e60023; }
body.soc-accent .socials .social { background: var(--accent); color: var(--accent-text) !important; -webkit-text-fill-color: var(--accent-text); border: 0; }
body.soc-custom .socials .social { background: var(--social, var(--accent)); color: #fff !important; -webkit-text-fill-color: #fff; border: 0; }
body.soc-outline .socials .social { background: transparent; color: var(--social, var(--text)) !important; -webkit-text-fill-color: var(--social, var(--text)); border: 2px solid var(--social, var(--text)); box-shadow: none; }
body.soc-mono .socials .social { background: transparent; color: var(--text) !important; -webkit-text-fill-color: var(--text); border: 0; box-shadow: none; font-size: 24px; }

/* Rich text: owner's colour, size and alignment picks */
.rich .t-accent { color: var(--accent); } .rich .t-muted { opacity: .65; } .rich .t-red { color: #dc2626; } .rich .t-green { color: #16a34a; }
.rich .t-blue { color: #2563eb; } .rich .t-gold { color: #b8860b; } .rich .t-white { color: #fff; } .rich .t-black { color: #111; }
.rich .t-sm { font-size: .85em; } .rich .t-lg { font-size: 1.25em; } .rich .t-xl { font-size: 1.6em; line-height: 1.25; }
.rich .ta-left { text-align: left; } .rich .ta-center { text-align: center; } .rich .ta-right { text-align: right; }
.rich mark { background: color-mix(in srgb, var(--accent) 35%, transparent); color: inherit; padding: 0 .15em; border-radius: 3px; }

/* Buttons drawn as rows, tiles or pills carry their own colour; labels follow it. */
.mat:is(.btn-list, .btn-tiles, .btn-pills) .action .lbl { color: inherit !important; text-shadow: none; -webkit-text-fill-color: currentColor; }

/* Builder preview: pictures you can tap to change */
[data-pick] { cursor: pointer; }
[data-pick]:hover { outline: 2px dashed rgb(255 255 255 / .8); outline-offset: -6px; }

/* ---------- Bottom menu (dock): jumps to the sections this card shows ---------- */
html { scroll-behavior: smooth; }
[id^="s-"] { scroll-margin-top: 12px; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface, #fff) 88%, transparent); color: var(--surface-text, #111); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 -6px 24px rgb(0 0 0 / .18); border-top: 1px solid color-mix(in srgb, var(--surface-text, #111) 10%, transparent); }
.dock-inner { max-width: 448px; margin: 0 auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 6px 6px; }
.dock-inner::-webkit-scrollbar { display: none; }
.dock a { flex: 1 0 auto; min-width: 58px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 6px; border-radius: 12px; color: inherit; text-decoration: none; font-size: 10.5px; font-weight: 600; opacity: .72; white-space: nowrap; }
.dock a i { font-size: 17px; }
.dock a:hover, .dock a.on { opacity: 1; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
body:has(.dock) .bar { bottom: calc(58px + env(safe-area-inset-bottom)); background: none; }
body:has(.dock) .page { padding-bottom: 150px; }
@media print { .dock { display: none; } }

/* ---------- Automatic "Visit our store" (cards with an active WhatsApp store) ---------- */
.store-marquee { display: block; overflow: hidden; contain: inline-size; /* its long strip must not widen the card on small phones */ margin: 14px -4px 14px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); text-decoration: none; color: inherit; }
.store-track { display: flex; gap: 10px; width: max-content; animation: store-glide 28s linear infinite; }
.store-track.still { animation: none; margin: 0 auto; }
.store-marquee:hover .store-track, .store-marquee:focus-visible .store-track { animation-play-state: paused; }
.store-item { margin: 0; width: 128px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, currentColor 6%, transparent); text-align: left; }
.store-item img, .store-noimg { display: block; width: 128px; height: 108px; object-fit: cover; }
.store-noimg { display: grid; place-items: center; font-size: 26px; opacity: .5; }
.store-item figcaption { padding: 7px 9px 9px; font-size: 12px; line-height: 1.3; }
.store-item figcaption span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-item figcaption strong { display: block; margin-top: 2px; font-size: 13px; }
@keyframes store-glide { to { transform: translateX(calc(-50% - 5px)); } }
@media (prefers-reduced-motion: reduce) { .store-track { animation: none; } .store-marquee { overflow-x: auto; } }

/* =====================================================================
   Header layouts added 2026-11-10: hero, wave, fade, offset, arch, bloom, hexagon, ribbon.
   Each uses the template's own colours; the small logo is always .logo-chip (plate from CardBuilder).
   ===================================================================== */
.names-left { text-align: left; }
.hdr-hero .header, .hdr-wave .header, .hdr-fade .header, .hdr-hexagon .header, .hdr-ribbon .header { padding: 0 0 6px; text-align: left; position: relative; }

/* Hero: big photo, name on a dark fade */
.hero-media { position: relative; height: 440px; background: center 25% / cover no-repeat; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.hero-media.no-photo { height: 300px; background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 35%, #000)); }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(0 0 0 / .05) 30%, rgb(0 0 0 / .82)); }
.hero-text { position: absolute; left: 22px; right: 22px; bottom: 24px; z-index: 1; color: #fff; }
.hero-text .company { font-size: 34px; line-height: 1.05; color: #fff; }
.hero-text .person, .hero-text .position { color: #fff; }
.hdr-hero .logo-chip { position: absolute; top: 16px; left: 16px; z-index: 2; width: 52px; height: 52px; border-radius: 14px; padding: 4px; margin: 0; }

/* Wave: cover photo with a wavy foot, badge resting on the wave */
.wave-cover { height: 210px; background-size: cover; background-position: center 30%;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V80C82 99 66 66 46 82C29 95 14 93 0 83Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V80C82 99 66 66 46 82C29 95 14 93 0 83Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.wave-row { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 22px; margin-top: -58px; position: relative; }
.wave-badge { width: 104px; height: 104px; object-fit: contain; background: var(--plate, #fff); border-radius: var(--logo-radius, 26px); padding: 8px; box-shadow: var(--photo-frame, 0 0 0 3px #fff), 0 10px 26px rgb(0 0 0 / .25); }
.wave-badge.photo-badge { border-radius: 50%; object-fit: cover; padding: 0; }
.wave-badge.fill { padding: 0; object-fit: cover; background: transparent; }
.hdr-wave .logo-chip { width: 48px; height: 48px; border-radius: 14px; padding: 3px; margin: 0 0 6px; }
.hdr-wave .names-left { padding: 14px 22px 4px; }

/* Fade: tall photo that melts into the card, large name across its foot */
.fade-media { height: 400px; background: center 20% / cover no-repeat; -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 97%); mask-image: linear-gradient(to bottom, #000 45%, transparent 97%); }
.fade-text { position: relative; margin-top: -110px; padding: 0 22px 6px; }
.hdr-fade .company { font-size: 38px; line-height: 1.02; letter-spacing: -.01em; }
.hdr-fade .logo-chip { display: block; width: 46px; height: 46px; border-radius: 12px; padding: 3px; margin: 0 0 12px; }

/* Offset: big two-line name, round photo floating top-right */
.hdr-offset .header { text-align: left; padding: 26px 22px 6px; }
.offset-top { display: flex; justify-content: space-between; align-items: flex-start; min-height: 30px; }
.offset-photo { margin-left: auto; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; box-shadow: var(--photo-frame, 0 0 0 4px color-mix(in srgb, var(--accent) 70%, transparent)), 0 14px 30px rgb(0 0 0 / .2); }
.hdr-offset .logo-chip { width: 50px; height: 50px; border-radius: 14px; padding: 3px; margin: 0; }
.offset-names { margin-top: -30px; }
.hdr-offset .company { font-size: 36px; line-height: 1.04; max-width: calc(100% - 150px); overflow-wrap: normal; }
.offset-rule { display: block; width: 56px; height: 3px; border-radius: 3px; background: var(--accent); margin: 14px 0 2px; }

/* Arch: photo in an arch with a fine outline arch behind */
.hdr-arch .header { padding: 30px 20px 8px; }
.arch-frame { position: relative; width: 186px; margin: 4px auto 20px; }
.arch-frame::before { content: ''; position: absolute; inset: -10px 10px 10px -10px; border: 1.5px solid var(--accent); border-radius: 999px 999px 20px 20px; }
.arch-photo { position: relative; display: block; width: 186px; height: 246px; object-fit: cover; border-radius: 999px 999px 20px 20px; box-shadow: 0 16px 34px rgb(0 0 0 / .16); }
.hdr-arch .logo-chip, .hdr-bloom .logo-chip { position: relative; display: block; width: 48px; height: 48px; border-radius: 14px; padding: 3px; margin: -46px auto 14px calc(50% + 46px); }
.hdr-arch .company { font-size: 30px; }

/* Bloom: round photo on soft blurred shapes */
.hdr-bloom .header { padding: 34px 20px 8px; }
.bloom-frame { position: relative; width: 168px; height: 168px; margin: 4px auto 20px; }
.bloom-blob { position: absolute; border-radius: 50%; filter: blur(16px); opacity: .8; }
.bloom-blob.b1 { width: 150px; height: 150px; left: -42px; top: -16px; background: color-mix(in srgb, var(--accent) 50%, #fff); }
.bloom-blob.b2 { width: 128px; height: 128px; right: -44px; bottom: -20px; background: color-mix(in srgb, var(--accent) 22%, #fde2ec); }
.bloom-photo { position: relative; width: 168px; height: 168px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px rgb(255 255 255 / .85), 0 18px 40px rgb(0 0 0 / .16); }
.bloom-photo.logo-in { object-fit: contain; background: var(--plate, #fff); padding: 26px; }
.bloom-photo.logo-in.fill { padding: 0; object-fit: cover; }

/* Hexagon: diagonal stripes, hexagon photo and logo */
.hex-band { height: 150px; background: repeating-linear-gradient(-55deg, color-mix(in srgb, var(--accent) 80%, transparent) 0 10px, transparent 10px 30px), linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, #0b1220), #0b1220); border-radius: 0 0 var(--radius) var(--radius); }
.hex-row { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 20px; margin-top: -74px; position: relative; }
.hex-frame { --hex: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); display: grid; place-items: center; width: 132px; height: 118px; background: var(--accent); clip-path: var(--hex); filter: drop-shadow(0 10px 18px rgb(0 0 0 / .3)); }
.hex-photo { width: calc(100% - 10px); height: calc(100% - 9px); object-fit: cover; clip-path: var(--hex); }
.hex-frame.hex-logo { width: 72px; height: 64px; background: var(--plate, #fff); margin-bottom: 6px; }
/* The logo sits whole inside the hexagon (never cropped by it): about the largest square that fits. */
.hex-logo img, .hex-logo.fill img { width: 58%; height: 58%; object-fit: contain; border-radius: 8px; }
.hdr-hexagon .names-left { padding: 14px 22px 4px; }

/* Ribbon: photo with the business name on a slanted ribbon */
.ribbon-media { position: relative; height: 380px; background: center 25% / cover no-repeat; }
.ribbon-media.no-photo { height: 220px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 55%, #fff), var(--accent)); }
.hdr-ribbon .logo-chip { position: absolute; top: 16px; left: 16px; width: 50px; height: 50px; border-radius: 14px; padding: 3px; margin: 0; }
.ribbon { position: relative; z-index: 1; margin: -48px 40px 0 -8px; padding: 14px 22px 14px 32px; background: var(--accent); color: var(--accent-text); transform: skewY(-4deg); border-radius: 0 8px 8px 0; box-shadow: 0 12px 26px rgb(0 0 0 / .25); }
.ribbon .company { transform: skewY(4deg); color: inherit; font-size: 28px; line-height: 1.1; }
.ribbon-names { padding: 18px 22px 2px; }

/* ---------- "Send this card on WhatsApp": side tab + pop-up (keeps the card's own look) ---------- */
.wa-side { position: fixed; right: 0; top: 46%; z-index: 22; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 7px 10px 9px; border: 0; border-radius: 14px 0 0 14px; background: #25d366; color: #fff; font: 600 10px/1.1 system-ui, sans-serif; cursor: pointer; box-shadow: -4px 6px 18px rgb(0 0 0 / .25); }
.wa-side i { font-size: 22px; }
.wa-side span { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .04em; }
.wa-side:hover, .wa-side:focus-visible { padding-right: 11px; }
.wa-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: end center; padding: 16px; background: rgb(0 0 0 / .5); }
.wa-modal[hidden] { display: none; }
.wa-modal-panel { position: relative; width: 100%; max-width: 420px; margin-bottom: env(safe-area-inset-bottom); animation: wa-up .2s ease-out; }
.wa-modal-panel .wa-send { margin: 0; }
.wa-close { position: absolute; top: 8px; right: 8px; z-index: 1; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .06); color: #333; cursor: pointer; }
@keyframes wa-up { from { transform: translateY(24px); opacity: 0; } }
@media (min-width: 640px) { .wa-modal { place-items: center; } }
@media (prefers-reduced-motion: reduce) { .wa-modal-panel { animation: none; } }
@media print { .wa-side, .wa-modal { display: none !important; } }
/* While the WhatsApp pop-up is open, the save bar and bottom menu step aside. */
body:has(.wa-modal:not([hidden])) :is(.bar, .dock, .wa-side) { display: none; }

/* ---------- Side rail: Save contact, Share, Send on WhatsApp (replaces the floating bottom bar) ---------- */
.rail { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 22; display: flex; flex-direction: column; gap: 5px; }
/* Half-size tabs in the template's button colour; Share is a shifted shade of it and nudges now and then so it gets noticed. */
.rail-btn { display: grid; place-items: center; width: 32px; height: 40px; padding: 0; border: 0; border-radius: min(var(--radius-btn, 10px), 10px) 0 0 min(var(--radius-btn, 10px), 10px); background: var(--cl-share, var(--accent)); color: var(--cl-share-text, var(--accent-text)); text-decoration: none; cursor: pointer; box-shadow: -3px 4px 12px rgb(0 0 0 / .22); transition: width .15s; }
.rail-btn i { font-size: 14px; }
.rail-btn:hover, .rail-btn:focus-visible { width: 36px; }
.rail-share { background: color-mix(in oklab, var(--accent) 72%, #ffffff); filter: hue-rotate(28deg) saturate(1.15); color: var(--accent-text); animation: rail-nudge 7s ease-in-out 3s infinite; }
@keyframes rail-nudge { 0%, 88%, 100% { transform: none; } 91% { transform: translateX(-5px); } 94% { transform: translateX(0); } 97% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { .rail-share { animation: none; } }
.sheet-panel .wa-send { margin: 0 0 4px; max-width: none; box-shadow: none; border: 1px solid #e5e7eb; }
.sheet-sub { margin: 14px 0 10px; text-align: center; font-size: 12px; color: #6b7280; }
.sheet-save { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; animation: save-pulse 2.4s ease-in-out infinite; padding: 13px; border-radius: 12px; background: #111827; color: #ffffff; font: 600 15px var(--font-body); text-decoration: none; }
.sheet-save i { font-size: 17px; }
/* Save business card gently pulses so it is noticed */
@keyframes save-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgb(17 24 39 / .35); } 50% { transform: scale(1.025); box-shadow: 0 0 0 8px rgb(17 24 39 / 0); } }
@media (prefers-reduced-motion: reduce) { .sheet-save { animation: none; } }
.page { padding-bottom: 40px; }
body:has(.dock) .page { padding-bottom: 90px; }
/* Live cards end with "Report this card" (safety/public.blade.php), which keeps the room for the bottom menu: the card
   itself does not keep it a second time (owner 2026-11-19: a big empty gap at the bottom of the first customer's card). */
body:has(.safety-report) .page { padding-bottom: 8px; }
body:has(.safety-report) { --report-pad: calc(24px + env(safe-area-inset-bottom)); }
body:has(.dock):has(.safety-report) { --report-pad: calc(72px + env(safe-area-inset-bottom)); }
/* While "Save this card as an app" floats above the menu (cards/partials/install-chip, 76px up, 46px tall) the link clears it too */
body:has(.safety-report):has(.card-install-chip:not([hidden])) { --report-pad: calc(136px + env(safe-area-inset-bottom)); }
body:has(.wa-modal:not([hidden]), .sheet:not([hidden])) .rail { display: none; }
@media print { .rail { display: none !important; } }

/* ---------- Music & videos (add-on): track list, preview player, Buy pop-up ---------- */
.tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.track { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border-radius: calc(var(--radius) * .6); background: rgb(127 127 127 / .08); }
.tr-play { position: relative; width: 52px; height: 52px; border: 0; padding: 0; border-radius: calc(var(--radius) * .5); overflow: hidden; background: var(--accent); color: var(--accent-text, #fff); cursor: pointer; display: grid; place-items: center; }
.tr-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tr-play i { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; padding-left: 2px; background: #fff; color: var(--accent); box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.tr-play img + i { background: rgb(255 255 255 / .92); }
.tr-play:not(:has(img)) { background: color-mix(in srgb, var(--accent) 78%, #000); }
.tr-play .fa-pause { padding-left: 0; }
.tr-play[disabled] { cursor: default; opacity: .7; }
.tr-play:focus-visible, .tr-buy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tr-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tr-info strong { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.tr-info small { font-size: 12px; opacity: .7; overflow-wrap: anywhere; }
.tr-bar { display: block; height: 3px; margin-top: 4px; border-radius: 2px; background: rgb(127 127 127 / .2); overflow: hidden; }
.tr-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }
.tr-buy { border: 0; border-radius: var(--radius-btn, 999px); padding: 8px 12px; background: var(--accent); color: var(--accent-text, #fff); font: 600 13px var(--font-body); cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.tr-buy span { font-weight: 400; opacity: .85; padding-left: 6px; border-left: 1px solid currentColor; }
.tr-price { font: 600 13px var(--font-body); white-space: nowrap; padding: 0 4px; }
.tr-price.free, .tr-buy.free { color: inherit; }
.tr-buy.free { background: rgb(127 127 127 / .14); }
.tr-video { grid-column: 1 / -1; }
/* Narrow rows (album tracks inside a box, padded designs): the price goes under the title instead of squeezing it
   into a word per line (owner 2026-11-12, "Golden Hour" broken over five lines). */
.tracks { container-type: inline-size; }
@container (max-width: 340px) {
    .track { grid-template-columns: 52px minmax(0, 1fr); row-gap: 6px; }
    .track > .tr-buy, .track > .tr-price { grid-column: 2; justify-self: start; }
    .track > .tr-play { grid-row: span 2; align-self: start; }
}
.tr-video video { display: block; width: 100%; max-height: 60vh; border-radius: calc(var(--radius) * .5); background: #000; }
.tr-video[hidden] { display: none; }
.tr-note { margin: 10px 0 0; font-size: 12px; opacity: .7; }

/* Live shows: a date badge, venue and town, and a Tickets button */
.show-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.show { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border-radius: calc(var(--radius) * .6); background: rgb(127 127 127 / .08); }
.show-date { width: 56px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: calc(var(--radius) * .5); background: var(--accent); color: var(--accent-text, #fff); line-height: 1; }
.show-date b { font: 700 22px/1 var(--font-head); }
.show-date small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.show-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.show-info strong { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.show-info small { font-size: 12px; opacity: .72; }
.show-info .show-note { opacity: 1; color: var(--accent); font-weight: 600; }
.show-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: var(--radius-btn, 999px); background: var(--accent); color: var(--accent-text, #fff); font: 600 13px var(--font-body); text-decoration: none; white-space: nowrap; }
.show-btn.is-sold { background: rgb(127 127 127 / .18); color: inherit; opacity: .8; }
.show.sold-out .show-date { filter: grayscale(.7); opacity: .7; }

/* Event bookings: month calendar, time slots, form */
.events-intro { margin: 0 0 12px; opacity: .85; }
.ev-error { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #fee2e2; color: #991b1b; font-size: 13px; }
.ev-cal { text-align: left; max-width: 420px; margin-inline: auto; } /* a normal-size calendar on wide screens too (owner 2026-11-17: the days grew huge) */
.ev-cal.ev-on-dark { background: rgb(0 0 0 / .28); border-radius: 18px; padding: 12px; } /* white numbers stay readable over any photo or colour (owner 2026-11-25) */
.ev-cal.ev-on-light { background: rgb(255 255 255 / .62); border-radius: 18px; padding: 12px; }
.ev-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ev-month { font: 600 16px var(--font-head); text-transform: capitalize; }
.ev-nav { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgb(127 127 127 / .12); color: inherit; cursor: pointer; }
.ev-nav:disabled { opacity: .3; cursor: default; }
.ev-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ev-dow span { text-align: center; font-size: 11px; font-weight: 600; opacity: .85; padding: 4px 0; } /* readable on every design (owner 2026-11-25: "one can't see the date nrs") */
.ev-day { aspect-ratio: 1; border: 0; border-radius: 10px; font: 600 13px var(--font-body); cursor: pointer; color: inherit; background: rgb(127 127 127 / .08); position: relative; }
.ev-day.free { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.ev-day.part { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.ev-day.part::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #f59e0b; }
.ev-day.full { text-decoration: line-through; opacity: .6; cursor: default; }
/* Pending (owner 2026-11-17): someone asked for this day and is waiting for an answer; it can still be asked for. */
.ev-day.pend { background: repeating-linear-gradient(135deg, rgb(245 158 11 / .38) 0 4px, color-mix(in srgb, var(--accent) 14%, transparent) 4px 8px); }
.ev-day.pend.on { background: var(--accent); }
.ev-held { color: #b45309; font-weight: 600; }
.ev-day.off { opacity: .55; cursor: default; background: transparent; font-weight: 500; } /* past or not available: lighter and no tile, but the number still readable (was .25, owner 2026-11-25) */
.ev-day.on { background: var(--accent); color: var(--accent-text, #fff); }
.ev-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 10px 0 0; font-size: 11px; opacity: .9; }
.ev-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -6px; }
.ev-legend .ev-key { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; } .ev-legend .ev-key .dot { margin-right: 0; } /* a dot and its word never split over two lines (live check 2026-11-25: "Booked" alone on a line) */
.ev-legend .free { background: color-mix(in srgb, var(--accent) 40%, transparent); } .ev-legend .free, .ev-legend .full { outline: 1.5px solid color-mix(in srgb, currentColor 70%, transparent); outline-offset: -1.5px; } /* a ring in the text colour: Free and Booked show on dark cards too (live test 2026-11-25) */ .ev-legend .part { background: #f59e0b; } .ev-legend .full { background: rgb(127 127 127 / .35); } .ev-legend .pend { background: repeating-linear-gradient(135deg, rgb(245 158 11 / .75) 0 2px, transparent 2px 4px); outline: 1px solid rgb(245 158 11 / .6); }
.ev-slots { margin-top: 14px; }
.ev-picked { margin: 0 0 8px; font-weight: 600; }
.ev-slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.ev-slot { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.ev-slot small { opacity: .7; font-size: 12px; }
.ev-slot.on { background: var(--accent); color: var(--accent-text, #fff); border-color: var(--accent); }
.ev-form { margin-top: 14px; display: grid; gap: 10px; }
.ev-form[hidden], .ev-slots[hidden] { display: none; }
.ev-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; }
.ev-form input, .ev-form select, .ev-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgb(127 127 127 / .3); background: rgb(255 255 255 / .9); color: #111827; font: 400 14px var(--font-body); }
.ev-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ev-check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 8px !important; font-weight: 400 !important; }
.ev-check input { width: auto; margin-top: 2px; }
.ev-chosen { margin: 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 16%, transparent); font-weight: 600; font-size: 14px; }
.ev-send { justify-content: center; }
.ev-money { position: relative; display: block; }
.ev-money b { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .6; color: #111827; -webkit-text-fill-color: #111827; pointer-events: none; }
.ev-form .ev-money input { padding-left: 30px; }
.ev-wants { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 0; }
.ev-wants .ev-legend { grid-column: 1 / -1; margin: 0; font-size: 12px; font-weight: 600; }
.ev-form .ev-wants label { position: relative; display: block; cursor: pointer; }
.ev-form .ev-wants input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ev-wants span { display: flex; flex-direction: column; gap: 2px; min-height: 44px; height: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); font-weight: 400; }
.ev-wants b { font-size: 14px; } .ev-wants span i { font-style: normal; font-size: 12px; opacity: .75; }
.ev-form .ev-wants input:checked + span { background: var(--accent); color: var(--accent-text, #fff) !important; -webkit-text-fill-color: var(--accent-text, #fff) !important; border-color: var(--accent); }
.ev-wants input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Albums: a square cover with a record peeking out, title and "Buy album"; its tracks open below */
.album { margin: 0 0 12px; border-radius: calc(var(--radius) * .7); background: rgb(127 127 127 / .08); text-align: left; overflow: hidden; }
.album-head { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px; cursor: pointer; list-style: none; }
.album-head::-webkit-details-marker { display: none; }
.album-cover { position: relative; width: 84px; height: 84px; display: grid; place-items: center; border-radius: calc(var(--radius) * .5); background: color-mix(in srgb, var(--accent) 70%, #000); color: #fff; font-size: 26px; z-index: 0; }
.album-cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: 0 6px 16px rgb(0 0 0 / .3); }
.album-cover > i { position: relative; z-index: 1; }
.album-disc { position: absolute; z-index: 0; top: 6%; right: -22%; width: 88%; height: 88%; border-radius: 50%; background: radial-gradient(circle, #f4f4f5 0 9%, #18181b 10% 30%, #27272a 31% 32%, #18181b 33% 55%, #27272a 56% 57%, #111 58%); transition: right .5s ease; }
.album[open] .album-disc { right: -34%; animation: disc-spin 4s linear infinite; }
@keyframes disc-spin { to { transform: rotate(360deg); } }
.album-head { padding-right: 14px; }
.album-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-left: 34px; } /* room for the record sliding out of the cover */
.album-info small { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.album-info small + strong + small { text-transform: none; letter-spacing: 0; font-size: 12px; }
.album-info strong { font-size: 17px; line-height: 1.2; overflow-wrap: break-word; }
.album-tracks { padding: 0 10px 10px; }
.album-tracks .track { background: rgb(127 127 127 / .06); }
.music-sub { margin: 14px 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .7; text-align: left; }
/* A narrow album box (a small phone, a half-width column, a dragged window): the price button goes under the title instead of
   squeezing it into one letter a line (owner 2026-11-17). Measured on the box itself, not the screen. */
.album { container-type: inline-size; }
@container (max-width: 560px) { .album > .album-head.album-head { grid-template-columns: 72px minmax(0, 1fr); } .album .album-cover.album-cover { width: 72px; height: 72px; } .album .album-buy.album-buy { grid-column: 1 / -1; justify-content: center; } .album .album-info.album-info { padding-left: 30px; } }
@media (prefers-reduced-motion: reduce) { .album[open] .album-disc { animation: none; } }
.buy-ic { background: var(--accent, #5f9131); color: var(--accent-text, #fff); font-size: 17px; }
.buy-field { display: block; margin-top: 10px; font-size: 12px; color: #4b5563; }
.buy-field span { display: block; margin-bottom: 4px; }
.buy-field input { width: 100%; height: 44px; border: 1px solid #d1d5db; border-radius: 12px; padding: 0 12px; font: 15px var(--font-body); background: #f9fafb; color: #111827; box-sizing: border-box; }
.buy-field input:focus { outline: 2px solid var(--accent, #5f9131); outline-offset: 0; border-color: transparent; background: #fff; }
.buy-go { width: 100%; height: 46px; margin-top: 14px; border: 0; border-radius: 12px; background: var(--accent, #5f9131); color: var(--accent-text, #fff); font: 600 15px var(--font-body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.buy-small { margin: 10px 0 0; font-size: 12px; color: #6b7280; line-height: 1.45; }
@media print { .tr-play, .tr-buy, .music-modal { display: none !important; } }

/* ---------- Quick button layouts, each in its own place on the card ---------- */
.action .val { display: none; }
/* Bar pinned to the top: one connected strip that stays at the top of the screen while scrolling */
.btn-dock .actions { position: sticky; top: 8px; z-index: 20; flex-wrap: nowrap; gap: 0; margin: 12px 14px 0; padding: 6px; justify-content: space-around; border-radius: 20px; background: var(--surface); box-shadow: 0 14px 34px -12px rgb(0 0 0 / .4); overflow-x: auto; scrollbar-width: none; }
.btn-dock .action { flex: 1; width: auto; min-width: 52px; padding: 4px 2px; color: var(--surface-text); font-size: 10.5px; }
.btn-dock .action + .action { border-left: 1px solid color-mix(in oklab, var(--surface-text) 12%, transparent); }
.btn-dock .action .ic { width: 36px; height: 36px; font-size: 16px; box-shadow: none; }
/* Full-width colour blocks: separate rounded rows stepping from the brand colour to deeper shades of it */
.btn-stack .actions { flex-direction: column; gap: 7px; padding: 20px 16px 6px; }
.btn-stack .action { width: auto; flex-direction: row-reverse; justify-content: space-between; padding: 12px 12px 12px 20px; border-radius: var(--radius-btn); background: var(--accent); color: var(--accent-text); font: 500 15px/1 var(--font-head); letter-spacing: .01em; text-align: left; box-shadow: 0 8px 18px -10px color-mix(in oklab, var(--accent) 80%, #000000); }
.btn-stack .action:nth-child(5n+2) { background: color-mix(in oklab, var(--accent) 88%, #000000); }
.btn-stack .action:nth-child(5n+3) { background: color-mix(in oklab, var(--accent) 76%, #000000); }
.btn-stack .action:nth-child(5n+4) { background: color-mix(in oklab, var(--accent) 66%, #000000); }
.btn-stack .action:nth-child(5n) { background: color-mix(in oklab, var(--accent) 56%, #000000); }
.btn-stack .action .ic { width: 36px; height: 36px; font-size: 16px; background: rgb(255 255 255 / .16); color: inherit; box-shadow: none; }
/* Bubbles: soft spheres of different sizes, staggered up and down */
.btn-bubbles .actions { align-items: center; gap: 2px 12px; padding: 30px 16px 8px; }
.btn-bubbles .action { width: auto; min-width: 54px; }
.btn-bubbles .action:nth-child(odd) { transform: translateY(-12px); }
.btn-bubbles .action .ic { background: radial-gradient(circle at 32% 28%, color-mix(in oklab, var(--accent) 45%, #ffffff), var(--accent) 70%); box-shadow: 0 10px 22px -8px color-mix(in oklab, var(--accent) 70%, #000000); }
.btn-bubbles .action:nth-child(3n+1) .ic { width: 70px; height: 70px; font-size: 27px; }
.btn-bubbles .action:nth-child(3n+2) .ic { width: 48px; height: 48px; font-size: 19px; }
/* Timeline on the left: icons sit on a vertical line, labels read like a menu */
.btn-column .actions { flex-direction: column; align-items: stretch; gap: 0; margin: 16px 16px 0 34px; padding: 4px 0 4px 18px; border-left: 2px solid var(--accent); }
.btn-column .action { width: auto; flex-direction: row; gap: 14px; padding: 9px 0; color: var(--text); font: 500 17px/1.2 var(--font-head); text-align: left; }
.btn-column .action .ic { flex-shrink: 0; width: 30px; height: 30px; margin-left: -34px; font-size: 13px; box-shadow: none; }
/* Big tiles, two across, chequered brand colour and box colour */
.btn-bigtiles .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 16px 6px; }
.btn-bigtiles .action { width: auto; aspect-ratio: 1.25; align-items: flex-start; justify-content: space-between; padding: 14px; border-radius: var(--radius); background: var(--accent); color: var(--accent-text); font: 600 16px/1.1 var(--font-head); text-align: left; box-shadow: 0 10px 24px -14px rgb(0 0 0 / .5); }
.btn-bigtiles .action:nth-child(4n+2), .btn-bigtiles .action:nth-child(4n+3) { background: var(--surface); color: var(--surface-text); }
.btn-bigtiles .action .ic { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; background: rgb(255 255 255 / .18); color: inherit; box-shadow: none; }
.btn-bigtiles .action:nth-child(4n+2) .ic, .btn-bigtiles .action:nth-child(4n+3) .ic { background: var(--accent); color: var(--accent-text); }
.btn-bigtiles .action:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: auto; flex-direction: row; align-items: center; gap: 12px; }
/* Swipe cards (Reel, Soundwave): tiles with a brand-colour top edge, in a grid that never leaves the card (owner
   2026-11-12 and 2026-11-16 "why is this card's button out of the screen"; phone rescue C5, owner approved 2026-11-19):
   3 per row on a phone, more side by side where there is room, up to 6. An older swipe rule further down used to give
   every tile a fixed 86px width, so on phones the tiles overlapped and the last one ran off the card. */
.btn-carousel .actions {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(max(80px, calc((100% - 40px) / 6)), 1fr)); gap: 8px;
    padding: 18px 16px 14px; overflow: visible;
}
.btn-dock .actions::-webkit-scrollbar { display: none; }
.btn-carousel .action {
    width: auto; min-width: 0; height: 104px; padding: 0 4px; justify-content: center;
    border-top: 4px solid var(--accent); border-radius: var(--radius); background: var(--surface); color: var(--surface-text);
    font-size: 13px; font-weight: 600; box-shadow: 0 10px 22px -12px rgb(0 0 0 / .45);
}
.btn-carousel .action .ic { width: 42px; height: 42px; font-size: 19px; box-shadow: none; }
/* Phones: 3 per row (2 or 4 buttons share one row), so a lone tile never hangs on a row of its own */
@media (max-width: 439px) {
    .btn-carousel .actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .btn-carousel .actions:has(> .action:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .btn-carousel .actions:has(> .action:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .btn-carousel .actions:has(> .action:nth-child(4):last-child) > .action { font-size: 12px; }
}
/* The phone-width card on a tablet or beside a computer layout: 6 buttons as two rows of 3 */
@media (min-width: 440px) and (max-width: 899px) {
    .btn-carousel .actions:has(> .action:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Detail lines: no icons, the actual number, email and address in tidy rows */
.btn-lines .actions { flex-direction: column; gap: 0; padding: 16px 22px 4px; }
.btn-lines .action { width: auto; flex-direction: row; align-items: baseline; gap: 10px; padding: 13px 0; border-bottom: 1px solid color-mix(in oklab, var(--text) 18%, transparent); color: var(--text); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; text-align: left; }
.btn-lines .action .ic { display: none; }
.btn-lines .action .lbl { flex-shrink: 0; width: 88px; opacity: .6; }
.btn-lines .action .val { display: block; min-width: 0; overflow-wrap: anywhere; font-size: 15px; letter-spacing: 0; text-transform: none; }
.btn-lines .action::after { content: '\2192'; margin-left: auto; padding-left: 8px; color: var(--accent); font-size: 15px; letter-spacing: 0; }
/* On the photo: small glass buttons stacked at the top right of the header */
.btn-overlay .page { position: relative; }
.btn-overlay .actions { position: absolute; top: 74px; right: 12px; z-index: 5; flex-direction: column; gap: 9px; padding: 0; }
.btn-overlay .action { width: auto; }
.btn-overlay .action .ic { width: 42px; height: 42px; font-size: 17px; background: rgb(255 255 255 / .2); color: #ffffff; border: 1px solid rgb(255 255 255 / .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 16px rgb(0 0 0 / .25); }
.btn-overlay .action .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Diamonds: turned squares in a row */
.btn-diamond .actions { gap: 22px 16px; padding: 28px 16px 8px; }
.btn-diamond .action { gap: 16px; }
.btn-diamond .action .ic { width: 46px; height: 46px; border-radius: 11px; transform: rotate(45deg); }
.btn-diamond .action .ic i { transform: rotate(-45deg); }
.btn-diamond .action:active .ic { transform: rotate(45deg) scale(.94); }
/* Two big buttons (the first two) and the rest as small outlined icons */
.btn-duo .actions { gap: 12px 10px; }
.btn-duo .action:nth-child(-n+2) { width: calc(50% - 5px); flex-direction: row; justify-content: center; gap: 10px; padding: 14px 8px; border-radius: var(--radius-btn); background: var(--accent); color: var(--accent-text); font-size: 15px; font-weight: 600; box-shadow: 0 10px 20px -8px rgb(0 0 0 / .4); }
.btn-duo .action:nth-child(2) { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--accent); }
.btn-duo .action:nth-child(-n+2) .ic { width: auto; height: auto; background: none; box-shadow: none; color: inherit; font-size: 18px; }
.btn-duo .action:nth-child(n+3) { width: auto; min-width: 50px; color: var(--text); font-size: 10px; }
.btn-duo .action:nth-child(n+3) .ic { width: 40px; height: 40px; font-size: 16px; background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- "More below" hint: a pill with a bouncing arrow until the visitor scrolls ---------- */
.scroll-hint { position: fixed; left: 0; right: 0; width: max-content; margin-inline: auto; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 23; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; min-height: 44px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-text); font: 600 13px/1 var(--font-body, system-ui); box-shadow: 0 10px 24px -8px rgb(0 0 0 / .45); cursor: pointer; animation: hint-in .4s ease-out both; transition: opacity .3s; }
.scroll-hint[hidden] { display: none; }
.scroll-hint.gone { opacity: 0; }
.scroll-hint i { animation: hint-bounce 1.4s ease-in-out infinite; }
body:has(.dock) .scroll-hint { bottom: calc(72px + env(safe-area-inset-bottom)); }
/* A hint only (H3): taps go through to what is under it, and it fades by itself after a few seconds (page.blade.php) */
.scroll-hint { pointer-events: none; }
body:has(.sheet:not([hidden]), .wa-modal:not([hidden])) .scroll-hint { display: none; }
@keyframes hint-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes hint-bounce { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hint, .scroll-hint i { animation: none; } }
@media print { .scroll-hint { display: none !important; } }

/* Designer preview only: the country code the live card's picker starts on */
.wa-cc { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; height: 46px; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 12px; background: #f9fafb; color: #111827; font: 500 14px var(--font-body); }
.wa-cc i { font-size: 11px; color: #6b7280; }

/* Close cross at the top right of the share pop-up (Close also stays at the bottom) */
.sheet-panel { position: relative; }
.sheet-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f3f4f6; color: #374151; font-size: 16px; cursor: pointer; }
.sheet-x:hover { background: #e5e7eb; }

/* Taller Share tab: icon on top, SHARE written downwards */
.rail-btn.rail-share { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 24px; height: auto; padding: 9px 0 10px; }
.rail-btn.rail-share:hover, .rail-btn.rail-share:focus-visible { width: 28px; }
.rail-btn.rail-share i { font-size: 12px; }
.rail-lbl { writing-mode: vertical-rl; font: 300 9px/1 var(--font-body, system-ui); letter-spacing: .2em; text-transform: uppercase; }

/* The address opens Google Maps. */
.contact-list .map-link { margin-left: 6px; font-size: .85em; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }

/* Shadows cannot be seen on a dark card: there "Soft" and "Strong" become a light halo in the brand colour. */
body.on-dark.ts-soft :is(.company, .person, .position, .section > h2) { text-shadow: 0 2px 12px color-mix(in srgb, var(--accent) 55%, transparent); }
body.on-dark.ts-strong :is(.company, .person, .position, .section > h2) { text-shadow: 0 2px 0 rgb(0 0 0 / .7), 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 32px color-mix(in srgb, var(--accent) 45%, transparent); }
body.on-dark.ts-emboss :is(.company, .person, .section > h2) { text-shadow: 0 -1px 0 rgb(0 0 0 / .8), 0 1px 0 rgb(255 255 255 / .35); }

/* Narrow phones: the Tickets button goes under the show, so the venue is never squeezed. */
@media (max-width: 380px) { .show { grid-template-columns: 56px minmax(0, 1fr); } .show > .show-btn { grid-column: 2; justify-self: start; } }

/* The owner's background is the opposite tone of the template's: text that sits straight on it switches to light
   or dark (beating the template's own colours). Text inside section boxes keeps the box's colours, except in flat
   sections, which have no box. Names on a header photo (.hero-text) stay white: the photo always has its own dark fade
   (audit 2026-11-14: dark names were unreadable on the photo header with a light page background). */
html body.txt-flip.txt-flip :is(.company, .person, .position):not(.st-text *, .hero-text *),
html body.txt-flip.txt-flip:is(.btn-icons, .btn-rings, .btn-column, .btn-bubbles, .btn-diamond, .btn-stack, .btn-overlay, .btn-duo) .action .lbl,
html body.txt-flip.txt-flip.btn-lines .action :is(.lbl, .val),
html body.txt-flip-dark.txt-flip.sec-glass .section :is(h2, h3, p, li, dt, dd, strong, small, label, .rich, .item):not(.st-text *),
html body.txt-flip.txt-flip.sec-flat:not(.mat-map, .mat-bauhaus, .mat-letterpress, .mat-sumi, .mat-neon) .section :is(h2, h3, p, li, dt, dd, strong, small, label, .rich, .item):not(.st-text *),
/* The booking calendar (days, weekday letters, slots, arrows) and the store box's products are buttons, spans and figures, so they flip too (owner 2026-11-17: white text on a light section was unreadable) */
html body.txt-flip-dark.txt-flip.sec-glass .section :is(.ev-day:not(.on), .ev-dow span, .ev-slot:not(.on), .ev-nav, .store-item, .store-noimg),
html body.txt-flip.txt-flip.sec-flat:not(.mat-map, .mat-bauhaus, .mat-letterpress, .mat-sumi, .mat-neon) .section :is(.ev-day:not(.on), .ev-dow span, .ev-slot:not(.on), .ev-nav, .store-item, .store-noimg) { color: var(--flip-text) !important; -webkit-text-fill-color: var(--flip-text) !important; }

/* Link buttons (Products & services items without a picture, and the Links section). The owner picks the
   look per section (CardBuilder::BUTTON_LOOK): colours default to the design's accent. */
.btn-list:not(body) { display: grid; gap: 10px; } /* not the page: "List rows" buttons put btn-list on <body> too, which made the whole card a grid wider than a 360 px phone (audit 2026-11-14) */
.item-btn { padding: 6px 0; }
.item-btn .rich { margin-top: 6px; font-size: 13px; opacity: .8; }
.item-btn .rich p { margin: 0; }
.item-pic { flex-shrink: 0; display: block; }
.item h3 a { color: inherit; text-decoration: none; }
.cbtn { --cb-bg: var(--accent); --cb-fg: var(--accent-text); position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; box-sizing: border-box; padding: 13px 18px; border-radius: var(--radius-btn); background: var(--cb-bg); color: var(--cb-fg) !important; -webkit-text-fill-color: var(--cb-fg) !important;
    font: 600 15px/1.25 var(--font-body); text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; -webkit-tap-highlight-color: transparent; }
.cbtn span { flex: 1; text-align: center; }
.cbtn.cb-align-left span { text-align: left; }
.cbtn i { font-size: 1.15em; opacity: .85; }
.cbtn:hover { filter: brightness(1.06); }
/* looks */
.cbtn.cb-gradient { background: linear-gradient(180deg, color-mix(in srgb, var(--cb-bg) 78%, #fff), var(--cb-bg) 55%, color-mix(in srgb, var(--cb-bg) 75%, #000)); }
.cbtn.cb-outline { background: transparent; color: var(--cb-bg) !important; -webkit-text-fill-color: var(--cb-bg) !important; box-shadow: inset 0 0 0 2px var(--cb-bg); }
.cbtn.cb-glass { background: color-mix(in srgb, var(--cb-bg) 28%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
.cbtn.cb-soft { background: color-mix(in srgb, var(--cb-bg) 16%, #fff); color: color-mix(in srgb, var(--cb-bg) 80%, #000) !important; -webkit-text-fill-color: color-mix(in srgb, var(--cb-bg) 80%, #000) !important; }
.cbtn.cb-3d { background: linear-gradient(180deg, color-mix(in srgb, var(--cb-bg) 85%, #fff), var(--cb-bg)); border-bottom: 4px solid color-mix(in srgb, var(--cb-bg) 60%, #000); }
.cbtn.cb-3d:active { border-bottom-width: 1px; transform: translateY(3px); }
/* shapes and sizes */
.cbtn.cb-shape-rounded { border-radius: 12px; }
.cbtn.cb-shape-pill { border-radius: 999px; }
.cbtn.cb-shape-square { border-radius: 2px; }
.cbtn.cb-size-sm { padding: 9px 14px; font-size: 13px; }
.cbtn.cb-size-lg { padding: 17px 22px; font-size: 17px; }
/* shading (outline keeps its ring) */
.cbtn.cb-shadow-soft:not(.cb-outline) { box-shadow: 0 4px 12px rgb(0 0 0 / .18); }
.cbtn.cb-shadow-strong:not(.cb-outline) { box-shadow: 0 10px 24px rgb(0 0 0 / .35), 0 2px 4px rgb(0 0 0 / .2); }
.cbtn.cb-shadow-glow:not(.cb-outline) { box-shadow: 0 0 18px color-mix(in srgb, var(--cb-bg) 70%, transparent); }
.cbtn.cb-glass.cb-shadow-soft { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35), 0 4px 12px rgb(0 0 0 / .18); }
/* click animations: press works on its own; the others play when tapped (.tap, set by card-page.js) */
.cbtn.cb-anim-press:active, .cbtn.cb-anim-ripple:active { transform: scale(.97); }
.cbtn.tap.cb-anim-bounce { animation: cb-bounce .45s ease; }
.cbtn.tap.cb-anim-jelly { animation: cb-jelly .55s ease; }
.cbtn.tap.cb-anim-shine::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .55) 50%, transparent 70%); transform: translateX(-100%); animation: cb-shine .6s ease; }
.cbtn .cb-ripple { position: absolute; z-index: -1; border-radius: 50%; background: currentColor; opacity: .3; transform: scale(0); animation: cb-ripple .6s ease-out forwards; pointer-events: none; }
@keyframes cb-bounce { 30% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes cb-jelly { 25% { transform: scale(1.06, .92); } 50% { transform: scale(.95, 1.05); } 75% { transform: scale(1.02, .98); } 100% { transform: scale(1); } }
@keyframes cb-shine { to { transform: translateX(100%); } }
@keyframes cb-ripple { to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cbtn, .cbtn.tap { animation: none !important; transition: none; } }

/* Products & services with big pictures: full width, the whole picture (never cropped), the name above it. */
.item-big { padding: 10px 0 14px; text-align: center; }
.item-big + .item-big, .item-btn + .item-big, .item-big + .item-btn { border-top: 1px solid rgb(127 127 127 / .15); }
.item-big h3 { margin: 0 0 8px; font-size: 16px; }
.item-big h3 a { color: inherit; text-decoration: none; }
.item-big img { display: block; width: 100%; height: auto; border-radius: calc(var(--radius) * .6); }
.item-big .rich { margin-top: 8px; font-size: 14px; }
.item-big .rich p { margin: 0 0 6px; }

/* Gallery "full": each picture whole, one under another (as on the original cards). */
.gallery.gallery-full { grid-template-columns: 1fr; }
.gallery.gallery-full img, .gallery.gallery-full img:first-child:nth-last-child(odd) { aspect-ratio: auto; height: auto; object-fit: contain; grid-column: auto; }
/* Products: normal price struck through above the special price; "whole" pictures keep their own shape. */
.product .prices { display: flex; flex-direction: column; gap: 1px; }
.product .prices del { margin-left: 0; font-size: 12.5px; }
.products.products-whole { align-items: start; }
.products.products-whole .product img { aspect-ratio: auto; height: auto; object-fit: contain; }
.product.no-pic .body { padding-top: 14px; }
/* Products one per row (as on the original cards): bigger name and price. */
.products.products-one { grid-template-columns: 1fr; }
.products.products-one .product h3 { font-size: 16px; }
.products.products-one .product .price { font-size: 17px; }
.products.products-one .product .body { padding: 12px 14px 14px; }
.products.products-one .product-btns { flex-direction: row; }
.products.products-one .product-btns .btn { flex: 1; padding: 10px; font-size: 13px; }
/* Converted cards, as the originals: gallery pictures touching (no gaps), products centred with small stacked buttons. */
.gallery.gallery-full { gap: 0; }
.gallery.gallery-full img { border-radius: 0; }
.products.products-one .product { text-align: center; }
.products.products-one .product .prices { align-items: center; }
.products.products-one .product h3 { font-size: 14px; font-weight: 500; }
.products.products-one .product-btns { flex-direction: column; align-items: center; }
.products.products-one .product-btns .btn { flex: none; width: auto; min-width: 130px; padding: 9px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
/* Cards moved from the original look (body.classic): the small, airy text the original themes used (12px, line height 2). */
body.classic .rich, body.classic .rich p, body.classic .rich li, body.classic .item .rich p, body.classic .item-big .rich, body.classic .contact-list dd,
body.classic .product .desc, body.classic .row, body.classic .quote p { font-size: 12.5px; line-height: 1.9; font-weight: 500; }
body.classic .item h3, body.classic .item-big h3 { font-size: 14px; font-weight: 600; }

/* Background picture behind the card only (as the original cards): stretched over the card column's full length,
   scrolling with it; the page around it is a plain colour (--bg). */
body.bg-card { background-attachment: scroll; }
/* The picture covers the card's top part only (header to social icons), stretched to it like the original .card;
   the boxes below sit on the page colour. */
body.bg-card .card-top { background: var(--card-bg); padding-bottom: 6px; }

/* Contact details with icons (as the original cards): an icon before each line, no labels. */
.contact-icons { list-style: none; margin: 0; padding: 0; text-align: left; }
.contact-icons li { display: flex; align-items: flex-start; gap: 14px; padding: 7px 0; overflow-wrap: anywhere; }
.contact-icons li > i { width: 22px; flex-shrink: 0; text-align: center; font-size: 18px; line-height: 1.3; }
.contact-icons .map-link { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo and names at the top to the left or right (as some original themes had them). */
/* Only on the plain logo layout (hdr-center): other layouts place photos and logo badges themselves. */
body.hal-left.hdr-center .header { text-align: left; }
body.hal-left.hdr-center .header .logo { margin-left: 0; margin-right: auto; }
body.hal-right.hdr-center .header { text-align: right; }
body.hal-right.hdr-center .header .logo { margin-left: auto; margin-right: 0; }

/* The share block in the card (cards moved from the original look): WhatsApp box in one row, then Save and Share. */
.share-inline .wa-send { margin: 0 auto 12px; padding: 0; background: none; box-shadow: none; border: 0; max-width: 320px; }
.share-inline .wa-send-row { display: flex; align-items: stretch; gap: 0; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.share-inline .wa-send-row input[type=tel] { flex: 1; min-width: 0; border: 0; border-radius: 0; padding: 9px 10px; font-size: 13px; color: #111; background: #fff; }
.share-inline .wa-send-row button { border: 0; border-radius: 0; padding: 0 12px; background: var(--accent); color: var(--accent-text); font-weight: 600; font-size: 13px; white-space: nowrap; }
.share-inline-btns { display: flex; justify-content: center; gap: 8px; }
.share-inline-btns .btn { flex: 1; max-width: 160px; border-radius: 999px; padding: 10px 14px; font-size: 13px; }
.share-inline .wa-send-row input[type=tel], .share-inline .wa-send-row > button { height: 40px; box-shadow: none; }
/* Cards moved from the original look keep its width (the original cards were 437px wide), so the top picture
   and everything on it keep their proportions. */
body.classic .page { max-width: var(--classic-w, 437px); }
.share-inline-btns .btn { white-space: nowrap; font-size: 12.5px; padding: 10px 12px; }
/* Cards moved from the original look: the top part as compact as the original (contact buttons in one row,
   about 40px, tight spacing), so the top picture covers about the same height and keeps its look. */
/* (only the small icon buttons: tile and block button styles keep their own layout) */
body.classic.btn-icons .card-top .actions { flex-wrap: nowrap; gap: 8px; padding: 12px 10px 4px; }
body.classic.btn-icons .card-top .action { width: auto; min-width: 0; }
body.classic.btn-icons .card-top .action .ic { width: 42px; height: 42px; font-size: 21px; }
body.classic .card-top .section { margin-top: 4px; padding-top: 8px; padding-bottom: 8px; }
body.classic .card-top .contact-icons li { padding: 4px 0; }

/* Cards moved from the original look: the top part's own colours (read from the old theme). */
/* The top of the card's own colours (Design → Top of the card; converted cards get their theme's). */
html body.cl-tt.cl-tt.cl-tt :is(.card-top, [data-type="header"], [data-section-id].st-nobg) :is(.company, .person, .position, h2, p, li, dd, dt, small, .contact-icons i) { color: var(--cl-top-text) !important; -webkit-text-fill-color: var(--cl-top-text) !important; }
body.cl-nb .hdr-names { background: var(--cl-band-names); }
body.cl-nb .hdr-names { margin: 10px -16px 0; padding: 8px 16px; }
/* The band behind the names on every header layout (owner 2026-11-29: "on some cards it is doing nothing") */
body.cl-nb :is(.names-left, .hero-text) { background: var(--cl-band-names); padding: 8px 12px; border-radius: 12px; }
/* The contact band wins over "no box" (materials-art.css: [data-section-id].st-nobg > *). */
body.cl-cb [data-section-id][data-type="contact"] > .section { margin-left: 0; margin-right: 0; border-radius: 0; padding: 12px 22px; background: var(--cl-band-contact) !important; }
.share-inline-btns .btn { background: var(--cl-share, var(--accent)); color: var(--cl-share-text, var(--accent-text)); }
body.cl-up .company { text-transform: uppercase; }
/* Classic chosen in the quick setup (cl-small): the names and button labels at the top smaller as well, so the switch is easy to see
   on a new card that has no long texts yet. A long name the fit script shrank keeps its own (smaller) inline size. */
html body.cl-small.cl-small .company { font-size: 22px; letter-spacing: .04em; }
html body.cl-small.cl-small .person { font-size: 14px; }
html body.cl-small.cl-small .position { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
html body.cl-small.cl-small .action { font-size: 11px; }
.share-inline .wa-cc { height: 40px; border: 0; border-right: 1px solid #e5e7eb; border-radius: 0; background: #f3f4f6; font-size: 13px; padding: 0 8px; }

/* Business name: words never break in the middle (a long name gets smaller instead: the fit script in cards/v2/page). */
.company { overflow-wrap: normal; word-break: normal; hyphens: manual; max-width: 100%; }
/* The names beside a logo or photo may never be wider than the card: their block may shrink, so the fit script sees a
   long name and makes it smaller (audit 2026-11-14: "ALL ELECTRICAL" ran off the card with "Logo beside the name"). */
.header > :not(.logo):not(img), .hdr-names, .names-left, .hero-text { min-width: 0; }
.hdr-split .header > :not(.logo):not(img) { flex: 1 1 0; }

/* Top of the card on a light design: a soft see-through white band with rounded corners instead of a dark one. */
body.cl-nb.cl-soft .hdr-names { background: rgb(255 255 255 / .55) !important; border-radius: 14px; margin: 10px 4px 0; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
body.cl-cb.cl-soft [data-section-id][data-type="contact"] > .section { background: rgb(255 255 255 / .55) !important; border-radius: 14px; margin-left: 12px; margin-right: 12px; }

/* Phones: form boxes (contact form, bookings, buying music or tickets, share by WhatsApp) at 16px or more, or
   iPhones zoom the card in when one is tapped (audit 2026-11-14). */
@media (max-width: 639px) { body input:not([type=checkbox]):not([type=radio]), body select, body textarea { font-size: 16px !important; } }

/* Header audit 2026-11-16: photo-led layouts with only a logo show it big (a rounded square that follows the logo, never
   cut into a circle), instead of a small chip in the corner of an empty coloured block. */
.media-logo { position: absolute; left: 50%; top: 42%; z-index: 2; transform: translate(-50%, -50%); width: auto; min-width: 120px; max-width: min(260px, 72%); height: 132px;
    object-fit: contain; background: var(--plate, #fff); border-radius: var(--logo-radius, 26px); padding: 10px; box-shadow: var(--frame, 0 0 0 0 transparent), 0 12px 32px rgb(0 0 0 / .25); }
.media-logo.bare { background: transparent; box-shadow: none; padding: 0; }
.media-logo.fill { padding: 0; }
.hdr-ribbon .media-logo { top: 46%; }
.fade-text.no-photo { padding-top: 28px; }
.fade-text.no-photo .logo { margin: 0 0 16px; width: auto; min-width: 110px; max-width: min(240px, 70%); height: 110px; border-radius: var(--logo-radius, 26px); padding: 10px; }
.offset-logo { margin-left: auto; width: auto; min-width: 110px; max-width: 55%; height: 120px; object-fit: contain; background: var(--plate, #fff); border-radius: var(--logo-radius, 26px); padding: 10px;
    box-shadow: var(--frame, 0 0 0 0 transparent), 0 12px 30px rgb(0 0 0 / .18); }
.offset-logo.bare { background: transparent; box-shadow: none; padding: 0; }

/* Thumb-size taps (audit 2026-11-20: music Buy 32 px, shop Order 31 px, services "More info" 16 px tall): at least 44 px */
.tr-buy, .product-btns .btn { min-height: 44px; }
.item a.more { display: inline-flex; align-items: center; min-height: 44px; }
