/*
 * B-LINK v8.7: «авторские» темы (категория art) — японские, узбекские, киберпанк, ар-деко, аниме, манга, космос, хром,
 * пиксель, акварель, пластилин, бумага. Простые фоны (цвет или мягкий градиент), векторные элементы в цветах палитры
 * (SVG-маска: цвет — background, рисунок — mask, поэтому орнамент перекрашивается вместе с палитрой) и тематические
 * анимации. Ни одной картинки. Файлы css/art/<тема>.css собирает .local-runtime/tools/qa-themes/build_art_css.py
 * (орнаменты — art_ornaments.py), руками не править. Страница подключает только файл своей темы ('css' => 'art').
 * Движение — только при включённой анимации страницы (.bl-motion) и без запроса reduced-motion; без движения всё стоит
 * в законченном виде. У фото-фона (.bl-has-photo) декор фона снимается — правило в конце файла.
 */


.bl-theme-bukhara .bl-bg i { display: block; position: absolute; pointer-events: none; }
/* the line divider gets the theme's own stroke; the wave divider keeps its shape in the theme accent */
.bl-theme-bukhara .bl-div--wave .bl-div__in i { background-color: color-mix(in srgb, var(--accent) 55%, transparent); }


/* ============================================================== theme: BUKHARA */
/* Bukhara, a boutique hotel in the old town (17.11.2026, round 2). One flat colour of Bukhara itself — tile turquoise, sand,
   burnt brick or lime white — no pattern. The signature is the portal: the portrait cut as a keel arch standing on the sill
   of a thin rectangular frame, an eight-pointed khatam star sitting in the gap of its top line (without a photo the star and
   a piece of that line stand over the name). Everything else is type — Ysabeau for the name, headings, item names and prices,
   spaced capitals for labels — and 1px lines: flat buttons, cards and alerts; hover darkens the border and underlines the
   title. Motion: the star opens and the frame draws itself out of it (top line to the sides, then down the jambs). */
.bl-theme-bukhara { font-feature-settings: "lnum" 1; --bw: 1px; --shadow: none; --gap: 12px; --bk-frame: var(--accent-text, var(--accent)); --bk-rule: var(--line); --bk-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.1'%3E%3Cpath d='M12 2.1L14.9 5H19V9.1L21.9 12L19 14.9V19H14.9L12 21.9L9.1 19H5V14.9L2.1 12L5 9.1V5H9.1Z'/%3E%3C/svg%3E"); --bk-star-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M12 2.1L14.9 5H19V9.1L21.9 12L19 14.9V19H14.9L12 21.9L9.1 19H5V14.9L2.1 12L5 9.1V5H9.1Z'/%3E%3C/svg%3E"); --bk-star-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.1L14.9 5H19V9.1L21.9 12L19 14.9V19H14.9L12 21.9L9.1 19H5V14.9L2.1 12L5 9.1V5H9.1Z'/%3E%3C/svg%3E"); --dialog-bg: var(--surface); --dialog-ink: var(--surface-ink); }
.bl-theme-bukhara.bl-btn-square { --br: 2px; --cr: 3px; }
.bl-theme-bukhara.bl-btn-rounded { --br: 12px; --cr: 16px; }
.bl-theme-bukhara .bl-bg { background: var(--bg); }

/* ---- hero: the portal (frame = .bl-ava::before with a gap in the top line, star = .bl-ava::after) */
.bl-theme-bukhara .bl-stack { padding-top: max(46px, env(safe-area-inset-top)); }
.bl-theme-bukhara .bl-hero { gap: 20px; padding-top: 16px; }
.bl-theme-bukhara .bl-ava { --bk-t: 16px; --bk-s: 16px; --bk-b: 16px; }
.bl-theme-bukhara.bl-ava-arch .bl-ava { --bk-t: 28px; --bk-s: 18px; --bk-b: 1px; }
.bl-theme-bukhara .bl-ava--hero, .bl-theme-bukhara .bl-b--avatar .bl-ava { margin: calc(var(--bk-t) + 2px) 0 calc(var(--bk-b) + 2px); }
.bl-theme-bukhara .bl-hero.bl-ta--left .bl-ava { margin-left: var(--bk-s); }
.bl-theme-bukhara .bl-hero.bl-ta--right .bl-ava { margin-right: var(--bk-s); }
.bl-theme-bukhara .bl-ava::before { content: ""; position: absolute; inset: calc(var(--bk-t) * -1) calc(var(--bk-s) * -1) calc(var(--bk-b) * -1); border: 1px solid var(--bk-frame); pointer-events: none; -webkit-mask: linear-gradient(90deg, #000 calc(50% - 16px), transparent 0 calc(50% + 16px), #000 0) top / 100% 1px no-repeat, linear-gradient(#000 0 0) 0 1px / 100% calc(100% - 1px) no-repeat; mask: linear-gradient(90deg, #000 calc(50% - 16px), transparent 0 calc(50% + 16px), #000 0) top / 100% 1px no-repeat, linear-gradient(#000 0 0) 0 1px / 100% calc(100% - 1px) no-repeat; }
.bl-theme-bukhara .bl-ava::after { content: ""; position: absolute; left: 50%; top: calc(var(--bk-t) * -1); width: 22px; height: 22px; translate: -50% -50%; background: var(--bk-frame); -webkit-mask: var(--bk-star) center / contain no-repeat; mask: var(--bk-star) center / contain no-repeat; pointer-events: none; }
.bl-theme-bukhara.bl-ava-arch .bl-ava img { border-radius: 0; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 124' preserveAspectRatio='none'%3E%3Cpath d='M0 124V54C0 27 31 11 50 0C69 11 100 27 100 54V124Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 124' preserveAspectRatio='none'%3E%3Cpath d='M0 124V54C0 27 31 11 50 0C69 11 100 27 100 54V124Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.bl-theme-bukhara .bl-hero--side { gap: 34px; align-items: flex-start; }
.bl-theme-bukhara .bl-hero--side .bl-ava { margin: calc(var(--bk-t) + 2px) 0 calc(var(--bk-b) + 2px) var(--bk-s); }
/* over a cover the portal is a small door set into the foot of the picture: a compact frame filled with the page colour
   overlaps the cover's lower edge, the star moves inside the frame above the photo */
.bl-theme-bukhara .bl-hero--has-cover .bl-ava--hero { --size: 94px; --bk-t: 26px; --bk-s: 12px; --bk-b: 12px; margin-top: calc(var(--bk-t) - 58px); }
.bl-theme-bukhara.bl-ava-arch .bl-hero--has-cover .bl-ava--hero { --bk-b: 1px; }
.bl-theme-bukhara .bl-hero--has-cover .bl-ava--hero::before { background: var(--bg); -webkit-mask: none; mask: none; }
.bl-theme-bukhara .bl-hero--has-cover .bl-ava--hero::after { top: calc(var(--bk-t) * -.5); width: 15px; height: 15px; -webkit-mask-image: var(--bk-star-s); mask-image: var(--bk-star-s); }
.bl-theme-bukhara .bl-hero--side.bl-hero--has-cover { row-gap: 20px; column-gap: 24px; }
.bl-theme-bukhara .bl-hero--side.bl-hero--has-cover .bl-ava--hero { margin: calc(var(--bk-t) - 58px) 0 calc(var(--bk-b) + 2px) calc(var(--bk-s) + 14px); }
.bl-theme-bukhara .bl-hero--side.bl-hero--has-cover .bl-hero__body { flex: 1 1 150px; padding-top: 4px; }
/* without a photo the star and a piece of the portal's top line stand over the name */
.bl-theme-bukhara .bl-hero:not(:has(.bl-ava--hero)) .bl-hero__name::before { content: ""; display: block; width: 132px; height: 22px; margin: 0 auto 16px; background: var(--bk-frame); -webkit-mask: var(--bk-star) center / 22px 22px no-repeat, linear-gradient(90deg, #000 calc(50% - 18px), transparent 0 calc(50% + 18px), #000 0) center / 100% 1px no-repeat; mask: var(--bk-star) center / 22px 22px no-repeat, linear-gradient(90deg, #000 calc(50% - 18px), transparent 0 calc(50% + 18px), #000 0) center / 100% 1px no-repeat; }
.bl-theme-bukhara :is(.bl-hero--side, .bl-hero.bl-ta--left):not(:has(.bl-ava--hero)) .bl-hero__name::before { width: 84px; margin-left: 0; -webkit-mask: var(--bk-star) left center / 22px 22px no-repeat, linear-gradient(90deg, transparent 29px, #000 0) center / 100% 1px no-repeat; mask: var(--bk-star) left center / 22px 22px no-repeat, linear-gradient(90deg, transparent 29px, #000 0) center / 100% 1px no-repeat; }
.bl-theme-bukhara .bl-hero.bl-ta--right:not(:has(.bl-ava--hero)) .bl-hero__name::before { width: 84px; margin-right: 0; -webkit-mask: var(--bk-star) right center / 22px 22px no-repeat, linear-gradient(90deg, #000 calc(100% - 29px), transparent 0) center / 100% 1px no-repeat; mask: var(--bk-star) right center / 22px 22px no-repeat, linear-gradient(90deg, #000 calc(100% - 29px), transparent 0) center / 100% 1px no-repeat; }
.bl-theme-bukhara .bl-hero__body { gap: 10px; }
.bl-theme-bukhara .bl-hero__name { font-weight: 600; font-size: clamp(31px, 8.8vw, 42px); line-height: 1.06; letter-spacing: -.012em; text-wrap: balance; }
.bl-theme-bukhara .bl-hero__tag { font-size: 15.5px; line-height: 1.55; max-width: 33ch; text-wrap: pretty; }
.bl-theme-bukhara .bl-chips { gap: 8px; margin-top: 6px; }
.bl-theme-bukhara .bl-chip { padding: 7px 11px 6px; border-radius: var(--br); background: transparent; border: 1px solid var(--bk-rule); color: var(--ink); font-family: var(--font-display); font-size: 11.5px; font-weight: 700; line-height: 1; letter-spacing: .14em; text-transform: uppercase; }
.bl-theme-bukhara .bl-verified { background: transparent; border: 1px solid var(--bk-rule); border-radius: var(--br); font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bl-theme-bukhara .bl-verified .bl-i { color: var(--accent-text, var(--accent)); }

/* ---- type: Ysabeau for headings, item names and prices, Onest for reading */
.bl-theme-bukhara .bl-h { font-weight: 600; letter-spacing: -.008em; }
.bl-theme-bukhara .bl-h--2 { font-size: clamp(25px, 6.8vw, 31px); }
.bl-theme-bukhara .bl-h--6 { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .22em; color: var(--accent-text, var(--accent)); }
.bl-theme-bukhara .bl-b--heading { margin-top: 16px; }
.bl-theme-bukhara .bl-text { line-height: 1.65; }
.bl-theme-bukhara :is(.bl-chart__title, .bl-count__title, .bl-plan__name, .bl-goal__title, .bl-quote__title, .bl-hours__title, .bl-price__title, .bl-coupon__title, .bl-event__title, .bl-survey__title, .bl-dialog__title, .bl-poll__q, .bl-rating__title, .bl-booking__title, .bl-quiz__title, .bl-calc__title, .bl-wheel__title, .bl-react__title) { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.005em; }
.bl-theme-bukhara :is(.bl-faq__item summary, .bl-timeline strong, .bl-card__name, .bl-product__name, .bl-price__row, .bl-card__price, .bl-product-view__price) { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }
.bl-theme-bukhara .bl-faq__item summary { font-size: 17px; line-height: 1.35; }
.bl-theme-bukhara .bl-timeline strong { font-size: 17.5px; line-height: 1.3; }
.bl-theme-bukhara .bl-card__name { font-size: 16px; }
.bl-theme-bukhara .bl-product__name { font-size: 17px; }
.bl-theme-bukhara .bl-price__row { font-size: 16.5px; }
.bl-theme-bukhara .bl-card__price { font-size: 15.5px; font-weight: 700; }

/* ---- buttons: flat, a hairline border; hover darkens the border and underlines the title */
.bl-theme-bukhara .bl-btn { min-height: 58px; background: var(--surface); color: var(--surface-ink); border: 1px solid var(--bk-rule); box-shadow: none; transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s; }
.bl-theme-bukhara .bl-btn:hover, .bl-theme-bukhara .bl-btn:active { transform: none; }
.bl-theme-bukhara .bl-btn:hover { border-color: color-mix(in srgb, var(--surface-ink) 70%, transparent); }
.bl-theme-bukhara .bl-btn__title { font-weight: 500; font-size: 16px; -webkit-hyphens: manual; hyphens: manual; text-wrap: balance; text-decoration: underline 1px transparent; text-underline-offset: 5px; transition: text-decoration-color .3s; }
.bl-theme-bukhara .bl-btn:hover .bl-btn__title { text-decoration-color: currentColor; }
.bl-theme-bukhara .bl-btn__media { color: var(--accent-text, var(--accent)); background: transparent; font-size: 18px; }
.bl-theme-bukhara .bl-btn__media--thumb { border-radius: calc(var(--br) * .6); }
.bl-theme-bukhara .bl-btn__go { opacity: .5; }
.bl-theme-bukhara .bl-btn[data-style="accent"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bl-theme-bukhara .bl-btn[data-style="accent"] .bl-btn__media { color: inherit; }
.bl-theme-bukhara .bl-btn[data-style="accent"] .bl-btn__go { opacity: .8; }
.bl-theme-bukhara .bl-btn[data-style="accent"]:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); border-color: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.bl-theme-bukhara .bl-btn[data-style="outline"] { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
/* soft (the plain plan in a price list): a hairline in the accent, the fill comes on hover */
.bl-theme-bukhara .bl-btn[data-style="soft"] { background: transparent; color: var(--ink); border: 1px solid var(--bk-frame); }
.bl-theme-bukhara .bl-surface .bl-btn[data-style="soft"] { color: var(--surface-ink); }
.bl-theme-bukhara .bl-btn[data-style="soft"]:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: var(--bk-frame); }
.bl-theme-bukhara .bl-btn[data-style="soft"] .bl-btn__media:not(.bl-btn__media--thumb) { background: transparent; }

/* ---- cards & blocks: hairlines, no lift */
.bl-theme-bukhara .bl-surface { background: var(--surface); border: 1px solid var(--bk-rule); box-shadow: none; }
.bl-theme-bukhara :is(.bl-cardlink, .bl-tile, a.bl-product, .bl-doc, .bl-pay, .bl-badge, .bl-card):hover { transform: none; }
.bl-theme-bukhara :is(.bl-cardlink, .bl-tile, a.bl-product, .bl-doc, .bl-pay):hover { border-color: color-mix(in srgb, var(--surface-ink) 60%, transparent); }
.bl-theme-bukhara .bl-social { border: 1px solid var(--bk-rule); background: transparent; color: var(--ink); transition: background-color .25s, color .25s, border-color .25s; }
.bl-theme-bukhara .bl-socials--icons .bl-social, .bl-theme-bukhara .bl-socials--pills .bl-social { background: transparent; }
.bl-theme-bukhara .bl-social:hover { transform: none; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bl-theme-bukhara :is(.bl-tile__icon, .bl-doc__icon, .bl-rowlink__media) { background: transparent; color: var(--accent-text, var(--accent)); border: 1px solid var(--bk-rule); border-radius: calc(var(--br) * .7); }
.bl-theme-bukhara .bl-list__mark { background: transparent; color: var(--accent-text, var(--accent)); font-size: 14px; }
.bl-theme-bukhara :is(.bl-map__go, .bl-coupon__code, .bl-event__date, .bl-event__link) { border-radius: var(--br); }
/* product badges speak the plan badges' language: spaced Ysabeau capitals */
.bl-theme-bukhara .bl-card__badge { padding: 5px 9px 4px; border-radius: var(--br); font-family: var(--font-display); font-size: 10.5px; font-weight: 700; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; }
.bl-theme-bukhara .bl-card__badge--inline { padding: 3px 7px 2px; font-size: 9.5px; letter-spacing: .14em; }
.bl-theme-bukhara .bl-card__cta { border-radius: var(--br); background: transparent; color: var(--accent-text, var(--accent)); border: 1px solid var(--bk-rule); }
.bl-theme-bukhara .bl-product__price { padding: 3px 9px 2px; border-radius: var(--br); background: transparent; color: var(--accent-text, var(--accent)); border: 1px solid var(--bk-frame); font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.bl-theme-bukhara .bl-coupon { border: 1px dashed var(--bk-frame); }
.bl-theme-bukhara :is(.bl-event__count span, .bl-hours__special, .bl-count__cell) { background: transparent; border: 1px solid var(--bk-rule); border-radius: var(--br); }
.bl-theme-bukhara .bl-pill { padding-left: 0; padding-right: 0; background: transparent; border-radius: 0; }
.bl-theme-bukhara .bl-pill.is-open { color: color-mix(in srgb, #16a34a 32%, var(--surface-ink)); background: transparent; }
.bl-theme-bukhara .bl-pill.is-closed { color: color-mix(in srgb, #e5484d 32%, var(--surface-ink)); background: transparent; }
.bl-theme-bukhara .bl-pill.is-open i { background: #16a34a; animation: none; box-shadow: none; }
.bl-theme-bukhara .bl-pill.is-closed i { background: #e5484d; }
.bl-theme-bukhara .bl-stat b { font-weight: 600; color: var(--ink); }
.bl-theme-bukhara .bl-count__cell b { font-weight: 600; }
.bl-theme-bukhara .bl-count__cell span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.bl-theme-bukhara .bl-faq__plus::before, .bl-theme-bukhara .bl-faq__plus::after { height: 1px; top: 6.5px; }
.bl-theme-bukhara .bl-plan__price b { font-weight: 600; }
.bl-theme-bukhara .bl-price__row i { border-bottom: 1px dotted color-mix(in srgb, currentColor 45%, transparent); }
.bl-theme-bukhara .bl-plan.is-hot { border: 1px solid var(--bk-frame); }
.bl-theme-bukhara .bl-plan__badge { top: -10px; padding: 5px 10px 4px; border-radius: var(--br); font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; }
.bl-theme-bukhara .bl-quote__stars { color: var(--accent-text, var(--accent)); }
.bl-theme-bukhara .bl-quote blockquote { font-family: var(--font-display); font-size: 17.5px; line-height: 1.5; opacity: 1; }
.bl-theme-bukhara .bl-timeline li::before { left: 4px; width: 1px; background: var(--bk-rule); }
.bl-theme-bukhara .bl-timeline li::after { left: 0; top: 6px; width: 9px; height: 9px; border-radius: 0; transform: rotate(45deg); background: var(--surface); border: 1px solid var(--bk-frame); box-shadow: none; }
.bl-theme-bukhara .bl-timeline time { font-family: var(--font-display); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text, var(--accent)); opacity: 1; }

/* ---- alert: a plate with a hairline in the alert's tone, the icon bare; the filled looks lie flat in the accent.
   Nothing glows, sweeps, rings, sways or tilts; the running line keeps running (it is the block's own content) */
.bl-theme-bukhara .bl-alert { --bk-tone: var(--bk-frame); border-radius: var(--cr); }
.bl-theme-bukhara .bl-alert:is(.bl-alert--info, .bl-alert--success, .bl-alert--warning) { --bk-tone: color-mix(in srgb, var(--accent) 62%, var(--surface-ink)); }
/* only the accent tone fills (shine, gradient, tape); the info / success / warning tones stay plates in every look */
.bl-theme-bukhara .bl-alert:not(.bl-alert--accent), .bl-theme-bukhara .bl-alert--accent:not(.bl-alert--look-tape, .bl-alert--look-shine, .bl-alert--look-gradient) { background: var(--surface); color: var(--surface-ink); border: 1px solid var(--bk-tone); text-shadow: none; }
.bl-theme-bukhara .bl-alert .bl-alert__icon { width: 22px; height: 22px; background: transparent; color: var(--bk-tone); font-size: 18px; border-radius: var(--br); animation: none; }
.bl-theme-bukhara .bl-alert__text { font-weight: 500; }
.bl-theme-bukhara .bl-alert__item { font-weight: 600; }
.bl-theme-bukhara .bl-alert__close { border-radius: var(--br); }
.bl-theme-bukhara .bl-alert:not(.bl-alert--accent) .bl-alert__close { color: inherit; background: transparent; }
.bl-theme-bukhara .bl-alert--look-card { padding-left: 14px; }
.bl-theme-bukhara .bl-alert--look-card::before { display: none; }
.bl-theme-bukhara .bl-alert.bl-alert--look-pulse, .bl-theme-bukhara .bl-alert.bl-alert--look-pulse .bl-alert__icon::after { animation: none !important; box-shadow: none; }
.bl-theme-bukhara .bl-alert--accent:is(.bl-alert--look-shine, .bl-alert--look-gradient, .bl-alert--look-tape) { background: var(--accent); color: var(--alert-ink); border-color: transparent; text-shadow: none; }
.bl-theme-bukhara .bl-alert--accent:is(.bl-alert--look-shine, .bl-alert--look-gradient) :is(.bl-alert__icon, .bl-alert__close) { color: var(--alert-ink); }
.bl-theme-bukhara .bl-alert--accent:is(.bl-alert--look-shine, .bl-alert--look-gradient) .bl-alert__close { opacity: .8; }
.bl-theme-bukhara .bl-alert.bl-alert--look-gradient { animation: none !important; }
.bl-theme-bukhara .bl-alert.bl-alert--look-shine::after { display: none; }
.bl-theme-bukhara .bl-alert:not(.bl-alert--accent).bl-alert--look-tape { border-width: 1px 0; }
.bl-theme-bukhara .bl-alert:not(.bl-alert--accent).bl-alert--look-tape .bl-alert__close { background: var(--surface); }
.bl-theme-bukhara .bl-alert.bl-alert--look-tape { transform: none; box-shadow: none; }
.bl-theme-bukhara .bl-alert--look-tape .bl-alert__item { font-family: var(--font-display); font-weight: 700; letter-spacing: .16em; }
.bl-theme-bukhara .bl-alert--look-tape .bl-alert__close { border-radius: var(--br); }
.bl-theme-bukhara .bl-alert__item::after { content: ""; font-size: 1em; width: .72em; height: .72em; margin: 0 18px; vertical-align: -.04em; background: currentColor; opacity: .8; -webkit-mask: var(--bk-star-fill) center / contain no-repeat; mask: var(--bk-star-fill) center / contain no-repeat; }
.bl-theme-bukhara .bl-alert--look-live { border-radius: var(--br); }
.bl-theme-bukhara .bl-alert .bl-alert__dot { width: 7px; height: 7px; border-radius: 0; rotate: 45deg; background: var(--bk-tone); box-shadow: none; animation: none !important; }

/* ---- charts: the tile colours of Bukhara instead of the system palette (the first part is the accent, the others are set
   per palette: distinct for 2–6 touching parts, 3:1 on the card, the label inside a bar part reads at 4.5:1); a second line
   is a quiet dashed benchmark without a fill */
.bl-theme-bukhara .bl-chart { --bk-c2: #DBA341; --bk-c3: #98A2A0; --bk-c4: #759DFF; --bk-c5: #EE8361; --bk-c6: #CC8BC5; --bk-on: #07343D; --bk-line2: color-mix(in srgb, var(--surface-ink) 58%, var(--surface)); }
.bl-theme-bukhara.bl-var-brick .bl-chart { --bk-c2: #678DEE; --bk-c3: #839E4F; --bk-c4: #BA7AB4; --bk-c5: #DEA645; --bk-c6: #8B9592; --bk-on: #3A1A12; }
.bl-theme-bukhara.bl-var-sand .bl-chart { --bk-c2: #0A847F; --bk-c3: #9D6D02; --bk-c4: #9E6098; --bk-c5: #26449D; --bk-c6: #6E7876; --bk-on: #FFFFFF; }
.bl-theme-bukhara.bl-var-pakhta .bl-chart { --bk-c2: #0A847F; --bk-c3: #664603; --bk-c4: #9E6098; --bk-c5: #872802; --bk-c6: #6E7876; --bk-on: #FFFFFF; }
.bl-theme-bukhara :is(.bl-cpie__seg, .bl-cpie__part)[data-k="0"], .bl-theme-bukhara .bl-cpie__key[data-k="0"] .bl-chart__key { --c: var(--mark) !important; }
.bl-theme-bukhara :is(.bl-cpie__seg, .bl-cpie__part)[data-k="1"], .bl-theme-bukhara .bl-cpie__key[data-k="1"] .bl-chart__key { --c: var(--bk-c2) !important; }
.bl-theme-bukhara :is(.bl-cpie__seg, .bl-cpie__part)[data-k="2"], .bl-theme-bukhara .bl-cpie__key[data-k="2"] .bl-chart__key { --c: var(--bk-c3) !important; }
.bl-theme-bukhara :is(.bl-cpie__seg, .bl-cpie__part)[data-k="3"], .bl-theme-bukhara .bl-cpie__key[data-k="3"] .bl-chart__key { --c: var(--bk-c4) !important; }
.bl-theme-bukhara :is(.bl-cpie__seg, .bl-cpie__part)[data-k="4"], .bl-theme-bukhara .bl-cpie__key[data-k="4"] .bl-chart__key { --c: var(--bk-c5) !important; }
.bl-theme-bukhara :is(.bl-cpie__seg, .bl-cpie__part)[data-k="5"], .bl-theme-bukhara .bl-cpie__key[data-k="5"] .bl-chart__key { --c: var(--bk-c6) !important; }
.bl-theme-bukhara .bl-cpie__part { --on: var(--bk-on) !important; font-family: var(--font-display); font-weight: 700; }
.bl-theme-bukhara .bl-cline.has-two .bl-cline__s:nth-of-type(1), .bl-theme-bukhara .bl-cline.has-two .bl-cline__dot:nth-child(1 of .bl-cline__dot), .bl-theme-bukhara .bl-cline.has-two .bl-cline__hot:nth-child(1 of .bl-cline__hot) { color: var(--mark) !important; }
.bl-theme-bukhara .bl-cline.has-two .bl-cline__s:nth-of-type(2), .bl-theme-bukhara .bl-cline.has-two .bl-cline__dot:nth-child(2 of .bl-cline__dot), .bl-theme-bukhara .bl-cline.has-two .bl-cline__hot:nth-child(2 of .bl-cline__hot) { color: var(--bk-line2) !important; }
.bl-theme-bukhara .bl-cline.has-two .bl-cline__s:nth-of-type(2) .bl-cline__area { display: none; }
.bl-theme-bukhara .bl-cline.has-two .bl-cline__s:nth-of-type(2) .bl-cline__line { stroke-width: 1.5px; stroke-dasharray: 5 4; }
.bl-theme-bukhara .bl-cline .bl-chart__legend li:nth-child(1) .bl-chart__key { --c: var(--mark) !important; }
.bl-theme-bukhara .bl-cline .bl-chart__legend li:nth-child(2) .bl-chart__key { --c: var(--bk-line2) !important; background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 0 8px); }
.bl-theme-bukhara .bl-cline .bl-chart__tip span:nth-of-type(1) i { background: var(--mark) !important; }
.bl-theme-bukhara .bl-cline .bl-chart__tip span:nth-of-type(2) i { background: var(--bk-line2) !important; }
.bl-theme-bukhara .bl-cline__line { stroke-width: 1.75px; }
.bl-theme-bukhara .bl-cring__num { font-weight: 600; }
.bl-theme-bukhara .bl-cring__track, .bl-theme-bukhara .bl-cring__arc { stroke-width: 2; }
.bl-theme-bukhara .bl-cring__arc { stroke-linecap: butt; }
.bl-theme-bukhara :is(.bl-cpie__big, .bl-cscale__val, .bl-cpie__num) { font-family: var(--font-display); font-weight: 700; }
.bl-theme-bukhara .bl-cbar__bar { border-radius: min(var(--br), 2px) min(var(--br), 2px) 0 0; }
.bl-theme-bukhara .bl-cbar--h .bl-cbar__bar { border-radius: 0 min(var(--br), 2px) min(var(--br), 2px) 0; }
.bl-theme-bukhara :is(.bl-chart__key, .bl-cpie__part) { border-radius: min(var(--br), 2px); }
.bl-theme-bukhara .bl-chart__key--line { height: 2px; border-radius: 0; }
.bl-theme-bukhara :is(.bl-cscale__track, .bl-cscale__steps i) { height: 6px; border-radius: min(var(--br), 3px); }
.bl-theme-bukhara .bl-cscale__track i { border-radius: inherit; }
.bl-theme-bukhara .bl-cscale--dots .bl-cscale__steps { gap: 9px; padding-left: 2px; }
.bl-theme-bukhara .bl-cscale--dots .bl-cscale__steps i { width: 8px; height: 8px; border-radius: 0; rotate: 45deg; }
.bl-theme-bukhara :is(.bl-chart__tip, .bl-cbar.has-axis [data-tip]::after) { border-radius: var(--br); box-shadow: none; }
.bl-theme-bukhara .bl-cbar.has-axis [data-tip]:is(:hover, .is-tip) .bl-cbar__bar { filter: none; }

/* ---- goal: a hairline-thin bar in the accent on a track of the line colour */
.bl-theme-bukhara .bl-goal__bar { height: 6px; border-radius: min(var(--br), 3px); background: var(--line); }
.bl-theme-bukhara .bl-goal__bar i { background: var(--accent); border-radius: inherit; }
.bl-theme-bukhara .bl-goal__pct { font-weight: 600; font-size: 24px; }

/* ---- interactive blocks: the wheel loses its drop shadow (a ring of the card colour and a hairline stay), the quiz bar is
   squared like the goal bar */
.bl-theme-bukhara .bl-wheel__disc { box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--bk-rule); }
.bl-theme-bukhara :is(.bl-quiz__progress, .bl-quiz__progress i) { border-radius: min(var(--br), 3px); }

/* ---- forms and dialogs: fields outlined at 3:1, a plain dim backdrop (no glass) */
.bl-theme-bukhara .bl-input { border-radius: calc(var(--br) * .8); border-color: color-mix(in srgb, var(--ink) 42%, var(--line)); background: color-mix(in srgb, var(--bg) 55%, var(--surface)); }
.bl-theme-bukhara .bl-input::placeholder { color: color-mix(in srgb, currentColor 58%, transparent); opacity: 1; }
.bl-theme-bukhara .bl-input:focus { border-color: var(--bk-frame); box-shadow: 0 0 0 1px var(--bk-frame); }
.bl-theme-bukhara .bl-dialog { border-radius: var(--cr); border: 1px solid var(--bk-rule); box-shadow: none; }
.bl-theme-bukhara .bl-dialog::backdrop { background: rgba(4, 16, 18, .62); background: color-mix(in srgb, var(--bg, #0B4F5D) 28%, rgb(0 0 0 / .62)); -webkit-backdrop-filter: none; backdrop-filter: none; }
.bl-theme-bukhara .bl-dialog__close { border-radius: var(--br); background: transparent; border: 1px solid var(--bk-rule); }
.bl-theme-bukhara .bl-ba__knob { width: 36px; height: 36px; border-radius: var(--br); background: var(--bg); color: var(--ink); border: 1px solid var(--bk-frame); box-shadow: none; }
.bl-theme-bukhara .bl-ba:is(:focus-within, :active, .is-dragging) .bl-ba__knob { transform: translate(-50%, -50%); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bl-theme-bukhara .bl-ba__label { padding: 5px 9px 4px; border-radius: var(--br); background: var(--bg); color: var(--ink); font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---- dividers: a hairline with the khatam star in the middle; the wave becomes a belt of small stars on a hairline (whole
   tiles only, so no star is cut at the edge); dots become small lozenges */
.bl-theme-bukhara .bl-div__in i { background: var(--bk-rule); }
.bl-theme-bukhara .bl-div--line .bl-div__in:not(:has(.bl-div__icon)) { position: relative; }
.bl-theme-bukhara .bl-div--line .bl-div__in:not(:has(.bl-div__icon)) i { -webkit-mask: linear-gradient(90deg, #000 calc(50% - 14px), transparent 0 calc(50% + 14px), #000 0); mask: linear-gradient(90deg, #000 calc(50% - 14px), transparent 0 calc(50% + 14px), #000 0); }
.bl-theme-bukhara .bl-div--line .bl-div__in:not(:has(.bl-div__icon))::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; translate: -50% -50%; background: var(--bk-frame); -webkit-mask: var(--bk-star-s) center / contain no-repeat; mask: var(--bk-star-s) center / contain no-repeat; }
.bl-theme-bukhara .bl-div--wave .bl-div__in i { position: relative; height: 9px; background: linear-gradient(var(--bk-rule) 0 0) center / 100% 1px no-repeat; -webkit-mask: none; mask: none; }
.bl-theme-bukhara .bl-div--wave .bl-div__in i::before { content: ""; position: absolute; inset: 0; background: var(--bk-frame); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 9'%3E%3Cpath d='M30 0L31.32 1.32H33.18V3.18L34.5 4.5L33.18 5.82V7.68H31.32L30 9L28.68 7.68H26.82V5.82L25.5 4.5L26.82 3.18V1.32H28.68Z'/%3E%3C/svg%3E") 0 50% / 60px 9px round no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 9'%3E%3Cpath d='M30 0L31.32 1.32H33.18V3.18L34.5 4.5L33.18 5.82V7.68H31.32L30 9L28.68 7.68H26.82V5.82L25.5 4.5L26.82 3.18V1.32H28.68Z'/%3E%3C/svg%3E") 0 50% / 60px 9px round no-repeat; }
.bl-theme-bukhara .bl-div__icon { color: var(--bk-frame); }
.bl-theme-bukhara .bl-div__in b { width: 5px; height: 5px; border-radius: 0; transform: rotate(45deg); background: var(--bk-frame); opacity: 1; }

/* ---- footer */
.bl-theme-bukhara .bl-foot { letter-spacing: .02em; }

/* ---- background photo: the hero sits on a plate of the page colour, headings and text get a backing, see-through buttons too */
.bl-theme-bukhara.bl-has-photo .bl-hero { padding: 24px 16px 22px; background: color-mix(in srgb, var(--bg) 86%, transparent); border-radius: var(--cr); }
.bl-theme-bukhara.bl-has-photo .bl-hero--side { padding-left: 18px; }
.bl-theme-bukhara.bl-has-photo :is(.bl-h, .bl-text) { padding: 6px 12px; background: color-mix(in srgb, var(--bg) 84%, transparent); border-radius: var(--br); }
.bl-theme-bukhara.bl-has-photo :is(.bl-btn[data-style="outline"], .bl-btn[data-style="soft"], .bl-social, .bl-chip) { background: color-mix(in srgb, var(--bg) 86%, transparent); }

/* ---- motion: the star opens, the frame draws itself out of it (without a photo: the star and its line open from the
   middle, or from the edge when the hero is aligned to a side), blocks settle; the live dot of an alert blinks softly */
@keyframes bl-bukhara-portal { 0% { clip-path: inset(0 50% calc(100% - 1px) 50%); } 38% { clip-path: inset(0 0 calc(100% - 1px) 0); } 100% { clip-path: inset(0); } }
@keyframes bl-bukhara-star { from { opacity: 0; clip-path: circle(0 at 50% 50%); } to { opacity: 1; clip-path: circle(75% at 50% 50%); } }
@keyframes bl-bukhara-open { from { clip-path: inset(0 50%); } to { clip-path: inset(0); } }
@keyframes bl-bukhara-open-l { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes bl-bukhara-open-r { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes bl-bukhara-live { 50% { opacity: .3; } }
@media (prefers-reduced-motion: no-preference) {
    .bl-theme-bukhara.bl-motion .bl-ava::after { animation: bl-bukhara-star .7s var(--ease) .1s both; }
    .bl-theme-bukhara.bl-motion .bl-ava::before { animation: bl-bukhara-portal 1.6s cubic-bezier(.6, 0, .3, 1) .45s both; }
    .bl-theme-bukhara.bl-motion .bl-hero--has-cover .bl-ava--hero::before { animation: none; }
    .bl-theme-bukhara.bl-motion .bl-hero:not(:has(.bl-ava--hero)) .bl-hero__name::before { animation: bl-bukhara-open 1.3s cubic-bezier(.6, 0, .3, 1) .15s both; }
    .bl-theme-bukhara.bl-motion :is(.bl-hero--side, .bl-hero.bl-ta--left):not(:has(.bl-ava--hero)) .bl-hero__name::before { animation-name: bl-bukhara-open-l; }
    .bl-theme-bukhara.bl-motion .bl-hero.bl-ta--right:not(:has(.bl-ava--hero)) .bl-hero__name::before { animation-name: bl-bukhara-open-r; }
    .bl-js .bl-theme-bukhara.bl-motion [data-reveal] { transform: translateY(10px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
    .bl-theme-bukhara .bl-alert .bl-alert__dot { animation: bl-bukhara-live 1.6s steps(1, end) infinite !important; }
}


/* ============================================================== background photo */
/* the owner's background photo replaces the theme's background decor (the overlay keeps the page readable) */
.bl-theme-bukhara.bl-has-photo .bl-bg { background: var(--bg-image) center / cover no-repeat, var(--bg); }
.bl-theme-bukhara.bl-has-photo .bl-bg::before, .bl-theme-bukhara.bl-has-photo .bl-bg i { display: none; }
.bl-theme-bukhara.bl-has-photo .bl-bg::after { all: unset; content: ""; position: absolute; inset: 0; background: var(--bg); opacity: var(--bg-overlay, .3); }
