/* =============================================================================
   decorous.css: what is Decorous-specific and shared by every page, loaded after parts.css on every page.
   The header phone, the three mega menus, vendor and customer logo treatment, the partner row, the delivery map's labels,
   the dark footer, the small colour ticks. Inner pages (B2, B3) reuse these classes; page-only rules live in pages/<group>.css.
   ========================================================================== */

/* ---------------------------------------------------------------- header: the active and hovered link is marked by a small blue dot under it, not the base build's 2px bar
   (gate r1: the bar was read as a short rule flanking a text line on every page with a plain nav link); motion.js still scales it in and out */
.nav__item .bar { left: 50%; right: auto; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--accent-deep); bottom: 1.25vw; }
@media (max-width: 1100px) { .nav__item .bar { display: none; } }

/* ---------------------------------------------------------------- header: the phone sits where the base build kept a language switch */
.head__tel { display: flex; align-items: center; padding: 0 1.667vw; font-size: .917vw; font-weight: 500; white-space: nowrap; letter-spacing: -.01em;
  border-left: 1px solid var(--line-hair); transition: color .4s var(--p2-out); }
.head__tel:hover { color: var(--accent-deep); }
.nav__tel { font-size: min(3.889vw, 15.435px); font-weight: 500; color: var(--quiet); }

/* ---------------------------------------------------------------- mega menus: services (5 cards), products (6 cards), partners (a 5 x 2 wall of vendors) */
.mega--products .mega__card { height: 16.5vw; }
.mega--products .mega__mark { width: 5.4vw; }
.mega--partners { flex-wrap: wrap; }
.mega--partners .mega__card { flex: 1 1 calc(25% - .375vw); height: 9.4vw; gap: .6vw; }      /* the post's eight vendors, four across, two rows */
.mega--partners .mega__card:hover, .mega--partners .mega__card:focus-visible { background: #fff; }
.mega__logo { position: relative; display: flex; align-items: center; justify-content: center; width: 70%; height: 3.6vw; }
.mega__logo img.plogo { --lu: .95vw; width: calc(var(--lw, 8) * var(--lu)); max-width: 100%; max-height: none; }
.mega--partners .mega__name { font-size: .917vw; color: var(--quiet); }
.sheet__cards--partners .sheet__card .mega__logo { width: 76%; height: min(11vw, 44px); }
.sheet__cards--partners .sheet__card .mega__name { color: var(--quiet); font-size: min(3.333vw, 13px); }

/* ---------------------------------------------------------------- logos: ink at rest, their own colours on hover; a name in text when the kit has no file */
/* C3: ONE treatment for every customer and vendor logo on every page (ui.logo sizes each mark by optical weight and sets --lw; each tile sets
   --lu, the unit). Transparent background, no plate, no frame: monochrome ink at rest, a vendor in its own colours when its link is hovered,
   a customer always in ink (two of the customer files are white-on-dark originals that would vanish in colour). A mark that arrived boxed
   (Veeam, Winkworth) is its wordmark alone (tools/photos.py DERIVE), so no logo reads as a pill or a plate. */
.plogo { --lu: 1vw; display: block; width: calc(var(--lw, 8) * var(--lu)); max-width: 100%; height: auto; object-fit: contain; }
.partner__logo, .plogo--v { filter: brightness(0); opacity: .74; transition: opacity .5s var(--p2-out), filter .5s var(--p2-out); }
a:hover .partner__logo, a:focus-visible .partner__logo, a:hover .plogo--v, a:focus-visible .plogo--v { filter: none; opacity: 1; }
.plogo--c, a:hover .plogo--c, a:focus-visible .plogo--c { filter: brightness(0); opacity: .8; transition: opacity .5s var(--p2-out); mix-blend-mode: normal; }
a:hover .plogo--c, a:focus-visible .plogo--c, .deal:hover .plogo--c { opacity: 1; }
@media (max-width: 1100px) { .plogo { --lu: min(2.7vw, 10.5px); } }
.logo-text { display: block; max-width: 90%; font-size: 1.5vw; font-weight: 500; line-height: 1.1; letter-spacing: -.03em; text-align: center; color: var(--navy); }

/* ---------------------------------------------------------------- customer cards (the base build's tombstone cards, four across) */
.deals__grid--4 { grid-template-columns: repeat(4, 1fr); }
.customer { min-height: 15.5vw; }
.customer .deal__logos { padding: 1.2vw 0; min-height: 8.4vw; }
.customer .deal__logos img.plogo { --lu: 1vw; width: calc(var(--lw, 8) * var(--lu)); max-width: 100%; max-height: none; mix-blend-mode: normal; }
.customer--static { cursor: default; }
.customer--all { background: var(--navy); border-color: var(--navy); color: #f3f5f8; transition: background-color .5s var(--p2-out), border-color .5s var(--p2-out); }
.customer--all:hover, .customer--all:focus-visible { background: var(--accent-deep); border-color: var(--accent-deep); }
.customer--all .deal__foot { border-top-color: rgba(243, 245, 248, .25); }
.customer__all-t { text-align: center; max-width: 80%; color: #f3f5f8; }

/* ---------------------------------------------------------------- the partner logo row (the base build's drag row, re-cast) */
.partners { padding: 0 0 8vw; }
.partners__viewport { position: relative; overflow: hidden; padding: 0 0 1px; }
.partners__track { display: flex; gap: .9vw; padding: 0 1.667vw; width: max-content; will-change: transform; }
.card-partner { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2vw; width: 17vw; height: 11.5vw;
  background: var(--stone); border-radius: var(--radius); transition: background-color .5s var(--p2-out); }
.card-partner:hover, .card-partner:focus-visible { background: #fff; }
.card-partner__logo { display: flex; align-items: center; justify-content: center; width: 70%; height: 4.4vw; }
.card-partner__logo img.plogo { --lu: 1vw; width: calc(var(--lw, 8) * var(--lu)); max-width: 100%; max-height: none; }
.card-partner__name { color: var(--quiet); }
.partners__link { padding: 3vw var(--pad-x) 0; text-align: center; }
@media (max-width: 1100px) {
  .deals__grid--4 { grid-template-columns: none; }
  .customer { min-height: min(56vw, 222px); }
  .customer .deal__logos img.plogo { --lu: min(3.6vw, 14px); }
  .card-partner__logo img.plogo { --lu: min(2.9vw, 11.3px); }
  .mega__logo img.plogo { --lu: min(2.5vw, 9.8px); }
  .logo-text { font-size: min(5.5vw, 21px); }
  .partners { padding-bottom: min(20vw, 79px); }
  .partners__track { gap: min(3.4vw, 13px); padding: 0 min(5vw, 19.8px); }
  .card-partner { width: min(56vw, 222px); height: min(40vw, 158px); gap: min(3vw, 12px); }
  .card-partner__logo { height: min(15vw, 59px); }
  .partners__link { padding-top: min(8vw, 31px); }
}

/* ---------------------------------------------------------------- the delivery map: the two region names, the key under it */
.where { padding: 0 0 8vw; }
.where .statement { padding: 6vw 0 1.6vw; }
.where .amap { width: min(50vw, 780px); margin-top: 0; }
.amap__tag { position: absolute; z-index: 1; transform: translate(-50%, -50%); font-size: max(.833vw, 11px); font-weight: 500; letter-spacing: .01em;
  white-space: nowrap; color: var(--accent-deep); pointer-events: none; }
.amap__hl[data-hl-rest="eu"] { z-index: 0; }
.where__key { display: flex; flex-wrap: wrap; justify-content: center; gap: .6vw 3vw; padding: 2vw var(--pad-x) 0; color: var(--quiet); list-style: none; margin: 0; }
.where__key li { display: flex; align-items: center; gap: .6vw; }
.where__swatch { display: inline-block; width: .9vw; height: .9vw; min-width: 10px; min-height: 10px; background: var(--accent); }
.where__swatch--uk { opacity: .62; }
.where__swatch--eu { opacity: .3; }
@media (max-width: 1100px) {
  .where { padding-bottom: min(20vw, 79px); }
  .where .amap { width: calc(100% - var(--pad-x) * 2); }
  .amap__tag { font-size: 10px; }
  .where__key { flex-direction: column; align-items: flex-start; gap: min(2vw, 8px); padding: min(6vw, 24px) var(--pad-x) 0; }
  .where__key li { gap: min(2vw, 8px); }
}

/* ---------------------------------------------------------------- the quote band's second line */
.quote__more { margin-top: 2.083vw; color: var(--quiet); }
@media (max-width: 1100px) { .quote__more { margin-top: min(5vw, 20px); } }

/* ---------------------------------------------------------------- their colours, only as small ticks (2 to 6 px, never a fill) */
.tick { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tick--green { background: var(--tick-green); }
.tick--orange { background: var(--tick-orange); }
.tick--yellow { background: var(--tick-yellow); }

/* small tap targets the gate found: the phone number in the map card, a short vendor name in the footer */
.amap__ca a { display: inline-flex; align-items: center; min-height: 24px; }
.foot__nav a { min-width: 24px; }

/* ---------------------------------------------------------------- the dark footer: ink ground, paper text, the reversed logo.
   The footer re-points the four ground tokens locally, so every shared footer rule (links, hairlines, squares) reads them unchanged. */
.foot { --navy: #f3f5f8; --ivory: #0b2340; --stone: #0b2340; --hair: rgba(243, 245, 248, .2); --quiet: #a9b8cc; --accent: #5aa9ee; color: #f3f5f8; }
.foot .square:hover { background: rgba(243, 245, 248, .1); }
.foot__reach { display: flex; flex-wrap: wrap; justify-content: center; gap: 1vw 2.5vw; }
@media (max-width: 1100px) { .foot__reach { flex-direction: column; align-items: center; gap: min(3vw, 12px); } }
.foot__brand { width: 96.667vw; margin: 7.5vw auto 0; }
.foot__brand a { display: inline-block; width: 15vw; }
.foot__brand img { width: 100%; height: auto; }
.foot__addr a { color: #f3f5f8; }
.foot .link .underline { background: #f3f5f8; }
@media (max-width: 1100px) {
  .foot__brand { width: calc(100% - min(10vw, 39.69px)); margin-top: min(16vw, 63px); }
  .foot__brand a { width: min(46vw, 180px); }
}

/* critic r1 (home, phone): the numbers grid kept its desktop indent (cells about 120px, figures wrapping to two lines); under 600px it spans the content width */
@media (max-width: 600px) {
  .stats .container.--xsmall { width: calc(100% - var(--pad-x) * 2); }
  .stats .cell__num { white-space: nowrap; font-size: min(9.6vw, 38px); }
}

.arc__text { display: flex; flex-direction: column; align-items: center; gap: 1.4vw; }
@media (max-width: 1100px) { .arc__text { gap: min(4vw, 16px); } }

/* round 3 (audit 26): the 3M privacy filters post header shows the whole laptop, so it keeps the photo's own 16:9 instead of the 21:8 band
   (and instead of the 3:2 a phone gets), which trimmed the top of the lid and the front of the base */
.nhero__pic:has(img[data-photo="news-3m-privacy"]) { aspect-ratio: 16 / 9; }
