:root {
  --pine-9: #0d211c;
  --pine-8: #14332c;
  --pine-7: #1b4439;
  --pine-6: #25584a;
  --paper: #f6f1e2;
  --paper-2: #efe8d4;
  --paper-3: #e7dec6;
  --ink: #20261f;
  --ink-2: #5a5f52;
  --ink-3: #595d50;
  --seal: #c2452d;
  --seal-soft: #f3d9cf;
  --bamboo: #c9a86a;
  --bamboo-deep: #6d5730;
  --steam: #eef4ee;
  --line: rgb(32 38 31 / 14%);
  --radius-card: 14px;
  --radius-soft: 8px;
  --font-display:
    "Noto Serif CJK SC",
    "Source Han Serif SC",
    "Songti SC",
    "STSong",
    "SimSun",
    serif;
  --font-body:
    "PingFang SC",
    "HarmonyOS Sans SC",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    sans-serif;
  --shadow-1: 0 10px 30px rgb(6 18 14 / 35%);
  --shadow-2: 0 4px 14px rgb(20 30 24 / 12%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(
      60rem 40rem at 85% -10%,
      rgb(201 168 106 / 14%),
      transparent 60%
    ),
    radial-gradient(
      50rem 36rem at -10% 30%,
      rgb(37 88 74 / 55%),
      transparent 65%
    ),
    linear-gradient(160deg, var(--pine-8), var(--pine-9) 70%);
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  content: "";
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--pine-6);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--seal);
}

button:focus-visible,
input:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(194 69 45 / 40%);
  outline-offset: 3px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

input[type="number"] {
  appearance: textfield;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  background: var(--seal);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin-inline: auto;
  padding:
    clamp(14px, 3vw, 32px)
    clamp(14px, 3.5vw, 36px)
    60px;
}

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.seal-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 74px;
  height: 74px;
  color: #fdf3e8;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  background: var(--seal);
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 3px rgb(253 243 232 / 85%),
    inset 0 0 0 6px var(--seal),
    0 8px 22px rgb(0 0 0 / 35%);
  transform: rotate(-4deg);
}

.brand-name {
  margin-bottom: 4px;
  color: var(--bamboo);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand h1 {
  color: var(--steam);
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.04em;
}

.brand-description {
  margin-top: 7px;
  color: rgb(238 244 238 / 72%);
  font-size: clamp(12px, 1.8vw, 14px);
  line-height: 1.7;
  letter-spacing: 0.06em;
}

.brand-description b {
  display: inline-block;
  margin-left: 5px;
  color: var(--bamboo);
}

.steam-box {
  position: relative;
  flex: none;
  width: 90px;
  height: 86px;
}

.wisp {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 14px;
  height: 44px;
  opacity: 0;
  background:
    radial-gradient(
      closest-side,
      rgb(238 244 238 / 85%),
      rgb(238 244 238 / 0%)
    );
  border-radius: 50%;
  filter: blur(5px);
  animation: rise 3.6s ease-in-out infinite;
}

.wisp:nth-child(1) {
  margin-left: -22px;
}

.wisp:nth-child(2) {
  height: 56px;
  margin-left: -4px;
  animation-delay: 1.2s;
}

.wisp:nth-child(3) {
  height: 38px;
  margin-left: 14px;
  animation-delay: 2.2s;
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(6px) scaleX(1);
  }

  30% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translateY(-58px) scaleX(1.7);
  }
}

.cats {
  display: flex;
  gap: 10px;
  padding: 6px 2px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cats::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  display: flex;
  align-items: center;
  flex: none;
  gap: 10px;
  min-height: 58px;
  padding: 9px 16px 9px 9px;
  color: var(--steam);
  background: rgb(246 241 226 / 7%);
  border: 1px solid rgb(246 241 226 / 16%);
  border-radius: 12px;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.cat-btn:hover {
  background: rgb(246 241 226 / 13%);
  transform: translateY(-2px);
}

.mini-seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--steam);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  background: rgb(238 244 238 / 14%);
  border-radius: 8px;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.cat-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.cat-sub {
  display: block;
  margin-top: 2px;
  color: rgb(238 244 238 / 65%);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.cat-btn[aria-pressed="true"] {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.cat-btn[aria-pressed="true"] .cat-sub {
  color: var(--ink-2);
}

.cat-btn[aria-pressed="true"] .mini-seal {
  color: #fdf3e8;
  background: var(--seal);
  transform: rotate(-6deg);
}

.panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 18px;
}

.card {
  background: var(--paper);
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
}

.controls {
  padding: clamp(18px, 2.6vw, 26px);
}

.ctl-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
}

.ctl-title::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--line);
}

.field {
  margin-top: 18px;
}

.fieldset-reset {
  min-width: 0;
  border: 0;
}

.field-label {
  display: block;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.field-label small {
  margin-left: 6px;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.flour-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.flour-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  color: var(--pine-7);
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: #fffdf6;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-soft);
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.flour-input:focus {
  border-color: var(--pine-6);
  box-shadow: 0 0 0 4px rgb(37 88 74 / 14%);
}

.flour-input.err {
  border-color: var(--seal);
  box-shadow: 0 0 0 4px rgb(194 69 45 / 14%);
}

.unit {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
}

.range-hint {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 11.5px;
}

.range-hint.warn {
  color: var(--seal-deep);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pill {
  min-height: 48px;
  padding: 8px 14px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  background: #fffdf6;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.pill small {
  display: block;
  margin-top: 1px;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 500;
}

.pill:hover {
  border-color: var(--pine-6);
  transform: translateY(-1px);
}

.pill.on {
  color: #fff;
  background: var(--pine-7);
  border-color: var(--pine-7);
}

.pill.on small {
  color: rgb(255 255 255 / 75%);
}

.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-top: 8px;
  overflow: hidden;
  background: #fffdf6;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-soft);
}

.seg button {
  min-height: 44px;
  padding: 10px 6px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  border: 0;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.seg button + button {
  border-left: 1.5px solid var(--line);
}

.seg button.on {
  color: #fdf3e8;
  background: var(--seal);
}

.seg button:not(.on):hover {
  background: var(--paper-2);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  margin-top: 14px;
  padding: 11px 14px;
  background: #fffdf6;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-soft);
  cursor: pointer;
}

.sw-name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}

.sw-desc {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 11px;
}

.switch {
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
}

.switch input {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.track {
  position: absolute;
  inset: 0;
  background: #cfc9b4;
  border-radius: 999px;
  transition: background-color 200ms ease;
}

.knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgb(0 0 0 / 25%);
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.switch input:checked ~ .track {
  background: var(--pine-6);
}

.switch input:checked ~ .knob {
  transform: translateX(20px);
}

.switch input:focus-visible ~ .track {
  outline: 3px solid rgb(37 88 74 / 30%);
  outline-offset: 2px;
}

.results {
  position: relative;
  padding: clamp(18px, 2.6vw, 26px);
  overflow: hidden;
}

.results::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background:
    repeating-linear-gradient(
      90deg,
      var(--seal) 0 26px,
      var(--pine-7) 26px 52px
    );
}

.res-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.res-head h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
}

.basis {
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.5;
  text-align: right;
  letter-spacing: 0.03em;
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.res-item {
  min-width: 0;
  padding: 13px 14px;
  background: var(--paper-2);
  border: 1px solid rgb(32 38 31 / 8%);
  border-radius: 10px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.res-item:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.res-item.hero {
  background: var(--pine-7);
  border-color: var(--pine-7);
}

.res-label {
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.07em;
}

.res-val {
  display: inline-block;
  margin-top: 7px;
  color: var(--pine-7);
  font-size: clamp(24px, 3.4vw, 31px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.res-val .u {
  margin-left: 3px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.res-meta {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.5;
}

.res-item.hero .res-label,
.res-item.hero .res-meta {
  color: rgb(255 255 255 / 72%);
}

.res-item.hero .res-val {
  color: #fff;
}

.res-item.hero .res-val .u {
  color: rgb(255 255 255 / 75%);
}

.res-val.tick {
  animation: pop 350ms ease;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

.notes {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.note {
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.75;
  border: 1px solid transparent;
  border-radius: 10px;
}

.note b {
  font-weight: 800;
}

.note.info {
  color: #33463c;
  background: #e9efe6;
  border-color: rgb(37 88 74 / 20%);
}

.note.gold {
  color: #6d5730;
  background: #f4ead2;
  border-color: rgb(138 111 61 / 30%);
}

.method {
  margin-top: 30px;
}

.method-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.method-head h2 {
  color: var(--steam);
  font-family: var(--font-display);
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.src {
  color: rgb(238 244 238 / 65%);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.steps {
  display: grid;
  gap: 12px;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  opacity: 0;
  background: var(--paper);
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-2);
  transform: translateY(16px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.step.in {
  opacity: 1;
  transform: none;
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  background: var(--pine-7);
  border-radius: 9px;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 35%);
}

.step:nth-child(even) .step-num {
  background: var(--seal);
}

.step h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 800;
}

.step .tag {
  padding: 3px 8px;
  color: var(--bamboo-deep);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--paper-3);
  border-radius: 999px;
}

.step p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.85;
}

.step p b {
  color: var(--pine-7);
  font-weight: 800;
}

.tips-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 12px;
  color: var(--steam);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.tips-title::after {
  flex: 1;
  height: 1px;
  content: "";
  background: rgb(238 244 238 / 20%);
}

.tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tip {
  padding: 14px 16px;
  background: rgb(246 241 226 / 8%);
  border: 1px solid rgb(246 241 226 / 16%);
  border-radius: 12px;
  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.tip:hover {
  background: rgb(246 241 226 / 14%);
  transform: translateY(-2px);
}

.tip h4 {
  color: var(--bamboo);
  font-size: 13.5px;
  font-weight: 800;
}

.tip p {
  margin-top: 5px;
  color: rgb(238 244 238 / 82%);
  font-size: 12px;
  line-height: 1.75;
}

.reference-section {
  margin-top: 34px;
  padding: clamp(20px, 4vw, 34px);
}

.section-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.section-kicker {
  color: var(--seal-deep);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 900;
}

.section-intro {
  max-width: 850px;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.9;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.fact {
  padding: 15px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.fact h3 {
  color: var(--pine-7);
  font-size: 14px;
}

.fact p {
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.75;
}

.baseline-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.baseline-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  background: #fffdf6;
}

.baseline-table caption {
  padding: 14px;
  color: var(--pine-7);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  background: var(--paper-2);
}

.baseline-table th,
.baseline-table td {
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
  border-top: 1px solid var(--line);
}

.baseline-table thead th {
  color: var(--ink-2);
  background: var(--paper);
}

.baseline-table tbody th {
  color: var(--pine-7);
  font-weight: 800;
}

.sources {
  margin-top: 24px;
}

.sources h3 {
  font-family: var(--font-display);
  font-size: 17px;
}

.sources ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 24px;
  margin: 12px 0 0 20px;
}

.sources li {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.65;
}

.verification-date {
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 11.5px;
}

.faq-section {
  margin-top: 34px;
}

.light-heading h2 {
  color: var(--steam);
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.faq-list details {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 12px;
  box-shadow: var(--shadow-2);
}

.faq-list summary {
  position: relative;
  padding: 15px 46px 15px 17px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 17px;
  color: var(--seal);
  font-size: 22px;
  line-height: 1;
  content: "+";
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  padding: 0 17px 16px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.85;
}

.noscript-note {
  margin-top: 28px;
  padding: 18px;
  color: #6d5730;
  background: #f4ead2;
  border: 1px solid rgb(138 111 61 / 30%);
  border-radius: 12px;
}

.noscript-note h2 {
  font-size: 16px;
}

.noscript-note p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.75;
}

.site-footer {
  margin-top: 34px;
  padding-top: 18px;
  color: rgb(238 244 238 / 66%);
  font-size: 11px;
  line-height: 1.9;
  border-top: 1px solid rgb(238 244 238 / 18%);
}

.site-footer strong {
  color: var(--bamboo);
}

.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
}

.error-card {
  width: min(560px, 100%);
  padding: clamp(24px, 5vw, 42px);
  text-align: center;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: var(--shadow-1);
}

.error-seal {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-inline: auto;
  color: #fff;
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 900;
  background: var(--seal);
  border-radius: 12px;
  transform: rotate(-4deg);
}

.error-card h1 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 42px);
}

.error-card p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.8;
}

.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 20px;
  padding: 10px 18px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  background: var(--pine-7);
  border-radius: 999px;
}

.home-link:hover {
  color: #fff;
  background: var(--seal);
}

@media (max-width: 920px) {
  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .panel {
    grid-template-columns: 1fr;
  }

  .tips {
    grid-template-columns: 1fr;
  }

  .steam-box {
    display: none;
  }

  .sources ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .masthead {
    align-items: flex-start;
  }

  .brand {
    align-items: flex-start;
    gap: 13px;
  }

  .seal-mark {
    width: 60px;
    height: 60px;
    font-size: 35px;
  }

  .brand-name {
    font-size: 11px;
  }

  .brand-description b {
    display: block;
    margin: 3px 0 0;
  }

  .res-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .basis {
    text-align: left;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .res-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .res-item {
    padding: 12px 11px;
  }

  .res-label {
    letter-spacing: 0.03em;
  }

  .step {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 14px;
  }

  .step-num {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .step {
    opacity: 1;
    transform: none;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
  }

  body::before,
  .steam-box,
  .cats,
  .skip-link,
  .faq-section,
  .site-footer {
    display: none;
  }

  .wrap {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .brand h1,
  .method-head h2,
  .tips-title,
  .light-heading h2 {
    color: #000;
  }

  .brand-name,
  .brand-description,
  .src {
    color: #444;
  }

  .card,
  .step,
  .tip {
    box-shadow: none;
  }

  .panel {
    grid-template-columns: 1fr 1fr;
  }

  .step,
  .tip,
  .fact,
  .baseline-table {
    break-inside: avoid;
  }

  .step {
    opacity: 1;
    transform: none;
  }

  .tip {
    color: #000;
    background: #fff;
    border-color: #ccc;
  }

  .tip h4,
  .tip p {
    color: #000;
  }
}