@page {
  size: A4;
  margin: 18mm 14mm 18mm 14mm;
}

@media print {
  .no-print {
    display: none !important;
  }

  a[href]::after {
    content: "";
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }

  section,
  figure,
  table,
  .card {
    page-break-inside: avoid;
  }

  .page-break {
    page-break-before: always;
  }
}

:root {
  --brand-blue: #0d47a1;
  --accent: #ffc200;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 40px;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 40px;
  background: #fff;
  border-bottom: 1px solid #dadada;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.app-header-inner {
  height: 40px;
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1.5rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 0.25rem;
}

.header-nav a {
  color: #475569;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.25rem 0.1rem;
  line-height: 1.2;
  border-bottom: 2px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}

.header-nav a:hover {
  color: #0f172a;
}

.header-nav a.active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

.brand-tag {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: Varela, sans-serif;
}

.brand-tag--primary {
  color: #f8fafc;
  background: var(--brand-blue);
  border: 1px solid var(--brand-blue);
  padding: 0 0.6rem;
  border-radius: 0.25rem;
  line-height: 1.5rem;
}

.manual-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
  color: #64748b;
  font-size: 0.9rem;
}

.manual-nav a {
  color: #475569;
  text-decoration: none;
}

.manual-nav a:hover {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.manual-nav .active {
  color: #0f172a;
  font-weight: 700;
}

.manual-nav .sep {
  color: #94a3b8;
}

.toc-link.active {
  color: #1d4ed8;
  border-left-color: #1d4ed8;
  background: #eef6ff;
}

.toc-link {
  display: block;
}

.manual-tips {
  margin-top: 1.5rem;
  border-left: 4px solid var(--accent);
  padding: 0.25rem 0 0.25rem 0.9rem;
}

.manual-tips__title {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.manual-tips__title::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  background-color: #c89600;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20,11H23V13H20V11M1,11H4V13H1V11M13,1V4H11V1H13M4.92,3.5L7.05,5.64L5.63,7.05L3.5,4.93L4.92,3.5M16.95,5.63L19.07,3.5L20.5,4.93L18.37,7.05L16.95,5.63M12,6A6,6 0 0,1 18,12C18,14.22 16.79,16.16 15,17.2V19A1,1 0 0,1 14,20H10A1,1 0 0,1 9,19V17.2C7.21,16.16 6,14.22 6,12A6,6 0 0,1 12,6M14,21V22A1,1 0 0,1 13,23H11A1,1 0 0,1 10,22V21H14M11,18H13V15.87C14.73,15.43 16,13.86 16,12A4,4 0 0,0 12,8A4,4 0 0,0 8,12C8,13.86 9.27,15.43 11,15.87V18Z'/></svg>") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20,11H23V13H20V11M1,11H4V13H1V11M13,1V4H11V1H13M4.92,3.5L7.05,5.64L5.63,7.05L3.5,4.93L4.92,3.5M16.95,5.63L19.07,3.5L20.5,4.93L18.37,7.05L16.95,5.63M12,6A6,6 0 0,1 18,12C18,14.22 16.79,16.16 15,17.2V19A1,1 0 0,1 14,20H10A1,1 0 0,1 9,19V17.2C7.21,16.16 6,14.22 6,12A6,6 0 0,1 12,6M14,21V22A1,1 0 0,1 13,23H11A1,1 0 0,1 10,22V21H14M11,18H13V15.87C14.73,15.43 16,13.86 16,12A4,4 0 0,0 12,8A4,4 0 0,0 8,12C8,13.86 9.27,15.43 11,15.87V18Z'/></svg>") no-repeat center / contain;
}

.manual-tips ul {
  margin-top: 0.5rem;
  padding-left: 1rem;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.5;
}

.manual-table {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.manual-table table {
  width: 100%;
  font-size: 0.875rem;
}

.manual-table th {
  background: #f1f5f9;
  color: #334155;
  text-align: left;
  padding: 8px 10px;
}

.manual-table td {
  border-top: 1px solid #eef2f7;
  padding: 8px 10px;
  vertical-align: top;
}

.manual-table td:first-child {
  color: #475569;
  font-weight: 500;
  width: 32%;
  min-width: 190px;
  letter-spacing: 0.01em;
}

.term {
  color: inherit;
  border-bottom: 1px dotted #64748b;
  cursor: help;
  text-decoration: none;
}

.term:hover {
  color: #1d4ed8;
  text-decoration: none;
}

.fakelink {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta {
  display: inline-block;
  color: var(--brand-blue);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  padding: 0.25rem 0;
  border-bottom: 2px solid var(--brand-blue);
  transition: color 120ms ease, border-color 120ms ease;
}

.cta:hover {
  color: #0e3a85;
  border-bottom-color: #0e3a85;
}

.sub-heading {
  font-weight: 600;
  margin: 1.25rem 0 0.25rem;
}

.section-text {
  color: #334155;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.usage-list {
  color: #334155;
  font-size: 0.875rem;
  line-height: 1.5;
  list-style-type: decimal !important;
  padding-left: 1.25rem !important;
  margin: 0.75rem 0 0;
}

.usage-list > * + * {
  margin-top: 0.25rem;
}

.toc-heading {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.toc-list {
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-left: 1px solid #e2e8f0;
}

.toc-list > * + * {
  margin-top: 0.25rem;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

code {
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

section[id] {
  scroll-margin-top: 72px;
}

figure {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px;
}

.shot-shell {
  overflow: hidden;
  border-radius: 6px;
}

.shot-shell--scroll {
  max-height: 520px;
  overflow: auto;
  border-radius: 6px;
}

.shot-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #fff;
}

figcaption {
  font-size: 0.8rem;
  color: #475569;
  text-align: center;
  margin-top: 0.5rem;
}

.hero {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.hero__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
}

.hero__title {
  font-size: 1.75rem;
  line-height: 2rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.hero__desc {
  margin-top: 0.5rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 56rem;
}

.hero__desc b {
  color: #0f172a;
}

.section-title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.title-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.title-row .section-index {
  margin-bottom: 0;
}

.section-index {
  display: block;
  margin-bottom: 0.2rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-desc {
  margin-top: 0.5rem;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.5;
}
