/* The first-visit welcome on Home and the drafted-value markers (docs/welcome_contract.md). Theme tokens only, so light and dark both work; no dashed borders; prose uses the available width. */

/* Welcome panel: the packages cards' look (accent-tinted surface, soft shadow, large radius), set above the hero. */
.welcome {
  position: relative; display: grid; gap: 10px; margin: 0 0 44px; padding: 26px 28px 22px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--accent-soft) 85%, transparent), transparent 45%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--rule)); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  scroll-margin-top: calc(var(--bar-height, 56px) + 16px);
}
.welcome h2 { margin: 0; padding-right: 40px; font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.15; letter-spacing: -.035em; color: var(--ink-strong); }
.welcome__lede { margin: 0; font-size: 1.04rem; line-height: 1.6; color: var(--ink); }
.welcome__subhead { margin: 14px 0 2px; font-family: var(--f-display); font-size: .74rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

.welcome__dismiss { position: absolute; top: 14px; right: 14px; margin: 0; }
.welcome__close {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--ink-3); cursor: pointer;
}
.welcome__close:hover { border-color: var(--rule-strong); background: var(--surface); color: var(--ink-strong); }
.welcome__close:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.welcome__starts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.welcome-start {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px 14px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-md); box-shadow: var(--shadow-card);
}
.welcome-start:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); }
.welcome-start__link { font-family: var(--f-display); font-size: 1rem; font-weight: 750; letter-spacing: -.01em; color: var(--ink-strong); text-decoration: none; }
.welcome-start__link::after { content: " →"; color: var(--accent); }
.welcome-start__link:visited { color: var(--ink-strong); }
.welcome-start__link:hover { color: var(--accent); text-decoration: underline; }
.welcome-start p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.welcome-start__decisions { display: grid; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; font-size: .88rem; line-height: 1.45; color: var(--ink); }
.welcome-start__code { margin-right: 4px; font-family: var(--f-mono); font-size: .8rem; font-weight: 500; white-space: nowrap; }

.welcome__ai p { margin: 0; line-height: 1.6; color: var(--ink); }
.welcome__note { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: .88rem; line-height: 1.55; color: var(--ink-2); }

@media (max-width: 560px) {
  .welcome { padding: 20px 18px 18px; margin-bottom: 32px; }
  .welcome__dismiss { top: 10px; right: 10px; }
}

/* The Settings modal's "Show the welcome again". */
.settings-form--welcome { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.settings-form__label { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: .86rem; color: var(--ink-strong); }

/* Drafted-value marker (CatalogFieldsHelper#drafted_mark): a quiet pill after a value the drafting pass filled in, linking to the help. The dot's color follows the confidence. */
.drafted-mark {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 2px; padding: 0 8px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--surface-2); font-family: var(--f-display); font-size: .7rem; font-weight: 600; font-style: normal; letter-spacing: 0; line-height: 1.6;
  color: var(--ink-3); text-decoration: none; white-space: nowrap; vertical-align: 2px;
}
.drafted-mark::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--neutral); }
.drafted-mark--high::before { background: var(--good); }
.drafted-mark--medium::before { background: var(--accent); }
.drafted-mark--low::before { background: var(--amber); }
.drafted-mark:visited { color: var(--ink-3); }
.drafted-mark:hover { border-color: var(--rule-strong); color: var(--ink-strong); text-decoration: underline; }
.drafted-mark:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

@media print {
  .welcome, .drafted-mark { display: none !important; }
}
