/* Shared production styling, extracted from layout-controls.js. */

  button,
  [role="button"],
  input[type="button"],
  input[type="submit"] {
    cursor: pointer !important;
  }

  button:disabled,
  input[type="button"]:disabled,
  input[type="submit"]:disabled {
    cursor: pointer !important;
  }

  header img[src*="/logo.png"] {
    filter:
      drop-shadow(0 4px 10px rgba(184, 137, 61, 0.38))
      drop-shadow(0 12px 28px rgba(0, 0, 0, 0.3)) !important;
  }

  .stallion-process-grid {
    align-items: stretch;
  }

  .stallion-process-card {
    position: relative;
    justify-content: center !important;
    min-height: 260px;
  }

  .stallion-process-card > .stallion-process-marker {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
  }

  .stallion-process-card > .stallion-process-copy {
    width: 100%;
  }

  .stallion-testimonials-grid {
    align-items: stretch;
  }

  .stallion-capabilities-grid {
    align-items: stretch;
    border-bottom: 1px solid rgba(16, 16, 16, 0.1);
  }

  .stallion-capability-wrap,
  .stallion-capability-card {
    height: 100%;
  }

  .stallion-capability-wrap {
    background: var(--paper, #f5f1e8);
  }

  .stallion-testimonial-wrap {
    height: 100%;
    min-height: 100%;
  }

  .stallion-testimonial-card {
    height: 100%;
    min-height: 320px !important;
    justify-content: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stallion-testimonial-card > .stallion-original-quote-mark {
    display: none !important;
  }

  .stallion-testimonial-card blockquote {
    margin-top: 0 !important;
  }

  .stallion-testimonial-card blockquote::before,
  .stallion-testimonial-card blockquote::after {
    color: var(--gold, #b8893d);
    font-size: 1.6em;
    line-height: 0;
    vertical-align: -0.18em;
  }

  .stallion-testimonial-card blockquote::before {
    content: "“";
    margin-right: 0.1em;
  }

  .stallion-testimonial-card blockquote::after {
    content: "”";
    margin-left: 0.08em;
  }

  .stallion-gallery-cta,
  .stallion-gallery-section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    padding: 0.7rem 1.15rem;
    border: 1px solid rgba(210, 165, 88, 0.58);
    border-radius: 999px;
    color: var(--gold-soft, #d2a558);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition:
      color 220ms ease,
      background-color 220ms ease,
      border-color 220ms ease,
      transform 220ms ease;
  }

  .stallion-gallery-cta {
    margin-top: 1.35rem;
    background: rgba(16, 16, 16, 0.35);
  }

  .stallion-gallery-cta:hover,
  .stallion-gallery-section-link:hover {
    color: #101010;
    background: var(--gold-soft, #d2a558);
    border-color: var(--gold-soft, #d2a558);
    transform: translateY(-1px);
  }

  .stallion-gallery-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .stallion-gallery-heading-row h2 {
    margin-bottom: 0 !important;
  }

  .stallion-inline-gallery img {
    cursor: pointer !important;
  }

  .stallion-footer-social-dock {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    /* Six 2.65rem icons plus five 0.55rem gaps and the padding came to 315px inside a 308px
       column. width: fit-content wanted to grow, max-width: 100% would not let it, and the icons
       are flex: 0 0 auto -- so the last one (LinkedIn) rendered 1px OUTSIDE the rounded border.
       The tighter gap makes the row fit; flex-wrap is the backstop so a narrower column or a
       seventh icon wraps instead of spilling over the border again. */
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem !important;
    width: fit-content;
    max-width: 100%;
    margin-top: 0.75rem !important;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.18);
  }

  .stallion-footer-social-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    /* 2.65rem left the six icons needing 309.6px inside a 308px column -- so close that the row
       either spilled past the border or wrapped onto a second line. 2.5rem brings the row to
       ~295px, which keeps it on one line with real headroom instead of a pixel-perfect fit that
       any font or padding change would break again. */
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.055);
    cursor: pointer;
    transition:
      color 200ms ease,
      border-color 200ms ease,
      background-color 200ms ease,
      transform 200ms ease;
  }

  .stallion-footer-social-link:hover,
  .stallion-footer-social-link:focus-visible {
    color: var(--gold-soft, #d2a558);
    border-color: rgba(210, 165, 88, 0.62);
    background: rgba(210, 165, 88, 0.12);
    transform: translateY(-2px);
    outline: none;
  }

  .stallion-footer-social-link svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  .stallion-menu-social-dock {
    margin-top: 0 !important;
  }

  .stallion-menu-direct-link {
    display: block;
    width: fit-content;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color 200ms ease;
  }

  .stallion-menu-direct-link:hover,
  .stallion-menu-direct-link:focus-visible {
    color: var(--gold-soft, #d2a558);
    outline: none;
  }

  .stallion-address-link {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-color: rgba(184, 137, 61, 0.42);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    cursor: pointer;
    transition:
      color 200ms ease,
      text-decoration-color 200ms ease;
  }

  .stallion-address-link:hover,
  .stallion-address-link:focus-visible {
    color: var(--gold-soft, #d2a558);
    text-decoration-color: currentColor;
    outline: none;
  }

  @media (min-width: 768px) {
    .stallion-footer-links-grid {
      grid-template-columns: minmax(0, 1.5fr) minmax(7rem, 0.7fr) 19.25rem !important;
    }

    .stallion-footer-links-grid > :first-child {
      grid-column: span 1 / span 1 !important;
    }
  }

  @media (min-width: 768px) and (max-width: 1023px) {
    .stallion-process-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .stallion-testimonials-grid {
      grid-template-columns: minmax(0, 1fr) !important;
    }
  }

  @media (max-width: 767px) {
    .stallion-process-card {
      min-height: 220px !important;
      padding-top: 2rem !important;
      padding-bottom: 2rem !important;
    }

    .stallion-testimonial-card {
      min-height: 280px !important;
      padding-top: 2.25rem !important;
      padding-bottom: 2.25rem !important;
    }

    .stallion-gallery-cta,
    .stallion-gallery-section-link {
      width: 100%;
    }

    .stallion-gallery-heading-row {
      align-items: stretch;
      flex-direction: column;
    }

    .stallion-footer-social-dock {
      gap: 0.4rem !important;
      padding: 0.5rem;
    }

    .stallion-footer-reach {
      grid-column: 1 / -1;
    }

    .stallion-footer-social-link {
      width: 2.35rem;
      height: 2.35rem;
    }
  }
