html.ln-open { scroll-behavior: auto !important; }

.ln-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  background: rgba(10, 22, 40, 0.72);
  font-family: inherit;
}

.ln-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #ffffff;
  color: #374151;
}

.ln-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  height: 64px;
  background: #ffffff;
  border-bottom: 2px solid #22b8cf;
}

.ln-header-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #0b2447;
}

.ln-close-icon {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #0b2447;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.ln-close-icon:hover { background: #eef2f7; }
.ln-close-icon:focus-visible,
.ln-close-button:focus-visible,
.ln-nav a:focus-visible,
.ln-nav-select:focus-visible { outline: 3px solid #22b8cf; outline-offset: 2px; }

.ln-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.ln-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 820px);
  justify-content: center;
  gap: 48px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 40px) 48px;
}

.ln-nav {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: calc(100vh - 64px - 76px - 40px);
  overflow-y: auto;
  font-size: 0.86rem;
}

.ln-nav-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #0b2447;
}

.ln-nav-select { display: none; }

.ln-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid #d6eef3;
}

.ln-nav-list a {
  display: block;
  padding: 5px 0 5px 14px;
  color: #475569;
  text-decoration: none;
  line-height: 1.35;
}

.ln-nav-list a span { display: inline-block; min-width: 1.7em; color: #0e9cb3; font-weight: 600; }
.ln-nav-list a:hover { color: #0b2447; background: #f3fafc; }

.ln-document {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #374151;
  overflow-wrap: anywhere;
}

.ln-intro { padding-bottom: 24px; margin-bottom: 8px; border-bottom: 1px solid #e2e8f0; }
.ln-intro h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.2rem); letter-spacing: 0.04em; color: #0b2447; }
.ln-subtitle { margin: 0 0 18px; color: #4b5563; }
.ln-meta { margin: 0; display: grid; gap: 4px; }
.ln-meta div { display: flex; flex-wrap: wrap; gap: 8px; }
.ln-meta dt { font-weight: 700; color: #0b2447; }
.ln-meta dd { margin: 0; }

.ln-section { padding-top: 28px; }
.ln-section h3 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  font-size: 1.1rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #0b2447;
  border-bottom: 2px solid #bfeaf2;
}
.ln-section h4 { margin: 20px 0 8px; font-size: 1rem; color: #0b2447; }
.ln-section p { margin: 0 0 12px; }
.ln-table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid #d9e2ef; border-radius: 8px; -webkit-overflow-scrolling: touch; }
.ln-section table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.92rem; }
.ln-section th, .ln-section td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e6edf6; }
.ln-section th { background: #f1f5fb; color: #0b2447; font-weight: 600; }
.ln-section tr:last-child td { border-bottom: 0; }
.ln-section ul,
.ln-section ol { margin: 0 0 14px; padding-left: 1.4em; }
.ln-section li { margin-bottom: 5px; }
.ln-section strong { color: #1f2937; }
.ln-section a,
.ln-meta a { color: #0b6e8a; text-decoration: underline; }

.ln-placeholder {
  background: #fff7d6;
  padding: 0 4px;
  border-radius: 3px;
}

.ln-end {
  margin: 40px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #0b2447;
}

.ln-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.ln-close-button {
  min-width: 160px;
  padding: 12px 32px;
  border: 0;
  border-radius: 6px;
  background: #0b2447;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.ln-close-button:hover { background: #12356b; }

@media (max-width: 960px) {
  .ln-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .ln-nav { position: static; max-height: none; overflow: visible; }
  .ln-nav-list { display: none; }
  .ln-nav-select {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #0b2447;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .ln-header { height: 56px; }
  .ln-document { font-size: 0.97rem; line-height: 1.7; }
  .ln-close-button { width: 100%; }
}
