/* Universal demo: brand slots and the demo bar. Palette variables are set by uni-demo.js. */
html.uni-pending body { visibility: hidden; }
[data-uni-logo] { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.uni-logo { height: 42px; max-width: 220px; width: auto; object-fit: contain; display: block; }
.uni-logo--light { background: #fff; padding: 6px 10px; border-radius: 8px; }
.uni-wordmark { font: 800 22px/1.1 "Inter", "Segoe UI", system-ui, sans-serif; letter-spacing: -.02em; color: var(--uni-primary); white-space: nowrap; }
.uni-wordmark--light { color: #fff; }
.uni-logo--big { height: auto; max-height: 90px; max-width: 280px; }
.uni-logo--chip { background: var(--uni-primary-darkest, #1f2937); padding: 6px 12px; border-radius: 8px; box-sizing: content-box; }
.uni-logo--chip.uni-logo--big { padding: 14px 22px; border-radius: 12px; }
.uni-wordmark--big { font-size: 38px; }
.preloader__logo { display: flex; justify-content: center; }
.pt-mark + .uni-wordmark, .logo-svg + .uni-wordmark { margin-left: 8px; }
@media (max-width: 600px) { .uni-logo { height: 34px; max-width: 150px; } .uni-wordmark { font-size: 18px; } }

.uni-bar { position: fixed; left: 14px; bottom: 14px; z-index: 2147483000; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px;
  background: #0f172a; color: #fff; border-radius: 999px; font: 500 13px/1 "Inter", "Segoe UI", system-ui, sans-serif; box-shadow: 0 8px 30px rgba(0,0,0,.35); max-width: calc(100vw - 28px); }
.uni-bar__tag { background: var(--uni-primary); color: var(--uni-on-primary); font-weight: 800; font-size: 11px; letter-spacing: .08em; padding: 5px 8px; border-radius: 999px; }
.uni-bar b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.uni-bar__lang { background: #1e293b; color: #fff; border: 1px solid #334155; border-radius: 8px; padding: 5px 6px; font: inherit; }
.uni-bar__designs { display: inline-flex; gap: 4px; }
.uni-bar__designs a { color: #cbd5e1; text-decoration: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #334155; }
.uni-bar__designs a.is-on { background: #fff; color: #0f172a; border-color: #fff; font-weight: 800; }
.uni-bar__by { color: #94a3b8; text-decoration: none; font-size: 12px; white-space: nowrap; }
@media (max-width: 600px) { .uni-bar { gap: 6px; padding: 5px 8px; } .uni-bar b { max-width: 90px; } .uni-bar__by { display: none; } }
@media print { .uni-bar { display: none; } }
/* folded: only the DEMO tag stays, as a small button in the corner */
.uni-bar__tag { border: 0; cursor: pointer; font-family: inherit; }
.uni-bar__min { border: 0; background: transparent; color: #94a3b8; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; padding: 0; }
.uni-bar__min:hover { background: #1e293b; color: #fff; }
.uni-bar.is-min { padding: 5px; gap: 0; }
.uni-bar.is-min > :not(.uni-bar__tag) { display: none !important; }

.uni-bar__lead { border: 0; background: #1e293b; color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.uni-bar__lead:hover { background: var(--uni-primary); color: var(--uni-on-primary); }
.uni-lead { position: fixed; left: 14px; bottom: 64px; z-index: 2147483000; background: #fff; color: #111827; border-radius: 14px; padding: 12px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.3);
  display: grid; gap: 8px; width: min(340px, calc(100vw - 28px)); font: 14px/1.4 "Inter", "Segoe UI", system-ui, sans-serif; }
.uni-lead input[type=email] { padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; }
.uni-lead button { padding: 10px; border: 0; border-radius: 10px; background: var(--uni-primary); color: var(--uni-on-primary); font: inherit; font-weight: 700; cursor: pointer; }
.uni-lead p { margin: 0; font-size: 13px; color: #475569; min-height: 1em; }
.uni-hp { position: absolute; left: -9999px; }

/* "Your website today" curtain (?compare=1) */
/* Before/after slider: their site today (screenshot, left of the handle) against the live new design */
.uni-compare { --x: 100%; --xn: 100; position: fixed; inset: 0; z-index: 2147482000; touch-action: none; user-select: none; -webkit-user-select: none; cursor: ew-resize; font: 14px/1.3 "Inter", "Segoe UI", system-ui, sans-serif; }
.uni-compare__shot { position: absolute; inset: 0; overflow: hidden; background: #fff; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.uni-compare__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; pointer-events: none; }
.uni-compare__divider { position: absolute; top: 0; bottom: 0; left: var(--x); width: 0; }
.uni-compare__divider::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(15,23,42,.12), 0 0 18px rgba(15,23,42,.25); }
.uni-compare__handle { position: absolute; top: 50%; left: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #0f172a; cursor: ew-resize; box-shadow: 0 10px 30px rgba(15,23,42,.3), 0 2px 6px rgba(15,23,42,.18); touch-action: none; }
.uni-compare__handle:focus-visible { outline: 3px solid var(--uni-primary); outline-offset: 3px; }
.uni-compare__hint { position: absolute; top: calc(50% + 44px); left: 0; transform: translateX(-50%); white-space: nowrap; padding: 7px 12px; border-radius: 999px; background: rgba(15,23,42,.82); color: #fff; font-size: 13px; font-weight: 600; transition: opacity .3s; pointer-events: none; }
.uni-compare.is-touched .uni-compare__hint { opacity: 0; }
.uni-compare.is-animating .uni-compare__shot { transition: clip-path .8s cubic-bezier(.65,0,.25,1); }
.uni-compare.is-animating .uni-compare__divider { transition: left .8s cubic-bezier(.65,0,.25,1); }
.uni-compare__pill { position: absolute; top: 148px; padding: 9px 16px; border-radius: 999px; background: #fff; color: #0f172a; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 6px 20px rgba(15,23,42,.18); pointer-events: none; transition: opacity .3s; }
.uni-compare__pill small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #475569; }
.uni-compare__pill--old { left: 24px; opacity: calc((var(--xn) - 12) / 10); }
.uni-compare__pill--new { right: 24px; opacity: calc((88 - var(--xn)) / 10); }
.uni-compare__go { position: absolute; right: 24px; bottom: 24px; padding: 15px 24px; border: 0; border-radius: 999px; background: var(--uni-primary); color: var(--uni-on-primary); font: 700 16px "Inter", "Segoe UI", system-ui, sans-serif; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.uni-compare.is-leaving { pointer-events: none; }
.uni-compare.is-leaving .uni-compare__pill, .uni-compare.is-leaving .uni-compare__go, .uni-compare.is-leaving .uni-compare__hint { opacity: 0; transition: opacity .3s; }
.uni-compare.is-leaving .uni-compare__divider { opacity: 0; transition: left .8s cubic-bezier(.65,0,.25,1), opacity .3s .55s; }
@media (max-width: 700px) { .uni-compare__pill { top: 120px; padding: 7px 12px; font-size: 11px; } .uni-compare__pill--old { left: 12px; } .uni-compare__pill--new { right: 12px; } .uni-compare__handle { width: 52px; height: 52px; margin: -26px 0 0 -26px; } .uni-compare__go { right: 12px; bottom: 76px; } }
@media (prefers-reduced-motion: reduce) { .uni-compare.is-animating .uni-compare__shot, .uni-compare.is-animating .uni-compare__divider { transition: none; } }
.uni-bar__compare { border: 0; background: #1e293b; color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.uni-bar__compare:hover { background: var(--uni-primary); color: var(--uni-on-primary); }

/* Catalogue search dialog (design 2) */
.uni-catalog { width: min(920px, calc(100vw - 24px)); max-height: 88vh; margin: auto; border: 0; border-radius: 18px; padding: 0; box-shadow: 0 30px 80px rgba(0,0,0,.35); font: 15px/1.45 "Inter", "Segoe UI", system-ui, sans-serif; color: #111827; }
.uni-catalog::backdrop { background: rgba(10, 15, 25, .55); }
.uni-catalog header { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 24px 10px; }
.uni-catalog header small { color: var(--uni-primary); font-weight: 700; letter-spacing: .08em; font-size: 11px; }
.uni-catalog header h2 { margin: 2px 0 0; font-size: 24px; letter-spacing: -.02em; }
.uni-close { border: 0; background: #f1f5f9; width: 38px; height: 38px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.uni-catalog label { display: block; padding: 0 24px; font-size: 13px; color: #475569; }
.uni-catalog input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; border: 1px solid #cbd5e1; border-radius: 12px; }
.uni-catalog input:focus { outline: 2px solid var(--uni-primary); border-color: transparent; }
.uni-chips { display: flex; gap: 6px; padding: 12px 24px 0; overflow-x: auto; scrollbar-width: none; }
.uni-chips::-webkit-scrollbar { display: none; }
.uni-chips button { flex: none; height: 32px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; font: 500 13px/1 inherit; font-family: inherit; color: #334155; cursor: pointer; }
.uni-chips button:hover { border-color: var(--uni-primary); }
.uni-chips button[aria-pressed="true"] { background: var(--uni-primary); border-color: var(--uni-primary); color: var(--uni-on-primary); }
.uni-count { padding: 10px 24px 0; color: #64748b; font-size: 13px; }
.uni-account { width: min(440px, calc(100vw - 24px)); }
.uni-account form { padding: 0 0 24px; display: grid; gap: 12px; }
.uni-account__lead { margin: 0; padding: 0 24px; color: #475569; font-size: 14px; }
.uni-account__go { margin: 4px 24px 0; height: 46px; border: 0; border-radius: 12px; background: var(--uni-primary); color: var(--uni-on-primary); font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; }
.uni-account__note { margin: 0; padding: 0 24px; color: #0f172a; font-size: 13px; }
.uni-account__note:empty { display: none; }
.uni-results { padding: 10px 24px 24px; display: grid; gap: 10px; max-height: 56vh; overflow: auto; }
.uni-results article { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 10px; border: 1px solid #e2e8f0; border-radius: 12px; }
.uni-results img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: #f8fafc; }
.uni-results small { color: #64748b; font-size: 12px; }
.uni-results h3 { margin: 2px 0; font-size: 15px; }
.uni-results p { margin: 0; color: #475569; font-size: 13px; }
.uni-results strong { display: inline-block; margin-top: 4px; }
.uni-actions { margin-top: 6px; }
.uni-detail { display: inline-block; padding: 6px 12px; border-radius: 8px; background: var(--uni-primary); color: var(--uni-on-primary); text-decoration: none; font-size: 13px; font-weight: 600; }
@media (max-width: 600px) { .uni-results article { grid-template-columns: 64px 1fr; } .uni-results img { width: 64px; height: 64px; } }

/* Cut-out part photos (img/catalog/) show whole on white in every design; the scene photos keep their cover crop */
img[src*="/uni-demo-assets/img/catalog/"] { object-fit: contain !important; background: #fff; }
/* Design 1 cards are 4:3 grids, where height:100% resolves to the square photo's own height and the bottom gets cut */
.media.has-ph > img[src*="/uni-demo-assets/img/catalog/"] { position: absolute; inset: 0; height: 100%; }

/* design 2: the headline line reveal masks each line; leave room for descenders (g, p) */
.hero h1 .line-mask{padding-bottom:.24em;margin-bottom:-.24em}

/* long compound words (German) in hero headlines break with a hyphen instead of running off the edge */
.hero h1{hyphens:manual}

/* design 2, brands band: on short laptop screens the heading and the card row overlapped.
   The heading scales with the window height, the logo panel gets smaller. */
@media (min-width:768px) and (max-height:960px){
  .work__head .title{font-size:clamp(2.2rem,min(4.4vw,8vh),4.6rem);line-height:1}
  .work__head .label{margin-bottom:10px}
  .card__logo{height:clamp(84px,13vh,150px);padding:12px}
  .card__logo img{max-height:calc(clamp(84px,13vh,150px) - 24px);width:auto;max-width:70%;object-fit:contain}
  .card__body{padding:16px 18px 18px;gap:6px}
  .card__name{font-size:26px}
}

@media (min-width:768px) and (max-height:700px){
  .work__head{top:calc(var(--hdr) + 16px)}
  .work__head .title{font-size:clamp(2rem,6.6vh,3.4rem)}
  .work__head > p{font-size:14px;max-width:340px}
  .cards{bottom:clamp(48px,7vh,70px)}
  .card__body > p:not(.card__place){display:none}
}
/* the logo stays inside its white panel at any size (a tall logo, e.g. Volvo, spilled over the card name) */
.card__logo img{max-height:calc(clamp(120px,17vh,170px) - 52px);width:auto}
@media (min-width:768px) and (max-height:960px){.card__logo img{max-height:calc(clamp(84px,13vh,150px) - 24px)}}
/* a company's own makes (brand.makes): each logo fills the same box, so a thin wordmark is not smaller than an emblem */
.card__logo--make img{width:62%;height:calc(clamp(120px,17vh,170px) - 64px);max-width:62%;object-fit:contain}
@media (min-width:768px) and (max-height:960px){.card__logo--make img{height:calc(clamp(84px,13vh,150px) - 34px)}}
@media (max-width:767px){.card__logo--make img{height:calc(clamp(84px,13vh,150px) - 34px)}}
