:root {
  --ink: #111827;
  --muted: #667085;
  --soft: #f4f7fb;
  --line: #d9e2ec;
  --brand: #159f8c;
  --brand-dark: #087667;
  --blue: #2563eb;
  --amber: #b45309;
  --rose: #be123c;
  --violet: #7c3aed;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eef3f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid #dfe7ef;
  background: #fbfcfe;
  color: var(--ink);
  padding: 22px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 10px 20px;
  border-bottom: 1px solid #dfe7ef;
}

.brand img {
  width: 58px;
  height: 42px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 19px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-box {
  display: block;
  margin: 22px 0 18px;
}

.search-box span {
  display: block;
  margin-bottom: 8px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  padding: 10px 12px;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.search-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(21, 159, 140, 0.22);
}

.category-nav {
  display: grid;
  gap: 4px;
}

.nav-group {
  margin-top: 14px;
}

.nav-group-title {
  margin: 0 0 6px;
  padding: 0 10px;
  color: #7b8798;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-link {
  display: block;
  align-items: center;
  border-radius: 8px;
  padding: 9px 10px;
  color: #344054;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.nav-link:hover,
.nav-link.active {
  background: #e8f7f4;
  color: #075f54;
}

.nav-link.active {
  box-shadow: inset 3px 0 0 var(--brand);
}

.nav-link em {
  display: block;
  margin-top: 3px;
  color: #7b8798;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.nav-empty {
  border: 1px dashed #cfd8e3;
  border-radius: 8px;
  background: #f8fafc;
  color: #667085;
  padding: 12px;
  font-size: 12px;
  font-weight: 720;
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto 18px;
  max-width: 1220px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar h1,
.hero h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 26px;
  line-height: 1.15;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
}

.primary-button {
  background: var(--brand);
  color: var(--white);
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: #344054;
}

.hero,
.quick-grid,
.docs-container,
.search-results {
  max-width: 1220px;
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(21, 159, 140, 0.95), rgba(8, 118, 103, 0.92)),
    url("icon-exprint.png");
  background-size: cover, 330px;
  background-position: center, right 32px center;
  padding: 32px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.hero .eyebrow {
  color: #d8fffa;
}

.hero h2 {
  max-width: 720px;
  font-size: 42px;
  line-height: 1.04;
}

.hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: #e9fffc;
  font-size: 16px;
}

.hero-panel {
  display: grid;
  gap: 12px;
  align-content: center;
}

.flow-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 14px;
}

.flow-step span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--white);
  color: var(--brand-dark);
  font-weight: 950;
}

.flow-step strong,
.flow-step small {
  display: block;
}

.flow-step small {
  grid-column: 2;
}

.flow-step small {
  color: #d8fffa;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.quick-card {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.quick-card span,
.doc-meta span,
.label-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e6f7f4;
  color: var(--brand-dark);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-card strong {
  display: block;
  margin-top: 12px;
  font-size: 16px;
}

.quick-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.docs-container {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.doc-page {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.doc-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 22px;
}

.doc-header h2 {
  margin: 8px 0 8px;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

.doc-header p {
  max-width: 790px;
  margin: 0;
  color: var(--muted);
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  padding: 12px 18px;
}

.tab-button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #475467;
  cursor: pointer;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.tab-button.active {
  border-color: var(--line);
  background: var(--white);
  color: var(--brand-dark);
}

.tab-panel {
  display: none;
  padding: 22px;
}

.tab-panel.active {
  display: block;
}

.screenshot-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.screenshot-frame {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-frame figcaption {
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  color: #475467;
  font-size: 12px;
  font-weight: 750;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 16px;
}

.info-box h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.info-box p,
.info-box li,
.glossary-row p,
.faq-item p {
  color: #475467;
  font-size: 14px;
}

.numbered-list,
.plain-list,
.check-list {
  margin: 0;
  padding-left: 20px;
}

.numbered-list li,
.plain-list li,
.check-list li {
  margin: 8px 0;
}

.label-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}

.label-table th,
.label-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.label-table th {
  background: #f8fafc;
  color: #344054;
  font-size: 11px;
  text-transform: uppercase;
}

.label-table tr:last-child td {
  border-bottom: 0;
}

.label-name {
  color: var(--ink);
  font-weight: 900;
}

.callout {
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #ecfdf9;
  padding: 14px 16px;
  color: #155e54;
  font-size: 14px;
  font-weight: 720;
}

.callout.warn {
  border-left-color: var(--amber);
  background: #fff7ed;
  color: #92400e;
}

.search-results {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
}

.search-results h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.result-list {
  display: grid;
  gap: 10px;
}

.result-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.result-item strong {
  display: block;
}

.result-item small {
  color: var(--muted);
}

.glossary-grid,
.faq-list {
  display: grid;
  gap: 12px;
}

.glossary-row,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 14px;
}

.glossary-row h3,
.faq-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.glossary-row p,
.faq-item p {
  margin: 0;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .category-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-group-title {
    grid-column: 1 / -1;
  }

  .hero,
  .quick-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .main {
    padding: 16px;
  }

  .topbar,
  .doc-header {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .hero {
    padding: 22px;
  }

  .hero h2 {
    font-size: 30px;
  }

  .quick-grid,
  .category-nav {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
