/* Static equivalents of DS component states that the prototype drove from React state.
   Values come from the DS Button/Input sources (archive 3, components/forms). */
a[data-ds-variant="primary"]:hover, button[data-ds-variant="primary"]:not(:disabled):hover { background: var(--action-primary-hover) !important; }
a[data-ds-variant="primary"]:active, button[data-ds-variant="primary"]:not(:disabled):active { background: var(--action-primary-active) !important; }
a[data-ds-variant="accent"]:hover, button[data-ds-variant="accent"]:not(:disabled):hover { background: var(--action-accent-hover) !important; color: var(--navy-950) !important; }
a[data-ds-variant="accent"]:active, button[data-ds-variant="accent"]:not(:disabled):active { background: var(--action-accent-active) !important; }
a[data-ds-variant="outline"]:hover, button[data-ds-variant="outline"]:not(:disabled):hover,
a[data-ds-variant="ghost"]:hover, button[data-ds-variant="ghost"]:not(:disabled):hover { background: var(--navy-50) !important; }
a[data-ds-variant="outlineInverse"]:hover, button[data-ds-variant="outlineInverse"]:not(:disabled):hover { background: rgba(255,255,255,.08) !important; color: var(--white) !important; }
a[data-ds-variant="outlineInverse"]:active, button[data-ds-variant="outlineInverse"]:not(:disabled):active { background: rgba(255,255,255,.14) !important; }
[data-ds-variant]:focus-visible { box-shadow: var(--shadow-focus) !important; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--brass-500) !important; box-shadow: var(--shadow-focus) !important; }
a:focus-visible, button:focus-visible:not([data-ds-variant]) { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
[data-faq-panel][hidden] { display: none !important; }
[data-consult-form] :disabled { cursor: not-allowed; }
[data-image-pending] { position: absolute; inset: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; } }

/* Mobile header (<=900px): wordmark | CTA | burger; nav opens as a panel under the sticky header.
   Archive (2) only wraps the desktop nav, which overlapped and overflowed at 390px. */
.sl-burger { display: none; flex: none; width: 44px; height: 44px; place-items: center; padding: 0; background: transparent; color: var(--white); border: 1px solid var(--border-on-inverse); border-radius: var(--radius-sm); cursor: pointer; }
@media (max-width: 900px) {
  .sl-topline-inner { justify-content: center !important; gap: 6px 18px !important; padding-top: 8px !important; padding-bottom: 8px !important; }
  .sl-topline-inner > div { white-space: normal !important; flex-wrap: wrap; justify-content: center; gap: 6px 18px !important; }
  .sl-header-inner { height: 72px !important; gap: 12px !important; }
  /* Overlay the mobile navigation only; keep the contact strip above the hero. */
  .sl-header[data-scroll-header] + #top { margin-top: -72px !important; }
  .sl-burger { display: inline-grid; }
  .sl-header-cta { margin-left: auto; }
  .sl-nav { display: none !important; }
  .sl-header.is-open { background: var(--navy-950) !important; }
  .sl-header.is-open .sl-nav { display: flex !important; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch !important; gap: 0 !important; row-gap: 0 !important;
    padding: 8px clamp(16px, 5vw, 64px) 24px; background: var(--navy-950); border-bottom: 1px solid var(--border-on-inverse); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 72px); overflow-y: auto; white-space: normal !important; font-size: 14px !important; letter-spacing: .12em !important; }
  .sl-header.is-open .sl-nav a { padding: 16px 0; border-bottom: 1px solid var(--border-on-inverse); }
}
@media (max-width: 600px) {
  .sl-topline-inner, .sl-header-inner { padding-left: 16px !important; padding-right: 16px !important; }
  .sl-header-inner { gap: 10px !important; }
  .sl-wordmark { flex-direction: column; align-items: flex-start !important; gap: 0 !important; line-height: 1.05; }
  .sl-wordmark span { font-size: 19px !important; }
  .sl-header-cta { white-space: normal !important; text-align: center; height: auto !important; min-height: 40px; max-width: 128px; padding: 6px 10px !important; font-size: 10px !important; line-height: 1.25; }
  .sl-burger { width: 40px; height: 40px; }
  .sl-topline-inner a, .sl-topline-inner span { font-size: 13px !important; }
}
@media (max-width: 600px) {
  .sl-topline-inner > div { flex: 1 1 100% !important; min-width: 0; }
  /* Long (localized) CTA labels wrap instead of widening the page. */
  [data-ds-variant] { white-space: normal !important; max-width: 100%; height: auto !important; min-height: var(--control-h-md); padding-top: 10px !important; padding-bottom: 10px !important; text-align: center; line-height: 1.3; }
  .sl-header-cta { min-height: 40px; padding-top: 6px !important; padding-bottom: 6px !important; }
  div:has(> [data-consult-form]) { padding: 24px !important; }
  [data-consult-form] [style*="minmax(200px"] { grid-template-columns: 1fr !important; }
}
/* The practice grid needs 1,000px inside its section to display two columns. */
@media (max-width: 1112px) {
  #practice > div > :first-child { position: static !important; }
}
/* Tracked uppercase breaks clusters in non-Latin/Cyrillic scripts (DS report item 3): no tracking there. */
:lang(fa) [style*="letter-spacing"], :lang(ur) [style*="letter-spacing"], :lang(hi) [style*="letter-spacing"], :lang(mr) [style*="letter-spacing"],
:lang(pa) [style*="letter-spacing"], :lang(ta) [style*="letter-spacing"], :lang(gu) [style*="letter-spacing"], :lang(bn) [style*="letter-spacing"] { letter-spacing: 0 !important; }
@media (max-width: 600px) {
  /* A single long word (e.g. Tamil hero) must not widen the grid track. */
  h1, h2, h3 { overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  /* Narrow phones (320-360) with long localized labels: label/value rows wrap, grid items may shrink. */
  [style*="justify-content: space-between"][style*="gap: 24px"] { flex-wrap: wrap; }
  [style*="display: grid"] > * { min-width: 0; }
}
@media (max-width: 400px) {
  footer [style*="clamp(48px, 7vw, 104px)"] { font-size: 40px !important; }
}
@media (max-width: 600px) {
  a[href^="mailto:"], a[href^="mailto:"] * { overflow-wrap: anywhere; min-width: 0; }
}
