:root {
  --green: #347433;
  --green-dark: #265c25;
  --green-light: #4a8f49;
  --red: #e31b23;
  --ink: #1a2e1a;
  --ink-soft: #4b5d4b;
  --paper: #f7faf7;
  --paper-2: #eef4ee;
  --line: rgba(52, 116, 51, 0.14);
  --shadow: 0 18px 48px rgba(38, 92, 37, 0.12);
  --radius: 16px;
  --sidebar: 280px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  line-height: 1.65;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.manual-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--red);
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-wrap {
  position: relative;
}

.search-wrap input {
  width: min(280px, 42vw);
  padding: 0.55rem 0.85rem 0.55rem 2.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  background: #fff;
}

.search-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--line);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 64px);
}

.sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 1.25rem 0 2rem;
  border-right: 1px solid var(--line);
  background: rgba(247, 250, 247, 0.6);
}

.sidebar h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 1.25rem 1rem 0.5rem;
}

.sidebar h2:first-child {
  margin-top: 0;
}

.sidebar nav a {
  display: block;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-left: 3px solid transparent;
  text-decoration: none;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  color: var(--green-dark);
  background: rgba(52, 116, 51, 0.08);
  border-left-color: var(--green);
  text-decoration: none;
}

.content {
  padding: 2rem 2.5rem 4rem;
  max-width: 900px;
}

.hero-manual {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}

.hero-manual h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.hero-manual p {
  margin: 0;
  opacity: 0.92;
  max-width: 60ch;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.chip {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
}

section {
  margin-bottom: 3rem;
  scroll-margin-top: 80px;
}

section.hidden-by-search {
  display: none;
}

section h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--green-dark);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--line);
}

section h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink);
}

section h4 {
  font-size: 0.98rem;
  margin: 1rem 0 0.35rem;
  color: var(--ink-soft);
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.35rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.card-grid .card {
  margin: 0;
}

.card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--green-dark);
}

.tip,
.warn,
.note {
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.tip {
  background: #edf7ed;
  border-left: 4px solid var(--green);
}

.warn {
  background: #fff8e8;
  border-left: 4px solid #e89620;
}

.note {
  background: #f0f4ff;
  border-left: 4px solid #4a6fa5;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--paper-2);
  color: var(--green-dark);
  font-weight: 600;
}

code,
kbd {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88em;
  background: var(--paper-2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.85rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.manual-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.no-results {
  display: none;
  padding: 2rem;
  text-align: center;
  color: var(--ink-soft);
}

.no-results.show {
  display: block;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 64px;
    width: min(300px, 88vw);
    z-index: 25;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
  }

  .content {
    padding: 1.25rem 1rem 3rem;
  }

  .search-wrap input {
    width: 160px;
  }
}

@media print {
  .sidebar,
  .manual-header,
  .menu-toggle,
  .search-wrap {
    display: none !important;
  }

  .layout {
    display: block;
  }

  .content {
    max-width: none;
    padding: 0;
  }

  section {
    break-inside: avoid;
  }
}
