/* Page-specific documentation styles. Existing site CSS remains the visual foundation. */
.guide-hero {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, rgba(250, 242, 228, 0.72), rgba(250, 242, 228, 0));
}

.guide-hero .wrap {
  max-width: 1120px;
}

.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 48px;
  align-items: center;
}

.guide-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 14px 0 20px;
}

.guide-hero h1 em {
  font-style: italic;
  color: var(--rust);
}

.guide-hero .lede {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.guide-hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.guide-hero-visual {
  display: flex;
  justify-content: center;
}

.guide-shot {
  width: min(356px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(50,35,25,.12);
  background: #fff;
}

.guide-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-top: 22px;
}

.guide-toc {
  position: sticky;
  top: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  padding: 18px;
}

.guide-toc strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.guide-toc a {
  display: block;
  padding: 7px 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.guide-toc a:hover {
  color: var(--rust);
}

.guide-content {
  min-width: 0;
}

.guide-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 28px;
}

.guide-section:first-child {
  padding-top: 12px;
}

.guide-section:last-child {
  border-bottom: 0;
}

.guide-section h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 10px 0 15px;
}

.guide-section h3 {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.3;
  margin: 28px 0 9px;
}

.guide-section p,
.guide-section li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.78;
}

.guide-section p {
  max-width: 78ch;
}

.guide-section ul,
.guide-section ol {
  padding-left: 23px;
  max-width: 78ch;
}

.guide-section li {
  margin: 7px 0;
}

.guide-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rust);
  font-weight: 700;
}

.guide-callout {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--rust);
  border-radius: 10px;
  background: #fffaf2;
}

.guide-callout strong {
  color: var(--ink);
}

.guide-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.guide-step {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 20px;
}

.guide-step-number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--rust);
  font-weight: 700;
  margin-bottom: 10px;
}

.guide-step h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.guide-step p {
  margin: 0;
  font-size: 14px;
}

.guide-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.guide-feature {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}

.guide-feature h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.guide-feature p {
  margin: 0;
  font-size: 14px;
}

.guide-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.guide-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--ink-soft);
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 22px 0;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

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

.guide-table th {
  font-weight: 700;
  color: var(--ink);
  background: #fafbfc;
}

.guide-table td {
  color: var(--ink-soft);
}

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

.guide-faq details {
  border-bottom: 1px solid var(--line);
  padding: 19px 0;
}

.guide-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding-right: 28px;
  list-style: none;
  position: relative;
}

.guide-faq summary::-webkit-details-marker {
  display: none;
}

.guide-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--rust);
}

.guide-faq details[open] summary::after {
  content: "–";
}

.guide-faq details p {
  margin: 10px 0 0;
  font-size: 14px;
}

.guide-final {
  padding: 58px 0 80px;
}

.guide-final-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.guide-final-box h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 34px;
}

.guide-final-box p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

.guide-final-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.guide-muted {
  font-size: 13px !important;
  color: var(--ink-soft);
}

@media (max-width:900px) {
  .guide-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .guide-hero-visual {
    justify-content: flex-start;
  }

  .guide-shot {
    width: min(330px, 100%);
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .guide-toc {
    position: static;
  }

  .guide-step-grid,
  .guide-feature-grid {
    grid-template-columns: 1fr;
  }

  .guide-final-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width:600px) {
  .guide-hero {
    padding: 36px 0 30px;
  }

  .guide-section {
    padding: 42px 0;
  }

  .guide-section h2 {
    font-size: 30px;
  }

  .guide-final-box {
    padding: 24px;
  }
}
