/* Load after the existing Tailwind styles. Opt in with xtj-* classes. */
:root {
  --xtj-brand: #0a2463;
  --xtj-link: #2563eb;
  --xtj-accent: #ff6b35;
  --xtj-action: #c2410c;
  --xtj-action-hover: #9a3412;
  --xtj-ink: #0f172a;
  --xtj-muted: #475569;
  --xtj-surface: #f8fafc;
  --xtj-border: #cbd5e1;
}

#root { font-family: Arial, Helvetica, sans-serif; }
#root :is(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--xtj-link);
  outline-offset: 4px;
}
#root header :is(a, button):focus-visible,
#root .xtj-hero :is(a, button, input):focus-visible { outline-color: #fbbf24; }
#root [id] { scroll-margin-top: 7rem; }
#root .xtj-brand-name { font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
#root .xtj-header > .container { max-width: 1280px; }
#root .xtj-header nav a[aria-current="page"]:not(.xtj-btn) {
  color: #fed7aa;
  text-decoration: underline;
  text-underline-offset: 6px;
}
#root .xtj-menu-toggle { min-width: 44px; min-height: 44px; flex-shrink: 0; }
#root .xtj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
#root .xtj-btn.xtj-btn--primary { color: #fff; background: var(--xtj-action); }
#root .xtj-btn.xtj-btn--primary:hover { color: #fff; background: var(--xtj-action-hover); }
#root .xtj-btn--secondary { color: var(--xtj-brand); background: #fff; border-color: var(--xtj-border); }
#root .xtj-btn--secondary:hover { background: #eff6ff; }
#root .xtj-btn:disabled { cursor: wait; opacity: .65; }
#root .xtj-hero { background: var(--xtj-brand); }
#root .xtj-hero > .xtj-hero__image { opacity: .12; }
#root .xtj-hero .xtj-hero__content { padding-block: clamp(3rem, 7vw, 6rem); }
#root .xtj-hero h1 {
  max-width: 20ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}
#root .xtj-hero__intro { max-width: 56ch; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.6; }
#root .xtj-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.5rem; }
#root .xtj-part-request { max-width: 680px; }
#root .xtj-part-request label { display: block; margin-bottom: .5rem; font-weight: 700; }
#root .xtj-part-request__row { display: flex; gap: .75rem; }
#root .xtj-part-request input,
#root .xtj-rfq :is(input, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: .75rem;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
  color: var(--xtj-ink);
  font: inherit;
  line-height: 1.5;
}
#root .xtj-part-request input::placeholder { color: var(--xtj-muted); opacity: 1; }
#root .xtj-part-request button { flex-shrink: 0; }
#root .xtj-hero__hint { margin-top: .75rem; font-size: .875rem; line-height: 1.6; color: #e2e8f0; }
#root .xtj-hero__hint a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
#root .xtj-benefits h3 { font-style: normal; letter-spacing: 0; }
#root .xtj-benefits { padding-block: clamp(3rem, 6vw, 5rem); }
#root .xtj-card { border: 1px solid #e2e8f0; box-shadow: 0 3px 12px rgb(15 23 42 / .05); }
#root .xtj-card:hover { box-shadow: 0 6px 18px rgb(15 23 42 / .08); }
#root .xtj-text-link { color: var(--xtj-action); }
#root .xtj-category-card > * { min-width: 0; }
#root .xtj-category-card :is(h3, p),
#root .xtj-application-grid span { overflow-wrap: anywhere; }
#root .xtj-rfq { width: 100%; text-align: left; color: var(--xtj-ink); }
#root .xtj-rfq label { display: block; font-size: .875rem; font-weight: 700; }
#root .xtj-rfq label > :is(input, textarea) { display: block; margin-top: .4rem; font-weight: 400; }
#root .xtj-rfq__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1.5rem; }
#root .xtj-rfq__wide { grid-column: 1 / -1; }
#root .xtj-rfq__note { color: var(--xtj-muted); line-height: 1.6; font-size: .875rem; }
#root .xtj-rfq__result { padding: 1rem; border: 1px solid var(--xtj-border); border-radius: 8px; margin-top: 1rem; }
#root .xtj-rfq__result[hidden] { display: none; }
#root .xtj-rfq__result a { display: inline-block; padding-block: .5rem; color: #1d4ed8; text-decoration: underline; }
#root .xtj-rfq__result textarea { margin-block: .5rem; font-family: monospace; font-size: .875rem; }
@media (max-width: 639px) {
  #root .xtj-brand-name { max-width: 19ch; font-size: 1rem; }
  #root .xtj-hero__actions > *, #root .xtj-part-request__row > * { width: 100%; }
  #root .xtj-part-request__row { flex-direction: column; }
  #root .xtj-rfq__grid { grid-template-columns: minmax(0, 1fr); }
  #root .xtj-category-card { padding: 1.25rem; }
  #root .xtj-category-card > .flex { flex-direction: column; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  #root .xtj-btn, #root .xtj-card, #mobile-menu.active { transition: none; animation: none; transform: none; }
}

/* Incremental shared refinements for the original nine-page site. */
html { scroll-behavior: smooth; }
body { color: #0f172a; background: #fff; }
[hidden] { display: none !important; }
.xtj-skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; padding: 12px 18px; background: #fff; color: #0a2463; border: 2px solid #2563eb; border-radius: 6px; }
.xtj-skip-link:focus { top: 12px; }
#root .container { max-width: 1280px; }
#root .xtj-header { position: sticky; top: 0; z-index: 50; background: #0a2463; }
#root .xtj-header > .container { padding-block: 1rem; }
#root .xtj-header nav { gap: clamp(1rem, 2vw, 2rem); }
#root .xtj-header nav .xtj-nav-link { color: #fff; }
#root .xtj-header nav .xtj-nav-link:hover { color: #fed7aa; }
#root .xtj-header nav a:is([aria-current="page"], .xtj-nav-parent):not(.xtj-btn) { color: #fed7aa; text-decoration: underline; text-underline-offset: 6px; }
#root .xtj-header > .container > .flex { gap: 1rem; }
#root .xtj-logo { flex-shrink: 0; overflow: hidden; background: #fff; }
#root .xtj-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
#root .xtj-brand-name { white-space: normal; }
#root .xtj-section { padding-block: clamp(3rem, 6vw, 5rem); }
#root .xtj-page-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
#root main :is(h2, h3) { font-style: normal; letter-spacing: normal; }
#root main h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.2; }
#root main h3 { line-height: 1.35; }
#root main :is(p, li) { line-height: 1.65; }
#root main .xtj-card { border-color: #e2e8f0; box-shadow: 0 3px 12px rgb(15 23 42 / .05); transform: none; }
#root main .xtj-card:hover { border-color: #94a3b8; box-shadow: 0 6px 18px rgb(15 23 42 / .08); transform: none; }
#root main a.xtj-card:focus-visible { outline-color: #2563eb; }
#root main a.xtj-card:hover h3 { color: #0a2463; }
#root .xtj-accent-text, #root .xtj-text-link { color: #c2410c; }
#root .xtj-text-link { text-decoration: underline; text-underline-offset: 3px; }
#root .xtj-category-icon { display: block; width: 36px; height: 36px; color: #0a2463; }
#root .xtj-category-icon svg { width: 100%; height: 100%; }
#root .xtj-application-grid > * { min-width: 0; }
#root .xtj-breadcrumb { flex-wrap: wrap; row-gap: .5rem; }
#root .xtj-contact-hours { flex-wrap: wrap; gap: .5rem 1.5rem; }
#root .xtj-contact-hours > :last-child { margin-left: auto; text-align: right; }
#root .xtj-rfq select { width: 100%; min-height: 48px; padding: .75rem; border: 1px solid #94a3b8; border-radius: 6px; background: #fff; color: #0f172a; font: inherit; }
#root .xtj-rfq fieldset { min-width: 0; padding: 1rem; border: 1px solid #cbd5e1; border-radius: 8px; margin-top: 1.25rem; }
#root .xtj-rfq legend { padding-inline: .35rem; font-weight: 700; }
#root .xtj-rfq .xtj-mode-options { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
#root .xtj-rfq .xtj-mode-options label { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 400; cursor: pointer; }
#root .xtj-rfq .xtj-mode-options input { display: inline-block; width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; accent-color: #0a2463; }
#root .xtj-rfq__helper { background: #eff6ff; color: #1e3a8a; border-radius: 6px; padding: .75rem; font-size: .875rem; }
#root .xtj-rfq__actions { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
#root .xtj-rfq__result .xtj-btn--secondary { color: #0a2463; text-decoration: none; padding: .65rem 1rem; }
#root .xtj-rfq__result p[role="status"] { margin-bottom: .75rem; }
#root .xtj-rfq__note a, #root .xtj-bom-download { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
#root .xtj-bom-download { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1rem; font-weight: 600; }
#root .xtj-parameter-list li { padding-block: .25rem; }
#root footer .text-gray-400 { color: #cbd5e1; }
#root footer a { text-underline-offset: 3px; }
#root footer a:hover { text-decoration: underline; }
#mobile-menu { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 90px); overflow-y: auto; background: #0a2463; border-top: 1px solid rgb(255 255 255 / .18); box-shadow: 0 10px 20px rgb(0 0 0 / .18); }
#mobile-menu .xtj-nav-link { display: block; padding: 14px 20px; text-align: center; border-bottom: 1px solid rgb(255 255 255 / .1); }
#mobile-menu .mobile-cta { display: flex; margin: 12px 16px; }
.xtj-mobile-actions { display: none; }
#root .xtj-carousel { touch-action: pan-y; }
#root .xtj-carousel__prev, #root .xtj-carousel__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: rgb(0 0 0 / .65); }
#root .xtj-carousel__prev { left: 12px; }
#root .xtj-carousel__next { right: 12px; }
#root .xtj-carousel__prev:hover, #root .xtj-carousel__next:hover { background: #0a2463; }
#root .xtj-carousel__dots { gap: 0; bottom: 4px; }
#root .xtj-carousel__dot { position: relative; width: 44px; height: 44px; border: 0; background: transparent; }
#root .xtj-carousel__dot::after { content: ''; position: absolute; inset: 16px; border: 1px solid #fff; border-radius: 50%; background: #475569; }
#root .xtj-carousel__dot--active::after { background: #fff; border-color: #0a2463; box-shadow: 0 0 0 2px #0a2463; }
#root .xtj-gallery-caption { margin-top: .75rem; color: #475569; font-size: .875rem; line-height: 1.6; }
@media (max-width: 1023px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .xtj-mobile-actions { position: fixed; z-index: 60; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #cbd5e1; box-shadow: 0 -4px 16px rgb(15 23 42 / .06); }
  #root .xtj-mobile-actions .xtj-btn { min-height: 44px; padding: .6rem .5rem; font-size: .875rem; }
}
@media (max-width: 639px) {
  #root .xtj-header > .container { padding-block: .75rem; }
  #root .xtj-header > .container > .flex { gap: .5rem; }
  #root .xtj-benefits .mb-16 { margin-bottom: 2rem; }
  #root .xtj-card { padding: 1.25rem; }
  #root .xtj-contact-hours { display: block; }
  #root .xtj-contact-hours > span { display: block; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #root *, #root *::before, #root *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
