/* /launch: new-market launch planner. Shared type, badges, buttons, cards and
   notices come from the Base design system block in site.css; this file keeps
   layout, the gantt and print only. */
.launch-page { margin: 0; }
.lp { max-width: 1120px; margin: 0 auto; padding: 8px 16px 0; display: grid; gap: 16px; }
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp p { line-height: 1.55; }
.lp a { color: var(--green-90); overflow-wrap: anywhere; }
.lp-intro .eyebrow { margin-top: 16px; }
.lp-lede { margin: 0 0 12px; }
.lp-flag { max-width: 70ch; margin: 0; }
.lp-flag .badge-yellow { box-shadow: inset 0 0 0 1px var(--yellow-60); }
.lp-small { font-size: var(--text-body-md); color: var(--grey-80); margin: 8px 0 0; }
.lp-card { padding: 16px; min-width: 0; }
.lp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.lp-head h2 { margin: 0; }
.lp-loading, .lp-empty { color: var(--grey-80); font-size: var(--text-body-md); margin: 0; }
.lp-err p { margin: 0 0 8px; }
.lp-err p:last-child { margin: 0; }

/* controls */
.lp-controls { display: grid; gap: 14px; }
.lp-field { display: grid; gap: 6px; font-size: var(--text-body-md); color: var(--grey-80); }
.lp-field select { width: 100%; }
.lp-seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.lp-seg legend { font-size: var(--text-body-md); color: var(--grey-80); padding: 0; margin-bottom: 6px; width: 100%; }
.lp-seg button { font: 500 var(--text-body-md)/1.5 var(--body); min-height: 44px; padding: 8px 14px; border: 1px solid var(--grey-20); border-radius: var(--radius-control); background: #fff; color: var(--grey-100); cursor: pointer; flex: 1 1 auto; transition: background-color .15s, border-color .15s; }
.lp-seg button:not([aria-pressed=true]):hover { border-color: var(--grey-60); }
.lp-seg button[aria-pressed=true] { font-weight: 600; }
.lp-seg button:focus-visible, .lp .btn:focus-visible, .lp a:focus-visible { outline: 2px solid var(--green-90); outline-offset: 2px; }

/* why */
.lp-why h2 em { font-style: normal; color: var(--green-90); background: var(--green-5); padding: 0 6px; border-radius: var(--radius-sm); }
.lp-why > p { margin: 0 0 10px; }
.lp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.lp-facts div { background: var(--grey-5); border-radius: var(--radius-control); padding: 10px; min-width: 0; }
.lp-facts dt { font-size: var(--text-body-sm); color: var(--grey-80); text-transform: uppercase; letter-spacing: .04em; }
.lp-facts dd { margin: 2px 0 0; font-weight: 600; font-size: var(--text-body-md); overflow-wrap: anywhere; }

/* stats */
.lp-stats { display: grid; grid-template-columns: 1fr; gap: 10px; }
.lp-stat { padding: 16px; display: grid; gap: 2px; min-width: 0; }
.lp-stat span { font-size: var(--text-body-sm); color: var(--grey-80); text-transform: uppercase; letter-spacing: .04em; }
.lp-stat b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-stat small { font-size: var(--text-body-md); color: var(--grey-80); line-height: 1.45; }
.lp-lever { background: var(--green-5); border-color: var(--green-20); }
.lp-lever span, .lp-lever small { color: var(--green-90); }
.lp-lever b { font-size: 18px; color: var(--green-90); }

/* gantt */
.lp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--text-body-sm); color: var(--grey-80); margin: 0; }
.lp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lp-legend i { display: inline-block; width: 14px; height: 8px; border-radius: 3px; }
.k-crit { background: var(--green-90); }
.k-norm { background: var(--green-20); }
.k-slack { background: repeating-linear-gradient(90deg, var(--grey-20) 0 3px, transparent 3px 6px); border: 1px solid var(--grey-20); }
.k-ms { width: 2px !important; height: 12px !important; background: var(--red-80); border-radius: 0 !important; }
.lp-gantt { margin-top: 14px; display: grid; gap: 10px; }
.lp-row { display: grid; grid-template-columns: 1fr; gap: 4px; }
.lp-label span { font-size: var(--text-body-md); font-weight: 500; display: block; }
.lp-label small { font-size: var(--text-body-sm); color: var(--grey-80); font-variant-numeric: tabular-nums; }
.lp-row.is-crit .lp-label span { font-weight: 700; }
.lp-track { position: relative; height: 16px; background: var(--grey-5); border-radius: var(--radius-sm); }
.lp-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--grey-20); }
.lp-tick em { position: absolute; top: 0; left: 0; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--grey-80); white-space: nowrap; }
.lp-tick:first-child em { transform: none; }
.lp-bar { position: absolute; top: 2px; bottom: 2px; background: var(--green-20); border-radius: 3px; }
.lp-row.is-crit .lp-bar { background: var(--green-90); }
.lp-slack { position: absolute; top: 6px; height: 4px; background: repeating-linear-gradient(90deg, var(--grey-40) 0 3px, transparent 3px 6px); }
.lp-ms { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--red-80); z-index: 1; }
.lp-axis .lp-track { background: none; height: 18px; }
.lp-axis .lp-tick { background: none; }

/* steps */
.lp-steps { display: grid; gap: 10px; margin-top: 12px; }
.lp-step { border: 1px solid var(--grey-20); border-radius: 12px; padding: 12px; display: grid; gap: 10px; background: #fff; }
.lp-step.is-crit { border-left: 4px solid var(--green-90); }
.lp-step h3 .badge { margin-left: 2px; }
.lp-meta { font-size: var(--text-body-sm); color: var(--grey-80); margin: 2px 0 0; }
.lp-note { font-size: var(--text-body-md); margin: 6px 0 0; }
.lp-inputs { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; font-size: var(--text-body-sm); color: var(--grey-80); }
.lp-inputs label { display: grid; gap: 4px; }
.lp-inputs input { width: 84px; font-variant-numeric: tabular-nums; }
.lp-inputs span { padding-bottom: 12px; }

/* snags, tennis, real, sources */
.lp-snags { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.lp-snags li { border: 1px solid var(--grey-20); border-radius: 12px; padding: 12px; }
.lp-snags li.lp-empty { border-style: dashed; }
.lp-snag-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; }
.lp-snags p { margin: 6px 0 0; font-size: var(--text-body-md); }
.lp-tennis-out { margin-top: 12px; font-size: 1rem; }
.lp-tennis-out p { margin: 0; }
.lp-tennis-out p + p { margin-top: 6px; }
.lp-tennis-out .lp-small { color: var(--green-90); }
.lp-real-grid { display: grid; gap: 16px; }
.lp-real ul { margin: 6px 0 0; padding-left: 18px; font-size: var(--text-body-md); line-height: 1.5; }
.lp-real li { margin-bottom: 6px; }
.lp-sources { margin: 0; padding-left: 20px; font-size: var(--text-body-md); line-height: 1.5; }
.lp-sources li { margin-bottom: 8px; }
.lp-quote { color: var(--grey-80); }
[hidden] { display: none !important; }

@media (min-width: 640px) {
  .lp { padding: 16px 24px 0; }
  .lp-card { padding: 24px; }
  .lp-stats { grid-template-columns: 1fr 1fr; }
  .lp-facts { grid-template-columns: repeat(4, 1fr); }
  .lp-step { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
}
@media (min-width: 900px) {
  .lp-controls { grid-template-columns: minmax(200px, 1.2fr) auto auto; align-items: end; }
  .lp-stats { grid-template-columns: repeat(3, 1fr) 1.4fr; }
  .lp-row { grid-template-columns: 280px minmax(0, 1fr); align-items: center; gap: 14px; }
  .lp-track { height: 20px; }
  .lp-real-grid { grid-template-columns: 1.3fr 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) { .lp * { transition: none !important; } }

/* bring your own steps (yourdata.js) */
.lp-intro .yd { margin-bottom: 0; }

/* Print: a clean plan on paper. Hide nav, panel and controls; black on white;
   keep the gantt colors and keep rows and cards from splitting across pages. */
@media print {
  @page { margin: 14mm; }
  html, body.launch-page { background: #fff !important; color: #000 !important; }
  .site-top, .site-bottom, .gift-set, #yourdata, .yd, #reset, .lp-seg button[aria-pressed=false], .lp-err, #retry { display: none !important; }
  .lp { max-width: none; padding: 0; gap: 10px; }
  .lp-intro .eyebrow { margin-top: 0; }
  .card, .lp-card, .lp-stat, .lp-step, .lp-snags li { box-shadow: none !important; border-color: var(--grey-40) !important; background: #fff !important; color: #000; }
  .lp-card { padding: 10px 12px; }
  .lp-card, .lp-stat, .lp-step, .lp-snags li, .lp-row, .lp-facts div { break-inside: avoid; page-break-inside: avoid; }
  .lp h2, .lp h3 { break-after: avoid; page-break-after: avoid; }
  .lp-small, .lp-meta, .lp-quote, .lp-stat span, .lp-stat small, .lp-legend, .lp-label small, .lp-field, .lp-seg legend, .lp-inputs { color: #000 !important; }
  .notice, .lp-lever, .lp-facts div { background: #fff !important; color: #000 !important; border: 1px solid var(--grey-40); }
  .lp-lever span, .lp-lever small, .lp-lever b, .lp-tennis-out .lp-small { color: #000 !important; }
  .lp a { color: #000; text-decoration: underline; }
  .lp-seg { display: block; }
  .lp-seg legend { display: inline; width: auto; margin: 0 6px 0 0; }
  .lp-seg button[aria-pressed=true] { display: inline; min-height: 0; padding: 0; border: 0; background: none !important; color: #000 !important; font-weight: 700; }
  .lp-controls { display: flex; flex-wrap: wrap; gap: 4px 24px; }
  .lp-field { display: flex; gap: 6px; align-items: baseline; }
  .lp-field select { min-height: 0; padding: 0; border: 0; width: auto; appearance: none; -webkit-appearance: none; font-weight: 700; color: #000; background: none; }
  .lp-inputs input { min-height: 0; padding: 2px 4px; width: 56px; border: 1px solid var(--grey-40); color: #000; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-row { grid-template-columns: 34% minmax(0, 1fr); align-items: center; gap: 8px; }
  .lp-track { height: 14px; border: 1px solid var(--grey-20); background: #fff !important; }
  .lp-axis .lp-track { border: 0; }
  .lp-gantt, .lp-gantt *, .lp-legend i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .lp-real-grid { grid-template-columns: 1.3fr 1fr; gap: 16px; }
  .lp-step { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ZIP lookup */
.lp-zip-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 12px 0; }
.lp-zip-form .lp-field { flex: 1 1 140px; }
.lp-zip-form input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--grey-20); border-radius: var(--radius-control); font: 500 16px/1.5 var(--body); color: var(--grey-100); background: #fff; }
.lp-zip-form input:focus-visible { outline: 2px solid var(--green-90); outline-offset: 2px; }
.lp-zip-examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.lp-facts small { display: block; font-weight: 500; color: var(--grey-80); margin-top: 2px; }
.lp-zip-util { margin: 8px 0; }
.lp-zip-more { margin-top: 12px; }
.lp-zip-more summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.lp-zip-more ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 8px; }
#zip-result h3 { margin: 16px 0 6px; }
#zip-result .lp-facts dd { overflow-wrap: anywhere; }
