/* =========================================================
   VARIATION COLORS & TYPOGRAPHY
   content: #FFFFFF
   sidebar: #E8EEF8
   ink:     #111827
   link:    #1D4ED8
   font UI: Inter
   font field labels: IBM Plex Mono
========================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #FFFFFF;
  color: #111827;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Top Navigation Chrome */
.docs-header {
  height: 52px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #D1D9E6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-indicator {
  width: 9px;
  height: 9px;
  background-color: #1D4ED8;
  border-radius: 50%;
  display: inline-block;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111827;
}

.brand-name-link {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111827;
  text-decoration: none;
}

.brand-name-link:hover {
  color: #1D4ED8;
}

.docs-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  background-color: #E8EEF8;
  color: #1D4ED8;
  padding: 2px 6px;
  border: 1px solid #C7D7F0;
  border-radius: 2px;
}

.header-meta {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #4B5563;
}

.meta-value {
  font-weight: 600;
}

.meta-separator {
  color: #9CA3AF;
}

.phone-link {
  color: #1D4ED8;
  text-decoration: none;
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
}

.phone-link:hover {
  text-decoration: underline;
}

/* 2-Column Shell */
.shell-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 52px);
}

/* Left Sticky Sidebar / TOC */
.shell-sidebar {
  background-color: #E8EEF8;
  border-right: 1px solid #D1D9E6;
  padding: 2rem 1.25rem;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #4B5563;
  text-transform: uppercase;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-item {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  border-radius: 3px;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}

.nav-item:hover {
  background-color: #FFFFFF;
  color: #1D4ED8;
}

.nav-item.active {
  background-color: #FFFFFF;
  color: #1D4ED8;
  border-left-color: #1D4ED8;
  font-weight: 600;
}

.sidebar-card {
  margin-top: auto;
  background-color: #FFFFFF;
  border: 1px solid #C7D7F0;
  padding: 0.85rem;
  border-radius: 3px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #374151;
}

.sidebar-card p + p {
  margin-top: 0.4rem;
}

.code-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: #1D4ED8;
  margin-bottom: 0.4rem;
}

/* Right Content Area */
.shell-content {
  background-color: #FFFFFF;
  padding: 2.5rem 3.5rem;
  max-width: 900px;
}

.doc-path {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #6B7280;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.doc-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.section-desc {
  font-size: 0.95rem;
  color: #4B5563;
  margin-bottom: 1.5rem;
}

.notice-box {
  background-color: #FFFFFF;
  border-left: 3px solid #1D4ED8;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  border-top: 1px solid #E5E7EB;
  border-right: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}

.lead-text {
  font-size: 0.95rem;
  color: #1F2937;
  margin-bottom: 0.35rem;
}

.lead-text:last-child {
  margin-bottom: 0;
}

.quick-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-block;
  background-color: #1D4ED8;
  color: #FFFFFF;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid #1D4ED8;
}

.btn-primary:hover {
  background-color: #173fa6;
}

.btn-secondary {
  display: inline-block;
  background-color: #FFFFFF;
  color: #1D4ED8;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid #C7D7F0;
}

.btn-secondary:hover {
  background-color: #E8EEF8;
}

/* Form Block */
.form-section {
  border-top: 1px solid #E5E7EB;
  padding-top: 2.5rem;
}

.section-head {
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.mono-flag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #1D4ED8;
  font-weight: 600;
}

.form-note {
  font-size: 0.88rem;
  color: #6B7280;
  margin-bottom: 1.5rem;
}

.work-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 600px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.03em;
}

.form-control {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #D1D5DB;
  border-radius: 3px;
  color: #111827;
  background-color: #FFFFFF;
  outline: none;
}

.form-control:focus {
  border-color: #1D4ED8;
  box-shadow: 0 0 0 1px #1D4ED8;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-submit {
  background-color: #1D4ED8;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid #1D4ED8;
  border-radius: 3px;
  cursor: pointer;
}

.btn-submit:hover {
  background-color: #173fa6;
}

.form-hint {
  font-size: 0.82rem;
  color: #6B7280;
}

/* Steps Block */
.steps-section {
  margin-bottom: 3.5rem;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-row {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid #E5E7EB;
  border-radius: 3px;
  background-color: #FFFFFF;
}

.step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1D4ED8;
  background-color: #E8EEF8;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 2px;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.step-body p {
  font-size: 0.9rem;
  color: #1F2937;
}

/* Services Block (Definition lists) */
.services-section {
  margin-bottom: 3.5rem;
  border-top: 1px solid #E5E7EB;
  padding-top: 2.5rem;
}

.services-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.def-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.def-item {
  border: 1px solid #D1D9E6;
  border-radius: 3px;
  padding: 1.25rem;
  background-color: #FFFFFF;
}

.def-term {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed #E5E7EB;
  padding-bottom: 0.75rem;
}

.term-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.term-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1D4ED8;
}

.term-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4B5563;
}

.def-desc p {
  font-size: 0.88rem;
  color: #374151;
  margin-bottom: 0.25rem;
}

.def-desc p:last-child {
  margin-bottom: 0;
}

.mono-param {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #6B7280;
  font-weight: 600;
}

/* In-Content TOC Block */
.toc-section {
  margin-bottom: 3.5rem;
  border-top: 1px solid #E5E7EB;
  padding-top: 2.5rem;
}

.toc-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.toc-box {
  background-color: #E8EEF8;
  border: 1px solid #C7D7F0;
  padding: 1.25rem;
  border-radius: 3px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.toc-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.mono-code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1D4ED8;
  background-color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid #C7D7F0;
}

.toc-list a {
  color: #111827;
  text-decoration: none;
  font-weight: 500;
}

.toc-list a:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

/* Contact & Privacy Block */
.contact-section {
  border-top: 1px solid #E5E7EB;
  padding-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.contact-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-card {
  background-color: #FFFFFF;
  border: 1px solid #D1D9E6;
  padding: 1.25rem;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-val {
  font-size: 0.9rem;
  color: #111827;
}

.contact-val.bold {
  font-weight: 700;
}

.mono-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #6B7280;
  margin-top: 0.25rem;
}

.privacy-card {
  background-color: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-left: 3px solid #4B5563;
  padding: 1.5rem;
  border-radius: 3px;
}

.privacy-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.35rem 0 0.75rem 0;
}

.privacy-card p {
  font-size: 0.85rem;
  color: #4B5563;
  line-height: 1.55;
}

/* Footer */
.content-footer {
  border-top: 1px solid #E5E7EB;
  padding-top: 1.5rem;
  margin-top: 3rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #6B7280;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-link {
  color: #1D4ED8;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Mobile Layout */
@media (max-width: 820px) {
  .shell-grid {
    grid-template-columns: 1fr;
  }

  .shell-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #D1D9E6;
    padding: 1rem;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-item {
    background-color: #FFFFFF;
    border: 1px solid #C7D7F0;
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
  }

  .sidebar-card {
    display: none;
  }

  .shell-content {
    padding: 1.5rem 1rem;
  }

  .docs-header {
    padding: 0 1rem;
    flex-direction: column;
    height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .header-meta {
    font-size: 0.75rem;
    flex-wrap: wrap;
  }

  .doc-title {
    font-size: 1.45rem;
  }

  .quick-actions {
    flex-direction: column;
  }
}