/* Liv v60 interactive components — loaded only on pages that use them. */

/* Icon button (Liv / Button / Icon) */
.liv-icon-btn { display: inline-grid; place-items: center; inline-size: 48px; block-size: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--wp--preset--color--divider); color: var(--wp--preset--color--ink); cursor: pointer; transition: background-color .15s; }
.liv-icon-btn:hover { background: var(--wp--preset--color--border-subtle); }
.liv-icon-btn:focus-visible { outline: 0; background: var(--wp--preset--color--surface); box-shadow: inset 0 0 0 2px var(--wp--preset--color--focus); }
.liv-icon-btn:disabled { background: #EEF1F4; color: var(--wp--preset--color--border); cursor: default; }
[dir="rtl"] .liv-icon-btn svg { transform: scaleX(-1); }

/* Slider (Liv / Navigation / Slider Controls) */
.liv-slider__track { display: flex !important; flex-wrap: nowrap !important; gap: var(--wp--preset--spacing--16) !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-block-end: 4px; }
.liv-slider__track::-webkit-scrollbar { display: none; }
.liv-slider__track > * { flex: 0 0 min(85%, 320px) !important; scroll-snap-align: start; margin: 0 !important; }
.liv-slider__controls { display: flex; gap: var(--wp--preset--spacing--8); justify-content: flex-end; margin-block-start: var(--wp--preset--spacing--12); }
@media (prefers-reduced-motion: reduce) { .liv-slider__track { scroll-behavior: auto; } }

/* Carousel (hero slider: one slide per view, dots pill rgba(8,33,51,.5), dot 6px / active 18px) */
.liv-carousel { position: relative; }
/* Sideways only: a slide's part that reaches below it (the turning medal's stage on phones) made the slides scroll
   up and down inside the page, so on a phone the first screen caught the swipe and the page did not go down (owner
   2026-11-24). */
.is-style-carousel { display: flex !important; flex-wrap: nowrap !important; gap: 0 !important; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.is-style-carousel::-webkit-scrollbar { display: none; }
.is-style-carousel > * { flex: 0 0 100% !important; scroll-snap-align: start; scroll-snap-stop: always; margin: 0 !important; max-inline-size: none !important; }
.is-style-carousel:focus-visible { outline: 2px solid var(--wp--preset--color--focus); outline-offset: 2px; }
.liv-carousel__dots { position: absolute; inset-inline-end: 16px; inset-block-end: 16px; z-index: 2; display: flex; align-items: center; gap: 2px; padding: 0 6px; background: rgb(8 33 51 / 0.5); border-radius: 999px; }
.liv-carousel__dot, .liv-carousel__toggle { display: grid; place-items: center; inline-size: 14px; block-size: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.liv-carousel__dot::before { content: ""; inline-size: 6px; block-size: 6px; border-radius: 3px; background: #FFFFFF; opacity: 0.6; transition: inline-size 0.2s, opacity 0.2s; }
.liv-carousel__dot[aria-current="true"] { inline-size: 26px; }
.liv-carousel__dot[aria-current="true"]::before { inline-size: 18px; opacity: 1; }
.liv-carousel__dot:hover::before { opacity: 1; }
.liv-carousel__toggle { inline-size: 24px; color: #FFFFFF; }
.liv-carousel__toggle svg { inline-size: 12px; block-size: 12px; }
:is(.liv-carousel__dot, .liv-carousel__toggle):focus-visible { outline: 2px solid #FFFFFF; outline-offset: -2px; border-radius: 6px; }

/* Tabs (Liv / Navigation / Tab) */
.liv-tabs__list { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--8); margin-block-end: var(--wp--preset--spacing--16); }
.liv-tab, .liv-section-tabs a { display: inline-flex; align-items: center; min-block-size: var(--wp--custom--touch); padding: 0 var(--wp--preset--spacing--16); border: 0; border-radius: var(--wp--custom--radius--control); background: var(--wp--preset--color--surface-tint); color: var(--wp--preset--color--ink); font: inherit; font-size: var(--wp--preset--font-size--small); font-weight: var(--liv-fw-label, 600); -webkit-text-stroke-width: var(--liv-ts-label, 0); text-decoration: none; white-space: nowrap; cursor: pointer; }
.liv-tab:hover, .liv-section-tabs a:hover { background: var(--wp--preset--color--surface-tint-hover); }
.liv-tab[aria-selected="true"], .liv-section-tabs a[aria-current] { background: var(--wp--preset--color--action); color: var(--wp--preset--color--surface); }
.liv-tab:focus-visible, .liv-section-tabs a:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--wp--preset--color--focus); }
.is-style-tabs > [role="tabpanel"] { margin-block-start: 0 !important; }

/* Section tabs (Website Pages · "On this page"): white card, title, pill tabs in a scroll row.
   Sticky, but late: the sticky offset is pulled up by --liv-tabs-shift (padding-top + title + gap − 12px),
   so the card keeps scrolling until only the tab row is left under the top edge (or under the sticky
   header, --liv-sticky-top). Nothing is clipped or moved, so nothing shows through and nothing jumps. */
.liv-section-tabs { --liv-tabs-shift: 53px; position: sticky; inset-block-start: calc(var(--liv-bar, var(--wp-admin--admin-bar--height, 0px)) + var(--liv-sticky-top, 0px) - var(--liv-tabs-shift)); z-index: 50; display: flex; flex-direction: column; gap: 12px; margin-block: var(--wp--preset--spacing--16); padding: 32px; background: var(--wp--preset--color--surface); border-radius: var(--wp--custom--radius--card); }
.liv-section-tabs.is-stuck { border-start-start-radius: 0; border-start-end-radius: 0; box-shadow: 0 12px 20px -14px rgb(23 59 77 / 0.28); }
.liv-section-tabs__title { margin: 0; font-size: var(--wp--preset--font-size--small); line-height: 1.5; letter-spacing: 0.04em; text-transform: uppercase; color: var(--wp--preset--color--text-secondary); }
.liv-section-tabs ul { display: flex; gap: var(--wp--preset--spacing--8); margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.liv-section-tabs ul::-webkit-scrollbar { display: none; }
.liv-section-tabs a { min-block-size: 48px; background: var(--wp--preset--color--divider); font-weight: 400; -webkit-text-stroke-width: 0; }
.liv-section-tabs a:hover { background: var(--wp--preset--color--border-subtle); }
.liv-section-tabs a[aria-current] { background: var(--wp--preset--color--action); color: var(--wp--preset--color--surface); }
@media (max-width: 1023.98px) { .liv-section-tabs { --liv-tabs-shift: 45px; padding: 24px; } }
@media (max-width: 767.98px) { .liv-section-tabs { --liv-tabs-shift: 37px; padding: 16px; } }
/* More tabs than fit: the row fades out over its last 56px at the side that has more tabs (classes set by
   interactive.js while the row can be moved that way), so no tab looks cut at the edge. */
.liv-section-tabs ul.is-cut-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.liv-section-tabs ul.is-cut-start { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px); mask-image: linear-gradient(to right, transparent, #000 56px); }
.liv-section-tabs ul.is-cut-start.is-cut-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
[dir="rtl"] .liv-section-tabs ul.is-cut-end { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent); }
[dir="rtl"] .liv-section-tabs ul.is-cut-start { -webkit-mask-image: linear-gradient(to left, transparent, #000 56px); mask-image: linear-gradient(to left, transparent, #000 56px); }
[dir="rtl"] .liv-section-tabs ul.is-cut-start.is-cut-end { -webkit-mask-image: linear-gradient(to left, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to left, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
/* Without the title line the row sits 21px + 12px higher in the card. */
.liv-section-tabs.is-untitled { --liv-tabs-shift: 20px; }
@media (max-width: 1023.98px) { .liv-section-tabs.is-untitled { --liv-tabs-shift: 12px; } }
@media (max-width: 767.98px) { .liv-section-tabs.is-untitled { --liv-tabs-shift: 4px; } }
:where(.liv-main) h2[id] { scroll-margin-block-start: 170px; }

/* Select (Liv / Overlay / Select Trigger + Option) */
.liv-select { display: grid; gap: var(--wp--preset--spacing--4); }
.liv-select__label { font-size: var(--wp--preset--font-size--small); font-weight: var(--liv-fw-label, 600); -webkit-text-stroke-width: var(--liv-ts-label, 0); color: var(--wp--preset--color--ink); }
.liv-select__trigger { display: none; }
.liv-select.is-enhanced select { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.liv-select.is-enhanced .liv-select__trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; inline-size: 100%; min-block-size: var(--wp--custom--field--select-sheet); padding: 0 var(--wp--custom--field--padding-x); border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--control); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); font: inherit; text-align: start; cursor: pointer; }
.liv-select__trigger:hover { border-color: var(--wp--preset--color--ink); }
.liv-select__trigger:focus-visible { outline: 0; border-color: var(--wp--preset--color--focus); box-shadow: 0 0 0 1px var(--wp--preset--color--focus); }
.liv-select__trigger.is-filled { background: var(--wp--preset--color--action); border-color: var(--wp--preset--color--action); color: var(--wp--preset--color--surface); }
.liv-select__trigger svg { flex: none; inline-size: 18px; block-size: 18px; }
.liv-select__sheet { display: grid; gap: 8px; }
.liv-select__title { margin: 0 0 8px; padding-inline-end: 48px; font-weight: 700; -webkit-text-stroke-width: 0; color: var(--wp--preset--color--ink); }
.liv-select__option { display: flex; align-items: center; min-block-size: var(--wp--custom--field--height); padding: 0 var(--wp--custom--field--padding-x); border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--control); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); font: inherit; text-align: start; cursor: pointer; }
.liv-select__option:hover { background: var(--wp--preset--color--surface-subtle); }
.liv-select__option[aria-selected="true"] { background: var(--wp--preset--color--action); border-color: var(--wp--preset--color--action); color: var(--wp--preset--color--surface); }
.liv-select__option:disabled { background: var(--wp--preset--color--surface-subtle); color: var(--wp--preset--color--text-secondary); cursor: default; }

/* Filter chip (Liv / Navigation / Filter): 172 x 48, radius 10, padding 0 16, gap 12, label 14/500 */
.liv-select.is-chip { display: inline-grid; }
.liv-select.is-chip .liv-select__label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.liv-select.is-chip.is-enhanced .liv-select__trigger { inline-size: auto; min-inline-size: 172px; min-block-size: var(--wp--custom--field--height); padding: 0 var(--wp--preset--spacing--16); border: 2px solid transparent; background: var(--wp--preset--color--surface-tint); font-size: var(--wp--preset--font-size--small); font-weight: 500; -webkit-text-stroke-width: 0; line-height: 1.5; }
.liv-select.is-chip .liv-select__trigger:hover { background: var(--wp--preset--color--surface-tint-hover); border-color: transparent; }
.liv-select.is-chip .liv-select__trigger:focus-visible { background: var(--wp--preset--color--surface); border-color: var(--wp--preset--color--focus); box-shadow: none; }
.liv-select.is-chip .liv-select__trigger.is-filled { background: var(--wp--preset--color--action); border-color: var(--wp--preset--color--action); color: var(--wp--preset--color--surface); }
.liv-select.is-chip .liv-select__trigger svg { inline-size: 16px; block-size: 16px; }
.liv-filters { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--8); }

/* Dialog (sheet on mobile, centered on larger screens) */
.liv-dialog { inline-size: min(100% - 32px, 560px); max-block-size: min(85vh, 720px); padding: 0; border: 0; border-radius: var(--wp--custom--radius--card); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--text-secondary); }
.liv-dialog::backdrop { background: rgb(0 130 185 / .55); }
.liv-dialog__panel { position: relative; padding: var(--wp--preset--spacing--24); overflow: auto; max-block-size: inherit; }
.liv-dialog__close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; }
@media (max-width: 599.98px) {
	.liv-dialog--sheet { margin: auto 0 0; inline-size: 100%; max-inline-size: 100%; border-end-start-radius: 0; border-end-end-radius: 0; }
}
.liv-dialog--video { inline-size: min(100% - 32px, 960px); background: #000; }
.liv-dialog--video .liv-dialog__panel { padding: 0; }
.liv-dialog--video .liv-dialog__close { z-index: 1; background: rgb(255 255 255 / .9); }
/* Picture dialog: the picture whole, as large as the window allows. */
.liv-dialog--zoom { inline-size: fit-content; max-inline-size: calc(100% - 32px); max-block-size: calc(100vh - 32px); background: var(--wp--preset--color--surface); }
.liv-dialog--zoom .liv-dialog__panel { padding: 0; overflow: hidden; }
.liv-dialog--zoom .liv-dialog__close { z-index: 1; background: rgb(255 255 255 / .9); }
.liv-zoom__frame img { display: block; max-inline-size: 100%; max-block-size: calc(100vh - 32px); inline-size: auto; block-size: auto; }
.liv-video__frame { aspect-ratio: 16 / 9; }
/* An upright film (a YouTube short): the window is upright, as high as the screen allows, 420px wide at most. */
/* An upright film: as high as the window allows, and nothing to scroll (the window was cut at 85% of the screen,
   under the film's height, so a scroll bar stood beside it; owner 2026-11-19: "popup'ta scroll olmasın"). */
.liv-dialog--video.is-portrait { inline-size: min(100% - 32px, 420px, calc((100dvh - 64px) * 9 / 16)); max-block-size: calc(100dvh - 32px); overflow: hidden; }
.liv-dialog--video.is-portrait .liv-dialog__panel { max-block-size: none; overflow: hidden; }
.liv-dialog--video.is-portrait .liv-video__frame { aspect-ratio: 9 / 16; }
.liv-video__frame iframe { display: block; inline-size: 100%; block-size: 100%; border: 0; }

/* Media dialog card (Liv / Pattern / Media Dialog) */
.liv-video { display: flex; flex-direction: column; gap: 12px; }
/* Video Embed: 16:9 poster on Surface / Subtle, radius 16, 64px white play button, optional condition chip */
.liv-video__open { position: relative; display: block; border-radius: var(--wp--custom--radius--card); overflow: hidden; background: var(--wp--preset--color--surface-subtle); aspect-ratio: 16 / 9; }
.liv-video__open img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.liv-video__play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; inline-size: 64px; block-size: 64px; border-radius: 50%; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); }
.liv-video__chip { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; min-block-size: 36px; padding: 6px 14px; border-radius: 999px; background: var(--wp--preset--color--surface-tint); color: var(--wp--preset--color--ink); font-size: var(--wp--preset--font-size--small); font-weight: 500; -webkit-text-stroke-width: 0; line-height: 1.5; }
.liv-video__open:hover .liv-video__play { background: var(--wp--preset--color--action); color: var(--wp--preset--color--surface); }
.liv-video__title { margin: 0; font-size: var(--wp--preset--font-size--card-title); font-weight: 600; -webkit-text-stroke-width: 0; line-height: 1.35; color: var(--wp--preset--color--ink); }

/* Page dots (slider with class liv-dots): 6px dots #9AA9B8, active 18px #0082B9, gap 6 */
.liv-slider__controls.is-dots { justify-content: flex-start; gap: 0; }
.liv-dot { display: grid; place-items: center; inline-size: 12px; block-size: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.liv-dot::before { content: ""; inline-size: 6px; block-size: 6px; border-radius: 3px; background: var(--wp--preset--color--border); transition: inline-size 0.2s, background 0.2s; }
.liv-dot[aria-current="true"] { inline-size: 24px; }
.liv-dot[aria-current="true"]::before { inline-size: 18px; background: var(--wp--preset--color--action); }
.liv-dot:focus-visible { outline: var(--wp--custom--focus-ring); outline-offset: 0; border-radius: 4px; }

.liv-video__frame video { display: block; inline-size: 100%; block-size: 100%; background: #000; object-fit: contain; }

/* Arrows on the row of the button that follows a rail ("Explore all …"): button at the inline start, arrows at the inline end. */
.liv-slider__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--wp--preset--spacing--16); }
.liv-slider__bar > .wp-block-buttons { margin: 0 !important; }
.liv-slider__bar > .liv-slider__controls { flex: none; margin: 0; margin-inline-start: auto; }
