/* PHONE CODES 2026-09-24
   Scoped to .phones-dir / #archive-note-phones-2026.
   Dedicated module — do not merge into adaptive tip races.
   Matches streets-list visual language (teal ink, no purple/cream). */

.phones-dir {
  --ph-ink: #1c2430;
  --ph-muted: #5a6573;
  --ph-line: #d7dde6;
  --ph-bg: #f3f6fa;
  --ph-card: #ffffff;
  --ph-accent: #0b5f8a;
  --ph-accent-soft: #e6f2f8;
  --ph-code: #0a4d6e;
  --ph-code-bg: #e8f4fb;
  color: var(--ph-ink);
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 1.5rem;
}

#archive-note-phones-2026 {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.phones-dir__hero {
  padding: 1.1rem 1.15rem 1.25rem;
  margin: 0 0 1rem;
  background:
    linear-gradient(135deg, rgba(11, 95, 138, 0.1), rgba(243, 246, 250, 0.95) 45%, #eef3f8),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 10px,
      rgba(11, 95, 138, 0.03) 10px,
      rgba(11, 95, 138, 0.03) 11px
    );
  border: 1px solid var(--ph-line);
  border-left: 4px solid var(--ph-accent);
  animation: phones-fade-in 0.55s ease both;
}

.phones-dir__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ph-accent);
  font-weight: 700;
}

.phones-dir__title {
  margin: 0 0 0.45rem;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ph-ink);
}

.phones-dir__lead {
  margin: 0;
  max-width: 42rem;
  color: var(--ph-muted);
  font-size: 0.98rem;
}

.phones-dir__pill {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: var(--ph-accent-soft);
  color: var(--ph-accent);
  font-weight: 700;
  font-size: 0.9em;
}

.phones-dir__toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 0.85rem 0.95rem;
  margin: 0 0 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--ph-line);
  backdrop-filter: blur(6px);
  animation: phones-fade-in 0.65s ease 0.08s both;
}

.phones-dir__search-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--ph-muted);
}

.phones-dir__search-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.phones-dir__search {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.3;
  padding: 0.65rem 0.8rem;
  border: 1px solid #b7c3d2;
  background: #fff;
  color: var(--ph-ink);
  border-radius: 2px;
}

.phones-dir__search:focus {
  outline: 2px solid var(--ph-accent);
  outline-offset: 1px;
}

.phones-dir__clear {
  border: 1px solid var(--ph-line);
  background: var(--ph-bg);
  color: var(--ph-ink);
  padding: 0 0.85rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.phones-dir__count {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--ph-muted);
}

.phones-dir__alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0;
}

.phones-dir__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ph-accent);
  background: var(--ph-accent-soft);
  border: 1px solid #c5d9e6;
  transition: background 0.2s ease, transform 0.15s ease;
}

.phones-dir__letter:hover {
  background: #d5eaf4;
  transform: translateY(-1px);
}

.phones-dir__group {
  margin: 0 0 1.1rem;
  scroll-margin-top: 4.5rem;
}

.phones-dir__letter-title {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: var(--ph-accent);
  border-bottom: 1px solid var(--ph-line);
  padding-bottom: 0.25rem;
}

.phones-dir__ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ph-line);
  background: var(--ph-card);
}

.phones-dir__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--ph-line);
  font-size: 0.98rem;
}

.phones-dir__row:last-child {
  border-bottom: 0;
}

.phones-dir__row:nth-child(even) {
  background: #f7fafc;
}

.phones-dir__place {
  color: var(--ph-ink);
  overflow-wrap: anywhere;
}

.phones-dir__code {
  display: inline-block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ph-code);
  background: var(--ph-code-bg);
  padding: 0.28rem 0.55rem;
  border: 1px solid #b9d7ea;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.phones-dir__code:hover {
  background: #d3ebf7;
}

.phones-dir__empty {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: #fff8e8;
  border: 1px solid #e8d4a8;
  color: #6a4e18;
}

.phones-dir__foot {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--ph-muted);
}

@keyframes phones-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .phones-dir__title {
    font-size: 1.35rem;
  }

  .phones-dir__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.75rem 0.7rem;
  }

  .phones-dir__code {
    justify-self: start;
  }

  .phones-dir__toolbar {
    position: static;
  }
}
