/* =========================================================================
   Pakistani Commodities — Pakistan/Indonesia corridor
   Visual system: palette, type, spacing, surfaces.

   Rules this file enforces:
   - The brand's six colours, plus each desk's: sea for the Export Desk,
     amber for the Import Desk, as in the admin. Seal only on actionable
     things. Flag only on errors.
   - Sheets (white, 12px corners, a 9% ink line) hold the things a reader
     handles: a desk, a form, a person. Running text sits on paper, divided
     by hairlines. No shadows. No uppercase labels.
   - 8px baseline. Section rhythm is uniform.
   Restyled 18 October 2026 at the owner's request ("more beautiful and
   aesthetic"); the words on every page stayed as they were.
   ========================================================================= */

/* --- Fonts. Self-hosted. No third-party connection at runtime. ----------- */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/plex-sans-var.woff2") format("woff2-variations");
  font-weight: 100 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/plex-sans-var-ext.woff2") format("woff2-variations");
  font-weight: 100 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("/assets/fonts/plex-serif-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("/assets/fonts/plex-serif-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
/* Urdu locale only — see base.njk, which preloads these on /ur/* alone. */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/plex-arabic-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/plex-arabic-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/plex-arabic-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* --- Tokens -------------------------------------------------------------- */

:root {
  /* Six values. Measured against paper unless noted. */
  --ink:   #0E1417;  /* text and dark surfaces        16.77:1 on paper */
  --paper: #F6F3ED;  /* the page                      16.77:1 on ink   */
  --jute:  #C4A87C;  /* rules, marks, secondary emphasis. 8.17:1 on ink;
                        2.05:1 on paper — never text on paper.         */
  --steel: #4A5A66;  /* secondary text and hairlines   6.44:1 on paper */
  --seal:  #A02C1E;  /* ACTIONABLE ONLY                6.60:1 on paper */
  --flag:  #8A6A00;  /* ERRORS AND WARNINGS ONLY       4.58:1 on paper */
  --wa:    #25D366;  /* WhatsApp's own green: its glyph only, never text */

  /* The desks, as in the admin. Sea passes 4.9:1 on paper; amber 3.2:1, so
     amber marks and large type only. The -ink tints are for lines on ink. */
  --sea:       #1F6FA0;
  --amber:     #B07D3A;
  --sea-ink:   #4C9BD0;
  --amber-ink: #D3A160;

  /* Sheets: what a reader handles sits on white. */
  --sheet:  #FFFFFF;
  --wash:   #EFEAE0;
  --line:   rgb(14 20 23 / 0.09);
  --radius: 12px;
  --r-ctl:  7px;

  /* Hairlines. Steel at 20% on paper; jute on ink, where steel disappears. */
  --hair:      rgb(74 90 102 / 0.20);
  --hair-firm: rgb(74 90 102 / 0.40);
  --hair-ink:  rgb(196 168 124 / 0.32);

  --serif:  "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans:   "IBM Plex Sans", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono:   "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", monospace;
  --arabic: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  /* Type scale: 13 15 17 21 27 34 44 56. No sizes between these. */
  --fs-13: 0.8125rem;
  --fs-15: 0.9375rem;
  --fs-17: 1.0625rem;
  --fs-21: 1.3125rem;
  --fs-27: 1.6875rem;
  --fs-34: 2.125rem;
  --fs-44: 2.75rem;
  --fs-56: 3.5rem;

  /* Spacing: 8px baseline, 4 8 12 16 24 32 48 64 96. */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;
  --space-4: 16px; --space-5: 24px;  --space-6: 32px;
  --space-7: 48px; --space-8: 64px;  --space-9: 96px;

  /* Uniform section rhythm. One value, used everywhere. */
  --rhythm: var(--space-9);
  --rhythm-tight: var(--space-8);

  --measure: 68ch;
  --page: 1280px;
  --col-margin: 152px;
  --gutter: var(--space-6);

  color-scheme: light;
}

@media (max-width: 60rem) {
  :root { --rhythm: var(--space-7); --rhythm-tight: var(--space-7); }
}
[data-desk="buy"]    { --desk: var(--sea); }
[data-desk="source"] { --desk: var(--amber); }


/* --- Reset --------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-17);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Short pages (About, Services, Corridor) used to leave a gap between the
     content and the footer. The footer now sits at the bottom of the viewport
     when the page is short, and flows naturally when it is long. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.masthead { flex-shrink: 0; }
main { flex: 1 0 auto; }
.footer { flex-shrink: 0; }

address { font-style: normal; }

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-44); }
@media (max-width: 60rem) { h1 { font-size: var(--fs-34); } }
h2 { font-size: var(--fs-27); }
h3 { font-size: var(--fs-21); }
h4 { font-size: var(--fs-17); }

p, li { max-width: var(--measure); }
p + p { margin-block-start: var(--space-4); }

.lead {
  font-family: var(--serif);
  font-size: var(--fs-34);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 26ch;
  text-wrap: balance;
}

/* A standfirst that runs to three sentences. At .lead's display size it became
   a ten-line wall taller than the page it introduced; this steps down to 21/34,
   the same ratio the homepage hero uses for its long sentence, in the same
   lighter serif. */
.standfirst {
  font-family: var(--serif);
  font-size: var(--fs-21);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Neither Plex Serif nor Plex Mono carries U+21C4, so the corridor arrow in
   running text falls back rather than rendering a tofu box. */
.arrow {
  font-family: ui-monospace, "Segoe UI Symbol", "Segoe UI", monospace;
  font-weight: 400;
}

/* Inline mono: numerals, dates, currency, regulation and HS numbers only.
   Isolated but NOT forced to LTR — forcing direction reorders an Urdu date
   that mixes a month name with numerals. */
.fig, .mono {
  font-family: var(--mono);
  font-feature-settings: "zero" 1;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}
.fig { font-size: var(--fs-21); font-weight: 500; line-height: 1.15; }
.mono { font-size: inherit; }

.label {
  font-family: var(--mono);
  font-size: var(--fs-13);
  color: var(--steel);
  line-height: 1.6;
}
.meta {
  font-family: var(--mono);
  font-size: var(--fs-13);
  color: var(--steel);
  line-height: 1.6;
  max-width: none;
}

a {
  color: var(--seal);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }

.skip {
  position: absolute; top: 0; inset-inline-start: 0;
  width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
  background: var(--ink); color: var(--paper);
  padding: var(--space-3) var(--space-4); z-index: 100;
}
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; }

/* --- The document grid ---------------------------------------------------
   margin | main | rail. The margin column carries reference marks. Grid
   follows writing direction, so it flips under dir="rtl" with no override.
   ------------------------------------------------------------------------- */

.page { max-width: var(--page); margin-inline: auto; padding-inline: var(--space-5); }

/* ONE content grid, used by every page. Everything starts at the same left
   edge — the page container's padding edge — so headings, heroes and sections
   line up across the whole site.

   There was previously a left margin column carrying a reference mark. It held
   real metadata on a handful of pages and nothing on twenty others, which read
   as content pushed off-centre. The mark now sits directly above its heading
   (which is what it already did on mobile), so the rail is gone and there is a
   single left edge everywhere. */
.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--gutter);
  row-gap: 0;
  align-items: start;
}
.doc > * { grid-column: 1; }

/* The only legitimate second column: the sticky RFQ rail on product pages.
   Scoped with :has() so no other page pays for it. */
@media (min-width: 60rem) {
  .doc:has(> .rail) {
    grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr);
  }
  .doc:has(> .rail) > .rail { grid-column: 2; grid-row: 1 / span 40; }
}
@media (max-width: 60rem) {
  /* Stacked, the rail falls to the end rather than interrupting the
     specification tables it sits beside on desktop. */
  .doc > .rail { order: 99; margin-block-start: var(--rhythm); }
}

/* The reference mark: a line above the heading it belongs to. */
.m-note {
  font-family: var(--mono);
  font-size: var(--fs-13);
  color: var(--steel);
  line-height: 1.6;
  max-width: none;
  margin-block-end: var(--space-2);
}
.m-note--step { font-size: var(--fs-27); color: var(--ink); }

/* A corridor note's dateline: published and reviewed on one line, and the
   optional "Updated …: what changed" beneath it, held to the text measure. */
.dateline p { margin: 0; }
.dateline p + p { margin-block-start: var(--space-1); }
.dateline-update { max-width: var(--measure); }

/* --- Section rhythm ------------------------------------------------------
   One value everywhere. Inconsistent vertical spacing was the main thing
   making the previous build read as plain.
   ------------------------------------------------------------------------- */

.section { padding-block: var(--rhythm); }
.section + .section { border-block-start: 1px solid var(--hair); }
.section-head { margin-block-end: var(--space-6); }

/* --- Ink surfaces --------------------------------------------------------
   Three of them: .home-hero, .masthead, .footer. Steel (2.6:1) and seal
   (2.5:1) both fail on ink. There, jute does the marking and paper does the
   reading; seal appears only as a fill, where paper-on-seal gives 6.6:1.
   ------------------------------------------------------------------------- */

.home-hero .label, .home-hero .meta,
.masthead .label, .masthead .meta,
.footer .label, .footer .meta,
.footer .mono, .footer address { color: var(--jute); }

.home-hero :focus-visible,
.masthead :focus-visible, .footer :focus-visible { outline-color: var(--jute); }

/* Full-bleed sections. Both users of this class are direct children of <main>,
   so they already span the full content width and need no negative margin.
   The usual calc(50% - 50vw) trick is wrong here: 50vw counts the scrollbar
   and 50% does not, so it overhangs by half a scrollbar on each side and
   creates the horizontal scroll it was meant to avoid. */
.bleed { margin-inline: 0; padding-inline: 0; }

/* --- Masthead ------------------------------------------------------------
   The wordmark on the left; the menu, member sign-in and the languages on the
   right, with the width of the page between them. Until 18 October 2026 the
   menu sat 32px from the wordmark and read as part of it. On a desk's pages a
   rule in that desk's colour runs under the bar.
   ------------------------------------------------------------------------- */

.masthead {
  background: var(--ink); color: var(--paper);
  border-block-end: 3px solid var(--desk, var(--ink));
}
.masthead-in {
  max-width: var(--page); margin-inline: auto;
  min-height: 80px;
  padding: var(--space-4) var(--space-5);
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: var(--space-6); row-gap: var(--space-3);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 600; font-size: var(--fs-21);
  letter-spacing: -0.02em;
  color: var(--paper); text-decoration: none;
}
.wordmark:hover span { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.wordmark-mark { flex: none; display: block; width: 36px; height: auto; }
.footer-mark { display: block; margin-block-end: var(--space-4); }

.masthead nav {
  margin-inline-start: auto;
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: var(--space-5); row-gap: var(--space-2);
}
/* Urdu sets the menu in a larger script and has a seventh item. */
html[lang="ur"] .masthead nav { column-gap: var(--space-4); }
html[lang="ur"] .wordmark { font-size: var(--fs-17); }
.masthead nav a {
  color: rgb(246 243 237 / 0.84); text-decoration: none;
  font-size: var(--fs-15); font-weight: 500;
  padding-block: var(--space-2);
  border-block-end: 2px solid transparent;
}
.masthead nav a:hover { color: var(--paper); border-block-end-color: var(--hair-ink); }
.masthead nav a[aria-current="page"],
.masthead nav a[aria-current="true"] { color: var(--paper); border-block-end-color: var(--desk, var(--jute)); }
/* Each desk's dot, in the colour it carries everywhere else. */
.masthead .desk::before {
  content: ""; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  margin-inline-end: 8px; vertical-align: 0.12em;
  background: var(--sea-ink);
}
.masthead .desk--source::before { background: var(--amber-ink); }

/* Member sign-in: the one thing besides the menu at the top of every page. */
.signin {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--hair-ink); border-radius: 999px;
  color: var(--paper); text-decoration: none;
  font-size: var(--fs-15); font-weight: 500; line-height: 1.2; white-space: nowrap;
}
.signin svg { flex: none; color: var(--jute); }
.signin:hover { border-color: var(--jute); }

.langs { display: flex; gap: var(--space-3); align-items: center; }
.langs a, .langs span {
  font-family: var(--mono); font-size: var(--fs-13);
  color: var(--jute); text-decoration: none;
}
.langs a:hover { text-decoration: underline; }
.langs [aria-current="true"] { color: var(--paper); }
.langs [lang="ur"] { font-family: var(--arabic); font-size: var(--fs-15); }

/* A language with no translated route for this page stays listed but inert, so
   the switcher does not appear to lose options as you move around.

   It is struck through rather than dimmed. Dimming is the reflex here, but the
   masthead ground is ink and steel on ink measures 2.60:1 — the same failure
   this palette was audited to remove. A rule through the name carries the
   meaning at jute's full 8.17:1 instead of trading legibility for it. */
.langs [aria-disabled="true"] {
  cursor: default;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* --- Mobile navigation ---------------------------------------------------
   A disclosure, not a drawer: the panel pushes the page down rather than
   sliding over it. No overlay, no shadow, no radius, no transform.

   The wrapper is display:contents above the breakpoint, so the desktop
   masthead lays out exactly as it did before the wrapper existed.
   ------------------------------------------------------------------------- */
.masthead-menu { display: contents; }

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  align-items: center;
  padding: var(--space-2);
  margin-inline-end: calc(var(--space-2) * -1);
  background: none; border: 0; color: var(--paper); cursor: pointer;
}
.nav-toggle svg { stroke-linecap: square; }
.nav-toggle-cross,
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-cross { display: block; }
.nav-toggle[aria-expanded="false"] .nav-toggle-label-shut,
.nav-toggle[aria-expanded="true"] .nav-toggle-label-open { display: none; }

/* 78rem, because the breakpoint has to clear the widest locale, and the bar is
   not the same width in all three. Measured on 18 October 2026, the wordmark,
   menu, sign-in and languages on one row, without the gap between wordmark
   and menu: English 1,101px, Bahasa 1,093px, Urdu 1,142px. Above 1,248px
   (less a 15px scrollbar and the 48px of padding) that leaves at least 48px
   of clear space after the wordmark (Urdu 43px). base.njk's menu
   script uses the same value. */
@media (max-width: 78rem) {
  .masthead-in { min-height: 64px; column-gap: var(--space-4); padding-block: var(--space-3); }
  .wordmark { font-size: var(--fs-17); gap: 10px; }
  .wordmark-mark { width: 33px; }

  /* Only with scripting: otherwise the panel below stays open and reachable. */
  .js .nav-toggle { display: flex; }
  .js .masthead-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    padding-block: var(--space-3) var(--space-5);
    border-block-start: 1px solid var(--hair-ink);
  }
  .js .masthead-menu[data-open] { display: flex; }

  .masthead nav { margin-inline-start: 0; align-self: stretch; flex-direction: column; align-items: stretch; row-gap: 0; }
  .masthead nav a {
    font-size: var(--fs-17);
    padding-block: var(--space-3);
    border-block-end: 1px solid rgb(246 243 237 / 0.08);
  }
  .masthead nav a:hover { border-block-end-color: rgb(246 243 237 / 0.08); }
  .masthead nav a:last-child { border-block-end: 0; }

  /* A nav item with no translation for this locale carries dir="ltr" so its
     Latin label renders correctly. That also makes every logical property on
     it — text-align:start, border-inline-start — resolve against the LINK's
     direction rather than the page's, which in Urdu would align the row to the
     wrong edge and put the marker on the wrong side. As stacked rows that is
     plainly visible, so alignment is set from the page direction instead. */
  [dir="ltr"] .masthead nav a { text-align: left; }
  [dir="rtl"] .masthead nav a { text-align: right; }

  /* An underline would sit on top of the row rule; a leading mark reads
     cleanly in both directions. */
  .masthead nav a[aria-current="page"],
  .masthead nav a[aria-current="true"] {
    border-block-end: 1px solid rgb(246 243 237 / 0.08);
  }
  [dir="ltr"] .masthead nav a[aria-current="page"],
  [dir="ltr"] .masthead nav a[aria-current="true"] {
    border-left: 2px solid var(--desk, var(--jute));
    padding-left: var(--space-3);
    margin-left: calc((var(--space-3) + 2px) * -1);
  }
  [dir="rtl"] .masthead nav a[aria-current="page"],
  [dir="rtl"] .masthead nav a[aria-current="true"] {
    border-right: 2px solid var(--desk, var(--jute));
    padding-right: var(--space-3);
    margin-right: calc((var(--space-3) + 2px) * -1);
  }
  .masthead nav a:last-child[aria-current="page"],
  .masthead nav a:last-child[aria-current="true"] { border-block-end: 0; }

  /* The sign-in sits beside the menu button: the icon, its name kept for
     screen readers. */
  .signin { order: 1; margin-inline-start: auto; padding: 9px; border-radius: 50%; }
  .signin svg { width: 20px; height: 20px; }
  .signin-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .nav-toggle { order: 2; margin-inline-start: 0; }
  .masthead-menu { order: 3; }
  .langs { gap: var(--space-4); }
}
/* A narrow phone: wordmark, sign-in and menu button stay on one row down to
   360px (at 375px they wrapped into a 121px masthead). */
@media (max-width: 24rem) {
  .masthead-in { column-gap: var(--space-2); }
  .wordmark { font-size: var(--fs-15); gap: 8px; }
  .wordmark-mark { width: 30px; }
}

/* --- The home page's opening -------------------------------------------
   Ink, full width, the corridor's two lanes drawn behind the words: the one
   bold thing on the site. The enquiry board and the WhatsApp Channel sit
   beside the opening line in a panel of their own, and nowhere else at the top
   of a page (the owner, 18 October 2026).
   ------------------------------------------------------------------------- */

.home-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--paper);
}
.lanes {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; max-width: none;
}
.lanes-grid line { stroke: var(--jute); stroke-opacity: 0.07; stroke-width: 1; }
.lane {
  fill: none; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: lane-draw 1.8s cubic-bezier(0.2, 0, 0, 1) 0.15s forwards;
}
.lane--buy { stroke: var(--sea-ink); }
.lane--source { stroke: var(--amber-ink); animation-delay: 0.45s; }
@keyframes lane-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .lane { animation: none; stroke-dashoffset: 0; } }

.home-hero-in {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-8); align-items: center;
  padding-block: var(--space-9) calc(var(--space-9) + var(--space-8));
}
.home-hero h1 {
  font-size: var(--fs-56); line-height: 1.04; letter-spacing: -0.03em;
  color: var(--paper); max-width: 11.5em;
}
.home-hero h1 .arrow { color: var(--jute); }
.home-hero h1 .hl { display: block; }
.home-hero .hero-sub {
  font-family: var(--serif); font-size: var(--fs-21); font-weight: 400;
  line-height: 1.45; letter-spacing: -0.01em;
  color: rgb(246 243 237 / 0.80); max-width: 42ch;
  margin-block-start: var(--space-5);
}
.hero-meta {
  font-family: var(--mono); font-size: var(--fs-13); color: var(--jute);
  margin-block-start: var(--space-5); max-width: none;
}

/* Solid, so the lanes pass cleanly behind it. #182126 is ink lifted by a
   few points of paper: a surface, not a new colour. */
.board-promo {
  background: #182126;
  border: 1px solid var(--hair-ink); border-radius: var(--radius);
  padding: var(--space-6);
}
.board-promo h2 { font-size: var(--fs-27); color: var(--paper); margin-block-end: var(--space-3); }
.board-promo p { color: rgb(246 243 237 / 0.84); font-size: var(--fs-15); line-height: 1.65; }
.board-promo a:not(.btn) { color: var(--paper); text-decoration-color: var(--jute); text-underline-offset: 0.25em; }
.board-promo-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-3) var(--space-5); margin-block-start: var(--space-5);
}
.board-promo-channel {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: var(--space-3) var(--space-4);
  margin-block-start: var(--space-6); padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--hair-ink);
}
.board-promo-channel .wa-glyph { width: 32px; height: 32px; }
.board-promo-channel p { margin: 0; }
.board-promo .bpc-name { color: var(--paper); font-weight: 600; font-size: var(--fs-17); }
.board-promo .meta { color: var(--jute); font-family: var(--sans); font-size: var(--fs-13); line-height: 1.5; }
.board-promo .btn-outline { background: transparent; color: var(--paper); border-color: var(--jute); }
.board-promo .btn-outline:hover { border-color: var(--paper); text-decoration: none; }
.wa-glyph { flex: none; color: var(--wa); }

@media (max-width: 60rem) {
  .home-hero-in {
    grid-template-columns: minmax(0, 1fr); gap: var(--space-7);
    padding-block: var(--space-8) calc(var(--space-9) + var(--space-5));
  }
  /* Stacked, the hero is taller than it is wide and the lanes would stretch
     into swoops behind the panel: they run as a band along its foot instead. */
  .lanes { top: auto; height: 280px; }
  .lanes-grid { display: none; }
}
@media (max-width: 40rem) {
  .home-hero h1 { font-size: var(--fs-44); }
  .home-hero .hero-sub { font-size: var(--fs-17); }
  .board-promo { padding: var(--space-5); }
  .board-promo-channel { grid-template-columns: auto minmax(0, 1fr); }
  .board-promo-channel .btn { grid-column: 1 / -1; justify-self: start; }
}

/* --- The two desks -------------------------------------------------------
   Two sheets side by side, each topped in its desk's colour and opened by the
   route it runs, drawn: a port, a lane, a port.
   ------------------------------------------------------------------------- */

.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.door {
  --desk-c: var(--sea);
  display: flex; flex-direction: column; gap: var(--space-4);
  background: var(--sheet);
  border: 1px solid var(--line); border-block-start: 4px solid var(--desk-c);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-6) var(--space-5);
}
.door--source { --desk-c: var(--amber); }
.door .route {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--mono); font-size: var(--fs-13); color: var(--steel);
  max-width: none; unicode-bidi: isolate;
}
.route-track {
  position: relative; flex: 0 1 140px; height: 2px; margin-inline: 4px 6px;
  background: var(--desk-c);
}
.route-track::before {
  content: ""; position: absolute; inset-inline-start: -4px; top: -3px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--desk-c);
}
.route-track::after {
  content: ""; position: absolute; inset-inline-end: -6px; top: -5px;
  border-block: 6px solid transparent; border-inline-start: 9px solid var(--desk-c);
}
.door h2 { font-size: var(--fs-34); }
.door-intro { color: var(--steel); max-width: 42ch; }
.door ul { list-style: none; padding: 0; margin-block-start: auto; }
.door li {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4);
  padding-block: var(--space-3);
  border-block-start: 1px solid var(--line);
  font-size: var(--fs-15); max-width: none;
}
.door li a { color: var(--ink); font-weight: 500; text-decoration: none; }
.door li a:hover { text-decoration: underline; text-decoration-color: var(--desk-c); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.door li .hs { font-family: var(--mono); font-size: var(--fs-13); color: var(--steel); unicode-bidi: isolate; }
.door .door-link { padding-block-start: var(--space-2); }
.door .door-link a {
  font-family: var(--serif); font-size: var(--fs-21); font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); text-decoration-color: var(--desk-c);
  text-decoration-thickness: 3px; text-underline-offset: 0.3em;
}

/* "Exporting from Pakistan?": a line of its own, on the wash. */
.exporter-line { padding-block-end: var(--space-7); }
.exporter-line p {
  max-width: none; background: var(--wash); border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
}

@media (max-width: 50rem) {
  .doors { grid-template-columns: minmax(0, 1fr); }
  .door { padding: var(--space-5); }
  .door h2 { font-size: var(--fs-27); }
}

/* --- Corridor status: the manifest ---------------------------------------
   A document, not a widget. Printed on paper, ruled like a shipping manifest:
   a firm rule under the header, a jute hairline between every fact, figures
   in mono, and the source and verified date set in small caps beneath the
   fact they belong to.
   ------------------------------------------------------------------------- */

.corridor { padding-block: var(--rhythm); background: var(--wash); color: var(--ink); }
.corridor-head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: var(--space-3); align-items: baseline;
  padding-block-end: var(--space-3);
}
.corridor-head .label {
  font-family: var(--serif); font-size: var(--fs-27); font-weight: 600;
  color: var(--ink); line-height: 1.2;
}
.corridor-head .meta { color: var(--steel); }

/* Header rule of the document. The one heavy line on the page. */
.route-line {
  height: 2px;
  background: var(--ink);
  transform-origin: left center;
  animation: route-draw 700ms cubic-bezier(0.2, 0, 0, 1) both;
}
[dir="rtl"] .route-line { transform-origin: right center; }
@keyframes route-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .route-line { animation: none; } }

.crows { list-style: none; padding: 0; margin: 0; }
.crow {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  column-gap: var(--gutter);
  row-gap: var(--space-2);
  padding-block: var(--space-6);
  border-block-end: 1px solid var(--hair-firm);
  max-width: none;
}
.crow-marker {
  grid-column: 1; grid-row: 1 / span 2; align-self: start;
  justify-self: start;
  font-family: var(--sans); font-size: var(--fs-13); font-weight: 600;
  color: var(--seal);                 /* the status marker */
  background: var(--sheet); border: 1px solid var(--line); border-radius: 999px;
  padding: 2px 10px; margin-block-start: 6px;
}
.crow[data-tone="alert"] .crow-marker { color: var(--flag); }  /* a warning */
.crow-body { grid-column: 2; }
.crow-lead {
  font-family: var(--mono);
  font-size: var(--fs-56);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-block-end: var(--space-3);
  unicode-bidi: isolate;
  max-width: none;
}
.crow-statement { font-size: var(--fs-17); max-width: var(--measure); }
.crow-statement .fig { font-size: var(--fs-21); }
/* Source and verified date, in small caps, beneath the fact. */
.crow-source {
  grid-column: 2;
  font-family: var(--sans);
  font-size: var(--fs-13);
  color: var(--steel);
  line-height: 1.6;
  max-width: var(--measure);
}
.crow-source .fig, .crow-source .mono { font-size: var(--fs-13); font-weight: 400; }
.crow-source a { color: var(--seal); }

/* The manifest figure steps down the scale rather than jumping: 56 → 44 → 34. */
@media (max-width: 75rem) {
  .crow-lead { font-size: var(--fs-44); }
}
@media (max-width: 60rem) {
  .crow { grid-template-columns: minmax(0, 1fr); }
  .crow-marker { grid-column: 1; grid-row: auto; margin-block-start: 0; }
  .crow-body, .crow-source { grid-column: 1; }
  .crow-lead { font-size: var(--fs-34); }
  .lead { font-size: var(--fs-27); max-width: 30ch; }
  .door h2 { font-size: var(--fs-27); }
}

/* --- Tables --------------------------------------------------------------
   Real horizontal rules, no zebra, no vertical rules, no radius.
   ------------------------------------------------------------------------- */

/* A table wider than the screen scrolls sideways inside its box. Until
   October 2026 nothing said so: on a phone the last column was simply cut off
   at the edge. The shadows at each edge show there is more; the paper-coloured
   covers scroll with the table ("local") and hide each shadow once its end is
   reached. Tables only sit on paper, so the cover colour is paper. */
.table-scroll {
  overflow-x: auto; margin-block: var(--space-4);
  background:
    linear-gradient(to right, var(--paper) 40%, rgb(246 243 237 / 0)) left center / 32px 100% no-repeat local,
    linear-gradient(to left, var(--paper) 40%, rgb(246 243 237 / 0)) right center / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(14 20 23 / 0.3), transparent) left center / 18px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(14 20 23 / 0.3), transparent) right center / 18px 100% no-repeat scroll;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-15);
  font-variant-numeric: tabular-nums;
}
caption {
  text-align: start; font-size: var(--fs-13); font-family: var(--mono);
  color: var(--steel); padding-block-end: var(--space-2);
}
thead th {
  text-align: start; font-weight: 600; font-size: var(--fs-13);
  font-family: var(--sans);
  color: var(--steel);
  padding: var(--space-2) var(--space-4) var(--space-2) 0;
  border-block-end: 1px solid var(--hair-firm);
  white-space: nowrap;
}
td {
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-block-end: 1px solid var(--hair);
  vertical-align: top;
}
th:last-child, td:last-child { padding-inline-end: 0; }
tbody tr:last-child td, tbody tr:last-child th { border-block-end: 1px solid var(--hair-firm); }
td .mono, th .mono { font-size: var(--fs-15); }

/* Row headers in a key/value table are labels: they wrap, take the ordinary
   row rule, and carry no emphasis. */
tbody th {
  font-weight: 400; font-size: var(--fs-15);
  color: var(--steel); white-space: normal; vertical-align: top;
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-block-end: 1px solid var(--hair);
}
.t-spec th { width: 224px; }


/* Honeypot: off-canvas for people, still in the payload for bots. */
.hp {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

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

/* --- Notices -------------------------------------------------------------
   Weight and words carry the meaning; colour reinforces. Never filled, never
   a link, never a button — so a warning cannot be read as a call to action.
   ------------------------------------------------------------------------- */

/* White, not the wash: flag on the wash measured 4.23:1, on white 5.0:1. */
.notice {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--ink);
  border-start-end-radius: var(--r-ctl); border-end-end-radius: var(--r-ctl);
  padding: var(--space-4) var(--space-5);
  margin-block: var(--space-6);
  max-width: calc(var(--measure) + var(--space-7));
}
.notice .notice-label {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-13); font-weight: 600;
  color: var(--flag);
  margin-block-end: var(--space-1);
}
.notice p { max-width: var(--measure); }
.notice--ok .notice-label { color: var(--steel); }

/* --- Steps. The only numbered sequence on the site. ---------------------- */

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li {
  display: grid;
  grid-template-columns: var(--col-margin) minmax(0, var(--measure));
  column-gap: var(--gutter);
  padding-block: var(--space-6);
  border-block-start: 1px solid var(--hair);
  max-width: none;
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--mono);
  font-size: var(--fs-27);
  color: var(--jute);
  text-align: end;
  line-height: 1.15;
}
.steps > li:last-child { border-block-end: 1px solid var(--hair); }
.steps :is(h2, h3) { margin-block-end: var(--space-2); }

@media (max-width: 60rem) {
  .steps > li { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); }
  .steps > li::before { text-align: start; }
}

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

.form { max-width: var(--measure); }
.field { margin-block-end: var(--space-5); }
.field label { display: block; font-weight: 500; font-size: var(--fs-15); margin-block-end: var(--space-1); }
.field .help { display: block; font-size: var(--fs-13); color: var(--steel); margin-block-end: var(--space-2); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid rgb(14 20 23 / 0.24);
  border-radius: var(--r-ctl);
  background: var(--sheet);
  padding: var(--space-3);
  font-size: var(--fs-17);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgb(31 111 160 / 0.16);
}
.field .req { color: var(--steel); font-weight: 400; font-family: var(--sans); font-size: var(--fs-13); }

.field[data-invalid] input,
.field[data-invalid] select,
.field[data-invalid] textarea { border-color: var(--flag); border-width: 2px; }
.field .field-error {
  display: block; font-family: var(--sans); font-size: var(--fs-13); font-weight: 600;
  color: var(--flag); margin-block-start: var(--space-1);
}

.rfq {
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-6);
}
.home .rfq { max-width: 760px; padding: var(--space-7); }
@media (max-width: 40rem) { .rfq, .home .rfq { padding: var(--space-5); } }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-block-start: var(--space-6); }
/* A WhatsApp button and, where the page serves both audiences, the direction
   it answers for. align-items:start keeps the buttons on one line when one
   carries a label and the other does not. */
.actions:has(.wa .meta) { align-items: start; }
/* Its own row. Beside the submit button the pair gets 537px and needs 543, so
   it broke in half; on its own row it has 694px, which also leaves headroom
   for longer labels in other locales. */
.wa-pair { display: flex; flex-wrap: wrap; gap: var(--space-4); flex-basis: 100%; }
.wa { display: inline-flex; flex-direction: column; gap: var(--space-2); }
.wa .meta { text-align: center; }

.btn {
  display: inline-block;
  background: var(--seal);
  color: var(--paper);
  border: 1px solid var(--seal);
  border-radius: var(--r-ctl);
  padding: var(--space-3) var(--space-5);
  font-weight: 600;
  font-size: var(--fs-15);
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}
/* Derived from seal, not a seventh value. Falls back to flat seal where
   color-mix is unsupported — the underline still signals the hover. */
.btn:hover {
  background: color-mix(in srgb, var(--seal) 82%, var(--ink));
  border-color: color-mix(in srgb, var(--seal) 82%, var(--ink));
  text-decoration: none;
}
.btn-outline { background: transparent; color: var(--seal); border: 1px solid var(--seal); }
.btn-outline:hover { background: transparent; color: var(--seal); border-color: var(--seal); text-decoration: underline; }
/* On ink, seal appears as a fill — paper on seal is 6.60:1. */
.footer .btn-outline { background: transparent; color: var(--paper); border-color: var(--jute); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* --- Row lists (products index, latest from the corridor) ---------------- */

.rows { list-style: none; padding: 0; }
.rows > li {
  display: grid;
  grid-template-columns: var(--col-margin) minmax(0, 1fr);
  column-gap: var(--gutter);
  padding-block: var(--space-5);
  border-block-start: 1px solid var(--hair);
  max-width: none;
}
.rows > li:last-child { border-block-end: 1px solid var(--hair); }
.rows .r-mark {
  font-family: var(--mono); font-size: var(--fs-13); color: var(--steel);
  text-align: end; padding-block-start: 4px; unicode-bidi: isolate;
}
.rows .r-body :is(h2, h3) { font-size: var(--fs-21); margin-block-end: var(--space-1); }
.rows .r-body p { font-size: var(--fs-15); color: var(--steel); margin: 0; }

/* Corridor Monitor feed. The implication is the part a reader acts on, so it
   gets the ink and a marker; the summary stays secondary. */
.notes .r-body p { margin-block-end: var(--space-2); }
.notes .means { color: var(--ink); border-inline-start: 2px solid var(--jute);
  padding-inline-start: var(--space-3); margin-block-start: var(--space-3); }
.notes .means .label { font-family: var(--mono); font-size: var(--fs-13);
  color: var(--steel); display: block; }

@media (max-width: 60rem) {
  .rows > li { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-1); }
  .rows .r-mark { text-align: start; }
}

/* --- The home page, shorter on a phone ----------------------------------
   October 2026: the home page was twelve phone screens. Nothing below hides
   anything a reader cannot reach in one tap: the steps are written out on
   each desk's how-it-works page, and each corridor note's lede is on the note.
   <main class="home"> is set by base.njk on the home pages only. */

/* The four steps by name. On a wide screen, four stops on one line joined
   by a lane, like the corridor itself; on a phone, the number beside the
   name. */
.steps--brief > li { padding-block: var(--space-4); align-items: baseline; }
.steps--brief :is(h2, h3) { margin-block-end: 0; }
@media (min-width: 60.0625rem) {
  .steps--brief { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps--brief > li {
    display: block; position: relative;
    padding: 0 var(--space-5) 0 0; border: 0;
  }
  .steps--brief > li:last-child { border: 0; }
  .steps--brief > li::before {
    position: relative; z-index: 1;
    display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--paper); border: 2px solid var(--ink); color: var(--ink);
    font-size: var(--fs-17); font-weight: 500;
    margin-block-end: var(--space-4);
  }
  .steps--brief > li::after {
    content: ""; position: absolute; top: 23px;
    inset-inline-start: 56px; inset-inline-end: 8px;
    border-block-start: 2px dashed var(--jute);
  }
  .steps--brief > li:last-child::after { display: none; }
  .steps--brief h3 { font-size: var(--fs-21); max-width: 14ch; }
}
@media (max-width: 60rem) {
  .steps--brief > li { grid-template-columns: 2.5rem minmax(0, 1fr); }
}

/* The latest notes: three columns under an ink rule on a wide screen. */
@media (min-width: 60.0625rem) {
  .home-latest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
  .home-latest > li, .home-latest > li:last-child {
    display: flex; flex-direction: column; gap: var(--space-2);
    border: 0; border-block-start: 2px solid var(--ink); padding-block: var(--space-4) 0;
  }
  .home-latest .r-mark { text-align: start; padding: 0; }
}

/* Who you are dealing with: one sheet per company. */
.home .people > div {
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-5);
}
.home .people .name { font-family: var(--serif); font-weight: 600; font-size: var(--fs-21); letter-spacing: -0.02em; max-width: none; }
.home .people .role { color: var(--steel); margin-block-start: var(--space-1); }

@media (max-width: 40rem) {
  .home .section, .home .corridor, .door { padding-block: var(--space-6); }
  .home .crow { padding-block: var(--space-4); }
  /* The latest notes as dates and titles. */
  .home-latest .r-body p { display: none; }
}

/* --- Proof / people ------------------------------------------------------ */

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(224px, 1fr)); gap: var(--space-6); }
figcaption { font-family: var(--mono); font-size: var(--fs-13); color: var(--steel); margin-block-start: var(--space-2); }

/* --- Footer -------------------------------------------------------------- */

.footer {
  background: var(--ink); color: var(--paper);
  padding-block: var(--space-8) var(--space-5);
  /* No top margin: the last section already ends on a full rhythm step, so a
     margin here doubled it into a visible gap on short pages. */
}
/* Compact since October 2026: the entities, the doors and the contacts. The
   desks and the corridor index carry the full lists. Three bands on a wide
   screen; on a phone the four link lists sit two by two. The enquiry board
   heads the contacts column (18 October 2026). */
.footer-top {
  display: grid; gap: var(--space-6);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2.8fr) minmax(0, 1.2fr);
  grid-template-areas: "brand links contact";
}
.footer-brand { grid-area: brand; }
.footer-links { grid-area: links; display: grid; gap: var(--space-5); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer-contact { grid-area: contact; }
/* Medium: the entities and the contacts side by side, the links across. */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "brand contact" "links links"; }
}
/* Phone: one column, the four link lists two by two. */
@media (max-width: 720px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "links" "contact"; gap: var(--space-5); }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
}
/* The column labels are paragraphs, not h2s (October 2026): six footer h2s on
   every page put "Contact" and "Corridor" into each page's outline. The
   heading properties they used to inherit from h2 are restated so they look
   exactly as before. */
.footer .footer-heading {
  font-family: var(--sans); font-size: var(--fs-15); font-weight: 600;
  line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; max-width: none;
  color: var(--jute); margin-block-end: var(--space-3);
}
html[lang="ur"] .footer .footer-heading { font-family: var(--arabic); letter-spacing: 0; line-height: 1.5; }
.footer ul { list-style: none; padding: 0; }
.footer li { font-size: var(--fs-15); padding-block: 2px; }
.footer-contact li + li { margin-block-start: var(--space-2); }
.footer-board { margin-block-end: var(--space-6); }
.footer-board li + li { margin-block-start: 0; }
.footer-channel { display: inline-flex; align-items: center; gap: var(--space-2); }

/* Touch screens: links and controls a thumb can hit. They were 19px tall in
   the footer and in table cells; WCAG 2.5.8 asks for at least 24px. The extra
   height is padding, so the desktop, with a mouse, looks exactly as before. */
@media (pointer: coarse) {
  .footer li a, .footer-base a { display: inline-block; padding-block: 5px; }
  .footer li { padding-block: 0; }
  td a, th a { display: inline-block; padding-block: 8px; }
  /* Links in running text and in "A · B" link lines: vertical padding on an
     inline element enlarges what a thumb can hit without moving any text. */
  main p a:not(.btn), main li a:not(.btn), .m-note a { padding-block: 4px; }
  .wordmark { padding-block: 8px; }
  /* The quote form's one tick box: 19px was under the 24px a thumb needs. */
  /* One class more than the base rule further down, which would otherwise win. */
  .field--consent .consent input[type="checkbox"] { inline-size: 24px; block-size: 24px; margin-block-start: 0; }
  .field--consent label + .help { margin-inline-start: calc(24px + var(--space-3)); }
}

/* Product pages: on a phone the quotation form falls to the end of the page,
   nine screens down. This jumps to it from the top. Hidden where the form sits
   beside the specification instead. */
.jump-quote { display: none; margin-block-start: var(--space-5); }
@media (max-width: 60rem) { .jump-quote { display: block; } }
.footer-contact .meta { display: block; }

/* "Currently sourcing": a short list of live enquiries under a desk's intro.
   A notice in the quieter, steel-labelled variant: it reports demand, it is
   not a warning. */
/* The quote form's one checkbox: the box beside its words, not stretched like
   the text fields. */
.field--consent .consent { display: flex; gap: var(--space-3); align-items: flex-start; font-weight: 400; }
.field--consent input[type="checkbox"] { flex: none; inline-size: 1.1em; block-size: 1.1em; padding: 0; margin-block-start: 0.25em; accent-color: var(--seal); }
.field--consent .help { margin-inline-start: calc(1.1em + var(--space-3)); margin-block-start: var(--space-1); }

/* The open enquiries on the board: one row each, hairlines between. */
.open-enquiries { list-style: none; padding: 0; margin-block: var(--space-3) var(--space-5); }
.open-enquiries li { padding-block: var(--space-3); border-block-start: 1px solid var(--hair); }
.open-enquiries li:last-child { border-block-end: 1px solid var(--hair); }
.open-enquiries .mono { color: var(--steel); margin-inline-end: var(--space-2); }
.open-enquiries .meta { display: block; }

.sourcing ul { list-style: square; padding-inline-start: var(--space-5); margin-block-start: var(--space-1); }
.sourcing li { max-width: var(--measure); }
.sourcing li + li { margin-block-start: var(--space-2); }
.sourcing ul::marker, .sourcing li::marker { color: var(--jute); }
.sourcing .meta { margin-block-start: var(--space-2); }

/* The halal checker's headline is two sentences long. Held to the form's own
   width it wraps to two balanced lines instead of one line across the page. */
.halal-check { max-width: var(--measure); }

/* Institutions and events. A body's own links sit on their own line, quieter
   than the description; an unconfirmed event date says so in the same voice as
   every other date on the site, so it can never be mistaken for one. */
.bodies .body-links { display: block; margin-block-start: var(--space-1); font-size: var(--fs-15); color: var(--steel); }
.events td:first-child { white-space: nowrap; }
.tbc { font-family: var(--mono); font-size: var(--fs-13); color: var(--steel); white-space: normal; }

/* The supplier line above a quotation form: plain, like the exporter prompt on
   the home page, with room before the form's own heading. */
.supplier-prompt { margin-block-end: var(--space-6); }
.footer a { color: var(--paper); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: var(--jute); }
.footer address { font-style: normal; font-size: var(--fs-13); line-height: 1.5; }
.footer .entity { margin-block-end: var(--space-4); }
.footer .entity .ename { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; }
.footer .entity .invoices { color: var(--jute); font-family: var(--sans); font-size: var(--fs-13); }
.footer-base {
  margin-block-start: var(--space-6); padding-block-start: var(--space-4);
  border-block-start: 1px solid var(--hair-ink);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
}

/* --- Prose helpers ------------------------------------------------------- */

.prose > * + * { margin-block-start: var(--space-4); }
.prose h2 { margin-block-start: var(--space-8); }
.prose h3 { margin-block-start: var(--space-6); }
.prose ul, .prose ol { padding-inline-start: var(--space-5); }
.prose li + li { margin-block-start: var(--space-2); }
.prose ul { list-style: square; }
.prose ul::marker, .prose li::marker { color: var(--jute); }

.stack-4 > * + * { margin-block-start: var(--space-4); }
.stack-5 > * + * { margin-block-start: var(--space-5); }
.stack-6 > * + * { margin-block-start: var(--space-6); }

/* --- Urdu ----------------------------------------------------------------
   One Arabic-script family across the locale, so headings and dense UI share
   a texture. Sizes step up one notch from the Latin scale: Arabic script sits
   optically smaller at the same nominal size.
   ------------------------------------------------------------------------- */

/* Only the Urdu locale puts the Arabic face in the mono stack: an Urdu date is
   mono digits around a month name. Latin pages must never download it — the
   arrows in .mono spans would otherwise pull 41 KB of Arabic font. */
/* A phone number inside right-to-left text reads left to right. Without this
   the Urdu pages showed "+92 321 9204961" as "9204961 321 92+": the browser
   lays out the space-separated groups in the paragraph's direction. Applies to
   every WhatsApp link (footer and buttons) and to nothing else. */
[dir="rtl"] a[href^="https://wa.me/"] .mono { direction: ltr; unicode-bidi: isolate; }

html[lang="ur"] { --mono: "IBM Plex Mono", "IBM Plex Sans Arabic", ui-monospace, monospace; }
html[lang="ur"] body { font-family: var(--arabic); font-size: var(--fs-17); line-height: 1.8; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3, html[lang="ur"] h4,
html[lang="ur"] .lead, html[lang="ur"] .wordmark,
html[lang="ur"] .footer .entity .ename {
  font-family: var(--arabic);
  font-weight: 600;
  letter-spacing: 0;      /* negative tracking damages Arabic joining */
  line-height: 1.5;
}
html[lang="ur"] h1 { font-size: var(--fs-34); }
html[lang="ur"] h2 { font-size: var(--fs-27); }
html[lang="ur"] h3 { font-size: var(--fs-21); }
html[lang="ur"] .lead { font-size: var(--fs-27); font-weight: 400; line-height: 1.6; max-width: 30ch; }
html[lang="ur"] .prose p, html[lang="ur"] .prose li { font-size: var(--fs-17); line-height: 1.8; }
html[lang="ur"] table, html[lang="ur"] .field, html[lang="ur"] .masthead,
html[lang="ur"] .footer, html[lang="ur"] .btn, html[lang="ur"] .rows { font-family: var(--arabic); }
/* Small caps are a Latin device; Arabic script has no case. */
html[lang="ur"] .crow-source, html[lang="ur"] .notice-label,
html[lang="ur"] thead th, html[lang="ur"] .footer .footer-heading, html[lang="ur"] .field .req,
html[lang="ur"] .crow-marker, html[lang="ur"] .corridor-head .label,
html[lang="ur"] .footer .entity .invoices {
  font-variant-caps: normal; letter-spacing: 0;
}
/* An inline figure inside Urdu prose sits at body size: a mono run set two
   steps larger fights the Arabic line, and the date is already isolated. */
html[lang="ur"] .fig { font-size: inherit; font-weight: 600; }

/* --- Print --------------------------------------------------------------- */

@media print {
  .masthead, .footer, .rail, .route-line, .actions { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
