/* Scoped onboarding refinements. Map and score-panel layouts stay in core CSS. */
.vm-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.vm-skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 6000;
  padding: 12px 18px; background: var(--surface, #202629); color: var(--accent, #6cc2a6);
  border: 2px solid currentColor; border-radius: 12px; transform: translateY(-160%);
}
.vm-skip-link:focus { transform: none; }
#search-input { font-size: max(16px, 1rem); }
#landing.vm-welcome { padding: 12px; }
#landing.vm-welcome.gone { visibility: hidden; }
#landing.vm-welcome .landing-card {
  width: min(100%, 620px); max-width: 620px; max-height: 100%; min-height: 0;
  padding: clamp(18px, 3vw, 30px); overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; scrollbar-gutter: stable; text-align: left;
}
#landing.vm-welcome .landing-card::after { display: none; }
#landing.vm-welcome .landing-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 12px;
}
#landing.vm-welcome .vm-welcome-trust {
  font-size: .8125rem; font-weight: 600; color: var(--accent, #6cc2a6);
}
#landing.vm-welcome .landing-skip {
  min-height: 44px; padding: 8px 10px; font-size: .8125rem; font-weight: 700;
  color: var(--accent, #6cc2a6); text-underline-offset: 4px;
}
#landing.vm-welcome .landing-skip:hover,
#landing.vm-welcome .landing-skip:focus-visible {
  text-decoration: underline; background: var(--accent-soft); border-color: var(--accent);
  color: var(--accent); transform: none;
}
#landing.vm-welcome .landing-mark,
#landing.vm-welcome .landing-eyebrow { display: none; }
#landing.vm-welcome .landing-title {
  max-width: 15ch; margin: 0 0 12px; font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.1; letter-spacing: -.025em; text-wrap: balance;
}
#landing.vm-welcome .landing-sub {
  max-width: 49ch; margin: 0 0 20px; font-size: 1rem; line-height: 1.5;
  color: var(--text, #f4f2ec); opacity: .88;
}
#landing.vm-welcome .landing-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 0 0 20px; width: 100%;
}
#landing.vm-welcome .landing-cta {
  min-width: 0; width: 100%; min-height: 48px; margin: 0;
  padding: 12px 10px; font-size: .9375rem; font-weight: 700;
  white-space: normal; line-height: 1.25;
}
#landing.vm-welcome .landing-cta.btn-primary { color: var(--bg, #131618); }
#landing.vm-welcome .vm-welcome-starters > p {
  margin: 0 0 8px; font-size: .8125rem; line-height: 1.4; color: var(--muted, #a5ada9);
}
.vm-starter-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vm-starter-list button {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  min-height: 44px; padding: 10px; border-radius: 12px; border: 1px solid var(--border, #46534e);
  background: var(--surface-2, #252e2c); color: var(--accent, #6cc2a6);
  font: inherit; font-size: .8125rem; font-weight: 600; text-align: left; cursor: pointer;
}
.vm-starter-list button:hover { border-color: currentColor; }
.vm-starter-list button span { flex-shrink: 0; }
#landing.vm-welcome .vm-welcome-preview {
  margin-top: 20px; border-top: 1px solid var(--border, #46534e); padding-top: 4px;
}
.vm-welcome-preview summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; cursor: pointer; list-style: none; color: var(--text, #f4f2ec);
  font-size: .875rem; font-weight: 600;
}
.vm-welcome-preview summary::-webkit-details-marker { display: none; }
.vm-welcome-preview summary span { color: var(--accent, #6cc2a6); font-size: 1.25rem; }
.vm-welcome-preview[open] summary span { transform: rotate(45deg); }
#landing.vm-welcome .vm-preview-note {
  margin: 8px 0 12px; font-size: .8125rem; line-height: 1.5; color: var(--muted, #a5ada9);
}
#landing.vm-welcome .landing-example { margin: 0 0 12px; padding: 14px; }
#landing.vm-welcome .landing-example-top { grid-template-columns: minmax(0, 1fr) 72px; gap: 12px; }
#landing.vm-welcome .landing-place-name { font-size: 1.25rem; overflow-wrap: anywhere; }
#landing.vm-welcome .landing-place-copy { font-size: .875rem; line-height: 1.45; }
#landing.vm-welcome .landing-place-kicker { font-size: .75rem; }
#landing.vm-welcome .landing-score { width: 72px; height: 72px; }
#landing.vm-welcome .landing-score strong { font-size: 1.625rem; }
#landing.vm-welcome .landing-score span { font-size: .75rem; }
#landing.vm-welcome .landing-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#landing.vm-welcome .landing-pillar p { display: block; font-size: .8125rem; line-height: 1.45; }
#landing.vm-welcome .landing-pillar-head { font-size: .8125rem; }
#landing.vm-welcome .landing-example-tools { justify-content: space-between; margin: 0 0 12px; }
#landing.vm-welcome .landing-cycle { font-size: .8125rem; min-height: 44px; padding: 8px 12px; }
#landing.vm-welcome .landing-example-count { font-size: .8125rem; }
#landing.vm-welcome .landing-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
  margin: 4px 0 0; padding: 0; font-size: .75rem; line-height: 1.5;
}
#landing.vm-welcome .landing-foot a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
#landing.vm-welcome button:focus-visible,
#landing.vm-welcome summary:focus-visible,
#landing.vm-welcome a:focus-visible {
  outline: 2px solid var(--accent, #6cc2a6); outline-offset: 3px;
}
#landing.vm-welcome button:disabled { opacity: .55; cursor: wait; }
.vm-script-notice {
  position: fixed; bottom: 12px; left: 12px; right: 12px; z-index: 4900;
  max-width: 650px; margin-inline: auto; padding: 16px;
  border: 1px solid var(--accent, #6cc2a6); border-radius: 14px;
  background: var(--surface, #202629); color: var(--text, #f4f2ec);
  font-size: .875rem; line-height: 1.5;
}
.vm-script-notice[hidden] { display: none; }
.vm-script-notice a { color: var(--accent, #6cc2a6); text-decoration: underline; }
@media (max-width: 640px) {
  #landing.vm-welcome { padding: 8px; align-items: flex-start; }
  #landing.vm-welcome .landing-card { padding: 12px 16px; border-radius: 18px; }
  #landing.vm-welcome .landing-topbar { margin-bottom: 6px; }
  #landing.vm-welcome .landing-title { font-size: 1.875rem; margin-bottom: 10px; }
  #landing.vm-welcome .landing-sub { font-size: .9375rem; margin-bottom: 14px; }
  #landing.vm-welcome .landing-actions { margin-bottom: 14px; gap: 8px; }
  #landing.vm-welcome .landing-cta { font-size: .875rem; }
  #landing.vm-welcome .vm-welcome-preview { margin-top: 14px; }
  .vm-starter-list { gap: 6px; }
  .vm-starter-list button { padding: 8px; }
}
@media (max-width: 340px) {
  #landing.vm-welcome .landing-actions,
  #landing.vm-welcome .landing-pillars { grid-template-columns: 1fr; }
  .vm-starter-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  #landing.vm-welcome, #landing.vm-welcome * { animation: none !important; transition: none !important; }
}
