/* Site-wide additions on top of the design-canvas output.
 *
 * Everything is !important because the sources set these properties as inline
 * style attributes, which no stylesheet selector can outrank on specificity.
 */

/* ---------------------------------------------------------------
   Contact call to action
   The sources ship name/organization/message fields and a
   type="button" with no form, no action and no handler — a visitor
   could type an inquiry, press send, and nothing would happen. The
   fields are replaced at build time with a real published address.
   --------------------------------------------------------------- */

.tdf-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tdf-contact-label {
  margin: 0;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6c66;
}

.tdf-contact-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 48px;
  padding: 13px 20px;
  background: #0a0a0a;
  color: #fff !important;
  border: 0;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  word-break: break-all;
  transition: background 0.18s cubic-bezier(0.23, 1, 0.32, 1);
}

.tdf-contact-link:hover {
  background: #6f58ff;
  color: #fff !important;
}

.tdf-contact-link:focus-visible {
  outline: 2px solid #6f58ff;
  outline-offset: 2px;
}

.tdf-contact-note {
  margin: 0;
  max-width: 46ch;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #5a5a5a;
}

/* ---------------------------------------------------------------
   Readability floors
   DESIGN_SYSTEM.md sets mono micro-type at 9-11px, but some elements
   compute as low as 7.5px, and a number of links and buttons are
   under 32px tall. These set a floor without touching the design's
   intended hierarchy.
   --------------------------------------------------------------- */

.tdf-microfloor {
  font-size: 9.5px !important;
}

/* Give in-flow links and buttons a real touch target on coarse
   pointers, where the 44px guideline actually matters. */
@media (pointer: coarse) {
  main a,
  footer a,
  main button {
    min-height: 32px;
  }

  .tdf-navpanel a {
    min-height: 52px;
  }
}
