/* ==========================================================================
   IDIS model-number nomenclature guide (support-faq.html only)
   ========================================================================== */

.nom-intro {
  margin-bottom: 8px;
}

.nom-block {
  margin-bottom: 48px;
}

.nom-block:last-child {
  margin-bottom: 0;
}

.nom-block h4,
.nom-block h3 {
  color: var(--idis-navy);
  font-size: 17px;
  margin-bottom: 18px;
}

.nom-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  direction: ltr;
  unicode-bidi: isolate;
}

.nom-box {
  flex: none;
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  border: 1.5px solid var(--idis-teal);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--idis-navy);
  background: var(--idis-teal-pale);
}

.nom-box--fixed {
  background: var(--idis-teal);
  color: var(--idis-white);
}

.nom-box--dotted {
  border-style: dashed;
  border-color: var(--idis-border);
  background: transparent;
  color: var(--idis-text-muted);
  font-size: 12px;
}

.nom-dash {
  font-weight: 700;
  color: var(--idis-text-muted);
  padding: 0 2px;
}

.nom-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
}

.nom-legend__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.nom-legend__num {
  flex: none;
  color: var(--idis-teal-dark);
  font-weight: 700;
  font-size: 15px;
}

.nom-legend__item h5 {
  color: var(--idis-navy);
  font-size: 14px;
  margin-bottom: 4px;
}

.nom-legend__item p {
  margin: 0;
  font-size: 13px;
  color: var(--idis-text-muted);
  line-height: 1.6;
}

.nom-legend__item p span.code {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-weight: 700;
  color: var(--idis-navy);
}

/* Compact code reference tables (Extension letters etc.) */
.nom-code-tables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.nom-code-table h5 {
  color: var(--idis-navy);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--idis-border);
}

.nom-code-table table {
  width: 100%;
  border-collapse: collapse;
}

.nom-code-table td {
  padding: 6px 0;
  font-size: 13px;
  color: var(--idis-text);
  border-bottom: 1px solid var(--idis-border);
}

.nom-code-table td:last-child {
  width: 40px;
  text-align: center;
  font-weight: 700;
  color: var(--idis-teal-dark);
  direction: ltr;
  unicode-bidi: isolate;
}

/* This one accordion item needs far more room than a regular FAQ answer */
.faq-item--guide .faq-item__a {
  max-height: 0;
}

.faq-item--guide.is-open .faq-item__a {
  max-height: 6000px;
}

@media (max-width: 700px) {
  .nom-legend,
  .nom-code-tables {
    grid-template-columns: 1fr;
  }

  .nom-box {
    min-width: 36px;
    height: 36px;
    font-size: 12px;
  }
}
