/* ==========================================================
   office-number.css — secondary office landline reveal.
   Used by the footer on every page and the Contact page panel.
   Scoped class names only; no existing selector is modified.
   ========================================================== */

/* the block starts hidden in the HTML and is revealed by the script,
   so visitors without JavaScript never see an inert button */
.office-number[hidden] { display: none; }

.office-number {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  /* holds the row width steady when the button is swapped for the
     number, so surrounding content does not move */
  min-height: 1.5rem;
}

.office-number-label { white-space: nowrap; }

.office-number-btn {
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: 600;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.15em 0.7em;
  cursor: pointer;
  white-space: normal;
  line-height: 1.3;
}

.office-number-btn:hover { opacity: 0.85; }

.office-number-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.office-number-output:empty { display: none; }

.office-number-link {
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  white-space: nowrap;
  /* same vertical box as the button it replaces, so the row does not move */
  display: inline-block;
  padding: 0.15em 0;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  line-height: 1.3;
}

/* ── Contact page panel variant ── */
.contact-aside-card .office-number {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* reserves the button's rendered height so the card does not shrink on reveal */
  min-height: 3.35rem;
}

.contact-aside-card .office-number-btn {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  text-align: center;
  padding: 0.7em 1em;
  border-radius: var(--border-radius);
  border-width: 2px;
  font-size: 1rem;
}

.contact-aside-card .office-number-link {
  display: inline-block;
  font-size: 1.1rem;
  padding: 0.2em 0;
}

.contact-aside-card .office-number-output {
  display: block;
  margin-top: 0;
  text-align: center;
}

@media (max-width: 400px) {
  /* keep the footer row from being forced wider than the viewport */
  .office-number { gap: 0.3rem; }
  .office-number-btn { padding: 0.15em 0.55em; }
}

/* label that distinguishes the AI assistant line in the footer */
.footer-phone-label { white-space: nowrap; }
