:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #52637a;
  --soft: #eef3f8;
  --line: #d8e2ec;
  --panel: #ffffff;
  --panel-alt: #f8fbfd;
  --brand: #0b66c3;
  --brand-dark: #0a3f7a;
  --green: #087f68;
  --orange: #e95b33;
  --shadow: 0 22px 60px rgba(30, 45, 70, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-dark);
}

a:focus-visible,
button:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid #f2b84b;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-200%);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  background: #111827;
  color: #fff;
  font-weight: 800;
}

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

.manual-shell {
  min-height: 100vh;
}

.manual-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.manual-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.manual-brand img {
  display: block;
  width: 128px;
  height: auto;
}

.manual-brand span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.manual-brand strong {
  display: block;
  font-size: 1rem;
}

.manual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  min-width: 0;
}

.manual-actions a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  background: #fff;
  color: #19324f;
  font-weight: 800;
  text-decoration: none;
}

.manual-actions a.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.manual-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem) 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.manual-kicker {
  margin: 0 0 0.5rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  max-width: 62rem;
  font-size: clamp(2.15rem, 5vw, 4.25rem);
  letter-spacing: 0;
}

.manual-hero-copy {
  max-width: 56rem;
  margin: 1rem 0 0;
  color: #34465f;
  font-size: clamp(1.03rem, 2vw, 1.22rem);
}

.manual-meta {
  display: grid;
  gap: 0.75rem;
  align-self: end;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-alt);
}

.manual-meta div {
  display: grid;
  gap: 0.15rem;
}

.manual-meta span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manual-meta strong {
  color: var(--ink);
}

.manual-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
}

.manual-sidebar {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(30, 45, 70, 0.06);
}

.manual-sidebar strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.manual-sidebar nav {
  display: grid;
  gap: 0.25rem;
}

.manual-sidebar a {
  border-radius: 6px;
  padding: 0.45rem 0.5rem;
  color: #243b55;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.manual-sidebar a:hover,
.manual-sidebar a:focus {
  background: var(--soft);
  color: var(--brand-dark);
  outline: none;
}

.manual-content {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.manual-section {
  scroll-margin-top: 6rem;
  min-width: 0;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(30, 45, 70, 0.05);
}

.manual-section > p {
  max-width: 75ch;
  color: #34465f;
}

.manual-section h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
}

.manual-section h3 {
  margin-top: 1.25rem;
  font-size: 1.15rem;
}

.manual-section h4 {
  margin-top: 1rem;
  font-size: 1rem;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.manual-card,
.manual-note,
.manual-warning {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--panel-alt);
}

.manual-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.manual-card p,
.manual-note p,
.manual-warning p {
  margin: 0;
  color: #3d4e64;
}

.manual-note {
  border-left: 4px solid var(--green);
}

.manual-warning {
  border-left: 4px solid var(--orange);
  background: #fff9f5;
}

.manual-steps {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.manual-steps li {
  position: relative;
  min-height: 3rem;
  padding: 0.8rem 0.9rem 0.8rem 3.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  counter-increment: step;
}

.manual-steps li::before {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  content: counter(step);
  font-size: 0.85rem;
  font-weight: 900;
}

.manual-steps strong {
  display: block;
  margin-bottom: 0.2rem;
}

.manual-steps span {
  color: #3d4e64;
}

.manual-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
  padding-left: 1.2rem;
  color: #34465f;
}

.manual-list strong {
  color: var(--ink);
}

.manual-table-wrap {
  min-width: 0;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  background: var(--soft);
  color: #43556f;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

figure {
  max-width: 100%;
  margin: 1.25rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

figure img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--panel-alt);
  color: #465872;
  font-size: 0.92rem;
}

.manual-callout-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.manual-footer {
  padding: 2rem clamp(1rem, 5vw, 4rem);
  color: var(--muted);
  text-align: center;
}

code,
kbd {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1rem 0.3rem;
  background: #f8fbfd;
  color: #18324f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: #fff;
}

details + details {
  margin-top: 0.65rem;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

@media (max-width: 980px) {
  .manual-hero,
  .manual-layout {
    grid-template-columns: 1fr;
  }

  .manual-sidebar {
    position: static;
  }

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

  .manual-grid,
  .manual-callout-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .manual-table-wrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  table {
    display: block;
    min-width: 0;
    background: transparent;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  thead tr,
  thead th {
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
    padding: 0;
    border: 0;
  }

  tbody {
    display: grid;
    gap: 0.75rem;
  }

  tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  td {
    display: block;
    padding: 0.75rem 0.85rem;
  }

  td:first-child {
    background: var(--soft);
    color: var(--ink);
    font-weight: 900;
  }

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

@media (max-width: 640px) {
  .manual-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .manual-actions {
    width: 100%;
    justify-content: stretch;
  }

  .manual-actions a {
    flex: 1 1 auto;
  }

  .manual-brand img {
    width: 112px;
  }

  .manual-sidebar nav {
    grid-template-columns: 1fr;
  }

  .manual-section {
    padding: 1rem;
  }
}

@media print {
  .manual-topbar,
  .manual-sidebar,
  .manual-actions {
    display: none;
  }

  body {
    background: #fff;
  }

  .manual-hero,
  .manual-layout,
  .manual-section {
    display: block;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .manual-section {
    page-break-inside: avoid;
    margin: 0 0 1.5rem;
  }
}
