/* ==================================================================
   czechia.qa — The Czech-Qatari Joint Business Council
   ------------------------------------------------------------------
   Palette
     maroon  #8A1538  Qatar's flag maroon; also the old theme accent
     navy    #14243D  institutional counterweight, Czech state blue
     stone   #ECEEF0  cool section ground (not a warm cream)
     paper   #FFFFFF
     line    #D6DBE0
   The recurring device is a half-maroon / half-navy hairline rule:
   two countries, one council. It is the only decorative element.
   No webfonts, no CDNs, no trackers.
   ================================================================== */

:root {
  --maroon: #8a1538;
  --maroon-dk: #6b0f2b;
  --maroon-lt: #a83a58;
  --navy: #101e33;
  --navy-lt: #24395c;
  --ink: #182231;
  --muted: #4c5764;
  --stone: #eef0f3;
  --stone-dk: #dce1e7;
  --rule: #b9c2cc;
  --paper: #ffffff;
  --line: #d2d8df;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --arabic: "Noto Naskh Arabic", "Geeza Pro", "Al Bayan", "Traditional Arabic", "Segoe UI", Tahoma, serif;

  --wrap: 1140px;
  --wrap-narrow: 720px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --step: clamp(3rem, 6vw, 4.75rem);   /* between major sections */
  --step-sm: clamp(1.75rem, 3.5vw, 2.75rem);  /* within a section */

  --ease: cubic-bezier(.2, .6, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 9.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  overflow-x: hidden;
}

/* Arabic gets its own family and a touch more leading */
html[lang="ar"] body { font-family: var(--arabic); line-height: 1.9; }
html[lang="ar"] h1, html[lang="ar"] h2,
html[lang="ar"] h3, html[lang="ar"] h4 { font-family: var(--arabic); }

img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.3rem + 2.9vw, 3.4rem); letter-spacing: -.021em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.12rem + 1.6vw, 2.2rem); letter-spacing: -.016em; line-height: 1.16; }
h3 { font-size: clamp(1.12rem, 1rem + .5vw, 1.32rem); letter-spacing: -.008em; line-height: 1.3; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--maroon-dk); }

:focus-visible {
  outline: 3px solid var(--maroon);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(100% - (var(--gut) * 2), var(--wrap));
  margin-inline: auto;
}

/* content that follows a page header shouldn't add a second full step */
.page-head + .wrap,
.page-head + .wrap > :first-child { margin-top: 0; }

.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; inset-inline-start: 1rem; top: -100px;
  z-index: 200; padding: .7rem 1.1rem;
  background: var(--navy); color: #fff;
  text-decoration: none; border-radius: 0 0 3px 3px;
  transition: top .15s var(--ease);
}
.skip:focus { top: 0; color: #fff; }

/* ---------------------------------------------- the bicolour signature */

.bicolour {
  height: 2px;
  background: linear-gradient(to right,
    var(--maroon) 0 clamp(90px, 16%, 230px),
    var(--navy) clamp(90px, 16%, 230px) 100%);
}
[dir="rtl"] .bicolour {
  background: linear-gradient(to left,
    var(--maroon) 0 clamp(90px, 16%, 230px),
    var(--navy) clamp(90px, 16%, 230px) 100%);
}

/* ------------------------------------------------------------- icons */

.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 17px; height: 17px; }
.icon-up { transform: rotate(-90deg); }

.link-more .icon-sm,
.story-src .icon-sm,
.partner-note .icon-sm,
.office-addr .icon-sm { margin-inline-start: .4em; vertical-align: -.22em; }
[dir="rtl"] .link-more .icon-sm { transform: scaleX(-1); }

/* ---------------------------------------------------------- masthead */

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  box-shadow: 0 1px 0 0 var(--line), 0 6px 18px -14px rgba(16, 30, 51, .5);
}

/* utility bar: contact details and language, the way a corporate site
   carries them — above the main navigation, not inside it */
.utility {
  background: var(--navy);
  color: rgba(255, 255, 255, .72);
  font-size: .8rem;
}

.utility-in {
  width: min(100% - (var(--gut) * 2), 1320px);
  margin-inline: auto;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.utility-contact {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0; margin: 0; padding: 0; list-style: none;
}

.utility-contact li + li {
  border-inline-start: 1px solid rgba(255, 255, 255, .16);
}

.utility-contact a {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.1rem;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.utility-contact li:first-child a { padding-inline-start: 0; }
.utility-contact a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.utility-contact svg { color: var(--maroon-lt); }

/* main bar */
.masthead-main { background: var(--paper); }

.masthead-in {
  width: min(100% - (var(--gut) * 2), 1320px);
  margin-inline: auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

/* the lockup: mark, hairline, council name — reads as one signature
   rather than a logo sitting on its own */
.brand {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 1.5vw, 1.15rem);
  padding: 1rem 0;
  text-decoration: none;
  min-width: 0;
}

.brand img { width: clamp(150px, 15vw, 196px); height: auto; }

.brand-rule {
  width: 1px;
  align-self: stretch;
  margin-block: .15rem;
  background: var(--rule);
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: .845rem;
  line-height: 1.32;
  letter-spacing: -.005em;
  color: var(--navy);
  max-width: 21ch;
  text-wrap: balance;
}
html[lang="ar"] .brand-name { font-family: var(--arabic); font-size: .82rem; }

.nav { display: flex; align-items: center; }

.nav-list {
  display: flex; flex-wrap: wrap; align-items: stretch;
  gap: 0;
  margin: 0; padding: 0; list-style: none;
}

.nav-list a {
  position: relative;
  display: flex; align-items: center;
  height: 92px;
  padding-inline: clamp(.6rem, 1.15vw, 1.05rem);
  color: var(--navy);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: -.004em;
  text-decoration: none;
  transition: color .15s var(--ease), background .15s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  inset-inline: clamp(.6rem, 1.15vw, 1.05rem);
  bottom: 0;
  height: 3px;
  background: var(--maroon);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s var(--ease);
}

.nav-list a:hover { color: var(--maroon); background: var(--stone); }
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--maroon); }

/* language switcher */

.langs { display: flex; align-items: center; gap: .4rem; }
.langs-label { display: flex; color: rgba(255, 255, 255, .62); }
.langs ul { display: flex; gap: .1rem; margin: 0; padding: 0; list-style: none; }

.langs a {
  display: block;
  padding: .3rem .6rem;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.langs a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.langs a[aria-current="true"] { color: #fff; background: var(--maroon); }

.langs.in-nav { display: none; }

.burger {
  display: none;
  width: 48px; height: 48px;
  padding: 0; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer;
}
.burger-box { display: block; width: 20px; margin: 0 auto; }
.burger-box span {
  display: block; height: 2px; background: var(--navy);
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.burger-box span + span { margin-top: 5px; }
.burger[aria-expanded="true"] .burger-box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: clamp(460px, 74vh, 700px);
  display: flex; align-items: flex-end;
  padding: var(--step) 0 clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  background: var(--navy);
}

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(14, 25, 43, .93) 0%, rgba(14, 25, 43, .7) 46%, rgba(14, 25, 43, .26) 100%),
    linear-gradient(to right, rgba(12, 22, 38, .46), rgba(12, 22, 38, 0) 62%);
}
[dir="rtl"] .hero-veil {
  background:
    linear-gradient(to top, rgba(14, 25, 43, .93) 0%, rgba(14, 25, 43, .7) 46%, rgba(14, 25, 43, .26) 100%),
    linear-gradient(to left, rgba(12, 22, 38, .46), rgba(12, 22, 38, 0) 62%);
}

.hero-in { position: relative; }

.hero-title { max-width: 17ch; }
html[lang="ar"] .hero-title { max-width: 20ch; }

.hero-title {
  color: #fff;
  margin: 0 0 .55em;
  font-size: clamp(2.1rem, 1.2rem + 3.8vw, 4.1rem);
  line-height: 1.06;
}

.hero-sub {
  color: rgba(255, 255, 255, .88);
  max-width: 42ch;
  font-size: clamp(1.02rem, .95rem + .45vw, 1.28rem);
  margin-bottom: 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }

/* ---------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  padding: .85rem 1.7rem;
  font-family: var(--sans);
  font-size: .94rem;
  font-weight: 500;
  letter-spacing: .005em;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
html[lang="ar"] .btn { font-family: var(--arabic); }

.btn-solid { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.btn-solid:hover { background: var(--maroon-dk); border-color: var(--maroon-dk); color: #fff; }

.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.link-more {
  display: inline-flex;
  align-items: center;
  font-size: .95rem;
  text-decoration: none;
  padding-bottom: 2px;
  box-shadow: inset 0 -1px 0 0 currentColor;
  transition: box-shadow .18s var(--ease), color .18s var(--ease);
}
.link-more:hover { box-shadow: inset 0 -2px 0 0 currentColor; }

/* ----------------------------------------------------------- intro */

.intro { padding: var(--step) 0 0; }

.intro-in {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: var(--step);
}

.intro-text p { max-width: 62ch; color: var(--muted); }
.intro-text h2 { max-width: 22ch; }
.intro-img img { width: 100%; object-fit: cover; border-radius: 2px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 var(--step);
  padding: clamp(1.5rem, 3vw, 2.1rem) 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats li { padding-inline: 1.4rem; border-inline-start: 1px solid var(--line); }
.stats li:first-child { border-inline-start: 0; padding-inline-start: 0; }

.stat-v {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem);
  line-height: 1;
  color: var(--maroon);
  letter-spacing: -.02em;
  font-variant-numeric: lining-nums tabular-nums;
  margin-bottom: .45rem;
}
html[lang="ar"] .stat-v { font-family: var(--sans); }
.stat-l { display: block; font-size: .835rem; color: var(--muted); line-height: 1.5; max-width: 24ch; }

/* ------------------------------------------------- chairman strip */

.chairman-strip { background: var(--stone); padding: var(--step) 0; }

.chairman-in {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
}

.chairman-photo img { width: 100%; border-radius: 2px; }

.chairman-strip blockquote { margin: 0; }
.chairman-eyebrow { color: var(--maroon); font-size: .92rem; margin-bottom: .8rem; }

.chairman-quote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.05rem + 1.15vw, 1.95rem);
  line-height: 1.35;
  color: var(--navy);
  max-width: 34ch;
  margin-bottom: 1.4rem;
}
html[lang="ar"] .chairman-quote { font-family: var(--arabic); line-height: 1.65; }

.chairman-strip footer p { margin-bottom: .2rem; }
.chairman-name { font-weight: 600; }
.chairman-role { color: var(--muted); font-size: .88rem; max-width: 42ch; margin-bottom: 1rem !important; }

/* -------------------------------------------------------- services */

.home-services { padding: var(--step) 0; }
.home-news { padding: var(--step) 0; background: var(--stone); }

/* ------------------------------------------------- news feed (home) */

.news-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--rule);
}

.news-head h2 { margin-bottom: .35rem; }

.news-lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 52ch;
  margin: 0;
}

.news-all { flex: none; padding-bottom: .2rem; }

.ncards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.ncard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--maroon);
  padding: clamp(1.3rem, 2.4vw, 1.75rem);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.ncard:hover {
  border-color: var(--rule);
  border-top-color: var(--maroon-dk);
  box-shadow: 0 14px 28px -20px rgba(16, 30, 51, .55);
}

.ncard-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  font-size: .79rem;
  color: var(--muted);
  margin: 0 0 .7rem;
}

.ncard-tag { color: var(--maroon); font-weight: 600; }

.ncard-tag + time {
  padding-inline-start: .55rem;
  border-inline-start: 1px solid var(--rule);
}

.ncard-title { font-size: 1.16rem; line-height: 1.3; margin: 0 0 .6rem; }

.ncard-title a {
  color: var(--navy);
  text-decoration: none;
  transition: color .15s var(--ease);
}
.ncard-title a:hover { color: var(--maroon); }

/* the whole card is the target, not just the headline */
.ncard-title a::after { content: ""; position: absolute; inset: 0; }

.ncard-excerpt {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.ncard-more { margin: auto 0 0; }
.ncard:hover .link-more { box-shadow: inset 0 -2px 0 0 currentColor; }

/* kind label on the In Media page */
.story-tag {
  display: block;
  color: var(--maroon);
  font-weight: 600;
  font-size: .79rem;
  margin-bottom: .2rem;
}

.story { scroll-margin-top: 9.5rem; }

.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 50ch;
  margin-bottom: var(--step-sm);
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  column-gap: clamp(1.5rem, 3vw, 3rem);
  margin: 0 0 var(--step-sm);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 1rem;
  align-items: start;
  padding: 1.7rem 1.8rem 1.9rem 0;
  border-bottom: 1px solid var(--line);
}
[dir="rtl"] .service { padding: 1.7rem 0 1.9rem 1.8rem; }

/* nudge the icon onto the heading's cap-height rather than its line-box */
.service-icon { color: var(--maroon); margin-top: .12em; }
.service h3 { margin-bottom: .4rem; }
.service h3 a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--maroon); }
.service h3 a:hover { color: var(--maroon); }
.service p { font-size: .945rem; line-height: 1.62; color: var(--muted); max-width: 46ch; }

/* ----------------------------------------------------------- news */

.stories { display: grid; gap: 0; margin-bottom: 2.5rem; border-top: 1px solid var(--line); }

.story {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
}

.story-date {
  color: var(--muted); font-size: .855rem; margin: .45rem 0 0;
  font-variant-numeric: lining-nums;
}
.story-title { grid-column: 2; margin-bottom: .75rem; max-width: 32ch; }
.story-body { grid-column: 2; color: var(--muted); font-size: .955rem; line-height: 1.66; max-width: 64ch; }
.story-body p { margin-bottom: .75em; }
.story-src { grid-column: 2; margin: 1rem 0 0; font-size: .89rem; }

.story-src a {
  display: inline-flex; align-items: center;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 0 currentColor;
  padding-bottom: 2px;
  transition: box-shadow .18s var(--ease);
}
.story-src a:hover { box-shadow: inset 0 -2px 0 0 currentColor; }
.story-host { color: var(--muted); margin-inline-start: .45em; }

/* ------------------------------------------------------- page head */

.page-head {
  display: grid;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--navy);
  overflow: hidden;
}

/* both children occupy the same cell, so they stack without absolute
   positioning and the row height follows whichever is taller */
.banner, .page-head-in { grid-area: 1 / 1; }

.banner { position: relative; min-height: clamp(230px, 27vw, 330px); }
.banner-img, .banner-img img { width: 100%; height: 100%; object-fit: cover; }

.banner-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(14, 25, 43, .9) 0%, rgba(14, 25, 43, .62) 58%, rgba(14, 25, 43, .38) 100%),
    linear-gradient(to right, rgba(12, 22, 38, .4), rgba(12, 22, 38, 0) 62%);
}
[dir="rtl"] .banner-veil {
  background:
    linear-gradient(to top, rgba(14, 25, 43, .9) 0%, rgba(14, 25, 43, .62) 58%, rgba(14, 25, 43, .38) 100%),
    linear-gradient(to left, rgba(12, 22, 38, .4), rgba(12, 22, 38, 0) 62%);
}

.page-head-in {
  position: relative;
  z-index: 1;
  align-self: end;
  padding-block: clamp(2.2rem, 5vw, 3.6rem);
}

.page-head h1 { color: #fff; margin: 0; max-width: 18ch; }

.page-lead {
  margin-top: 1rem;
  font-size: clamp(1.02rem, .96rem + .38vw, 1.22rem);
  color: rgba(255, 255, 255, .86);
  max-width: 54ch;
}

/* ---------------------------------------------------------- layouts */

.layout-prose, .layout-office, .layout-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-bottom: var(--step);
}

.layout-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.layout-letter {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-bottom: var(--step);
}

.prose-sec + .prose-sec { margin-top: 2.6rem; }
.prose p { color: var(--muted); max-width: 68ch; }
.prose-wide { max-width: 74ch; }

.notice {
  margin-top: 2.8rem;
  padding: 1.5rem 1.7rem;
  background: var(--stone);
  border-inline-start: 3px solid var(--maroon);
}
.notice p { color: var(--ink); font-size: .95rem; max-width: none; }

/* people */

.people h2 { font-size: 1.18rem; margin-bottom: 1.1rem; }
.people-list { margin: 0; padding: 0; list-style: none; }

.people-list li {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}
.people-list li:last-child { border-bottom: 1px solid var(--line); }

.person-name { font-weight: 600; letter-spacing: -.005em; margin-bottom: .2rem; }
.person-role { color: var(--muted); font-size: .875rem; margin-bottom: .5rem; }
.person-mail { margin: 0; font-size: .9rem; }
.person-mail a {
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none; color: var(--maroon);
}
.person-mail a span, .person-mail a { transition: color .15s var(--ease); }
.person-mail a:hover { color: var(--maroon-dk); text-decoration: underline; text-underline-offset: .2em; }

/* letter */

.letter { max-width: 64ch; }
.letter p { color: var(--ink); }
.letter-hi { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); margin-bottom: 1.4rem; }
html[lang="ar"] .letter-hi { font-family: var(--arabic); }

.sign { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.sign-name { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); margin-bottom: .25rem; }
html[lang="ar"] .sign-name { font-family: var(--arabic); }
.sign-role { color: var(--muted); font-size: .88rem; max-width: 46ch; margin-bottom: .7rem; }
.sign-mail { margin: 0; font-size: .92rem; }
.sign-mail a {
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none;
}
.sign-mail a:hover { text-decoration: underline; text-underline-offset: .2em; }

.portrait { margin: 0; }
.portrait img { width: 100%; border-radius: 2px; }

/* cargo modes */

.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 0 0 var(--step);
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.modes li {
  display: flex; flex-direction: column; gap: .7rem;
  align-items: flex-start;
  padding: 1.4rem 1.3rem;
  background: var(--paper);
  font-size: .92rem;
}
.modes svg { color: var(--maroon); }

.partner-note { margin-top: 2.5rem; font-size: .95rem; }
.partner-note a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* office */

.office-addr { margin-top: 2rem; font-style: normal; }
.addr-label {
  display: flex; align-items: center; gap: .45rem;
  color: var(--maroon); font-size: .88rem; margin-bottom: .5rem;
}
.office-map { border: 1px solid var(--line); }
.office-map iframe { width: 100%; height: clamp(300px, 45vw, 430px); border: 0; }

/* ----------------------------------------------------------- contact */

.contact-lines { margin: 0 0 2.6rem; padding: 0; list-style: none; }

.contact-lines li {
  display: flex; gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}
.contact-lines li:last-child { border-bottom: 1px solid var(--line); }
.contact-lines svg { color: var(--maroon); flex: none; }

.cl-label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.cl-note { display: block; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.contact-lines a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* form */

.cform {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.6rem;
}

.field { display: flex; flex-direction: column; gap: .4rem; }
.field-wide { grid-column: 1 / -1; }

.cform label { font-size: .88rem; color: var(--navy); }
.req { color: var(--maroon); }

.cform input, .cform textarea {
  font: inherit;
  font-size: .97rem;
  padding: .78rem .9rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .15s var(--ease);
}
.cform textarea { resize: vertical; min-height: 150px; }
.cform input:hover, .cform textarea:hover { border-color: #b9c1c9; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(138, 21, 56, .12); }
.cform [aria-invalid="true"] { border-color: var(--maroon); background: #fdf6f8; }

.err { margin: 0; font-size: .82rem; color: var(--maroon); }

/* Honeypot. Must stay in the DOM for bots to find, but off-screen
   positioning (left:-9999px) extends the scrollable width in RTL, so use
   the clip-path technique instead — it is direction-safe. */
.hp {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cform-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: .4rem; }
.cform-note { margin: 0; font-size: .82rem; color: var(--muted); }

.formstatus {
  grid-column: 1 / -1;
  margin: 0;
  padding: .9rem 1.1rem;
  font-size: .93rem;
  border-inline-start: 3px solid var(--maroon);
  background: var(--stone);
}
.formstatus[data-state="ok"] { border-inline-start-color: #1c7a4a; }

/* --------------------------------------------------------- partners */

/* The ten partner marks arrive at wildly different proportions — some
   wide wordmarks, some tall lockups, one a horse. Floating them on a
   white field made the row look accidental. Uniform bordered cells give
   each the same optical weight and read as a partner wall. */

.partners { padding: var(--step) 0; background: var(--stone); }

.partners-h {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--navy);
  margin-bottom: 1.6rem;
}
html[lang="ar"] .partners-h { font-family: var(--arabic); }

.partners-h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.partner-grid a {
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: 1.2rem 1.4rem;
  background: var(--paper);
  transition: background .2s var(--ease);
}

.partner-grid img {
  max-height: 46px;
  max-width: 100%;
  width: auto;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}

.partner-grid a:hover { background: var(--paper); }
.partner-grid a:hover img { filter: none; opacity: 1; }

/* ----------------------------------------------------------- footer */

.foot { background: var(--navy); color: rgba(255, 255, 255, .68); }
.foot .bicolour { height: 3px; }

.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
  padding: var(--step) 0 2.75rem;
}

.foot-in > * { padding-inline: clamp(1.5rem, 3.5vw, 3rem); }
.foot-in > :first-child { padding-inline-start: 0; }
.foot-in > :last-child { padding-inline-end: 0; }
.foot-in > * + * { border-inline-start: 1px solid rgba(255, 255, 255, .13); }

.foot-brand img {
  background: #fff;
  padding: .85rem 1.1rem;
  margin-bottom: 1.2rem;
  width: 190px;
  height: auto;
}
.foot-brand p {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
  color: #fff;
  max-width: 22ch;
}
html[lang="ar"] .foot-brand p { font-family: var(--arabic); }

.foot-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .66);
  margin-bottom: 1.1rem;
}

.foot-nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .1rem; }

.foot-nav a {
  display: block;
  padding: .42rem 0;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: .9rem;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  transition: color .15s var(--ease), padding .15s var(--ease);
}
.foot-nav a:hover { color: #fff; padding-inline-start: .35rem; }

.foot-contact {
  font-style: normal;
  font-size: .9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, .7);
}
.foot-contact p + p { margin-top: 1rem; }
.foot-contact a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.foot-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }

.foot-base {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding: 1.4rem 0 1.9rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .83rem;
}
.foot-base p { margin: 0; color: rgba(255, 255, 255, .55); }
.foot-base .langs-label { color: rgba(255, 255, 255, .62); }

/* --------------------------------------------------------- to top */

.totop {
  position: fixed;
  inset-inline-end: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  border-radius: 2px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 90;
}
.totop:hover { background: var(--maroon); color: #fff; }
.totop.on { opacity: 1; visibility: visible; transform: none; }

/* ------------------------------------------------------------- 404 */

.layout-404 { padding: clamp(4rem, 12vw, 8rem) 0; max-width: var(--wrap-narrow); }

/* ------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .intro-in, .layout-prose, .layout-office, .layout-contact, .layout-letter {
    grid-template-columns: minmax(0, 1fr);
  }
  .layout-letter .portrait { max-width: 280px; }
  .chairman-in { grid-template-columns: 170px minmax(0, 1fr); }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .burger { display: block; }

  .nav {
    position: absolute;
    top: 100%; inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(16, 30, 51, .13);
    display: none;
  }
  .nav.open { display: flex; }

  .nav-list { flex-direction: column; align-items: stretch; }

  .nav-list a {
    height: auto;
    padding: 1rem var(--gut);
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] {
    background: var(--stone);
    box-shadow: inset 3px 0 0 0 var(--maroon);
  }
  [dir="rtl"] .nav-list a[aria-current="page"] { box-shadow: inset -3px 0 0 0 var(--maroon); }

  /* the language picker moves out of the dark utility bar and into the
     open menu, so it needs the light-background colours */
  .langs.utility { display: none; }
  .langs.in-nav {
    display: flex;
    padding: 1rem var(--gut) 1.15rem;
    background: var(--stone);
  }
  .langs.in-nav .langs-label { color: var(--muted); }
  .langs.in-nav a { color: var(--navy); }
  .langs.in-nav a:hover { background: rgba(16, 30, 51, .08); color: var(--navy); }
  .langs.in-nav a[aria-current="true"] { background: var(--maroon); color: #fff; }

  .masthead-main { position: relative; }
  .masthead-in { min-height: 78px; }
  .brand img { width: clamp(132px, 20vw, 168px); }
  .brand-name { display: none; }
  .brand-rule { display: none; }
}

@media (max-width: 1000px) {
  .intro-in, .layout-prose, .layout-office, .layout-contact, .layout-letter {
    grid-template-columns: minmax(0, 1fr);
  }
  .layout-letter .portrait { max-width: 280px; }
  .chairman-in { grid-template-columns: 170px minmax(0, 1fr); }

  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .foot-in > * { padding-inline: 0; }
  .foot-in > * + * { border-inline-start: 0; }
  .foot-in > :nth-child(2) { padding-inline-start: clamp(1.5rem, 4vw, 3rem); border-inline-start: 1px solid rgba(255, 255, 255, .13); }
}

@media (max-width: 1000px) {
  .ncards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .ncards { grid-template-columns: minmax(0, 1fr); }
  .news-head { align-items: flex-start; flex-direction: column; }

  .utility-contact li + li { border-inline-start: 0; }
  .utility-contact a { padding-inline: 0; margin-inline-end: 1.1rem; }
  .utility-in { min-height: 36px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 0; }
  .stats li:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }

  .story { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .story-title, .story-body, .story-src { grid-column: 1; }

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

@media (max-width: 768px) {
  .row { margin: 0; }
  .col { flex: 0 0 100%; max-width: 100%; padding: 0; }
  .col-spacer { display: none; }
  .col + .col { margin-top: 24px; }
}

@media (max-width: 720px) {
  /* 10 partners: only 5 and 2 columns divide evenly, so never land on a
     count that would leave half-filled rows showing the rule colour */
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-grid a { min-height: 88px; padding: 1rem; }
  .partner-grid img { max-height: 40px; }
}

@media (max-width: 640px) {
  /* the phone number is the one that matters on a handset */
  .utility-contact li:nth-child(2) { display: none; }
}

@media (max-width: 560px) {
  .chairman-in { grid-template-columns: minmax(0, 1fr); }
  .chairman-photo { max-width: 190px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-in > :nth-child(2) { padding-inline-start: 0; border-inline-start: 0; }
  .hero { min-height: 0; padding-top: 4.5rem; }
}

@media (max-width: 767px) {
  html { font-size: 20px; line-height: 31px; scroll-padding-top: 7rem; }
  .story { scroll-margin-top: 7rem; }
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }
  h4 { font-size: 20px; }
  .container { padding: 24px 20px; }
}

/* --------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-video { display: none; }
}

/* ----------------------------------------------------------- print */

@media print {
  .masthead, .foot, .totop, .hero-video, .partners, .office-map, .cform { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .banner { height: 0; overflow: hidden; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}

/* ------------------------------------- offline map card (no-network) */

.map-card {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(2rem, 6vw, 3.5rem) 1.5rem;
  text-align: center;
  background: var(--stone);
}

.map-pin { color: var(--maroon); }
.map-addr { color: var(--muted); line-height: 1.9; margin: 0; }
