/* =================================================================
   WooZM Design System
   Shared --woo-* tokens (unified with WooPID), OpenGov-inspired palette.
   Replaces main.css + searchui.css.
   ================================================================= */

/* ----------------------------- Web Fonts ----------------------------- */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/geist:vf@latest/latin-wght-normal.woff2) format('woff2-variations');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/geist-mono:vf@latest/latin-wght-normal.woff2) format('woff2-variations');
}

@font-face {
  font-family: 'OpenGov Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url('/static/fonts/OpenGov-Sans-V1.woff2') format('woff2');
}

/* ----------------------------- Design Tokens ----------------------------- */

:root {
  /* OpenGov-derived palette */
  --woo-dark: #380504;
  --woo-accent: #ff2903;
  --woo-accent-hover: #db0500;
  --woo-secondary-accent: #661202;
  --woo-light-blue: #c7fafb;

  /* Functional colors (warm undertone from OpenGov maroon) */
  --woo-bg: #f6fbfc;
  --woo-white: #ffffff;
  --woo-text: #2e2626;
  --woo-text-muted: #4d4242;
  --woo-text-link: #c43310;
  --woo-text-link-hover: #661202;
  --woo-border: #c4d3d8;

  /* Tag colors (light blue family) */
  --woo-tag-bg: #daf0f1;
  --woo-tag-border: #8dcfd2;
  --woo-tag-text: #2c3e3f;

  /* Warning */
  --woo-warning-bg: #fff3cd;
  --woo-warning-border: #ffecb5;
  --woo-warning-text: #664d03;

  /* Typography */
  --woo-font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --woo-font-mono: 'Geist Mono', 'Menlo', 'Consolas', monospace;
  --woo-font-size-xs: 0.75rem;
  --woo-font-size-sm: 0.875rem;
  --woo-font-size-base: 1rem;
  --woo-font-size-lg: 1.125rem;
  --woo-font-size-xl: 1.5rem;
  --woo-font-size-2xl: 1.75rem;
  --woo-font-weight-light: 300;
  --woo-font-weight-normal: 400;
  --woo-font-weight-medium: 500;
  --woo-font-weight-bold: 700;

  /* Spacing */
  --woo-space-xs: 0.375rem;
  --woo-space-sm: 0.625rem;
  --woo-space-md: 1rem;
  --woo-space-lg: 1.5rem;
  --woo-space-xl: 2rem;
  --woo-space-2xl: 3rem;

  /* Surfaces */
  --woo-radius-sm: 4px;
  --woo-radius-md: 8px;
  --woo-radius-lg: 12px;
  --woo-radius-pill: 12px;
  --woo-shadow-sm: 0 2px 12px rgba(56, 5, 4, 0.05), 0 0 0 1px rgba(196, 211, 216, 0.1);
  --woo-shadow-md: 0 4px 20px rgba(56, 5, 4, 0.08), 0 0 0 1px rgba(196, 211, 216, 0.12);

  /* Bootstrap overrides — force BS components to use OpenGov tokens */
  --bs-body-bg: var(--woo-bg);
  --bs-body-color: var(--woo-text);
  --bs-body-font-family: var(--woo-font-family);
  --bs-body-font-size: var(--woo-font-size-base);
  --bs-body-font-weight: var(--woo-font-weight-normal);
  --bs-body-line-height: 1.6;
  --bs-link-color: var(--woo-text-link);
  --bs-link-hover-color: var(--woo-text-link-hover);
  --bs-border-color: var(--woo-border);
  --bs-border-radius: var(--woo-radius-md);
  --bs-border-radius-sm: var(--woo-radius-sm);
  --bs-border-radius-lg: var(--woo-radius-lg);
}

/* ----------------------------- Base ----------------------------- */

body {
  font-family: var(--woo-font-family);
  background: linear-gradient(180deg, var(--woo-bg) 0%, #eaf7f8 50%, #e2f3f5 100%) fixed;
  color: var(--woo-text);
  line-height: 1.6;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a {
  color: var(--woo-text-link);
  text-decoration: none;
}

a:hover {
  color: var(--woo-text-link-hover);
  text-decoration: underline;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--woo-font-weight-medium);
  color: var(--woo-dark);
  margin-top: 0;
}

h1 {
  font-size: var(--woo-font-size-2xl);
  margin-bottom: var(--woo-space-md);
  line-height: 1.35;
}

h2 {
  font-size: var(--woo-font-size-xl);
  margin-bottom: var(--woo-space-sm);
}

h3 {
  font-size: var(--woo-font-size-lg);
  padding: 0;
  margin-bottom: var(--woo-space-sm);
}

h5 {
  font-size: var(--woo-font-size-base);
  margin-bottom: var(--woo-space-sm);
}

/* ----------------------------- Skip Link ----------------------------- */

.woo-skip-link {
  position: absolute;
  top: -100%;
  left: var(--woo-space-md);
  background: var(--woo-dark);
  color: var(--woo-white);
  padding: var(--woo-space-sm) var(--woo-space-md);
  border-radius: 0 0 var(--woo-radius-sm) var(--woo-radius-sm);
  z-index: 1000;
  font-size: var(--woo-font-size-sm);
}

.woo-skip-link:focus {
  top: 0;
  color: var(--woo-white);
  text-decoration: none;
}

/* ----------------------------- Accent Bar ----------------------------- */

.woo-accent-bar {
  height: 3px;
  background: var(--woo-accent);
}

/* ----------------------------- Navbar ----------------------------- */

.woo-navbar {
  background: var(--woo-white);
  border-bottom: 1px solid var(--woo-border);
  padding: 0 var(--woo-space-xl);
  box-shadow: 0 1px 4px rgba(56, 5, 4, 0.06);
}

.woo-navbar .navbar-brand {
  padding: var(--woo-space-sm) 0;
}

.woo-brand-text {
  font-family: 'OpenGov Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.woo-brand-text .woo-logo-woo {
  color: var(--woo-dark);
}

.woo-brand-text .woo-logo-zm {
  color: var(--woo-text-link);
}

.woo-brand-text:hover {
  text-decoration: none;
}

.woo-brand-text:hover .woo-logo-woo {
  color: var(--woo-dark);
}

.woo-brand-text:hover .woo-logo-zm {
  color: var(--woo-text-link-hover);
}

.woo-navbar .nav-link {
  color: var(--woo-text-muted);
  font-size: var(--woo-font-size-sm);
  font-weight: var(--woo-font-weight-normal);
  padding: 0.5rem 0.75rem;
  transition: color 0.15s;
}

.woo-navbar .nav-link i {
  font-size: 0.85em;
  opacity: 0.55;
  margin-right: 0.15em;
  transition: opacity 0.15s;
}

.woo-navbar .nav-link:hover i {
  opacity: 0.85;
}

.woo-navbar .nav-link:hover {
  color: var(--woo-dark);
  background-color: transparent;
}

.woo-navbar .nav-link.current {
  color: var(--woo-dark);
  font-weight: var(--woo-font-weight-medium);
}

.woo-navbar-nav {
  margin-left: auto;
}

.woo-navbar .navbar-toggler {
  border: none;
  outline: none;
  box-shadow: none;
}

.woo-navbar .navbar-toggler:focus {
  border: none;
  outline: none;
  box-shadow: none;
}

/* Navbar search box (on result pages) */
.woo-search-box-nav {
  display: flex;
  align-items: center;
  margin-left: var(--woo-space-lg);
  max-width: 500px;
  flex-grow: 1;
}

.woo-search-box-nav .woo-search-input {
  height: 2.5rem;
  border-radius: var(--woo-radius-lg) 0 0 var(--woo-radius-lg);
  border-right: none;
}

.woo-search-box-nav .woo-btn-search {
  border-radius: 0 var(--woo-radius-lg) var(--woo-radius-lg) 0;
  white-space: nowrap;
}

/* Mobile search box (below navbar, search pages only) */
.woo-search-box-mobile {
  display: none;
}

/* ----------------------------- Search Input ----------------------------- */

.woo-search-input {
  border: 1px solid var(--woo-border);
  border-radius: var(--woo-radius-pill);
  padding: 0.5rem 1.25rem;
  outline: none;
  font-family: inherit;
  font-size: var(--woo-font-size-base);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.woo-search-input:focus {
  border-color: var(--woo-light-blue);
  box-shadow: 0 0 0 3px rgba(199, 250, 251, 0.5);
}

.woo-search-input-facet {
  border: 1px solid var(--woo-border);
  border-radius: var(--woo-radius-pill);
  padding: 0.5rem 0.75rem;
  outline: none;
  font-family: inherit;
  font-size: var(--woo-font-size-sm);
  width: 100%;
  transition: border-color 0.15s;
}

.woo-search-input-facet:focus {
  border-color: var(--woo-light-blue);
  box-shadow: 0 0 0 2px rgba(199, 250, 251, 0.4);
}

/* ----------------------------- Button ----------------------------- */

.woo-btn-search {
  background-color: var(--woo-dark);
  border: 1px solid var(--woo-dark);
  color: var(--woo-white);
  font-weight: var(--woo-font-weight-medium);
  padding: 0.5rem 1.25rem;
  border-radius: var(--woo-radius-pill);
  cursor: pointer;
  font-size: var(--woo-font-size-sm);
  transition: background-color 0.15s;
  white-space: nowrap;
}

.woo-btn-search:hover {
  background-color: var(--woo-secondary-accent);
  border-color: var(--woo-secondary-accent);
  color: var(--woo-white);
}

/* ----------------------------- Hero (homepage) ----------------------------- */

.woo-hero {
  text-align: center;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--woo-space-2xl) var(--woo-space-lg);
}

.woo-logo-text {
  font-family: 'OpenGov Sans', sans-serif;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 700;
  color: var(--woo-dark);
  letter-spacing: -0.02em;
  margin: 0 0 var(--woo-space-md);
  line-height: 1;
}

.woo-logo-woo {
  color: var(--woo-dark);
}

.woo-logo-zm {
  color: var(--woo-text-link);
}

.woo-hero .woo-subtitle-name {
  color: var(--woo-text-muted);
  font-size: var(--woo-font-size-base);
  font-weight: var(--woo-font-weight-normal);
  margin: 0 0 var(--woo-space-sm);
}

/* Stats row */
.woo-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: var(--woo-space-2xl);
  font-size: var(--woo-font-size-sm);
  color: var(--woo-text-muted);
}

.woo-stat {
  text-decoration: none;
  color: inherit;
}

.woo-stat:hover {
  text-decoration: none;
  color: inherit;
}

.woo-stat:hover .woo-stat-number {
  color: var(--woo-text-link-hover);
}

.woo-stat-number {
  font-weight: 700;
  color: var(--woo-text-link);
  font-size: 1.1em;
}

.woo-woo-abbr {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--woo-border);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: help;
  font-style: normal;
  position: relative;
}

.woo-woo-abbr::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3em 0.6em;
  background: var(--woo-text);
  color: #fff;
  font-size: 0.85em;
  border-radius: var(--woo-radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.woo-woo-abbr:hover::after {
  opacity: 1;
}

.woo-hero-search {
  max-width: 720px;
  width: 100%;
}

.woo-hero-search .input-group {
  margin-bottom: var(--woo-space-md);
  border: 1px solid rgba(196, 211, 216, 0.4);
  border-radius: var(--woo-radius-lg);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-wrap: nowrap;
  box-shadow: 0 4px 24px rgba(56, 5, 4, 0.1), 0 0 0 1px rgba(196, 211, 216, 0.18);
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.woo-hero-search .input-group:focus-within {
  border-color: rgba(199, 250, 251, 0.6);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(56, 5, 4, 0.1), 0 0 0 3px rgba(199, 250, 251, 0.45);
}

.woo-hero-search .woo-search-input {
  height: 4rem;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  border: none;
  border-radius: var(--woo-radius-lg) 0 0 var(--woo-radius-lg);
  font-size: 1.25rem;
  padding-left: 1.5rem;
}

.woo-hero-search .woo-search-input:focus {
  box-shadow: none;
}

.woo-hero-search .woo-btn-search {
  border: none;
  border-radius: 0 var(--woo-radius-lg) var(--woo-radius-lg) 0;
  padding: 0 2rem;
  font-size: 1.1rem;
}

/* ----------------------------- Hero Microcopy ----------------------------- */

.woo-hero-microcopy {
  font-size: var(--woo-font-size-sm);
  color: var(--woo-text-muted);
  margin: 0 0 var(--woo-space-md);
}

/* ----------------------------- Filter Toggle (homepage) ----------------------------- */

.woo-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--woo-font-size-sm);
  color: var(--woo-accent);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: var(--woo-radius-pill);
  border: 1px solid rgba(255, 41, 3, 0.25);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.woo-filter-toggle:hover {
  color: var(--woo-accent-hover);
  background-color: rgba(255, 41, 3, 0.06);
  border-color: rgba(255, 41, 3, 0.4);
  text-decoration: none;
}

.woo-filter-toggle .woo-filter-chevron {
  display: inline-block;
  font-size: 0.65em;
  transition: transform 0.25s ease;
  margin-left: 0.1em;
}

.woo-filter-toggle[aria-expanded="true"] .woo-filter-chevron {
  transform: rotate(180deg);
}

.woo-filter-toggle[aria-expanded="true"] {
  color: var(--woo-accent-hover);
  background-color: rgba(255, 41, 3, 0.06);
  border-color: rgba(255, 41, 3, 0.4);
}

/* ----------------------------- Select Facets ----------------------------- */

.woo-select-facet {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a4a' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2rem;
  cursor: pointer;
}

.woo-select-facet:focus {
  border-color: var(--woo-light-blue);
  box-shadow: 0 0 0 2px rgba(199, 250, 251, 0.4);
}

.woo-autocomplete-wrapper .woo-search-input-facet {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a4a' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2rem;
}

/* ----------------------------- Autocomplete ----------------------------- */

.woo-autocomplete-wrapper {
  position: relative;
}

.woo-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  z-index: 10;
  background: var(--woo-white);
  border: 1px solid var(--woo-border);
  border-radius: var(--woo-radius-lg);
  box-shadow: var(--woo-shadow-md);
  margin-top: 4px;
  list-style: none;
  padding: var(--woo-space-xs) 0;
  text-align: left;
}

.woo-autocomplete-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: var(--woo-font-size-sm);
  color: var(--woo-text);
}

.woo-autocomplete-item.active,
.woo-autocomplete-item:hover {
  background: var(--woo-tag-bg);
}

.woo-autocomplete-empty {
  padding: 0.5rem 0.75rem;
  font-size: var(--woo-font-size-sm);
  color: var(--woo-text-muted);
}

/* ----------------------------- Active Filter Chips ----------------------------- */

.woo-active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.4rem 0.75rem;
  font-size: var(--woo-font-size-sm);
  border-radius: var(--woo-radius-pill);
  background: var(--woo-tag-bg);
  border: 1px solid var(--woo-tag-border);
  color: var(--woo-tag-text);
  cursor: pointer;
  max-width: 100%;
  min-width: 0;
}

.woo-active-filter-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.woo-active-filter-chip:hover {
  background: #d0edee;
}

.woo-active-filter-clear {
  font-size: 1.1em;
  line-height: 1;
  color: var(--woo-accent);
  font-weight: var(--woo-font-weight-bold);
}

/* ----------------------------- Filter Row ----------------------------- */

.woo-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--woo-space-md) var(--woo-space-lg);
  padding-top: var(--woo-space-lg);
  text-align: left;
}

/* Compact single-row filters on search results page */
.woo-layout-main .woo-filter-row {
  grid-template-columns: 2fr 1fr 1fr 2fr 1fr;
  gap: var(--woo-space-sm);
  padding-top: var(--woo-space-md);
}

.woo-filter-label {
  display: block;
  font-size: var(--woo-font-size-xs);
  color: var(--woo-text-muted);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.woo-filter-year-pair {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.woo-filter-year-pair select {
  flex: 1;
}

.woo-filter-year-sep {
  color: var(--woo-border);
  font-size: var(--woo-font-size-xs);
  flex-shrink: 0;
}

.woo-select-facet:invalid,
.woo-select-facet option[disabled] {
  color: var(--woo-border);
}

/* ----------------------------- Layout (search results) ----------------------------- */

.woo-layout-body {
  background: transparent;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  padding: 0 var(--woo-space-lg);
}

.woo-sidebar {
  width: 20%;
  padding: var(--woo-space-lg) var(--woo-space-lg) 0 0;
}

.woo-layout-main {
  width: 80%;
  padding: var(--woo-space-lg) 0 var(--woo-space-xl) var(--woo-space-lg);
}

/* ----------------------------- Filter Crumbs ----------------------------- */

.woo-filter-crumbs {
  margin-bottom: var(--woo-space-md);
}

.woo-filter-crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3rem 0.7rem;
  font-size: var(--woo-font-size-xs);
  border-radius: var(--woo-radius-pill);
  margin-right: var(--woo-space-xs);
  margin-bottom: var(--woo-space-xs);
  cursor: pointer;
  background: var(--woo-white);
  border: 1px solid var(--woo-border);
  color: var(--woo-text);
  box-shadow: var(--woo-shadow-sm);
  transition: background 0.15s, box-shadow 0.15s;
}

.woo-filter-crumb:hover {
  background: var(--woo-tag-bg);
  box-shadow: var(--woo-shadow-md);
}

/* ----------------------------- Facets ----------------------------- */

.woo-facets {
  margin-left: var(--woo-space-md);
}

.woo-facet-title {
  text-transform: uppercase;
  font-size: var(--woo-font-size-xs);
  color: var(--woo-text-muted);
  letter-spacing: 1px;
  padding: 0;
}

.woo-facet {
  list-style: none;
  font-size: var(--woo-font-size-sm);
  padding-left: 0;
}

.woo-facet-value {
  padding: 0;
  text-align: left;
  font-size: var(--woo-font-size-xs);
  background: none;
  border: none;
  font-family: inherit;
  color: var(--woo-text-link);
  cursor: pointer;
}

.woo-facet-value:hover {
  text-decoration: underline;
}

.woo-expand-collapse-button {
  cursor: pointer;
  color: var(--woo-text-link);
  font-size: var(--woo-font-size-xs);
  background: none;
  border: none;
  padding: 0;
}

.woo-expand-collapse-button:hover {
  text-decoration: underline;
}

/* ----------------------------- Results Header ----------------------------- */

.woo-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: var(--woo-space-sm);
}

.woo-results-info {
  font-size: var(--woo-font-size-xs);
  color: var(--woo-text-muted);
}

.woo-ordering {
  width: 25%;
  min-width: 160px;
}

.woo-ordering-select {
  font-size: var(--woo-font-size-sm);
}

/* ----------------------------- Card / Surface ----------------------------- */

.woo-card {
  background: var(--woo-white);
  border: 1px solid var(--woo-border);
  border-radius: var(--woo-radius-lg);
  box-shadow: var(--woo-shadow-sm);
  overflow-wrap: break-word;
  overflow: hidden;
  padding: var(--woo-space-lg);
  margin-bottom: var(--woo-space-md);
}

/* ----------------------------- Result Cards ----------------------------- */

.woo-results-container {
  padding: 0;
  list-style: none;
}

.woo-result {
  list-style: none;
  padding: var(--woo-space-md);
  border: 1px solid var(--woo-border);
  background: var(--woo-white);
  border-radius: var(--woo-radius-md);
  box-shadow: var(--woo-shadow-sm);
  overflow-wrap: break-word;
  overflow: hidden;
  margin-bottom: var(--woo-space-sm);
}

.woo-result em {
  position: relative;
  font-weight: var(--woo-font-weight-bold);
  font-style: inherit;
}

.woo-result em::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  background: rgba(199, 250, 251, 0.45);
  pointer-events: none;
}

.woo-result-title {
  font-size: var(--woo-font-size-base);
  font-weight: var(--woo-font-weight-medium);
  margin: 0;
  padding: 0;
  line-height: 1.35;
}

.woo-result-title a {
  color: var(--woo-text-link);
  text-decoration: none;
}

.woo-result-title a:hover {
  color: var(--woo-text-link-hover);
  text-decoration: underline;
}

.woo-result-description {
  color: var(--woo-text-muted);
  font-size: var(--woo-font-size-sm);
  line-height: 1.5;
  word-wrap: break-word;
  padding: var(--woo-space-xs) 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----------------------------- Result Tags ----------------------------- */

.woo-result-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  padding: 0.1rem 0.35rem;
  font-family: var(--woo-font-mono);
  font-size: var(--woo-font-size-xs);
  border-radius: 2px;
  margin-right: var(--woo-space-xs);
  margin-top: var(--woo-space-xs);
  color: var(--woo-tag-text);
  background-color: var(--woo-tag-bg);
  border: 1px solid var(--woo-tag-border);
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 0.15s, background-color 0.15s;
}

.woo-result-tag:hover {
  background-color: #d0edee;
  box-shadow: var(--woo-shadow-sm);
}

.woo-result-tag--warning {
  background-color: var(--woo-warning-bg);
  border-color: var(--woo-warning-border);
  color: var(--woo-warning-text);
}

.woo-result-attributes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

/* ----------------------------- Page Hits ----------------------------- */

.woo-result-pages {
  margin-top: var(--woo-space-sm);
}

.woo-result-pages .woo-expand-collapse-button {
  font-size: var(--woo-font-size-xs);
}

.woo-page-hits-list {
  margin-top: var(--woo-space-sm);
  border-top: 1px solid var(--woo-border);
}

.woo-page-hit {
  padding: var(--woo-space-md) 0;
  border-bottom: 1px solid var(--woo-border);
}

.woo-page-hit:last-child {
  border-bottom: none;
}

.woo-page-hit .woo-result-title {
  font-size: var(--woo-font-size-sm);
}

.woo-page-hit .woo-result-description {
  font-size: var(--woo-font-size-xs);
  padding: var(--woo-space-xs) 0 0;
}

/* ----------------------------- Pagination ----------------------------- */

.woo-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--woo-space-xs);
  margin-bottom: var(--woo-space-2xl);
  padding-top: var(--woo-space-md);
}

.woo-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  font-size: var(--woo-font-size-sm);
  border: none;
  border-radius: var(--woo-radius-md);
  background: transparent;
  color: var(--woo-text-muted);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.woo-pagination-btn:hover {
  background: var(--woo-tag-bg);
  color: var(--woo-text);
}

.woo-pagination-btn--active {
  background: var(--woo-dark);
  color: var(--woo-white);
  font-weight: var(--woo-font-weight-medium);
}

.woo-pagination-btn--active:hover {
  background: var(--woo-secondary-accent);
  color: var(--woo-white);
}

/* ----------------------------- Content Pages ----------------------------- */

.woo-content-page {
  padding-top: var(--woo-space-2xl);
  width: 60%;
  min-width: 340px;
  margin: 0 auto;
  padding-bottom: 100px;
}

.woo-content-page h1 {
  margin-bottom: var(--woo-space-md);
}

/* ----------------------------- Sponsors ----------------------------- */

.woo-sponsors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--woo-space-lg);
  margin: var(--woo-space-lg) auto;
  max-width: 900px;
}

.woo-sponsors-img {
  max-height: 100px;
}

/* ----------------------------- Overview iframe ----------------------------- */

.woo-overview-iframe {
  position: fixed;
  top: 100px;
  bottom: 0;
  right: 0;
  width: 100%;
  border: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: 999999;
  height: 100%;
}

/* ----------------------------- Footer ----------------------------- */

.woo-footer {
  border-top: 1px solid var(--woo-border);
  padding: var(--woo-space-xl) var(--woo-space-lg) var(--woo-space-lg);
  margin-top: auto;
  font-size: var(--woo-font-size-xs);
  color: var(--woo-text-muted);
}

.woo-footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--woo-space-xl);
  flex-wrap: wrap;
}

.woo-footer-nav {
  display: flex;
  gap: var(--woo-space-lg);
  flex-wrap: wrap;
}

.woo-footer-nav a {
  color: var(--woo-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.woo-footer-nav a:hover {
  color: var(--woo-accent);
  text-decoration: none;
}

.woo-footer-copy {
  color: var(--woo-text-muted);
}

.woo-footer-copy a {
  color: var(--woo-text-muted);
}

.woo-footer-copy a:hover {
  color: var(--woo-accent);
}

/* ----------------------------- Contact ----------------------------- */

#contact-submit-btn {
  float: right;
}

#delete-submit-btn {
  float: right;
}

/* ----------------------------- Delete button (crumbs) ----------------------------- */

.delete,
.modal-close {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  pointer-events: auto;
  display: inline-block;
  flex-grow: 0;
  flex-shrink: 0;
  font-size: 0;
  height: 16px;
  max-height: 16px;
  max-width: 16px;
  min-height: 16px;
  min-width: 16px;
  outline: none;
  position: relative;
  vertical-align: top;
  width: 16px;
}

.delete::before,
.modal-close::before,
.delete::after,
.modal-close::after {
  background-color: var(--woo-text-muted);
  content: "";
  display: block;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(45deg);
  transform-origin: center center;
}

.delete::before,
.modal-close::before {
  height: 2px;
  width: 50%;
}

.delete::after,
.modal-close::after {
  height: 50%;
  width: 2px;
}

.is-small.delete,
.is-small.modal-close {
  height: 14px;
  max-height: 14px;
  max-width: 14px;
  min-height: 14px;
  min-width: 14px;
  width: 14px;
}

.woo-filter-crumb:hover .delete::before,
.woo-filter-crumb:hover .delete::after {
  background-color: var(--woo-accent);
}

/* ----------------------------- Utilities ----------------------------- */

.dis-none {
  display: none;
}

.dis-block {
  display: block;
}

#docresult-div {
  justify-content: space-evenly;
}

/* ----------------------------- Full-width layout variant ----------------------------- */

.woo-layout-main--full {
  width: 100%;
  padding-left: 0;
}

/* ----------------------------- Error Page ----------------------------- */

.woo-error-page {
  text-align: center;
  padding: var(--woo-space-2xl) 0;
}

.woo-error-page h1 {
  font-size: var(--woo-font-size-2xl);
}

/* ----------------------------- Sidebar Toggle ----------------------------- */

.woo-sidebar-toggle {
  display: none;
  width: 100%;
  padding: var(--woo-space-xs) 0;
  font-size: var(--woo-font-size-sm);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--woo-text-link);
  text-decoration: none;
  transition: color 0.15s;
}

.woo-sidebar-toggle:hover {
  color: var(--woo-text-link-hover);
}

/* ----------------------------- Focus Visible ----------------------------- */

:focus-visible {
  outline: 2px solid var(--woo-light-blue);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}

/* ----------------------------- Responsive ----------------------------- */

@media (max-width: 992px) {
  .woo-hero { min-height: auto; }
  .woo-hero-search { max-width: 95%; }

  .woo-layout-body {
    display: flex;
    flex-direction: column;
    padding: 0 var(--woo-space-md);
  }

  .woo-sidebar {
    order: 3;
    width: 100%;
    padding: var(--woo-space-md) 0;
    border-top: 1px solid var(--woo-border);
    margin-top: var(--woo-space-md);
  }

  .woo-sidebar .woo-facets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--woo-space-xl);
    margin-left: 0;
  }

  .woo-layout-main { order: 2; }

  .woo-sidebar-toggle { display: block; }

  .woo-footer-nav { display: none; }
  .woo-footer-inner { justify-content: center; }

  .woo-layout-main .woo-filter-row {
    display: none;
    grid-template-columns: 1fr 1fr;
    padding-top: var(--woo-space-sm);
  }

  .woo-layout-main .woo-filter-row.show {
    display: grid;
  }

  .woo-layout-main {
    width: 100%;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .woo-content-page { width: 90%; min-width: auto; }
  .woo-ordering { width: 100%; }
  .woo-results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--woo-space-sm);
  }
  .woo-search-box-nav { display: none; }
  .woo-layout-main .woo-filter-row { grid-template-columns: 1fr 1fr; }

  /* Mobile search bar — hero-style floating box */
  .woo-search-box-mobile {
    display: flex;
    align-items: center;
    gap: 0;
    margin: var(--woo-space-md) var(--woo-space-md) 0;
    border: 1px solid rgba(196, 211, 216, 0.4);
    border-radius: var(--woo-radius-lg);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(56, 5, 4, 0.1), 0 0 0 1px rgba(196, 211, 216, 0.18);
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
  }

  .woo-search-box-mobile:focus-within {
    border-color: rgba(199, 250, 251, 0.6);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 20px rgba(56, 5, 4, 0.1), 0 0 0 3px rgba(199, 250, 251, 0.45);
  }

  .woo-search-box-mobile .woo-search-input {
    height: 3rem;
    flex: 1 1 auto;
    border: none;
    border-radius: var(--woo-radius-lg) 0 0 var(--woo-radius-lg);
    font-size: var(--woo-font-size-base);
    padding-left: 1.25rem;
  }

  .woo-search-box-mobile .woo-search-input:focus {
    box-shadow: none;
  }

  .woo-search-box-mobile .woo-btn-search {
    border: none;
    border-radius: 0 var(--woo-radius-lg) var(--woo-radius-lg) 0;
    padding: 0 1.25rem;
    white-space: nowrap;
    height: 3rem;
  }

  /* Hamburger button cleanup */
  .woo-navbar .navbar-toggler {
    border: none;
    border-radius: var(--woo-radius-pill);
    color: var(--woo-text-muted);
    transition: background-color 0.15s, color 0.15s;
  }

  .woo-navbar .navbar-toggler:hover {
    background-color: rgba(218, 240, 241, 0.4);
    color: var(--woo-dark);
  }

  .woo-navbar .navbar-toggler:focus {
    box-shadow: none;
    color: var(--woo-dark);
  }
}

@media (max-width: 576px) {
  .woo-layout-main .woo-filter-row { grid-template-columns: 1fr; }
  .woo-sidebar .woo-facets { grid-template-columns: 1fr; }
}
