/* ============================================================
   Furniture Terms Glossary — Warm Modern (UI v2, Phase 6)
   Tokens: headerStyle.php :root — no hex literals here.
   ============================================================ */

.ft-layout {
  max-width: var(--tch-container-narrow);
  margin: 0 auto;
  padding: var(--tch-space-4) 0 var(--tch-space-8);
}

/* Hero */
.ft-hero {
  text-align: center;
  padding: var(--tch-space-3) 0 var(--tch-space-6);
}
.ft-hero .tch-eyebrow {
  margin-bottom: var(--tch-space-2);
}
.ft-title {
  margin: 0 0 var(--tch-space-3);
}
.ft-subtitle {
  font-size: var(--tch-text-base);
  color: var(--tch-muted);
  margin: 0 auto;
  max-width: 60ch;
  line-height: 1.65;
}

/* Controls: search + A-Z */
.ft-controls {
  background: var(--tch-surface);
  border: 1px solid var(--tch-line);
  border-radius: var(--tch-radius-lg);
  box-shadow: var(--tch-shadow-sm);
  padding: var(--tch-space-5) var(--tch-space-5) var(--tch-space-4);
  margin-bottom: var(--tch-space-6);
}

/* Search */
.ft-search-form { margin-bottom: var(--tch-space-4); }
.ft-search-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--tch-line);
  border-radius: var(--tch-radius-pill);
  overflow: hidden;
  background: var(--tch-surface-warm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ft-search-wrap:focus-within {
  border-color: var(--tch-brand);
  background: var(--tch-surface);
  box-shadow: var(--tch-shadow-sm);
}
.ft-search-icon {
  width: 18px;
  height: 18px;
  margin: 0 var(--tch-space-2) 0 var(--tch-space-4);
  flex-shrink: 0;
}
.ft-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--tch-font-body);
  font-size: 14px;
  color: var(--tch-text);
  padding: 10px 0;
}
.ft-search-input::placeholder { color: var(--tch-muted); }
.ft-search-btn {
  background: var(--tch-brand);
  color: #fff; /* matches components.css text-on-brand */
  border: none;
  padding: 0 var(--tch-space-5);
  height: 42px;
  font-family: var(--tch-font-body);
  font-size: var(--tch-text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.ft-search-btn:hover { background: var(--tch-brand-dark); }

/* A-Z nav */
.ft-az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ft-az-link {
  display: inline-block;
  min-width: 30px;
  text-align: center;
  padding: 5px 8px;
  border: 1px solid var(--tch-line);
  border-radius: var(--tch-radius-sm);
  font-size: var(--tch-text-sm);
  font-weight: 500;
  color: var(--tch-ink-2);
  text-decoration: none;
  transition: background 0.13s, color 0.13s, border-color 0.13s;
}
.ft-az-link:hover {
  background: var(--tch-brand);
  color: #fff; /* matches components.css text-on-brand */
  border-color: var(--tch-brand);
}
.ft-az-link.active {
  background: var(--tch-brand);
  color: #fff; /* matches components.css text-on-brand */
  border-color: var(--tch-brand);
}
.ft-az-nav--bottom {
  margin-top: var(--tch-space-6);
  padding-top: var(--tch-space-5);
  border-top: 1px solid var(--tch-line);
}

/* Terms section */
.ft-terms-section {
  background: var(--tch-surface);
  border: 1px solid var(--tch-line);
  border-radius: var(--tch-radius-lg);
  box-shadow: var(--tch-shadow-sm);
  padding: var(--tch-space-6);
}
.ft-section-heading {
  font-family: var(--tch-font-display);
  font-size: var(--tch-text-lg);
  font-weight: 500;
  color: var(--tch-ink);
  margin: 0 0 var(--tch-space-5);
  padding-bottom: var(--tch-space-3);
  border-bottom: 1px solid var(--tch-line);
}

/* Glossary dl */
.ft-glossary { margin: 0; padding: 0; }
.ft-entry {
  padding: var(--tch-space-3) 0;
  border-bottom: 1px solid var(--tch-line);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--tch-space-3);
  align-items: baseline;
}
.ft-entry:last-child { border-bottom: none; }
.ft-term {
  font-size: 14px;
  font-weight: 700;
  color: var(--tch-ink);
  padding-left: var(--tch-space-4);
  position: relative;
}
.ft-term::before {
  content: "\203A"; /* › */
  color: var(--tch-brand);
  font-weight: 600;
  position: absolute;
  left: 0;
  top: 0;
}
.ft-def {
  font-size: 14px;
  color: var(--tch-ink-2);
  line-height: 1.65;
  margin: 0;
}

.ft-no-results {
  text-align: center;
  padding: var(--tch-space-7) 0;
  color: var(--tch-muted);
  font-size: var(--tch-text-base);
}
.ft-no-results a { color: var(--tch-brand); text-decoration: none; }
.ft-no-results a:hover { color: var(--tch-brand-dark); text-decoration: underline; }

/* Responsive */
@media (max-width: 640px) {
  .ft-controls { padding: var(--tch-space-4); }
  .ft-terms-section { padding: var(--tch-space-5) var(--tch-space-4); }
  .ft-entry {
    grid-template-columns: 1fr;
    gap: var(--tch-space-1);
  }
}
