/* Public editorial pages only; no changes to the landing or dashboard. */
body:has(.guides-shell) { background: #fff; }
main:has(.guides-shell) { width: 100%; max-width: none; margin: 0; }
.guides-shell { --guide-sage: #a9c4a0; background: #fff; color: #172019; color-scheme: light; font: 400 1rem/1.7 Inter, Arial, sans-serif; min-height: 100vh; }
.guides-shell *, .guides-shell *::before, .guides-shell *::after { box-sizing: border-box; }
.guides-shell a { color: #395335; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.guides-shell a:focus-visible, .guides-shell summary:focus-visible { outline: 3px solid #62795b; outline-offset: 4px; }
.guides-header { max-width: 1240px; margin: auto; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #e6eae4; }
.guides-header .guides-brand { color: #111; font-size: 1.3rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.guides-brand strong { color: #62795b; }
.guides-header nav, .guides-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.guides-header nav a { color: #253324; font-size: .9rem; }
.guides-main { max-width: 1120px; padding: 56px 28px 64px; margin: auto; }
.guides-shell h1, .guides-shell h2 { font-family: inherit; color: #111a13; letter-spacing: -.03em; text-shadow: none; font-weight: 650; }
.guides-shell h1 { font-size: clamp(2rem, 4.5vw, 3.15rem); line-height: 1.13; margin: 0 0 22px; overflow-wrap: break-word; }
.guides-intro { max-width: 790px; margin-bottom: 36px; }
.guides-intro, .guide-intro { display: block; }
.guides-kicker { color: #586d50; font-size: .85rem; margin: 0 0 18px; }
.guides-intro > p:last-child { color: #566052; font-size: 1.125rem; }
.guides-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.guides-shell .guide-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid #e0e6dc; border-radius: 20px; background: #fbfcfa; text-decoration: none; }
.guide-card h2 { margin: 0; font-size: 1.25rem; line-height: 1.35; }
.guide-card p { margin: 0; color: #566052; font-size: 1rem; }
.guide-card > span { margin-top: auto; font-size: .9rem; color: #3b5534; }
.guide-card:hover { border-color: #a9c4a0; background: #f4f7f1; }
.guide-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; font-size: .9rem; }
.guide-article { max-width: 780px; margin: auto; }
.guide-meta { color: #62705e; font-size: .85rem; margin: 0 0 24px; }
.guide-lead { font-size: 1.125rem; color: #394736; margin: 0 0 32px; }
.guide-toc { padding: 20px 24px; background: #f5f7f2; border: 1px solid #dfe6d9; border-radius: 16px; margin-bottom: 38px; }
.guide-toc summary { font-weight: 600; cursor: pointer; color: #172019; border: 0; border-radius: 0; padding: 0; background: transparent; }
.guide-toc ol { margin: 16px 0 0; padding-left: 22px; }
.guide-toc li { margin: 6px 0; }
.guide-copy h2 { font-size: 1.55rem; line-height: 1.3; margin: 36px 0 16px; scroll-margin-top: 24px; }
.guide-copy p { margin: 0 0 18px; }
.guide-copy ul, .guide-copy ol { margin: 0 0 24px; padding-left: 24px; }
.guide-copy li { margin-bottom: 10px; }
.guide-copy a { font-weight: 500; }
.guide-figure { margin: 36px 0; }
.guide-figure img { display: block; max-width: 100%; height: auto; border-radius: 20px; border: 1px solid #dfe4da; }
.guide-figure figcaption { margin-top: 12px; color: #596351; font-size: .875rem; }
.guide-warning { padding: 20px; border-left: 3px solid var(--guide-sage); margin: 36px 0 26px; background: #f7f9f4; color: #4c5946; font-size: .875rem; }
.guide-warning p { margin: 0; }
.guide-warning p + p { margin-top: 12px; }
.guide-sources h2, .guide-related > h2 { font-size: 1.3rem; }
.guide-sources ul { padding-left: 20px; font-size: .9rem; }
.guide-cta { max-width: 780px; margin: 42px auto 54px; background: #0a0e0b; padding: 32px; border-radius: 22px; color: #dfe7d9; }
.guide-cta h2 { color: #fff; font-size: 1.5rem; margin: 0 0 14px; line-height: 1.3; }
.guide-cta p { margin: 0 0 24px; }
.guides-shell .guide-cta a { display: inline-block; border-radius: 999px; padding: 14px 24px; color: #10210d; background: var(--guide-sage); font-weight: 600; text-decoration: none; text-align: center; }
.guides-footer { max-width: 1240px; margin: auto; border-top: 1px solid #e6eae4; padding: 24px 28px; color: #5e6858; font-size: .875rem; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .guides-header { padding: 18px 20px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .guides-header nav { gap: 24px; }
  .guides-main { padding: 32px 20px 42px; }
  .guides-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .guides-shell .guide-card { padding: 22px; }
  .guide-copy h2 { font-size: 1.35rem; }
  .guide-toc { padding: 18px; }
  .guide-cta { padding: 24px; }
  .guide-cta a { width: 100%; }
  .guides-footer { padding: 24px 20px; }
}
