/* CCBONLINE — production adapter layer.
   The reference kit styles <button> where this build uses real <a> links (so
   every navigation works without JavaScript). This file re-applies the same
   geometry to the anchor form. No new colours, radii or shadows: every value
   resolves to a token in tokens.css. */

/* ---------- Nav: logo link + anchor nav items ---------- */
.nav-logo-link {
  display: flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}
.nav-links a.nav-link {
  text-decoration: none;
  height: 100%;
}
.nav-links a.nav-link:hover { color: var(--ink); }
.nav-links a.nav-link.is-active,
.nav-links a.nav-link.is-here { color: var(--ink); }
.nav-sheet a.nav-sheet-link {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule-soft);
  padding: 14px 0;
  font: 500 14px/1 var(--font-en);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.site[data-lang='zh'] .nav-sheet a.nav-sheet-link { font-family: var(--font-cjk); }
.lang a {
  color: var(--ink-55);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.lang a:hover { color: var(--ink); }
.lang a.is-on { color: var(--ink); font-weight: 600; }

/* ---------- Utility bar qualifying label ---------- */
.utilbar .ub-k { opacity: 0.62; }

/* ---------- Skip link on the home stack ----------
   home.css scopes `.v2 .skip`. The layout emits one <a class="skip"> for every
   page, so make the behaviour identical on all three stacks. */
.page .skip,
.legal-page .skip,
.v2 .skip {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 120;
  background: var(--ink);
  color: var(--paper);
  font: 600 13px/1 var(--font-en);
  padding: 14px 18px;
  text-decoration: none;
  transition: top 140ms var(--ease);
}
.page .skip:focus,
.legal-page .skip:focus,
.v2 .skip:focus { top: 16px; color: var(--paper); }
[data-lang='zh'] .skip { font-family: var(--font-cjk); }

/* ---------- Global focus ring ---------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
:where(.v2hero, .cta-band, .utilbar, .mbar) :where(a, button):focus-visible {
  outline-color: var(--paper);
}

/* ---------- Offer card: anchor link under a hit-area button ---------- */
.offer-hit { color: inherit; }
.offers a.offer-link { text-decoration: none; }
.offer-cad .cad-stage { color: var(--teal); }

/* ---------- Service page: Chinese column keeps the English name as a gloss ---------- */
.phead-en {
  margin: 10px 0 0;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-55);
}

/* ---------- /about: single affirmative column ----------
   The "what we are not" column was removed from this page; the affirmative
   list must not keep a half-width measure. */
.contrast-single { grid-template-columns: minmax(0, 1fr); }
.contrast-single > div { padding-right: 0; max-width: 78ch; }

/* ---------- Breadcrumbs as anchors ---------- */
.crumbs a {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--ink-55);
  cursor: pointer;
  text-decoration: none;
  text-transform: inherit;
  transition: color var(--dur) var(--ease);
}
.crumbs a:hover { color: var(--teal); }

/* ---------- Pager items as anchors ---------- */
a.pager-item { text-decoration: none; color: inherit; }

/* ---------- Specialized cards as anchors ---------- */
a.spec-card { text-decoration: none; color: inherit; }
a.spec-card:focus-visible { outline-offset: -3px; }

/* ---------- Legal index as anchors ---------- */
.doc-index a {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-55);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.doc-index a:hover { color: var(--ink); }
.doc-index a .n { font-variant-numeric: tabular-nums; color: var(--ink-70); }
.legal-page[data-lang='zh'] .doc-index a { font-family: var(--font-cjk); line-height: 1.7; font-size: 12px; }

/* ---------- Legal contact "related" links ---------- */
.contact-rows a.v-link {
  background: none;
  border: 0;
  padding: 0 0 3px;
  text-align: left;
  font: 500 13.5px/1.5 var(--font-en);
  color: var(--teal);
  cursor: pointer;
  border-bottom: 1px solid rgba(8, 126, 117, 0.32);
  margin-bottom: 8px;
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.contact-rows a.v-link:hover { color: var(--teal-ink); border-bottom-color: var(--teal-ink); }
.legal-page[data-lang='zh'] .contact-rows a.v-link { font-family: var(--font-cjk); }

/* ---------- Footer legal row as anchors ---------- */
.foot-lawlinks a {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--ink-55);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.foot-lawlinks a:hover { color: var(--teal); }

/* ---------- Dialog: notice links + sent panel ---------- */
.dlg2-notice a { text-decoration: none; }
.dlg2-sent[hidden],
.dlg2 [hidden] { display: none !important; }
.dlg2 .summary[hidden] { display: none !important; }

/* The dialog is rendered on every page and toggled with the `hidden`
   attribute; home.css positions it fixed, so hidden must win. */
#inquiry-dialog[hidden] { display: none !important; }

/* ---------- Reduced motion: never animate the overlay ---------- */
@media (prefers-reduced-motion: reduce) {
  .dlg2, .dlg2-box, .offer-detail { animation: none !important; }
}

/* ---------- Mobile bar sits above the dialog scrim ---------- */
@media (max-width: 760px) {
  .v2 { padding-bottom: 62px; }
  .page, .legal-page { padding-bottom: 0; }
}

/* ---------- Section anchors clear the sticky nav ---------- */
#services, #approach, #start, #contact, #engagement,
.mandate, .hr-block, .inv-svc, .doc-section { scroll-margin-top: 88px; }
