:root {
  color-scheme: light;
  --bg: #fafaf8;
  --card: #ffffff;
  --card-subtle: #f4f4ef;
  --ink: #242422;
  --ink-secondary: #5e5e58;
  --ink-muted: #85857e;
  --border: #dededa;
  --border-subtle: #eaeae5;
  --accent: #242422;
  --accent-green: #2e7d32;
  --accent-green-bg: #e8f5e9;
}

* {
  box-sizing: border-box;
}

body.guide-page {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.guide-header,
.guide-footer {
  max-width: 1120px;
  margin: auto;
  padding: 24px 24px;
}

.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}

.guide-brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--ink);
  text-decoration: none !important;
}

.guide-page a,
.site-discovery a {
  color: inherit;
  text-underline-offset: 4px;
}

.guide-page nav,
.site-discovery nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 14px;
  font-weight: 500;
}

.guide-main {
  max-width: 780px;
  margin: 48px auto 72px;
  padding: 0 24px;
}

.guide-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.guide-main h1 {
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -1.8px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--ink);
}

.guide-intro {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin-bottom: 24px;
}

.cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 40px;
}

.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff !important;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.guide-button:hover {
  background: #3c3c38;
  transform: translateY(-1px);
}

.guide-button--secondary {
  background: #fff;
  color: var(--ink) !important;
  border: 1px solid var(--border);
}

.guide-button--secondary:hover {
  background: var(--card-subtle);
  border-color: #c8c8c0;
}

.guide-main section {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.guide-main h2 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
}

.guide-main p {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 16px;
}

.section-link {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  margin-top: 6px;
}

/* Sample Questions Section */
.sample-questions-section {
  background: var(--card-subtle);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin-top: 40px;
}

.sample-intro {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.sample-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sample-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.sample-card[open] {
  border-color: #92928c;
}

.sample-card summary {
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  display: block;
}

.sample-card summary::-webkit-details-marker {
  display: none;
}

.q-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.q-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #f0f0eb;
  padding: 3px 8px;
  border-radius: 6px;
  color: #4a4a45;
}

.q-expand-hint {
  font-size: 12px;
  font-weight: 600;
  color: #72726c;
}

.q-question-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.q-answer-drawer {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border-subtle);
  background: #fafaf8;
  font-size: 14px;
}

.q-options-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.q-options-list li {
  padding: 8px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.q-options-list li.is-correct {
  background: var(--accent-green-bg);
  border-color: #81c784;
  color: var(--accent-green);
  font-weight: 600;
}

.correct-badge {
  font-size: 11px;
  font-weight: 700;
  background: #c8e6c9;
  padding: 2px 6px;
  border-radius: 4px;
}

.q-explanation-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.q-explanation-box strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 3px;
}

.q-explanation-box p {
  margin: 0;
  font-size: 13px;
}

/* FAQ Section */
.faq-section {
  margin-top: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-card summary {
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

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

.faq-arrow {
  font-size: 16px;
  color: var(--ink-muted);
  transition: transform 0.2s ease;
}

.faq-card[open] .faq-arrow {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 18px 16px;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.faq-content p {
  margin: 0;
}

/* Bottom CTA Banner */
.bottom-cta-banner {
  margin-top: 48px;
  background: #f0f0eb;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
}

.bottom-cta-banner h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.bottom-cta-banner p {
  font-size: 14px;
  color: var(--ink-secondary);
  margin: 0 0 18px;
}

/* Footer & Discovery */
.guide-footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px 48px;
}

.footer-discovery {
  margin-bottom: 28px;
}

.footer-discovery h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  font-size: 12px;
  color: var(--ink-muted);
}

.site-discovery {
  background: #f3f3ee;
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  font-size: 14px;
  line-height: 1.75;
  color: #43433f;
}

.site-discovery > div {
  max-width: 1120px;
  margin: auto;
}

.site-discovery h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}

.site-discovery p {
  max-width: 780px;
  margin: 0 0 16px;
  color: #5e5e58;
}

.guide-page a:focus-visible,
.site-discovery a:focus-visible {
  outline: 2px solid #62625c;
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .guide-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .guide-main {
    margin-top: 32px;
  }
  .guide-intro {
    font-size: 16px;
  }
  .cta-wrap {
    flex-direction: column;
  }
  .cta-wrap .guide-button {
    width: 100%;
  }
}
