/* ---------- Brand ---------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
}
.brand:hover { color: var(--text); }
button.brand { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.brand__mark { width: 34px; height: 34px; color: var(--text-3); transition: filter var(--dur-3); }
.brand__word {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-size: 1.32rem;
    letter-spacing: var(--display-tracking);
    line-height: 1;
}
.brand__word em { font-style: normal; color: var(--accent-2); text-shadow: 0 0 14px var(--glow); }
[data-direction="kour"] .brand__word { font-size: 1.08rem; }
.brand[data-heat="1"] .brand__mark { filter: drop-shadow(0 0 4px var(--glow)) brightness(1.1); }
.brand[data-heat="2"] .brand__mark { filter: drop-shadow(0 0 8px var(--glow)) brightness(1.25); }
.brand[data-heat="3"] .brand__mark { filter: drop-shadow(0 0 14px var(--glow)) brightness(1.45); }
.brand[data-heat="4"] .brand__mark { filter: drop-shadow(0 0 22px var(--ember-2)) brightness(1.7); }
.brand { position: relative; }
.brand__mark.flare { animation: flare 900ms var(--ease-out); }

/* ---------- UI elements page ---------- */
.ui-page { padding-bottom: 120px; }

.ui-hero {
    padding: var(--space-7) 0 var(--space-6);
    background:
        radial-gradient(60% 80% at 85% 0%, var(--accent-soft), transparent 70%),
        radial-gradient(50% 60% at 0% 100%, color-mix(in oklab, var(--accent-2) 8%, transparent), transparent 70%);
    border-bottom: 1px solid var(--line);
}
.ui-hero h1 { max-width: 14ch; }
.ui-hero p { max-width: 58ch; margin-top: var(--space-4); color: var(--text-2); font-size: var(--step-1); }

.ui-switcher {
    position: sticky;
    top: 60px;
    z-index: 25;
    padding: var(--space-3) 0;
    background: color-mix(in oklab, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.ui-switcher { padding: var(--space-2) 0; }
.ui-switcher .wrap { display: flex; flex-wrap: nowrap; gap: var(--space-2) var(--space-3); align-items: center; overflow-x: auto; scrollbar-width: none; }
.ui-switcher .wrap > * { flex: none; }
.ui-switcher .segmented button { min-height: 44px; padding: 0 var(--space-3); }
.ui-switcher .switch { min-height: 32px; font-size: var(--step--1); }
.ui-switcher .switch__track { width: 40px; height: 24px; }
.ui-switcher .switch__track::after { width: 16px; height: 16px; }
.ui-switcher .switch input:checked + .switch__track::after { translate: 16px 0; }
.ui-switcher .segmented { overflow-x: auto; max-width: 100%; }
.ui-switcher .segmented button { white-space: nowrap; }

.ui-toc { display: flex; gap: var(--space-2); overflow-x: auto; padding: var(--space-4) 0 0; scrollbar-width: none; }
.ui-toc a { flex: none; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface); color: var(--text-2); text-decoration: none; font-size: var(--step--1); font-weight: 700; }
.ui-toc a:hover { color: var(--text); }

.ui-section { padding: var(--space-7) 0 0; scroll-margin-top: 54px; }
.ui-section > .wrap > header { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.ui-section > .wrap > header p { color: var(--text-2); max-width: 62ch; }

.ui-grid { display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .ui-grid--2 { grid-template-columns: repeat(2, 1fr); } .ui-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .ui-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.ui-specimen {
    display: grid;
    gap: var(--space-3);
    align-content: start;
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--bg);
}
.ui-specimen > .eyebrow { margin-bottom: var(--space-1); }
.ui-specimen--center { justify-items: center; text-align: center; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--space-3); }
.swatch { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); background: var(--bg-raised); }
.swatch i { display: block; height: 64px; background: var(--c); }
.swatch span { display: block; padding: 8px 10px; font-size: 12px; font-weight: 700; color: var(--text-2); }

.type-scale { display: grid; gap: var(--space-3); }
.type-scale > div { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; gap: var(--space-3); }
.type-scale > div > span { font-size: 12px; color: var(--text-3); font-weight: 700; }

.phone {
    width: min(390px, 100%);
    margin-inline: auto;
    border: 1px solid var(--line-strong);
    border-radius: 34px;
    padding: 10px;
    background: var(--bg-sunken);
    box-shadow: var(--shadow-2);
}
.phone__screen { position: relative; border-radius: 26px; overflow: hidden; background: var(--bg); min-height: 640px; display: flex; flex-direction: column; }
.phone__screen .tabbar { position: absolute; }
.phone__screen > main { flex: 1; padding: var(--space-4); display: grid; gap: var(--space-4); align-content: start; padding-bottom: 110px; }

.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: var(--space-3); }
.icon-tile { display: grid; justify-items: center; gap: 8px; padding: var(--space-4) var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg-raised); color: var(--text); font-size: 12px; font-weight: 700; }
.icon-tile svg { width: 28px; height: 28px; }
.icon-tile span { color: var(--text-3); }
.icon-tile--hero { grid-column: span 2; grid-row: span 2; align-content: center; color: var(--accent-2); }
.icon-tile--hero svg { width: 88px; height: 88px; }

.kb-demo { grid-column: 1 / -1; }
.kb-demo__screens { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); justify-content: center; gap: var(--space-4); }
.kb-demo__shot { display: grid; gap: var(--space-2); margin: 0; }
.kb-demo__shot figcaption { text-align: center; color: var(--text-3); font-size: 12px; font-weight: 700; }
.kb-demo__screen { display: flex; flex-direction: column; gap: 6px; height: 250px; padding: 10px 8px 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--bg-sunken); }
.kb-demo__screen > span { flex: none; }
.kb-demo__bar, .kb-demo__field, .kb-demo__row, .kb-demo__float { border-radius: 6px; }
.kb-demo__bar { height: 16px; margin: -4px -2px 2px; background: var(--surface-2); }
.kb-demo__field { display: flex; align-items: center; height: 24px; padding-left: 6px; border: 1px solid var(--line-strong); background: var(--bg-raised); color: var(--text-3); }
.kb-demo__field svg { width: 12px; height: 12px; }
.kb-demo__screen--typing .kb-demo__field { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.kb-demo__row { height: 18px; background: var(--surface); }
.kb-demo__float { display: grid; place-items: center; height: 26px; margin-top: auto; border: 1px solid var(--line-strong); background: var(--bg-raised); color: var(--text-2); font-size: 10px; font-weight: 800; box-shadow: var(--shadow-1); }
.kb-demo__tabs { display: flex; align-items: center; justify-content: space-around; height: 30px; margin: 0 -8px; border-top: 1px solid var(--line); background: var(--bg-raised); }
.kb-demo__tabs i { width: 10px; height: 10px; border-radius: 3px; background: var(--text-3); }
.kb-demo__tabs b { width: 18px; height: 18px; margin-top: -10px; border-radius: 50%; background: var(--accent); }
.kb-demo__keys { display: grid; grid-template-columns: repeat(10, 1fr); align-content: center; gap: 3px; height: 92px; margin: auto -8px 0; padding: 6px; background: var(--surface-2); }
.kb-demo__keys i { height: 18px; border-radius: 3px; background: var(--surface); }
.kb-demo__legend { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; font-size: var(--step--1); color: var(--text-2); }
.kb-demo__legend li { display: flex; align-items: flex-start; gap: var(--space-2); }
.kb-demo__legend svg { flex: none; margin-top: 3px; color: var(--accent-2); }
.kb-demo__legend code { padding: 1px 6px; border-radius: var(--radius-s); background: var(--bg-sunken); color: var(--text); font-size: 12px; }

/* ---------- App pages ---------- */
.page { padding: var(--space-5) 0 calc(110px + var(--safe-bottom)); }
@media (min-width: 900px) { .page { padding-bottom: var(--space-8); } }
.narrow { max-width: 560px; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-2); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- TV view: one landscape screen, read from across the room, never scrolled ---------- */
/* Sizes follow the screen height (vh), so 720p and 1080p show the same layout; lists page (tv-pager) instead of growing. */
html:has(.tv), body:has(.tv) { overflow: hidden; scrollbar-width: none; }
html:has(.tv)::-webkit-scrollbar, body:has(.tv)::-webkit-scrollbar { display: none; }
.tv {
    --tv-font: clamp(14px, 2.4vh, 34px);
    --tv-row: clamp(46px, 7.4vh, 104px);
    --tv-gap: clamp(6px, 1vh, 14px);
    box-sizing: border-box;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 2vh;
    padding: 2.6vh 2.6vw;
    font-size: var(--tv-font);
}
.tv__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2vw; min-width: 0; }
.tv__head h1 { overflow: hidden; font-size: clamp(20px, 4.4vh, 60px); line-height: 1.1; white-space: nowrap; text-overflow: ellipsis; }
.tv__hint { display: inline-flex; align-items: center; gap: 0.5em; color: var(--text-2); font-weight: 700; font-size: 0.8em; white-space: nowrap; }
.tv__hint .icon { width: 1.2em; height: 1.2em; color: var(--accent-2); }
.tv__body, .tv__split { min-height: 0; height: 100%; }
.tv__split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2vw; }
.tv__split--nose { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.tv__panel { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1.4vh; min-height: 0; }
.tv__nose { grid-template-rows: auto auto minmax(0, 1fr); padding: 1.6vh 1.4vw; border-radius: var(--radius-l); border: 1px solid color-mix(in oklab, var(--medal-gold) 40%, var(--line)); background: radial-gradient(90% 50% at 50% 0%, color-mix(in oklab, var(--medal-gold) 12%, transparent), transparent), var(--bg-raised); }
.tv__panel-title { display: flex; align-items: center; gap: 0.4em; font-size: 1.25em; line-height: 1.1; }
.tv__panel-title .icon { width: 1em; height: 1em; color: var(--accent-2); }
.tv__nose .tv__panel-title .icon { color: var(--medal-gold); }
.tv__nose-state { margin: 0; font-size: 0.7em; color: var(--text-2); }
.tv__empty { align-self: center; }

.tv-pages { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1vh; min-height: 0; }
.tv-list { min-height: 0; overflow: hidden; display: grid; grid-auto-rows: var(--tv-row); align-content: start; gap: var(--tv-gap); margin: 0; padding: 0; list-style: none; transition: opacity 300ms var(--m-ease, ease); }
.tv-list.is-turning { opacity: 0; }
.tv-pages__dots { display: flex; justify-content: center; gap: 0.5em; min-height: 0.5em; }
.tv-pages__dots i { width: 0.45em; height: 0.45em; border-radius: 50%; background: var(--line-strong); transition: background-color 300ms; }
.tv-pages__dots i.is-on { background: var(--accent); box-shadow: 0 0 8px var(--glow); }

.tv-bowl, .tv-nose { box-sizing: border-box; height: var(--tv-row); min-width: 0; overflow: hidden; display: grid; align-items: center; gap: 1.2vw; padding: 0 1.2vw; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--bg-raised); }
.tv-bowl { grid-template-columns: 2.2em minmax(0, 1fr) auto auto; }
.tv-bowl.is-first { border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); background: linear-gradient(90deg, var(--accent-soft), var(--bg-raised) 70%); }
.tv-bowl__place { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.5em; line-height: 1; text-align: center; color: var(--text-3); }
.tv-bowl.is-first .tv-bowl__place { color: var(--accent-2); text-shadow: 0 0 18px var(--glow); }
.tv-bowl__main { display: grid; gap: 0.15em; min-width: 0; }
.tv-bowl__name { overflow: hidden; font-size: 1.1em; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; }
.tv-bowl__meta { display: flex; align-items: center; gap: 0.8em; min-width: 0; overflow: hidden; font-size: 0.68em; color: var(--text-2); white-space: nowrap; }
.tv-bowl__station { font-weight: 800; color: var(--text); }
.tv-bowl__tea { display: inline-flex; align-items: center; gap: 0.3em; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tv-bowl__tea .icon { width: 1em; height: 1em; }
.tv-bowl__blind { display: flex; align-items: center; justify-content: flex-end; font-size: 0.72em; }
.tv-bowl__blind .chip { height: auto; padding: 0.2em 0.6em; font-size: 1em; }
.tv-bowl__blind .chip .icon, .tv-bowl__blind .verdict-count .icon { width: 1.1em; height: 1.1em; }
.tv-bowl__blind .verdict-count { min-height: 1.6em; padding: 0 0.55em 0 0.35em; font-size: 1em; }
.tv-bowl__score { display: flex; align-items: center; gap: 0.5em; justify-content: flex-end; }
.tv-bowl__score b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.6em; line-height: 1; }
.tv .coals--md { --size: clamp(14px, 2.6vh, 36px); }

.tv-nose { grid-template-columns: 2.2em auto minmax(0, 1fr) auto; }
.tv-nose__place { display: grid; place-items: center; }
.tv-nose .medal { width: 1.6em; height: 1.8em; font-size: 0.9em; }
.tv-nose .place { font-size: 1.3em; }
.tv-nose .avatar { --size: calc(var(--tv-row) * 0.6); }
.tv-nose__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tv-nose__pts { color: var(--text-2); font-size: 0.75em; white-space: nowrap; }
.tv-nose__pts b { font-family: var(--font-display); font-size: 1.6em; color: var(--text); }

/* ---------- Admin ---------- */
.admin-nav { display: none; gap: var(--space-1); margin-left: auto; }
.admin-nav-menu { margin-left: auto; }
@media (min-width: 900px) { .admin-nav { display: flex; } .admin-nav-menu { display: none; } }
.admin-nav a { padding: 8px 12px; border-radius: var(--radius-pill); color: var(--text-2); text-decoration: none; font-weight: 700; font-size: var(--step--1); }
.admin-nav a:hover { background: var(--surface); color: var(--text); }
.pick-scroll { max-height: 46dvh; overflow-y: auto; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 4px; background: var(--bg-sunken); }
.pick-row { display: flex; align-items: center; gap: var(--space-3); min-height: 48px; padding: 0 var(--space-3); border-radius: var(--radius-s); cursor: pointer; }
.pick-row:hover { background: var(--surface); }
.pick-row:has(input:checked) { background: var(--accent-soft); color: var(--accent-2); font-weight: 800; }
.pick-row input { accent-color: var(--accent); width: 20px; height: 20px; flex: none; }
.pick-row .chip { margin-left: auto; }
a.servis__tile { text-decoration: none; }

/* ---------- QR sheet (print) ---------- */
.qr-sheet { display: flex; flex-wrap: wrap; gap: 8mm; justify-content: center; padding: 8mm; }
.qr-sheet__hint { width: 100%; text-align: center; }
.qr-card__qr svg { width: 100%; height: auto; }
nav.qr-sheet__hint { display: flex; gap: var(--space-2); justify-content: center; }
.qr-bare { width: 50mm; max-width: 100%; display: grid; gap: 2mm; justify-items: center; text-align: center; }
.qr-bare__qr { width: 100%; padding: 4mm; background: #fff; }
.qr-bare__qr svg { display: block; width: 100%; height: auto; }
.qr-bare__num { font-weight: 700; font-size: 3.6mm; color: var(--text-2); }
.qr-bare__files { display: flex; gap: var(--space-2); }
@media print {
    @page { size: A4; margin: 6mm; }
    body { background: #fff; }
    body::before, body::after, .no-print, .toasts { display: none !important; }
    .qr-sheet { gap: 4mm; padding: 0; }
    .qr-bare__num { color: #555; }
    .qr-card { box-shadow: none; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Accent picker on /ui ---------- */
.accent-dot { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border-radius: 50%; vertical-align: -2px; background: linear-gradient(135deg, var(--a2), var(--a1)); box-shadow: 0 0 8px var(--a1); }


/* ---------- Catalogue ---------- */
.catalogue-list, .plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.catalogue-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg-raised); color: inherit; text-decoration: none; }
.catalogue-row:hover { border-color: var(--line-strong); color: inherit; }
.catalogue-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.catalogue-row__meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--space-2); flex: 0 1 auto; min-width: 0; }
/* Rows never get wider than the screen: the text side shrinks, and on phones the details go under the name. */
.catalogue-row > * { min-width: 0; }
.world-row { flex-wrap: wrap; }
.world-row__link { flex: 1 1 220px; }
@media (max-width: 559px) {
    .catalogue-row:has(> .catalogue-row__meta) { flex-wrap: wrap; }
    .catalogue-row:has(> .catalogue-row__meta) > span:first-child { flex: 1 1 100%; }
    .catalogue-row__meta { justify-content: flex-start; }
}
.cover { width: 100%; max-height: 360px; object-fit: contain; border-radius: var(--radius-l); background: var(--bg-raised); }
.segmented__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border-radius: inherit; color: var(--text-2); font-weight: 700; text-decoration: none; }
.segmented__link[aria-current="page"] { background: var(--surface-2); color: var(--text); box-shadow: var(--shadow-1); }

/* ---------- Polls ---------- */
.poll-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.poll-option { --pct: 0%; position: relative; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: 48px; padding: 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: linear-gradient(90deg, var(--accent-soft) var(--pct), transparent var(--pct)), var(--bg-sunken); color: var(--text); font-weight: 700; text-align: left; cursor: pointer; transition: background var(--dur-3); }
.poll-option[aria-pressed="true"] { border-color: var(--accent); }
.poll-option:disabled { cursor: default; }
.upload-preview { max-height: 280px; width: auto; border-radius: var(--radius-m); }
.feed-card__img { height: auto; aspect-ratio: auto; max-height: 125cqi; object-fit: cover; }
a:has(> .feed-card__img) { display: block; container-type: inline-size; }

/* ---------- Catalogue cards ---------- */
.catalogue-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .catalogue-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .catalogue-grid { grid-template-columns: repeat(3, 1fr); } }
.detail-head { display: flex; gap: var(--space-4); align-items: center; }
.detail-head > .stack { min-width: 0; flex: 1; container-type: inline-size; }
.detail-head h1 { overflow-wrap: anywhere; }
/* Product names never break inside a word: the heading shrinks until its longest word fits the column. */
.detail-head h1.detail-head__title { overflow-wrap: break-word; word-break: normal; hyphens: manual; text-wrap: balance; font-size: clamp(1.15rem, 100cqi / (var(--longest, 8) * 0.66), var(--step-4)); }
/* Admin photos of hookahs, teas, mixes and events: cropped to 4:3, never taller than a phone screen allows. */
.detail-photo { display: block; width: 100%; max-width: 720px; height: auto; aspect-ratio: 4 / 3; max-height: 60vh; object-fit: cover; border-radius: var(--radius-l); background: var(--bg-sunken); }
.catalogue-item__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); background: var(--bg-sunken); }
.detail-head__cover { width: 120px; height: 120px; flex: none; padding: 8px; object-fit: contain; border-radius: var(--radius-l); background: radial-gradient(90% 90% at 50% 30%, var(--surface-2), var(--bg-sunken)); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 420px) {
    .detail-head { align-items: flex-start; }
    .detail-head__cover { width: 88px; height: 88px; }
    .detail-head--long .detail-head__cover { width: 72px; height: 72px; }
    .detail-head h1 { font-size: var(--step-3); }
    .detail-head h1.detail-head__title { font-size: clamp(1.15rem, 100cqi / (var(--longest, 8) * 0.66), var(--step-3)); }
}
/* Detail hero: the packshot big on a card; on phones the tin sits above the names. */
.detail-head.detail-hero { position: relative; padding: var(--space-4); border-radius: var(--radius-l); border: 1px solid var(--line); background: radial-gradient(120% 90% at 0% 0%, var(--accent-soft), transparent 55%), var(--bg-raised); }
/* Packshots often have white margins: a light tile in the hero so they never look cut by white bars. */
.detail-head.detail-hero .detail-head__cover { width: 200px; height: 200px; padding: 12px; background: var(--packshot-bg); box-shadow: inset 0 0 0 1px var(--line); }
.detail-head.detail-hero .detail-hero__initial { --tile: 200px; }
@media (max-width: 639px) {
    .detail-head.detail-hero { flex-direction: column; align-items: stretch; }
    .detail-head.detail-hero .detail-head__cover { width: 100%; height: 220px; }
    .detail-head.detail-hero .zoom { align-self: stretch; }
    .detail-head.detail-hero .detail-hero__initial { --tile: 132px; align-self: center; }
}
.photo-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(110px, 1fr); gap: var(--space-2); overflow-x: auto; scrollbar-width: thin; }
.photo-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-m); background: var(--surface); }

/* ---------- World catalogue (/svet) ---------- */
.world-logo { object-fit: contain; padding: var(--space-2); }
.world-dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.world-dist li { display: grid; grid-template-columns: 2ch 1fr 6ch; align-items: center; gap: var(--space-2); font-size: var(--step--1); color: var(--text-2); }
.world-dist__label { color: var(--text-3); font-weight: 700; text-align: right; }
.world-dist__track { height: 12px; border-radius: 4px; background: var(--surface); overflow: hidden; }
.world-dist__bar { display: block; height: 100%; width: calc(var(--share, 0) * 100%); min-width: 2px; border-radius: 4px; background: var(--text-3); }
.world-dist li:nth-child(1) .world-dist__bar { background: var(--accent); }
.world-dist li:nth-child(2) .world-dist__bar { background: color-mix(in oklab, var(--accent) 75%, var(--text-3)); }
.world-dist li:nth-child(3) .world-dist__bar { background: color-mix(in oklab, var(--accent) 50%, var(--text-3)); }
.world-dist li:nth-child(4) .world-dist__bar { background: color-mix(in oklab, var(--accent) 25%, var(--text-3)); }
/* The world rating section is a reference: no card fill, a dashed outline, greyed coals; the bars keep their colour. */
.world-rating { border: 1px dashed var(--line-strong); border-radius: var(--radius-l); padding: var(--space-4); color: var(--text-2); }
.world-rating .coals { filter: grayscale(0.7); opacity: 0.75; }
.world-rating .score__num { color: var(--text-2); }
.world-dist__votes { text-align: right; }
/* Fact tiles: two even columns, an odd last tile spans the row, labels stay on one line. */
.world-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin: 0; }
.world-facts > div { display: grid; align-content: start; gap: 6px; min-width: 0; padding: var(--space-3); border-radius: var(--radius-m); background: var(--bg-raised); border: 1px solid var(--line); }
.world-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.world-facts dt { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.world-facts dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-2); font-weight: 700; min-width: 0; }
.world-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.world-mini-score { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: var(--step--1); }
.world-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--step--1); color: var(--text-3); }
.world-hint b { color: var(--text-2); }
.world-hint__chip { height: 22px; padding: 0 8px; }

/* ---------- Novinky ve světě (/svet/novinky) ---------- */
.news-summary { list-style: none; margin: 0; padding: 0; }
.news-summary .chip { text-decoration: none; }
.news-flavour { display: grid; gap: var(--space-2); align-content: start; }
.news-flavour__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; padding: 0 var(--space-1); }
.news-move { display: inline-flex; align-items: baseline; gap: 2px; font-size: var(--step--1); color: var(--text-3); white-space: nowrap; }
.news-move--up b { color: var(--ok); }
.news-move--down b { color: var(--text-2); }
.news-admin-hot { padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg-raised); }

/* ---------- Průvodce, O klubu ---------- */
.guide h2 { font-size: var(--step-2); }
.guide__lead { font-size: var(--step-1); color: var(--text-2); }
.guide__list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--text-2); }
.guide__list b { color: var(--text); }
.guide__figure { display: flex; align-items: center; gap: var(--space-3); font-weight: 800; font-size: var(--step-1); }
.guide__scale, .guide__strengths, .guide__ranks { list-style: none; margin: 0; padding: 0; }
.guide__scale { display: grid; gap: 8px; }
.guide__scale li { display: grid; grid-template-columns: auto 5ch 1fr; align-items: center; gap: var(--space-3); }
.guide__strengths { display: grid; gap: 6px; }
.guide__strengths li { display: flex; align-items: center; gap: var(--space-3); }
.guide__ranks li { display: inline-flex; align-items: center; gap: 6px; }
.glossary { margin: 0; display: grid; gap: var(--space-2); }
.glossary__item { padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg-raised); }
.glossary dt { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-1); }
.glossary dd { margin: 4px 0 0; color: var(--text-2); }

/* ---------- Batch age on a club tobacco ---------- */
.batch-age { display: grid; gap: 6px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--bg-raised); }
.batch-age--fresh .chip { color: var(--ok); }
.batch-age--aged .chip, .batch-age--long .chip { color: var(--accent-2); }

/* ---------- Club anniversary (CLUB_ANNIVERSARY) ---------- */
[data-anniversary="1"] body { background-image: radial-gradient(90% 45% at 50% -8%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%); background-attachment: fixed; }
[data-anniversary="1"] .brand__mark { color: var(--accent-2); filter: drop-shadow(0 0 8px var(--glow)); }
.anniversary-ribbon { margin: 0; padding: 8px var(--gutter); text-align: center; font-weight: 700; font-size: var(--step--1); color: var(--accent-2); background: linear-gradient(90deg, transparent, var(--accent-soft), transparent); }
