/*
 * English (en) locale overrides.
 * design:sync attaches this sheet to /en/** pages only, after the design sheets
 * (scripts/extract-pages.mjs localeExtraStylesheets). The design CSS
 * (kookmin_portal_0728/assets/css) stays untouched; several of the rules overridden
 * here are !important there, so these are too. Every selector is scoped to html[lang="en"].
 */

/* Home proof cards: "5 Major Banks" is far longer than "5대 은행" and, at the design's
   numeral size, wraps into two oversized lines that run into the card label above it. */
html[lang='en'] .proof-section .proof-card--total > strong {
  font-size: clamp(22px, 2.0833vw, 40px) !important;
  line-height: 1.1 !important;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  html[lang='en'] .proof-section .proof-card--total > strong {
    font-size: 32px !important;
  }
}

/* The design nudges every card numeral up (translateY, 07-revision-overrides.css) to sit under a
   one-line Korean label; the English labels ("U.S. Investment Immigration Ranking") take two lines,
   so the nudge pushes the numeral into the label. Let the card's flex layout place it instead. */
html[lang='en'] .proof-section .proof-card > strong {
  transform: none !important;
}

/* Typing copy under each proof card (data-lines): English lines do not fit the card width
   on one line — let them wrap instead of being clipped. */
html[lang='en'] .proof-section .proof-card__typing-line {
  white-space: normal !important;
  overflow: visible !important;
}

/* Breadcrumb standard (46-page-head-unified.css §3). The design selects the breadcrumb by its Korean
   label — nav[aria-label="현재 위치"] — which the translated pages no longer carry, so the hero
   breadcrumb lost these rules. Same declarations keyed on the structure instead (every breadcrumb nav
   has class page-breadcrumb); :where() keeps the design's specificity so the cascade matches ko. */
:where(html[lang='en']) div.typea-page-head > nav.page-breadcrumb,
:where(html[lang='en']) .consultation-hero__head > nav.page-breadcrumb,
:where(html[lang='en']) .eb5-hero__head > nav.page-breadcrumb,
:where(html[lang='en']) .qualification-hero__head > nav.page-breadcrumb,
:where(html[lang='en']) .performance-hero > .performance-container > nav.page-breadcrumb,
:where(html[lang='en']) .eb5-projects-head > nav.page-breadcrumb,
:where(html[lang='en']) .seminar-detail-hero > .seminar-container > nav.page-breadcrumb,
:where(html[lang='en']) .seminar-list-hero > .seminar-container > nav.page-breadcrumb,
:where(html[lang='en']) .customer-cafe-head > nav.page-breadcrumb,
:where(html[lang='en']) .ks-hero__container > nav.page-breadcrumb,
:where(html[lang='en']) .settlement-hero__head > nav.page-breadcrumb,
:where(html[lang='en']) .visa-encyclopedia-hero__head > nav.page-breadcrumb {
  position: static;
  inset: auto;
  order: 1;
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: #1a365d;
  font-family:
    'Pretendard',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: clamp(12px, 0.833vw, 16px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: right;
  white-space: normal;
}

:where(html[lang='en']) div.typea-page-head > nav.page-breadcrumb a,
:where(html[lang='en']) div.typea-page-head > nav.page-breadcrumb strong,
:where(html[lang='en']) .consultation-hero__head > nav.page-breadcrumb a,
:where(html[lang='en']) .consultation-hero__head > nav.page-breadcrumb strong,
:where(html[lang='en']) .eb5-hero__head > nav.page-breadcrumb a,
:where(html[lang='en']) .eb5-hero__head > nav.page-breadcrumb strong,
:where(html[lang='en']) .qualification-hero__head > nav.page-breadcrumb a,
:where(html[lang='en']) .qualification-hero__head > nav.page-breadcrumb strong,
:where(html[lang='en']) .performance-hero > .performance-container > nav.page-breadcrumb a,
:where(html[lang='en']) .performance-hero > .performance-container > nav.page-breadcrumb strong,
:where(html[lang='en']) .eb5-projects-head > nav.page-breadcrumb a,
:where(html[lang='en']) .eb5-projects-head > nav.page-breadcrumb strong,
:where(html[lang='en']) .seminar-detail-hero > .seminar-container > nav.page-breadcrumb a,
:where(html[lang='en']) .seminar-detail-hero > .seminar-container > nav.page-breadcrumb strong,
:where(html[lang='en']) .seminar-list-hero > .seminar-container > nav.page-breadcrumb a,
:where(html[lang='en']) .seminar-list-hero > .seminar-container > nav.page-breadcrumb strong,
:where(html[lang='en']) .customer-cafe-head > nav.page-breadcrumb a,
:where(html[lang='en']) .customer-cafe-head > nav.page-breadcrumb strong,
:where(html[lang='en']) .ks-hero__container > nav.page-breadcrumb a,
:where(html[lang='en']) .ks-hero__container > nav.page-breadcrumb strong,
:where(html[lang='en']) .settlement-hero__head > nav.page-breadcrumb a,
:where(html[lang='en']) .settlement-hero__head > nav.page-breadcrumb strong,
:where(html[lang='en']) .visa-encyclopedia-hero__head > nav.page-breadcrumb a,
:where(html[lang='en']) .visa-encyclopedia-hero__head > nav.page-breadcrumb strong {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

@media (max-width: 640px) {
  :where(html[lang='en']) div.typea-page-head > nav.page-breadcrumb,
  :where(html[lang='en']) .consultation-hero__head > nav.page-breadcrumb,
  :where(html[lang='en']) .eb5-hero__head > nav.page-breadcrumb,
  :where(html[lang='en']) .qualification-hero__head > nav.page-breadcrumb,
  :where(html[lang='en']) .performance-hero > .performance-container > nav.page-breadcrumb,
  :where(html[lang='en']) .eb5-projects-head > nav.page-breadcrumb,
  :where(html[lang='en']) .seminar-detail-hero > .seminar-container > nav.page-breadcrumb,
  :where(html[lang='en']) .seminar-list-hero > .seminar-container > nav.page-breadcrumb,
  :where(html[lang='en']) .customer-cafe-head > nav.page-breadcrumb,
  :where(html[lang='en']) .ks-hero__container > nav.page-breadcrumb,
  :where(html[lang='en']) .settlement-hero__head > nav.page-breadcrumb,
  :where(html[lang='en']) .visa-encyclopedia-hero__head > nav.page-breadcrumb {
    font-size: 12px;
  }
}

/* Floating chatbot button label (05-floating.css: content "AI 챗봇"). */
html[lang='en'] .floating-cta__chatbot::after {
  content: 'AI Chat';
}

/* Links whose target has no en page keep their markup but lose href (locale-links.mjs):
   do not advertise them as clickable. */
html[lang='en'] a:not([href]) {
  cursor: default;
}

/* Business vision accordion: the design caps an open card at 220px (260px under 640px), sized for
   the Korean copy. The English paragraphs — which carry the full company name — run past that cap
   and their last lines are clipped, so give the open card room. */
html[lang='en'] .business-vision-body .ceo-business-card.is-open .ceo-business-card__body {
  max-height: 400px;
}

/* CEO message sign-off: the design keeps the title line ("국민이주(주) 대표이사") on one line
   (white-space: nowrap) beside the signature image. With the English company name that line is
   wider than the card under 640px and pushes the copy column past the card edge — let it wrap. */
html[lang='en'] .ceo-message-page:not(.business-vision-page) .ceo-greeting-card__name {
  white-space: normal;
}

/* EB-5 overview structure diagram (2026-10-15): the immigration-firm rail is 76-116px wide on
   desktop, and "Immigration" does not fit across it — set the label vertically, as the phone
   layout already does. The translation's "<br> Firm" keeps the space once the break is hidden. */
@media (min-width: 768px) {
  html[lang='en'] .eb5-structure__firm .eb5-structure__name {
    writing-mode: vertical-rl;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0.02em;
  }

  html[lang='en'] .eb5-structure__firm br {
    display: none;
  }
}

/* Same diagram on phones: "Due diligence" needs a 64px column beside the cards, which left the
   SEC/USCIS cards too narrow for "(Securities and Exchange Commission)" at 320-375px. Set the
   label vertically next to its arrow, like the immigration-firm rail, so the column stays 24px. */
@media (max-width: 767px) {
  html[lang='en'] .eb5-structure__flow--due {
    max-width: none;
  }

  html[lang='en'] .eb5-structure__flow--due > span:last-child {
    writing-mode: vertical-rl;
    line-height: 1;
  }
}

/* Process diagram, desktop: "Conditional Green Card" and "Removal of Conditions" take two lines
   in the narrower columns, which pushed those steps below STEP 01. Reserve two lines for every
   step title so the three columns start level. */
@media (min-width: 768px) {
  html[lang='en'] .eb5-flow__title {
    min-height: 2.5em;
  }
}
