/* Conditions hub — brand tokens from styles.css */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cond-page .tx-breadcrumb {
  padding: 10px 0 0;
}

.cond-page .tx-section {
  padding: 44px 0;
}

.cond-page .tx-section .section-title {
  letter-spacing: -0.03em;
  font-size: clamp(26px, 2.8vw, 36px);
  margin-bottom: 10px;
}

.cond-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 40px;
}

.cond-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 32px;
  align-items: center;
}

.cond-hero-photo {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(26, 43, 86, 0.14);
}

.cond-hero-photo img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.cond-search {
  background: #f5f7fb;
}

.cond-search-box {
  position: relative;
  max-width: 720px;
}

.cond-search-box input {
  width: 100%;
  min-height: 56px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 108px 14px 18px;
  font: 500 16px/1.4 var(--font);
  color: var(--navy);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.cond-search-box input:focus {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-color: var(--purple);
}

.cond-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: #f4f6fb;
}

.cond-search-clear:hover {
  background: #e8ecf5;
}

.cond-search-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.cond-popular-grid,
.cond-az-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.cond-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 132px;
  padding: 18px 18px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cond-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 77, 177, 0.28);
  box-shadow: 0 14px 32px rgba(26, 43, 86, 0.1);
}

.cond-card h3 {
  color: var(--navy);
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.cond-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 12px;
}

.cond-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
}

.cond-card-live {
  color: #2f9e5d;
}

.cond-cats {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.cond-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cond-cat {
  min-height: 72px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cond-cat small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.cond-cat:hover,
.cond-cat.is-active {
  border-color: var(--purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.cond-cat-visual {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(26, 43, 86, 0.12);
}

.cond-cat-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.cond-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 8px;
}

.cond-letter {
  min-width: 36px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.cond-letter:hover,
.cond-letter.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.cond-letter:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
  color: var(--text-muted);
}

.cond-empty {
  display: none;
  margin-top: 28px;
  padding: 28px;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: 16px;
  color: var(--text-muted);
}

.cond-empty.is-visible {
  display: block;
}

.cond-page #help.final-cta {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.cond-page #help .section-eyebrow {
  color: var(--gold);
  margin-bottom: 4px;
}

.cond-page #help .final-cta-layout {
  min-height: 280px;
  justify-content: center;
}

.cond-page #help .final-cta-title {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
}

.cond-page #help .final-cta-text {
  max-width: 42ch;
}

.cond-page #help .final-cta-family {
  object-position: 68% 18%;
}

.cond-page #popular,
.cond-page #az {
  background: var(--white);
}

.cond-page #categories {
  background: #f5f7fb;
}

.cond-page #why {
  background: #f5f7fb;
}

.cond-page #faq {
  background: var(--white);
}

.cond-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .cond-hero-grid,
  .cond-cats {
    grid-template-columns: 1fr;
  }

  .cond-popular-grid,
  .cond-az-grid,
  .cond-trust,
  .cond-cat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cond-cat-visual {
    order: -1;
  }
}

@media (max-width: 640px) {
  .cond-page .tx-section {
    padding: 32px 0;
  }

  .cond-popular-grid,
  .cond-az-grid,
  .cond-trust,
  .cond-cat-grid {
    grid-template-columns: 1fr;
  }

  .cond-search-box input {
    padding-right: 92px;
  }

  .cond-page #help .final-cta-layout {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cond-card,
  .cond-cat {
    transition: none;
  }
}
