/* Docs reader — scrollable guides for Josephine */

.docs-page {
  margin: 0;
  min-height: 100dvh;
  background: #f7f3ed;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #14110f;
  overflow: auto;
}

.docs-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.docs-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e4dcd0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.docs-back {
  font-size: 0.85rem;
  font-weight: 700;
  color: #9b2c2c;
  text-decoration: none;
}

.docs-top-brand {
  text-align: center;
}

.docs-top-brand strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
}

.docs-top-brand span {
  font-size: 0.7rem;
  color: #6b635b;
  font-weight: 600;
}

.docs-phone {
  font-size: 0.8rem;
  font-weight: 700;
  color: #14110f;
  text-decoration: none;
}

.docs-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 0;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.docs-nav {
  padding: 1rem 0.75rem;
  border-right: 1px solid #e4dcd0;
  background: #fff;
}

.docs-nav-title {
  margin: 0 0 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b8956c;
}

.docs-nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  color: #14110f;
  margin-bottom: 0.2rem;
}

.docs-nav-btn:hover {
  background: #f7f3ed;
}

.docs-nav-btn.is-on {
  background: #fdf5f4;
  border-color: #9b2c2c;
  color: #9b2c2c;
}

.docs-nav-link {
  display: block;
  margin-top: 1rem;
  padding: 0.55rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: #9b2c2c;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
}

.docs-article {
  padding: 1.25rem 1.5rem 2rem;
  overflow: auto;
  max-height: calc(100dvh - 52px - 50px);
}

.docs-content {
  background: #fff;
  border: 1px solid #e4dcd0;
  border-radius: 14px;
  padding: 1.25rem 1.35rem 1.75rem;
  line-height: 1.55;
  font-size: 0.95rem;
}

.docs-content h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.docs-content h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  margin: 1.5rem 0 0.5rem;
}

.docs-content h3 {
  font-size: 1.05rem;
  margin: 1.15rem 0 0.4rem;
}

.docs-content p,
.docs-content li {
  color: #2a2420;
}

.docs-content a {
  color: #9b2c2c;
  font-weight: 600;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0.75rem 0 1rem;
}

.docs-content th,
.docs-content td {
  border: 1px solid #e4dcd0;
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.docs-content th {
  background: #f7f3ed;
}

.docs-content code {
  background: #f3ebe0;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
}

.docs-content pre,
.docs-pre {
  background: #1a1614;
  color: #f5f0e8;
  padding: 1rem;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.docs-content blockquote {
  margin: 0.75rem 0;
  padding: 0.5rem 0.85rem;
  border-left: 3px solid #b8956c;
  background: #faf6ef;
  color: #3a342e;
}

.docs-loading {
  margin: 0;
  color: #6b635b;
  font-weight: 600;
}

.docs-footer {
  margin-top: auto;
}

@media (max-width: 760px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-nav {
    border-right: none;
    border-bottom: 1px solid #e4dcd0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
  }
  .docs-nav-title {
    width: 100%;
  }
  .docs-nav-btn {
    width: auto;
    font-size: 0.75rem;
    padding: 0.4rem 0.55rem;
  }
  .docs-nav-link {
    width: 100%;
  }
  .docs-article {
    max-height: none;
  }
}
