/* Canonical UI components. Legacy .btn classes are migrated by the build. */
:root {
  --ui-ink:var(--asap-ink,#050505); --ui-muted:var(--asap-muted,#5f636b); --ui-light:var(--asap-white,#fff);
  --ui-surface-raised:#fff;
  --ui-link:var(--asap-ink,#050505); --ui-rule:#cbd5e1;
  --ui-action:var(--asap-ink,#050505); --ui-on-action:var(--asap-white,#fff);
  --ui-action-hover:#202020; --ui-secondary-hover:#eef1f4;
  --ui-focus:var(--asap-signal,#86dcff); --ui-border:var(--ui-action);
}
body[data-site-page] :is(#explore,#join,.career-hero,.career-closing,.site-header) {
  --ui-action:var(--asap-white,#fff); --ui-on-action:var(--asap-ink,#050505); --ui-action-hover:#eaf8ff;
  --ui-secondary-hover:rgba(255,255,255,.08); --ui-focus:var(--asap-signal,#86dcff); --ui-border:var(--ui-action);
}
body[data-site-page] .ui-button {
  position:relative; isolation:isolate; overflow:visible;
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  box-sizing:border-box; min-height:54px; max-width:100%; padding:12px 24px;
  border:1px solid var(--ui-action); border-radius:999px;
  background:var(--ui-action); color:var(--ui-on-action);
  font-family:'Pretendard Variable',Pretendard,sans-serif;
  font-size:var(--control-main-text); font-weight:600; line-height:1.4;
  text-decoration:none; text-align:center; white-space:normal;
  cursor:pointer; box-shadow:none; transform:translateY(0) scale(1);
  touch-action:manipulation;
  transition:background-color .2s,border-color .2s,color .2s,
    transform .14s cubic-bezier(.22,1,.36,1),box-shadow .2s ease;
}
body[data-site-page] .ui-button::after {
  content:""; position:absolute; z-index:2; inset:-7px;
  border:1px solid var(--ui-action); border-radius:inherit;
  opacity:0; transform:scale(.94); pointer-events:none;
  transition:opacity .18s ease,transform .28s cubic-bezier(.22,1,.36,1);
}
body[data-site-page] .ui-button:hover { background:var(--ui-action-hover); border-color:var(--ui-action-hover); color:var(--ui-on-action); }
body[data-site-page] .ui-button:active {
  transform:translateY(0) scale(.97);
  transition-duration:0s;
}
body[data-site-page] .ui-button>span[aria-hidden="true"] {
  position:relative;z-index:1;display:inline-block;
  transition:transform .16s cubic-bezier(.22,1,.36,1),color .2s ease;
}
@media(hover:hover) and (pointer:fine) {
  body[data-site-page] .ui-button:hover>span[aria-hidden="true"] {transform:translate(3px,-3px);}
  body[data-site-page] .ui-button:hover::after {opacity:.78;transform:scale(1);}
}
body[data-site-page] .ui-button:focus-visible::after {opacity:1;transform:scale(1);}
body[data-site-page] .ui-button--secondary { background:transparent; color:var(--ui-action); border-color:var(--ui-border); }
body[data-site-page] .ui-button--secondary:hover { background:var(--ui-secondary-hover); color:var(--ui-action); border-color:var(--ui-border); }
body[data-site-page] .ui-button.ui-button--compact {
  min-height:48px; padding:10px 18px; font-size:var(--control-compact-text);
}
/* Card actions use the same secondary CTA contract even where legacy card
   styles are more specific. */
body[data-site-page] #brands .brand-visit.ui-button {
  min-height:48px; border-color:var(--ui-action); background:var(--ui-action); color:var(--ui-on-action);
}
body[data-site-page] #brands .brand-visit.ui-button:hover {
  border-color:var(--ui-action-hover); background:var(--ui-action-hover); color:var(--ui-on-action);
}
body[data-site-page] .ui-button:disabled { opacity:.55; cursor:not-allowed; }
body[data-site-page=career] .apply-channels>a[href^="mailto:"] { grid-column:1/-1; }
body[data-site-page] :is(a,button,summary):focus-visible { outline:2px solid var(--ui-focus); outline-offset:4px; }
/* The compact HIRING action follows the dark header theme on every route. */
body[data-site-page] .site-header .site-header__cta {
  border-color:rgba(255,255,255,.45); background:transparent; color:var(--asap-white);
}
body[data-site-page] .site-header .site-header__cta:hover {
  border-color:var(--asap-white); background:var(--asap-white); color:var(--asap-ink);
}
body[data-site-page=career] .site-header .site-header__cta[aria-current] {
  border-color:rgba(255,255,255,.7); background:rgba(255,255,255,.08); color:var(--asap-white);
}
/* One semantic label contract covers headings AND nested card labels. Legacy
   source selectors may be more specific: color priority belongs here only. */
body[data-site-page] {--ui-label:var(--asap-label,#263f60);}
body[data-site-page] :is(#vision,#vision-roadmap,#mission,#explore,#join,.career-hero,.career-closing),
body[data-site-page=culture] :is(#talent,#benefits),
body[data-site-page=career] #opening .position-select {--ui-label:var(--asap-white);}
body[data-site-page] :is(.kicker,.eyebrow,.how-work-label,.role small,.brand-category,.brand-top small,.talent-card .num,.position-select-top,.vision-stage-no,.about-explore__links>a>span:first-child) {--text-label:var(--ui-label);color:var(--text-label)!important;}
body[data-site-page] .site-footer { --ui-focus:var(--asap-blue); }
body[data-site-page] .site-footer a { display:inline; min-height:0; }
/* Editorial articles and legal documents: shared frame, distinct content. */
body:is([data-site-page=news],[data-site-page=notices]) {
  --ink:var(--ui-ink); --muted:var(--ui-muted); --accent:var(--ui-link); --line:var(--ui-rule);
  background:var(--ui-light);
}
body[data-site-page=news] #main { width:min(1180px,calc(100% - 40px)); max-width:none; padding:24px 0 48px; }
body[data-site-page=news] .content { grid-template-columns:minmax(0,1fr); }
body[data-site-page=news] :is(.tag,.new-publication) { color:var(--ui-label); background:#e9eef5; border:0; border-radius:4px; font-size:var(--type-small); line-height:var(--leading-small); padding:4px 9px; }
body[data-site-page=news] .new-publication { font-weight:700; }
body[data-site-page=news] :is(.meta,.bar>span),
body[data-site-page=notices] :is(.notice-category,.attachment-count,.notice-row time,.notice-page-bar,.notice-footnote) { color:var(--ui-muted); }
body[data-site-page=news] :is(.bottom a,article p a),
body[data-site-page=notices] .attachment-link { color:var(--ui-link); text-decoration:underline; text-underline-offset:4px; min-height:44px; }
body[data-site-page=news] .year-filters button { min-height:44px; color:var(--ui-muted); border-color:var(--ui-rule); background:transparent; }
body[data-site-page=news] .year-filters button[aria-pressed=true] { color:var(--ui-ink); border-color:var(--ui-ink); background:#e9eef5; font-weight:700; }
body[data-site-page=news] .tabs a[aria-current=page] { border-color:var(--ui-link); }
body[data-site-page=notices] .notice-page-intro>p:last-child { font-size:var(--type-lead); line-height:var(--leading-lead); margin-top:var(--type-copy-gap); color:var(--text-muted); }
body[data-site-page=notices] .notice-row { padding:24px; }
body[data-site-page=notices] .notice-row:hover { background:#e9eef5; }
body[data-site-page=notices] .notice-item[open] .notice-row { background:#e9eef5; }
body[data-site-page=notices] .notice-body { padding:32px; }
body[data-site-page=news] .ui-state { padding:40px 0; color:var(--ui-muted); line-height:1.75; }
body[data-site-page=news] .ui-state .ui-button { margin-top:16px; }
@media(max-width:650px) {
  body[data-site-page=news] #main { padding:32px 0; }
  body[data-site-page=news] :is(.meta,.bar>span),body[data-site-page=notices] :is(.notice-category,.attachment-count,.notice-row time) { font-size:13px; }
  body[data-site-page=notices] .notice-row { padding:24px 0; }
  body[data-site-page=notices] .notice-body { padding:24px 16px; }
  body[data-site-page] .join-actions .ui-button { width:100%; }
}
@media(prefers-reduced-motion:reduce) {
  body[data-site-page] .ui-button,
  body[data-site-page] .ui-button>span[aria-hidden="true"],
  body[data-site-page] .ui-button::after {transition:none;}
  body[data-site-page] .ui-button:hover {transform:none;}
}
