/* ADAS Instruments catalogue site */
:root {
  --navy: #1a3c6e;
  --navy-deep: #132c52;
  --ink: #10233f;
  --steel: #51607a;
  --mist: #f4f7fc;
  --frost: #eef2fb;
  --line: #d5dded;
  --gold: #d9a53a;
  --gold-deep: #9a7220;
  --wa: #128c7e;
  --white: #fff;
  --head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", Arial, Helvetica, sans-serif;
  --toc-h: 3.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); margin: 0; }
p { margin: 0 0 1rem; }

.wrap { width: min(100% - 3rem, 72.5rem); margin-inline: auto; }
.narrow > * { max-width: 46rem; }
.skip { position: absolute; left: -999rem; top: 0; background: var(--gold); color: var(--ink); padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-block;
  font: 600 1.0625rem/1.2 var(--body);
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #e7b855; color: var(--ink); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: #0e7569; color: var(--white); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.975rem; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* Info bar (very top) and header */
.info { background: var(--navy-deep); color: var(--white); font-size: 0.875rem; line-height: 1.35; }
.info__in { display: flex; align-items: center; justify-content: space-between; gap: 0.35rem 2rem; padding-block: 0.5rem; }
.info p { margin: 0; }
.info__msg { text-wrap: balance; }
.info__contact { display: flex; gap: 1.75rem; margin-left: auto; white-space: nowrap; }
.info a { color: var(--white); text-decoration: none; }
.info a:hover { color: var(--white); text-decoration: underline; }
/* Language flags, always visible at the top of every page. The current language has the gold frame. */
.langs { display: flex; align-items: center; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.langs a { display: block; line-height: 0; padding: 2px; border: 2px solid transparent; border-radius: 4px; }
.langs a[aria-current] { border-color: var(--gold); }
.langs a:hover { border-color: rgba(255, 255, 255, 0.7); }
.langs .flag { width: 1.6rem; height: 1.07rem; margin: 0; vertical-align: top; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); }
.top { position: relative; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 1rem 2rem; padding-block: 0.6rem; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.9rem; }
.nav a, .menu summary { display: block; padding-block: 0.45rem; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover, .menu summary:hover { border-bottom-color: #a9b7cf; }
.nav a[aria-current], .menu.is-current summary { border-bottom-color: var(--gold); }
/* "Instruments" drop-down */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; display: inline-block; width: 0.42rem; height: 0.42rem; margin-left: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.2rem) rotate(45deg); }
.menu[open] summary::after { transform: translateY(0.05rem) rotate(-135deg); }
.menu__list { position: absolute; top: calc(100% + 0.55rem); left: -0.9rem; z-index: 45; min-width: 20rem; margin: 0; padding: 0.4rem; list-style: none; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 0 0 4px 4px; box-shadow: 0 14px 30px rgba(16, 35, 63, 0.16); }
.nav .menu__list a { padding: 0.65rem 0.8rem; border-bottom: 0; border-radius: 3px; white-space: normal; }
.nav .menu__list a:hover, .nav .menu__list a[aria-current] { background: var(--frost); }
.menu--lang .menu__list { min-width: 9.5rem; left: auto; right: -0.9rem; }
.flag { display: inline-block; width: 1.3rem; height: 0.87rem; margin-right: 0.5rem; vertical-align: -0.08em; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(16, 32, 60, 0.22); }
.foot .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }
/* Link tiles on the home page */
.tiles { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tiles li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tiles a { display: block; height: 100%; padding: 1rem 1.1rem 1.15rem; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 0 0 4px 4px; background: var(--white); color: var(--ink); text-decoration: none; }
.tiles a:hover { border-top-color: var(--gold); background: var(--mist); }
.tiles strong { display: block; font: 600 1.2rem/1.25 var(--head); }
.tiles span { display: block; margin-top: 0.3rem; color: var(--steel); line-height: 1.45; }
.brand { display: block; text-decoration: none; }
.brand__logo { height: 3.5rem; width: auto; }
.top__cta { display: flex; align-items: center; gap: 1.25rem; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); }
/* Banner photo: fills the right side and fades into the blue on its left edge */
.hero__art {
  position: absolute; top: 0; right: 0; width: 58%; height: calc(100% - 1.9rem);
  object-fit: cover; object-position: 80% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 8%, #000 62%);
  mask-image: linear-gradient(to right, transparent 8%, #000 62%);
}
.hero__art--jaws { object-position: 62% 50%; }
.hero.hero--long h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); max-width: 14ch; }
.tbl + p { margin-top: 1.6rem; }
.hero__in { position: relative; z-index: 1; padding-block: clamp(2.75rem, 7.5vw, 5.5rem); }
.hero__text { max-width: 36rem; }
.hero h1 { color: var(--white); font-size: clamp(3rem, 8.2vw, 6.25rem); font-weight: 700; line-height: 0.92; letter-spacing: -0.01em; }
.hero__lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 30rem; margin: 1.5rem 0 1.75rem; color: #dfe7f5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__facts { list-style: none; margin: 2.25rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.28); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 1.5rem; max-width: 30rem; font-weight: 500; color: #dfe7f5; }
.hero__photo { margin: 0; }
.hero__photo img { width: 100%; max-width: 27rem; margin-inline: auto; filter: drop-shadow(0 1.1rem 1.5rem rgba(5, 14, 32, 0.5)); }
.ph { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--frost); border: 1px dashed #9fb0cc; color: var(--steel); font-size: 0.95rem; text-align: center; padding: 1rem; }
.ph--hero { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.45); color: #dfe7f5; }

/* Centimetre scale, as on a catalogue page where instruments are shown to size */
.scale { position: relative; z-index: 1; display: flex; overflow: hidden; height: 1.9rem; border-top: 1px solid rgba(255, 255, 255, 0.4); }
.scale span {
  flex: 0 0 1cm;
  font: 500 0.7rem/1 var(--body);
  color: rgba(255, 255, 255, 0.6);
  padding: 0.8rem 0 0 0.2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0 1px, transparent 1px 1mm) left top / 100% 0.4rem no-repeat;
}

/* Contents bar */
.toc { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; overflow-x: auto; scrollbar-width: none; min-height: var(--toc-h); align-items: stretch; }
.toc ul::-webkit-scrollbar { display: none; }
.toc a { display: flex; align-items: center; height: 100%; white-space: nowrap; text-decoration: none; font-weight: 500; color: var(--steel); border-bottom: 3px solid transparent; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--ink); border-bottom-color: var(--gold); }

/* Sections */
.sec { padding-block: clamp(3rem, 7vw, 5.5rem); scroll-margin-top: var(--toc-h); }
.sec--tint { background: var(--mist); }
.sec h2 { font-size: clamp(1.9rem, 3.7vw, 2.85rem); font-weight: 700; line-height: 1.06; max-width: 22ch; margin-bottom: 1.1rem; }
.sec .wrap > h3, .two h3 { font-size: 1.4rem; font-weight: 600; line-height: 1.2; margin: 2.75rem 0 0.7rem; }
.lede { max-width: 46rem; }
.answer { font-size: 1.2rem; line-height: 1.55; }
.small { font-size: 0.95rem; color: var(--steel); max-width: 46rem; }

/* Instrument cards */
.cards { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
.card h4 { font-size: 1.2rem; font-weight: 600; margin: 0.8rem 0 0.2rem; }
.card p { margin: 0; font-size: 1rem; line-height: 1.45; }
.card .ph { aspect-ratio: 3 / 2; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border: 1px solid var(--line); background: var(--white); }
.card__pat { color: var(--steel); font-size: 0.95rem !important; margin-top: 0.3rem !important; }

/* Tables, in the manner of a catalogue size table */
.tbl { overflow-x: auto; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
thead th { text-align: left; font: 600 1.05rem/1.3 var(--head); color: var(--navy); border-top: 2px solid var(--navy); border-bottom: 1px solid var(--navy); padding: 0.65rem 1.25rem 0.65rem 0; }
tbody th, tbody td { text-align: left; vertical-align: top; padding: 0.7rem 1.25rem 0.7rem 0; border-bottom: 1px solid var(--line); }
tbody th { font-weight: 600; width: 26%; }
tbody td:nth-child(2) { width: 34%; }

/* Manufacturing steps: a real sequence, so it is numbered */
.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem 1.75rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 0.6rem; }
.steps li::before { content: counter(step); display: block; font: 700 2.6rem/1 var(--head); color: var(--gold-deep); }
.steps h3 { font-size: 1.25rem; font-weight: 600; margin: 0.35rem 0 0.3rem; }
.steps p { margin: 0; font-size: 1rem; line-height: 1.5; }

/* Two-column blocks */
.two { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.two h2 { max-width: none; }
.list { margin: 0.5rem 0 0; padding-left: 1.4rem; max-width: 44rem; }
.list li { margin-bottom: 0.6rem; padding-left: 0.25rem; }
.list--wide { max-width: 50rem; margin-bottom: 1.25rem; }
.note { background: var(--frost); border-left: 3px solid var(--gold); padding: 1.5rem 1.6rem 0.75rem; }
.note h3 { margin-top: 0 !important; }

/* Order terms */
.terms { margin: 1.75rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.terms > div { border-top: 1px solid var(--line); padding: 1.1rem 0 1.2rem; }
.terms dt { font: 600 1.25rem/1.25 var(--head); margin-bottom: 0.3rem; }
.terms dd { margin: 0; max-width: 34rem; }

/* FAQs */
.qa { border-bottom: 1px solid var(--line); max-width: 46rem; }
.qa:first-of-type { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.qa summary::after { content: "+"; font: 600 1.5rem/1 var(--head); color: var(--navy); flex: none; }
.qa[open] summary::after { content: "\2212"; }
.qa p { margin: 0 0 1.2rem; }

/* Heading band on the About, Contact and policy pages */
.phead { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); }
.phead__in { padding-block: clamp(2.25rem, 5.5vw, 4rem); }
.phead h1 { color: var(--white); font-size: clamp(2.3rem, 5.4vw, 3.75rem); font-weight: 700; line-height: 1; letter-spacing: -0.01em; max-width: 18ch; }
.phead__lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.5; max-width: 38rem; margin: 1.1rem 0 0; color: #dfe7f5; }

/* Policy pages: section list on the left, text on the right */
.policy { display: grid; grid-template-columns: 14rem minmax(0, 46rem); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.policy__nav { position: sticky; top: 1.5rem; font-size: 0.975rem; }
.policy__nav p { font: 600 1.1rem/1.2 var(--head); margin: 0 0 0.7rem; }
.policy__nav ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.policy__nav a { display: block; padding: 0.3rem 0 0.3rem 0.9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--steel); text-decoration: none; line-height: 1.35; }
.policy__nav a:hover { color: var(--ink); border-left-color: var(--gold); }
.prose > section { scroll-margin-top: 1.5rem; }
.sec .prose h2 { font-size: 1.55rem; line-height: 1.2; max-width: none; margin: 2.5rem 0 0.6rem; }
.sec .prose > section:first-of-type h2 { margin-top: 0; }
.prose ul { margin: 0 0 1rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.prose .tbl { margin: 0.25rem 0 1.25rem; }
.prose tbody th { width: 46%; }
.updated { color: var(--steel); font-size: 0.975rem; margin-bottom: 2rem; }

/* Contact page offices */
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem clamp(2rem, 5vw, 4rem); }
.office { border-top: 2px solid var(--navy); padding-top: 1.1rem; }
.sec .office h2 { font-size: 1.75rem; line-height: 1.15; margin-bottom: 0.15rem; }
.office__kind { color: var(--steel); font-weight: 500; margin-bottom: 1.1rem; }
.office dl { margin: 0; }
.office dl > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0 1rem; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.office dt { font-weight: 600; }
.office dd { margin: 0; overflow-wrap: anywhere; }

/* Call-to-action band */
.cta { background: var(--navy); color: var(--white); }
.cta__in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem 2.5rem; padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.cta h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.cta p { margin: 0.45rem 0 0; color: #dfe7f5; max-width: 34rem; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* RFQ */
.rfq { background: var(--navy); color: var(--white); }
.rfq h2 { color: var(--white); }
.rfq .lede { color: #dfe7f5; }
.rfq__alt { margin-top: 1.25rem; }
.rfq__alt a:not(.btn) { color: var(--white); }
.two--form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.form { background: var(--white); color: var(--ink); padding: clamp(1rem, 2.2vw, 1.6rem); border-radius: 4px; border-top: 4px solid var(--gold); }
.form .form__title { font-size: 1.4rem; font-weight: 700; line-height: 1.15; margin: 0 0 0.35rem; }
.form__intro { color: var(--steel); font-size: 0.95rem; line-height: 1.45; margin: 0 0 0.85rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.form label, .drop__name { display: block; font-size: 0.95rem; line-height: 1.3; font-weight: 600; margin-bottom: 0.7rem; }
.form .opt { font-weight: 400; font-size: 0.875em; color: var(--steel); }
.form input:not([type="file"]), .form textarea, .form select { display: block; width: 100%; margin-top: 0.25rem; font: 400 1rem/1.35 var(--body); color: var(--ink); padding: 0.4rem 0.65rem; border: 1px solid #a9b7cf; border-radius: 4px; background-color: var(--white); }
.form select { -webkit-appearance: none; appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2310233f' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 0.7rem; }
.form textarea { resize: vertical; }
.form ::placeholder { color: #7c8aa3; opacity: 1; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 0.9rem; }
.form__half { max-width: calc(50% - 0.45rem); }
.form__send { display: block; width: 100%; padding-block: 0.7rem; margin-top: 0.2rem; }
.form__hp { position: absolute !important; left: -999rem; }
.form__msg { margin: 0.7rem 0 0; font-weight: 500; min-height: 1.6em; }
.form__msg:empty { margin: 0; min-height: 0; }
.form__msg.is-ok { color: #0e6b48; }
.form__msg.is-err { color: #a3261b; }

/* Attach files */
.drop { margin-bottom: 0.7rem; }
.drop .drop__name { margin-bottom: 0.25rem; }
.drop__zone { border: 2px dashed #a9b7cf; border-radius: 4px; background: var(--mist); padding: 0.7rem 1rem; text-align: center; }
.drop__zone.is-over { border-color: var(--navy); background: var(--frost); }
.drop__zone:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.drop__icon { display: inline-block; vertical-align: -0.28em; width: 1.25rem; height: 1.25rem; margin-right: 0.35rem; color: var(--navy); }
.drop__cta { display: none; margin: 0 0 0.2rem; font-size: 0.95rem; font-weight: 600; }
.form .drop__pick { display: inline; margin: 0; font-size: inherit; font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.drop__input { display: block; margin: 0 auto 0.4rem; max-width: 100%; font: inherit; }
.drop__help { margin: 0 auto; font-size: 0.85rem; line-height: 1.4; font-weight: 400; color: var(--steel); }
.drop__list { list-style: none; margin: 0; padding: 0; }
.drop__list li { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.35rem; padding: 0.2rem 0.3rem 0.2rem 0.65rem; border: 1px solid var(--line); border-radius: 4px; font-size: 0.925rem; }
.drop__list .f-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.drop__list .f-size { flex: none; color: var(--steel); }
.drop__list button { flex: none; border: 0; background: none; color: #a3261b; font: 600 0.875rem/1 var(--body); padding: 0.4rem 0.45rem; border-radius: 4px; cursor: pointer; }
.drop__list button:hover { background: #fbeceb; }
.drop__err { margin: 0.4rem 0 0; color: #a3261b; font-size: 0.925rem; font-weight: 500; }
.drop__err:empty { display: none; }
/* With the script running, the plain file box is replaced by "Choose files or drag them here" */
.form.is-js .drop__cta { display: block; }
.form.is-js .drop__input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Footer */
.foot { background: var(--ink); color: #c9d4e6; font-size: 1rem; border-top: 3px solid var(--gold); padding-top: clamp(2.5rem, 5vw, 3.75rem); }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot p { margin: 0 0 0.35rem; }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1.35fr); gap: 2.5rem; }
.foot__logo { height: 3.5rem; width: auto; margin-bottom: 1rem; }
.foot__brand p { max-width: 20rem; }
.foot__marks { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.foot__marks li { border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 3px; padding: 0.3rem 0.65rem; font-size: 0.9rem; font-weight: 500; color: var(--white); }
.foot__h { font: 600 1.15rem/1.2 var(--head); color: var(--white); margin: 0 0 0.9rem; }
.foot__links { list-style: none; margin: 0; padding: 0; }
.foot__links li { margin-bottom: 0.55rem; overflow-wrap: anywhere; }
.foot address { font-style: normal; line-height: 1.55; margin-bottom: 0.9rem; }
.foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem 2rem; border-top: 1px solid rgba(255, 255, 255, 0.16); margin-top: clamp(2rem, 4vw, 3rem); padding-block: 1.1rem; font-size: 0.925rem; }
.foot__base p { margin: 0; }
.foot__social, .foot__lang { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.foot__lang a[aria-current] { font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; }

/* Mobile contact dock */
.dock { display: none; }

/* Large monitors: scale the whole page up so the text does not look small */
@media (min-width: 110rem) { html { font-size: 112.5%; } }
@media (min-width: 150rem) { html { font-size: 125%; } }

@media (max-width: 62rem) {
  .cards, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two, .two--form { grid-template-columns: minmax(0, 1fr); }
  .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policy { grid-template-columns: minmax(0, 1fr); }
  .policy__nav { position: static; }
}
@media (max-width: 48rem) {
  body { font-size: 1rem; padding-bottom: 4.25rem; }
  .wrap { width: min(100% - 2rem, 72.5rem); }
  .top .btn, .info__contact { display: none; }
  .info__in { flex-wrap: wrap; justify-content: center; text-align: center; }
  .langs { width: 100%; justify-content: center; gap: 0.7rem; }
  .langs .flag { width: 1.9rem; height: 1.27rem; }
  .brand__logo { height: 2.75rem; }
  .hero__art { width: 100%; opacity: 0.22; object-position: 82% 50%; -webkit-mask-image: none; mask-image: none; }
  .ph--hero { aspect-ratio: 16 / 9; }
  .terms, .form__row, .offices { grid-template-columns: minmax(0, 1fr); }
  .top__in { flex-wrap: wrap; row-gap: 0.1rem; }
  .nav { margin-left: 0; width: 100%; }
  .nav > ul { flex-wrap: wrap; gap: 0 1.3rem; }
  .nav a, .menu summary { font-size: 0.975rem; padding-block: 0.35rem; }
  .menu__list { left: 0; min-width: min(20rem, calc(100vw - 2.5rem)); }
  .menu--lang .menu__list { left: 0; right: auto; min-width: 9.5rem; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .foot__brand, .foot__in > div:last-child { grid-column: 1 / -1; }
  .form__half { max-width: none; }
  .form input:not([type="file"]), .form textarea, .form select { padding-block: 0.55rem; }
  .form__send { padding-block: 0.85rem; }
  table { min-width: 34rem; }
  .dock { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; position: fixed; inset: auto 0 0 0; z-index: 30; padding: 0.6rem 1rem; background: var(--white); border-top: 1px solid var(--line); }
  .dock .btn { padding: 0.75rem 0.5rem; }
}
@media (max-width: 26rem) {
  .cards { gap: 1.75rem 1rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .info, .nav, .toc, .dock, .hero__cta, .scale, .cta, .policy__nav, .foot__social, .foot__lang, .langs { display: none; }
}

/* Right-to-left pages (Arabic). The page sets <html dir="rtl">; these rules mirror what depends on direction. */
html[dir="rtl"] { --head: "Noto Sans Arabic", Tahoma, Arial, sans-serif; --body: "Noto Sans Arabic", Tahoma, Arial, sans-serif; }
[dir="rtl"] .skip { left: auto; right: -999rem; }
[dir="rtl"] .skip:focus { right: 0; }
[dir="rtl"] .form__hp { left: auto; right: -999rem; }
[dir="rtl"] .info__contact, [dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .menu summary::after { margin-left: 0; margin-right: 0.5rem; }
[dir="rtl"] .menu__list { left: auto; right: -0.9rem; }
[dir="rtl"] .menu--lang .menu__list { right: auto; left: -0.9rem; }
[dir="rtl"] .flag { margin-right: 0; margin-left: 0.5rem; }
[dir="rtl"] .langs .flag { margin: 0; }
[dir="rtl"] .hero__art { right: auto; left: 0; object-position: 20% 50%; -webkit-mask-image: linear-gradient(to left, transparent 8%, #000 62%); mask-image: linear-gradient(to left, transparent 8%, #000 62%); }
[dir="rtl"] .hero h1 { font-size: clamp(2.6rem, 6.6vw, 4.75rem); line-height: 1.25; letter-spacing: 0; }
[dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .terms dt, [dir="rtl"] .tiles strong, [dir="rtl"] thead th { line-height: 1.5; }
[dir="rtl"] .scale { direction: ltr; }
[dir="rtl"] thead th, [dir="rtl"] tbody th, [dir="rtl"] tbody td { text-align: right; padding-right: 0; padding-left: 1.25rem; }
[dir="rtl"] .list { padding-left: 0; padding-right: 1.4rem; }
[dir="rtl"] .list li { padding-left: 0; padding-right: 0.25rem; }
[dir="rtl"] .note { border-left: 0; border-right: 3px solid var(--gold); }
[dir="rtl"] .form select { padding-right: 0.65rem; padding-left: 2.2rem; background-position: left 0.75rem center; }
[dir="rtl"] .drop__icon { margin-right: 0; margin-left: 0.35rem; }
@media (max-width: 48rem) {
  [dir="rtl"] .nav { margin-right: 0; }
  [dir="rtl"] .hero__art { object-position: 18% 50%; -webkit-mask-image: none; mask-image: none; }
  [dir="rtl"] .menu__list, [dir="rtl"] .menu--lang .menu__list { left: auto; right: 0; }
}
