.page-guide { margin: 1.5rem 0 2rem; border: 1px solid #e1ded8; border-radius: 20px; background: #fffefa; color: #334155; box-shadow: 0 1px 2px #26343e0f, 0 8px 24px -12px #26343e2e; overflow: hidden; font: 400 0.95rem/1.65 system-ui, sans-serif; }
.page-guide > summary { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; cursor: pointer; list-style: none; }
.page-guide > summary::-webkit-details-marker { display: none; }
.page-guide > summary > span:nth-child(2) { min-width: 0; flex: 1; }
.page-guide strong { display: block; font-weight: 600; }
.guide-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; color: #b63830; background: #ffe8e2; font-weight: 700; }
.guide-intro { display: block; color: #64748b; }
.guide-toggle::before { content: 'Show'; }
.page-guide[open] .guide-toggle::before { content: 'Hide'; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; padding: 1.5rem; border-top: 1px solid #e1ded8; }
.guide-grid h3 { color: #b63830; font: 600 0.8rem/1.4 system-ui, sans-serif; letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 1rem; }
.guide-grid :is(ul, ol) { padding-left: 1.3rem; margin: 0; }
.guide-grid li { padding-left: 0.25rem; margin-bottom: 0.75rem; }
.guide-grid li::marker { color: #b63830; font-weight: 600; }
.guide-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem; padding: 1rem 1.5rem; border-top: 1px solid #e1ded8; color: #64748b; font-size: 0.85rem; }
.guide-footer a { color: #a72f28; font-weight: 600; text-decoration: none; }
.page-guide a:focus-visible { outline: 2px solid #b63830; outline-offset: 3px; }
.help-shell { max-width: 1100px; margin: auto; padding: 2rem 1.5rem; font-family: system-ui, sans-serif; color: #334155; }
.help-shell h1, .help-shell h2 { font-family: inherit; font-weight: 600; }
.help-shell > nav { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.help-topics { display: block; margin: 2rem 0; }
.help-topic { margin: 1.5rem 0; padding: 1.5rem; border: 1px solid #e1ded8; border-radius: 16px; background: #fffefa; }
.help-topic details { padding: 0.85rem 0; border-top: 1px solid #e1ded8; }
.help-topic summary { cursor: pointer; font-weight: 600; }
.help-topic p { margin: 0.75rem 0 0; line-height: 1.7; }
.account-help { font-size: 0.9rem; color: #64748b; text-decoration: none; }
.account-help:hover { color: #a72f28; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr; gap: 1rem; } .guide-toggle { flex-shrink: 0; } }
body:has(.help-shell) { margin: 0; background: #faf8f5; color: #334155; font-family: system-ui, sans-serif; }
.help-header { position: static; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem max(1.5rem, calc((100vw - 1100px)/2)); border-bottom: 1px solid #e1ded8; }
.help-header nav { display: flex; align-items: center; gap: 1rem; }
.help-header a, .help-shell a { color: #a72f28; text-decoration: none; }
.help-brand { display: flex; align-items: center; gap: 0.1rem; color: #334155 !important; font-weight: 700; white-space: nowrap; }
.help-brand > span:last-child { color: #b63830; }
.help-brand-icon { width: 36px; height: 36px; margin-right: 0.5rem; background: #b63830; mask: url('/static/ra-logo.png') center / contain no-repeat; -webkit-mask: url('/static/ra-logo.png') center / contain no-repeat; }
.help-header .help-signin, .help-cta .button { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #ff665c; color: #233044; padding: 0.7rem 1.2rem; font-weight: 600; --ui-button-shadow: var(--ui-action-glow); --ui-button-hover-shadow: var(--ui-action-glow-hover); --ui-button-hover-background: #ff665c; }
.help-shell { box-sizing: border-box; padding-top: 3rem; }
.help-eyebrow { color: #b63830; text-transform: uppercase; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; }
.help-shell h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.2; letter-spacing: -0.035em; margin: 0.5rem 0 1rem; }
.help-lede { color: #64748b; max-width: 54rem; line-height: 1.7; font-size: 1.05rem; }
.help-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 3rem; }
.help-steps .help-topic { margin: 0; }
.help-steps h2 { font-size: 1.15rem; }
.help-step-icon { width: 44px; height: 44px; display: grid; place-items: center; background: #ffe8e2; color: #b63830; font-size: 1.5rem; border-radius: 14px; }
.help-topic { box-shadow: var(--ui-surface-shadow); }
.help-topic > p { color: #64748b; }
.help-topic a { display: inline-block; margin-top: 1rem; }
.help-common details:first-child { border-top: 0; }
.help-common summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.help-common summary::-webkit-details-marker { display: none; }


.help-results > div { background: #f5f3f0; padding: 1rem; border-radius: 12px; margin-top: 0.75rem; }
.help-results > div > p { margin-top: 0.25rem; color: #64748b; }
.help-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.help-topics .help-topic { margin: 0; }
.help-cta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; padding: 1.5rem; margin: 3rem 0 1.5rem; border-radius: 20px; background: #1c2838; color: white; box-shadow: var(--ui-surface-shadow); }
.help-cta h2 { margin: 0 0 0.5rem; }
.help-cta p { margin: 0; color: #cbd5e1; }
.help-footer { padding: 1rem 0; }
@media (max-width: 800px) { .help-steps, .help-topics { grid-template-columns: 1fr; } .help-header { padding: 1rem; } .help-header nav > a:first-child { display: none; } .help-brand { font-size: 0.85rem; } .help-shell { padding: 2rem 1rem; } }

@media (min-width: 1400px) {
  body.has-page-sections .help-shell { width: calc(100% - 220px); max-width: 1100px; margin: 0 220px 0 auto; }
  body:has(.help-shell) .page-sections { top: 6rem; }
}

.page-guide > summary h2 { display: block; margin: 0; font: 600 1rem/1.5 system-ui, sans-serif; letter-spacing: normal; }
@media (hover: hover) { .page-guide > summary:hover { background: #fff4ef; } }

.guide-toggle { display: inline-flex; align-items: center; gap: 0.75rem; color: #64748b; font-size: 0.85rem; }
.guide-toggle::after, .help-topic summary::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 180ms ease;
}
.page-guide[open] > summary .guide-toggle::after,
.help-topic details[open] > summary::after { transform: rotate(180deg); }
.help-topic summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; }
.help-topic summary::-webkit-details-marker { display: none; }
.page-guide > summary:focus { outline: none; }
.page-guide > summary:focus-visible .guide-toggle { outline: 2px solid #b63830; outline-offset: 5px; border-radius: 4px; }
.help-topic summary:focus { outline: none; }
.help-topic summary:focus-visible { text-decoration: underline; text-underline-offset: 0.25rem; }
@media (prefers-reduced-motion: reduce) { .guide-toggle::after, .help-topic summary::after { transition: none; } }
@media (forced-colors: active) {
  .page-guide > summary:focus-visible .guide-toggle { outline-color: Highlight; }
  .guide-toggle::after, .help-topic summary::after { forced-color-adjust: none; background: CanvasText; }
}
.help-account { display: inline-flex; align-items: center; gap: 1rem; min-width: 0; }
.help-account-email { color: #64748b; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22rem; }
.help-logout { display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #334155; border: 1px solid transparent; border-radius: 8px; padding: 0.6rem; cursor: pointer; }
.help-header { flex-wrap: wrap; }
@media (max-width: 600px) { .help-account { gap: 0.5rem; } .help-account-email { max-width: 10rem; font-size: 0.8rem; } }
/* Match the compact guide rhythm from the supplied Lovable v2 source. */
.page-guide { border-radius: 16px; font-size: 0.875rem; line-height: 1.625; }
.page-guide > summary { padding: 0.75rem 1rem; gap: 0.75rem; border-radius: 16px; }
.page-guide > summary h2 { font-size: 0.875rem; }
.guide-icon { width: 32px; height: 32px; flex-basis: 32px; }
.guide-intro { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; }
.guide-grid { padding: 1.25rem; gap: 1.5rem; }
.guide-grid h3 { font-size: 0.72rem; margin-bottom: 0.75rem; }
.guide-grid :is(ul,ol,dl) { list-style: none; padding: 0; margin: 0; }
.guide-grid li { display: flex; align-items: flex-start; gap: 0.625rem; padding: 0; margin: 0 0 0.625rem; }
.guide-step-number { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border-radius: 50%; background: #ff665c; color: #233044; font-size: 0.7rem; font-weight: 700; margin-top: 1px; }
.guide-outcome-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #278776; margin-top: 0.55rem; }
.guide-grid dl > div { margin-bottom: 0.625rem; }
.guide-grid dt { margin: 0; font-weight: 600; }
.guide-grid dd { margin: 0; color: #64748b; }
.guide-footer { padding: 0.75rem 1.25rem; font-size: 0.75rem; }
@media (hover: hover) { .page-guide > summary:hover { background: #f1f0ed; } .guide-footer a:hover { text-decoration: underline; } }
.help-shell { max-width: 896px; padding: 3rem 1.25rem; }
.help-header { padding-inline: max(1.25rem, calc((100vw - 896px)/2)); }
.help-shell h1 { font-size: clamp(1.875rem, 3vw, 2.25rem); }
.help-steps .help-topic { padding: 1.25rem; }
.help-steps h2 { font-size: 1.125rem; margin: 1rem 0 0.375rem; }
.help-steps p { font-size: 0.875rem; line-height: 1.625; }
.help-step-icon { width: 40px; height: 40px; border-radius: 12px; }
.help-faq-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 2rem; margin: 3rem 0; align-items: start; }
.help-faq-column > h2 { margin-top: 0; }
.help-faq-column .help-common { padding: 0 1.25rem; }
.help-results { margin-top: 0; padding: 1.25rem; }
.help-results h2 { font-size: 1rem; }
.help-results p, .help-common p { font-size: 0.875rem; }
.help-common summary { padding: 0.15rem 0; font-size: 1rem; }
.help-cta { box-shadow: 0 2px 4px #26343e1a, 0 30px 60px -20px #17253666; }
@media (max-width: 1023px) { .help-faq-layout { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .guide-grid { grid-template-columns: 1fr; } }
@media (min-width: 768px) { .guide-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 639px) { .guide-toggle::before { display: none; } .guide-toggle { gap: 0; } .guide-intro { font-size: 0.75rem; } }
@media (min-width: 1400px) { body.has-page-sections .help-shell { max-width: 896px; } }
@supports (interpolate-size: allow-keywords) {
  .page-guide, .help-topic details { interpolate-size: allow-keywords; }
  .page-guide::details-content, .help-topic details::details-content {
    block-size: 0; opacity: 0; overflow: hidden;
    transition: block-size 200ms ease, opacity 200ms ease, content-visibility 200ms allow-discrete;
  }
  .page-guide[open]::details-content, .help-topic details[open]::details-content { block-size: auto; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .page-guide::details-content, .help-topic details::details-content { transition: none; } }
