/* Bounded implementation states; approved tokens/cascade remain authoritative. */
html { background: var(--tx-semantic-surface); scroll-behavior: smooth; }
/* Underline the service name independently of its decorative arrow. */
#tx-global-v2 .rx-service-title:hover { text-decoration: none; }
#tx-global-v2 .rx-service-title .rx-service-label { color: inherit; min-width: 0; flex: 0 1 auto; }
#tx-global-v2 .rx-service-title:hover .rx-service-label { text-decoration: underline; text-underline-offset: 4px; }
#tx-global-v2 .rx-service-title .rx-service-arrow { transition: transform 160ms ease; }
#tx-global-v2 .rx-service-title:hover .rx-service-arrow { transform: translateX(3px); }
/* Keep each mapped action with its heading in the existing grid column. */
#tx-global-v2 .rx-panel-heading { min-width: 0; }
#tx-global-v2 .rx-panel-heading > .tx-button { margin-top: var(--tx-primitive-space-6); max-inline-size: 100%; white-space: normal; text-align: center; }
/* Home responsibilities use both rows of the panel instead of a tall prose column. */
#tx-global-v2 .rx-home #section-3 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
#tx-global-v2 .rx-home #section-3 .rx-panel-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
#tx-global-v2 .rx-home #section-3 .rx-panel-heading h2 { max-inline-size: 26ch; }
#tx-global-v2 .rx-home #section-3 .rx-panel-heading > .tx-button { margin-top: 0; }
@container (min-width: 900px) {
  #tx-global-v2 .rx-home #section-3 .rx-prose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  #tx-global-v2 .rx-home #section-3 .rx-prose > p { margin: 0; }
}
@container (max-width: 899px) {
  #tx-global-v2 .rx-panel-heading > .tx-button { display: flex; inline-size: 100%; }
  #tx-global-v2 .rx-home #section-3 .rx-panel-heading { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
#tx-global-v2 #enquiry-fields { min-width: 0; border: 0; padding: 0; margin: 0; }
#tx-global-v2 #enquiry-submit { min-inline-size: min(100%, 15rem); }
#tx-global-v2 #enquiry-feedback, #tx-global-v2 #enquiry-errors { margin-top: 20px; overflow-wrap: anywhere; }
/* Keep the existing live region in the DOM, without an empty visual strip. */
#tx-global-v2 #enquiry-feedback:empty { min-height: 0; height: 0; margin: 0; padding: 0; border: 0; }
#tx-global-v2 .form-error-summary { border: 1px solid var(--tx-semantic-error); background: var(--tx-semantic-error-surface); color: var(--tx-semantic-error); }
#tx-global-v2 .form-error-summary ul { list-style: disc; padding-left: 24px; }
#tx-global-v2 .form-error-summary a { display: inline-block; padding-block: 8px; }
#tx-global-v2 .field-error:empty { display: none; }
#tx-global-v2 .booking-fallback { margin-top: 20px; }
#tx-global-v2 #section-3 .booking-fallback + .tx-button { margin-top: var(--tx-primitive-space-6); }
#tx-global-v2 button[aria-disabled=true] { cursor: wait; }
#tx-global-v2 .visually-hidden, #tx-global-v2 .bot-field { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#tx-global-v2 :is(a, button, summary) { touch-action: manipulation; }
#tx-global-v2 .site-header .brand img { object-fit: cover; }
#tx-global-v2 :is(h1, h2, h3) { text-wrap: pretty; }
#tx-global-v2 .skip-link:focus-visible { z-index: 100; }
#tx-global-v2 .no-script-nav { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 20px; }
html:not(.js-ready) #tx-global-v2 :is(.menu-toggle, .main-nav) { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #tx-global-v2 .rx-service-title:hover .rx-service-arrow { transform: none; }
  #tx-global-v2 *, #tx-global-v2 *::before, #tx-global-v2 *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  #tx-global-v2 .tx-button { border: 1px solid ButtonText; }
  #tx-global-v2 :is(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid Highlight; }
  #tx-global-v2 .field [aria-invalid=true] { border: 2px solid Mark; }
}

/* WEB-014: related service navigation, scoped to the six service additions. */
#tx-global-v2 .rx-related-heading { display: grid; gap: 24px; align-items: center; }
#tx-global-v2 .rx-related-heading h2 { margin: 0; }
#tx-global-v2 .rx-related-heading .tx-button { width: 100%; }
#tx-global-v2 .rx-related-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--tx-primitive-space-6); margin-top: var(--tx-primitive-space-8); }
#tx-global-v2 .rx-related-grid article { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--tx-semantic-border); border-radius: var(--tx-semantic-radius); background: var(--tx-semantic-surface); }
#tx-global-v2 .rx-related-grid h3 { margin: 0; font-size: 24px; line-height: 1.4; }
#tx-global-v2 .rx-related-grid p { margin: 0; font-size: 16px; }
@container (min-width: 900px) {
  #tx-global-v2 .rx-related-heading { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; }
  #tx-global-v2 .rx-related-heading .tx-button { width: auto; }
  #tx-global-v2 .rx-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #tx-global-v2 .rx-related-grid article { padding: var(--tx-primitive-space-6); }
}

/* WEB022: native service select with an inset indicator and reserved text space. */
#tx-global-v2 #enquiry-service {
  appearance: none;
  -webkit-appearance: none;
  padding-inline: 16px 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m2 5 6 6 6-6' fill='none' stroke='%231e2528' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  text-overflow: ellipsis;
}
@media (forced-colors: active) {
  #tx-global-v2 #enquiry-service { appearance: auto; -webkit-appearance: auto; background-image: none; padding-inline-end: 16px; }
}
