/* Styles for how-it-works.html only. Shared tokens and components live in css/styles.css. */
.page-hero .eyebrow:empty { display: none; }

/* The process rail: four numbered stops joined by one line. The sequence is real, so the numbers earn their place. */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); counter-reset: none; position: relative; }
.process::before { content: ""; position: absolute; top: 20px; left: 20px; right: 20px; height: 2px; background: var(--line); }
.process-step { position: relative; display: grid; gap: var(--s2); align-content: start; }
.process-n {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; margin-bottom: var(--s3);
  background: var(--bg); border: 2px solid var(--ink); color: var(--ink);
  font: 700 var(--t-lg)/1 var(--font-display); font-variant-numeric: tabular-nums; position: relative;
}
.process-step:last-child .process-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.process-tag { font: 500 var(--t-sm)/1.3 var(--font-body); color: var(--muted); }
.process-step h2 { font-size: var(--t-xl); }
.process-step p { color: var(--ink-2); max-width: 32ch; }

.hiw-order { }
.hiw-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s7); padding-top: var(--s7); border-top: 1px solid var(--line); }
.hiw-lede { margin-top: var(--s2); color: var(--ink-2); }
.order-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.order-flow li { display: grid; gap: var(--s2); align-content: start; padding: var(--s5); background: var(--surface); border-radius: var(--radius); }
.order-flow h3 { font-size: var(--t-md); }
.order-flow p { font-size: var(--t-sm); color: var(--ink-2); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.materials { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--t-sm); }
.materials th, .materials td { text-align: left; padding: 14px var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
.materials thead th { background: var(--surface); color: var(--muted); font-weight: 500; }
.materials tbody tr:last-child > * { border-bottom: 0; }
.materials tbody th { color: var(--ink); font-weight: 600; }
.materials td { color: var(--ink-2); }
.materials td.num { white-space: nowrap; color: var(--ink); }

.hiw-notes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); }
.hiw-notes > div { display: grid; gap: var(--s3); align-content: start; }
.hiw-notes h2 { font-size: var(--t-xl); }
.hiw-notes p { color: var(--ink-2); max-width: 60ch; }

@media (max-width: 1023px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: var(--s7); }
  .process::before { display: none; }
  .hiw-split { grid-template-columns: 1fr; gap: var(--s5); }
}
@media (max-width: 767px) {
  /* Vertical rail on phones. */
  .process { grid-template-columns: 1fr; gap: var(--s6); }
  .process::before { display: block; top: 20px; bottom: 20px; left: 20px; right: auto; width: 2px; height: auto; }
  .process-step { grid-template-columns: 42px 1fr; column-gap: var(--s4); row-gap: 4px; }
  .process-n { grid-row: 1 / span 3; margin: 0; }
  .process-step > :not(.process-n) { grid-column: 2; }
  .order-flow { grid-template-columns: 1fr; gap: var(--s3); }
  .hiw-notes { grid-template-columns: 1fr; gap: var(--s6); }
  /* Phone polish: the materials table scrolls inside its own box; cells a little tighter. */
  .hiw-split { grid-template-columns: minmax(0, 1fr); }
  .table-scroll { overscroll-behavior-x: contain; max-width: 100%; }
  .materials th, .materials td { padding: 12px var(--s3); }
  .order-flow li { padding: var(--s4); }
  .order-flow p { font-size: var(--t-md); }
  .process-step h2 { font-size: var(--t-lg); }
}
