.om-techniques-wrapper {
  --to-gold: var(--color-primary, #9b8827);
  --to-gold-hover: var(--color-secondary, #a7bd43);
  --to-border: #e2e8f0;
  --to-text: var(--text-color, #2d3748);
  --to-text-muted: #64748b;
  font-family: inherit;
  color: var(--to-text);
  margin: 10px 0 40px;
}

.om-tech-header {
  margin-bottom: 20px;
}
.om-tech-tag {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--to-gold);
  margin-bottom: 4px;
}
.om-tech-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.2;
}

/* Stats Cards */
.om-tech-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.om-tech-stat-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px 20px;
  border-left: 4px solid var(--to-gold);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.om-tech-stat-card:nth-child(2) { border-left-color: #0d9488; }
.om-tech-stat-card:nth-child(3) { border-left-color: #6366f1; }
.om-tech-stat-value {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  color: #0f172a;
}
.om-tech-stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--to-text-muted);
  font-weight: 600;
}

/* Controls Box */
.om-tech-controls {
  background: #ffffff;
  border: 1px solid var(--to-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.om-tech-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.om-tech-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}
.om-tech-search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--to-border);
  border-radius: 6px;
  font-size: 0.95rem;
  box-sizing: border-box;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}
.om-tech-search-box input:focus {
  background: #ffffff;
  border-color: var(--to-gold);
  box-shadow: 0 0 0 3px rgba(155, 136, 39, 0.15);
}
.om-tech-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--to-text-muted);
}
.om-tech-count-badge {
  font-size: 0.92rem;
  color: #334155;
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 500;
}

/* Filters sections */
.om-tech-filter-block {
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: 14px;
}
.om-tech-filter-label {
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.om-icon {
  font-size: 1.05rem;
}

/* Sub-categories bar */
.om-tech-subcats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 5;
}
.om-tech-subcat-btn {
  background: #f8fafc;
  border: 1px solid var(--to-border);
  color: #334155;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 5;
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.15s ease;
  font-family: inherit;
}
.om-tech-subcat-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.om-tech-subcat-btn.active {
  background: var(--to-gold);
  color: #ffffff;
  border-color: var(--to-gold);
  box-shadow: 0 2px 4px rgba(155, 136, 39, 0.25);
}

/* Alphabet Bar */
.om-tech-alphabet-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  position: relative;
  z-index: 5;
}
.om-tech-letter-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  background: #f8fafc;
  border: 1px solid var(--to-border);
  color: #334155;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 5;
  user-select: none;
  -webkit-user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-family: inherit;
}
.om-tech-letter-btn:hover:not(.disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.om-tech-letter-btn.active {
  background: var(--to-gold);
  color: #ffffff;
  border-color: var(--to-gold);
}
.om-tech-letter-btn.disabled {
  opacity: 0.35;
  cursor: default !important;
  pointer-events: none !important;
  background: transparent;
  border-color: transparent;
}

/* Empty state */
.om-tech-empty {
  text-align: center;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px dashed var(--to-border);
  margin: 20px 0;
}
.om-tech-empty p {
  color: var(--to-text-muted);
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.om-tech-reset-btn {
  background: var(--to-gold);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.om-tech-reset-btn:hover {
  background: var(--to-gold-hover);
}

/* Artworks Grid */
.om-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.om-tech-card {
  background: #ffffff;
  border: 1px solid var(--to-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}
.om-tech-card:hover {
  transform: translateY(-4px);
  background-color: #faf7ee !important;
  border-color: var(--to-gold) !important;
  box-shadow: 0 10px 24px rgba(155, 136, 39, 0.18);
  text-decoration: none !important;
}
.om-tech-card:hover .om-tech-card-title {
  color: var(--to-gold);
}

.om-tech-card-img-wrap {
  height: 190px;
  background: #0f172a;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.om-tech-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.om-tech-card:hover .om-tech-card-img {
  transform: scale(1.04);
}
.om-tech-card-no-img {
  color: #94a3b8;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.om-tech-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.om-tech-card-artist {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--to-gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  line-height: 1.3;
}
.om-tech-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.om-tech-card-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.om-tech-badge-tech {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.om-tech-badge-date {
  color: var(--to-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Pagination */
.om-tech-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}
.om-tech-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--to-border);
  background: #ffffff;
  color: #334155;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-family: inherit;
}
.om-tech-page-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.om-tech-page-btn.active {
  background: var(--to-gold);
  color: #ffffff;
  border-color: var(--to-gold);
}
.om-tech-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .om-tech-title { font-size: 1.8rem; }
  .om-tech-search-row { flex-direction: column; align-items: stretch; }
  .om-tech-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
}

/* Force layout grid to display the right sidebar cleanly */
.sidebar-right .main-container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 280px !important;
  gap: 24px !important;
  align-items: start !important;
}

#main {
  min-width: 0 !important;
  max-width: 100% !important;
}

#sidebar-right {
  display: block !important;
  width: 100% !important;
  order: 3 !important;
  position: sticky !important;
  top: 20px !important;
  max-height: calc(100vh - 40px) !important;
  overflow-y: auto !important;
  z-index: 10 !important;
  align-self: start !important;
}

#sidebar-right .sidebar-right {
  display: block !important;
}

.om-techniques-wrapper {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .sidebar-right .main-container {
    grid-template-columns: 100% !important;
  }
  #sidebar-right {
    position: static !important;
    max-height: none !important;
    overflow-y: visible !important;
  }
}

/* Styling for hierarchical taxonomy menu in right sidebar */
.hierarchical-taxonomy-menu .menu-item--expanded {
  position: relative;
}
.hierarchical-taxonomy-menu .parent-toggle {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.hierarchical-taxonomy-menu .parent-toggle:hover {
  opacity: 1;
  transform: scale(1.2);
}


