/* Website chrome for the standalone manual; generated/offline files stay self-contained. */
@font-face {
  font-family: 'Manual Site Sans';
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url('/fonts/PretendardVariable.woff2') format('woff2');
}

:root {
  --site-hdr: 80px;
  --manual-top: calc(var(--site-hdr) + var(--hdr));
}
.manual-site-loading { scroll-behavior: auto; }

body { padding-top: var(--manual-top); }
#hdr { top: var(--site-hdr); transform: none; transition: none; }
#prog { top: var(--manual-top); opacity: 1; }
/* The website header provides the language picker. */
#btnLang, #langMenu { display: none; }
section, #top { scroll-margin-top: calc(var(--manual-top) + 14px); }
.ledlist .row, .acc details { scroll-margin-top: calc(var(--manual-top) + 70px); }
.welcome { min-height: calc(100svh - var(--manual-top)); }
.rail { top: calc(var(--manual-top) + 28px); max-height: calc(100vh - var(--manual-top) - 56px); }

.manual-site {
  position: fixed;
  inset: 0 0 auto;
  height: var(--site-hdr);
  z-index: 70;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.06);
  color: #4b5563;
  font: 400 16px/1.6 'Manual Site Sans', system-ui, sans-serif;
  letter-spacing: normal;
  color-scheme: light;
}

.manual-site__inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.manual-site__logo { display: flex; flex-shrink: 0; }
.manual-site__logo img { height: 48px; width: auto; object-fit: contain; }
.manual-site__right { display: flex; align-items: center; gap: 20px; }
.manual-site__nav { display: none; align-items: center; gap: clamp(16px, 2vw, 32px); }
.manual-site a { color: #4b5563; font-weight: 500; text-decoration: none; }
.manual-site a:hover { color: #2563eb; }
.manual-site details { position: relative; }
.manual-site summary {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  font-weight: 500;
}
.manual-site summary::-webkit-details-marker { display: none; }
.manual-site__services > summary { padding-left: 20px; border-left: 1px solid currentColor; gap: 8px; }
.manual-site__language > summary { padding: 6px 10px; border-radius: 8px; font-size: 14px; color: #111827; }
.manual-site__language > summary:hover { background: #f3f4f6; }
.manual-site summary svg { flex: none; }
.manual-site details[open] > summary > svg:last-child:not(:first-child) { transform: rotate(180deg); }
.manual-site__mobile > summary { padding: 8px; color: #1f2937; border-radius: 6px; }
.manual-site__mobile > summary:hover { background: #f3f4f6; }

.manual-site__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 272px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}
.manual-site__dropdown a { display: block; padding: 10px 12px; border-radius: 6px; }
.manual-site__dropdown a:hover { background: #f3f4f6; }
.manual-site__dropdown span { display: block; font-size: 15px; font-weight: 600; color: #111827; }
.manual-site__dropdown small { display: block; font-size: 13px; color: #4b5563; font-weight: 400; }
.manual-site__language .manual-site__dropdown { width: 140px; }
.manual-site__language a { font-size: 14px; color: #111827; }
.manual-site__language a[aria-current="true"] { background: #eff6ff; color: #2563eb; font-weight: 600; }
.manual-site__mobile > nav { max-height: calc(100dvh - var(--site-hdr) - 24px); overflow-y: auto; overscroll-behavior: contain; }
.manual-site__mobile > nav > b { display: block; padding: 10px 12px; color: #6b7280; font-size: 12px; }
.manual-site__mobile > nav > a { font-size: 18px; padding-block: 12px; }
.manual-site__mobile .manual-site__services { margin-top: 6px; border-top: 1px solid #e5e7eb; }
.manual-site__mobile .manual-site__services > summary { border: 0; padding: 16px 12px 10px; justify-content: space-between; font-size: 18px; }
.manual-site__mobile .manual-site__services .manual-site__dropdown { position: static; width: auto; padding: 0; border: 0; box-shadow: none; }

@media (min-width: 640px) {
  .manual-site__inner { padding-inline: 24px; }
}
@media (min-width: 1024px) {
  .manual-site__inner { padding-inline: 32px; }
}
@media (min-width: 1280px) {
  .manual-site__nav { display: flex; }
  .manual-site__mobile { display: none; }
}
@media (max-width: 640px) {
  .manual-site__language > summary > span { display: none; }
}
@media (max-width: 480px) {
  .manual-site__logo img { height: 40px; max-width: 46vw; }
  .manual-site__right { gap: 4px; }
}
@media print {
  :root { --site-hdr: 0px; }
  .manual-site { display: none; }
}
