.how-page {
  background: #f5f7f9;
  font-size: 16px;
}
.how-main {
  max-width: 1160px;
  margin: auto;
  padding: 0 34px;
}
.how-page .topbar {
  position: sticky;
  top: 0;
  z-index: 5;
}
.top-link {
  text-decoration: none;
  font-size: 14px;
  color: #cbd4df;
  padding: 8px;
}
.top-link:hover {
  color: white;
  text-decoration: underline;
}
.back-workshop {
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
}
.how-intro {
  padding: 74px 0 54px;
  max-width: 790px;
}
.how-intro h1 {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -4px;
  margin: 20px 0 24px;
}
.how-intro p {
  font-size: 19px;
  line-height: 1.65;
  max-width: 660px;
  color: #73808d;
}
.jump-link {
  display: inline-block;
  margin-top: 8px;
  color: #a44c2e;
  font-size: 14px;
  text-underline-offset: 5px;
}
.how-page .eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.section-heading h2,
.how-section h2 {
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.demo-badge {
  border: 1px solid #dae1e7;
  background: white;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 12px;
  color: #788692;
}
.walkthrough {
  scroll-margin-top: 100px;
}
.demo-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #dce3e8;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: #fff;
}
.demo-steps button {
  border-radius: 0;
  padding: 19px 13px;
  text-align: left;
  font-size: 14px;
  color: #7b8793;
  border-right: 1px solid #e5e9ed;
}
.demo-steps button:last-child {
  border-right: 0;
}
.demo-steps b {
  font-weight: 400;
  font-size: 12px;
  margin-right: 10px;
}
.demo-steps .active {
  background: #1b2733;
  color: white;
}
.demo-steps .active b {
  color: #ff996c;
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border: 1px solid #dce3e8;
}
.demo-visual {
  background: #edf1f4;
  padding: 30px;
}
.demo-canvas-caption {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8a97a2;
  margin-bottom: 18px;
}
.demo-visual svg {
  width: 100%;
  display: block;
  box-shadow: 0 4px 25px #2231400b;
}
.demo-metrics {
  min-height: 25px;
  margin-top: 14px;
  font-size: 12px;
  color: #768693;
}
.demo-controls {
  margin-top: 23px;
  display: grid;
  gap: 14px;
}
.demo-controls label {
  font-size: 14px;
  line-height: 1.6;
}
.demo-controls label span {
  float: right;
  color: #a55736;
}
.demo-controls input[type="range"] {
  display: block;
  padding: 0;
  accent-color: #e6754d;
  margin-top: 7px;
}
.demo-controls select {
  margin-top: 7px;
  font-size: 14px;
}
.demo-controls label.muted {
  opacity: 0.45;
}
.demo-data {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #1d2935;
  color: #dce5ec;
}
.code-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 22px;
  border-bottom: 1px solid #34414d;
  font-size: 12px;
  color: #9baebb;
}
.code-heading button {
  color: #d2dde5;
  font-size: 12px;
}
.code-heading button:hover {
  background: #334454;
}
.demo-data pre {
  margin: 0;
  height: 310px;
  overflow: auto;
  padding: 22px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.8;
  tab-size: 2;
}
.demo-explanation {
  padding: 24px;
  background: #263543;
  flex: 1;
}
.demo-explanation .eyebrow {
  color: #ed9974;
  font-size: 11px;
}
.demo-explanation h3 {
  font-size: 21px;
  font-weight: 500;
  margin: 10px 0;
}
.demo-explanation p {
  font-size: 14px;
  color: #b9c9d5;
  line-height: 1.7;
}
.demo-explanation button {
  background: transparent;
  color: white;
  border-color: #657887;
  font-size: 13px;
}
.demo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  background: white;
  border: 1px solid #dce3e8;
  border-top: 0;
  border-radius: 0 0 10px 10px;
}
.demo-actions > span {
  color: #85929d;
  font-size: 12px;
}
.demo-actions > div {
  display: flex;
  gap: 9px;
}
.demo-actions button {
  font-size: 13px;
}
.how-section {
  padding-top: 85px;
  scroll-margin-top: 100px;
}
.concept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.concept-grid article {
  background: white;
  border: 1px solid #e0e6eb;
  border-radius: 8px;
  padding: 24px;
}
.editor-controls-grid {
  grid-template-columns: repeat(3, 1fr);
}
.concept-number {
  font-size: 13px;
  color: #c57954;
  display: block;
  margin-bottom: 24px;
}
.concept-grid h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}
.concept-grid p {
  font-size: 14px;
  color: #7b8792;
  line-height: 1.7;
}
.how-page code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
}
.how-page p code,
.how-page td code {
  background: #edf1f4;
  padding: 2px 5px;
  border-radius: 3px;
}
.section-lead {
  max-width: 760px;
  color: #72818e;
  line-height: 1.8;
}
.format-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.how-page table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  background: white;
  text-align: left;
}
.how-page th,
.how-page td {
  padding: 16px;
  border-bottom: 1px solid #e1e7ec;
  vertical-align: top;
  line-height: 1.6;
}
.how-page thead {
  background: #e8edf2;
}
.how-page td {
  color: #758491;
}
.how-page th {
  font-weight: 500;
}
.data-advice {
  background: #eaf0f5;
  padding: 25px;
  border-radius: 8px;
}
.data-advice h3 {
  font-size: 20px;
  font-weight: 500;
}
.data-advice pre {
  background: #1d2935;
  color: #e9bda8;
  font-size: 15px;
  border-radius: 6px;
  padding: 18px;
  line-height: 1.65;
}
.data-advice p {
  font-size: 14px;
  color: #6f8090;
}
.ai-note {
  margin-top: 28px;
  padding: 28px 32px;
  background: #fff3eb;
  border-left: 3px solid #e88b60;
}
.ai-note h3 {
  font-size: 20px;
  font-weight: 500;
}
.ai-note p {
  font-size: 15px;
  color: #8b7668;
}
.ai-note blockquote {
  font-size: 14px;
  line-height: 1.8;
  margin: 18px 0 0;
  color: #a36946;
}
.table-scroll {
  overflow: auto;
  margin-top: 26px;
}
.table-scroll table {
  min-width: 620px;
}
.raster-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 30px;
}
.raster-flow article {
  border-top: 3px solid #adc2d2;
  padding-top: 20px;
}
.raster-flow b {
  font-size: 14px;
}
.raster-flow p {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 15px;
  color: #7b8a96;
}
.where-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.where-section p {
  color: #7e8c98;
  font-size: 15px;
  line-height: 1.8;
}
.code-flow {
  display: grid;
  gap: 12px;
  align-content: center;
}
.code-flow div {
  background: white;
  border: 1px solid #dce4eb;
  border-radius: 6px;
  padding: 18px;
  display: grid;
  gap: 8px;
}
.code-flow code {
  color: #af6140;
  font-size: 14px;
}
.code-flow span {
  font-size: 13px;
  color: #82929e;
}
.handoff-note {
  margin: 75px 0 60px;
  background: #1c2935;
  color: white;
  border-radius: 10px;
  padding: 42px;
  max-width: 850px;
}
.handoff-note .eyebrow {
  color: #ee9f7c;
}
.handoff-note h2 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 500;
}
.handoff-note p {
  font-size: 16px;
  line-height: 1.8;
  color: #b5c6d4;
  max-width: 700px;
}
.how-footer {
  border-top: 1px solid #dce4ea;
  padding: 25px 34px;
  display: flex;
  justify-content: space-between;
  max-width: 1160px;
  margin: auto;
  font-size: 13px;
  color: #8a99a5;
}
.how-footer a {
  text-decoration: none;
  color: #5c6e7d;
}
#demoNotice {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #1d2935;
  color: white;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 14px;
  display: none;
  z-index: 6;
}
#demoNotice.show {
  display: block;
}
@media (max-width: 950px) {
  .how-main {
    padding: 0 24px;
  }
  .concept-grid {
    grid-template-columns: 1fr 1fr;
  }
  .demo-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .where-section {
    gap: 25px;
  }
  .raster-flow {
    grid-template-columns: 1fr 1fr;
  }
  .format-grid {
    grid-template-columns: 1fr 1fr;
  }
  .demo-visual {
    padding: 22px;
  }
}
@media (max-width: 650px) {
  .how-main {
    padding: 0 18px;
  }
  .how-intro {
    padding: 44px 0 36px;
  }
  .how-intro h1 {
    letter-spacing: -2px;
  }
  .how-intro p {
    font-size: 17px;
  }
  .demo-grid,
  .format-grid,
  .where-section {
    grid-template-columns: 1fr;
  }
  .demo-steps button {
    font-size: 12px;
    padding: 14px 6px;
  }
  .demo-steps b {
    display: block;
    margin: 0 0 6px;
  }
  .demo-data pre {
    height: 240px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .section-heading h2,
  .how-section h2 {
    font-size: 27px;
  }
  .demo-actions > div {
    flex-wrap: wrap;
  }
  .concept-grid,
  .raster-flow {
    grid-template-columns: 1fr;
  }
  .how-section {
    padding-top: 55px;
  }
  .handoff-note {
    padding: 27px;
    margin-top: 50px;
  }
  .how-footer {
    padding: 20px 18px;
  }
  .how-footer span {
    display: none;
  }
  .how-page .topbar {
    height: auto;
    min-height: 65px;
    flex-wrap: wrap;
    padding: 12px;
  }
  .how-page .top-link {
    display: none;
  }
  .how-page .top-actions {
    margin-left: auto;
  }
  .back-workshop {
    font-size: 12px;
    padding: 10px 12px;
  }
}

.how-page .topbar .top-link {
  color: #d5dfe9;
  font-size: 14px;
}
.how-page .top-actions {
  flex-wrap: wrap;
}
.how-fold {
  border-top: 1px solid #d5dde4;
  border-bottom: 0;
  padding: 0;
  margin: 0;
}
.how-fold-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 26px 0;
  list-style: none;
  cursor: pointer;
}
.how-fold-heading::-webkit-details-marker {
  display: none;
}
.how-fold-heading > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.how-fold-heading strong {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.6px;
}
.how-fold-heading .eyebrow {
  font-size: 12px;
}
.fold-marker {
  font-size: 28px;
  color: #b65c3b;
  flex-shrink: 0;
}
.how-fold[open] .fold-marker {
  transform: rotate(45deg);
}
.how-fold-content {
  padding: 6px 0 34px;
}
.how-fold summary:focus-visible {
  outline: 2px solid #396deb;
  outline-offset: 4px;
}
.how-fold:target summary {
  color: #a84929;
}
.demo-actions > div {
  flex-wrap: wrap;
}
.how-page .topbar {
  height: auto;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.how-page #downloadDemoSVG[hidden] {
  display: none;
}
@media (max-width: 650px) {
  .how-fold-heading strong {
    font-size: 22px;
  }
  .how-fold-heading {
    padding: 22px 0;
  }
  .how-page .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .how-page .top-actions {
    margin-left: 0;
    gap: 10px;
  }
  .how-page .top-link {
    padding: 8px 0;
  }
  .how-page .demo-actions > div {
    width: 100%;
  }
  .how-page .demo-actions button {
    flex: 1;
  }
}
