:root{color-scheme:dark;--bg:#102923;--surface:#1b3931;--text:#f9fbf7;--muted:#c0d2c6;--accent:#d7f78c;--card:#fff;--ink:#17382d}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh;display:flex;flex-direction:column;padding:clamp(16px,2.7vw,52px);gap:20px}.light{color-scheme:light;--bg:#f0f4e9;--surface:#dde8d9;--text:#18392e;--muted:#4d6659;--accent:#365c25}a{color:inherit}header{display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{font-weight:850;font-size:clamp(32px,4vw,70px);letter-spacing:-3px;text-decoration:none;line-height:1}.brand span{font-size:.28em;letter-spacing:1px;vertical-align:top;margin:9px 0 0 8px;display:inline-block;background:var(--accent);color:var(--bg);padding:6px 8px;border-radius:6px}.tagline{font-size:clamp(17px,1.7vw,30px);font-weight:650;margin-right:auto}.tagline small{display:block;font-weight:400;color:var(--muted);font-size:.55em;margin-top:8px}.scan{display:flex;align-items:center;gap:14px;max-width:300px;font-size:16px}.scan span{max-width:130px}#qr{background:white;padding:10px;border-radius:6px;color:#142d25;flex-shrink:0}#qr img,#qr canvas{display:block}main{flex:1;min-height:0}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}h1{font-size:clamp(18px,1.45vw,25px);margin:0;font-weight:550}.controls{display:flex;align-items:center;gap:15px;color:var(--muted);font-size:14px}button{color:inherit;background:transparent;border:1px solid var(--muted);border-radius:20px;padding:7px 12px;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #e4a121;outline-offset:4px}#grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.5vw,28px)}.card{display:flex;flex-direction:column;overflow:hidden;border-radius:16px;background:var(--card);color:var(--ink);text-decoration:none;min-width:0}.media{position:relative;aspect-ratio:4/3;background:#dfe8da;overflow:hidden;display:flex;align-items:center;justify-content:center}.media img{position:absolute;width:100%;height:100%;object-fit:contain;background:#e9eee4}.placeholder{font-size:40px;font-weight:800;letter-spacing:-2px;color:#78916c}.card-body{padding:clamp(12px,1.3vw,24px)}h2{font-size:clamp(17px,1.6vw,28px);line-height:1.25;margin:0 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;min-height:2.5em}.price{font-size:clamp(19px,1.9vw,34px);font-weight:750;margin:0 0 10px;overflow-wrap:anywhere}.city{color:#536458;font-size:clamp(13px,1.1vw,20px);margin:0;overflow-wrap:anywhere}#message{font-size:22px;text-align:center;padding:35px 0}#message:empty{display:none}footer{display:flex;align-items:center;gap:24px;color:var(--muted);font-size:clamp(13px,1.1vw,20px);padding-top:8px}footer a{font-weight:700;text-decoration:none}#connection{font-size:13px;margin-left:auto}.embed{padding:20px;gap:18px}.embed .brand{font-size:36px}.embed .scan{display:none}.embed .tagline{font-size:18px}.embed .tagline small{font-size:12px}.embed h2{font-size:20px}.embed .price{font-size:24px}.embed .city{font-size:14px}.embed.cards-2 #grid{grid-template-columns:repeat(2,minmax(0,1fr))}.embed.cards-6 #grid{grid-template-columns:repeat(3,minmax(0,1fr))}.embed.cards-4 #grid{grid-template-columns:repeat(2,minmax(0,1fr))}.embed .media{aspect-ratio:16/9}.embed footer{font-size:14px}.embed .card-body{padding:14px}@media(min-width:1400px){.tv .media{aspect-ratio:1/1}.tv main{display:flex;flex-direction:column;justify-content:center}}@media(max-width:900px){.tv #grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tv .scan{display:none}.tagline{font-size:18px}.tv .media{aspect-ratio:16/9}.tv h2{font-size:20px}.tv .price{font-size:25px}.tv .city{font-size:15px}}@media(max-width:520px){body,.embed{padding:14px;gap:16px}header{gap:14px}.tagline{font-size:14px!important}.tagline small{display:none}.brand{font-size:34px}.toolbar{align-items:flex-start}h1{font-size:16px}.controls{gap:8px;font-size:12px}button{font-size:11px;padding:5px 8px}#grid{gap:10px}.card{border-radius:10px}.card-body,.embed .card-body{padding:10px}h2,.embed h2{font-size:15px}.price,.embed .price{font-size:19px}.city,.embed .city{font-size:12px}.embed.cards-6 #grid{grid-template-columns:repeat(2,minmax(0,1fr))}footer{flex-wrap:wrap;gap:8px 20px}#connection{width:100%;margin-left:0}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
@media(min-width:800px){.embed.cards-4 #grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:900px){.tv .scan{display:flex}.tv .scan span{display:none}.tv #qr canvas,.tv #qr img{width:72px!important;height:72px!important}}@media(max-width:520px){.tv .tagline{display:none}.tv #qr canvas,.tv #qr img{width:64px!important;height:64px!important}.tv #qr{padding:8px}}

/* Tinglo 1.1: official logo and light presentation. */
.light{--bg:#f3f5f7;--surface:#e9eef2;--text:#0b3044;--muted:#506777;--accent:#007f83;--ink:#0b3044}header{background:#fff;color:#0b3044;border-radius:16px;padding:12px 24px}.brand{display:flex;align-items:center;gap:12px;letter-spacing:0}.brand img{width:clamp(130px,13vw,230px);height:clamp(73px,7.3vw,129px);object-fit:contain}.brand span{margin:0;font-size:14px;background:#0b3044;color:#fff;padding:6px 9px}.tagline small{color:#506777}.scan{color:#0b3044}.embed header{padding:8px 16px}.embed .brand img{width:120px;height:68px}.embed .brand span{font-size:11px}.card{box-shadow:0 2px 12px #0b30440b}#logo-screen{position:fixed;inset:0;z-index:1000;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5vh 8vw;gap:12px;color:#0b3044}#logo-screen[hidden]{display:none}#logo-screen img{width:min(78vw,1100px);max-height:75vh;object-fit:contain}#logo-screen p{font-size:clamp(24px,3vw,48px);font-weight:650;letter-spacing:.03em;margin:0}.dark header .brand span{background:#0b3044;color:#fff}@media(max-width:900px){header{padding:10px 16px}.brand img{width:140px;height:79px}.tagline{font-size:16px}}@media(max-width:520px){header,.embed header{padding:8px 10px;gap:10px}.brand img{width:110px;height:62px}.brand{gap:5px}.brand span{font-size:10px;padding:4px}.embed .brand img{width:95px;height:54px}.embed .tagline{font-size:12px!important}.scan{max-width:90px}.tv #qr canvas,.tv #qr img{width:54px!important;height:54px!important}}


/* Embedded documents follow content height; only TV mode fills the viewport. */
body.embed{min-height:0;height:auto}.embed main{flex:none}.embed footer{margin-top:0}.embed #grid{align-items:stretch}


/* Slide the complete card group while keeping branding and controls stationary. */
.carousel{position:relative;overflow:hidden;padding:4px;margin:-4px}.carousel-out{position:absolute;inset:4px 4px auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.5vw,28px);pointer-events:none}.carousel-out{gap:clamp(12px,1.5vw,28px)}.embed.cards-2 .carousel-out{grid-template-columns:repeat(2,minmax(0,1fr))}.embed.cards-4 .carousel-out{grid-template-columns:repeat(2,minmax(0,1fr))}.embed.cards-6 .carousel-out{grid-template-columns:repeat(3,minmax(0,1fr))}@media(min-width:800px){.embed.cards-4 .carousel-out{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:900px){.tv .carousel-out{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.carousel-out{gap:10px}.embed.cards-6 .carousel-out{grid-template-columns:repeat(2,minmax(0,1fr))}}

