/* Four layouts explicitly load this sheet after their theme and page styles. */
:is(body[data-theme="teknik"], body[data-theme="butik"], body[data-theme="moda"], body[data-theme="yuva"]) { overflow-wrap: anywhere; }
:is(body[data-theme="teknik"], body[data-theme="butik"], body[data-theme="moda"], body[data-theme="yuva"]) :is(input, select, textarea) { font-size: 1rem; }
:is(body[data-theme="teknik"], body[data-theme="butik"], body[data-theme="moda"], body[data-theme="yuva"]) :is(button, summary, .head-links a) { min-height: 44px; }
:is(body[data-theme="teknik"], body[data-theme="butik"], body[data-theme="moda"], body[data-theme="yuva"]) :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
body[data-theme="teknik"] :is(.site-head, .site-foot, .technical-hero) :focus-visible { outline-color: #7dd3fc; }
:is(body[data-theme="teknik"], body[data-theme="butik"], body[data-theme="moda"], body[data-theme="yuva"]) :is(.head-row > *, .results, .filter-bar) { min-width: 0; }
:is(body[data-theme="teknik"], body[data-theme="butik"], body[data-theme="moda"], body[data-theme="yuva"]) :is(.demo-themes a, .result-bar a, .filter-chips a, .filter-links a) { display: inline-flex; align-items: center; min-height: 44px; }
.mobile-filters, .filter-drawer, .mobile-category-menu { display: none; }
.filter-drawer-open { display: none; }
.filter-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.filter-drawer-head h2 { margin: 0; font-size: 1.25rem; }
.filter-fallback summary, .mobile-category-menu summary, .dock-menu summary { cursor: pointer; font-weight: 700; }
.mobile-filters :is(.filter-panel, .filters) { display: block; position: static; max-height: none; overflow: visible; border: 0; padding: 0; background: transparent; }
.mobile-filters .te-field { margin-block: 1.25rem; }
.mobile-filters label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: .65rem; min-height: 44px; margin: .25rem 0; }
.mobile-filters input[type="checkbox"] { width: 24px; height: 24px; flex: none; }
.mobile-filters input[type="range"] { width: 100%; min-height: 44px; }
.mobile-filters .te-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-block: .75rem; }
@media (max-width: 840px) {
  .desktop-filters { display: none; }
  .mobile-filters { display: block; }
  .filter-fallback summary { padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
  .mobile-category-menu { display: block; color: var(--ink); background: var(--card); }
  .mobile-category-menu summary { padding: .75rem 1rem; }
  .mobile-category-menu nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding: .5rem 1rem 1rem; max-height: 50dvh; overflow-y: auto; }
  .mobile-category-menu a { display: flex; align-items: center; min-height: 44px; color: var(--ink); padding: .5rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
  :is(body[data-theme="moda"], body[data-theme="yuva"]) .site-head .cat-menu .mobile-desktop-nav { display: none; }
  :is(body[data-theme="moda"], body[data-theme="yuva"]) .site-head { position: relative; }
  body[data-theme="yuva"] { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  body.sector-shell[data-theme="yuva"] .dock { display: flex; min-height: 4.5rem; align-items: stretch; }
  body[data-theme="yuva"] .dock :is(a, summary) { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .2rem; font-size: .8125rem; line-height: 1.25; text-align: center; }
  body[data-theme="yuva"] .dock-menu { flex: 0 0 auto; min-width: 0; }
  body[data-theme="yuva"] .dock-menu summary { height: 100%; list-style: none; }
  body[data-theme="yuva"] .dock-menu summary::-webkit-details-marker { display: none; }
  body[data-theme="yuva"] .dock-menu nav { position: fixed; inset: auto 1rem calc(5rem + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 45dvh; overflow-y: auto; gap: .5rem; padding: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 24px #0002; }
  body[data-theme="yuva"] .dock-menu nav a { border: 1px solid var(--line); border-radius: 10px; }
  body.sector-shell[data-theme="yuva"] .cookie-bar { bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); z-index: 30; max-height: 40dvh; overflow-y: auto; }
  @supports selector(:popover-open) {
    .filter-fallback { display: none; }
    .filter-drawer-open { display: inline-flex; align-items: center; min-height: 48px; gap: .5rem; }
    .filter-drawer:popover-open { display: block; position: fixed; inset: 0 0 0 auto; width: min(92vw, 26rem); height: 100dvh; max-height: none; max-width: none; margin: 0; padding: 1rem 1.25rem max(1.25rem, env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; color: var(--ink); background: var(--card); border: 0; border-radius: 16px 0 0 16px; box-shadow: -12px 0 40px #0003; }
    .filter-drawer::backdrop { background: #10182866; }
    .filter-drawer-head { position: sticky; top: -1rem; z-index: 1; padding-block: 1rem; background: var(--card); border-bottom: 1px solid var(--line); }
    .filter-drawer-head button { flex: none; max-width: 50%; font: inherit; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .filter-drawer, .mobile-category-menu { scroll-behavior: auto; }
}
