/* 1. Design tokens and document defaults */
:root {
  color-scheme: light;
  --ink: #1c2940;
  --muted: #6b778b;
  --line: #e2e7ef;
  --paper: #f7f8fb;
  --white: #ffffff;
  --blue: #365bcb;
  --blue-soft: #edf2ff;
  --green: #337b67;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "PingFang SC",
    -apple-system,
    BlinkMacSystemFont,
    "Microsoft YaHei",
    sans-serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
strong {
  font-weight: 650;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: white;
}
.skip-link:focus {
  top: 12px;
}
#reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 0;
  z-index: 50;
  background: var(--blue);
}

/* 2. Shared header and audience switch */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-height);
  padding: 14px max(32px, calc((100vw - 1344px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: #f9fafcef;
  backdrop-filter: blur(20px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.6px;
}
.brand small {
  display: block;
  margin-top: 3px;
  color: #8994a5;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #23314b;
  color: white;
  font-size: 27px;
}
.audience-switch {
  display: flex;
  padding: 4px;
  border: 1px solid #e1e6ef;
  border-radius: 12px;
  background: #edf0f6;
}
.audience-switch a {
  padding: 7px 24px;
  border-radius: 8px;
  color: #7a8598;
  font-size: 13px;
}
.audience-switch a[aria-current="page"] {
  background: white;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 6px #1d315012;
}
.header-prototype {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.header-prototype span {
  margin-left: 8px;
}

/* 3. Responsive document shell and reading navigation */
.document-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 44px 48px 0;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.reading-sidebar {
  position: sticky;
  top: 120px;
  min-width: 0;
}
.sidebar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #929bad;
  font-size: 11px;
  padding: 0 12px 16px;
}
.sidebar-label span {
  font:
    10px ui-monospace,
    monospace;
}
.section-nav {
  display: grid;
  gap: 6px;
}
.section-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: #7a869b;
  font-size: 13px;
  border-radius: 8px;
}
.section-nav a span {
  color: #9ba7bd;
  font:
    10px ui-monospace,
    monospace;
}
.section-nav a.active {
  color: var(--blue);
  background: #eaf0fd;
  font-weight: 600;
}
.section-nav a.active span {
  color: var(--blue);
}
.section-nav a:hover {
  background: #eef2f8;
}
.sidebar-bottom {
  margin: 30px 12px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #9aa3b3;
}
.sidebar-bottom > span {
  display: block;
}
.sidebar-bottom strong {
  font-size: 14px;
  color: #63718a;
}
.sidebar-bottom p {
  margin: 8px 0 18px;
}
.print-button {
  background: none;
  border: 0;
  padding: 0;
  color: #78869e;
  font-size: 11px;
}
.main-content {
  min-width: 0;
}
.section {
  margin-bottom: 64px;
  scroll-margin-top: 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.eyebrow {
  display: block;
  margin-bottom: 15px;
  color: #8a97ad;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 1.5px;
}
.section h2 {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 0;
}
.section-hint {
  color: #98a2b2;
  font-size: 11px;
  flex-shrink: 0;
}
.section-intro {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
  max-width: 760px;
}
.text-link {
  color: var(--blue);
  font-size: 12px;
  white-space: nowrap;
}
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #dce2ee;
  border-radius: 12px;
  color: #667a9d;
  background: #fffffff0;
  box-shadow: 0 4px 15px #162a4910;
}

/* 4. Product overview */
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  align-items: center;
  gap: 46px;
  margin: 0 0 28px;
  padding: 12px 0 24px;
}
.hero-copy {
  min-width: 0;
}
h1 {
  margin: 0 0 22px;
  font-size: clamp(36px, 3.7vw, 52px);
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -1.7px;
}
.hero-lead {
  color: #6e7c91;
  font-size: 16px;
  line-height: 1.95;
  max-width: 640px;
  margin: 0 0 22px;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 28px;
}
.pills span {
  color: #6f809c;
  background: #edf1f8;
  border: 1px solid #e1e7f2;
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 10px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 46px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 550;
  border-radius: 10px;
  border: 1px solid transparent;
}
.button-primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 6px 14px #365bcb14;
}
.button-primary:hover {
  background: #284dbd;
}
.button-quiet {
  background: white;
  color: #70809c;
  border-color: var(--line);
}
.hero-facts {
  border-top: 1px solid var(--line);
  margin: 28px 0 0;
  padding-top: 18px;
  display: grid;
  gap: 12px;
}
.hero-facts div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
}
.hero-facts dt {
  color: #8d99ac;
  font-size: 11px;
}
.hero-facts dd {
  margin: 0;
  color: #53637d;
  font-size: 12px;
}
.hero-preview {
  margin: 0;
}
.preview-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #93a0b3;
  margin-bottom: 12px;
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #91a8d6;
}
.hero-preview img {
  width: 100%;
  height: auto;
  border: 5px solid #20232c;
  border-radius: 25px;
  box-shadow: 0 20px 40px #19284716;
}
.hero-preview figcaption {
  color: #939fb1;
  font-size: 9px;
  text-align: center;
  margin-top: 12px;
}
.quick-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 23px 0;
  margin-bottom: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quick-summary article {
  display: flex;
  gap: 12px;
  padding: 0 20px;
  border-left: 1px solid var(--line);
}
.quick-summary article:first-child {
  padding-left: 0;
  border: 0;
}
.quick-summary article:last-child {
  padding-right: 0;
}
.summary-number {
  color: #a8b5cc;
  font:
    12px ui-monospace,
    monospace;
  padding-top: 4px;
}
.quick-summary h2 {
  font-size: 14px;
  margin: 0 0 6px;
  font-weight: 650;
}
.quick-summary p {
  color: #8793a6;
  font-size: 11px;
  line-height: 1.8;
  margin: 0;
}

/* 5. Page modules and action descriptions */
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.module-card {
  display: flex;
  gap: 15px;
  padding: 24px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 13px;
  align-items: start;
}
.module-index {
  font:
    12px ui-monospace,
    monospace;
  color: #97a7c2;
  line-height: 26px;
  flex: 0 0 20px;
}
.module-body {
  min-width: 0;
  flex: 1;
}
.module-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.6;
}
.module-card p {
  color: #7a8699;
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 16px;
}
.module-action {
  padding-top: 13px;
  border-top: 1px solid #edf0f5;
  color: #63738c;
  font-size: 12px;
  line-height: 1.85;
}
.module-action > span {
  display: block;
  color: #9ca6b5;
  font-size: 10px;
  margin-bottom: 4px;
}
details {
  border-top: 1px solid #edf0f5;
  margin-top: 14px;
  padding-top: 10px;
}
summary {
  color: #7d8fab;
  font-size: 11px;
  cursor: pointer;
}
details ul {
  padding-left: 18px;
  color: #7a8699;
  font-size: 12px;
}
details p {
  font-size: 12px !important;
  margin: 12px 0 0;
}
.mini-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin: 8px 0 16px;
}
.mini-flow span {
  padding: 4px 7px;
  background: #f3f5fa;
  color: #6b7e9f;
  border-radius: 4px;
  font-size: 10px;
}
.mini-flow i {
  font-style: normal;
  color: #b3bdcc;
  font-size: 12px;
}
.info-note {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  color: #8b97a9;
  font-size: 11px;
  align-items: start;
}
.info-note > span {
  border: 1px solid #aab6c9;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font:
    10px Georgia,
    serif;
  margin-top: 3px;
}
.info-note p {
  margin: 0;
}
.action-table {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: white;
}
.action-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 104px;
  align-items: start;
  gap: 22px;
  padding: 19px 24px;
  border-bottom: 1px solid #edf0f5;
}
.action-row:last-child {
  border: 0;
}
.action-row strong {
  font-size: 13px;
}
.action-row p {
  color: #75829a;
  font-size: 12px;
  line-height: 1.85;
  margin: 0;
}
.table-heading {
  background: #f0f3f9;
  font-size: 11px;
  color: #8290a6;
  padding-top: 12px;
  padding-bottom: 12px;
}
.state-tag {
  display: inline-block;
  width: fit-content;
  border: 1px solid #dcece5;
  border-radius: 5px;
  padding: 2px 7px;
  color: #6a9586;
  background: #f0f8f4;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 500;
}
.state-tag.warm {
  color: #a08b60;
  background: #faf6ed;
  border-color: #eee5d2;
}
.subheading {
  font-size: 17px;
  font-weight: 650;
  margin: 30px 0 16px;
}
.nav-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 22px 14px;
  border: 1px solid #dce3f0;
  border-radius: 13px;
  background: #eef2f9;
  gap: 10px;
}
.nav-overview article {
  text-align: center;
}
.nav-overview img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin: 0 auto 10px;
  filter: brightness(0.42) sepia(0.2);
}
.nav-overview h4 {
  font-size: 13px;
  margin: 0 0 5px;
}
.nav-overview p {
  color: #8491a6;
  font-size: 10px;
  line-height: 1.8;
  margin: 0;
}
.plain-note {
  margin: 15px 0 0 !important;
  color: #949fb1 !important;
  font-size: 11px !important;
  line-height: 1.8;
}

/* 6. User journeys, account explanations and review checklist */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.journey-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.journey-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #edf2fd;
  color: #7f98ca;
  font:
    11px ui-monospace,
    monospace;
  margin-bottom: 15px;
}
.journey-card h3 {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.journey-steps li {
  position: relative;
  padding: 0 0 22px 18px;
  border-left: 1px solid #dfe6f1;
}
.journey-steps li:before {
  content: "";
  position: absolute;
  top: 6px;
  left: -4px;
  border: 2px solid white;
  background: #9badce;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.journey-steps li:last-child {
  border-color: transparent;
  padding-bottom: 0;
}
.journey-steps strong {
  font-size: 12px;
  line-height: 1.7;
  display: block;
  margin-bottom: 5px;
}
.journey-steps span {
  display: block;
  color: #8a96a8;
  font-size: 11px;
  line-height: 1.85;
}
.journey-result {
  display: block;
  font-size: 10px;
  color: #73918a;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #edf0f5;
}
.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.paper-card {
  padding: 26px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 13px;
}
.paper-card h3 {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 14px;
}
.paper-card p {
  color: #7a889d;
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 0;
}
.readable-list {
  color: #79879c;
  font-size: 13px;
  line-height: 1.9;
  padding-left: 18px;
  margin: 0;
}
.readable-list li {
  margin-bottom: 8px;
}
.readable-list li:last-child {
  margin-bottom: 0;
}
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
  padding-top: 10px;
}
.feedback-grid strong {
  font-size: 13px;
}
.feedback-grid p {
  margin-top: 4px;
  font-size: 12px;
}
.checklist {
  padding-top: 8px;
  padding-bottom: 12px;
}
.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #edf0f5;
  cursor: pointer;
}
.checklist input {
  accent-color: var(--blue);
  width: 17px;
  height: 17px;
  margin: 5px 0 0;
  flex: 0 0 17px;
}
.checklist strong {
  display: block;
  font-size: 14px;
}
.checklist small {
  display: block;
  font-size: 12px;
  color: #8c98aa;
  margin-top: 3px;
}
.checklist label.done strong {
  color: #8a9bb2;
  text-decoration: line-through;
}
.checklist-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.checklist-footer output {
  font-size: 11px;
  color: #8795ad;
}
.text-button {
  border: 0;
  background: none;
  padding: 5px;
  color: #8e9bb0;
  font-size: 11px;
}
.scope-card .state-tag {
  margin-bottom: 15px;
}
.decision-card {
  padding: 28px;
  border: 1px solid #e8e4db;
  background: #faf9f5;
  border-radius: 13px;
}
.decision-card h3 {
  font-size: 17px;
  margin-bottom: 16px;
}
.decision-card ol {
  padding-left: 18px;
  margin: 0;
  color: #7e8490;
}
.decision-card li {
  margin: 14px 0;
  padding-left: 3px;
}
.decision-card strong {
  display: block;
  font-size: 13px;
  color: #6e7788;
}
.decision-card li span {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  color: #989da7;
}
.decision-card > p {
  font-size: 11px;
  color: #a4a5aa;
  margin: 20px 0 0;
}
.developer-entry {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 23px 26px;
  border: 1px solid #dce4f4;
  border-radius: 12px;
  background: #ecf1fb;
}
.developer-symbol {
  font:
    17px ui-monospace,
    monospace;
  color: #8ba1c9;
  flex: 0 0 35px;
}
.developer-entry div {
  flex: 1;
  min-width: 0;
}
.developer-entry strong {
  color: #536e9f;
  font-size: 14px;
}
.developer-entry p {
  color: #899cba;
  font-size: 11px;
  margin: 4px 0 0;
}
.developer-entry > span:last-child {
  color: #8ba1c9;
}
.document-footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 34px;
  margin-top: 10px;
  font-size: 11px;
  color: #9ba6b8;
}
.document-footer a {
  color: #7c91b7;
}

/* 7. Tablet: navigation moves above the document. */
@media (max-width: 1199px) {
  .document-layout {
    padding: 32px 30px 0;
    grid-template-columns: 174px minmax(0, 1fr);
    gap: 30px;
  }
  .hero-section {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 24px;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .button {
    padding: 9px 14px;
    font-size: 12px;
  }
  h1 {
    font-size: 42px;
  }
  .module-card,
  .journey-card {
    padding: 20px;
  }
  .action-row {
    grid-template-columns: 125px minmax(0, 1fr) 100px;
    gap: 16px;
  }
}
@media (max-width: 1023px) {
  :root {
    --header-height: 72px;
  }
  html {
    scroll-padding-top: 144px;
  }
  .site-header {
    padding: 12px 24px;
  }
  .document-layout {
    display: block;
    padding: 0 28px;
  }
  .reading-sidebar {
    top: var(--header-height);
    z-index: 20;
    background: #f7f8fbf5;
    backdrop-filter: blur(15px);
    margin: 0 -28px 28px;
    padding: 10px 24px;
    border-bottom: 1px solid var(--line);
  }
  .sidebar-label,
  .sidebar-bottom {
    display: none;
  }
  .section-nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
  }
  .section-nav a {
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 11px;
  }
  .section-nav a span {
    display: none;
  }
  .section {
    scroll-margin-top: 0;
  }
  .hero-section {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 38px;
  }
  .hero-lead {
    font-size: 15px;
  }
  .module-card {
    padding: 22px;
  }
  .back-to-top {
    right: 12px;
    bottom: 12px;
  }
}

/* 8. Phone: single-column reading, stacked actions and readable tables. */
@media (max-width: 699px) {
  :root {
    --header-height: 68px;
  }
  .site-header {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 12px;
    gap: 12px;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 23px;
    border-radius: 9px;
  }
  .brand small {
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  .audience-switch {
    padding: 3px;
  }
  .audience-switch a {
    padding: 6px 11px;
    font-size: 11px;
  }
  .header-prototype {
    display: none;
  }
  .document-layout {
    padding: 0 20px;
  }
  .reading-sidebar {
    top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    margin-left: -20px;
    margin-right: -20px;
    padding: 9px 16px;
  }
  .hero-section {
    display: block;
    padding-top: 0;
  }
  h1 {
    font-size: 38px;
    line-height: 1.28;
    letter-spacing: -1px;
  }
  .hero-lead {
    font-size: 14px;
  }
  .hero-preview {
    width: 200px;
    margin: 28px auto 0;
  }
  .hero-preview img {
    border-width: 4px;
    border-radius: 22px;
  }
  .preview-caption {
    justify-content: center;
  }
  .hero-preview figcaption {
    font-size: 9px;
  }
  .hero-facts div {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
  }
  .hero-facts dt {
    font-size: 10px;
  }
  .hero-facts dd {
    font-size: 11px;
  }
  .pills {
    margin: 18px 0 22px;
  }
  .pills span {
    font-size: 9px;
    padding: 3px 7px;
  }
  .quick-summary {
    display: block;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 42px;
  }
  .quick-summary article {
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid #e9edf4;
  }
  .quick-summary article:last-child {
    border: 0;
  }
  .quick-summary h2 {
    font-size: 14px;
  }
  .quick-summary p {
    font-size: 12px;
  }
  .section {
    margin-bottom: 42px;
  }
  .section-heading {
    display: block;
    margin-bottom: 16px;
  }
  .section h2 {
    font-size: 24px;
    line-height: 1.5;
  }
  .section-hint {
    display: block;
    margin-top: 8px;
    font-size: 10px;
  }
  .section-heading .text-link {
    display: inline-block;
    margin-top: 12px;
  }
  .eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
  }
  .section-intro {
    font-size: 13px;
    line-height: 1.9;
  }
  .module-grid,
  .journey-grid,
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
  .module-card {
    padding: 20px;
    gap: 12px;
  }
  .module-card h3 {
    font-size: 16px;
  }
  .module-card p {
    font-size: 13px;
  }
  .module-index {
    flex-basis: 18px;
    font-size: 11px;
  }
  .action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 18px;
  }
  .action-row p {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 12px;
  }
  .action-row.table-heading {
    display: none;
  }
  .action-row .state-tag {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    font-size: 9px;
  }
  .nav-overview {
    padding: 20px 10px;
    gap: 6px;
  }
  .nav-overview img {
    width: 22px;
    height: 22px;
  }
  .nav-overview h4 {
    font-size: 11px;
  }
  .nav-overview p {
    font-size: 9px;
  }
  .journey-card {
    padding: 24px;
  }
  .journey-card h3 {
    font-size: 17px;
  }
  .journey-steps strong {
    font-size: 13px;
  }
  .journey-steps span {
    font-size: 12px;
  }
  .journey-result {
    font-size: 11px;
  }
  .paper-card {
    padding: 21px;
  }
  .two-column {
    gap: 0;
  }
  .feedback-grid {
    gap: 20px;
    grid-template-columns: minmax(0, 1fr);
  }
  .checklist {
    padding-top: 4px;
    padding-bottom: 12px;
  }
  .checklist strong {
    font-size: 13px;
  }
  .checklist small {
    font-size: 11px;
  }
  .checklist input {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
  .decision-card {
    padding: 22px;
  }
  .developer-entry {
    padding: 19px;
    gap: 12px;
  }
  .developer-symbol {
    flex-basis: 28px;
  }
  .document-footer {
    padding-right: 30px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    font-size: 10px;
  }
}
@media (max-width: 359px) {
  .site-header {
    padding-left: 14px;
    padding-right: 14px;
    gap: 8px;
  }
  .brand-icon {
    display: none;
  }
  .document-layout {
    padding: 0 16px;
  }
  .reading-sidebar {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 12px;
    padding-right: 12px;
  }
  h1 {
    font-size: 33px;
  }
  .hero-actions .button {
    font-size: 11px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .module-card {
    padding: 18px 16px;
  }
  .nav-overview {
    gap: 4px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .nav-overview p {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* 9. Print the selected reading version without navigation chrome. */
@media print {
  body {
    background: white;
    font-size: 11px;
  }
  .site-header,
  .reading-sidebar,
  .back-to-top,
  #reading-progress,
  .hero-actions,
  .skip-link,
  [data-reset-checks],
  .developer-search,
  #empty {
    display: none !important;
  }
  .document-layout {
    display: block;
    padding: 0;
    max-width: none;
  }
  .section {
    margin-bottom: 28px;
  }
  .section[hidden] {
    display: block !important;
  }
  .hero-section {
    display: block;
  }
  .hero-preview {
    display: none;
  }
  h1 {
    font-size: 30px;
  }
  .section h2 {
    font-size: 21px;
  }
  .module-card,
  .paper-card,
  .journey-card,
  .action-row {
    break-inside: avoid;
    box-shadow: none;
  }
  .journey-grid {
    grid-template-columns: 1fr;
  }
  .document-footer {
    margin-top: 20px;
  }
  .module-card p,
  .section-intro,
  .hero-lead {
    color: #384354;
  }
}
