/* Ornament assembly guide - styles for /build ------------------------------
   Layered on top of styles.css, which supplies the palette
   (--ink/--muted/--line/--blue/--blue-bright/--ok/--warn/--error), the two
   font families and the .shell/.hero/.panel/.section/.footer primitives.
   Only guide-specific layout lives here so the flasher page cannot regress. */

/* Top bar ---------------------------------------------------------------- */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 11px; }
.topbar a { color: var(--muted); letter-spacing: .06em; text-decoration: none; }
.topbar a:hover { color: var(--blue-bright); }
.topbar .crumb { color: #52647d; }

/* Hero ------------------------------------------------------------------- */
.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-bright);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.meta-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.meta-chips li {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: rgba(6, 13, 22, .6);
  font-size: 11px;
}
.meta-chips .chip-label { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.meta-chips strong { color: var(--ink); font-weight: 500; }

/* Layout: sticky step rail + guide body ---------------------------------- */
.guide-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-top: 52px;
}
.guide-body { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.guide-body p { line-height: 1.9; }
.guide-body a { color: var(--blue-bright); }

.section h3 {
  margin: 28px 0 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Step rail -------------------------------------------------------------- */
.step-rail {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.rail-title {
  margin: 0 0 10px;
  color: #52647d;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.rail-list { margin: 0 0 24px; padding: 0; list-style: none; }
.rail-list li {
  margin-left: -18px;
  padding-left: 16px;
  border-left: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.rail-list li.active { border-left-color: var(--blue); }
.rail-list a { display: block; padding: 5px 0; color: var(--muted); font-size: 11px; line-height: 1.45; text-decoration: none; }
.rail-list a:hover { color: var(--ink); }
.rail-list li.active a { color: var(--blue-bright); }

/* Reference tables ------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th,
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:first-child { color: var(--ink); }
/* Only the kit table's first column is a short quantity, so only it can be
   kept on one line. */
.data-table.kit-table td:first-child { white-space: nowrap; }

code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  background: rgba(6, 13, 22, .75);
  color: var(--blue-bright);
  font-family: inherit;
  font-size: .95em;
}

/* Method cards (hand solder / hot air / hot plate) ----------------------- */
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.method-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(6, 13, 22, .5);
}
.method-card.recommended { border-color: #344962; box-shadow: inset 0 2px 0 var(--blue); }
.method-card h3 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 21px; font-weight: 600; letter-spacing: .02em; }
.method-card .tag {
  align-self: flex-start;
  padding: 4px 8px;
  border: 1px solid #344962;
  color: var(--blue-bright);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.method-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.method-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }

/* Callout blocks --------------------------------------------------------- */
.note,
.tip,
.warning { margin: 18px 0; padding: 13px 15px; border: 1px solid var(--line); border-left: 2px solid var(--blue); background: rgba(6, 13, 22, .6); font-size: 12px; line-height: 1.8; }
.note > strong,
.tip > strong,
.warning > strong { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.note > strong { color: var(--blue-bright); }
.tip { border-left-color: var(--ok); }
.tip > strong { color: var(--ok); }
.warning { border-left-color: var(--warn); }
.warning > strong { color: var(--warn); }
.note p:last-child, .tip p:last-child, .warning p:last-child { margin-bottom: 0; }

/* Steps ------------------------------------------------------------------ */
.steps { margin: 0; padding: 0; list-style: none; }
.step { padding: 34px 0; border-top: 1px solid var(--line); }
.step[id], .panel[id] { scroll-margin-top: 20px; }

.step-head { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.step-head h3 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 27px; font-weight: 600; letter-spacing: .02em; }
.step-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 9px;
  border: 1px solid #344962;
  color: var(--blue-bright);
  font-size: 15px;
}

.step p { margin: 0 0 14px; }
.step p:last-child { margin-bottom: 0; }
.step ul, .step ol.numbered { margin: 0 0 14px; padding-left: 20px; }
.step li { margin-bottom: 7px; line-height: 1.85; }
.step .muted { color: var(--muted); font-size: 12px; }

/* Numbered placement notes under a step. */
.step-notes { margin: 0 0 16px; padding-left: 20px; color: var(--muted); font-size: 12px; }
.step-notes li { margin-bottom: 5px; line-height: 1.75; }
.step-notes li::marker { color: var(--blue-bright); }

/* Photos ----------------------------------------------------------------- */
.shot { position: relative; margin: 20px 0 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #060d16;
  cursor: zoom-in;
}
.shot img:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.75; }

/* Reference images that are smaller than the column, e.g. the vendor LED crop -
   never upscale them into a blur. */
.shot.compact img { width: auto; max-width: min(100%, 340px); margin: 0 auto; }

.shot-byline { margin-top: 8px; color: #52647d; font-size: 10px; }
.shot-byline a { color: #52647d; }

/* Checklist -------------------------------------------------------------- */
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.75; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { position: absolute; top: 7px; left: 0; color: var(--blue-bright); content: '\2610'; font-size: 15px; }
.checklist strong { color: var(--ink); font-weight: 500; }

/* Zoom dialog ------------------------------------------------------------ */
.lightbox {
  max-width: min(96vw, 1400px);
  max-height: 94vh;
  padding: 0;
  border: 1px solid var(--line);
  background: #060d16;
  color: var(--ink);
}
.lightbox::backdrop { background: rgba(3, 7, 13, .88); }
.lightbox img { display: block; width: auto; height: auto; max-width: 100%; max-height: 86vh; margin: 0 auto; }
.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #344962;
  background: rgba(7, 16, 28, .92);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lightbox-close:hover { color: var(--ink); border-color: var(--blue-bright); }
.lightbox-caption { padding: 13px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.75; }

/* Finishing CTA ---------------------------------------------------------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cta-row .btn-primary,
.cta-row .btn-ghost { align-self: auto; text-decoration: none; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .guide-layout { grid-template-columns: 1fr; gap: 26px; }
  .step-rail { position: static; max-height: none; overflow: visible; padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .rail-list li { margin-left: 0; padding-left: 0; border-left: 0; }
  .rail-list li.active { border-left: 0; }
}

@media (max-width: 650px) {
  .meta-chips li { width: 100%; justify-content: space-between; }
  .step { padding: 26px 0; }
  .step-head { gap: 11px; }
  .step-head h3 { font-size: 22px; }
  .step-badge { min-width: 36px; height: 36px; font-size: 13px; }
  .cta-row .btn-primary { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Print: one step per page, no chrome. ----------------------------------- */
@media print {
  body { color: #000; background: #fff; font-size: 11pt; }
  body::before { display: none; }
  .topbar, .step-rail, .footer, .lightbox, .cta-row { display: none !important; }
  .guide-layout, .guide-body { display: block; }
  .panel { padding: 0; border-color: #b9b9b9; background: none; }
  .panel::after { display: none; }
  .step { break-inside: avoid; border-top-color: #b9b9b9; }
  .steps > .step { break-before: page; }
  .step-head h3 { font-size: 18pt; }
  .step-badge { min-width: 0; height: auto; border: 0; color: #000; }
  .shot img { border-color: #b9b9b9; }
  .guide-body a { color: #000; }
}


