/* Community app. Mobile first. Blue #00843D and yellow #FEDD00, yellow only as a background or
   accent behind dark text, never yellow text on white. */

:root {
  --blue: #00843D;
  --blue-d: #006B32;
  --blue-dd: #002776;
  --blue-50: #E6F4EA;
  --blue-100: #C9E8D3;
  --yellow: #FEDD00;
  --yellow-d: #E6C700;
  --yellow-50: #FFF8CC;
  --ink: #0E1A2B;
  --muted: #536173;
  --line: #E2E7EE;
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --ok: #157A3E;
  --err: #B42318;
  --r: 20px;
  --r-s: 14px;
  --shadow: 0 1px 2px rgb(14 26 43 / 6%), 0 6px 20px rgb(14 26 43 / 6%);
  --head: "Unbounded", "Manrope", system-ui, sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tab-h: 62px;
  /* the home-indicator area, a bit tighter than the full inset so the bar does not look lifted */
  --tab-pad: max(6px, calc(var(--safe-b) - 12px));
  --tabbar-h: calc(var(--tab-h) + var(--tab-pad));
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
/* A double tap never zooms the page (Hugo, 24 Nov: two quick taps on the home page made it huge);
   pinching to zoom still works. */
html { touch-action: manipulation; }


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* No rubber-band bounce: on iPhone it dragged the fixed bars along while scrolling. */
html, body { overscroll-behavior: none; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--text);
  /* room for the bar and the round button that rises above it */
  padding-bottom: calc(var(--tabbar-h) + 40px);
  -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
a { color: var(--blue); }
a, button, select, label.check, .chips a, [data-share] { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 10px; }
.ic { flex: none; }
button { font: inherit; }
[hidden] { display: none !important; }
.small { font-size: 14px; color: var(--muted); }
.center { text-align: center; }

/* ---- loading screen ---------------------------------------------------------------- */
.splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: radial-gradient(120% 80% at 50% 0%, #00A94A 0%, var(--blue) 45%, var(--blue-dd) 100%);
  color: #fff; transition: opacity .35s ease, visibility .35s;
}
html.booted .splash { display: none; }
.splash.out { opacity: 0; visibility: hidden; }
.splash-in { display: grid; justify-items: center; gap: 6px; padding: 24px; text-align: center; }
.splash .mark { animation: pop .7s cubic-bezier(.2, .9, .3, 1.3) both, bob 2.4s ease-in-out .7s infinite; border-radius: 26px; box-shadow: 0 18px 40px rgb(0 0 0 / 25%); }
.splash .mark rect { fill: #0B5FC4; }
.splash-name { font: 800 34px/1.1 var(--head); margin: 18px 0 0; animation: rise .6s .15s both; }
.splash-tag { font-size: 16px; opacity: .85; margin: 0; animation: rise .6s .25s both; }
.splash-bar { width: 140px; height: 6px; border-radius: 6px; background: rgb(255 255 255 / 22%); overflow: hidden; margin-top: 22px; }
.splash-bar span { display: block; height: 100%; width: 40%; border-radius: 6px; background: var(--yellow); animation: slide 1.1s ease-in-out infinite; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
.navbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 90; background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.navbar.go { width: 85%; transition: width 4s cubic-bezier(.1, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { .splash *, .navbar { animation: none !important; transition: none !important; } }

/* ---- top --------------------------------------------------------------------------- */
.demo-strip { position: sticky; top: 0; z-index: 21; margin: 0; padding: calc(var(--safe-t) + 4px) 16px 4px; background: var(--yellow); color: var(--ink); font-size: 12.5px; font-weight: 700; line-height: 18px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* In the app installed on an iPhone the page runs under the clock and the camera: the header starts
   below them (safe area), also while it stays at the top during a scroll. On the test copy the yellow
   strip is the one under the clock, and the header stays right below it. The header is the same
   height on every page, with or without “Adicionar” (42 px) or the back arrow (44 px): with only the
   language switch it was 8 px shorter on Perfil and Mapa, and jumped between tabs (Hugo, 24 Nov). */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; min-height: calc(var(--safe-t) + 60px); padding: calc(var(--safe-t) + 8px) 16px 8px; background: var(--blue); color: #fff; }
.demo-strip + .top { top: calc(var(--safe-t) + 26px); padding-top: 8px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 20px/1 var(--head); }
.brand .mark { border-radius: 10px; box-shadow: 0 0 0 2px rgb(255 255 255 / 25%); }
.lang-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 20px; background: rgb(255 255 255 / 18%); }
.top-inner .lang-toggle { background: var(--blue-50); }
.flag { display: block; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; opacity: .45; transform: scale(.82); transition: opacity .2s, transform .2s; }
.flag svg { display: block; width: 100%; height: 100%; }
.lang-toggle:not(.is-en) .flag-ua, .lang-toggle.is-en .flag-gb { opacity: 1; transform: none; box-shadow: 0 0 0 2px #fff; }
.lang-toggle + .top-add { margin-left: 8px; }
.top:has(.admin-badge) .admin-badge + * { margin-left: auto; }
.admin-badge { padding: 3px 9px; border-radius: 999px; background: var(--yellow); color: var(--blue-dd); font: 800 12px var(--text); letter-spacing: .04em; text-transform: uppercase; }
.top-inner { background: var(--card); color: var(--ink); border-bottom: 1px solid var(--line); }
.top-back { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; border-radius: 50%; color: var(--ink); }
.top-back:active { background: var(--blue-50); }
.top-title { font: 700 18px/1.2 var(--head); }

/* ---- home -------------------------------------------------------------------------- */
.hero { background: var(--blue); color: #fff; padding: 6px 16px 56px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: var(--yellow); opacity: .14; }
.hero-hi { font-weight: 700; color: var(--yellow); margin: 4px 0 6px; position: relative; }
.hero-t { font-size: clamp(26px, 7.6vw, 34px); font-weight: 800; max-width: 15ch; position: relative; }
.search { display: flex; align-items: center; gap: 10px; margin-top: 18px; background: #fff; color: var(--muted); border-radius: 16px; padding: 0 14px; min-height: 54px; box-shadow: 0 8px 24px rgb(0 0 0 / 15%); position: relative; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 17px var(--text); color: var(--ink); background: transparent; padding: 14px 0; }
.search-in { margin: 0; box-shadow: none; border: 1.5px solid var(--line); }
.search-in:focus-within { border-color: var(--blue); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; position: relative; }
.quick a { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 12px 4px; border-radius: 16px; background: rgb(255 255 255 / 12%); color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 700; text-align: center; line-height: 1.2; }
.quick a:active { background: rgb(255 255 255 / 22%); }
.q-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: var(--blue-dd); }
.sheet { margin-top: -32px; position: relative; background: var(--bg); border-radius: 28px 28px 0 0; padding-top: 8px; }

.sec { padding: 18px 16px 4px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-head h2 { font-size: 20px; font-weight: 700; }
.sec-head a { display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; font-size: 15px; padding: 6px 0; }
.stack { display: grid; gap: 10px; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.fresh { flex: 0 0 72%; max-width: 280px; scroll-snap-align: start; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); overflow: hidden; display: grid; padding-bottom: 14px; }
.fresh .fresh-img { width: 100%; height: 118px; border-radius: 0; font-size: 36px; }
.fresh-k { display: flex; align-items: center; gap: 6px; margin: 12px 14px 2px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.fresh-t { margin: 0 14px; font-weight: 800; font-size: 17px; line-height: 1.25; }
.fresh-m { margin: 4px 14px 0; font-size: 14px; color: var(--muted); }
.cta { margin: 22px 16px 8px; padding: 20px; border-radius: var(--r); background: var(--yellow); color: var(--ink); display: grid; gap: 14px; }
.cta-t { font: 700 19px/1.25 var(--head); margin-bottom: 6px; }
.cta p:last-child { margin: 0; }
/* share the app (Hugo, 26 Nov): a white card with one blue button, above the yellow “Adicionar” */
.sharec { margin: 22px 16px 0; padding: 18px 18px 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; }
.sharec-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #E8F0FB; color: var(--blue); }
.sharec-tx p { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.sharec-tx .sharec-t { margin-bottom: 4px; font: 700 18px/1.25 var(--head); color: var(--ink); }
.sharec .btn { grid-column: 1 / -1; }
.page > .sharec { margin: 0 0 14px; }
.share-me .share-link { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 8px 8px 8px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); }
.share-me .share-url { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }
.share-me .share-nums { display: flex; gap: 18px; margin: 12px 0 4px; font-size: 15px; }

/* ---- cards ------------------------------------------------------------------------- */
.ecard, .bcard { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); overflow: hidden; }
.ecard:active, .bcard:active { transform: scale(.985); }
/* on a phone a finger that lands to scroll is “active” at once, so the cards shrank under it as if
   pressed (Hugo, 27 Nov: “it seems to be clicked”): the press shows only after a moment, and a scroll
   ends it before that */
@media (hover: none) {
  .ecard, .bcard, .fresh, .tgc, .adcard, .news { transition: transform .12s ease; }
  .ecard:active, .bcard:active, .tgc:active, .adcard:active, .news:active { transition-delay: .12s; }
}
.ecard { flex-direction: column; align-items: stretch; gap: 0; }
.ecover { position: relative; display: block; }
.ecard .ecover-img { width: 100%; height: 150px; border-radius: 0; }
.echip { position: absolute; left: 12px; top: 12px; display: grid; justify-items: center; min-width: 52px; padding: 6px 8px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgb(0 0 0 / 18%); }
.echip b { font: 800 22px/1 var(--head); }
.echip small { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--blue); margin-top: 2px; }
.ecard .ebody { padding: 12px 14px 14px; }
.bcard { padding: 10px; }
.bcard .bthumb { width: 92px; height: 92px; border-radius: 16px; }
.ebody, .bbody { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ecat, .bcat { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; }
.etitle, .btitle { font-weight: 800; font-size: 17px; line-height: 1.25; }
.emeta, .bmeta { display: flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--muted); }
.emeta .ic, .bmeta .ic { color: var(--blue); }
.thumb { flex: none; width: 66px; height: 66px; border-radius: 16px; object-fit: cover; }
.ph { display: grid; place-items: center; font: 800 20px var(--head); position: relative; overflow: hidden; isolation: isolate; }
/* a picture-less entry (Hugo, 24 Nov: nicer placeholders): the category's colour with a soft light,
   a cross-stitch lattice like a vyshyvanka, and the icon on a white medallion */
.ph::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background:
    radial-gradient(120% 90% at 30% 20%, rgb(255 255 255 / 55%), rgb(255 255 255 / 0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23000' fill-opacity='.07'%3E%3Cpath d='M20 4l4 4-4 4-4-4zM20 28l4 4-4 4-4-4zM4 20l4-4 4 4-4 4zM36 20l-4 4-4-4 4-4z'/%3E%3Cpath d='M20 15l5 5-5 5-5-5z' fill-opacity='.11'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 40px 40px; }
.ph > svg { box-sizing: content-box; padding: .55em; border-radius: 50%; background: rgb(255 255 255 / 78%); box-shadow: 0 6px 18px rgb(14 26 43 / 12%), inset 0 0 0 2px rgb(255 255 255 / 60%); }
.bcard .bthumb.ph > svg, .thumb.ph > svg { padding: .35em; }
.bgo { color: var(--muted); }
.badge-ex { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--yellow-50); color: #6B5400; border: 1px solid #F0D96B; font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: none; }

/* category tones: soft background, dark text */
.t1 { background: var(--blue-100); color: var(--blue-dd); }
.t2 { background: #FBDDE6; color: #7A1E3D; }
.t3 { background: #D2F0EA; color: #0D5A4C; }
.t4 { background: #FFE2C7; color: #7A3A05; }
.t5 { background: #FFF0A6; color: #5C4800; }
.t6 { background: #E7DEFB; color: #432483; }

/* ---- pages ------------------------------------------------------------------------- */
.page { padding: 18px 16px 8px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; font-weight: 800; }
.lead { font-size: 17px; color: var(--muted); margin-bottom: 16px; }
.seg { display: inline-flex; background: var(--blue-50); border-radius: 14px; padding: 4px; gap: 2px; }
.seg a, .seg button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 11px; border: 0; background: transparent; color: var(--blue-d); font-weight: 700; font-size: 15px; text-decoration: none; min-height: 40px; }
.seg .on { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgb(0 87 183 / 30%); }
.filters { display: grid; gap: 10px; margin-bottom: 12px; }
.sel { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 0 12px; color: var(--blue); }
.sel select { flex: 1; border: 0; background: transparent; font: 600 16px var(--text); color: var(--ink); min-height: 50px; outline: 0; appearance: none; -webkit-appearance: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.chips a.on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.hint { font-size: 15px; color: var(--muted); }
.count { font-size: 14px; color: var(--muted); font-weight: 700; margin: 0 0 8px; }
.day-h { font: 700 16px var(--text); color: var(--muted); margin: 18px 0 10px; text-transform: none; }
.day-h::first-letter { text-transform: uppercase; }
.daygroup:first-of-type .day-h { margin-top: 4px; }
/* “Perto daqui, em outros cantões” under a short canton list (27 Nov) */
.nearby { margin-top: 22px; padding-top: 6px; border-top: 1px solid var(--line); }
.nearby .day-h { display: flex; align-items: center; gap: 6px; color: var(--blue); }

.cal { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font: 700 17px var(--head); }
.cal-head a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--blue); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-wd { font-size: 12.5px; font-weight: 800; color: var(--muted); padding: 4px 0; }
.cal-d { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15.5px; }
.cal-d.past { color: #A3ADBA; }
.cal-d.has::after { content: ""; position: absolute; bottom: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.cal-d.today { box-shadow: inset 0 0 0 2px var(--blue); }
.cal-d.sel { background: var(--yellow); }
.cal-d.sel.has::after { background: var(--blue-dd); }

/* ---- detail ------------------------------------------------------------------------ */
.detail .cover { height: 200px; display: grid; place-items: center; }
.detail img.cover.kat { width: 100%; height: 200px; object-fit: cover; display: block; }
.thumb.kat { object-fit: cover; background: var(--blue-100); }
.detail .cover .ic { opacity: .85; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; background: #000; scrollbar-width: none; }
.gallery img { flex: 0 0 100%; height: 260px; object-fit: cover; scroll-snap-align: start; cursor: pointer; }
.gallery-wrap { position: relative; }
.gallery-open { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border: 0; border-radius: 14px; background: rgb(0 0 0 / 55%); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.gallery-n { position: absolute; right: 10px; top: 10px; padding: 3px 10px; border-radius: 12px; background: rgb(0 0 0 / 55%); color: #fff; font-size: 13px; font-weight: 700; pointer-events: none; }
/* Photos full screen: whole (not cropped), one after another with a swipe or the arrows (Hugo, 24 Nov) */
.lb { position: fixed; inset: 0; z-index: 120; background: #000; animation: fade .2s ease; }
.lb-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; scroll-snap-align: center; padding: calc(var(--safe-t) + 60px) 0 calc(var(--safe-b) + 56px); }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 16%); color: #fff; }
.lb button:active { background: rgb(255 255 255 / 30%); }
.lb-close { top: calc(var(--safe-t) + 10px); right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb button[hidden] { display: none; }
.lb-n { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 18px); color: #fff; font-size: 14px; font-weight: 700; }
.detail-body { position: relative; margin-top: -22px; background: var(--bg); border-radius: 24px 24px 0 0; padding: 20px 16px 8px; }
.kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.detail-t { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.detail-place { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.detail-place .ic { color: var(--blue); }
.facts { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 2px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.facts li { display: flex; gap: 14px; padding: 14px; align-items: flex-start; color: var(--muted); font-size: 15px; line-height: 1.4; }
.facts li + li { border-top: 1px solid var(--line); }
.facts b { color: var(--ink); font-size: 16.5px; }
.f-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.prose { font-size: 17px; line-height: 1.6; margin: 14px 0; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.actions .btn-yellow:first-child { grid-column: 1 / -1; }
/* a lone button (the “Voltar” of the thank-you pages) takes the whole row, never half of it on the left */
.actions > :only-child { grid-column: 1 / -1; }

/* ---- buttons, forms ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 18px; border-radius: 15px; border: 0; font: 800 16px var(--text); text-decoration: none; text-align: center; line-height: 1.2; }
.btn:active { transform: scale(.98); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--yellow-d); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-dd); }
.btn-line { background: var(--card); color: var(--blue-d); border: 1.5px solid var(--blue-100); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-big { width: 100%; min-height: 56px; font-size: 17px; }
.btn-small { min-height: 40px; padding: 8px 14px; }
.btn[disabled] { opacity: .6; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; align-content: start; }
.field-l { font-weight: 800; font-size: 15px; }
.field-h { font-size: 13.5px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 500 17px var(--text); color: var(--ink); background: var(--card); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 13px 14px; min-height: 52px; outline: 0; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.field input.code { font: 800 28px var(--head); letter-spacing: .3em; text-align: center; }
/* a wrong field: red border and its sentence under it (the invoice details, 25 Nov) */
.field input[aria-invalid="true"] { border-color: #C62828; border-width: 2px; background: #FFF7F6; }
.field input[aria-invalid="true"]:focus { border-color: #C62828; box-shadow: 0 0 0 4px #FDE7E5; }
.field-e { font-size: 14px; font-weight: 700; line-height: 1.35; color: #B71C1C; }
.group { border: 0; margin: 0; padding: 16px; background: var(--card); border-radius: var(--r); display: grid; gap: 14px; box-shadow: var(--shadow); }
.group legend { float: left; width: 100%; font: 700 17px var(--head); padding: 0; margin-bottom: 2px; }
.group legend + * { clear: both; }
.opt { font: 600 13px var(--text); color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--blue); }
.photos { display: grid; gap: 6px; }
.photos input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photos-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border: 2px dashed var(--blue-100); border-radius: 16px; color: var(--blue); font-weight: 800; background: var(--blue-50); }
.photos input:focus-visible + .photos-btn { outline: 3px solid var(--blue); }
.photos-h { font-size: 13.5px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 14px; font-size: 15.5px; margin: 0 0 14px; }
.n-ok { background: #E3F5EA; color: #0D4F27; }
.n-err { background: #FDE7E5; color: #7A1A12; }
.n-info { background: var(--blue-50); color: var(--blue-dd); }
.empty { text-align: center; padding: 28px 16px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); display: grid; gap: 4px; justify-items: center; }
.empty-t { font: 700 18px var(--head); }
.empty p { color: var(--muted); }

.choice { display: grid; gap: 12px; }
.choice-c { display: grid; gap: 4px; align-content: start; padding: 22px; border-radius: 24px; text-decoration: none; }
.choice-c b { font: 800 24px var(--head); }
.choice-c > span:not(.choice-ic) { font-size: 16px; opacity: .9; }
/* sole traders without a site belong here too (Hugo, 25 Nov) */
.choice-tip { font-weight: 700; margin-top: 6px; }
.choice-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; margin-bottom: 10px; }
.c-blue { background: var(--blue); color: #fff; }
.c-blue .choice-ic { background: var(--yellow); color: var(--blue-dd); }
.c-yellow { background: var(--yellow); color: var(--ink); }
.c-yellow .choice-ic { background: var(--blue); color: #fff; }

.done, .auth { text-align: center; display: grid; justify-items: center; gap: 4px; padding-top: 32px; }
.auth .form, .done .actions { width: 100%; text-align: left; }
.auth h1, .done h1 { font-size: 28px; margin: 14px 0 6px; }
.auth .mark { border-radius: 18px; }
.done-ic { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--yellow); color: var(--blue-dd); }

.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; margin-bottom: 12px; display: grid; gap: 10px; }
.card-t { display: flex; align-items: center; gap: 8px; font: 700 18px var(--head); margin: 0; }
.card p { margin: 0; }
.hello { background: var(--blue); color: #fff; }
.hello .card-t { font-size: 22px; }
.card-link { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: var(--ink); }
.pill { min-width: 32px; padding: 4px 10px; border-radius: 999px; background: var(--yellow); font-weight: 800; text-align: center; }
.mine { list-style: none; padding: 0; margin: 0; display: grid; }
.mine li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.mine a { color: var(--ink); font-weight: 700; text-decoration: none; }
.st { flex: none; font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.st-pending { background: var(--yellow-50); color: #6B5400; }
.st-approved { background: #E3F5EA; color: #0D4F27; }
.st-rejected { background: #FDE7E5; color: #7A1A12; }
/* the Telegram channel card: smaller than the content around it, the logo in its own colour */
.tgc { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.tgc:active { transform: scale(.985); }
.tgc-ic { flex: none; width: 40px; height: 40px; }
.tgc-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tgc-tx b { font-weight: 800; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgc-tx span { font-size: 13.5px; line-height: 1.3; color: var(--muted); }
.tgc-go { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #E8F5FC; color: #229ED9; }
.madeby { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 18px auto 8px; width: max-content; max-width: 100%; color: var(--muted); font-size: 14px; text-decoration: none; cursor: pointer; }
.madeby-pill { display: flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgb(14 26 43 / 8%); }
.madeby b { color: var(--ink); font-weight: 800; }
.madeby img { border-radius: 6px; }
.madeby:hover .madeby-pill, .madeby:active .madeby-pill { border-color: var(--blue); }
.madeby-tap { display: flex; align-items: center; gap: 6px; color: var(--blue); font-size: 13px; font-weight: 700; }
/* the hand taps toward the button: up, a press with the little rays, back, then a rest */
.tap-hand { flex: none; transform-origin: 50% 80%; animation: tap 2.4s ease-in-out infinite; }
.tap-hand .tap-rays { opacity: 0; animation: tap-rays 2.4s ease-in-out infinite; }
@keyframes tap { 0%, 40%, 100% { transform: none; } 12% { transform: translateY(-3px); } 20% { transform: translateY(-2px) scale(.88); } 30% { transform: translateY(-3px); } }
@keyframes tap-rays { 0%, 16%, 34%, 100% { opacity: 0; } 22% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tap-hand, .tap-hand .tap-rays { animation: none; } .tap-hand .tap-rays { opacity: 1; } }
.links { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin: 14px 0; font-size: 14.5px; }
.mod .mod-img { border-radius: 12px; max-height: 200px; object-fit: cover; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.legal h1 { font-size: 26px; margin: 8px 0; }
.legal h2 { font: 700 18px var(--head); margin: 22px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; }
.legal ul { padding-left: 20px; }

/* ---- round 2: sign-ups, owners, editing ---------------------------------------- */
.etags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-dd); font-size: 13px; font-weight: 800; }
.tag-free { background: #E3F5EA; color: #0D4F27; }
.tag-donation { background: #FFF6CC; color: #5C4600; }
.tag-going { background: var(--yellow-50); color: #5C4800; }
.rsvp { display: grid; gap: 10px; margin: 14px 0 6px; padding: 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); border: 2px solid var(--blue-100); }
.rsvp form { display: grid; gap: 8px; margin: 0; }
.rsvp-n { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; }
.rsvp-n .ic { color: var(--blue); }
.rsvp-cap { color: var(--muted); }
.rsvp-me { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 12px; border-radius: 14px; background: #E3F5EA; color: #0D4F27; font-weight: 800; }
.rsvp-full { margin: 0; padding: 12px; border-radius: 14px; background: var(--bg); color: var(--muted); font-weight: 800; text-align: center; }
.owner { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 8px; padding: 14px; border-radius: var(--r); background: var(--yellow-50); border: 1.5px dashed #E8C84A; }
.owner-t { grid-column: 1 / -1; margin: 0; font-weight: 800; }
.photo-old input { width: 20px; height: 20px; vertical-align: -4px; accent-color: var(--err); }
.danger { margin: 18px 0 0; text-align: center; }
.btn-danger { color: var(--err); }
.btn-danger-solid { background: var(--err); color: #fff; }
.radios { display: grid; gap: 8px; }
.radios label { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 700; }
.radios input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); }
.radios label:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.mine-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.mine-edit { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: var(--blue); background: var(--blue-50); }
.st-going { background: var(--blue-50); color: var(--blue-dd); text-decoration: none; }
.bye { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.bye form { margin: 0; }
.plain { margin: 0; padding-left: 20px; }
.people { margin: 0; padding-left: 24px; display: grid; gap: 6px; font-size: 17px; font-weight: 700; }
.page-title { font-size: 24px; font-weight: 800; margin: 4px 0 14px; }

/* ---- round 3 ----------------------------------------------------------------- */
/* two columns, like the buttons above it; a lone one takes the whole row (25 Nov) */
.msgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: -6px 0 16px; }
.msgs > :only-child { grid-column: 1 / -1; }
.msg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 15px; color: #fff; font-weight: 800; text-decoration: none; }
.msg-wa { background: #1FA855; }
.msg-viber { background: #7360F2; }
.msg-tg { background: #229ED9; }
.msg-ig { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.msg-fb { background: #1877F2; }
.fav { margin: 0; display: contents; }
.btn-fav { background: var(--card); color: var(--blue-d); border: 1.5px solid var(--blue-100); width: 100%; }
.btn-fav.on { background: #FDE7EE; color: #A3184A; border-color: #F6B9CC; }
.btn-fav.on .ic path { fill: currentColor; }
.report { text-align: center; margin: 22px 0 6px; }
.report a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14.5px; padding: 8px; }
.hours { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.open-state { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 800; }
.open-state.st-open { color: #157A3E; }
.open-state.st-closed { color: #B42318; }
.open-state.st-appointment { color: var(--blue-d); margin: 0; }
.hours table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.hours th { text-align: left; font-weight: 600; color: var(--muted); padding: 5px 0; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; padding: 5px 0; }
.hours tr.today th, .hours tr.today td { color: var(--ink); font-weight: 800; }
.tag-open { background: #E3F5EA; color: #0D4F27; }
.tag-closed { background: #F1F3F6; color: var(--muted); }
.tag-appointment { background: var(--blue-50); color: var(--blue-dd); }
.tag-rep { background: #E7DEFB; color: #432483; }
.tag-spot { display: inline-flex; align-items: center; gap: 4px; background: var(--yellow); color: var(--blue-dd); }
.spotbox { margin: 18px 0 8px; padding: 14px; border-radius: var(--r); background: #fff; border: 1.5px solid var(--yellow); }
.spotbox-t { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-weight: 800; }
.spotbox-now { margin: 0 0 4px; font-weight: 700; }
.spotbox-f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.spotbox-f select { grid-column: 1 / -1; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); padding: 0 12px; font: 600 16px var(--text); background: #fff; color: var(--ink); }
.spotbox-f .btn:only-of-type { grid-column: 1 / -1; }
.spots { margin-top: 18px; }
.spots-find { margin: 12px 0; }
.badge-rep { display: inline-block; padding: 1px 7px; border-radius: 6px; background: #E7DEFB; color: #432483; font-size: 11px; font-weight: 800; text-transform: none; letter-spacing: 0; }
.dist { color: var(--ink); }
.dates { margin: 0 0 14px; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.dates-t { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 800; }
.dates-t .ic { color: var(--blue); }
.dates-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dates-list a { padding: 8px 12px; border-radius: 12px; background: var(--blue-50); color: var(--blue-dd); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.series-info p { margin: 0 0 6px; }
.owner-wide { grid-column: 1 / -1; margin: 0; }
.fact-link { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.claim-mail { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); overflow-wrap: anywhere; }
.code-input { font: 800 26px var(--head) !important; letter-spacing: .2em; text-align: center; }
/* the business runs its own page (claimed or added by the owner) */
.official { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 0; padding: 6px 12px 6px 6px; border-radius: 999px; background: #E7F6EC; color: #11643A; font-size: 14px; font-weight: 700; }
.official-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1E9E5A; color: #fff; }
.owner-wide .btn { width: 100%; }
/* the owner's numbers and “Em destaque” on their own page (Hugo, 24 Nov) */
.nums { padding: 12px; border-radius: 14px; background: #fff; }
.nums-t { margin: 0 0 8px; font-weight: 800; }
.nums-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.num { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: var(--bg, #F5F7FA); text-align: center; }
.num b { font: 800 22px/1.1 var(--head); color: var(--blue); }
.num span { font-size: 12px; font-weight: 700; color: var(--muted); }
.nums .small { margin: 8px 0 0; }
.spot-own { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: #fff; border: 1.5px solid var(--yellow); }
.spot-own-t { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 800; }
.spot-own .small { margin: 0; }
.spot-places { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--yellow-50); }
.spot-places p { margin: 0; }
.spot-places .small { margin-top: 4px; }
/* who the “Em destaque” invoice is for (25 Nov): Latin letters, the postcode narrow beside the town */
.bill { display: grid; gap: 14px; margin: 0 0 6px; padding: 0; border: 0; min-width: 0; }
.bill legend { margin-bottom: 4px; font-weight: 800; }
.bill > .small { margin: 0; }
.bill-zip-e { display: grid; gap: 4px; margin-top: -8px; }
.bill-zip-e:empty { display: none; }
.bill-zip { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; }
/* an invoice to pay (Hugo, 25 Nov): orange while there is time, so it stands out from the app's
   yellow without alarming; red once the day to pay has passed */
.bill-alert { display: grid; gap: 6px; margin: 0 0 12px; padding: 14px 16px; border-radius: 14px; background: #FFF4EA; border: 2px solid #EA580C; }
.spot-own .bill-alert { margin: 2px 0 4px; }
.bill-alert p { margin: 0; }
.bill-alert-t { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #9A3412; }
.bill-alert-n { font: 800 18px var(--head); color: var(--ink); }
.bill-alert .small { color: #5A2A0C; }
.bill-alert-b { justify-self: start; margin-top: 4px; background: #C2410C; color: #fff; box-shadow: 0 4px 0 #8A2E08; }
.bill-alert.bill-late { background: #FFF5F4; border-color: #C62828; }
.bill-late .bill-alert-t { color: #B3261E; }
.bill-late .small { color: #5B1A14; }
.bill-late .bill-alert-b { background: #C62828; box-shadow: 0 4px 0 #8E1B1B; }
.tab-ic { position: relative; }
.tab-dot { position: absolute; top: 1px; right: 12px; width: 12px; height: 12px; border-radius: 50%; background: #EA580C; border: 2px solid #fff; }
.tab-dot.bill-late { background: #D32F2F; }
.invoices { margin-top: 18px; }
.invoices .inv-late { box-shadow: inset 4px 0 0 #B3261E, var(--shadow); }
.invoices .inv-late .kicker { color: #7A1A12; }
.inv-done { display: grid; gap: 6px; }
.inv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.inv-row span { min-width: 0; overflow-wrap: anywhere; }
.plans { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.plans legend { margin-bottom: 8px; font-weight: 800; }
.plan { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.plan:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.plan input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.plan-d { display: grid; font-weight: 800; }
.plan-d small { font-weight: 600; color: var(--muted); }
.plan-p { margin-left: auto; font: 800 18px var(--head); color: var(--blue); white-space: nowrap; }
.contact-line { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.contact-line a { font-weight: 700; white-space: nowrap; }
.near-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin: 0 0 12px; border-radius: 14px; border: 1.5px dashed var(--blue-100); background: var(--blue-50); color: var(--blue-d); font-weight: 800; font-size: 15.5px; }
.near-btn.on { border-style: solid; background: var(--yellow-50); border-color: #E8C84A; color: var(--ink); }
.chk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chk { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 700; }
.chk input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); }
.chk:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.hours-days { display: none; gap: 8px; }
.hoursf:has(input[name=hours_mode][value=hours]:checked) .hours-days { display: grid; }
.hday { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 6px; }
.hday-l { display: flex; align-items: center; gap: 8px; font-weight: 700; min-height: 44px; }
.hday-l input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); }
.hday input[type=time] { width: 92px; min-height: 44px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 12px; font: 600 15px var(--text); background: var(--card); color: var(--ink); }
.hday:has(.hday-l input:not(:checked)) input[type=time], .hday:has(.hday-l input:not(:checked)) .hday-dash { opacity: .35; }
.hday-dash { color: var(--muted); font-size: 14px; }
.show-s { display: none; }
@media (max-width: 380px) { .hide-s { display: none; } .show-s { display: inline; } .hday input[type=time] { width: 84px; } }

.where-online { display: none; }
fieldset:has(.online-toggle input:checked) .where-online { display: block; }
fieldset:has(.online-toggle input:checked) .where-place { display: none; }
.where-place, .where-online { display: grid; gap: 14px; }
fieldset:has(.online-toggle input:not(:checked)) .where-online { display: none; }

.claim { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; padding: 14px 16px; border-radius: var(--r); background: var(--blue-50); color: var(--blue-dd); text-decoration: none; line-height: 1.35; }
.claim span { flex: 1; }
.claim-hi { margin: 4px 0 14px; background: var(--yellow); color: var(--ink); box-shadow: 0 6px 16px rgb(242 194 0 / 35%); }

/* the printable poster */
.poster-page { background: #fff; padding: 0; }
.poster { max-width: 720px; margin: 0 auto; padding: 32px 28px; display: grid; justify-items: center; gap: 18px; text-align: center; color: var(--ink); }
.poster-top { display: flex; align-items: center; gap: 14px; font: 800 30px var(--head); color: var(--blue); }
.poster-top .mark { border-radius: 16px; }
.poster-h { font: 800 34px/1.2 var(--head); margin: 6px 0 0; }
.poster-name { font: 800 26px/1.25 var(--text); margin: 0; padding: 10px 22px; border-radius: 16px; background: var(--yellow); }
.poster-qr { width: min(80vw, 360px); padding: 18px; border-radius: 24px; border: 6px solid var(--blue); background: #fff; }
.poster-qr svg { display: block; width: 100%; height: auto; }
.poster-url { font: 700 18px var(--text); color: var(--muted); word-break: break-all; margin: 0; }
.poster-s { font-size: 19px; margin: 0; }
.poster-print { margin-top: 10px; }
.poster-print + .poster-print { margin-top: 0; }
.poster-bar { position: sticky; top: 0; z-index: 5; padding: calc(env(safe-area-inset-top, 0px) + 6px) 12px 6px; background: #fff; border-bottom: 1px solid var(--line); }
.poster-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 6px; border-radius: 22px; color: var(--ink); font-weight: 700; text-decoration: none; }
.poster-back:active { background: var(--blue-50); }
@media print {
  .poster-print, .poster-bar, .demo-strip { display: none !important; }
  .poster { padding: 0; }
  @page { size: A4; margin: 18mm; }
}

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.kpi { display: grid; gap: 2px; padding: 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.kpi span { font-weight: 700; font-size: 14px; }
.kpi b { font: 800 26px var(--head); color: var(--blue); }
.kpi small { color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; }
.bar-col { flex: 1; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; height: 100%; gap: 2px; }
.bar-n { font-size: 10.5px; color: var(--muted); }
.bar { align-self: end; width: 100%; max-width: 22px; height: 2px; border-radius: 6px 6px 2px 2px; background: var(--blue-100); }
.bar.today { background: var(--yellow); }
.bar-d { font-size: 11px; color: var(--muted); }
.mine li span { min-width: 0; overflow-wrap: anywhere; }
/* statistics (admin) */
.stats .kpi small.up { color: #0D6B35; font-weight: 700; }
.stats .kpi small.down { color: #B42318; font-weight: 700; }
.hints ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.barlist, .funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.barlist li, .funnel li { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: baseline; }
.bl-k { min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.bl-n { font-size: 15px; white-space: nowrap; }
.bl-n small, .funnel b small { color: var(--muted); font-weight: 600; }
.bl-track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bl-fill { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--blue); }
.bars2 { gap: 2px; }
.bars2 .bar-col { min-width: 0; }
.bars2 .bar-pair { position: relative; align-self: end; display: flex; justify-content: center; width: 100%; height: 100%; }
.bars2 .bar { position: absolute; bottom: 0; }
.bars2 .bar-v { max-width: 12px; background: var(--blue); }
.stbl { width: 100%; border-collapse: collapse; font-size: 14px; }
/* ads and tagged links in the statistics (26 Nov) */
.camps { list-style: none; margin: 0 0 8px; padding: 0; }
.camps li { padding: 10px 0; border-top: 1px solid var(--line); }
.camps li:first-child { border-top: 0; padding-top: 0; }
.camps p { margin: 0; }
.camp-n { font-size: 15px; margin-top: 2px; }
.stbl th { text-align: right; font-weight: 700; color: var(--muted); padding: 6px 4px; }
.stbl th:first-child, .stbl td:first-child { text-align: left; }
.stbl td { text-align: right; padding: 8px 4px; border-top: 1px solid var(--line); vertical-align: top; }
.stbl td:first-child { overflow-wrap: anywhere; }
.stbl a { color: var(--ink); font-weight: 700; text-decoration: none; }
.stbl .tag-spot { margin-left: 6px; padding: 0 6px; }

/* the install sheet */
/* A window in the middle of the screen, on iPhone and Android alike (Hugo, 24 Nov). */
.sheet-bg { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgb(14 26 43 / 50%); animation: fade .2s ease; }
.sheet-bg[hidden] { display: none; }
.isheet { width: 100%; max-width: 420px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 22px 18px 18px; border-radius: 26px; background: var(--card); box-shadow: 0 20px 60px rgb(0 0 0 / 30%); animation: modal-in .24s cubic-bezier(.2, .9, .3, 1); display: grid; gap: 14px; }
@keyframes modal-in { from { transform: translateY(12px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.isheet-grab { display: none; }
.isheet-head { display: flex; gap: 14px; align-items: center; }
.isheet-head .mark { flex: none; border-radius: 16px; }
.isheet-t { font: 700 19px/1.25 var(--head); margin: 0 0 4px; }
.isheet-s { margin: 0; color: var(--muted); font-size: 15px; }
.isheet-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.isheet-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--bg); font-size: 16px; line-height: 1.45; }
/* opened inside another app: the way out when its menu is not found (26 Nov) */
.isheet-copy { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 10px 10px 14px; border: 1.5px dashed var(--line); border-radius: 16px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.isheet-copy-t { flex: 1; }
.step-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); font-weight: 800; }
.ios-share { display: inline-grid; place-items: center; width: 30px; height: 30px; margin: -4px 2px; border-radius: 8px; background: var(--blue-50); color: #0A84FF; vertical-align: middle; }
.ios-more { display: inline-grid; place-items: center; min-width: 30px; height: 30px; margin: -4px 2px; padding: 0 6px; border-radius: 8px; background: var(--blue-50); color: #0A84FF; font-weight: 800; vertical-align: middle; }
.noscroll { overflow: hidden; }
/* the install bar: above the tabs, the page still usable under it (25 Nov) */
.ibar { position: fixed; left: 10px; right: 10px; bottom: calc(var(--tabbar-h) + 10px); z-index: 31; display: flex; align-items: center; gap: 2px; padding: 6px 6px 6px 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 30px rgb(14 26 43 / 18%); animation: up-in .25s ease; }
.ibar[hidden] { display: none; }
.ibar-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; margin: 0; padding: 4px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; text-align: left; }
.ibar .mark { flex: none; border-radius: 11px; }
.ibar-t { min-width: 0; font-weight: 800; font-size: 15px; line-height: 1.25; }
.ibar-a { display: flex; align-items: center; gap: 2px; margin-top: 3px; font-size: 14px; color: var(--blue); }
.ibar-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--muted); }
body.has-ibar { padding-bottom: calc(var(--tabbar-h) + 120px); }
@keyframes up-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
/* “Perto de mim” failed: the canton list is shown (25 Nov) */
.near-fail { margin: 0 0 12px; display: grid; gap: 8px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 15px; }
.near-fail p { margin: 0; }
.near-fail-h { display: flex; align-items: flex-start; gap: 8px; }
.near-fail-t { flex: 1; font-weight: 800; font-size: 16px; line-height: 1.3; padding-top: 2px; }
.near-x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: -8px -10px 0 0; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--muted); }
.near-steps { margin: 0; padding: 0 0 0 20px; display: grid; gap: 6px; line-height: 1.45; }
.near-retry { justify-self: start; }
.near-fail-c { color: var(--muted); font-size: 14px; }
.sel.pulse { animation: pulse-sel 1.6s ease 2; border-radius: 14px; }
@keyframes pulse-sel { 0%, 100% { box-shadow: 0 0 0 0 rgb(0 87 183 / 0%); } 40% { box-shadow: 0 0 0 5px rgb(0 87 183 / 35%); } }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
/* a button whose form is being sent: a spinner in place of its icon (26 Nov) */
.btn.is-busy { cursor: progress; opacity: .9; }
.btn.is-busy svg { display: none; }
.btn.is-busy::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- tab bar, add button ----------------------------------------------------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: var(--tabbar-h); padding: 4px 4px var(--tab-pad); transform: translateZ(0);
  background: #fff; box-shadow: 0 -4px 16px rgb(14 26 43 / 6%);
  border-top: 1px solid var(--line);
}
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 700; }
.tab-ic { display: grid; place-items: center; width: 58px; height: 32px; border-radius: 16px; transition: background .2s; }
.tabbar a.on { color: var(--ink); }
.tabbar a.on .tab-ic { background: var(--yellow); color: var(--blue-dd); }
.tab-label { white-space: nowrap; }
/* Eventos: the main tab, a raised round button in the middle */
.tabbar a.main { position: relative; color: var(--blue-d); }
.tabbar a.main .tab-ic {
  width: 66px; height: 66px; border-radius: 50%; margin-top: -30px; background: var(--blue); color: var(--yellow);
  box-shadow: 0 0 0 5px #fff, 0 8px 18px rgb(0 65 138 / 35%);
}
.tabbar a.main.on .tab-ic { background: var(--yellow); color: var(--blue-dd); box-shadow: 0 0 0 5px #fff, 0 8px 18px rgb(242 194 0 / 45%); }
.tabbar a.main .tab-label { font-weight: 800; }
.top-add { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px 0 12px; border-radius: 21px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 15.5px; text-decoration: none; }
.top-add .ic { color: var(--blue-dd); }
.top-add:active { transform: scale(.97); }
/* Androids of 360 px (25 Nov): logo, name, languages and “Adicionar” took 375 px, so the phone shrank
   the whole page; a little less room between them and it fits */
@media (max-width: 374px) {
  .top { padding-left: 12px; padding-right: 12px; gap: 6px; }
  .brand { gap: 8px; }
  .lang-toggle + .top-add { margin-left: 6px; }
  .top-add { padding: 0 12px 0 9px; gap: 4px; }
}

/* ---- map --------------------------------------------------------------------------- */
.is-map { padding-bottom: 0; }
/* The map page itself never scrolls: on an iPhone the whole screen dragged up with the bar (24 Nov). */
html:has(body.is-map), body.is-map { height: 100%; overflow: hidden; }
/* In the app installed on an iPhone, a page shorter than the screen ends the screen early: the bar,
   fixed to the bottom, sits at the end of the page and floats above an empty strip. On the map it was
   59 points (100% there is the screen without the status bar, 793 of 852 on an iPhone 16) and on
   “Entrada” 34 (Hugo's screenshots of the map, 24 Nov). 100vh is the whole screen, so no page is shorter. */
@media (display-mode: standalone) {
  html { min-height: 100vh; }
  html:has(body.is-map), body.is-map { height: 100vh; }
}
.mapwrap { position: fixed; left: 0; right: 0; top: var(--map-top, 88px); bottom: var(--tabbar-h); }
.mapwrap .map, .mapwrap .maplibregl-map { position: absolute; inset: 0; background: #F2EFE9; }
/* the picture of the map while swisstopo's map loads (app.js puts it in place) */
.map-ph { position: absolute; left: 0; top: 0; display: block; transform-origin: 0 0; opacity: 0; pointer-events: none; user-select: none; -webkit-user-select: none; transition: opacity .35s ease; }
.map-ph img { width: 100%; height: 100%; max-width: none; -webkit-user-drag: none; }
.map-ph.on { opacity: 1; transition: none; }
.map-top { position: absolute; top: 12px; left: 0; right: 0; display: flex; justify-content: center; z-index: 500; pointer-events: none; }
.seg-float { pointer-events: auto; background: #fff; box-shadow: var(--shadow); }
/* the categories under the switch (27 Nov, list of improvements, 8): one row to swipe, over the map */
.map-top { flex-direction: column; align-items: center; gap: 8px; }
.map-cats { pointer-events: auto; display: flex; gap: 6px; overflow-x: auto; max-width: 100%; padding: 2px 12px 4px; scrollbar-width: none; }
.map-cats[hidden] { display: none; }
.map-cats::-webkit-scrollbar { display: none; }
.map-cats .chip { flex: none; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); font: 700 13.5px var(--text); white-space: nowrap; box-shadow: var(--shadow); cursor: pointer; }
.map-cats .chip.on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.locate { position: absolute; right: 12px; bottom: 16px; z-index: 500; display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 16px; border-radius: 24px; border: 0; background: #fff; color: var(--blue-d); font-weight: 800; box-shadow: var(--shadow); }
.pin { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 4px 10px rgb(0 0 0 / 25%); }
.pin > span { transform: rotate(45deg); width: 10px; height: 10px; border-radius: 50%; }
.pin-biz { background: var(--blue); }
.pin-biz > span { background: var(--yellow); }
.pin-ev { background: var(--yellow); }
.pin-ev > span { background: var(--blue); }
.pinimg { position: relative; width: 52px; height: 52px; border-radius: 50%; padding: 3px; box-shadow: 0 6px 14px rgb(0 0 0 / 30%); }
.pinimg::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: inherit; }
.pinimg img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.pinimg-biz { background: var(--blue); border-color: var(--blue); }
.pinimg-ev { background: var(--yellow); border-color: var(--yellow); }
.me { width: 18px; height: 18px; border-radius: 50%; background: #1A73E8; border: 3px solid #fff; box-shadow: 0 0 0 6px rgb(26 115 232 / 25%); }
.cluster { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font: 800 15px var(--text); border: 3px solid var(--yellow); box-shadow: 0 4px 12px rgb(0 0 0 / 25%); }
.maplibregl-map { font: 500 15px var(--text); }
.maplibregl-popup-content { border-radius: 18px; padding: 14px 16px; min-width: 220px; box-shadow: 0 10px 30px rgb(0 0 0 / 20%); }
.maplibregl-popup-close-button { width: 36px; height: 36px; font-size: 22px; color: var(--muted); border-radius: 50%; }
.maplibregl-ctrl-group button { width: 40px; height: 40px; }
.maplibregl-ctrl-bottom-left { bottom: 6px; }
.map-fallback { margin: 80px 16px; }
.pin, .pinimg, .cluster { cursor: pointer; }
.pop-k { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); }
.pop-t { display: block; font: 700 16px/1.25 var(--head); margin: 4px 0; color: var(--ink); text-decoration: none; }
.pop-img { display: block; margin: -2px -4px 10px; }
.pop-img img { width: 100%; height: 110px; object-fit: cover; border-radius: 12px; }
.pop-m { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.pop a.btn { min-height: 42px; width: 100%; color: var(--ink); }
.maplibregl-ctrl-attrib { font-size: 11px; }

/* ---- wider screens ----------------------------------------------------------------- */
@media (min-width: 720px) {
  main, .demo-strip, .top > * { max-width: 720px; margin-left: auto; margin-right: auto; }
  .top { justify-content: center; }
  .top > * { margin: 0; }
  .tabbar { left: 50%; transform: translateX(-50%); max-width: 560px; bottom: 12px; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); padding-bottom: 6px; height: var(--tab-h); }
  .ibar { left: 0; right: 0; margin: 0 auto; max-width: 560px; bottom: calc(12px + var(--tab-h) + 10px); }
  .actions { grid-template-columns: repeat(3, 1fr); }
  .choice { grid-template-columns: 1fr 1fr; }
}

/* the admin top bar keeps only the icon of “App”, so it never runs off the screen */
.top:has(.admin-badge) .top-add span { display: none; }
.top:has(.admin-badge) .top-add { padding: 0 11px; }

/* "send the code again" on the code page */
.resend { display: grid; margin: 6px 0 4px; }
.resend .btn[disabled] { opacity: .65; }

/* The app installed on an iPhone (“shell”, boot.js): the page scrolls inside the body and the screen
   itself never moves, so iOS cannot leave it shifted after the keyboard (the bar in the middle,
   Hugo's screenshots of 24 Nov). 100vh is the whole screen there. The room under the last card for
   the bar is a block at the end, which every browser counts when scrolling to the bottom. */
html.shell { height: 100vh; min-height: 0; overflow: hidden; }
html.shell body { height: 100vh; overflow-x: hidden; overflow-y: auto; padding-bottom: 0; }
html.shell body::after { content: ""; display: block; height: calc(var(--tabbar-h) + 40px); }
html.shell body.is-map { overflow: hidden; }
html.shell body.is-map::after { content: none; }
/* if the screen still comes up short, the strip under the bar is white like the bar */
html:has(body.is-map) { background: #fff; }

/* Stats: the detail folded under “More numbers” (24 Nov) */
.stats details.more { margin-top: 18px; }
.stats details.more > summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--ink, #1A1A1A); }
.stats details.more[open] > summary { margin-bottom: 6px; }

/* Businesses: sort by name or nearest first (24 Nov) */
.sortseg { display: flex; width: 100%; margin: 0 0 12px; }
.sortseg > * { flex: 1; justify-content: center; }
.fresh { position: relative; }
.spot-on { position: absolute; top: 10px; left: 10px; }
.spot-on .tag-spot { white-space: nowrap; box-shadow: 0 2px 8px rgb(0 0 0 / 18%); }
/* events: price and format side by side (24 Nov) */
.filters-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filters-2 .sel { min-width: 0; }
.filters-2 select { min-width: 0; width: 100%; text-overflow: ellipsis; }

/* The admins' history (26 Nov): one row per action, the time on the left, the fields that changed
   as before (struck through) and after. */
.admin-how { margin: -4px 0 14px; }
.h-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.h-row { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.h-list-card { margin: 6px 0 10px; }
.h-list-card .h-row { grid-template-columns: 1fr; gap: 2px; padding: 10px 12px; box-shadow: none; border: 1px solid var(--line); }
.h-time { font-weight: 700; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.h-body { min-width: 0; }
.h-line { margin: 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.h-line b { font-weight: 700; }
.h-role { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--line); color: var(--ink); vertical-align: 1px; }
.h-role-admin { background: #DCE7FB; color: #0B3D91; }
.h-role-owner { background: #FFF3BF; color: #6B5300; }
.h-role-visitor, .h-role-app { background: #EEF0F3; color: var(--muted); }
.h-gone { color: var(--muted); }
.h-open { font-weight: 700; white-space: nowrap; }
.h-subj { font-style: italic; }
.h-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); vertical-align: 1px; }
.h-tag.h-tag-bad { border-color: #F4C7C3; color: #B42318; }
.h-diff { margin: 8px 0 0; display: grid; gap: 6px; }
.h-diff div { display: grid; gap: 1px; }
.h-diff dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.h-diff dd { margin: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.h-diff del { color: #B42318; text-decoration-thickness: 1px; }
.h-diff ins { color: #0D6B35; text-decoration: none; font-weight: 600; }
.h-arrow { color: var(--muted); }
.h-note { margin: 6px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.h-links { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.h-links:empty { display: none; }
.h-filter { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.h-filter .card-t { margin: 0; }
.h-foot { margin-top: 18px; }

/* the invoice inside the app (26 Nov): the facts with their label above, the QR code to scan */
.inv-facts li { display: grid; gap: 2px; }
.inv-facts li > span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.inv-nr { font-variant-numeric: tabular-nums; word-spacing: .1em; overflow-wrap: anywhere; }
.inv-qr { margin: 0 0 16px; padding: 16px; display: grid; justify-items: center; gap: 10px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); text-align: center; }
.inv-qr img { width: 220px; height: 220px; image-rendering: pixelated; }
.inv-qr figcaption { color: var(--muted); max-width: 34em; }

/* “Em destaque” by each own page on the profile, and the price under the offer (26 Nov: clearer, not loud) */
.st-spot, .st-spot-ask { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.st-spot { background: var(--yellow); color: var(--blue-dd); }
.st-spot-ask { background: var(--yellow-50); color: var(--blue-dd); border: 1.5px solid #E8C84A; padding: 3px 9px; }
.spot-own .tag-spot { vertical-align: 1px; white-space: nowrap; }
.spot-own-price b { color: var(--ink); }

/* copy one field of the invoice (26 Nov): two squares by the value, a tick and “Copiado” after */
.inv-v { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.copy-btn { position: relative; flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--blue); cursor: pointer; }
.copy-btn:active { transform: scale(.96); }
.copy-btn .copy-done { display: none; }
.copy-btn.is-copied { border-color: #2E7D32; color: #2E7D32; background: #EEF8EF; }
.copy-btn.is-copied .copy-ic { display: none; }
.copy-btn.is-copied .copy-done { display: block; }
.copy-ok { position: absolute; right: 0; bottom: calc(100% + 6px); padding: 4px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.copy-btn.is-copied .copy-ok { opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.inv-h { margin: 18px 0 0; }

/* where each photo is framed (26 Nov, src/lib/framing.ts): object-position in steps of 5 */
.fp-0-0{object-position:0% 0%;--fx:0;--fy:0}.fp-0-5{object-position:0% 5%;--fx:0;--fy:5}.fp-0-10{object-position:0% 10%;--fx:0;--fy:10}.fp-0-15{object-position:0% 15%;--fx:0;--fy:15}.fp-0-20{object-position:0% 20%;--fx:0;--fy:20}.fp-0-25{object-position:0% 25%;--fx:0;--fy:25}.fp-0-30{object-position:0% 30%;--fx:0;--fy:30}.fp-0-35{object-position:0% 35%;--fx:0;--fy:35}.fp-0-40{object-position:0% 40%;--fx:0;--fy:40}.fp-0-45{object-position:0% 45%;--fx:0;--fy:45}.fp-0-50{object-position:0% 50%;--fx:0;--fy:50}.fp-0-55{object-position:0% 55%;--fx:0;--fy:55}.fp-0-60{object-position:0% 60%;--fx:0;--fy:60}.fp-0-65{object-position:0% 65%;--fx:0;--fy:65}.fp-0-70{object-position:0% 70%;--fx:0;--fy:70}.fp-0-75{object-position:0% 75%;--fx:0;--fy:75}.fp-0-80{object-position:0% 80%;--fx:0;--fy:80}.fp-0-85{object-position:0% 85%;--fx:0;--fy:85}.fp-0-90{object-position:0% 90%;--fx:0;--fy:90}.fp-0-95{object-position:0% 95%;--fx:0;--fy:95}.fp-0-100{object-position:0% 100%;--fx:0;--fy:100}
.fp-5-0{object-position:5% 0%;--fx:5;--fy:0}.fp-5-5{object-position:5% 5%;--fx:5;--fy:5}.fp-5-10{object-position:5% 10%;--fx:5;--fy:10}.fp-5-15{object-position:5% 15%;--fx:5;--fy:15}.fp-5-20{object-position:5% 20%;--fx:5;--fy:20}.fp-5-25{object-position:5% 25%;--fx:5;--fy:25}.fp-5-30{object-position:5% 30%;--fx:5;--fy:30}.fp-5-35{object-position:5% 35%;--fx:5;--fy:35}.fp-5-40{object-position:5% 40%;--fx:5;--fy:40}.fp-5-45{object-position:5% 45%;--fx:5;--fy:45}.fp-5-50{object-position:5% 50%;--fx:5;--fy:50}.fp-5-55{object-position:5% 55%;--fx:5;--fy:55}.fp-5-60{object-position:5% 60%;--fx:5;--fy:60}.fp-5-65{object-position:5% 65%;--fx:5;--fy:65}.fp-5-70{object-position:5% 70%;--fx:5;--fy:70}.fp-5-75{object-position:5% 75%;--fx:5;--fy:75}.fp-5-80{object-position:5% 80%;--fx:5;--fy:80}.fp-5-85{object-position:5% 85%;--fx:5;--fy:85}.fp-5-90{object-position:5% 90%;--fx:5;--fy:90}.fp-5-95{object-position:5% 95%;--fx:5;--fy:95}.fp-5-100{object-position:5% 100%;--fx:5;--fy:100}
.fp-10-0{object-position:10% 0%;--fx:10;--fy:0}.fp-10-5{object-position:10% 5%;--fx:10;--fy:5}.fp-10-10{object-position:10% 10%;--fx:10;--fy:10}.fp-10-15{object-position:10% 15%;--fx:10;--fy:15}.fp-10-20{object-position:10% 20%;--fx:10;--fy:20}.fp-10-25{object-position:10% 25%;--fx:10;--fy:25}.fp-10-30{object-position:10% 30%;--fx:10;--fy:30}.fp-10-35{object-position:10% 35%;--fx:10;--fy:35}.fp-10-40{object-position:10% 40%;--fx:10;--fy:40}.fp-10-45{object-position:10% 45%;--fx:10;--fy:45}.fp-10-50{object-position:10% 50%;--fx:10;--fy:50}.fp-10-55{object-position:10% 55%;--fx:10;--fy:55}.fp-10-60{object-position:10% 60%;--fx:10;--fy:60}.fp-10-65{object-position:10% 65%;--fx:10;--fy:65}.fp-10-70{object-position:10% 70%;--fx:10;--fy:70}.fp-10-75{object-position:10% 75%;--fx:10;--fy:75}.fp-10-80{object-position:10% 80%;--fx:10;--fy:80}.fp-10-85{object-position:10% 85%;--fx:10;--fy:85}.fp-10-90{object-position:10% 90%;--fx:10;--fy:90}.fp-10-95{object-position:10% 95%;--fx:10;--fy:95}.fp-10-100{object-position:10% 100%;--fx:10;--fy:100}
.fp-15-0{object-position:15% 0%;--fx:15;--fy:0}.fp-15-5{object-position:15% 5%;--fx:15;--fy:5}.fp-15-10{object-position:15% 10%;--fx:15;--fy:10}.fp-15-15{object-position:15% 15%;--fx:15;--fy:15}.fp-15-20{object-position:15% 20%;--fx:15;--fy:20}.fp-15-25{object-position:15% 25%;--fx:15;--fy:25}.fp-15-30{object-position:15% 30%;--fx:15;--fy:30}.fp-15-35{object-position:15% 35%;--fx:15;--fy:35}.fp-15-40{object-position:15% 40%;--fx:15;--fy:40}.fp-15-45{object-position:15% 45%;--fx:15;--fy:45}.fp-15-50{object-position:15% 50%;--fx:15;--fy:50}.fp-15-55{object-position:15% 55%;--fx:15;--fy:55}.fp-15-60{object-position:15% 60%;--fx:15;--fy:60}.fp-15-65{object-position:15% 65%;--fx:15;--fy:65}.fp-15-70{object-position:15% 70%;--fx:15;--fy:70}.fp-15-75{object-position:15% 75%;--fx:15;--fy:75}.fp-15-80{object-position:15% 80%;--fx:15;--fy:80}.fp-15-85{object-position:15% 85%;--fx:15;--fy:85}.fp-15-90{object-position:15% 90%;--fx:15;--fy:90}.fp-15-95{object-position:15% 95%;--fx:15;--fy:95}.fp-15-100{object-position:15% 100%;--fx:15;--fy:100}
.fp-20-0{object-position:20% 0%;--fx:20;--fy:0}.fp-20-5{object-position:20% 5%;--fx:20;--fy:5}.fp-20-10{object-position:20% 10%;--fx:20;--fy:10}.fp-20-15{object-position:20% 15%;--fx:20;--fy:15}.fp-20-20{object-position:20% 20%;--fx:20;--fy:20}.fp-20-25{object-position:20% 25%;--fx:20;--fy:25}.fp-20-30{object-position:20% 30%;--fx:20;--fy:30}.fp-20-35{object-position:20% 35%;--fx:20;--fy:35}.fp-20-40{object-position:20% 40%;--fx:20;--fy:40}.fp-20-45{object-position:20% 45%;--fx:20;--fy:45}.fp-20-50{object-position:20% 50%;--fx:20;--fy:50}.fp-20-55{object-position:20% 55%;--fx:20;--fy:55}.fp-20-60{object-position:20% 60%;--fx:20;--fy:60}.fp-20-65{object-position:20% 65%;--fx:20;--fy:65}.fp-20-70{object-position:20% 70%;--fx:20;--fy:70}.fp-20-75{object-position:20% 75%;--fx:20;--fy:75}.fp-20-80{object-position:20% 80%;--fx:20;--fy:80}.fp-20-85{object-position:20% 85%;--fx:20;--fy:85}.fp-20-90{object-position:20% 90%;--fx:20;--fy:90}.fp-20-95{object-position:20% 95%;--fx:20;--fy:95}.fp-20-100{object-position:20% 100%;--fx:20;--fy:100}
.fp-25-0{object-position:25% 0%;--fx:25;--fy:0}.fp-25-5{object-position:25% 5%;--fx:25;--fy:5}.fp-25-10{object-position:25% 10%;--fx:25;--fy:10}.fp-25-15{object-position:25% 15%;--fx:25;--fy:15}.fp-25-20{object-position:25% 20%;--fx:25;--fy:20}.fp-25-25{object-position:25% 25%;--fx:25;--fy:25}.fp-25-30{object-position:25% 30%;--fx:25;--fy:30}.fp-25-35{object-position:25% 35%;--fx:25;--fy:35}.fp-25-40{object-position:25% 40%;--fx:25;--fy:40}.fp-25-45{object-position:25% 45%;--fx:25;--fy:45}.fp-25-50{object-position:25% 50%;--fx:25;--fy:50}.fp-25-55{object-position:25% 55%;--fx:25;--fy:55}.fp-25-60{object-position:25% 60%;--fx:25;--fy:60}.fp-25-65{object-position:25% 65%;--fx:25;--fy:65}.fp-25-70{object-position:25% 70%;--fx:25;--fy:70}.fp-25-75{object-position:25% 75%;--fx:25;--fy:75}.fp-25-80{object-position:25% 80%;--fx:25;--fy:80}.fp-25-85{object-position:25% 85%;--fx:25;--fy:85}.fp-25-90{object-position:25% 90%;--fx:25;--fy:90}.fp-25-95{object-position:25% 95%;--fx:25;--fy:95}.fp-25-100{object-position:25% 100%;--fx:25;--fy:100}
.fp-30-0{object-position:30% 0%;--fx:30;--fy:0}.fp-30-5{object-position:30% 5%;--fx:30;--fy:5}.fp-30-10{object-position:30% 10%;--fx:30;--fy:10}.fp-30-15{object-position:30% 15%;--fx:30;--fy:15}.fp-30-20{object-position:30% 20%;--fx:30;--fy:20}.fp-30-25{object-position:30% 25%;--fx:30;--fy:25}.fp-30-30{object-position:30% 30%;--fx:30;--fy:30}.fp-30-35{object-position:30% 35%;--fx:30;--fy:35}.fp-30-40{object-position:30% 40%;--fx:30;--fy:40}.fp-30-45{object-position:30% 45%;--fx:30;--fy:45}.fp-30-50{object-position:30% 50%;--fx:30;--fy:50}.fp-30-55{object-position:30% 55%;--fx:30;--fy:55}.fp-30-60{object-position:30% 60%;--fx:30;--fy:60}.fp-30-65{object-position:30% 65%;--fx:30;--fy:65}.fp-30-70{object-position:30% 70%;--fx:30;--fy:70}.fp-30-75{object-position:30% 75%;--fx:30;--fy:75}.fp-30-80{object-position:30% 80%;--fx:30;--fy:80}.fp-30-85{object-position:30% 85%;--fx:30;--fy:85}.fp-30-90{object-position:30% 90%;--fx:30;--fy:90}.fp-30-95{object-position:30% 95%;--fx:30;--fy:95}.fp-30-100{object-position:30% 100%;--fx:30;--fy:100}
.fp-35-0{object-position:35% 0%;--fx:35;--fy:0}.fp-35-5{object-position:35% 5%;--fx:35;--fy:5}.fp-35-10{object-position:35% 10%;--fx:35;--fy:10}.fp-35-15{object-position:35% 15%;--fx:35;--fy:15}.fp-35-20{object-position:35% 20%;--fx:35;--fy:20}.fp-35-25{object-position:35% 25%;--fx:35;--fy:25}.fp-35-30{object-position:35% 30%;--fx:35;--fy:30}.fp-35-35{object-position:35% 35%;--fx:35;--fy:35}.fp-35-40{object-position:35% 40%;--fx:35;--fy:40}.fp-35-45{object-position:35% 45%;--fx:35;--fy:45}.fp-35-50{object-position:35% 50%;--fx:35;--fy:50}.fp-35-55{object-position:35% 55%;--fx:35;--fy:55}.fp-35-60{object-position:35% 60%;--fx:35;--fy:60}.fp-35-65{object-position:35% 65%;--fx:35;--fy:65}.fp-35-70{object-position:35% 70%;--fx:35;--fy:70}.fp-35-75{object-position:35% 75%;--fx:35;--fy:75}.fp-35-80{object-position:35% 80%;--fx:35;--fy:80}.fp-35-85{object-position:35% 85%;--fx:35;--fy:85}.fp-35-90{object-position:35% 90%;--fx:35;--fy:90}.fp-35-95{object-position:35% 95%;--fx:35;--fy:95}.fp-35-100{object-position:35% 100%;--fx:35;--fy:100}
.fp-40-0{object-position:40% 0%;--fx:40;--fy:0}.fp-40-5{object-position:40% 5%;--fx:40;--fy:5}.fp-40-10{object-position:40% 10%;--fx:40;--fy:10}.fp-40-15{object-position:40% 15%;--fx:40;--fy:15}.fp-40-20{object-position:40% 20%;--fx:40;--fy:20}.fp-40-25{object-position:40% 25%;--fx:40;--fy:25}.fp-40-30{object-position:40% 30%;--fx:40;--fy:30}.fp-40-35{object-position:40% 35%;--fx:40;--fy:35}.fp-40-40{object-position:40% 40%;--fx:40;--fy:40}.fp-40-45{object-position:40% 45%;--fx:40;--fy:45}.fp-40-50{object-position:40% 50%;--fx:40;--fy:50}.fp-40-55{object-position:40% 55%;--fx:40;--fy:55}.fp-40-60{object-position:40% 60%;--fx:40;--fy:60}.fp-40-65{object-position:40% 65%;--fx:40;--fy:65}.fp-40-70{object-position:40% 70%;--fx:40;--fy:70}.fp-40-75{object-position:40% 75%;--fx:40;--fy:75}.fp-40-80{object-position:40% 80%;--fx:40;--fy:80}.fp-40-85{object-position:40% 85%;--fx:40;--fy:85}.fp-40-90{object-position:40% 90%;--fx:40;--fy:90}.fp-40-95{object-position:40% 95%;--fx:40;--fy:95}.fp-40-100{object-position:40% 100%;--fx:40;--fy:100}
.fp-45-0{object-position:45% 0%;--fx:45;--fy:0}.fp-45-5{object-position:45% 5%;--fx:45;--fy:5}.fp-45-10{object-position:45% 10%;--fx:45;--fy:10}.fp-45-15{object-position:45% 15%;--fx:45;--fy:15}.fp-45-20{object-position:45% 20%;--fx:45;--fy:20}.fp-45-25{object-position:45% 25%;--fx:45;--fy:25}.fp-45-30{object-position:45% 30%;--fx:45;--fy:30}.fp-45-35{object-position:45% 35%;--fx:45;--fy:35}.fp-45-40{object-position:45% 40%;--fx:45;--fy:40}.fp-45-45{object-position:45% 45%;--fx:45;--fy:45}.fp-45-50{object-position:45% 50%;--fx:45;--fy:50}.fp-45-55{object-position:45% 55%;--fx:45;--fy:55}.fp-45-60{object-position:45% 60%;--fx:45;--fy:60}.fp-45-65{object-position:45% 65%;--fx:45;--fy:65}.fp-45-70{object-position:45% 70%;--fx:45;--fy:70}.fp-45-75{object-position:45% 75%;--fx:45;--fy:75}.fp-45-80{object-position:45% 80%;--fx:45;--fy:80}.fp-45-85{object-position:45% 85%;--fx:45;--fy:85}.fp-45-90{object-position:45% 90%;--fx:45;--fy:90}.fp-45-95{object-position:45% 95%;--fx:45;--fy:95}.fp-45-100{object-position:45% 100%;--fx:45;--fy:100}
.fp-50-0{object-position:50% 0%;--fx:50;--fy:0}.fp-50-5{object-position:50% 5%;--fx:50;--fy:5}.fp-50-10{object-position:50% 10%;--fx:50;--fy:10}.fp-50-15{object-position:50% 15%;--fx:50;--fy:15}.fp-50-20{object-position:50% 20%;--fx:50;--fy:20}.fp-50-25{object-position:50% 25%;--fx:50;--fy:25}.fp-50-30{object-position:50% 30%;--fx:50;--fy:30}.fp-50-35{object-position:50% 35%;--fx:50;--fy:35}.fp-50-40{object-position:50% 40%;--fx:50;--fy:40}.fp-50-45{object-position:50% 45%;--fx:50;--fy:45}.fp-50-55{object-position:50% 55%;--fx:50;--fy:55}.fp-50-60{object-position:50% 60%;--fx:50;--fy:60}.fp-50-65{object-position:50% 65%;--fx:50;--fy:65}.fp-50-70{object-position:50% 70%;--fx:50;--fy:70}.fp-50-75{object-position:50% 75%;--fx:50;--fy:75}.fp-50-80{object-position:50% 80%;--fx:50;--fy:80}.fp-50-85{object-position:50% 85%;--fx:50;--fy:85}.fp-50-90{object-position:50% 90%;--fx:50;--fy:90}.fp-50-95{object-position:50% 95%;--fx:50;--fy:95}.fp-50-100{object-position:50% 100%;--fx:50;--fy:100}
.fp-55-0{object-position:55% 0%;--fx:55;--fy:0}.fp-55-5{object-position:55% 5%;--fx:55;--fy:5}.fp-55-10{object-position:55% 10%;--fx:55;--fy:10}.fp-55-15{object-position:55% 15%;--fx:55;--fy:15}.fp-55-20{object-position:55% 20%;--fx:55;--fy:20}.fp-55-25{object-position:55% 25%;--fx:55;--fy:25}.fp-55-30{object-position:55% 30%;--fx:55;--fy:30}.fp-55-35{object-position:55% 35%;--fx:55;--fy:35}.fp-55-40{object-position:55% 40%;--fx:55;--fy:40}.fp-55-45{object-position:55% 45%;--fx:55;--fy:45}.fp-55-50{object-position:55% 50%;--fx:55;--fy:50}.fp-55-55{object-position:55% 55%;--fx:55;--fy:55}.fp-55-60{object-position:55% 60%;--fx:55;--fy:60}.fp-55-65{object-position:55% 65%;--fx:55;--fy:65}.fp-55-70{object-position:55% 70%;--fx:55;--fy:70}.fp-55-75{object-position:55% 75%;--fx:55;--fy:75}.fp-55-80{object-position:55% 80%;--fx:55;--fy:80}.fp-55-85{object-position:55% 85%;--fx:55;--fy:85}.fp-55-90{object-position:55% 90%;--fx:55;--fy:90}.fp-55-95{object-position:55% 95%;--fx:55;--fy:95}.fp-55-100{object-position:55% 100%;--fx:55;--fy:100}
.fp-60-0{object-position:60% 0%;--fx:60;--fy:0}.fp-60-5{object-position:60% 5%;--fx:60;--fy:5}.fp-60-10{object-position:60% 10%;--fx:60;--fy:10}.fp-60-15{object-position:60% 15%;--fx:60;--fy:15}.fp-60-20{object-position:60% 20%;--fx:60;--fy:20}.fp-60-25{object-position:60% 25%;--fx:60;--fy:25}.fp-60-30{object-position:60% 30%;--fx:60;--fy:30}.fp-60-35{object-position:60% 35%;--fx:60;--fy:35}.fp-60-40{object-position:60% 40%;--fx:60;--fy:40}.fp-60-45{object-position:60% 45%;--fx:60;--fy:45}.fp-60-50{object-position:60% 50%;--fx:60;--fy:50}.fp-60-55{object-position:60% 55%;--fx:60;--fy:55}.fp-60-60{object-position:60% 60%;--fx:60;--fy:60}.fp-60-65{object-position:60% 65%;--fx:60;--fy:65}.fp-60-70{object-position:60% 70%;--fx:60;--fy:70}.fp-60-75{object-position:60% 75%;--fx:60;--fy:75}.fp-60-80{object-position:60% 80%;--fx:60;--fy:80}.fp-60-85{object-position:60% 85%;--fx:60;--fy:85}.fp-60-90{object-position:60% 90%;--fx:60;--fy:90}.fp-60-95{object-position:60% 95%;--fx:60;--fy:95}.fp-60-100{object-position:60% 100%;--fx:60;--fy:100}
.fp-65-0{object-position:65% 0%;--fx:65;--fy:0}.fp-65-5{object-position:65% 5%;--fx:65;--fy:5}.fp-65-10{object-position:65% 10%;--fx:65;--fy:10}.fp-65-15{object-position:65% 15%;--fx:65;--fy:15}.fp-65-20{object-position:65% 20%;--fx:65;--fy:20}.fp-65-25{object-position:65% 25%;--fx:65;--fy:25}.fp-65-30{object-position:65% 30%;--fx:65;--fy:30}.fp-65-35{object-position:65% 35%;--fx:65;--fy:35}.fp-65-40{object-position:65% 40%;--fx:65;--fy:40}.fp-65-45{object-position:65% 45%;--fx:65;--fy:45}.fp-65-50{object-position:65% 50%;--fx:65;--fy:50}.fp-65-55{object-position:65% 55%;--fx:65;--fy:55}.fp-65-60{object-position:65% 60%;--fx:65;--fy:60}.fp-65-65{object-position:65% 65%;--fx:65;--fy:65}.fp-65-70{object-position:65% 70%;--fx:65;--fy:70}.fp-65-75{object-position:65% 75%;--fx:65;--fy:75}.fp-65-80{object-position:65% 80%;--fx:65;--fy:80}.fp-65-85{object-position:65% 85%;--fx:65;--fy:85}.fp-65-90{object-position:65% 90%;--fx:65;--fy:90}.fp-65-95{object-position:65% 95%;--fx:65;--fy:95}.fp-65-100{object-position:65% 100%;--fx:65;--fy:100}
.fp-70-0{object-position:70% 0%;--fx:70;--fy:0}.fp-70-5{object-position:70% 5%;--fx:70;--fy:5}.fp-70-10{object-position:70% 10%;--fx:70;--fy:10}.fp-70-15{object-position:70% 15%;--fx:70;--fy:15}.fp-70-20{object-position:70% 20%;--fx:70;--fy:20}.fp-70-25{object-position:70% 25%;--fx:70;--fy:25}.fp-70-30{object-position:70% 30%;--fx:70;--fy:30}.fp-70-35{object-position:70% 35%;--fx:70;--fy:35}.fp-70-40{object-position:70% 40%;--fx:70;--fy:40}.fp-70-45{object-position:70% 45%;--fx:70;--fy:45}.fp-70-50{object-position:70% 50%;--fx:70;--fy:50}.fp-70-55{object-position:70% 55%;--fx:70;--fy:55}.fp-70-60{object-position:70% 60%;--fx:70;--fy:60}.fp-70-65{object-position:70% 65%;--fx:70;--fy:65}.fp-70-70{object-position:70% 70%;--fx:70;--fy:70}.fp-70-75{object-position:70% 75%;--fx:70;--fy:75}.fp-70-80{object-position:70% 80%;--fx:70;--fy:80}.fp-70-85{object-position:70% 85%;--fx:70;--fy:85}.fp-70-90{object-position:70% 90%;--fx:70;--fy:90}.fp-70-95{object-position:70% 95%;--fx:70;--fy:95}.fp-70-100{object-position:70% 100%;--fx:70;--fy:100}
.fp-75-0{object-position:75% 0%;--fx:75;--fy:0}.fp-75-5{object-position:75% 5%;--fx:75;--fy:5}.fp-75-10{object-position:75% 10%;--fx:75;--fy:10}.fp-75-15{object-position:75% 15%;--fx:75;--fy:15}.fp-75-20{object-position:75% 20%;--fx:75;--fy:20}.fp-75-25{object-position:75% 25%;--fx:75;--fy:25}.fp-75-30{object-position:75% 30%;--fx:75;--fy:30}.fp-75-35{object-position:75% 35%;--fx:75;--fy:35}.fp-75-40{object-position:75% 40%;--fx:75;--fy:40}.fp-75-45{object-position:75% 45%;--fx:75;--fy:45}.fp-75-50{object-position:75% 50%;--fx:75;--fy:50}.fp-75-55{object-position:75% 55%;--fx:75;--fy:55}.fp-75-60{object-position:75% 60%;--fx:75;--fy:60}.fp-75-65{object-position:75% 65%;--fx:75;--fy:65}.fp-75-70{object-position:75% 70%;--fx:75;--fy:70}.fp-75-75{object-position:75% 75%;--fx:75;--fy:75}.fp-75-80{object-position:75% 80%;--fx:75;--fy:80}.fp-75-85{object-position:75% 85%;--fx:75;--fy:85}.fp-75-90{object-position:75% 90%;--fx:75;--fy:90}.fp-75-95{object-position:75% 95%;--fx:75;--fy:95}.fp-75-100{object-position:75% 100%;--fx:75;--fy:100}
.fp-80-0{object-position:80% 0%;--fx:80;--fy:0}.fp-80-5{object-position:80% 5%;--fx:80;--fy:5}.fp-80-10{object-position:80% 10%;--fx:80;--fy:10}.fp-80-15{object-position:80% 15%;--fx:80;--fy:15}.fp-80-20{object-position:80% 20%;--fx:80;--fy:20}.fp-80-25{object-position:80% 25%;--fx:80;--fy:25}.fp-80-30{object-position:80% 30%;--fx:80;--fy:30}.fp-80-35{object-position:80% 35%;--fx:80;--fy:35}.fp-80-40{object-position:80% 40%;--fx:80;--fy:40}.fp-80-45{object-position:80% 45%;--fx:80;--fy:45}.fp-80-50{object-position:80% 50%;--fx:80;--fy:50}.fp-80-55{object-position:80% 55%;--fx:80;--fy:55}.fp-80-60{object-position:80% 60%;--fx:80;--fy:60}.fp-80-65{object-position:80% 65%;--fx:80;--fy:65}.fp-80-70{object-position:80% 70%;--fx:80;--fy:70}.fp-80-75{object-position:80% 75%;--fx:80;--fy:75}.fp-80-80{object-position:80% 80%;--fx:80;--fy:80}.fp-80-85{object-position:80% 85%;--fx:80;--fy:85}.fp-80-90{object-position:80% 90%;--fx:80;--fy:90}.fp-80-95{object-position:80% 95%;--fx:80;--fy:95}.fp-80-100{object-position:80% 100%;--fx:80;--fy:100}
.fp-85-0{object-position:85% 0%;--fx:85;--fy:0}.fp-85-5{object-position:85% 5%;--fx:85;--fy:5}.fp-85-10{object-position:85% 10%;--fx:85;--fy:10}.fp-85-15{object-position:85% 15%;--fx:85;--fy:15}.fp-85-20{object-position:85% 20%;--fx:85;--fy:20}.fp-85-25{object-position:85% 25%;--fx:85;--fy:25}.fp-85-30{object-position:85% 30%;--fx:85;--fy:30}.fp-85-35{object-position:85% 35%;--fx:85;--fy:35}.fp-85-40{object-position:85% 40%;--fx:85;--fy:40}.fp-85-45{object-position:85% 45%;--fx:85;--fy:45}.fp-85-50{object-position:85% 50%;--fx:85;--fy:50}.fp-85-55{object-position:85% 55%;--fx:85;--fy:55}.fp-85-60{object-position:85% 60%;--fx:85;--fy:60}.fp-85-65{object-position:85% 65%;--fx:85;--fy:65}.fp-85-70{object-position:85% 70%;--fx:85;--fy:70}.fp-85-75{object-position:85% 75%;--fx:85;--fy:75}.fp-85-80{object-position:85% 80%;--fx:85;--fy:80}.fp-85-85{object-position:85% 85%;--fx:85;--fy:85}.fp-85-90{object-position:85% 90%;--fx:85;--fy:90}.fp-85-95{object-position:85% 95%;--fx:85;--fy:95}.fp-85-100{object-position:85% 100%;--fx:85;--fy:100}
.fp-90-0{object-position:90% 0%;--fx:90;--fy:0}.fp-90-5{object-position:90% 5%;--fx:90;--fy:5}.fp-90-10{object-position:90% 10%;--fx:90;--fy:10}.fp-90-15{object-position:90% 15%;--fx:90;--fy:15}.fp-90-20{object-position:90% 20%;--fx:90;--fy:20}.fp-90-25{object-position:90% 25%;--fx:90;--fy:25}.fp-90-30{object-position:90% 30%;--fx:90;--fy:30}.fp-90-35{object-position:90% 35%;--fx:90;--fy:35}.fp-90-40{object-position:90% 40%;--fx:90;--fy:40}.fp-90-45{object-position:90% 45%;--fx:90;--fy:45}.fp-90-50{object-position:90% 50%;--fx:90;--fy:50}.fp-90-55{object-position:90% 55%;--fx:90;--fy:55}.fp-90-60{object-position:90% 60%;--fx:90;--fy:60}.fp-90-65{object-position:90% 65%;--fx:90;--fy:65}.fp-90-70{object-position:90% 70%;--fx:90;--fy:70}.fp-90-75{object-position:90% 75%;--fx:90;--fy:75}.fp-90-80{object-position:90% 80%;--fx:90;--fy:80}.fp-90-85{object-position:90% 85%;--fx:90;--fy:85}.fp-90-90{object-position:90% 90%;--fx:90;--fy:90}.fp-90-95{object-position:90% 95%;--fx:90;--fy:95}.fp-90-100{object-position:90% 100%;--fx:90;--fy:100}
.fp-95-0{object-position:95% 0%;--fx:95;--fy:0}.fp-95-5{object-position:95% 5%;--fx:95;--fy:5}.fp-95-10{object-position:95% 10%;--fx:95;--fy:10}.fp-95-15{object-position:95% 15%;--fx:95;--fy:15}.fp-95-20{object-position:95% 20%;--fx:95;--fy:20}.fp-95-25{object-position:95% 25%;--fx:95;--fy:25}.fp-95-30{object-position:95% 30%;--fx:95;--fy:30}.fp-95-35{object-position:95% 35%;--fx:95;--fy:35}.fp-95-40{object-position:95% 40%;--fx:95;--fy:40}.fp-95-45{object-position:95% 45%;--fx:95;--fy:45}.fp-95-50{object-position:95% 50%;--fx:95;--fy:50}.fp-95-55{object-position:95% 55%;--fx:95;--fy:55}.fp-95-60{object-position:95% 60%;--fx:95;--fy:60}.fp-95-65{object-position:95% 65%;--fx:95;--fy:65}.fp-95-70{object-position:95% 70%;--fx:95;--fy:70}.fp-95-75{object-position:95% 75%;--fx:95;--fy:75}.fp-95-80{object-position:95% 80%;--fx:95;--fy:80}.fp-95-85{object-position:95% 85%;--fx:95;--fy:85}.fp-95-90{object-position:95% 90%;--fx:95;--fy:90}.fp-95-95{object-position:95% 95%;--fx:95;--fy:95}.fp-95-100{object-position:95% 100%;--fx:95;--fy:100}
.fp-100-0{object-position:100% 0%;--fx:100;--fy:0}.fp-100-5{object-position:100% 5%;--fx:100;--fy:5}.fp-100-10{object-position:100% 10%;--fx:100;--fy:10}.fp-100-15{object-position:100% 15%;--fx:100;--fy:15}.fp-100-20{object-position:100% 20%;--fx:100;--fy:20}.fp-100-25{object-position:100% 25%;--fx:100;--fy:25}.fp-100-30{object-position:100% 30%;--fx:100;--fy:30}.fp-100-35{object-position:100% 35%;--fx:100;--fy:35}.fp-100-40{object-position:100% 40%;--fx:100;--fy:40}.fp-100-45{object-position:100% 45%;--fx:100;--fy:45}.fp-100-50{object-position:100% 50%;--fx:100;--fy:50}.fp-100-55{object-position:100% 55%;--fx:100;--fy:55}.fp-100-60{object-position:100% 60%;--fx:100;--fy:60}.fp-100-65{object-position:100% 65%;--fx:100;--fy:65}.fp-100-70{object-position:100% 70%;--fx:100;--fy:70}.fp-100-75{object-position:100% 75%;--fx:100;--fy:75}.fp-100-80{object-position:100% 80%;--fx:100;--fy:80}.fp-100-85{object-position:100% 85%;--fx:100;--fy:85}.fp-100-90{object-position:100% 90%;--fx:100;--fy:90}.fp-100-95{object-position:100% 95%;--fx:100;--fy:95}.fp-100-100{object-position:100% 100%;--fx:100;--fy:100}

/* the photos in the frames they are cut to, to drag into place (26 Nov): the page (3:2, the gallery)
   and the list (a square for businesses, the wide cover for events) */
.photo-preview, .photo-have { display: grid; gap: 14px; }
.photo-preview:empty { display: none; }
.photo-old { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.photo-del { justify-self: start; }
.pos-ed { display: grid; grid-template-columns: 1fr 96px; gap: 10px; align-items: end; }
.pos-ev { grid-template-columns: 1fr 1fr; }
.pos-f { margin: 0; display: grid; gap: 4px; }
.pos-f figcaption { font-size: 12.5px; font-weight: 700; color: var(--muted); }
/* zoom (28 Nov, src/lib/framing.ts): the photo grows around its point (--fx, --fy) and is clipped back
   to its own box, rounded like it, so it stays inside a card, a frame or a slide of the gallery */
.fz { transform: scale(var(--fz, 1)); transform-origin: calc(var(--fx, 50) * 1%) calc(var(--fy, 50) * 1%);
  clip-path: inset(calc(var(--fy, 50) * (1 - 1 / var(--fz, 1)) * 1%) calc((100 - var(--fx, 50)) * (1 - 1 / var(--fz, 1)) * 1%) calc((100 - var(--fy, 50)) * (1 - 1 / var(--fz, 1)) * 1%) calc(var(--fx, 50) * (1 - 1 / var(--fz, 1)) * 1%) round calc(var(--rad, 0px) / var(--fz, 1))); }
.fz-125{--fz:1.25}.fz-150{--fz:1.5}.fz-175{--fz:1.75}.fz-200{--fz:2}.fz-225{--fz:2.25}.fz-250{--fz:2.5}.fz-275{--fz:2.75}.fz-300{--fz:3}
.thumb, .bcard .bthumb { --rad: 16px; }
.pop-img img, .mod .mod-img { --rad: 12px; }
.pos-zoom { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.pos-zoom input { flex: 1; accent-color: var(--blue); min-height: 32px; }
.pos-box { position: relative; overflow: hidden; border-radius: 12px; background: var(--blue-100); touch-action: none; cursor: grab; box-shadow: inset 0 0 0 1.5px var(--line); }
.pos-box.is-drag { cursor: grabbing; box-shadow: 0 0 0 3px var(--yellow); }
.pos-box:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.pos-box img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-select: none; user-select: none; pointer-events: none; }
.pos-page .pos-box { aspect-ratio: 3 / 2; }
.pos-biz .pos-list .pos-box { aspect-ratio: 1; border-radius: 16px; }
.pos-ev .pos-list .pos-box { aspect-ratio: 2.35 / 1; }
.pos-hint { margin: 0 0 10px; }

/* “you can drag this” (26 Nov): a hand that drags, the arrows of the way the photo moves and a yellow
   glow on each frame that cuts the photo, until it is moved; still, without animation, for reduced motion */
.photo-new { display: grid; gap: 6px; }
.pos-cue { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; color: #fff; pointer-events: none; transition: opacity .25s; }
.cue-g { display: flex; align-items: center; gap: 2px; padding: 5px 9px; border-radius: 999px; background: rgb(14 26 43 / 68%); box-shadow: 0 2px 10px rgb(0 0 0 / 30%); }
.cue-hand .ic { width: 28px; height: 28px; }
.cue-y .cue-g { flex-direction: column; }
.cue-x .cue-a1 { transform: rotate(180deg); }
.cue-y .cue-a1 { transform: rotate(-90deg); }
.cue-y .cue-a2 { transform: rotate(90deg); }
.cue-ar { display: grid; color: var(--yellow); animation: cue-ar 1.6s ease-in-out infinite; }
.cue-t { font-size: 13px; font-weight: 800; letter-spacing: .02em; padding: 2px 9px; border-radius: 999px; background: rgb(14 26 43 / 68%); }
.pos-biz .pos-list .cue-g { padding: 4px 6px; }
.pos-biz .pos-list .cue-t { display: none; }
.cue-x .cue-hand { animation: cue-x 1.6s ease-in-out infinite; }
.cue-y .cue-hand { animation: cue-y 1.6s ease-in-out infinite; }
.pos-box.has-cue { animation: cue-glow 1.6s ease-in-out infinite; }
.is-touched .pos-cue { opacity: 0; }
.is-touched .pos-box.has-cue { animation: none; }
@keyframes cue-x { 0%, 100% { transform: translateX(-7px); } 50% { transform: translateX(7px); } }
@keyframes cue-y { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
@keyframes cue-ar { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes cue-glow { 0%, 100% { box-shadow: inset 0 0 0 1.5px var(--line), 0 0 0 0 rgb(254 221 0 / 0%); } 50% { box-shadow: inset 0 0 0 1.5px var(--yellow), 0 0 0 4px rgb(254 221 0 / 75%); } }
@media (prefers-reduced-motion: reduce) { .cue-hand, .cue-ar, .pos-box.has-cue { animation: none; } .pos-box.has-cue { box-shadow: 0 0 0 3px var(--yellow); } }
/* the calendar to subscribe to, under the events list (27 Nov) */
.calsub { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 14px; padding: 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.calsub-i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--blue-50); color: var(--blue); }
.calsub-b { min-width: 0; display: grid; gap: 6px; font-size: 15px; line-height: 1.45; }
.calsub-b p { margin: 0; }
.calsub-t { font-weight: 800; font-size: 16.5px; line-height: 1.3; }
.calsub-w { display: flex; align-items: center; gap: 4px; color: var(--blue-d); font-weight: 700; }
.calsub-tip { color: var(--muted); font-size: 14px; }
.calsub-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
/* the event form: “Usar meu e-mail” under the email field (27 Nov) */
.fill-email { justify-self: start; margin-top: -4px; }

/* Each canton's own list, under the events and the businesses (search engines follow these too) */
.places { margin: 28px 0 8px; padding-top: 18px; border-top: 1.5px solid var(--line); }
.places-t { font: 700 15px var(--text); color: var(--muted); margin: 0 0 10px; }
.places-l { display: flex; flex-wrap: wrap; gap: 8px; }
.places-l a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.places-l a span { font-weight: 600; color: var(--muted); font-size: 13px; }
.places-l a.on { background: var(--yellow); border-color: var(--yellow); }
.places-l a.on span { color: var(--ink); }

/* “Sobre” */
.home-about { text-align: center; margin: 22px 0 4px; font-size: 15px; }
.home-about a { color: var(--blue); font-weight: 700; }
.about { margin-top: 6px; }
.about-lead { font-size: 18px; line-height: 1.55; margin: 4px 0 22px; }
.about-q { margin: 0 0 18px; }
.about-q h2 { font: 700 18px var(--text); margin: 0 0 6px; line-height: 1.3; }
.about-q p { margin: 0; color: var(--ink); }
.about-go { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 18px; }

/* “Outros eventos” / “Mais perto daqui” under an event or a business */
.detail-body .related { padding: 20px 0 6px; margin-top: 10px; border-top: 1.5px solid var(--line); }
.related .sec-head h2 { font-size: 18px; line-height: 1.3; padding-right: 12px; }

/* “Os eventos da semana no seu e-mail”: the weekly letter's card (27 Nov) */
.letter { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 14px; padding: 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.sheet > .letter { margin: 18px 16px 8px; }
.letter-i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #FFF6CC; color: var(--blue-d); }
.letter-b { flex: 1; min-width: 0; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; }
.letter-b p { margin: 0; }
.letter-t { font-weight: 800; font-size: 16.5px; line-height: 1.3; }
.letter-e { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.letter-e:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.letter-s { width: 100%; }
.letter .btn { justify-self: start; }
.letter-page { padding-top: 8px; }
.letter-page h1 { font-size: 24px; margin: 6px 0 12px; }
.letter-page p { font-size: 16px; line-height: 1.5; margin: 0 0 16px; }

/* “Algo não funciona? Escreva para nós” (27 Nov) */
.feedback-l { text-align: center; margin: 10px 0 4px; font-size: 14.5px; }
.feedback-l a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); padding: 8px; }
.feedback-m { white-space: pre-wrap; font-size: 16px; line-height: 1.5; margin: 6px 0; }

/* “Classificados”: work and housing ads (27 Nov) */
.ad-lead { margin-bottom: 12px; }
.adcard { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.adcard:active { transform: scale(.985); }
/* the first photo on top of the card (Hugo, 27 Nov: “they should be able to also add photos”) */
.adcard.has-photo { overflow: hidden; }
.ad-ph { display: block; width: calc(100% + 32px); max-width: none; margin: -14px -16px 8px; aspect-ratio: 2 / 1; object-fit: cover; background: var(--blue-50); }
.ad-mod-ph { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 4px; }
.ad-mod-ph img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }
.ad-page .gallery-wrap { margin-bottom: 14px; }
.ad-k { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; margin: 0; }
.ad-robota { background: var(--blue-50); color: var(--blue-d); }
.ad-zhytlo { background: #FFF6CC; color: #6B5300; }
.ad-t { font-weight: 800; font-size: 17px; line-height: 1.3; }
.ad-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--muted); font-size: 14.5px; margin: 0; }
.ad-m b { color: var(--ink); font-weight: 700; }
.ad-d { color: var(--muted); font-size: 13px; }
.ad-page .detail-t { margin: 8px 0 6px; }
.ad-price { font-weight: 800; font-size: 18px; margin: 8px 0 0; }
.ad-page .msgs { margin: 14px 0 16px; }
.ad-own { display: grid; gap: 8px; margin: 16px 0 4px; padding: 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.ad-own form { margin: 0; }
.msg-call { background: var(--blue); }
.msg-mail { background: #536173; }
.c-white { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.c-white .choice-ic { background: var(--blue-50); color: var(--blue); }
.ad-first { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.ad-first-i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.ad-first-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ad-first-tx b { font-weight: 800; font-size: 15px; line-height: 1.25; }
.ad-first-tx span { font-size: 13.5px; line-height: 1.3; color: var(--muted); }
/* the invitation on a line of its own (Hugo, 27 Nov: it broke in the middle) */
.ad-first-tx .ad-first-cta { color: var(--blue); font-weight: 700; }
.ad-first-go { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-50); color: var(--blue); }
.my-ads ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.my-ads li { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
fieldset.radios { border: 0; padding: 0; margin: 0 0 4px; min-width: 0; }
fieldset.radios legend { padding: 0; margin-bottom: 8px; }
.feedback-note { font-size: 14px; line-height: 1.45; color: var(--muted); background: var(--blue-50); border-radius: 12px; padding: 10px 12px; margin: 6px 0; white-space: pre-wrap; }
.feedback-reply { flex-wrap: wrap; }
.feedback-reply .field { flex: 1 1 100%; }
.reset-card { border: 2px dashed var(--yellow); }
.shots-pick input[type=file] { font-size: 15px; padding: 10px 0; }
.feedback-shots { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.feedback-shots img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* “Avisos oficiais”: official news (27 Nov) */
.news { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); border-left: 4px solid var(--blue); color: var(--ink); text-decoration: none; }
.news:active { transform: scale(.985); }
.news-src { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 700; color: var(--blue-d); }
.news-t, .news-s { display: block; }
.news-t { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 800; }
.news-s { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.news-a { display: inline-flex; align-items: center; gap: 2px; justify-self: start; font-size: 14px; font-weight: 700; color: var(--blue); text-decoration: none; padding: 4px 0; }
/* several news on the home page: a row to swipe, the text kept to four lines (the card opens the source) */
.news-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.news-rail::-webkit-scrollbar { display: none; }
.news-rail .news { flex: 0 0 86%; max-width: 420px; scroll-snap-align: start; align-content: start; }
.news-rail .news-s { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-all { display: flex; justify-content: center; align-items: center; gap: 4px; width: 100%; margin-top: 10px; }
/* “Avisos oficiais”, one item in full (28 Nov): the authority on top as proof, then the text to read */
.news-proof { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 14px 16px; margin-bottom: 18px; border-radius: var(--r); background: var(--blue-50, var(--card)); border: 1.5px solid var(--blue-100); color: var(--ink); text-decoration: none; }
.news-proof:active { transform: scale(.985); }
.np-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; }
.np-txt { display: grid; gap: 2px; min-width: 0; }
.np-k { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-d); }
.np-s { font-size: 17px; font-weight: 800; }
.np-h { font-size: 14px; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.np-a { display: inline-flex; margin-top: 2px; align-items: center; gap: 2px; justify-self: start; font-size: 14px; font-weight: 700; color: var(--blue); }
.news-h { font-size: 26px; line-height: 1.2; font-weight: 800; margin: 0 0 6px; text-wrap: balance; }
.news-d { margin: 0 0 16px; }
.news-body { display: grid; gap: 14px; margin-bottom: 18px; }
.news-body p { margin: 0; font-size: 17px; line-height: 1.6; }
.news-body h2 { margin: 8px 0 0; font-size: 19px; line-height: 1.3; font-weight: 800; }
.news-note { margin: 0 0 14px; }
.news-orig { margin-bottom: 0; }
/* the way there by public transport, under the address (27 Nov, list 2, 4) */
.transit { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--blue); text-decoration: none; }
/* “Vou” without an account: the reminder by email, under the button (27 Nov, list 2, 6) */
.rsvp-remind { margin-top: 12px; display: grid; gap: 6px; }
.rsvp-remind-r { display: flex; gap: 8px; }
.rsvp-remind-r input { flex: 1; min-width: 0; }

/* “Onde ще шукати” under the work and housing ads: official and big sites, linked, never copied (28 Nov) */
.look { margin-top: 18px; }
.look-g h3 { margin: 2px 0 8px; font: 700 15px var(--head); color: var(--ink); }
.look-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.look-l a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: 12px; background: var(--bg); color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.look-l a .ic { flex: none; color: var(--muted); }
.look-n { color: var(--muted); }

/* The recording of the visits (docs/medicao.md, step 2): “Recusar” on the privacy page and in the profile, the question
   for visits from outside Switzerland and the notice of the first day, above the tab bar. */
.rec-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.rec-box .rec-done { display: none; color: var(--muted); font-size: 14px; }
.rec-box.rec-off .btn { display: none; }
.rec-box.rec-off .rec-done { display: inline; }
.rec-ask, .rec-news {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 40px); z-index: 40; max-width: 520px; margin: 0 auto;
  padding: 14px 16px; border-radius: 16px; background: var(--card); color: var(--ink); box-shadow: 0 8px 30px rgb(14 26 43 / 18%);
}
.rec-ask p, .rec-news p { margin: 0 0 10px; font-size: 15px; line-height: 1.4; }
.rec-ask .rec-ask-b, .rec-news .rec-ask-b { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; }
