/* Young Corporation homepage — globe.css (self-contained, scoped .ycl-*) */
.ycl-section {
    --ycl-ink: #16283a;
    --ycl-body: #5c6c7c;
    --ycl-mist: #edf2f6;
    --ycl-line: #d5e0e9;
    --ycl-accent: #1f7ac2;
    --ycl-card: #ffffff;
    --ycl-font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    overflow: hidden;
    background: var(--ycl-mist);
    color: var(--ycl-ink);
    font-family: var(--ycl-font);
    padding: 72px 20px 0;
    -webkit-font-smoothing: antialiased;
  }
  .ycl-section * { box-sizing: border-box; margin: 0; padding: 0; }

  /* ── Header ── */
  .ycl-head { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 4; }
  .ycl-eyebrow {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .32em;
    text-transform: uppercase; color: var(--ycl-accent); margin-bottom: 14px;
  }
  .ycl-title {
    font-size: clamp(30px, 5.4vw, 52px); font-weight: 800; line-height: 1.02;
    letter-spacing: -0.015em; text-transform: uppercase;
  }
  .ycl-sub {
    margin: 16px auto 0; max-width: 560px; font-size: 15.5px; line-height: 1.6; color: var(--ycl-body);
  }
  .ycl-stats {
    margin-top: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ycl-body); font-variant-numeric: tabular-nums;
  }
  .ycl-stats b { color: var(--ycl-ink); font-weight: 800; }
  .ycl-stats span + span::before { content: "·"; margin: 0 10px; color: var(--ycl-line); }

  /* ── Search ── */
  .ycl-search-wrap { position: relative; max-width: 520px; margin: 28px auto 0; z-index: 6; }
  .ycl-search {
    position: relative; display: flex; align-items: center; background: #fff;
    border: 1px solid var(--ycl-line); border-radius: 999px; height: 54px;
    box-shadow: 0 8px 28px rgba(22, 40, 58, .08);
    transition: box-shadow .2s, border-color .2s;
  }
  .ycl-search:focus-within { border-color: var(--ycl-accent); box-shadow: 0 8px 32px rgba(31,122,194,.18); }
  .ycl-search svg { flex: 0 0 auto; margin: 0 6px 0 20px; color: var(--ycl-body); }
  .ycl-input {
    flex: 1; height: 100%; border: 0; outline: 0; background: transparent;
    font: 600 15px/1 var(--ycl-font); color: var(--ycl-ink); min-width: 0;
  }
  .ycl-input::placeholder { color: #93a4b3; font-weight: 500; }
  .ycl-clear {
    flex: 0 0 auto; display: none; align-items: center; justify-content: center;
    width: 34px; height: 34px; margin-right: 10px; border: 0; border-radius: 50%;
    background: var(--ycl-mist); color: var(--ycl-body); cursor: pointer; font-size: 15px;
  }
  .ycl-clear:hover { background: #dfe8ef; color: var(--ycl-ink); }
  .ycl-search.has-value .ycl-clear { display: flex; }

  .ycl-results {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 9;
    background: #fff; border: 1px solid var(--ycl-line); border-radius: 16px;
    box-shadow: 0 18px 48px rgba(22,40,58,.16); overflow: hidden; display: none;
    max-height: 322px; overflow-y: auto; text-align: left;
  }
  .ycl-results.open { display: block; }
  .ycl-opt {
    display: flex; align-items: center; gap: 12px; padding: 11px 16px; cursor: pointer;
    border-top: 1px solid #f0f4f8;
  }
  .ycl-opt:first-child { border-top: 0; }
  .ycl-opt .f { font-size: 18px; flex: 0 0 auto; }
  .ycl-opt .t { flex: 1; min-width: 0; }
  .ycl-opt .n { font-size: 14px; font-weight: 700; color: var(--ycl-ink); }
  .ycl-opt .n mark { background: rgba(31,122,194,.14); color: var(--ycl-accent); border-radius: 3px; padding: 0 1px; }
  .ycl-opt .d { font-size: 12px; color: var(--ycl-body); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ycl-opt .dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; }
  .ycl-opt:hover, .ycl-opt[aria-selected="true"] { background: #f2f7fb; }
  .ycl-empty { padding: 18px 16px; font-size: 13.5px; color: var(--ycl-body); }
  .ycl-empty b { color: var(--ycl-ink); }

  /* ── Country chips ── */
  .ycl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px auto 0; max-width: 640px; position: relative; z-index: 4; }
  .ycl-chip {
    display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
    border: 1px solid var(--ycl-line); border-radius: 999px; background: #fff;
    font: 700 12.5px/1 var(--ycl-font); letter-spacing: .02em; color: var(--ycl-ink);
    cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
  }
  .ycl-chip:hover { border-color: var(--ycl-accent); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(22,40,58,.08); }
  .ycl-chip.active { border-color: var(--ycl-accent); box-shadow: 0 0 0 3px rgba(31,122,194,.14); }
  .ycl-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
  .ycl-chip .c { color: var(--ycl-body); font-weight: 600; }

  /* ── Globe ── */
  .ycl-globe-wrap { position: relative; max-width: 1060px; margin: 8px auto 0; }
  .ycl-canvas { display: block; width: 100%; cursor: grab; touch-action: pan-y; }
  .ycl-canvas.dragging { cursor: grabbing; }
  .ycl-hint {
    position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
    font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: #8296a6; pointer-events: none; white-space: nowrap; z-index: 3;
  }

  /* ── Location card ── */
  .ycl-card {
    position: absolute; z-index: 8; width: 300px; max-width: calc(100vw - 48px);
    background: var(--ycl-card); border: 1px solid var(--ycl-line); border-radius: 16px;
    box-shadow: 0 22px 56px rgba(22,40,58,.20); padding: 18px 18px 16px; text-align: left;
    opacity: 0; transform: translateY(8px) scale(.97); pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .ycl-card.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .ycl-card .cc { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ycl-body); }
  .ycl-card .cc .dot { width: 8px; height: 8px; border-radius: 50%; }
  .ycl-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin-top: 8px; line-height: 1.15; }
  .ycl-card .role { font-size: 12px; font-weight: 700; color: var(--ycl-accent); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
  .ycl-card address { font-style: normal; font-size: 13.5px; line-height: 1.55; color: var(--ycl-body); margin-top: 10px; }
  .ycl-card .links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #eef3f7; }
  .ycl-card a { font-size: 13px; font-weight: 700; color: var(--ycl-accent); text-decoration: none; }
  .ycl-card a:hover { text-decoration: underline; }
  .ycl-card .x {
    position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0;
    border-radius: 50%; background: var(--ycl-mist); color: var(--ycl-body);
    font-size: 14px; cursor: pointer; line-height: 1;
  }
  .ycl-card .x:hover { background: #dfe8ef; color: var(--ycl-ink); }

  /* ── Focus & a11y ── */
  .ycl-section :focus-visible { outline: 2px solid var(--ycl-accent); outline-offset: 2px; border-radius: 6px; }
  .ycl-visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }

  @media (max-width: 640px) {
    .ycl-section { padding-top: 56px; }
    .ycl-search { height: 50px; }
    .ycl-chip .c { display: none; }
    .ycl-card {
      left: 50% !important; right: auto !important; top: auto !important;
      bottom: 18px !important; transform: translateX(-50%) translateY(8px) scale(.97);
      width: min(340px, calc(100vw - 40px));
    }
    .ycl-card.show { transform: translateX(-50%) translateY(0) scale(1); }
    .ycl-hint { display: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    .ycl-card, .ycl-chip { transition: none; }
  }
