/* ============================================================
   CEM Asia 2026 stand page (tpl-cemasia.php)

   Loaded on that page only, in place of components.css and theme.css,
   on top of the design-system token layer. Mobile first, designed at
   390px. Same family as the stand banners: Wall 1 for the hero,
   Wall 2 for the four cards.

   Sizes and spacing come only from the design-system scales (--fs-*,
   --space-*). Each type role is set once below and reused; do not add
   one-off sizes or gaps elsewhere in this file.

   Contrast: white text never sits on brand blue #086EFF, which gives
   4.49:1, just under 4.5. Text on blue sits on action blue #0056D3
   (6.4:1); blue text on white uses #0056D3 too. #086EFF stays for
   rules and other non-text marks.
   ============================================================ */

body.aq-tpl-cemasia {
  /* Colour roles */
  --cem-blue: var(--aq-blue-500);
  --cem-blue-text: var(--aq-blue-600);
  --cem-wash: var(--aq-blue-600);
  --cem-navy: var(--aq-blue-900);
  --cem-navy-button: var(--aq-blue-800);
  --cem-pale: var(--aq-blue-50);
  --cem-on-blue-soft: var(--aq-blue-100);
  --cem-body: var(--aq-grey-700);
  --cem-muted: var(--aq-grey-600);
  --cem-error: #b42318;

  /* Type roles: phone values; desktop overrides at the end */
  --cem-fs-display: var(--fs-h1);          /* 34 → 56 */
  --cem-fs-section: var(--fs-h2);          /* 28 → 44 */
  --cem-fs-title: var(--fs-h3);            /* 22 → 28 */
  --cem-fs-lead: var(--fs-body-lg);        /* 18 → 22 */
  --cem-fs-body: var(--fs-body);           /* 16 */
  --cem-fs-small: var(--fs-body-sm);       /* 14 */
  --cem-fs-dateline: var(--fs-caption);    /* 13 */

  /* Space roles */
  --cem-section: var(--space-09);          /* 48 → 80: padding of every section */
  --cem-heading-gap: var(--space-06);      /* 24 → 32: heading to its content */
  --cem-gutter: var(--space-05);           /* 16 → 32: page side margin */

  margin: 0;
  background: #ffffff;
  color: var(--cem-body);
  font-family: "Hurme Geometric Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--cem-fs-body);
  line-height: var(--lh-normal);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Resets carry no specificity (:where), so any class below wins over them. */
:where(.aq-tpl-cemasia) :where(h1, h2, h3) {
  margin: 0;
  font-family: inherit;
  text-wrap: balance;
}

:where(.aq-tpl-cemasia) :where(p) { margin: 0; text-wrap: pretty; }

:where(.aq-tpl-cemasia) :where(img, svg) { display: block; max-width: 100%; }

.aq-tpl-cemasia ::selection { background: var(--aq-blue-200); color: var(--aq-blue-900); }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: #ffffff;
  clip: auto;
  clip-path: none;
  color: var(--aq-blue-900);
  display: block;
  font-weight: 700;
  height: auto;
  left: var(--space-03);
  padding: var(--space-04) var(--space-05);
  top: var(--space-03);
  width: auto;
  z-index: 100;
}

.cem-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--cem-gutter);
  box-sizing: border-box;
}

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

.cem-h2 {
  font-size: var(--cem-fs-section);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--cem-navy);
}

.cem-h2 span { color: var(--cem-blue-text); }

.cem-h3,
.cem-card__title {
  font-size: var(--cem-fs-title);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--cem-navy);
}

.cem-muted { color: var(--cem-muted); }

/* ---- Buttons ---- */

.cem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-03);
  min-height: 48px;
  padding: 0 var(--space-06);
  border: 2px solid transparent;
  border-radius: var(--radius-sm, 6px);
  font: inherit;
  font-size: var(--cem-fs-body);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.cem-btn:hover { text-decoration: none; }

.cem-btn--white { background: #ffffff; color: var(--cem-navy); }
.cem-btn--white:hover { background: var(--cem-pale); }

.cem-btn--navy { background: var(--cem-navy-button); color: #ffffff; }
.cem-btn--navy:hover { background: var(--cem-navy); }

.cem-btn--outline { background: transparent; color: var(--cem-navy); border-color: var(--cem-navy); }
.cem-btn--outline:hover { background: var(--cem-pale); }

/* Second action on the blue hero: outlined in white, no fill. */
.cem-btn--on-blue { background: transparent; color: #ffffff; border-color: #ffffff; }
.cem-btn--on-blue:hover { background: color-mix(in srgb, #ffffff 12%, transparent); }

/* ---- Hero (Wall 1) ----
   The photograph is a tall portrait. It is anchored by height and slid
   right so the pole lands at --pole-x of the hero's width; the pole sits
   at 48% of the photo's width and the photo is 0.667 as wide as tall,
   hence the 0.32. The left of the hero is the plain wash colour, as on
   the banner, and the gradient blends the photo into it. The hero stops
   short of a full phone screen so the facts row shows below it. */

.cem-hero {
  --h: 640px;
  --h: clamp(580px, 86svh, 700px);
  --ph: var(--h);
  --pole-x: 72%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: var(--h);
  background: var(--cem-wash);
  color: #ffffff;
}

.cem-hero__media {
  position: absolute;
  z-index: -2;
  top: 0;
  left: calc(var(--pole-x) - var(--ph) * 0.32);
  height: var(--ph);
  aspect-ratio: 900 / 1351;
}

.cem-hero__photo {
  width: 100%;
  height: 100%;
  max-width: none;
}

.cem-hero__wash {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--cem-navy) 55%, transparent) 100%),
    linear-gradient(90deg,
      var(--cem-wash) 0%,
      var(--cem-wash) 40%,
      color-mix(in srgb, var(--cem-wash) 86%, transparent) 56%,
      color-mix(in srgb, var(--cem-wash) 30%, transparent) 70%,
      transparent 84%);
}

.cem-hero__inner {
  display: flex;
  flex-direction: column;
  min-height: var(--h);
  padding-top: var(--space-04);
  padding-bottom: var(--cem-section);
}

.cem-hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-05);
}

.cem-hero__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.cem-hero__logo img { width: 104px; height: auto; }

.cem-dateline {
  font-size: var(--cem-fs-dateline);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
  color: #ffffff; /* sits over the photo's sky on wide screens; white keeps 4.5:1 there */
}

.cem-hero__copy { margin-top: auto; }

.cem-hero__title {
  max-width: 7.6em;
  font-size: var(--cem-fs-display);
  line-height: var(--lh-tight);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.cem-hero__title span { display: block; color: var(--cem-on-blue-soft); }

.cem-hero__line {
  max-width: 16em;
  margin-top: var(--space-05);
  font-size: var(--cem-fs-lead);
  line-height: 1.4;
}

.cem-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-04) var(--space-06);
  margin-top: var(--space-07);
}

.cem-hero__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-02);
  min-height: 44px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cem-hero :focus-visible { outline-color: #ffffff; outline-width: 3px; }

/* ---- Three facts ---- */

/* A quiet spec strip, not a feature list: regular weight, no icons,
   hairlines between the three statements. Rows on phones, columns wider. */

.cem-facts { border-bottom: 1px solid var(--aq-blue-100); }

.cem-facts__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cem-facts__list li {
  padding: var(--space-05) 0;
  font-size: var(--cem-fs-lead);
  line-height: 1.35;
  color: var(--cem-navy);
}

.cem-facts__list li + li { border-top: 1px solid var(--aq-blue-100); }

/* ---- Four cards (Wall 2) ---- */

.cem-offer { padding-top: var(--cem-section); }

/* Phones: every card row is as tall as the tallest, so the tiles fall at
   a steady interval down the page however long each card's copy is. */
.cem-cards {
  display: grid;
  grid-auto-rows: 1fr;
  gap: var(--space-07);
  margin-top: var(--cem-heading-gap);
}

.cem-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--space-05);
  align-items: start;
}

.cem-card__tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 262 / 290;
  background: var(--cem-pale);
}

/* Every tile is exactly its aspect ratio: the pictures are placed inside
   it, never in flow, so no image can stretch its tile taller than the rest. */
.cem-card__tile--lens img,
.cem-card__tile--map img,
.cem-card__tile--consultancy svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cem-card__tile--lens img { object-fit: cover; object-position: 40% 40%; }

.cem-card__tile--map img { object-fit: contain; padding: 0 1.5%; box-sizing: border-box; }

.cem-tile-unit-l {
  position: absolute;
  left: 32%;
  top: 6%;
  width: 63%;
  height: auto;
}

.cem-tile-unit-m {
  position: absolute;
  left: -30%;
  top: 46%;
  width: 124%;
  max-width: none;
  height: auto;
}

.cem-card__title a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-02);
  min-height: 44px;
  margin-block: calc((1.15em - 44px) / 2);  /* 44px target, 1.15em line box */
  color: var(--cem-navy);
  text-decoration: none;
}

.cem-card__title a svg { color: var(--cem-blue-text); }
.cem-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }

.cem-card__line {
  margin-top: var(--space-02);
  font-size: var(--cem-fs-body);
  line-height: 1.4;
  color: var(--cem-body);
}

.cem-card__items {
  margin: var(--space-04) 0 0;
  padding: var(--space-04) 0 0;
  list-style: none;
  border-top: 3px solid var(--cem-blue);
  font-size: var(--cem-fs-body);
  line-height: 1.6;
  color: var(--cem-navy);
}

/* ---- What it measures ----
   The parameters themselves are the content: set large, in regular
   weight, as a typeset row rather than a table. Optional ones are muted.
   One hairline above each unit, the same line the facts strip uses. */

.cem-measures { padding-top: var(--cem-section); }

.cem-measure {
  margin-top: var(--cem-heading-gap);
  padding-top: var(--space-05);
  border-top: 1px solid var(--aq-blue-100);
}

.cem-measure + .cem-measure { margin-top: var(--space-07); }

.cem-measure__name {
  font-size: var(--cem-fs-lead);
  line-height: 1.3;
  font-weight: 700;
  color: var(--cem-navy);
}

.cem-measure__about {
  margin-top: var(--space-01);
  font-size: var(--cem-fs-body);
  line-height: 1.4;
  color: var(--cem-muted);
}

.cem-measure__params {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-02) var(--space-06);
  margin: var(--space-04) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--cem-fs-section);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--cem-navy);
}

.cem-measure__params .is-optional { color: var(--cem-muted); }

.cem-measure__params sub { font-size: 0.6em; line-height: 0; vertical-align: -0.25em; }

.cem-measure__note {
  margin-top: var(--space-03);
  font-size: var(--cem-fs-small);
  line-height: 1.5;
  color: var(--cem-muted);
}

/* ---- In the field (continues the offer section) ---- */

.cem-field-band { padding-top: var(--cem-section); padding-bottom: var(--cem-section); }

.cem-field-band__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: var(--space-04);
  margin: var(--space-05) auto 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--cem-gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.cem-field-band__list::-webkit-scrollbar { display: none; }

.cem-field-band__list li { scroll-snap-align: start; }

.cem-field-band figure { margin: 0; }

.cem-field-band img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--cem-pale);
}

.cem-field-band figcaption {
  margin-top: var(--space-03);
  font-size: var(--cem-fs-small);
  line-height: 1.4;
  color: var(--cem-muted);
}

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

.cem-talk {
  padding: var(--cem-section) 0;
  background: var(--cem-pale);
}

.cem-form,
.cem-errors,
.cem-thanks { max-width: 560px; }

.cem-form { margin-top: var(--cem-heading-gap); }

.cem-field + .cem-field { margin-top: var(--space-05); }

.cem-field label {
  display: block;
  margin-bottom: var(--space-03);
  font-size: var(--cem-fs-body);
  line-height: 1.3;
  font-weight: 700;
  color: var(--cem-navy);
}

.cem-optional { font-weight: 400; color: var(--cem-muted); }

.cem-field input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: var(--space-04);
  border: 1.5px solid var(--aq-grey-500);
  border-radius: var(--radius-sm, 6px);
  background: #ffffff;
  color: var(--aq-grey-900);
  font: inherit;
  font-size: var(--cem-fs-body);
  box-sizing: border-box;
  caret-color: var(--cem-blue-text);
}

.cem-field input:focus {
  outline: 3px solid var(--aq-blue-400);
  outline-offset: 1px;
  border-color: var(--cem-navy);
}

.cem-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cem-form .aq-turnstile { margin-top: var(--space-05); }

.cem-form__send { width: 100%; margin-top: var(--space-06); }

.cem-consent {
  margin-top: var(--space-04);
  font-size: var(--cem-fs-small);
  line-height: 1.5;
  color: var(--cem-muted);
}

.cem-consent a,
.cem-contact a:not(.cem-btn),
.cem-download { color: var(--cem-blue-text); }

/* Inline link in a sentence: vertical padding on an inline box widens the
   tap area to 44px without moving the line. */
.cem-consent a {
  padding-block: calc((44px - 1em) / 2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cem-errors {
  margin-top: var(--cem-heading-gap);
  color: var(--cem-error);
  font-weight: 700;
}

.cem-errors p + p { margin-top: var(--space-02); }

.cem-thanks {
  margin-top: var(--cem-heading-gap);
  font-size: var(--cem-fs-title);
  line-height: 1.3;
  font-weight: 700;
  color: var(--cem-navy);
}

/* ---- Downloads and contact: one closing section ---- */

.cem-after { padding: var(--cem-section) 0; }

.cem-after__grid { display: grid; gap: var(--space-08); }

.cem-downloads__list {
  margin: var(--space-04) 0 0;
  padding: 0;
  list-style: none;
}

.cem-download {
  display: flex;
  align-items: center;
  gap: var(--space-04);
  min-height: 48px;
  font-weight: 700;
  text-decoration: none;
}

.cem-download:hover span { text-decoration: underline; text-underline-offset: 3px; }
.cem-download .cem-muted { font-weight: 400; }

.cem-contact__grid { display: grid; gap: var(--space-07); margin-top: var(--space-05); }

.cem-contact__name { font-size: var(--cem-fs-lead); line-height: 1.3; font-weight: 700; color: var(--cem-navy); }

.cem-contact__note { margin-top: var(--space-03); }

.cem-contact__lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: var(--space-02);
}

.cem-contact__lines a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.cem-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-04);
  margin-top: var(--space-06);
}

/* ---- Sticky action bar (phones) ----
   Off until cemasia.js shows it: after the hero has scrolled away, and
   gone again once the form is on screen. visibility keeps it out of the
   tab order and the accessibility tree while it is off. */

.cem-sticky {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: var(--space-04);
  padding: var(--space-04) var(--cem-gutter) calc(var(--space-04) + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-top: 1px solid var(--aq-blue-100);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 220ms;
}

.cem-sticky.is-visible {
  transform: none;
  visibility: visible;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.cem-sticky__main { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  .cem-sticky,
  .cem-sticky.is-visible { transition: none; }
}

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

.cem-footer {
  padding: var(--space-08) 0;
  background: var(--cem-navy);
  color: #ffffff;
}

.cem-footer__legal { margin-top: var(--space-03); }

/* 44px targets on a 1.6 line: the extra height is cancelled by an equal
   negative margin, so the lines keep their spacing. */
.cem-footer a,
.cem-footer .aq-cookie-settings {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: calc((1.6em - 44px) / 2) 0;
  padding: 0;
  border: 0;
  background: none;
  color: #ffffff;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cem-footer__lead { font-size: var(--cem-fs-lead); line-height: 1.4; font-weight: 700; }
.cem-footer__lead a { display: flex; margin: calc((1.4em - 44px) / 2) 0; text-decoration: none; }
.cem-footer__sep { display: none; }

.cem-footer__legal,
.cem-footer__links {
  font-size: var(--cem-fs-small);
  line-height: 1.6;
  color: var(--cem-on-blue-soft);
}

.cem-footer__links { margin-top: var(--space-05); }

.cem-footer :focus-visible { outline-color: #ffffff; }

/* ---- Wider screens ---- */

@media (min-width: 600px) {
  body.aq-tpl-cemasia {
    --cem-fs-display: var(--fs-display-2);   /* 44 */
    --cem-gutter: var(--space-07);
  }

  .cem-hero { --pole-x: 74%; }

  /* The form section is a single focused task: centre it as one column. */
  .cem-talk__inner { text-align: center; }

  .cem-form,
  .cem-errors,
  .cem-thanks { margin-inline: auto; }

  .cem-form { text-align: left; }
  .cem-consent,
  .cem-form .aq-turnstile { text-align: center; }
  .cem-footer__sep { display: inline; }
  .cem-footer__lead a { display: inline-flex; }
  .cem-form__send { width: 100%; }
}

@media (min-width: 900px) {
  body.aq-tpl-cemasia {
    --cem-fs-display: var(--fs-display-1);   /* 56 */
    --cem-fs-section: var(--fs-display-2);   /* 44 */
    --cem-fs-title: var(--fs-h2);            /* 28 */
    --cem-fs-lead: var(--fs-h3);             /* 22 */
    --cem-section: var(--space-11);          /* 80 */
    --cem-heading-gap: var(--space-07);      /* 32 */
  }

  /* Wide screens: the photo is anchored to the centred content column, not
     the window, so it keeps the same place beside the headline at any width.
     Both of its edges fade into the wash colour behind it, so there is no
     visible rectangle on a wide monitor; the stork and the unit sit in the
     opaque middle. */
  .cem-hero {
    --h: 660px;
    --ph: 840px;
    --pole-x: calc(50% + 330px);
  }

  .cem-hero__media { top: -40px; }

  /* Fade both side edges into the wash colour behind, so the photo never
     reads as a box. Overlays rather than a mask: a masked image inside this
     stacking context was dropped from paint in testing. */
  .cem-hero__media::before,
  .cem-hero__media::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%;
    pointer-events: none;
  }

  .cem-hero__media::before { left: 0; background: linear-gradient(90deg, var(--cem-wash), transparent); }
  .cem-hero__media::after { right: 0; background: linear-gradient(270deg, var(--cem-wash), transparent); }

  .cem-hero__wash {
    background: linear-gradient(180deg, transparent 70%, color-mix(in srgb, var(--cem-navy) 50%, transparent) 100%);
  }

  .cem-hero__inner { padding-top: var(--space-06); }
  .cem-hero__logo img { width: 128px; }
  .cem-hero__title { max-width: 11em; }
  .cem-hero__title span { display: inline; }

  .cem-facts__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cem-facts__list li {
    padding: var(--space-06) var(--space-07);
    font-size: var(--fs-body-lg);
  }

  .cem-facts__list li:first-child { padding-left: 0; }

  .cem-facts__list li + li {
    border-top: 0;
    border-left: 1px solid var(--aq-blue-100);
  }

  /* The four cards share row lines (subgrid), so tiles, titles, lines and
     the blue rules sit level across the row whatever each card's copy. */
  .cem-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    column-gap: var(--space-06);
    row-gap: 0;
  }

  .cem-card {
    grid-row: span 4;
    grid-template-rows: subgrid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cem-card__body { display: contents; }
  .cem-card__title { margin-top: var(--space-05); }
  .cem-card__line { font-size: var(--fs-body-lg); }

  .cem-field-band__list {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-06);
    margin-top: var(--space-06);
    overflow: visible;
  }

  .cem-measure {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: var(--space-07);
    padding-top: var(--space-06);
  }

  .cem-measure + .cem-measure { margin-top: var(--space-06); }

  .cem-measure__params { margin-top: 0; font-size: var(--fs-h1); gap: var(--space-02) var(--space-07); }

  .cem-sticky { display: none; }

  .cem-after__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-09); }

  .cem-contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-07); }

  .cem-footer { padding: var(--space-09) 0; }
}

@media (min-width: 1100px) {
  .cem-after__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

/* ============================================================
   Where we work (tpl-cemasia-live.php, the desk QR's /live/)
   Shares every role above; only the map and its pins are new.
   ============================================================ */

.cem-where__head {
  padding: var(--space-04) 0 var(--cem-section);
  background: var(--cem-wash);
  color: #ffffff;
}

.cem-where__title {
  margin-top: var(--space-09);
  font-size: var(--cem-fs-display);
  line-height: var(--lh-tight);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.cem-where__line {
  margin-top: var(--space-05);
  font-size: var(--cem-fs-lead);
  line-height: 1.4;
  color: var(--cem-on-blue-soft);
}

.cem-where__maps { padding: var(--cem-section) 0; }

.cem-map { position: relative; margin: 0; }

.cem-map img { width: 100%; height: auto; }

.cem-map__pins { position: absolute; inset: 0; }

/* Pins: a navy dot ringed in white so it reads over blue land dots. */
.cem-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--cem-navy);
  box-shadow: 0 0 0 3px #ffffff;
}

.cem-pin--quiet { width: 8px; height: 8px; margin: -4px 0 0 -4px; box-shadow: 0 0 0 2px #ffffff; }

.cem-pin--label-only { width: 0; height: 0; margin: 0; background: none; box-shadow: none; }

/* Where the stand is: an open ring, not a place we work. */
.cem-pin--here {
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  background: transparent;
  border: 3px solid var(--cem-blue-text);
  box-shadow: 0 0 0 2px #ffffff;
  box-sizing: border-box;
}

.cem-pin__label {
  position: absolute;
  top: 50%;
  padding: 1px var(--space-02);
  border-radius: var(--radius-xs, 4px);
  background: #ffffff;
  font-size: var(--cem-fs-small);
  line-height: 1.3;
  font-weight: 700;
  white-space: nowrap;
  color: var(--cem-navy);
  transform: translateY(-50%);
}

.cem-pin--right .cem-pin__label { left: calc(100% + var(--space-03)); }
.cem-pin--left .cem-pin__label { right: calc(100% + var(--space-03)); }
.cem-pin--label-only .cem-pin__label { left: var(--space-02); }

.cem-pin--below .cem-pin__label,
.cem-pin--above .cem-pin__label { left: 50%; transform: translateX(-50%); }
.cem-pin--below .cem-pin__label { top: calc(100% + var(--space-02)); }
.cem-pin--above .cem-pin__label { top: auto; bottom: calc(100% + var(--space-02)); }

.cem-pin--here .cem-pin__label { color: var(--cem-blue-text); }

/* A place north of the map's top edge: no dot, just the label sitting on
   the edge with an arrow pointing up. */
.cem-pin--edge { width: 0; height: 0; margin: 0; background: none; box-shadow: none; }

.cem-pin--edge .cem-pin__label {
  top: 0;
  left: calc(var(--space-02) * -1);
  display: inline-flex;
  align-items: center;
  gap: var(--space-02);
  transform: none;
}

.cem-pin--edge .cem-pin__label svg { flex: none; color: var(--cem-blue-text); }

.cem-where__cta {
  padding: var(--cem-section) 0;
  background: var(--cem-pale);
  text-align: center;
}

.cem-where__cta .cem-btn { margin-top: var(--cem-heading-gap); }

@media (min-width: 900px) {
  .cem-where__title { margin-top: var(--space-10); }
}

