/* Treniraj z Barbaro – WordPress layer on top of the Čisto handoff (tokens.css + components.css).
   Only things the handoff didn't cover: container, mobile menu, CF7 markup, full price table, prose. */

/* ---------- Container: 1280 max ---------- */
.tb-header, .tb-footer { padding-left: max(var(--space-6), calc((100% - 1280px) / 2 + var(--space-6))); padding-right: max(var(--space-6), calc((100% - 1280px) / 2 + var(--space-6))); }
.tb-section > *, .tb-hero > * { max-width: calc(1280px - 2 * var(--space-6)); margin-left: auto; margin-right: auto; }
.tb-hero__text { max-width: 760px; }
.tb-trust-wrap, .tb-rental-wrap { padding: 0 var(--space-6); }
.tb-trust-wrap > .tb-trust, .tb-rental-wrap > .tb-rental { max-width: calc(1280px - 2 * var(--space-6)); margin: 0 auto; }
.tb-rental-wrap { padding-bottom: var(--space-9); }
.tb-rental__title { font-size: calc(var(--tb-h3) + 6px); }
@media (max-width: 760px) {
  .tb-header, .tb-footer { padding-left: var(--space-4); padding-right: var(--space-4); }
  .tb-trust-wrap, .tb-rental-wrap { padding: 0 var(--space-4); }
  .tb-rental-wrap { padding-bottom: var(--space-8); }
}

/* ---------- Skip link ---------- */
.tb-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--action); color: var(--on-action); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); }
.tb-skip:focus { left: var(--space-4); top: var(--space-4); }

/* ---------- Header: menu container + mobile menu ---------- */
.tb-header { position: relative; }
.tb-header nav { margin-left: auto; }
.tb-nav .current-menu-item > a { color: var(--brand-text); }
.tb-burger { cursor: pointer; }
.tb-burger:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 760px) {
  .tb-header.is-open .tb-nav { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card); padding: var(--space-2) var(--space-4) var(--space-4); }
  .tb-header.is-open .tb-nav a { display: block; padding: var(--space-3) 0; min-height: 44px; font-size: 17px; border-bottom: 1px solid var(--line); }
}

/* ---------- Sticky bar: fixed, always visible on mobile ---------- */
@media (max-width: 760px) {
  .tb-sticky { position: fixed; left: 0; right: 0; bottom: 0; }
  body.tb { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ---------- Contact + map ---------- */
.tb-contact { grid-template-columns: 1.2fr 1fr; }
.tb-map--live { width: 100%; border: 0; padding: 0; display: block; min-height: 320px; border-style: solid; }
.tb-map-wrap .tb-small { margin: var(--space-3) 0 0; }
@media (max-width: 760px) { .tb-contact { grid-template-columns: 1fr; } }

/* ---------- Contact Form 7 → Čisto markup ---------- */
.tb-form .hidden-fields-container { display: none; }
.tb-form .wpcf7-form-control-wrap { display: block; font-weight: 400; font-size: inherit; }
.tb-field > .wpcf7-form-control-wrap { font-size: 16px; }
.tb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* chips */
.tb-chips .wpcf7-form-control-wrap { display: contents; }
.tb-chips .wpcf7-radio { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tb-chips .wpcf7-list-item { margin: 0; position: relative; }
.tb-chips .wpcf7-list-item label { display: block; cursor: pointer; }
.tb-chips .wpcf7-list-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tb-chips .wpcf7-list-item-label { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-size: 14px; color: var(--ink); background: var(--surface); transition: background-color .15s, color .15s, border-color .15s; }
.tb-chips .wpcf7-list-item input:checked + .wpcf7-list-item-label { background: var(--action); border-color: var(--action); color: var(--on-action); }
.tb-chips .wpcf7-list-item input:focus-visible + .wpcf7-list-item-label { outline: 2px solid var(--focus); outline-offset: 2px; }
/* consent */
.tb-check .wpcf7-list-item { margin: 0; }
.tb-check .wpcf7-list-item label { display: flex; gap: var(--space-3); align-items: flex-start; cursor: pointer; }
.tb-check input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; accent-color: var(--action); }
/* errors + responses */
.tb-form .wpcf7-not-valid { border-color: var(--danger) !important; border-width: 2px !important; }
.tb-form .wpcf7-not-valid-tip { display: block; margin-top: 4px; font-size: 13px; color: var(--danger); font-weight: 600; }
.tb-form .wpcf7-response-output { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: 14px; border: 1px solid var(--line-strong); }
.tb-form .wpcf7-response-output:empty { display: none; }
.tb-form.invalid .wpcf7-response-output, .tb-form.failed .wpcf7-response-output, .tb-form.spam .wpcf7-response-output { border-color: var(--danger); color: var(--danger); }
.tb-form.sent .wpcf7-response-output { border-color: var(--success); color: var(--success); }
.tb-form .wpcf7-spinner { display: none; }
.tb-form.submitting .tb-btn--primary { opacity: .7; pointer-events: none; }
.screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Full price list (/cenik/) ---------- */
.tb-plist { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--space-7) var(--space-8); }
.tb-plist__group .tb-h3 { margin-bottom: var(--space-3); }
.tb-plist__group .tb-small { margin: var(--space-3) 0 0; }
.tb-ptable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tb-ptable th, .tb-ptable td { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tb-ptable th { text-align: left; font-weight: 500; padding-right: var(--space-4); }
.tb-ptable th span { display: block; font-size: 13px; font-weight: 400; color: var(--ink-muted); }
.tb-ptable td { text-align: right; font-weight: 600; white-space: nowrap; }
.tb-ptable td small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-muted); }
.tb-plist__foot { margin-top: var(--space-7); max-width: 52em; }
@media (max-width: 760px) { .tb-plist { grid-template-columns: 1fr; } }

/* ---------- Sub-page head ---------- */
.tb-pagehead { padding-bottom: 0; }
.tb-pagehead + .tb-section:not(.tb-section--band) { padding-top: var(--space-7); }

/* ---------- Prose (legal pages, blog, long bio) ---------- */
.tb-content > :is(p, h2, h3, h4, ul, ol, figure, table, hr, .wp-block-group) { max-width: 760px; margin-left: max(0px, calc((100% - 1280px) / 2)); margin-right: auto; padding-left: var(--space-6); padding-right: var(--space-6); box-sizing: content-box; }
.tb-content > :is(p, ul, ol, table):last-child { margin-bottom: var(--space-9); }
.tb-content > h2, .tb-prose h2 { font-size: 24px; line-height: 1.3; font-weight: 600; margin-top: var(--space-7); margin-bottom: var(--space-3); }
.tb-content > h3, .tb-prose h3 { font-size: 19px; font-weight: 600; margin-top: var(--space-6); margin-bottom: var(--space-2); }
.tb-content > :is(ul, ol) { padding-left: calc(var(--space-6) + 1.2em); }
.tb-prose { max-width: 760px; margin-left: auto; margin-right: auto; }
.tb-prose .tb-h1 { margin-bottom: var(--space-6); }
.tb-prose img { max-width: 100%; height: auto; border-radius: var(--tb-r-media); }
.tb-prose__media { margin: 0 0 var(--space-6); }
.tb-about__body { margin-top: var(--space-8); }
.tb-about__body p { color: var(--ink); }
.tb-content a:not([class]), .tb-prose a:not([class]) { color: var(--brand-text); text-underline-offset: 3px; }
@media (max-width: 760px) {
  .tb-content > :is(p, h2, h3, h4, ul, ol, figure, table, hr, .wp-block-group) { padding-left: var(--space-4); padding-right: var(--space-4); }
}

/* ---------- Blog cards ---------- */
.tb-card .tb-h3 a:hover { color: var(--brand-text) !important; }
.nav-links { display: flex; gap: var(--space-3); margin-top: var(--space-6); }

/* ---------- Complianz cookie banner → Čisto ---------- */
body.tb .cmplz-cookiebanner, body.tb #cmplz-manage-consent .cmplz-manage-consent {
  --cmplz_banner_background_color: var(--bg);
  --cmplz_banner_border_color: var(--line);
  --cmplz_banner_border_radius: var(--radius-lg);
  --cmplz_banner_border_width: 1px;
  --cmplz_text_color: var(--ink-muted);
  --cmplz_hyperlink_color: var(--brand-text);
  --cmplz_text_font_size: 14px;
  --cmplz_title_font_size: 16px;
  --cmplz_link_font_size: 13px;
  --cmplz_category_body_font_size: 13px;
  --cmplz_category_header_title_font_size: 15px;
  --cmplz_category_header_active_font_size: 13px;
  --cmplz_category_header_always_active_color: var(--success);
  --cmplz_button_font_size: 15px;
  --cmplz_button_border_radius: var(--radius-pill);
  --cmplz_button_accept_background_color: var(--action);
  --cmplz_button_accept_border_color: var(--action);
  --cmplz_button_accept_text_color: var(--on-action);
  --cmplz_button_deny_background_color: transparent;
  --cmplz_button_deny_border_color: var(--line-strong);
  --cmplz_button_deny_text_color: var(--ink);
  --cmplz_button_settings_background_color: transparent;
  --cmplz_button_settings_border_color: transparent;
  --cmplz_button_settings_text_color: var(--brand-text);
  --cmplz_slider_active_color: var(--action);
  --cmplz_slider_inactive_color: var(--line-strong);
  --cmplz_slider_bullet_color: var(--bg);
}
body.tb .cmplz-cookiebanner { font-family: var(--tb-body); box-shadow: var(--shadow-card); border: 1px solid var(--line); }
body.tb .cmplz-cookiebanner * { font-family: var(--tb-body); }
body.tb .cmplz-cookiebanner .cmplz-title { color: var(--ink); font-weight: 600; }
body.tb .cmplz-cookiebanner .cmplz-message { line-height: 1.55; }
/* Layout: single-column floating card (replaces Complianz' 3-column bottom bar) */
body.tb .cmplz-cookiebanner.cmplz-bottom, body.tb .cmplz-cookiebanner.cmplz-bottom-left, body.tb .cmplz-cookiebanner.cmplz-bottom-right, body.tb .cmplz-cookiebanner.cmplz-center {
  left: auto !important; right: var(--space-5) !important; top: auto !important; bottom: var(--space-5) !important; transform: none !important;
  width: min(440px, calc(100% - 2 * var(--space-5))) !important; max-width: none !important; margin: 0 !important;
  grid-template-columns: 1fr !important; gap: var(--space-3) !important; padding: var(--space-5) !important;
}
body.tb .cmplz-cookiebanner > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
body.tb .cmplz-cookiebanner .cmplz-divider { display: none !important; }
body.tb .cmplz-cookiebanner .cmplz-header { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
body.tb .cmplz-cookiebanner .cmplz-body { max-height: 46vh; overflow-y: auto; }
body.tb .cmplz-cookiebanner .cmplz-message p { margin: 0; }
body.tb .cmplz-cookiebanner .cmplz-buttons { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: var(--space-2); }
body.tb .cmplz-cookiebanner .cmplz-body { display: flex !important; flex-direction: column !important; gap: var(--space-3); }
body.tb .cmplz-cookiebanner .cmplz-categories { width: 100%; margin: 0 !important; }
body.tb .cmplz-cookiebanner .cmplz-category { margin-bottom: var(--space-2); }
body.tb .cmplz-cookiebanner .cmplz-buttons .cmplz-btn { flex: 1 1 140px; width: auto !important; margin: 0 !important; }
body.tb .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences, body.tb .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences { flex: 1 1 100%; min-height: 40px; height: 40px; }
body.tb .cmplz-cookiebanner .cmplz-links, body.tb .cmplz-cookiebanner .cmplz-documents { justify-content: flex-start !important; }
body.tb .cmplz-cookiebanner .cmplz-btn { height: 48px; min-height: 48px; padding: 0 var(--space-5); border-width: 1px; border-style: solid; font-weight: 600; line-height: 1; white-space: nowrap; text-align: center; transition: background-color .15s, color .15s, border-color .15s; }
body.tb .cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover { background: var(--brand-text); border-color: var(--brand-text); }
body.tb .cmplz-cookiebanner .cmplz-btn.cmplz-deny:hover { border-color: var(--ink); }
body.tb .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences, body.tb .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences { text-decoration: underline; text-underline-offset: 4px; }
body.tb .cmplz-cookiebanner .cmplz-btn:focus-visible, body.tb .cmplz-cookiebanner a:focus-visible, body.tb .cmplz-cookiebanner .cmplz-close:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
body.tb .cmplz-cookiebanner .cmplz-links a { text-underline-offset: 3px; }
body.tb .cmplz-cookiebanner .cmplz-close { color: var(--ink-muted); border: 0; background: none; width: 44px; height: 44px; display: grid; place-items: center; margin: -10px -10px -10px 0; cursor: pointer; }
body.tb .cmplz-cookiebanner .cmplz-title { text-align: left; }
body.tb .cmplz-cookiebanner .cmplz-category { background: var(--surface); border-radius: var(--radius-md); }
/* "Upravljanje soglasja" tab */
body.tb #cmplz-manage-consent .cmplz-manage-consent { font-family: var(--tb-body); font-size: 13px; background: var(--surface); color: var(--ink-muted); border: 1px solid var(--line); border-radius: var(--radius-md) var(--radius-md) 0 0; box-shadow: none; }
@media (max-width: 760px) {
  body.tb .cmplz-cookiebanner.cmplz-bottom, body.tb .cmplz-cookiebanner.cmplz-bottom-left, body.tb .cmplz-cookiebanner.cmplz-bottom-right, body.tb .cmplz-cookiebanner.cmplz-center {
    left: var(--space-3) !important; right: var(--space-3) !important; width: auto !important; bottom: calc(80px + env(safe-area-inset-bottom)) !important; padding: var(--space-4) !important;
  }
  body.tb #cmplz-manage-consent .cmplz-manage-consent { display: none; } /* footer has "Nastavitve piškotkov" */
}

/* ---------- Editor-only note ---------- */
.tb-editor-note { padding: var(--space-4); margin: var(--space-4); border: 1px dashed var(--line-strong); border-radius: var(--radius-md); color: var(--ink-muted); font-size: 14px; background: var(--surface); }

/* ---------- Fixes after visual QA ---------- */
.tb-card .tb-btn--ghost { align-self: flex-start; }
.tb-sched caption { caption-side: bottom; text-align: left; padding-top: var(--space-4); }
.tb-nav .current-menu-item > a[href*="#"] { color: var(--ink); }
.tb-nav .current-menu-item > a[href*="#"]:hover { color: var(--brand-text); }
.tb-section--band + .tb-section--band { padding-top: 0; }
.tb-field textarea { min-height: 112px; height: 132px; }
.tb-thanks { margin: 0 auto; }
.tb-hero__media img, .tb-about img { height: auto; }
body.tb .cmplz-cookiebanner .cmplz-message, body.tb .cmplz-cookiebanner .cmplz-categories { width: 100% !important; max-width: none !important; flex: 0 0 auto !important; }
body.tb .cmplz-cookiebanner .cmplz-body { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; padding-right: var(--space-2); }
body.tb .cmplz-cookiebanner .cmplz-body::-webkit-scrollbar { width: 6px; }
body.tb .cmplz-cookiebanner .cmplz-body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
body.tb .cmplz-cookiebanner .cmplz-category summary, body.tb .cmplz-cookiebanner .cmplz-category-header { color: var(--ink); }
body.tb .cmplz-cookiebanner .cmplz-always-active { color: var(--success); }

/* ---------- Gallery (swipe strip, no autoplay) ---------- */
.tb-gallery { --tbg-gap: var(--space-5); --tbg-h: 460px; display: flex; flex-wrap: nowrap; gap: var(--tbg-gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: 0; scrollbar-width: none; padding-bottom: var(--space-2); }
.tb-gallery::-webkit-scrollbar { display: none; }
.tb-gallery:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--tb-r-media); }
.tb-gallery__item { margin: 0; scroll-snap-align: start; flex: 0 0 auto; }
.tb-gallery__item img { display: block; height: var(--tbg-h); width: auto; max-width: min(86vw, 820px); object-fit: cover; border-radius: var(--tb-r-media); background: var(--surface-2); }
.tb-gallery__nav { display: flex; gap: var(--space-2); align-self: end; }
.tb-gallery__nav[hidden] { display: none; }
.tb-gallery__btn { width: 48px; height: 48px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; transition: border-color .15s, color .15s, opacity .15s; }
.tb-gallery__btn:hover { border-color: var(--ink); }
.tb-gallery__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tb-gallery__btn:disabled { opacity: .35; cursor: default; border-color: var(--line-strong); }
.tb-gallery-section .tb-section__head { flex-wrap: nowrap; }
@media (max-width: 760px) {
  .tb-gallery { --tbg-gap: var(--space-3); --tbg-h: 340px; margin-right: calc(-1 * var(--space-4)); padding-right: var(--space-4); }
  .tb-gallery__nav { display: none !important; }
}

/* Trust strip on mobile: one item per row, number beside its text */
@media (max-width: 760px) {
  .tb-trust { grid-template-columns: 1fr; gap: 0; padding: var(--space-2) var(--space-5); }
  .tb-trust li { flex-direction: row; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; }
  .tb-trust li + li { border-top: 1px solid var(--line); }
  .tb-trust strong { flex: 0 0 2.2ch; font-size: 28px; }
  .tb-trust span { font-size: 15px; line-height: 1.4; }
}

/* ---------- Schedule: legend, intro, morning/afternoon split ---------- */
.tb-section > .tb-sched-intro, .tb-section > .tb-sched-legend, .tb-section > .tb-classes__intro { max-width: calc(1280px - 2 * var(--space-6)); margin-left: auto; margin-right: auto; }
.tb-sched-intro { margin-top: 0; margin-bottom: var(--space-4); color: var(--ink-muted); }
.tb-sched-legend { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); align-items: center; margin: 0 0 var(--space-5); font-size: 14px; color: var(--ink-muted); }
.tb-sched-legend > span { display: inline-flex; align-items: center; gap: var(--space-2); }
.tb-sched thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; padding-top: 0; }
.tb-sched--split { table-layout: fixed; }
.tb-sched--split th:first-child { width: 130px; }
.tb-sched--split thead th + th { width: auto; }
.tb-sched--split td { display: table-cell; }
.tb-sched--split td > .tb-slot { margin: 0 var(--space-2) var(--space-2) 0; }
.tb-sched--split tbody td + td { border-left: 1px solid var(--line); padding-left: var(--space-4); }
.tb-sched-none { color: var(--line-strong); }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .tb-sched tbody tr:hover th, .tb-sched tbody tr:hover td { background: color-mix(in srgb, var(--surface) 60%, transparent); }
}
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
  .tb-sched thead { display: none; }
  .tb-sched--split td { display: block; width: auto; padding: var(--space-2) var(--space-3); }
  .tb-sched--split tbody td + td { border-left: 0; padding-left: var(--space-3); }
  .tb-sched--split td::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; margin-bottom: var(--space-2); }
}

/* ---------- Classes cards ---------- */
.tb-classes__intro { margin-top: calc(-1 * var(--space-5)); margin-bottom: var(--space-6); }
.tb-classes__when { font-weight: 600; color: var(--brand-text); font-size: 15px; }
.tb-card--featured .tb-price small { color: var(--on-accent); opacity: .8; }

/* ---------- Hero: split layout (desktop) ---------- */
@media (min-width: 761px) {
  .tb-hero--split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: calc(var(--space-8) + var(--space-5)); align-items: center; text-align: left; justify-items: stretch;
    padding: var(--space-7) max(var(--space-6), calc((100% - 1280px) / 2 + var(--space-6))) var(--space-8); }
  .tb-hero--split > * { max-width: none; margin: 0; }
  .tb-hero--split .tb-hero__text { max-width: 600px; width: 100%; }
  .tb-hero--split .tb-h1 { font-size: clamp(44px, 4.6vw, 64px); }
  .tb-hero--split .tb-lead { margin-left: 0; }
  .tb-hero--split .tb-row { justify-content: flex-start; }
  .tb-hero--split .tb-hero__media { position: relative; align-self: stretch; }
  .tb-hero--split .tb-hero__media > img { width: 100%; height: 100%; min-height: 520px; max-height: min(760px, calc(100vh - 150px)); aspect-ratio: auto; object-fit: cover; object-position: 50% 40%; border-radius: var(--tb-r-media); }
  .tb-hero__inset { position: absolute; left: calc(-1 * var(--space-7)); bottom: var(--space-6); width: clamp(150px, 15vw, 230px); border: 6px solid var(--bg); border-radius: calc(var(--tb-r-media) + 6px); background: var(--bg); overflow: hidden; }
  .tb-hero__inset img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--tb-r-media); }
}
@media (max-width: 760px) {
  .tb-hero--split .tb-hero__media img { aspect-ratio: 4 / 3; object-position: 50% 18%; }
  .tb-hero__inset { display: none; }
}

/* Classes cards: summary card left + named classes in 2 columns (no thin 5-up row) */
@media (min-width: 761px) {
  .tb-classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-classes:has(> .tb-card--featured) { grid-template-columns: minmax(0, 0.9fr) repeat(2, minmax(0, 1fr)); }
  .tb-classes > .tb-card--featured { grid-row: span 2; justify-content: flex-start; }
  .tb-classes > .tb-card--featured .tb-price { font-size: 56px; margin-top: var(--space-5); }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .tb-classes:has(> .tb-card--featured) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-classes > .tb-card--featured { grid-column: 1 / -1; grid-row: auto; }
}

/* =====================================================================
   Contrast system (v1.3): two tones – WHITE and SAND.
   Things that sit ON white get sand; things that sit ON a sand band get white.
   Replaces the near-white --surface (#f6f5f2) from the handoff, which made cards invisible on white.
   ===================================================================== */
:root {
  --surface: #eeebe4;        /* sand – cards, fields, strips on white (≈ band tone) */
  --surface-2: #ecebe5;      /* sand band (unchanged) + regular schedule pills */
  --line-card: #e0ddd4;      /* fine edge for sand-on-white */
}
/* Sand elements on white get a fine edge so they read as objects, not tints */
.tb-card:not(.tb-card--featured), .tb-quote, .tb-trust, .tb-map, .tb-field input, .tb-field textarea { border: 1px solid var(--line-card); }
.tb-field input, .tb-field textarea { border-color: var(--line-strong); } /* fields keep the stronger edge (WCAG non-text contrast) */
.tb-card { box-shadow: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .tb-card:not(.tb-card--featured):hover { border-color: var(--line-strong); }
}

/* On sand bands, flip to white */
.tb-section--band :is(.tb-card:not(.tb-card--featured), .tb-quote, .tb-trust, .tb-map),
.tb-rental :is(li) { background: var(--bg); border-color: var(--line); }
.tb-section--band :is(.tb-field input, .tb-field textarea, .tb-chips .wpcf7-list-item-label) { background: var(--bg); }

/* Schedule: regular pill = sand, special = white + outline (still distinct from each other) */
.tb-slot { background: var(--surface-2); }
.tb-slot--special { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tb-section--band .tb-slot { background: var(--bg); }
.tb-section--band .tb-slot--special { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--brand-text); }

/* Chips + gallery placeholders follow the same rule */
.tb-chips .wpcf7-list-item-label { background: var(--surface); }
.tb-gallery__item img { background: var(--surface); }

/* Classes summary tile: room for a description */
.tb-classes__desc { margin: var(--space-4) 0 0; font-size: 16px; line-height: 1.6; color: var(--on-accent); opacity: .92; }
.tb-card--featured .tb-card__meta { margin-top: auto !important; padding-top: var(--space-5); border-top: 1px solid rgba(246,245,242,.18); }

/* ---------- Gallery: smoother scrolling ---------- */
.tb-gallery { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.tb-gallery__item { contain: layout paint; }
.tb-gallery.is-dragging { scroll-snap-type: none; }

/* ---------- FAQ accordion animation ---------- */
.tb-faq__a { overflow: hidden; }
.tb-faq summary { position: relative; padding-right: var(--space-7); }
.tb-faq summary::after, .tb-faq summary::before { content: ""; position: absolute; right: 2px; top: 50%; width: 14px; height: 1.5px; background: var(--brand-text); border-radius: 2px; transition: transform .32s cubic-bezier(.2,.7,.2,1); }
.tb-faq summary::before { transform: rotate(90deg); }               /* vertical bar → makes the + */
.tb-faq details[open] summary::before { transform: rotate(90deg) scaleX(0); } /* folds away → − */
.tb-faq details[open] summary::after { content: ""; }
.tb-faq details.is-closing summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .tb-faq summary::after, .tb-faq summary::before { transition: none; } }

/* ---------- Online booking link (existing clients) ---------- */
.tb-booking-note { margin: var(--space-5) 0 0; font-size: 15px; color: var(--ink-muted); }
.tb-section > .tb-booking-note { max-width: calc(1280px - 2 * var(--space-6)); margin-left: auto; margin-right: auto; }
.tb-booking-note--box { margin-top: var(--space-4); padding: var(--space-4) var(--space-5); border: 1px solid var(--line-card); border-radius: var(--radius-md); background: var(--surface); }

/* Split schedule on narrow screens: real block layout (no fixed table columns) */
@media (max-width: 760px) {
  .tb-sched, .tb-sched--split { table-layout: auto; width: 100%; }
  .tb-sched tbody, .tb-sched tr { display: block; width: 100%; }
  .tb-sched--split th:first-child, .tb-sched th { width: auto; display: block; }
  .tb-sched--split td { display: flex; flex-wrap: wrap; gap: var(--space-2); width: auto; }
  .tb-sched--split td::before { flex: 0 0 100%; margin-bottom: 0; }
  .tb-sched--split td > .tb-slot { margin: 0; }
}

/* ---------- PDF buttons under schedule / price list ---------- */
.tb-section > .tb-after-table { max-width: calc(1280px - 2 * var(--space-6)); margin: var(--space-5) auto 0; gap: var(--space-3) var(--space-6); }
.tb-after-table .tb-booking-note { margin: 0; }
.tb-btn--pdf { min-height: 44px; padding: 0 var(--space-5); gap: var(--space-2); }

/* ---------- Fixed (sticky) header ---------- */
.tb-header { position: sticky; top: 0; z-index: 50; transition: padding .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tb-header .tb-logo { transition: height .2s ease; }
.tb-header.is-scrolled { padding-top: var(--space-2); padding-bottom: var(--space-2); box-shadow: 0 6px 20px rgba(28, 29, 27, 0.06); border-bottom-color: transparent; }
.tb-header.is-scrolled .tb-logo { height: 42px; }
body.admin-bar .tb-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .tb-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .tb-header { top: 0; } } /* WP admin bar scrolls away on small screens */
@media (max-width: 760px) { .tb-header.is-scrolled .tb-logo { height: 36px; } }
/* Anchor jumps land below the header */
html { scroll-padding-top: 96px; }
@media (max-width: 760px) { html { scroll-padding-top: 72px; } }
@media (prefers-reduced-motion: reduce) { .tb-header, .tb-header .tb-logo { transition: none; } }

/* ---------- QA round: smooth scroll, map placeholder, footer legal ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.tb-map--consent { flex-direction: column; gap: var(--space-2); display: flex; align-items: center; justify-content: center; text-align: center; border-style: solid; }
.tb-map--consent p { margin: 0; }
.tb-map iframe, iframe.tb-map { width: 100%; min-height: 320px; border: 0; border-radius: var(--tb-r-card); display: block; }
.tb-footer__legal { grid-column: 1 / -1; margin: var(--space-5) 0 0 !important; padding-top: var(--space-4); border-top: 1px solid rgba(246, 245, 242, .15); font-size: 12px; opacity: .75; }

/* ---------- Team (tzb/team) ---------- */
.tb-team__intro { margin-top: calc(-1 * var(--space-5)); margin-bottom: var(--space-7); }
.tb-team__intro p { max-width: 44em; margin: 0; font-size: calc(var(--tb-body-size) + 1px); color: var(--ink-muted); }
.tb-section > .tb-team__more { margin-top: var(--space-7); }
.tb-member__photo, .tb-member-full__photo { margin: 0; }
.tb-member__photo img, .tb-member-full__photo img, .tb-member__ph { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--tb-r-media); background: var(--surface-2); }
.tb-member__ph { display: grid; place-items: center; font-size: 40px; font-weight: 600; letter-spacing: .04em; line-height: 1; color: var(--brand-text); background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 100%); box-shadow: inset 0 0 0 1px var(--line); }
.tb-section--band .tb-member__ph { background: linear-gradient(165deg, var(--bg) 0%, var(--surface) 100%); }
/* Cards. Desktop: one row of portraits. Below 1024px: compact list (thumbnail + text), no horizontal scrolling. */
.tb-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: var(--space-6) var(--space-5); }
.tb-member { position: relative; display: flex; flex-direction: column; }
.tb-member__photo { margin-bottom: var(--space-4); }
.tb-member .tb-h3 { margin: 0; font-size: 18px; }
.tb-member__link { color: inherit; text-decoration: none; transition: color .15s; }
.tb-member__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--tb-r-media); }
.tb-member__link:focus-visible { outline: none; }
.tb-member__link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 4px; }
.tb-member:hover .tb-member__link { color: var(--brand-text); }
.tb-member__role { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--brand-text); line-height: 1.4; }
.tb-member__teaser { margin: var(--space-2) 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-muted); }
@media (max-width: 1023px) {
  .tb-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); }
  .tb-member { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: var(--space-4); align-content: start; }
  .tb-member__photo { grid-row: 1 / span 3; margin: 0; }
  .tb-member .tb-h3 { align-self: end; }
  .tb-member__ph { font-size: 24px; }
  .tb-member__photo img, .tb-member .tb-member__ph { border-radius: var(--radius-md); }
  .tb-member__teaser { margin-top: var(--space-1); font-size: 14px; }
}
@media (max-width: 640px) {
  .tb-team { grid-template-columns: 1fr; gap: 0; }
  .tb-member { padding: var(--space-4) 0; border-top: 1px solid var(--line); }
  .tb-member:first-child { border-top: 0; padding-top: 0; }
  .tb-member__photo { grid-row: 1 / span 3; }
  .tb-member__link::after { inset: var(--space-2) calc(-1 * var(--space-2)); border-radius: var(--radius-md); }
}
/* Full bios (Ekipa page) */
.tb-member-full { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: var(--space-8); padding: var(--space-8) 0; border-top: 1px solid var(--line); scroll-margin-top: 112px; }
.tb-member-full:first-child { border-top: 0; padding-top: 0; }
.tb-member-full:last-child { padding-bottom: 0; }
.tb-member-full__photo { grid-row: 1 / span 2; }
.tb-member-full__head .tb-h3 { font-size: 26px; margin: 0 0 var(--space-1); letter-spacing: -0.01em; }
.tb-member-full__head .tb-label { margin: 0; }
.tb-member-full__bio { max-width: 40em; }
.tb-member-full__bio p { margin: var(--space-4) 0 0; }
@media (max-width: 760px) {
  .tb-team__intro { margin-top: calc(-1 * var(--space-4)); margin-bottom: var(--space-6); }
  .tb-member-full { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto; column-gap: var(--space-4); padding: var(--space-7) 0; }
  .tb-member-full__photo { grid-row: auto; }
  .tb-member-full__head { align-self: center; }
  .tb-member-full__head .tb-h3 { font-size: 21px; }
  .tb-member-full__bio { grid-column: 1 / -1; }
  .tb-member-full .tb-member__ph { font-size: 28px; }
}
/* Team cards straight after "O meni" on the same grey band → read as one "people" zone. */
.tb-section--band + .tb-team-section.tb-section--band { padding-top: 0; }
