/* ---------------------------------------------------------------------------
   m2gl.com city landing pages.

   DELIBERATELY NOT index.html's stylesheet.

   Two reasons, and both matter.

   1. index.html is mid-rework and on hold (commit 1ffafe5, the freight
      forwarding repositioning). Sharing a stylesheet would mean editing the
      held file to touch a city page, and deploying a city page would drag the
      unapproved hub copy live with it. Separate file, separate deploy.

   2. These pages are supposed to look structurally different from Meiborg's
      3PL city pages, which are dark, photograph-led and long-form prose. The
      answer here is the opposite shape: a dark band of DATA instead of a dark
      photograph, tables before paragraphs, and no scroll animation at all.

   Brand tokens are copied from index.html rather than imported, so this file
   stands alone. If the brand moves, both files move. Measured ratios, worst
   case on this page's grounds:

     white on navy     17.47:1      ink on paper-alt      16.74:1
     gold on navy       8.34:1      ink-soft on paper-alt  7.93:1
     pale on navy      11.07:1      navy-lift on white    11.26:1

   GOLD IS THE EXCEPTION WORTH KNOWING. On white it measures 2.1:1 and is
   decorative only, which is why index.html never gives it text. On navy it is
   8.34:1 and carries labels safely. That is the whole reason the spec band is
   navy: it is the one ground where the brand accent can do real work.
--------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  --navy:       #141734;
  --navy-lift:  #2a3479;
  --gold:       #d4af47;

  --ink:        #14181d;
  --ink-soft:   #474d5d;
  --paper:      #ffffff;
  --paper-alt:  #f6f8fa;
  --rule:       #e2e7ec;

  /* On the navy band only. */
  --on-navy:        #ffffff;
  --on-navy-soft:   #c9ced8;
  --on-navy-rule:   #3a4060;

  --shell-max:  72rem;
  --shell:      min(100% - 2.5rem, var(--shell-max));

  /* Six steps, same ladder as the hub but topping out two steps lower: these
     pages lead with a table, not a headline, so nothing needs to be 60px. */
  --step-s: clamp(0.8125rem, 0.78rem + 0.14vw, 0.9375rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.12rem, 1.06rem + 0.32vw, 1.28rem);
  --step-2: clamp(1.35rem, 1.22rem + 0.62vw, 1.72rem);
  --step-3: clamp(1.7rem, 1.45rem + 1.15vw, 2.4rem);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100% }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--step-0)/1.6 var(--font);
  /* Every figure on these pages sits in a column next to another figure. */
  font-variant-numeric: tabular-nums;
}

img { max-width: 100%; height: auto; display: block }
a { color: var(--navy-lift) }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--navy-lift);
  outline-offset: 2px;
}

.shell { width: var(--shell); margin-inline: auto }

.skip {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem }

/* --- Masthead -------------------------------------------------------------
   Thin, white, static. The hub's masthead grows a shadow on scroll; this one
   does not, because nothing on these pages animates. */

.mast {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.mast__inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 4rem; padding-block: .65rem;
}
.mast__logo { margin-right: auto; display: flex; align-items: center }
.mast__logo img { height: 3rem; width: auto }   /* same 48px as the hub's masthead */
.mast__nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap }
.mast__nav a {
  font-size: var(--step-s); font-weight: 600; letter-spacing: .01em;
  text-decoration: none; color: var(--ink-soft);
}
.mast__nav a:hover { color: var(--navy-lift); text-decoration: underline }

/* Phones: logo and the quote button share the first row, the section anchors
   spread across the second. The button is a sibling of <nav> precisely so it
   can be ordered ahead of it here. */
@media (max-width: 48em) {
  .mast__inner { flex-wrap: wrap; row-gap: .55rem; gap: .75rem; min-height: 0 }
  .mast__cta { order: 1 }
  .mast__nav { order: 2; flex: 1 1 100%; justify-content: space-between; gap: .75rem }
}

/* The .mast__nav a selector is (0,2,1) and .btn is (0,1,0), so a button
   written as a nav child loses the colour fight and renders navy-on-navy.
   That is the bug that put the hub's Contact button at 2.56:1. The CTA now
   sits outside <nav> so it cannot happen, and this stays matched anyway in
   case someone moves it back. */
.mast__nav a.btn, .btn {
  display: inline-block;
  background: var(--navy); color: #fff;
  padding: .6rem 1.1rem; border-radius: 3px;
  font-size: var(--step-s); font-weight: 650; letter-spacing: .01em;
  text-decoration: none; border: 1px solid var(--navy); cursor: pointer;
}
.mast__nav a.btn:hover, .btn:hover { background: var(--navy-lift); border-color: var(--navy-lift); color: #fff }

/* --- The spec band --------------------------------------------------------
   What a hero would be, if these pages had one. Navy, and it carries no logo,
   matching the hub's rule that the M2 lockup never sits on a dark ground. */

.band { background: var(--navy); color: var(--on-navy) }
.band__inner { padding-block: clamp(2rem, 1.2rem + 3vw, 3.25rem) }

.crumb {
  font-size: var(--step-s); color: var(--on-navy-soft);
  margin: 0 0 1.1rem;
}
.crumb a { color: var(--on-navy-soft) }
.crumb span[aria-hidden] { padding-inline: .45rem; color: var(--on-navy-rule) }

.band .eyebrow {
  font-size: var(--step-s); font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--gold);           /* 8.34:1 here, see the header note */
  margin: 0 0 .6rem;
}
.band h1 {
  font-size: var(--step-3); line-height: 1.12; letter-spacing: -.015em;
  font-weight: 700; margin: 0 0 .85rem; max-width: 24ch;
}
.band__lede {
  font-size: var(--step-1); line-height: 1.5; color: var(--on-navy-soft);
  margin: 0; max-width: 58ch;
}

/* The spec grid. This is the page's first real content, above any prose.
   Fixed column counts rather than auto-fit: there are six cells, and auto-fit
   resolves to five across at some widths and strands the sixth on its own
   row. 1 / 2 / 3 divides six evenly at every step. */
.spec {
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  background: var(--on-navy-rule);
  border: 1px solid var(--on-navy-rule);
  margin: clamp(1.5rem, 1rem + 2vw, 2.25rem) 0 0;
}
@media (min-width: 34em) { .spec { grid-template-columns: repeat(2, 1fr) } }
@media (min-width: 58em) { .spec { grid-template-columns: repeat(3, 1fr) } }
.spec > div { background: var(--navy); padding: .9rem 1.1rem }
.spec dt {
  font-size: var(--step-s); font-weight: 650;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 .3rem;
}
.spec dd { margin: 0; font-size: var(--step-0); line-height: 1.4; color: var(--on-navy) }

/* The headline figure. The first screen's dominant element, standing in for
   the photograph these pages deliberately do not have. */
.band__figure { margin: 1.5rem 0 0; display: block }
.band__figure-num {
  display: block;
  font-size: clamp(3.25rem, 2.2rem + 4.6vw, 5.5rem);
  line-height: .95; font-weight: 700; letter-spacing: -.03em;
  color: var(--gold);
}
.band__figure-unit {
  display: block; margin-top: .15rem;
  font-size: var(--step-2); font-weight: 650; color: var(--on-navy);
}
.band__figure-note {
  display: block; margin-top: .55rem; max-width: 20rem;
  font-size: var(--step-s); line-height: 1.5; color: var(--on-navy-soft);
}

/* Desktop: two columns, the figure held beside the headline block and the
   spec grid spanning both. Explicit placement rather than a wrapper, because
   on a phone the figure belongs between the lede and the buttons, which a
   wrapper would prevent. */
@media (min-width: 62em) {
  .band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
    column-gap: 3.5rem; align-items: start;
  }
  .crumb         { grid-column: 1 / -1; grid-row: 1 }
  .band .eyebrow { grid-column: 1; grid-row: 2 }
  .band h1       { grid-column: 1; grid-row: 3 }
  .band__lede    { grid-column: 1; grid-row: 4 }
  .band__actions { grid-column: 1; grid-row: 5 }
  .band__figure  { grid-column: 2; grid-row: 2 / 6; margin-top: .25rem }
  .spec          { grid-column: 1 / -1; grid-row: 6 }
}

.band__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem }
.band__actions .btn { background: var(--gold); border-color: var(--gold); color: var(--navy) }
.band__actions .btn:hover { background: #e2c164; border-color: #e2c164; color: var(--navy) }
.band__actions .btn--ghost { background: transparent; border-color: var(--on-navy-rule); color: #fff }
.band__actions .btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--on-navy-soft); color: #fff }

/* --- Sections -------------------------------------------------------------
   Tight. The 3PL pages breathe; these do not, on purpose. */

.sec { padding-block: clamp(2rem, 1.4rem + 2.4vw, 3rem); border-top: 1px solid var(--rule) }
.sec--alt { background: var(--paper-alt) }

.sec__label {
  font-size: var(--step-s); font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 .45rem;
}
.sec h2 {
  font-size: var(--step-2); line-height: 1.2; letter-spacing: -.01em;
  font-weight: 700; margin: 0 0 .5rem; max-width: 30ch;
}
.sec__intro { margin: 0 0 1.4rem; color: var(--ink-soft); max-width: 68ch }
.sec p { max-width: 68ch }

/* --- Tables ---------------------------------------------------------------
   The page's main content type. Wrapper scrolls rather than the body, and the
   first column pins so a row stays identifiable while it does. */

.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch }
table.data {
  width: 100%; border-collapse: collapse;
  font-size: var(--step-0); background: var(--paper);
}
.sec--alt table.data { background: var(--paper-alt) }
table.data caption { text-align: left; color: var(--ink-soft); font-size: var(--step-s); padding-bottom: .6rem }
table.data th, table.data td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--rule) }
table.data thead th {
  font-size: var(--step-s); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: 2px solid var(--navy);
  white-space: nowrap;
}
table.data tbody th { font-weight: 650; color: var(--ink) }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0 }
/* th as well as td: the row label carries the "your end" qualifier, and left
   inline it reads as part of the city name. */
table.data th small, table.data td small {
  display: block; color: var(--ink-soft); font-size: var(--step-s);
  font-weight: 400; line-height: 1.4;
}

/* Three-column service matrix. Left to itself the browser gives the service
   name the least room and wraps every one of them onto two lines. */
table.data--matrix th:first-child { width: 22% }
table.data--matrix th:nth-child(2) { width: 42% }
.tablehint { font-size: var(--step-s); color: var(--ink-soft); margin: .6rem 0 0 }

@media (max-width: 52em) {
  table.data tbody th {
    position: sticky; left: 0;
    background: var(--paper); max-width: 10.5rem;
  }
  .sec--alt table.data tbody th { background: var(--paper-alt) }
}
@media (min-width: 52.0625em) { .tablehint { display: none } }

/* --- Spec lists (capabilities, what this is not) -------------------------- */

/* Six cards, so the same 1 / 2 / 3 ladder as .spec and for the same reason. */
.grid {
  display: grid; gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
  grid-template-columns: 1fr;
}
@media (min-width: 38em) { .grid { grid-template-columns: repeat(2, 1fr) } }
@media (min-width: 62em) { .grid { grid-template-columns: repeat(3, 1fr) } }
.grid > div { background: var(--paper); padding: 1rem 1.1rem }
.sec--alt .grid > div { background: var(--paper-alt) }
.grid h3 { font-size: var(--step-0); font-weight: 700; margin: 0 0 .3rem }
.grid p { margin: 0; font-size: var(--step-s); line-height: 1.55; color: var(--ink-soft) }

.notlist { list-style: none; margin: 0; padding: 0; max-width: 68ch }
.notlist li { padding: .7rem 0 .7rem 1.6rem; border-bottom: 1px solid var(--rule); position: relative }
.notlist li:last-child { border-bottom: 0 }
.notlist li::before {
  content: ""; position: absolute; left: 0; top: 1.25em;
  width: .7rem; height: 2px; background: var(--gold);
}

/* --- Answers --------------------------------------------------------------
   One line each. The 3PL pages run a paragraph per answer; this does not. */

.qa { margin: 0; max-width: 72ch }
.qa > div { padding: .8rem 0; border-bottom: 1px solid var(--rule) }
.qa > div:last-child { border-bottom: 0 }
.qa dt { font-weight: 650; margin: 0 0 .2rem }
.qa dd { margin: 0; color: var(--ink-soft) }

/* --- Form ----------------------------------------------------------------- */

.form { max-width: 46rem; margin-top: 1.25rem }
.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)) }
.field { margin-bottom: 1rem; min-width: 0 }
.field label { display: block; font-size: var(--step-s); font-weight: 650; margin-bottom: .35rem }
.field .hint { font-weight: 400; color: var(--ink-soft) }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid #c3ccd6; border-radius: 3px; padding: .6rem .7rem;
}
.field textarea { min-height: 7rem; resize: vertical }
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { border-color: #a4262c }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.form__status { margin-top: 1rem; padding: .75rem 1rem; border-radius: 3px; font-size: var(--step-s) }
.form__status--ok  { background: #e8f3ec; color: #14532d }
.form__status--err { background: #fdeaea; color: #8a1f24 }

/* --- Elsewhere + footer --------------------------------------------------- */

.elsewhere { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; list-style: none }
.elsewhere a {
  display: inline-block; padding: .5rem .85rem;
  border: 1px solid var(--rule); border-radius: 3px;
  font-size: var(--step-s); font-weight: 650; text-decoration: none;
}
.elsewhere a:hover { border-color: var(--navy-lift) }
.elsewhere [aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff }

.foot { background: var(--navy); color: var(--on-navy-soft); font-size: var(--step-s) }
.foot__inner { padding-block: 1.75rem; display: grid; gap: .5rem }
.foot a { color: #fff }

/* --- Motion ---------------------------------------------------------------
   There is none. No scroll reveals, no counters, no parallax. Content does
   not depend on script, so there is nothing to fail open. This block exists
   to say that it is a decision rather than an omission. */

/* --- The other markets ----------------------------------------------------
   Four cards rather than four chips. As chips this section was a heading and
   a short row over most of a screen of empty ground, which the eye reads as
   an unfinished section rather than as breathing room. */

.citygrid {
  display: grid; gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
  grid-template-columns: 1fr;
}
@media (min-width: 34em) { .citygrid { grid-template-columns: repeat(2, 1fr) } }
@media (min-width: 62em) { .citygrid { grid-template-columns: repeat(4, 1fr) } }

.citycard {
  background: var(--paper); padding: 1.1rem;
  display: block; text-decoration: none; color: inherit;
}
.citycard:hover { background: var(--paper-alt) }
.citycard--here { background: var(--navy); color: var(--on-navy) }
.citycard--here:hover { background: var(--navy) }

.citycard__name { margin: 0 0 .5rem; font-size: var(--step-s); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft) }
.citycard--here .citycard__name { color: var(--gold) }

.citycard__dist { margin: 0; font-size: var(--step-2); font-weight: 700;
  line-height: 1.1; letter-spacing: -.02em; color: var(--navy-lift) }
.citycard--here .citycard__dist { color: var(--on-navy) }

.citycard__meta { margin: .45rem 0 0; font-size: var(--step-s); line-height: 1.5;
  color: var(--ink-soft) }
.citycard--here .citycard__meta { color: var(--on-navy-soft) }
