/* Rail Logistic page system. Every public page wraps its content in .rl.
   Navy ground, white paper, orange reserved for action. Square corners, hairline rules. */

.rl {
  --rl-navy: #001f4d;
  --rl-navy-deep: #00163a;
  --rl-orange: #ff8c00;
  --rl-orange-hover: #ffa033;
  --rl-ink: #001f4d;
  --rl-text: #3d4b5f;
  --rl-line: #d5dce6;
  --rl-paper: #f3f5f8;
  --rl-white: #ffffff;
  --rl-on-navy: #c3cddb;
  --rl-line-navy: rgba(255, 255, 255, 0.16);
  --rl-ok: #0b6b3a;
  --rl-ok-bg: #e2f2e8;
  --rl-err: #b42318;
  --rl-err-bg: #fdecea;
  --rl-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --rl-pad: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --rl-dir: 1;

  color: var(--rl-text);
  font-family: var(--font-main, "Montserrat", sans-serif);
  font-size: 1rem;
  line-height: 1.6;
}

html[dir="rtl"] .rl {
  --rl-dir: -1;
  font-family: var(--font-ar, "Cairo", sans-serif);
}

/* One font per script: Montserrat for Latin, Cairo for Arabic (Montserrat has no Arabic glyphs). */
html[dir="rtl"] {
  --font-main: var(--font-ar);
  --font-display: var(--font-ar);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* Editor content saved in the database carries its own inline fonts. */
.rl [style*="font-family"] {
  font-family: inherit !important;
}

.rl *,
.rl *::before,
.rl *::after {
  box-sizing: border-box;
}

/* Resets use :where() so they never outrank the component classes below. */
:where(.rl) :where(h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd, figure, blockquote) {
  margin: 0;
  padding: 0;
}

:where(.rl) a {
  margin: 0;
  color: inherit;
  text-decoration: none;
}

:where(.rl) :where(ul, ol) {
  list-style: none;
}

:where(.rl) img {
  max-width: 100%;
  height: auto;
}

.rl ::selection {
  background: var(--rl-orange);
  color: var(--rl-navy);
}

.rl :focus-visible {
  outline: 3px solid var(--rl-navy);
  outline-offset: 3px;
}

.rl .rl-dark :focus-visible,
.rl-dark :focus-visible {
  outline-color: var(--rl-orange);
}

.rl-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.rl-wrap--narrow {
  max-width: 880px;
}

/* ---------- Type ---------- */

.rl-h1 {
  max-width: 22ch;
  color: var(--rl-white);
  font-family: inherit;
  font-size: clamp(2.125rem, 1.35rem + 2.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.rl-h2 {
  color: var(--rl-ink);
  font-family: inherit;
  font-size: clamp(1.875rem, 1.35rem + 1.7vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1rem;
}

.rl-h2--light {
  color: var(--rl-white);
}

.rl-h3 {
  color: var(--rl-ink);
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

html[dir="rtl"] .rl-h1,
html[dir="rtl"] .rl-h2,
html[dir="rtl"] .rl-h3 {
  letter-spacing: 0;
  line-height: 1.3;
}

.rl-intro {
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.rl-intro--light {
  color: var(--rl-on-navy);
}

.rl-section-head {
  margin-bottom: 2.5rem;
}

.rl-section-head .rl-intro {
  margin-bottom: 0;
}

.rl-section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.rl-section-head--row .rl-h2 {
  margin-bottom: 0;
}

/* ---------- Links & buttons ---------- */

.rl-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--rl-orange);
  color: var(--rl-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  transition: border-color 0.2s ease;
}

.rl-link:hover {
  border-bottom-color: var(--rl-ink);
}

.rl-link--light {
  color: var(--rl-white);
}

.rl-link--light:hover {
  border-bottom-color: var(--rl-white);
}

.rl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.rl-link i,
.rl-btn i,
.rl-index-arrow,
.rl-row-more i {
  font-size: 0.8em;
  transition: translate 0.35s var(--rl-ease);
}

.rl-link:hover i,
.rl-btn:hover i,
.rl-index-row:hover .rl-index-arrow,
a.rl-row:hover .rl-row-more i {
  translate: calc(4px * var(--rl-dir)) 0;
}

.rl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  margin: 0;
  padding: 0.875rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 2px;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.rl-btn--primary {
  background: var(--rl-orange);
  color: var(--rl-navy);
}

.rl-btn--primary:hover {
  background: var(--rl-orange-hover);
  color: var(--rl-navy);
}

.rl-btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--rl-white);
}

.rl-btn--ghost:hover {
  background: var(--rl-white);
  border-color: var(--rl-white);
  color: var(--rl-navy);
}

.rl-btn--outline {
  border-color: var(--rl-navy);
  color: var(--rl-navy);
}

.rl-btn--outline:hover {
  background: var(--rl-navy);
  color: var(--rl-white);
}

.rl-btn--small {
  min-height: 44px;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
}

.rl-btn:disabled,
.rl-btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.rl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* ---------- Page header ---------- */

.rl-head {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5rem);
  overflow: hidden;
  background: var(--rl-navy-deep);
  color: var(--rl-white);
  isolation: isolate;
}

.rl-head-media,
.rl-head-bg,
.rl-head-scrim {
  position: absolute;
  inset: 0;
}

.rl-head-media {
  z-index: -2;
}

.rl-head-bg {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.rl-head-bg.is-active {
  opacity: 1;
}

/* Drawn fallback: the art sits on the end side, so keep that side in view on narrow screens
   and mirror it for Arabic, where the scrim is lightest on the left. */
.rl-head-bg--art {
  background-position: 85% center;
}

html[dir="rtl"] .rl-head-bg--art {
  transform: scaleX(-1);
}

.rl-head-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 22, 58, 0.94) 0%, rgba(0, 22, 58, 0.8) 45%, rgba(0, 22, 58, 0.35) 100%);
}

html[dir="rtl"] .rl-head-scrim {
  background:
    linear-gradient(270deg, rgba(0, 22, 58, 0.94) 0%, rgba(0, 22, 58, 0.8) 45%, rgba(0, 22, 58, 0.35) 100%);
}

.rl-head--photo {
  padding-block-end: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
}

/* Fills the first screen under the site header (strip + bar: 100px, 112px on wide screens). */
.rl-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 100px);
  min-height: calc(100svh - 100px);
}

@media (min-width: 1341px) {
  .rl-head {
    min-height: calc(100vh - 112px);
    min-height: calc(100svh - 112px);
  }
}

.rl-crumbs {
  margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem);
}

.rl-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  color: var(--rl-on-navy);
  font-size: 0.875rem;
  font-weight: 500;
}

.rl-crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.rl-crumbs li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.4);
}

.rl-crumbs a {
  color: var(--rl-white);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s ease;
}

.rl-crumbs a:hover {
  text-decoration-color: var(--rl-orange);
}

.rl-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.rl-head-grid--aside {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
}

.rl-lead {
  max-width: 60ch;
  margin-top: 1.25rem;
  color: #dfe6f0;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
  line-height: 1.6;
}

.rl-head-meta {
  margin-top: 1.25rem;
  color: var(--rl-on-navy);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rl-head .rl-actions {
  margin-top: 2rem;
}

.rl-head-aside {
  padding: 1.5rem;
  border: 1px solid var(--rl-line-navy);
  border-radius: 2px;
  background: rgba(0, 22, 58, 0.72);
}

.rl-head-aside-title {
  margin-bottom: 0.75rem;
  color: var(--rl-white);
  font-weight: 700;
}

.rl-head-dots {
  display: flex;
  gap: 0.375rem;
  margin-top: 2.5rem;
}

/* Timed carousel segment, shared with the home hero. */
.rl-seg {
  position: relative;
  width: 40px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rl-seg::before,
.rl-seg::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
}

.rl-seg::before {
  background: rgba(255, 255, 255, 0.35);
}

.rl-seg::after {
  background: var(--rl-orange);
  transform: scaleX(0);
  transform-origin: left center;
}

html[dir="rtl"] .rl-seg::after {
  transform-origin: right center;
}

.rl-seg.is-active::after {
  animation: rl-fill var(--rl-seg-dur, 6s) linear forwards;
}

.hm-hero:hover .rl-seg.is-active::after,
.rl-head-dots:hover .rl-seg.is-active::after {
  animation: none;
  transform: scaleX(1);
}

@keyframes rl-fill {
  to {
    transform: scaleX(1);
  }
}

/* ---------- Sections ---------- */

.rl-section {
  padding-block: var(--rl-pad);
  background: var(--rl-white);
}

.rl-section--paper {
  background: var(--rl-paper);
}

.rl-section--navy {
  background: var(--rl-navy);
  color: var(--rl-white);
}

.rl-section + .rl-section:not(.rl-section--paper):not(.rl-section--navy) {
  border-top: 1px solid var(--rl-line);
}

.rl-section--paper + .rl-section--paper {
  padding-top: 0;
}

.rl-split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: clamp(2rem, 6vw, 5.5rem);
  row-gap: 2.5rem;
}

.rl-split-head {
  position: sticky;
  top: 9rem;
  align-self: start;
}

.rl-split-head .rl-h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.375rem);
}

.rl-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 5vw, 4.5rem);
}

/* ---------- Index list (services, pages) ---------- */

.rl-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  border-bottom: 1px solid var(--rl-line);
}

.rl-index--single {
  grid-template-columns: minmax(0, 1fr);
}

.rl-index-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.25rem;
  height: 100%;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rl-line);
}

.rl-index-row--plain {
  grid-template-columns: minmax(0, 1fr) auto;
}

.rl-index-thumb {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 2px;
  background: var(--rl-paper);
}

.rl-index-thumb--empty {
  border: 1px solid var(--rl-line);
}

.rl-index-text {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.rl-index-title,
.rl-row-title,
.rl-story-title {
  color: var(--rl-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s ease;
}

.rl-index-title {
  font-size: 1.125rem;
  line-height: 1.3;
}

.rl-index-row:hover .rl-index-title,
a.rl-row:hover .rl-row-title,
.rl-story-link:hover .rl-story-title {
  text-decoration-color: var(--rl-orange);
}

.rl-index-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.rl-index-meta {
  margin-top: 0.25rem;
  color: var(--rl-text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.rl-index-arrow {
  margin-top: 0.3rem;
  color: var(--rl-ink);
}

/* ---------- Rows (poles, facilities, documents, questions) ---------- */

.rl-rows {
  border-bottom: 1px solid var(--rl-line);
}

.rl-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rl-line);
}

.rl-row-title {
  font-size: 1.125rem;
  line-height: 1.35;
}

.rl-row-sub {
  color: var(--rl-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.rl-row-text {
  max-width: 70ch;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.rl-row-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.375rem;
  color: var(--rl-ink);
  font-size: 0.875rem;
  font-weight: 700;
}

.rl-row .rl-tags {
  margin-top: 0.5rem;
}

.rl-rows--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
}

.rl-rows--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Tags ---------- */

.rl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rl-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.625rem;
  border: 1px solid var(--rl-line);
  border-radius: 2px;
  background: var(--rl-white);
  color: var(--rl-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

a.rl-tag:hover {
  border-color: var(--rl-navy);
}

.rl-tag i {
  color: var(--rl-text);
  font-size: 0.85em;
}

.rl-tag--ok {
  border-color: transparent;
  background: var(--rl-ok-bg);
  color: var(--rl-ok);
}

.rl-tag--muted {
  border-color: transparent;
  background: var(--rl-paper);
  color: var(--rl-text);
}

.rl-tag--navy {
  border-color: var(--rl-navy);
  background: var(--rl-navy);
  color: var(--rl-white);
}

.rl-tag--light {
  border-color: var(--rl-line-navy);
  background: transparent;
  color: var(--rl-white);
}

.rl-tag--light i {
  color: var(--rl-orange);
}

/* ---------- Filters & pager ---------- */

.rl-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2.5rem;
}

.rl-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rl-filter-label {
  align-self: center;
  margin-inline-end: 0.25rem;
  color: var(--rl-ink);
  font-size: 0.875rem;
  font-weight: 700;
}

.rl-filter a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--rl-line);
  border-radius: 2px;
  background: var(--rl-white);
  color: var(--rl-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.rl-filter a:hover {
  border-color: var(--rl-navy);
}

.rl-filter a[aria-current="true"],
.rl-filter a[aria-current="page"] {
  border-color: var(--rl-navy);
  background: var(--rl-navy);
  color: var(--rl-white);
}

.rl-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rl-line);
}

.rl-pager-info {
  color: var(--rl-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rl-pager .is-disabled {
  visibility: hidden;
}

/* ---------- Facts (standing figures) ---------- */

.rl-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.rl-facts > div {
  padding-top: 1rem;
  border-top: 2px solid var(--rl-navy);
}

.rl-facts dt {
  color: var(--rl-ink);
  font-size: clamp(1.625rem, 1.35rem + 0.9vw, 2.125rem);
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

html[dir="rtl"] .rl-facts dt {
  text-align: right;
}

.rl-facts dd {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
}

.rl-section--navy .rl-facts > div {
  border-top-color: var(--rl-orange);
}

.rl-section--navy .rl-facts dt {
  color: var(--rl-white);
}

.rl-section--navy .rl-facts dd {
  color: var(--rl-on-navy);
}

/* ---------- Definition list (label / text) ---------- */

.rl-defs {
  display: grid;
  gap: 1.5rem;
}

.rl-defs dt {
  color: var(--rl-ink);
  font-weight: 700;
}

.rl-defs dd {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.rl-defs--grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem 2.5rem;
}

.rl-defs--grid > div {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rl-line);
}

.rl-section--navy .rl-defs dt {
  color: var(--rl-white);
}

.rl-section--navy .rl-defs dd {
  color: var(--rl-on-navy);
}

.rl-section--navy .rl-defs--grid > div {
  border-top-color: var(--rl-line-navy);
}

/* ---------- Table ---------- */

.rl-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rl-line);
  border-radius: 2px;
}

.rl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.rl-table th,
.rl-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--rl-line);
  text-align: start;
  vertical-align: top;
}

.rl-table thead th {
  background: var(--rl-paper);
  color: var(--rl-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rl-table tbody tr:last-child td {
  border-bottom: 0;
}

.rl-table td:first-child {
  color: var(--rl-ink);
  font-weight: 600;
}

.rl-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Prose (rich text from the admin) ---------- */

.rl-prose {
  max-width: 72ch;
  color: var(--rl-text);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.rl-prose > * + * {
  margin-top: 1.1em;
}

.rl-prose h2,
.rl-prose h3,
.rl-prose h4 {
  margin-top: 2em;
  color: var(--rl-ink);
  font-family: inherit;
  font-weight: 800;
  line-height: 1.25;
}

.rl-prose h2 {
  font-size: 1.625rem;
}

.rl-prose h3 {
  font-size: 1.3125rem;
}

.rl-prose h4 {
  font-size: 1.125rem;
}

.rl-prose ul,
.rl-prose ol {
  padding-inline-start: 1.25rem;
}

.rl-prose ul {
  list-style: square;
}

.rl-prose ol {
  list-style: decimal;
}

.rl-prose li + li {
  margin-top: 0.4em;
}

.rl-prose li::marker {
  color: var(--rl-orange);
}

.rl-prose a {
  color: var(--rl-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--rl-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.rl-prose strong {
  color: var(--rl-ink);
}

.rl-prose img {
  border-radius: 2px;
}

.rl-prose blockquote {
  padding-inline-start: 1.25rem;
  border-inline-start: 1px solid var(--rl-orange);
  color: var(--rl-ink);
  font-size: 1.1875rem;
  font-weight: 600;
}

.rl-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.rl-prose th,
.rl-prose td {
  padding: 0.75rem;
  border: 1px solid var(--rl-line);
  text-align: start;
}

.rl-prose th {
  background: var(--rl-paper);
  color: var(--rl-ink);
}

/* ---------- Stories (news) ---------- */

.rl-story-link {
  display: grid;
  gap: 1.25rem;
}

.rl-story-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 2px;
  background: #dde3ea;
}

.rl-story-img--empty {
  display: grid;
  place-items: center;
  color: #9aa8bb;
  font-size: 2rem;
}

.rl-story-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.rl-date {
  color: var(--rl-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rl-story-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 1.125rem;
  line-height: 1.4;
}

.rl-story-excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.rl-story--lead .rl-story-title {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.875rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.rl-story--lead .rl-story-excerpt {
  max-width: 60ch;
  font-size: 1rem;
}

.rl-stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 2.5rem;
}

/* ---------- Panels & media ---------- */

.rl-panel {
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  border: 1px solid var(--rl-line);
  border-radius: 2px;
  background: var(--rl-white);
}

.rl-section--paper .rl-panel {
  border-color: transparent;
}

.rl-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
}

.rl-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.rl-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-height: 460px;
  border: 1px solid var(--rl-line);
  border-radius: 2px;
  background: #dde3ea;
}

.rl-map .leaflet-tile-pane {
  filter: grayscale(1) contrast(1.05) brightness(1.04);
}

.rl-map .leaflet-popup-content-wrapper,
.rl-map .leaflet-tooltip {
  border-radius: 2px;
  font-family: inherit;
}

.rl-map .leaflet-tooltip {
  border: 0;
  background: var(--rl-navy);
  color: var(--rl-white);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 22, 58, 0.25);
}

.rl-map .leaflet-tooltip-top::before {
  border-top-color: var(--rl-navy);
}

.rl-map .leaflet-popup-content a {
  color: var(--rl-ink);
  font-weight: 700;
}

.rl-contact-lines {
  display: grid;
  gap: 0.25rem;
}

.rl-contact-line {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  color: var(--rl-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s ease;
}

a.rl-contact-line:hover {
  text-decoration-color: var(--rl-orange);
}

.rl-contact-line i {
  width: 1.25rem;
  color: var(--rl-orange);
}

.rl-dark .rl-contact-line,
.rl-section--navy .rl-contact-line,
.rl-head .rl-contact-line {
  color: var(--rl-white);
}

/* ---------- Empty ---------- */

.rl-empty {
  padding: 2.5rem 0;
  border-top: 1px solid var(--rl-line);
}

.rl-empty-title {
  color: var(--rl-ink);
  font-weight: 700;
  margin-bottom: 0.25rem !important;
}

.rl-empty .rl-link {
  margin-top: 1rem;
}

/* ---------- Forms ---------- */

.rl-form {
  display: grid;
  gap: 1.375rem;
}

.rl-field {
  display: grid;
  gap: 0.5rem;
}

.rl-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.375rem;
}

.rl-field label {
  color: var(--rl-ink);
  font-size: 0.9375rem;
  font-weight: 700;
}

.rl-field input,
.rl-field select,
.rl-field textarea {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #9aa8bb;
  border-radius: 2px;
  background: var(--rl-white);
  color: var(--rl-ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rl-field textarea {
  min-height: 160px;
  resize: vertical;
}

.rl-field input::placeholder,
.rl-field textarea::placeholder {
  color: #5d6b80;
}

.rl-field input:focus,
.rl-field select:focus,
.rl-field textarea:focus {
  border-color: var(--rl-navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 31, 77, 0.18);
}

.rl-field--error input,
.rl-field--error select,
.rl-field--error textarea {
  border-color: var(--rl-err);
}

.rl-field-hint {
  font-size: 0.875rem;
}

.rl-field-error,
.rl-field-error ul,
.rl-field-error li {
  color: var(--rl-err);
  font-size: 0.875rem;
  font-weight: 600;
  list-style: none;
}

.rl-alert {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  border-radius: 2px;
  font-weight: 600;
}

.rl-alert ul {
  list-style: none;
}

.rl-alert--ok {
  background: var(--rl-ok-bg);
  color: var(--rl-ok);
}

.rl-alert--error {
  background: var(--rl-err-bg);
  color: var(--rl-err);
}

.rl-alert--warn {
  background: #fff4e0;
  color: #7a4300;
}

.rl-form-note {
  font-size: 0.875rem;
  line-height: 1.6;
}

.rl-honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Closing band ---------- */

.rl-close {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  background: var(--rl-navy);
  color: var(--rl-white);
}

.rl-close-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
}

.rl-close .rl-intro {
  margin-bottom: 0;
}

.rl-close-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.rl-close-actions .rl-btn {
  margin-bottom: 0.5rem;
}

.rl-close .rl-contact-line {
  color: var(--rl-white);
  font-size: 1.0625rem;
}

.rl-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Page: service detail ---------- */

.svc-capacities {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rl-line);
}

.svc-sub {
  margin-block: 2rem 1rem;
}

.svc-back {
  margin-top: 3rem;
}

/* ---------- Figures inside a dark page header ---------- */

.head-facts {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.rl-head .rl-facts > div {
  border-top-color: var(--rl-orange);
}

.rl-head .rl-facts dt {
  color: var(--rl-white);
}

.rl-head .rl-facts dd {
  color: var(--rl-on-navy);
}

/* ---------- Pole blocks (fleet, implantations) ---------- */

.pole-block {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.5rem clamp(2rem, 5vw, 4.5rem);
  padding-block: 2.25rem;
}

.pole-block-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.pole-block-head .rl-link {
  margin-top: 0.75rem;
}

.pole-block-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.facility-list {
  display: grid;
}

.facility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--rl-line);
}

.facility:first-child {
  padding-top: 0;
}

.facility:last-child {
  border-bottom: 0;
}

.facility-name {
  color: var(--rl-ink);
  font-weight: 700;
}

.impl-links {
  margin-top: 2.5rem;
}

.impl-map {
  min-height: 560px;
}

.fleet-capacities,
.transit-fire,
.about-ports {
  margin-top: 3rem;
}

.fleet-capacities .rl-tags,
.transit-fire .rl-tags,
.about-ports .rl-tags {
  margin-top: 1rem;
}

.pole-presentation {
  margin-bottom: 3rem;
}

.pole-back,
.news-back {
  margin-top: 3rem;
}

/* ---------- Page: about, CEO, legal ---------- */

.about-facts {
  margin-top: 3rem;
}

.ceo-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2.5rem clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.ceo-grid .rl-portrait {
  position: sticky;
  top: 9rem;
}

.ceo-message {
  font-size: 1.1875rem;
}

.legal-title {
  max-width: 26ch;
}

.legal-law {
  margin: 0 0 1rem !important;
}

.legal-aside-note {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.legal-authority {
  margin: 0 0 0.75rem !important;
  color: var(--rl-text);
}

.legal-anpdp-link {
  margin-top: 1.5rem;
}

/* ---------- Page: news ---------- */

.news-featured .rl-story-link {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
}

.news-rest {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rl-line);
}

.news-title {
  max-width: 30ch;
  margin-top: 1rem;
}

.news-head .rl-head-meta {
  display: block;
}

.news-side-links {
  flex-direction: column;
  align-items: flex-start;
}

/* ---------- Page: tenders ---------- */

.tender {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 2.5rem;
}

.tender-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.tender-title {
  font-size: 1.1875rem;
  text-decoration: none;
}

.tender-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
}

.tender-dates dt {
  color: var(--rl-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tender-dates dd {
  color: var(--rl-ink);
  font-weight: 700;
}

.tender-dates .is-expired dd {
  color: var(--rl-text);
  text-decoration: line-through;
}

.tender-dates .is-due dd {
  color: var(--rl-err);
}

.tender-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.tender-help {
  margin-block: 0.75rem 1rem !important;
  max-width: 52ch;
}

.tender-help-link {
  margin-top: 1rem;
}

/* ---------- Page: contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.contact-defs > div {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rl-line);
}

.contact-defs dd {
  font-size: 1rem;
}

.contact-form-panel {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--rl-paper);
  border-color: transparent;
}

.contact-form-intro {
  margin-block: 0.5rem 1.75rem !important;
}

.contact-captcha input {
  max-width: 12rem;
}

/* ---------- Page: transit, clinker ---------- */

.transit-ports {
  align-self: start;
}

.hall-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin-bottom: 0.75rem;
  object-fit: cover;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .pole-block,
  .ceo-grid,
  .contact-grid,
  .news-featured .rl-story-link {
    grid-template-columns: minmax(0, 1fr);
  }

  .ceo-grid .rl-portrait {
    position: static;
    max-width: 360px;
  }

  .impl-map {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .tender {
    grid-template-columns: minmax(0, 1fr);
  }

  .tender-actions {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

/* ---------- Page: about ---------- */

.rl-timeline {
  border-inline-start: 1px solid var(--rl-line);
}

.rl-timeline li {
  position: relative;
  padding-block: 0 2rem;
  padding-inline-start: 2rem;
}

.rl-timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: -5px;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  background: var(--rl-orange);
}

.rl-timeline time {
  display: block;
  color: var(--rl-ink);
  font-size: 1.125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rl-timeline h3 {
  margin-top: 0.25rem;
  color: var(--rl-ink);
  font-size: 1rem;
  font-weight: 700;
}

.rl-timeline p {
  margin-top: 0.375rem;
  max-width: 62ch;
  font-size: 0.9375rem;
}

/* ---------- Page: CEO ---------- */

.rl-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  background: var(--rl-paper);
}

.rl-portrait figcaption {
  margin-top: 1rem;
}

.rl-portrait-name {
  display: block;
  color: var(--rl-ink);
  font-size: 1.125rem;
  font-weight: 800;
}

.rl-portrait-role {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Page: news detail gallery ---------- */

.rl-gallery {
  margin-bottom: 2.5rem;
}

.rl-gallery .news-gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: #dde3ea;
  aspect-ratio: 16 / 10;
}

.rl-gallery .news-gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.rl-gallery .news-gallery-slide.is-active {
  opacity: 1;
}

.rl-gallery .news-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rl-gallery .news-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.rl-gallery .news-gallery-thumb {
  width: 88px;
  height: 64px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 2px;
  background: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.rl-gallery .news-gallery-thumb.is-active,
.rl-gallery .news-gallery-thumb:hover {
  border-color: var(--rl-orange);
  opacity: 1;
}

.rl-gallery .news-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rl-summary {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rl-line);
  color: var(--rl-ink);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.55;
}

.rl-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rl-line);
}

.rl-share-label {
  color: var(--rl-ink);
  font-weight: 700;
}

.rl-share a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rl-line);
  border-radius: 2px;
  color: var(--rl-ink);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.rl-share a:hover {
  border-color: var(--rl-navy);
  background: var(--rl-navy);
  color: var(--rl-white);
}

.rl-article {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
  gap: 3rem clamp(2rem, 6vw, 5rem);
}

.rl-article-side {
  position: sticky;
  top: 9rem;
  align-self: start;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .rl-index,
  .rl-rows--three {
    grid-template-columns: minmax(0, 1fr);
  }

  .rl-rows--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .rl-split,
  .rl-two,
  .rl-close-grid,
  .rl-head-grid--aside,
  .rl-article,
  .rl-rows--grid,
  .rl-rows--three {
    grid-template-columns: minmax(0, 1fr);
  }

  .rl-split-head,
  .rl-article-side {
    position: static;
  }

  .rl-stories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rl-map {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .rl-stories,
  .rl-field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .rl-head .rl-actions .rl-btn,
  .rl-close-actions .rl-btn {
    width: 100%;
  }

  .rl-index-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 1rem;
  }

  .rl-index-row--plain {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .rl-index-thumb {
    width: 56px;
    height: 56px;
  }

  .rl-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .rl-filters {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rl *,
  .rl *::before,
  .rl *::after {
    transition: none !important;
  }

  .rl-seg.is-active::after {
    animation: none;
    transform: scaleX(1);
  }
}

/* ==========================================================
   Site chrome: header, mobile menu, messages, footer (base.html)
   ========================================================== */

/* The whole site is square-cornered. */
*,
*::before,
*::after {
  border-radius: 0 !important;
}

html {
  scroll-padding-top: 88px;
}

/* clip, not hidden: hidden turns body into a scroll box and breaks the sticky header. */
html,
body {
  overflow-x: clip;
}

body.mobile-menu-open {
  overflow: hidden;
}

.rl-skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 2000;
  padding: 0.75rem 1rem;
  background: #ff8c00;
  color: #001f4d;
  font-weight: 700;
}

.rl-skip:focus {
  top: 1rem;
}

.rl-map {
  isolation: isolate;
}

/* Header: navy, the logo on a white block spanning both rows.
   The strip scrolls away, the bar stays. */
.rl-site {
  --rl-strip-h: 36px;
  --rl-bar-h: 76px;
  --rl-gutter: clamp(1rem, 3vw, 2.5rem);
  position: sticky;
  top: calc(-1 * var(--rl-strip-h));
  z-index: 1100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  grid-template-rows: var(--rl-strip-h) var(--rl-bar-h);
  grid-template-areas:
    "brand strip strip strip strip"
    "brand title nav cta burger";
  background: var(--rl-navy-deep);
  color: var(--rl-white);
  font-size: 0.875rem;
}

.rl-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  padding-inline: clamp(1.25rem, 2.5vw, 2.25rem);
  /* background: var(--rl-white); */
}

/* Sticky inside its block: once the strip has scrolled off, the logo stays centred in the bar. */
.rl-brand img {
  position: sticky;
  top: calc((var(--rl-bar-h) - 68px) / 2);
  display: block;
  width: auto;
  height: 68px;
}

/* Page title pinned in the bar once its h1 scrolls under it (added by main.js). It rises out of a clipped box. */
.rl-bar-title {
  grid-area: title;
  align-self: center;
  min-width: 0;
  margin: 0;
  padding-inline-start: clamp(0.5rem, 1.5vw, 1.5rem);
  overflow: hidden;
  pointer-events: none;
}

.rl-bar-title span {
  display: block;
  padding-inline-start: 0.75rem;
  border-inline-start: 3px solid var(--rl-orange);
  overflow: hidden;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  translate: 0 110%;
  transition: translate 0.5s var(--rl-ease), opacity 0.3s ease;
}

.rl-site.is-titled .rl-bar-title {
  pointer-events: auto;
}

.rl-site.is-titled .rl-bar-title span {
  opacity: 1;
  translate: 0 0;
}

.rl-brand:focus-visible {
  outline: 3px solid var(--rl-orange);
  outline-offset: -3px;
}

.rl-strip {
  grid-area: strip;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
  padding-inline: var(--rl-gutter);
  background: #000e27;
  box-shadow: inset 0 -1px 0 var(--rl-line-navy);
  color: var(--rl-on-navy);
  font-size: 0.8125rem;
}

.rl-strip a {
  color: var(--rl-on-navy);
  transition: color 0.2s ease;
}

.rl-strip a:hover {
  color: var(--rl-white);
}

.rl-strip :focus-visible {
  outline-color: var(--rl-orange);
  outline-offset: -2px;
}

.flash-infos {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
}

.flash-track {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
}

/* bundle.min.css pins .ticker-wrap absolute/right:0, which slides the text out and leaves the strip empty. */
.ticker-wrap {
  position: relative;
  right: auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  min-width: max-content;
  will-change: transform;
  animation: ticker-loop var(--ticker-duration, 18s) linear infinite;
}

.ticker-wrap:hover,
.ticker-wrap:focus-within {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  font-weight: 500;
}

.ticker-item::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--rl-orange);
}

.rl-strip .ticker-link {
  color: var(--rl-white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.rl-strip .ticker-link:hover {
  text-decoration-color: var(--rl-orange);
}

/* The loop scrolls leftward in every language; each item keeps its own direction. */
.ticker-wrap.is-paused {
  animation-play-state: paused;
}

/* Arabic reads right to left: scroll rightward so each notice enters on its first word. */
html[dir="rtl"] .ticker-wrap {
  animation-name: ticker-loop-rtl;
}

@keyframes ticker-loop-rtl {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--ticker-shift, 50%), 0, 0); }
}

.rl-ticker-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  margin: 0;
  margin-inline-end: -0.5rem;
  padding: 0;
  border: 1px solid var(--rl-line-navy);
  background: transparent;
  color: var(--rl-on-navy);
  font-size: 0.625rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.rl-ticker-toggle:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--rl-white);
}

.rl-ticker-toggle .fa-play,
.rl-ticker-toggle[aria-pressed="true"] .fa-pause {
  display: none;
}

.rl-ticker-toggle[aria-pressed="true"] .fa-play {
  display: inline-block;
}

@keyframes ticker-loop {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--ticker-shift, 50%)), 0, 0); }
}

.rl-strip-contact {
  display: flex;
  gap: 1.5rem;
  flex: none;
}

.rl-strip-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.rl-strip-contact i {
  color: var(--rl-orange);
  font-size: 0.75rem;
}

.rl-lang {
  display: flex;
  flex: none;
  height: 100%;
  border-inline-start: 1px solid var(--rl-line-navy);
  padding-inline-start: 0.75rem;
}

.rl-lang a {
  display: inline-flex;
  align-items: center;
  padding-inline: 0.5rem;
  font-weight: 600;
  text-transform: capitalize;
}

.rl-lang a[aria-current="page"] {
  color: var(--rl-white);
  box-shadow: inset 0 -2px 0 var(--rl-orange);
}

.rl-lang-code {
  display: none;
}

.rl-nav {
  grid-area: nav;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  min-width: 0;
  padding-inline: 1.5rem 0.5rem;
}

:is(.rl-nav > a, .rl-nav-item > a) {
  position: relative;
  display: flex;
  align-items: center;
  padding-inline: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}

:is(.rl-nav > a, .rl-nav-item > a)::after {
  content: "";
  position: absolute;
  inset-inline: 0.75rem;
  bottom: 0;
  height: 4px;
  background: var(--rl-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--rl-ease);
}

html[dir="rtl"] :is(.rl-nav > a, .rl-nav-item > a)::after {
  transform-origin: right;
}

:is(.rl-nav > a, .rl-nav-item > a):hover,
:is(.rl-nav > a, .rl-nav-item > a)[aria-current="page"] {
  color: var(--rl-white);
}

:is(.rl-nav > a, .rl-nav-item > a):hover::after,
:is(.rl-nav > a, .rl-nav-item > a)[aria-current="page"]::after {
  transform: scaleX(1);
}

:is(.rl-nav > a, .rl-nav-item > a):focus-visible {
  outline: 3px solid var(--rl-orange);
  outline-offset: -3px;
}

/* Services panel. Static item so the panel anchors to the sticky header and spans its full width. */
.rl-nav-item {
  display: flex;
}

.rl-nav-item > a {
  gap: 0.5rem;
}

.rl-nav-caret {
  font-size: 0.625rem;
  opacity: 0.7;
  transition: transform 0.35s var(--rl-ease), opacity 0.2s ease;
}

.rl-mega {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  z-index: 1;
  background: var(--rl-white);
  border-top: 4px solid var(--rl-orange);
  box-shadow: 0 28px 48px -12px rgba(0, 14, 39, 0.55);
  opacity: 0;
  visibility: hidden;
  translate: 0 -8px;
  /* Close after a beat so a pointer crossing the gap does not flicker it shut. */
  transition: opacity 0.2s ease 0.12s, translate 0.3s var(--rl-ease) 0.12s, visibility 0s linear 0.32s;
}

/* Dims the page under the panel; pointer-events off so leaving the panel still closes it. */
.rl-mega::after {
  content: "";
  position: absolute;
  top: 100%;
  inset-inline: 0;
  height: 100vh;
  background: rgba(0, 14, 39, 0.4);
  pointer-events: none;
}

.rl-nav-item:is(:hover, :focus-within):not(.is-dismissed) .rl-mega {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  /* Visibility flips at once so a fast Tab from the trigger still lands on the first service. */
  transition: opacity 0.25s ease 0.08s, translate 0.45s var(--rl-ease) 0.08s, visibility 0s;
}

.rl-nav-item:is(:hover, :focus-within):not(.is-dismissed) > a {
  color: var(--rl-white);
}

.rl-nav-item:is(:hover, :focus-within):not(.is-dismissed) > a::after {
  transform: scaleX(1);
}

.rl-nav-item:is(:hover, :focus-within):not(.is-dismissed) .rl-nav-caret {
  opacity: 1;
  transform: rotate(180deg);
}

.rl-mega-inner {
  display: grid;
  grid-template-columns: minmax(200px, 0.75fr) minmax(0, 2.25fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  padding-block: 2.5rem 2.75rem;
}

.rl-mega-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding-inline-end: clamp(1.5rem, 3vw, 3rem);
  border-inline-end: 1px solid var(--rl-line);
}

.rl-mega-title {
  color: var(--rl-navy);
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.rl-mega-all {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--rl-orange);
  color: var(--rl-navy);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rl-mega-all i {
  color: var(--rl-orange);
  transition: translate 0.35s var(--rl-ease);
}

.rl-mega-all:hover i {
  translate: calc(4px * var(--rl-dir)) 0;
}

.rl-mega-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
}

.rl-mega-list a {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.25rem 0.875rem;
  height: 100%;
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--rl-line);
  transition: background-color 0.2s ease;
}

.rl-mega-list a::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--rl-orange);
  translate: 0 -1px;
}

.rl-mega-name {
  color: var(--rl-navy);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.rl-mega-desc {
  grid-column: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--rl-text);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.rl-mega-go {
  grid-column: 3;
  grid-row: 1;
  color: var(--rl-orange);
  font-size: 0.8125rem;
  opacity: 0;
  translate: calc(-6px * var(--rl-dir)) 0;
  transition: opacity 0.2s ease, translate 0.35s var(--rl-ease);
}

html[dir="rtl"] .rl-mega-go,
html[dir="rtl"] .rl-mega-all i {
  rotate: 180deg;
}

.rl-mega-list a:hover,
.rl-mega-list a[aria-current="page"] {
  background: var(--rl-paper);
}

.rl-mega-list a:hover .rl-mega-go,
.rl-mega-list a:focus-visible .rl-mega-go {
  opacity: 1;
  translate: 0 0;
}

.rl-mega-list a[aria-current="page"] .rl-mega-name {
  color: #a64f00;
}

.rl-mega a:focus-visible {
  outline: 3px solid var(--rl-navy);
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  .rl-mega,
  .rl-nav-item:is(:hover, :focus-within) .rl-mega {
    translate: none;
  }
}

.rl-bar-cta {
  grid-area: cta;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-inline: clamp(1.25rem, 2.5vw, 2.25rem);
  background: var(--rl-orange);
  color: var(--rl-navy);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s ease;
  padding-inline-start: calc(clamp(1.25rem, 2.5vw, 2.25rem) + 12px);
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%);
}

html[dir="rtl"] .rl-bar-cta {
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 100%, 0 100%);
}

.rl-bar-cta:hover {
  background: var(--rl-orange-hover);
  color: var(--rl-navy);
}

.rl-bar-cta i {
  font-size: 0.9em;
  transition: translate 0.35s var(--rl-ease);
}

.rl-bar-cta:hover i {
  translate: calc(4px * var(--rl-dir)) 0;
}

.rl-bar-cta:focus-visible {
  outline: 3px solid var(--rl-navy);
  outline-offset: -7px;
}

html[dir="rtl"] :is(.rl-nav > a, .rl-nav-item > a),
html[dir="rtl"] .rl-bar-cta {
  font-size: 0.9375rem;
  letter-spacing: 0;
}

.rl-burger {
  grid-area: burger;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: var(--rl-bar-h);
  height: 100%;
  margin: 0;
  padding: 0 calc((var(--rl-bar-h) - 26px) / 2);
  border: 0;
  border-inline-start: 1px solid var(--rl-line-navy);
  background: transparent;
  cursor: pointer;
}

.rl-burger span {
  display: block;
  height: 2px;
  background: var(--rl-white);
}

.rl-burger:focus-visible {
  outline: 3px solid var(--rl-orange);
  outline-offset: -3px;
}

/* Mobile menu */
.rl-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 22, 58, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.rl-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.rl-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  background: var(--rl-white);
  overflow-y: auto;
  visibility: hidden;
  transform: translateX(calc(100% * var(--rl-dir)));
  transition: transform 0.4s var(--rl-ease), visibility 0.4s;
}

.rl-menu.is-open {
  visibility: visible;
  transform: none;
}

.rl-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--rl-line);
}

.rl-menu-head img {
  width: auto;
  height: 44px;
}

.rl-menu-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--rl-line);
  background: transparent;
  color: var(--rl-navy);
  font-size: 1.125rem;
  cursor: pointer;
}

.rl-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.25rem;
}

.rl-menu-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--rl-line);
  color: var(--rl-ink);
  font-size: 1.0625rem;
  font-weight: 700;
}

.rl-menu-nav a[aria-current="page"] {
  color: #a64f00;
}

.rl-menu-foot {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
  padding: 1.25rem;
  background: var(--rl-paper);
}

.rl-menu-foot .rl-btn {
  width: 100%;
}

/* Flash messages */
.rl-messages {
  display: grid;
  gap: 0.75rem;
  padding-block: 1.25rem;
}

/* Footer */
.rl-foot {
  background: var(--rl-navy); /* same as the closing band above it, so they read as one */
  border-top: 1px solid var(--rl-line-navy);
  color: var(--rl-on-navy);
  font-size: 0.9375rem;
}

.rl-foot a {
  color: var(--rl-on-navy);
  transition: color 0.2s ease;
}

.rl-foot a:hover {
  color: var(--rl-white);
}

.rl-foot :focus-visible {
  outline-color: var(--rl-orange);
}

.rl-foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-block: 4rem 3rem;
}

.rl-foot-logo {
  display: inline-block;
}

.rl-foot-logo img {
  display: block;
  width: auto;
  height: 64px;
  filter: brightness(0) invert(1);
}

.rl-foot-brand p {
  max-width: 34ch;
  margin-top: 1.25rem;
  line-height: 1.6;
}

.rl-foot-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.rl-foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rl-line-navy);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.rl-foot-social a:hover {
  border-color: var(--rl-orange);
  background: var(--rl-orange);
  color: var(--rl-navy);
}

.rl-foot-title {
  margin-bottom: 1.25rem;
  color: var(--rl-white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
}

.rl-foot-col ul {
  display: grid;
  gap: 0.75rem;
}

.rl-foot address {
  display: grid;
  gap: 0.75rem;
  font-style: normal;
  line-height: 1.5;
}

.rl-foot-hours {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rl-line-navy);
}

.rl-foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--rl-line-navy);
  font-size: 0.8125rem;
}

@media (max-width: 1440px) {
  .rl-nav {
    padding-inline: 1rem 0.25rem;
  }

  :is(.rl-nav > a, .rl-nav-item > a) {
    padding-inline: 0.5rem;
  }

  :is(.rl-nav > a, .rl-nav-item > a)::after {
    inset-inline: 0.5rem;
  }
}

@media (max-width: 1340px) {
  .rl-site {
    --rl-bar-h: 64px;
    grid-template-areas:
      "strip strip strip strip strip"
      "brand title nav cta burger";
  }

  .rl-nav {
    display: none;
  }

  .rl-burger {
    display: flex;
  }

  .rl-brand img {
    position: static;
    height: 48px;
  }
}

@media (max-width: 640px) {
  .rl-bar-cta {
    display: none;
  }
}

@media (max-width: 900px) {
  .rl-strip-contact {
    display: none;
  }

  .rl-foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rl-foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .rl-strip {
    gap: 0.75rem;
  }

  .rl-lang a {
    padding-inline: 0.5rem;
  }

  /* Short codes on phones; the full name stays for screen readers. */
  .rl-lang-code {
    display: inline;
  }

  .rl-lang-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .rl-foot-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 3rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-wrap {
    animation: none;
  }

  .rl-ticker-toggle {
    display: none;
  }

  .rl-menu,
  .rl-menu-overlay,
  .rl-bar-title span {
    transition: none;
  }
}

/* ---------- Supplier application ---------- */

.supplier {
  --supplier-top: 76px;
}

.supplier input,
.supplier textarea {
  caret-color: var(--rl-orange);
}

.supplier .rl-head-aside-title {
  font-size: 1rem;
}

.supplier-checklist {
  display: grid;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.supplier-checklist li {
  display: flex;
  gap: 0.75rem;
  padding-block: 0.6rem;
  border-top: 1px solid var(--rl-line-navy);
}

.supplier-checklist i {
  width: 1rem;
  margin-top: 0.2rem;
  color: var(--rl-orange);
}

.supplier-checklist em {
  color: var(--rl-on-navy);
  font-style: normal;
}

.supplier-body {
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) var(--rl-pad);
}

.supplier-layout {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.supplier-rail {
  position: sticky;
  top: calc(var(--supplier-top) + 1.5rem);
  background: var(--rl-navy);
  color: var(--rl-white);
}

.supplier-rail li + li {
  border-top: 1px solid var(--rl-line-navy);
}

.supplier-rail a {
  display: flex;
  gap: 0.875rem;
  padding: 1.125rem 1rem;
  transition: background-color 0.2s ease;
}

.supplier-rail a:hover {
  background: var(--rl-navy-deep);
}

.supplier-rail :focus-visible {
  outline-color: var(--rl-orange);
  outline-offset: -3px;
}

.supplier-rail-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-weight: 800;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.supplier-rail .is-done .supplier-rail-mark {
  border-color: var(--rl-orange);
  background: var(--rl-orange);
  color: var(--rl-navy);
}

.supplier-rail strong {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.supplier-rail-status {
  display: block;
  color: var(--rl-on-navy);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.supplier-form {
  gap: 1.5rem;
  min-width: 0;
}

.supplier-step {
  display: grid;
  gap: 1.375rem;
  min-width: 0;
  scroll-margin-top: 1rem;
}

.supplier-hint {
  margin-top: 0.35rem !important;
  font-size: 0.875rem;
}

.supplier-docs {
  display: grid;
  gap: 1rem;
}

.supplier-doc {
  display: grid;
  gap: 0.25rem;
  justify-items: start;
}

.supplier-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.supplier-doc-box {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px dashed #9aa8bb;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.supplier-doc-box:hover,
.supplier-doc.is-over .supplier-doc-box {
  border-color: var(--rl-navy);
  background: var(--rl-paper);
}

.supplier-doc.is-over .supplier-doc-box {
  border-color: var(--rl-orange);
}

.supplier-doc-box:focus-within {
  outline: 3px solid var(--rl-navy);
  outline-offset: 2px;
}

.supplier-doc.is-ready .supplier-doc-box {
  border-style: solid;
  border-color: var(--rl-ok);
}

.supplier-doc--error .supplier-doc-box {
  border-style: solid;
  border-color: var(--rl-err);
  background: var(--rl-err-bg);
}

.supplier-doc-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--rl-paper);
  color: var(--rl-navy);
  font-size: 1.125rem;
}

.supplier-doc.is-ready .supplier-doc-icon {
  background: var(--rl-ok-bg);
  color: var(--rl-ok);
}

.supplier-doc-text {
  display: grid;
  flex: 1 1 12rem;
  min-width: 0;
}

.supplier-doc-text label {
  color: var(--rl-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
}

.supplier-doc-text em {
  color: var(--rl-text);
  font-style: normal;
  font-weight: 500;
}

.supplier-doc-status {
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.supplier-doc-box input {
  max-width: 100%;
  font: inherit;
  font-size: 0.875rem;
}

/* Without the script the native file input stays visible; with it, it covers the whole row. */
.supplier-doc-pick,
.supplier-form:not(.is-enhanced) .supplier-doc-status {
  display: none;
}

.is-enhanced .supplier-doc-pick {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--rl-navy);
  color: var(--rl-navy);
  font-size: 0.875rem;
  font-weight: 700;
}

.is-enhanced .supplier-doc-box input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.supplier-text-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rl-ink);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline !important;
  text-decoration-color: var(--rl-orange) !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  cursor: pointer;
}

.supplier-text-btn:hover {
  text-decoration-color: var(--rl-navy) !important;
}

.supplier-text-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.supplier-text-btn[aria-pressed="true"] {
  padding-inline: 0.5rem;
  background: var(--rl-navy);
  color: var(--rl-white);
  text-decoration: none !important;
}

.supplier [hidden] {
  display: none !important;
}

.supplier-toolbar {
  position: sticky;
  top: var(--supplier-top);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--rl-line);
  background: var(--rl-white);
}

.supplier-search {
  position: relative;
  flex: 1 1 16rem;
}

.supplier-search i {
  position: absolute;
  inset-inline-start: 0.9rem;
  top: 50%;
  translate: 0 -50%;
  color: var(--rl-text);
  pointer-events: none;
}

.supplier-search input {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding-block: 0.5rem;
  padding-inline: 2.5rem 0.75rem;
  border: 1px solid #9aa8bb;
  background: var(--rl-white);
  color: var(--rl-ink);
  font: inherit;
}

.supplier-search input::placeholder {
  color: #5d6b80;
}

.supplier-count {
  color: var(--rl-ink);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.supplier-count strong {
  display: inline-block;
  min-width: 1.75rem;
  padding-inline: 0.35rem;
  background: var(--rl-orange);
  color: var(--rl-navy);
  text-align: center;
}

.supplier-lot-group + .supplier-lot-group {
  margin-top: 1.75rem;
}

.supplier-lots-title {
  margin-bottom: 0.625rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 2px solid var(--rl-navy);
  color: var(--rl-ink);
  font-size: 1rem;
  font-weight: 800;
}

.supplier-lots-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 0.5rem;
}

.supplier-lot {
  display: flex;
  gap: 0.75rem;
  height: 100%;
  padding: 0.75rem;
  border: 1px solid var(--rl-line);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.supplier-lot:hover {
  border-color: var(--rl-navy);
}

.supplier-lot:has(input:checked) {
  border-color: var(--rl-navy);
  background: var(--rl-navy);
}

.supplier-lot:focus-within {
  outline: 3px solid var(--rl-orange);
  outline-offset: 1px;
}

.supplier-lot input {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.15rem 0 0;
  accent-color: var(--rl-orange);
}

.supplier-lot input:focus-visible {
  outline: none;
}

.supplier-lot-text {
  flex: 1;
  min-width: 0;
  text-align: start;
}

.supplier-lot strong {
  display: block;
  color: var(--rl-ink);
  font-size: 0.875rem;
  line-height: 1.4;
}

.supplier-lot-text span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.supplier-lot:has(input:checked) strong {
  color: var(--rl-white);
}

.supplier-lot:has(input:checked) .supplier-lot-text span {
  color: var(--rl-on-navy);
}

.supplier-sent {
  align-items: center;
  padding: 1.5rem;
  font-size: 1.125rem;
}

.supplier-sent i {
  font-size: 1.75rem;
}

.supplier-send .contact-captcha {
  max-width: 18rem;
}

.supplier-submit {
  min-width: min(100%, 18rem);
}

@media (max-width: 1340px) {
  .supplier {
    --supplier-top: 64px;
  }
}

@media (max-width: 900px) {
  .supplier-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .supplier-rail {
    display: none;
  }
}

@media (max-width: 640px) {
  .supplier-submit {
    width: 100%;
  }

  /* Compact sticky toolbar, so it does not crowd a phone screen. */
  .supplier-toolbar {
    gap: 0.25rem 0.75rem;
    padding-block: 0.5rem;
  }

  .supplier-toolbar .supplier-count,
  .supplier-toolbar .supplier-text-btn {
    font-size: 0.75rem;
  }

  .supplier-search {
    flex-basis: 100%;
  }
}

/* ---------- Scroll-down cue (base.html). main.js shows it while there is more page below. ---------- */

.rl-scroll-down {
  position: fixed;
  inset-inline-end: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 1050; /* under the header and its mobile menu */
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid var(--rl-navy);
  border-radius: 50% !important; /* the one exception to the square-corner rule */
  background: var(--rl-orange);
  color: var(--rl-navy);
  font-size: 1.125rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s, background-color 0.2s ease;
}

.rl-scroll-down.is-visible {
  opacity: 1;
  visibility: visible;
  animation: rl-bounce 1.4s ease-in-out infinite;
}

.rl-scroll-down:hover {
  background: var(--rl-orange-hover);
}

/* Holds still while being aimed at. */
.rl-scroll-down:is(:hover, :focus-visible) {
  animation-play-state: paused;
}

.rl-scroll-down:focus-visible {
  outline: 3px solid var(--rl-white);
  outline-offset: -7px;
}

@keyframes rl-bounce {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rl-scroll-down {
    transition: none;
  }

  .rl-scroll-down.is-visible {
    animation: none;
  }
}

/* ---------- Scrollbars: navy thumb on a pale track, orange when grabbed; square like the rest ----------
   Literal colours because the .rl tokens do not reach the page scrollbar on <html>. */

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: #e9edf3;
}

::-webkit-scrollbar-thumb {
  border: 3px solid #e9edf3;
  background: #001f4d;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff8c00;
}

::-webkit-scrollbar-thumb:active {
  background: #e07b00;
}

/* Firefox has no ::-webkit-scrollbar; it takes the same two colours. */
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-color: #001f4d #e9edf3;
  }
}
