:root {
  color-scheme: light;
  --ink: #1f241f;
  --ink-strong: #0e1512;
  --muted: #62695f;
  --quiet: #7d8479;
  --paper: #f7f3ea;
  --paper-strong: #efe7d8;
  --surface: #fffdf8;
  --surface-strong: #fff9ee;
  --line: #ded4c3;
  --line-strong: #c7baa6;
  --green: #0f5138;
  --green-deep: #083829;
  --green-soft: #e5f0e8;
  --blue: #285f7c;
  --blue-soft: #e6eef1;
  --amber: #c9852a;
  --amber-soft: #fff0d3;
  --red: #9c3a2d;
  --red-soft: #f8e3df;
  --shadow-sm: 0 10px 24px rgba(42, 36, 27, 0.08);
  --shadow: 0 24px 70px rgba(42, 36, 27, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92) 0, rgba(247, 243, 234, 0.72) 460px, var(--paper) 100%),
    var(--paper);
  color: var(--ink);
  font-family: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 81, 56, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 81, 56, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0.55) 420px, transparent 760px);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid rgba(201, 133, 42, 0.55);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid rgba(222, 212, 195, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(42, 36, 27, 0.05);
}

.nav {
  max-width: 1160px;
  min-height: 68px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-strong);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: url("/assets/brand-mark.svg") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  box-shadow: 0 10px 20px rgba(15, 81, 56, 0.18);
}

.brand span:last-child {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 680;
}

.nav-links a:hover {
  background: rgba(15, 81, 56, 0.07);
  color: var(--green);
  text-decoration: none;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  padding-top: 72px;
  padding-bottom: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 46px;
  align-items: center;
}

.hero > div:first-child {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--amber);
}

h1,
h2,
h3 {
  color: var(--ink-strong);
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-family: Cambria, Georgia, "Times New Roman", serif;
  font-size: 64px;
  font-weight: 750;
}

h2 {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 800;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #fffdf8;
  font-weight: 780;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fffdf8;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.button.secondary {
  background: var(--surface);
  color: var(--green);
  border-color: var(--line-strong);
}

.button.secondary:hover {
  background: #fff7e8;
  border-color: var(--amber);
  color: var(--green-deep);
}

.button.ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--line);
}

.hero-panel,
.tool-panel,
.card,
.article-card,
.notice {
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hero-panel {
  padding: 14px;
  overflow: hidden;
}

.brand-showcase {
  margin: 0 0 14px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.brand-showcase img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.72);
}

.signal {
  min-height: 92px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.signal:nth-child(2n) {
  border-right: 0;
}

.signal:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.signal strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}

.section {
  padding-top: 46px;
  padding-bottom: 46px;
}

.section-header {
  max-width: 780px;
  margin-bottom: 24px;
}

.muted {
  color: var(--muted);
}

.tool-status {
  display: inline-flex;
  margin-top: 18px;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(15, 81, 56, 0.18);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.scenario-section {
  padding-top: 22px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.scenario-card {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 248, 236, 0.72)),
    var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.scenario-card:hover {
  border-color: rgba(15, 81, 56, 0.38);
  transform: translateY(-1px);
}

.scenario-card.is-selected {
  border-color: var(--green);
  background:
    linear-gradient(180deg, rgba(229, 240, 232, 0.96), rgba(255, 253, 248, 0.88)),
    var(--surface);
  box-shadow: inset 0 0 0 1px rgba(15, 81, 56, 0.22), var(--shadow-sm);
}

.scenario-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
}

.scenario-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.scenario-note,
.scenario-summary {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(201, 133, 42, 0.34);
  border-radius: 8px;
  background: #fff8ea;
  color: #5f4b25;
  font-size: 14px;
}

.scenario-summary {
  margin: 0 0 16px;
}

.scenario-summary strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
}

.scenario-summary p {
  margin: 0 0 10px;
}

.scenario-summary ul {
  margin: 0;
  padding-left: 18px;
}

.scenario-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 30px 0;
  padding: 18px;
  border: 1px solid rgba(15, 81, 56, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(229, 240, 232, 0.86), rgba(255, 253, 248, 0.92)),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.scenario-cta strong {
  color: var(--green);
}

.scenario-cta p {
  margin: 6px 0 0;
}

.scenario-page-meta {
  margin: 18px 0 0;
  color: var(--quiet);
  font-size: 14px;
  font-weight: 680;
}

.scenario-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 8px;
}

.scenario-insight-card,
.scenario-question,
.scenario-cluster {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
}

.scenario-insight-card {
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.scenario-insight-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.scenario-insight-card strong {
  display: block;
  color: var(--ink-strong);
  line-height: 1.35;
}

.scenario-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

.scenario-workflow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: scenario-step;
}

.scenario-workflow li {
  position: relative;
  margin: 0;
  padding: 18px 18px 18px 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
}

.scenario-workflow li::before {
  counter-increment: scenario-step;
  content: counter(scenario-step);
  position: absolute;
  top: 18px;
  left: 18px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fffdf8;
  font-size: 13px;
  font-weight: 850;
}

.scenario-workflow strong,
.scenario-question strong,
.scenario-cluster strong {
  display: block;
  color: var(--ink-strong);
}

.scenario-workflow p,
.scenario-question p,
.scenario-cluster p {
  margin: 8px 0 0;
  color: var(--muted);
}

.scenario-tool-band {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8ea;
}

.scenario-question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.scenario-question {
  padding: 16px;
}

.scenario-index-helper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(15, 81, 56, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(229, 240, 232, 0.74), rgba(255, 253, 248, 0.92)),
    var(--surface);
}

.scenario-index-helper h2 {
  font-size: 30px;
}

.scenario-index-helper p {
  margin: 0;
  color: var(--muted);
}

.scenario-cluster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.scenario-cluster {
  padding: 16px;
}

.scenario-cluster-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
}

.scenario-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.scenario-page section {
  margin: 36px 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card,
.article-card {
  padding: 22px;
}

.card {
  position: relative;
}

.card::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--amber);
}

.article-card {
  box-shadow: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.article-card small {
  display: block;
  margin-top: 14px;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.35;
}

.article-card:hover {
  border-color: rgba(15, 81, 56, 0.35);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transform: translateY(-1px);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 14px;
  padding: 4px 9px;
  border: 1px solid rgba(40, 95, 124, 0.16);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.86fr);
  gap: 22px;
  align-items: start;
}

.tool-panel {
  min-width: 0;
  padding: 24px;
}

.tool-layout > aside.tool-panel {
  position: sticky;
  top: 92px;
}

.tool-panel h2 {
  font-size: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--ink-strong);
  font-weight: 780;
}

.text-input,
.select-input,
.textarea-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  color: var(--ink);
  font: inherit;
  font-weight: 520;
  letter-spacing: 0;
}

.text-input,
.select-input {
  min-height: 46px;
  padding: 10px 12px;
}

.textarea-input {
  padding: 12px;
  resize: vertical;
}

.text-input:focus,
.select-input:focus,
.textarea-input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(15, 81, 56, 0.14);
}

fieldset.question {
  margin: 0;
  min-width: 0;
  padding: 20px 0;
  border: 0;
}

.question {
  border-bottom: 1px solid var(--line);
}

.question:last-child {
  border-bottom: 0;
}

.compact-question {
  padding: 18px 0;
}

.compact-question > strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink-strong);
}

.question legend {
  display: block;
  float: left;
  width: 100%;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 0;
  color: var(--ink-strong);
  font-weight: 780;
  line-height: 1.42;
  white-space: normal;
  overflow-wrap: anywhere;
}

.question .options {
  clear: both;
}

.options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  color: var(--ink);
  cursor: pointer;
  font-weight: 680;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.option input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.option:hover {
  border-color: var(--line-strong);
  background: #fff8ec;
}

.option:has(input:checked) {
  border-color: rgba(15, 81, 56, 0.72);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px rgba(15, 81, 56, 0.14);
}

.result-box {
  min-width: 0;
  min-height: 340px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 249, 238, 0.78), rgba(255, 253, 248, 0.95)),
    #fffefa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.result-box h3 {
  margin-top: 22px;
  font-size: 17px;
}

.disclosure-result .scenario-insight-grid {
  margin-top: 16px;
}

.output-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin-top: 18px;
}

.output-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  overflow-wrap: break-word;
}

.output-card h3 {
  margin-top: 0;
}

.output-card li,
.result-box p {
  overflow-wrap: break-word;
}

.copy-snippet {
  max-width: 100%;
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-strong);
  font-size: 13px;
  white-space: pre-wrap;
}

.disclosure-summary {
  padding-bottom: 4px;
}

.disclosure-summary h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.disclosure-summary p {
  margin: 0;
  color: var(--muted);
}

.disclosure-trigger-grid {
  grid-template-columns: 1fr;
}

.result-level {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 850;
}

.result-level.minimal {
  background: var(--green-soft);
  color: var(--green);
}

.result-level.limited {
  background: var(--amber-soft);
  color: #8b550e;
}

.result-level.high {
  background: var(--red-soft);
  color: var(--red);
}

.result-level.prohibited {
  background: var(--ink-strong);
  color: #fffdf8;
}

.result-level.review {
  background: var(--blue-soft);
  color: var(--blue);
}

.checklist {
  padding-left: 20px;
}

.checklist li {
  margin: 8px 0;
}

.result-details {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
}

.result-details summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--green);
  font-weight: 780;
}

.answer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.answer-table th,
.answer-table td {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.answer-table th {
  width: 62%;
  color: var(--muted);
  font-weight: 680;
}

.table-scroll {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

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

.vendor-table th {
  width: auto;
  white-space: nowrap;
}

.vendor-table th:first-child,
.vendor-table td:first-child {
  width: 48px;
  color: var(--muted);
  font-weight: 760;
}

.inventory-table {
  min-width: 900px;
}

.inventory-table th {
  width: auto;
  white-space: nowrap;
}

.workflow-steps {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.workflow-step {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
}

.workflow-step span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.workflow-step h3 {
  margin: 0;
  font-size: 18px;
}

.workflow-step p,
.workflow-step small {
  margin: 0;
  color: var(--muted);
}

.workflow-step .button {
  width: fit-content;
  margin-top: 2px;
}

.source-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.article {
  max-width: 900px;
  margin: 0 auto;
  padding: 58px 20px;
}

.article h1 {
  font-size: 52px;
}

.article p,
.article li {
  color: #3d453e;
  font-size: 17px;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  overflow: hidden;
}

.article th,
.article td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article th {
  background: var(--green-soft);
  color: var(--green);
}

.notice {
  padding: 18px;
  background: #fff8ea;
  box-shadow: none;
}

.site-footer {
  margin-top: 50px;
  padding: 34px 0;
  border-top: 1px solid rgba(15, 81, 56, 0.18);
  background: #18221d;
  color: rgba(255, 253, 248, 0.76);
  font-size: 14px;
}

.site-footer a {
  color: #fff7e8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ad-reserve {
  margin: 24px 0;
  padding: 12px;
  border: 1px dashed rgba(40, 95, 124, 0.35);
  border-radius: 8px;
  color: var(--quiet);
  font-size: 13px;
  text-align: center;
  background: rgba(255, 253, 248, 0.62);
}

@media (max-width: 900px) {
  .hero,
  .tool-layout,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
    gap: 28px;
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 32px;
  }

  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
    white-space: nowrap;
  }

  .tool-layout > aside.tool-panel {
    position: static;
  }

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

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

  .checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenario-insight-grid,
  .scenario-question-grid,
  .scenario-cluster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenario-index-helper {
    grid-template-columns: 1fr;
  }

  .scenario-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 600px) {
  .container {
    width: 100%;
    padding: 0 16px;
  }

  .nav {
    min-height: 0;
    padding: 12px 16px;
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand span:last-child {
    font-size: 15px;
  }

  .nav-links {
    gap: 4px;
    flex-wrap: wrap;
    overflow-x: visible;
    white-space: normal;
  }

  .nav-links a {
    min-height: 34px;
    padding: 7px 9px;
  }

  .section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 34px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  h2,
  .tool-panel h2 {
    font-size: 27px;
  }

  h3 {
    font-size: 19px;
  }

  .lead {
    max-width: 100%;
    font-size: 17px;
  }

  .hero-panel {
    padding: 10px;
  }

  .brand-showcase {
    aspect-ratio: 4 / 3;
  }

  .signal {
    min-height: 82px;
    padding: 14px;
  }

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

  .scenario-card {
    min-height: 92px;
  }

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

  .scenario-cta {
    grid-template-columns: 1fr;
  }

  .scenario-insight-grid,
  .scenario-workflow,
  .scenario-question-grid,
  .scenario-cluster-grid {
    grid-template-columns: 1fr;
  }

  .scenario-index-helper {
    padding: 18px;
  }

  .scenario-directory {
    grid-template-columns: 1fr;
  }

  .tool-panel {
    max-width: 100%;
    width: 100%;
    padding: 16px;
    overflow: hidden;
  }

  .result-box {
    padding: 16px;
  }

  .answer-table {
    display: block;
    overflow-x: auto;
  }

  .button {
    width: 100%;
  }

  .article {
    padding: 42px 16px;
  }

  .article h1 {
    font-size: 36px;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .button-row,
  .ad-reserve,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
  }

  body::before {
    display: none;
  }

  .tool-layout {
    display: block;
  }

  .tool-panel,
  .result-box {
    box-shadow: none;
  }
}
