:root {
  --bg: #f6f4ee;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --ink: #152321;
  --muted: #5f6d68;
  --line: rgba(21, 35, 33, 0.1);
  --brand: #0f766e;
  --brand-2: #164e63;
  --accent: #eab308;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
  --sidebar-width: 320px;
  font-family: "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(234, 179, 8, 0.14), transparent 18%),
    linear-gradient(180deg, #f9f8f4 0%, #eef2ef 100%);
  color: var(--ink);
}

a {
  color: var(--brand-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  padding: 0.14rem 0.36rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  font-size: 0.92em;
}

pre {
  overflow: auto;
  border-radius: 18px;
  background: #10211f;
  color: #eff8f5;
  padding: 1rem 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  border-radius: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  background: var(--surface-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(15, 118, 110, 0.08);
}

blockquote {
  margin: 1.2rem 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(234, 179, 8, 0.08);
  border-radius: 12px;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 2rem 1.25rem;
  border-right: 1px solid var(--line);
  background: rgba(248, 250, 248, 0.78);
  backdrop-filter: blur(24px);
}

.brand-block {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.brand-logo,
.password-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 0.45rem;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
}

.brand-block h1,
.hero-card h2,
.password-card h1 {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.06;
}

.brand-block h1 {
  font-size: 1.2rem;
}

.meta-card,
.hero-card,
.doc-section {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.meta-card {
  padding: 1rem;
  margin-bottom: 1rem;
}

.meta-card p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  font-weight: 700;
}

.download-link:hover {
  text-decoration: none;
}

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

.sidebar-nav a {
  display: block;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid transparent;
}

.sidebar-nav a:hover {
  text-decoration: none;
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(255, 255, 255, 0.95);
}

.content-shell {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-card {
  padding: 1.6rem 1.7rem;
}

.hero-card p {
  max-width: 75ch;
  color: var(--muted);
  line-height: 1.7;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.1);
  font-size: 0.92rem;
  font-weight: 700;
}

.doc-section {
  padding: 1.6rem 1.8rem;
}

.doc-header {
  margin-bottom: 1.2rem;
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
}

.section-links a {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.07);
  border: 1px solid rgba(15, 118, 110, 0.1);
  font-size: 0.9rem;
  font-weight: 700;
}

.mermaid {
  display: block;
  margin: 1.1rem 0 1.6rem;
  padding: 1rem;
  background: white;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.doc-section h2:first-child {
  margin-top: 0;
}

.doc-section h1,
.doc-section h2,
.doc-section h3,
.doc-section h4 {
  scroll-margin-top: 1rem;
}

.doc-section p,
.doc-section li {
  color: #213633;
  line-height: 1.75;
}

.doc-section iframe {
  display: block;
  width: min(100%, 800px);
  max-width: 100%;
  height: 450px;
  margin: 1rem 0 1.4rem;
  border-radius: 20px;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.doc-section ul,
.doc-section ol {
  padding-left: 1.4rem;
}

.doc-section hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.site-footer {
  padding: 0 0.4rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.password-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(11, 15, 20, 0.72);
  backdrop-filter: blur(12px);
  z-index: 999;
}

.password-overlay.visible {
  display: flex;
}

.password-card {
  width: min(100%, 460px);
  padding: 2rem;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.22);
}

.password-copy,
.password-note {
  color: var(--muted);
  line-height: 1.65;
}

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

  .sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .content-shell,
  .sidebar {
    padding: 1rem;
  }

  .hero-card,
  .doc-section,
  .password-card {
    padding: 1.2rem;
  }
}
