:root {
  color-scheme: light;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --ink: #172321;
  --muted: #60716d;
  --line: #d8e2df;
  --brand: #1f5f5b;
  --brand-2: #2f7d72;
  --accent: #d99b2b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

.manual-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--brand);
  font-size: 18px;
  font-weight: 850;
}

.manual-header nav {
  display: flex;
  gap: 14px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.manual-header nav a:last-child {
  border-radius: 6px;
  background: var(--brand);
  color: #ffffff;
  padding: 8px 14px;
}

.manual-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 820px);
  gap: 44px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 28px 80px;
}

.manual-shell > * {
  min-width: 0;
}

.toc {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 5px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.toc strong {
  margin-bottom: 8px;
  color: var(--brand);
}

.toc a {
  border-radius: 6px;
  padding: 7px 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.toc a:hover {
  background: #eef5f3;
  color: var(--brand);
}

.manual-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.manual-content section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  scroll-margin-top: 90px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--surface);
  overflow-wrap: anywhere;
}

.manual-shot {
  margin: 24px 0 4px;
}

.manual-shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(26, 53, 49, 0.13);
}

.manual-shot figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.manual-shot-wide img {
  aspect-ratio: 2.16 / 1;
  object-fit: cover;
  object-position: center;
}

.manual-content .hero {
  border-color: rgba(31, 95, 91, 0.24);
  background: #edf4f2;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.22;
}

h1 {
  font-size: clamp(34px, 5vw, 52px);
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
}

h3 {
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

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

ul,
ol {
  margin: 18px 0 0;
  padding-left: 1.35em;
}

li {
  margin: 8px 0;
}

.guide-grid,
.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.guide-grid > div,
.example-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #f9fbfa;
}

.guide-grid h3,
.example-grid strong {
  margin-top: 0;
  color: var(--brand);
}

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

.example-grid > div {
  display: grid;
  gap: 7px;
}

.example-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.step-list {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f9fbfa;
}

.step-list strong {
  color: var(--brand);
}

.step-list span {
  color: var(--muted);
}

table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
}

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

th {
  background: #edf4f2;
  color: var(--brand);
}

tr:last-child td {
  border-bottom: 0;
}

.notice,
.hint {
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  padding: 14px 16px;
  background: #fff8df;
  color: #3b3320;
}

details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

details:first-of-type {
  border-top: 0;
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

@media (max-width: 900px) {
  .manual-header {
    padding: 0 16px;
  }

  .manual-header nav a:first-child {
    display: none;
  }

  .manual-shell {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 16px 54px;
  }

  .toc {
    position: static;
    display: flex;
    gap: 8px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    max-height: none;
    padding: 10px;
  }

  .toc strong {
    display: none;
  }

  .toc a {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: #ffffff;
    white-space: nowrap;
  }

  .manual-content section {
    padding: 22px 18px;
  }

  .manual-shot-wide img {
    aspect-ratio: 1.15 / 1;
    object-position: 62% center;
  }

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

  .step-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
