:root {
  color-scheme: light;
  --ink: #10242c;
  --muted: #5d7078;
  --paper: #f4f7f4;
  --white: #ffffff;
  --line: rgba(16, 36, 44, 0.14);
  --accent: #1c938c;
  --accent-dark: #0c6967;
  --accent-soft: #dff4f1;
  --warm: #e75a48;
  --shadow: 0 24px 70px rgba(8, 33, 42, 0.12);
}

html[data-guide="bond"] {
  --ink: #121b3c;
  --muted: #626b83;
  --paper: #f4f5fa;
  --line: rgba(18, 27, 60, 0.14);
  --accent: #4058a4;
  --accent-dark: #283e8b;
  --accent-soft: #e8ecfb;
  --warm: #70b74f;
  --shadow: 0 24px 70px rgba(18, 27, 60, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 26rem),
    var(--paper);
  font-family:
    Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: white;
  background: var(--ink);
  border-radius: 0.5rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.guide-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0.8rem clamp(1rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(18px);
}

.guide-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  text-decoration: none;
}

.guide-brand img {
  width: 6.6rem;
}

.guide-brand span {
  display: grid;
  line-height: 1.1;
}

.guide-brand strong {
  color: var(--accent-dark);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

.guide-brand small {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.67rem;
}

.guide-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 2rem);
}

.guide-header nav a {
  position: relative;
  padding: 0.42rem 0;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.guide-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
}

.guide-header nav a:hover::after,
.guide-header nav a.active::after {
  transform: scaleX(1);
}

.print-button {
  justify-self: end;
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.guide-hero,
.section {
  width: min(1420px, calc(100% - 2rem));
  margin-inline: auto;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(36rem, 1.08fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: clamp(4rem, 7vw, 7.5rem) clamp(0.25rem, 2vw, 2rem);
}

.back-link {
  display: inline-flex;
  margin-bottom: 2.2rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent-dark);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.guide-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.4rem, 6.5vw, 6.6rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.guide-hero h1::after {
  display: block;
  width: 5.4rem;
  height: 0.36rem;
  margin-top: 1.55rem;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  border-radius: 999px;
  content: "";
}

.hero-lead {
  max-width: 40rem;
  margin: 1.65rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--ink);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--ink) 22%, transparent);
}

.button-secondary {
  background: transparent;
}

.source-stamp {
  max-width: 42rem;
  margin-top: 1.35rem;
  color: #7c898d;
  font-size: 0.7rem;
}

.flow-stage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  min-height: 590px;
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 52%, white 0 15%, transparent 50%),
    var(--accent-soft);
  border-radius: 2.2rem;
}

.flow-product {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding: 1.4rem 0.75rem 1.7rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.5rem;
}

.flow-product:nth-child(2) {
  transform: translateY(-1.1rem);
}

.flow-product img {
  width: 100%;
  height: 375px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(12, 39, 45, 0.16));
}

.product-code {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.55rem;
  color: white;
  background: var(--accent-dark);
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.product-bulk .product-code {
  background: #c8493c;
}

.flow-product h2,
.bond-product h2 {
  margin: 0.6rem 0 0;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.flow-product p,
.bond-product p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.73rem;
  text-align: center;
}

.flow-product sup {
  font-size: 0.48em;
}

.bond-stage {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: var(--accent-soft);
  border-radius: 2.2rem;
}

.bond-product {
  position: relative;
  display: grid;
  grid-template-columns: minmax(11rem, 0.8fr) 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 270px;
  padding: 1.4rem 2rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 1.55rem;
}

.bond-product img {
  width: 100%;
  height: 225px;
  object-fit: contain;
  filter: drop-shadow(0 15px 18px rgba(18, 27, 60, 0.15));
}

.bond-product h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.5rem);
}

.bond-product p {
  text-align: left;
}

.product-esbond .product-code {
  background: #258c79;
}

.versus {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 3.7rem;
  aspect-ratio: 1;
  color: white;
  background: var(--ink);
  border: 5px solid var(--accent-soft);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.versus span {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section {
  padding: clamp(4.5rem, 9vw, 9rem) clamp(0.25rem, 2vw, 2rem);
}

.section-heading {
  max-width: 57rem;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 4.3rem);
  letter-spacing: -0.048em;
  line-height: 1.05;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1rem;
}

.quick-section {
  padding-top: 2rem;
}

.verdict-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.verdict-card {
  position: relative;
  min-height: 310px;
  padding: 2rem;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.55rem;
  box-shadow: 0 10px 32px rgba(8, 33, 42, 0.05);
}

.verdict-card::after {
  position: absolute;
  right: -2rem;
  bottom: -3.3rem;
  width: 8rem;
  aspect-ratio: 1;
  background: var(--accent-soft);
  border-radius: 50%;
  content: "";
}

.verdict-index {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.verdict-tag {
  margin: 2.2rem 0 0.45rem;
  color: var(--accent-dark);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.verdict-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.verdict-card > p:last-child {
  color: var(--muted);
}

.series-note {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  color: #6b4d24;
  background: #fff4dd;
  border: 1px solid #ecd29b;
  border-radius: 1rem;
}

.series-note strong {
  font-size: 0.87rem;
}

.series-note p {
  margin: 0;
  font-size: 0.84rem;
}

.selector-section {
  position: relative;
}

.selector-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
  gap: 1rem;
  align-items: stretch;
}

.selector-form {
  padding: clamp(1.4rem, 3vw, 2.6rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
}

.selector-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.selector-form fieldset + fieldset {
  margin-top: 2.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}

.selector-form legend {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 850;
}

.selector-form legend span {
  display: grid;
  place-items: center;
  width: 1.75rem;
  aspect-ratio: 1;
  color: white;
  background: var(--accent);
  border-radius: 50%;
  font-size: 0.72rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.choice {
  position: relative;
  display: block;
}

.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0.75rem 1rem;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 0.85rem;
  font-size: 0.83rem;
  font-weight: 700;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.choice input:checked + span {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.choice input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  outline-offset: 2px;
}

.recommendation-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 2.8rem);
  color: white;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent-dark) 80%, var(--ink)), var(--ink));
  border-radius: 1.75rem;
  box-shadow: var(--shadow);
}

.result-kicker {
  margin: 0;
  color: color-mix(in srgb, white 65%, var(--accent-soft));
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.result-product {
  margin-top: 1.7rem;
  font-size: clamp(2.15rem, 4vw, 4rem);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.result-summary {
  color: rgba(255, 255, 255, 0.82);
}

.result-reasons {
  display: grid;
  gap: 0.65rem;
  margin: 1.2rem 0;
  padding: 0;
  list-style: none;
}

.result-reasons li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.85rem;
}

.result-reasons li::before {
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--warm);
  border-radius: 50%;
  content: "";
}

.result-warning {
  margin-top: auto;
  padding: 0.85rem 1rem;
  color: #fff3ce;
  background: rgba(255, 255, 255, 0.09);
  border-left: 3px solid var(--warm);
  border-radius: 0.55rem;
  font-size: 0.78rem;
}

.result-boundary {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
}

.comparison-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 12px 35px rgba(8, 33, 42, 0.05);
}

.comparison-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  background: white;
}

.comparison-table th,
.comparison-table td {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  border-left: 0;
}

.comparison-table thead th {
  color: white;
  background: var(--ink);
  font-size: 0.88rem;
}

.comparison-table thead th:not(:first-child) {
  color: white;
  background: var(--accent-dark);
}

.comparison-table tbody th {
  width: 14%;
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent-soft) 45%, white);
  font-size: 0.78rem;
}

.comparison-table tbody td {
  width: 28.6%;
  color: var(--muted);
  font-size: 0.82rem;
}

.bond-table {
  min-width: 760px;
}

.bond-table tbody td {
  width: 43%;
}

.protocol-section {
  width: min(1500px, calc(100% - 2rem));
  padding-inline: clamp(1rem, 4vw, 4rem);
  color: white;
  background: var(--ink);
  border-radius: 2.5rem;
}

.protocol-section .eyebrow {
  color: color-mix(in srgb, var(--accent-soft) 70%, var(--warm));
}

.protocol-section .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.62);
}

.tab-switch {
  display: flex;
  gap: 0.45rem;
  padding: 0.4rem;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.tab-switch button {
  flex: 1 0 max-content;
  min-height: 46px;
  padding: 0.65rem 1rem;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.tab-switch button[aria-selected="true"] {
  color: var(--ink);
  background: white;
}

.protocol-panel {
  margin-top: 1.3rem;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
}

.step-grid li {
  min-height: 245px;
  padding: 1.4rem;
  background: var(--ink);
}

.step-grid li > span {
  color: var(--warm);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.step-grid strong {
  display: block;
  margin-top: 2rem;
  font-size: 1.05rem;
}

.step-grid p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.compact-steps {
  grid-template-columns: repeat(3, 1fr);
}

.etch-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.etch-modes article {
  padding: 1.2rem;
  color: var(--ink);
  background: white;
  border-radius: 1rem;
}

.etch-modes span {
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.etch-modes strong {
  display: block;
  margin-top: 0.8rem;
}

.etch-modes p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.audience-grid article {
  padding: clamp(1.5rem, 3vw, 3rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
}

.audience-grid article:last-child {
  color: white;
  background: var(--accent-dark);
  border-color: transparent;
}

.audience-tag {
  margin: 0;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.audience-grid article:last-child .audience-tag {
  color: color-mix(in srgb, var(--accent-soft) 65%, var(--warm));
}

.audience-grid h3 {
  margin: 0.8rem 0 1.2rem;
  font-size: 1.55rem;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  top: 0.28em;
  left: 0;
  color: var(--accent);
  font-weight: 900;
  content: "✓";
}

.audience-grid article:last-child .check-list li {
  color: rgba(255, 255, 255, 0.78);
}

.audience-grid article:last-child .check-list li::before {
  color: var(--warm);
}

.evidence-section {
  padding-bottom: clamp(6rem, 11vw, 11rem);
}

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  gap: 1rem;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.document-card {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 1.2rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 1rem;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.document-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.document-card span {
  color: var(--accent);
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.document-card strong {
  margin-top: 1.4rem;
  font-size: 0.93rem;
}

.document-card small {
  margin-top: 0.25rem;
  color: var(--muted);
}

.evidence-note {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: white;
  background: var(--ink);
  border-radius: 1.5rem;
}

.evidence-note h3 {
  margin-top: 0;
  font-size: 1.45rem;
}

.evidence-note p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
}

.source-links {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.source-links a {
  font-size: 0.75rem;
}

.guide-footer {
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--accent-soft) 45%, white);
  text-align: center;
}

.guide-footer img {
  width: 7rem;
}

.guide-footer p {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
}

@media (max-width: 1080px) {
  .guide-hero {
    grid-template-columns: 1fr;
  }

  .flow-stage,
  .bond-stage {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .selector-shell,
  .evidence-layout {
    grid-template-columns: 1fr;
  }

  .step-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .guide-header {
    grid-template-columns: auto 1fr;
    min-height: 68px;
    padding-inline: 1rem;
  }

  .guide-brand img {
    width: 5.7rem;
  }

  .guide-brand span,
  .print-button {
    display: none;
  }

  .guide-header nav {
    justify-self: end;
    gap: 0.7rem;
  }

  .guide-header nav a {
    font-size: 0.6rem;
  }

  .guide-hero {
    min-height: auto;
    padding-block: 3.4rem;
  }

  .back-link {
    margin-bottom: 1.4rem;
  }

  .guide-hero h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .flow-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .flow-product {
    display: grid;
    grid-template-columns: 42% 1fr;
    grid-template-rows: auto auto;
    min-height: 205px;
    padding: 1.1rem;
  }

  .flow-product:nth-child(2) {
    transform: none;
  }

  .flow-product img {
    grid-row: 1 / 3;
    width: 100%;
    height: 180px;
  }

  .flow-product h2,
  .flow-product p {
    align-self: end;
    text-align: left;
  }

  .flow-product p {
    align-self: start;
  }

  .product-code {
    z-index: 2;
  }

  .bond-product {
    grid-template-columns: 44% 1fr;
    min-height: 225px;
    padding: 1rem;
  }

  .bond-product img {
    height: 190px;
  }

  .bond-product h2 {
    font-size: 1.8rem;
  }

  .verdict-grid,
  .audience-grid,
  .document-grid,
  .etch-modes {
    grid-template-columns: 1fr;
  }

  .verdict-card {
    min-height: 0;
  }

  .series-note {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .recommendation-card {
    min-height: 440px;
  }

  .protocol-section {
    width: 100%;
    border-radius: 2rem;
  }

  .step-grid,
  .compact-steps {
    grid-template-columns: 1fr;
  }

  .step-grid li {
    min-height: 0;
  }

  .step-grid strong {
    margin-top: 1rem;
  }
}

@media print {
  .guide-header,
  .hero-actions,
  .back-link,
  .tab-switch,
  .guide-footer {
    display: none !important;
  }

  body {
    background: white;
  }

  .guide-hero,
  .section {
    width: 100%;
    min-height: 0;
    padding: 1.2rem;
    break-inside: avoid;
  }

  .flow-stage,
  .bond-stage,
  .selector-form {
    display: none;
  }

  .guide-hero {
    grid-template-columns: 1fr;
  }

  .selector-shell,
  .evidence-layout {
    grid-template-columns: 1fr;
  }

  .protocol-section {
    color: black;
    background: white;
  }

  .protocol-panel[hidden] {
    display: block;
  }

  .step-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .step-grid li {
    min-height: 0;
    color: black;
    background: white;
  }

  .step-grid p {
    color: #444;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
