/* ============================================================
   Changing Nepal — contact

   The page had one address and a list of branch names printed
   against a column that does not exist on that table, so every
   branch rendered a blank line. The rows actually carry their
   own phone numbers, their own email and their own map — this
   sheet is mostly about giving that somewhere to live.
   ============================================================ */

/* ---------- fast paths under the page head ---------- */
.cn-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.cn-quick__a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--cn-line);
  background: var(--cn-bg);
  font-size: var(--cn-t-sm);
  transition: border-color var(--cn-dur) var(--cn-ease),
              background var(--cn-dur) var(--cn-ease);
}
.cn-quick__a .cn-ico { color: var(--cn-brand-deep); flex: none; }
.cn-quick__a:hover { border-color: var(--cn-brand); background: var(--cn-bg-soft); }
/* The brand mark is a filled glyph, so it must not inherit the
   outline treatment the interface icons use. */
.cn-quick__a--wa .cn-ico { fill: currentColor; stroke: none; color: #25D366; }

/* ---------- the direct-contact aside ---------- */
.cn-reach__list { display: grid; gap: 0; margin-top: 1.15rem; }

.cn-reach__row {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  /* Trimmed to offset the padding now carried by each link, so the
     block keeps its rhythm while every target stays a full height. */
  padding-block: 0.45rem;
  border-bottom: 1px solid var(--cn-line);
}
.cn-reach__row:first-child { border-top: 1px solid var(--cn-line); }
.cn-reach__row dt { margin: 0; padding-top: 0.7em; }
.cn-reach__row dt .cn-ico { color: var(--cn-brand-deep); }
.cn-reach__row dd { margin: 0; display: grid; gap: 0.3rem; min-width: 0; }
/* Each value is its own line and its own tap target — four phone
   numbers on one line is unusable on a phone, which is the device
   most likely to be reading them. */
.cn-reach__row dd a,
.cn-reach__row dd span { display: block; overflow-wrap: anywhere; }
.cn-reach__row dd a {
  /* A bare text link is only as tall as its line box — about 22px, well
     under a comfortable touch target. These are phone numbers, which is
     the one thing on this page a person is most likely to tap, so they
     are padded to clear 40px rather than left at text height. */
  padding-block: 0.55rem;
  color: var(--cn-fg-muted);
  transition: color var(--cn-dur) var(--cn-ease);
}
.cn-reach__row dd a:hover { color: var(--cn-brand-deep); }
/* The padding already separates them; the grid gap would double it. */
.cn-reach__row dd { gap: 0; }

.cn-reach__dir {
  margin-top: 0.15rem;
  font-family: var(--cn-data);
  font-size: var(--cn-t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cn-reach .cn-reach__dir { color: var(--cn-brand-deep); }

/* `.cn-reach a { display: block }` in cn-page.css is 0,2,0 and beats
   .cn-btn's inline-flex, which stretched this to the full width of the
   aside — 904px of WhatsApp button. The links around it do want to be
   block (one number per line), so only the button is put back. */
.cn-reach .cn-btn {
  display: inline-flex;
  width: auto;
  margin-top: 1.5rem;
}

/* ---------- offices ---------- */
.cn-off {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: 1fr;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
}
@media (min-width: 60rem) {
  .cn-off { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); }
}
.cn-off > * { min-width: 0; }

.cn-off__tabs { display: grid; gap: 0.5rem; }
/* Side by side on a narrow screen the tabs would each be a sliver,
   so they stay a stack and simply scroll with the page. */

.cn-off__tab {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  width: 100%;
  padding: 0.85rem 1rem;
  text-align: left;
  border: 1px solid var(--cn-line);
  background: var(--cn-bg);
  transition: border-color var(--cn-dur) var(--cn-ease),
              background var(--cn-dur) var(--cn-ease),
              color var(--cn-dur) var(--cn-ease);
}
.cn-off__tab:hover { border-color: var(--cn-brand); }
.cn-off__tab.is-on {
  background: var(--cn-ink-deep);
  border-color: var(--cn-ink-deep);
  color: var(--cn-on-ink);
}
.cn-off__n {
  flex: none;
  font-family: var(--cn-data);
  font-size: var(--cn-t-xs);
  letter-spacing: 0.08em;
  color: var(--cn-brand-deep);
}
.cn-off__tab.is-on .cn-off__n { color: rgba(255,255,255,0.75); }
.cn-off__name { font-weight: 600; line-height: 1.3; }

.cn-off__stage {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--cn-line);
  background: var(--cn-bg);
}
.cn-off__panel[hidden] { display: none; }

.cn-off__t {
  font-family: var(--cn-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.cn-off__list { display: grid; gap: 0; margin-top: 0.85rem; }
.cn-off__none { margin-top: 0.85rem; color: var(--cn-fg-muted); line-height: 1.7; }
.cn-off__none a { color: var(--cn-brand-deep); text-decoration: underline; text-underline-offset: 0.2em; }

.cn-off__map {
  line-height: 0;
  overflow: hidden;
  background: var(--cn-bg-soft);
  border: 1px solid var(--cn-line);
}
.cn-off__map[hidden] { display: none; }
.cn-off__map iframe {
  display: block;
  width: 100%;
  height: clamp(15rem, 32vw, 22rem);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cn-quick__a, .cn-off__tab, .cn-reach__row dd a { transition: none; }
}

/* ---------- layout corrections ---------- */

/* The page keeps the site's full measure, so its left and right edges line
   up with the header above it — narrowing it made the block tidy in
   isolation but left it floating inside a wider page.

   The dead gutter that narrowing was meant to solve is fixed here instead:
   the enquiry column is sized to the wizard rather than to whatever is
   left over, and the aside takes the remaining width and uses it. */
@media (min-width: 68rem) {
  /* The enquiry leads, so it takes the larger share — sizing the form to
     the wizard's own 42rem left the aside wider than the thing the page
     exists for. */
  .cn-contact { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }

  /* The wizard caps itself at 42rem so it does not sprawl when it is the
     only thing on a page. Here the grid column is already doing that job,
     so the cap would just reintroduce the dead gutter. */
  .cn-contact .cn-ask { max-width: none; }

  /* With the extra width the five options pair up instead of running down
     one long list with 600px of empty row beside each label. */
  .cn-contact .cn-ask__options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* With real width to work with, the contact rows pair up instead of
   running down one long thin column beside a much taller form. */
@media (min-width: 68rem) {
  .cn-reach__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); }
  .cn-reach__row:nth-child(2) { border-top: 1px solid var(--cn-line); }
}

/* Above the point where the stage is wider than the map wants to be,
   the office details move alongside it rather than sitting on top of a
   very wide, very short letterbox. */
@media (min-width: 76rem) {
  .cn-off__stage {
    grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
    align-items: start;
  }
}

/* ---------- the machine being asked about ----------
   Shown when the visitor arrived from a product page, so the context
   survives a no-JS submission and a bounced form — the wizard is not
   the only thing that knows which machine this is about. */
.cn-quoted {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--cn-brand);
  background: rgba(0, 163, 224, 0.06);
  font-weight: 600;
}
.cn-quoted .cn-ico { color: var(--cn-brand-deep); flex: none; }
.cn-quoted i { font-style: normal; opacity: 0.45; font-size: 0.6em; margin-inline: 0.3rem; }
