/* =============================================
   KiddoShield Landing — Guide Page Styles
   ============================================= */

/* ---- Layout ---- */
.guide-layout {
  display: flex;
  align-items: flex-start;
  max-width: 120rem;
  margin: 0 auto;
  padding: 4.8rem 3.2rem 9.6rem;
  gap: 4rem;
}

/* ---- Sidebar ---- */
.guide-sidebar {
  width: 26rem;
  flex-shrink: 0;
  position: sticky;
  top: 8rem;
  max-height: calc(100vh - 10rem);
  overflow-y: auto;
}

.guide-sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.guide-toc {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.guide-toc a {
  display: block;
  font-size: 1.4rem;
  color: var(--text-med);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.guide-toc a:hover {
  color: var(--primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
}

.guide-toc a.active {
  color: var(--primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
  font-weight: 600;
}

/* ---- Mobile sidebar (details/summary) ---- */
.guide-sidebar-mobile {
  display: none;
  margin-bottom: 2.4rem;
}

.guide-sidebar-mobile summary {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1.2rem 1.6rem;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dark);
}

.guide-sidebar-mobile summary::-webkit-details-marker { display: none; }
.guide-sidebar-mobile summary::after { content: '▾'; font-size: 1.4rem; }
.guide-sidebar-mobile[open] summary::after { content: '▴'; }

.guide-sidebar-mobile .guide-toc {
  padding: 1.2rem 1.6rem;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--bg-white);
}

/* ---- Main content ---- */
.guide-content {
  flex: 1;
  min-width: 0;
}

.guide-content section {
  padding-top: 4.8rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--border);
}

.guide-content section:first-child {
  padding-top: 0;
}

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

.guide-content h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid var(--primary-light);
}

.guide-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 3.2rem;
  margin-bottom: 1.2rem;
}

.guide-content p {
  font-size: 1.6rem;
  line-height: 1.75;
  color: var(--text-med);
  margin-bottom: 1.2rem;
}

.guide-content ul {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 1.2rem;
}

.guide-content ul li {
  font-size: 1.6rem;
  line-height: 1.75;
  color: var(--text-med);
  margin-bottom: 0.6rem;
}

.guide-content strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* ---- Screenshot figures ---- */
.guide-screenshot {
  margin: 2.4rem auto;
  text-align: center;
}

.guide-screenshot img {
  max-width: 360px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: inline-block;
}

.guide-screenshot figcaption {
  margin-top: 0.8rem;
  font-size: 1.3rem;
  color: #888;
  font-style: italic;
}

/* ---- Table in guide ---- */
.guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 1.5rem;
}

.guide-content th,
.guide-content td {
  padding: 1rem 1.4rem;
  text-align: left;
  border: 1px solid var(--border);
}

.guide-content th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text-dark);
}

/* ---- Chapter hero tag ---- */
.guide-ch-num {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 99px;
  padding: 0.3rem 1rem;
  margin-bottom: 0.8rem;
}

/* ---- Responsive: mobile ---- */
@media (max-width: 768px) {
  .guide-layout {
    flex-direction: column;
    padding: 2.4rem 1.6rem 6.4rem;
    gap: 0;
  }

  .guide-sidebar {
    display: none;
  }

  .guide-sidebar-mobile {
    display: block;
  }

  .guide-content h2 {
    font-size: 2.2rem;
  }

  .guide-content h3 {
    font-size: 1.7rem;
  }

  .guide-screenshot img {
    max-width: 100%;
  }
}

/* ---- Note / Callout box ---- */
.guide-note {
  margin: 20px 0;
  padding: 14px 16px;
  border-radius: 8px;
  border-left: 4px solid var(--primary, #4CAF50);
  background: #f1f8e9;
  font-size: 1.5rem;
  line-height: 1.7;
  color: #2e4a1e;
}
.guide-note strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1b5e20;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.guide-note ol, .guide-note ul {
  margin: 8px 0 0 18px;
  padding: 0;
}
.guide-note li {
  margin-bottom: 4px;
}
.guide-note em {
  font-size: 1.3rem;
  color: #558b2f;
  display: block;
  margin-top: 8px;
}
