.sos-guide-main {
  --guide-ink: var(--sos-theme-ink, #172b27);
  --guide-muted: var(--sos-theme-action, #215b49);
  --guide-line: var(--sos-theme-line, #ccdbce);
  background: #fff;
  color: var(--guide-ink);
}

.sos-guide-frame {
  max-width: 75rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.sos-guide-intro {
  padding-block: clamp(1.75rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--guide-line);
  background: var(--unified-pale, var(--sos-theme-tint, #e9f0e8));
}

.sos-guide-intro h1 {
  margin: 0 0 .6rem;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  text-wrap: balance;
}

.sos-guide-intro p {
  max-width: 62ch;
  margin: 0;
  line-height: 1.6;
}

.sos-guide-body { padding-block: 1.5rem clamp(2rem, 4vw, 3.5rem); }
.sos-guide-main [hidden] { display: none !important; }

.sos-guide-form {
  padding: clamp(.95rem, 2.5vw, 1.4rem);
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  background: var(--sos-theme-paper, #f8f7f1);
}

.sos-guide-form label,
.sos-guide-form summary { font-weight: 600; }
.sos-guide-form summary { cursor: pointer; color: var(--unified-title, var(--sos-theme-hover, #163d33)); }

.sos-guide-form input,
.sos-guide-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--sos-theme-action, #215b49);
  border-radius: 6px;
  padding: .65rem .75rem;
  background: #fff;
  color: var(--guide-ink);
  font: inherit;
  font-size: 1rem;
}

.sos-guide-form input { display: block; margin-block: .4rem .65rem; }
.sos-guide-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .75rem;
  margin-top: .75rem;
}
.sos-guide-filters select { display: block; margin-top: .25rem; }

.sos-guide-form button {
  margin-top: .4rem;
  border: 0;
  padding: .45rem 0;
  background: none;
  color: var(--unified-title, var(--sos-theme-hover, #163d33));
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.sos-guide-count,
.sos-guide-tag { color: var(--guide-muted); font-size: .9rem; }
.sos-guide-count { margin-block: 1.15rem .65rem; }
.sos-guide-tag { font-weight: 600; }
.sos-guide-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}

.sos-guide-card {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  background: #fff;
}
.sos-guide-card h2 { margin: .45rem 0 .65rem; font-size: 1.18rem; line-height: 1.35; }
.sos-guide-card p { margin: 0; line-height: 1.55; }
.sos-guide-card a { color: var(--unified-title, var(--sos-theme-hover, #163d33)); text-decoration: underline; }
.sos-guide-card a:hover { color: var(--guide-ink); }

.sos-guide-main :focus-visible,
.sos-guide-section :focus-visible {
  outline: 2px solid var(--unified-action, var(--sos-theme-action, #215b49));
  outline-offset: 3px;
}

.sos-guide-section,
.sos-guide-jump {
  color: var(--sos-theme-ink, #172b27) !important;
  background: var(--unified-pale, var(--sos-theme-tint, #e9f0e8));
  border: 1px solid var(--sos-theme-line, #ccdbce);
  border-radius: 8px;
}
.sos-guide-section { margin-block: 1.4rem; padding: clamp(1rem, 3vw, 1.65rem); scroll-margin-top: 6rem; }
.sos-guide-section h2,
.sos-guide-section p { color: var(--sos-theme-ink, #172b27) !important; padding: 0; }
.sos-guide-section h2 { margin: 0 0 .6rem; font-size: clamp(1.23rem, 3vw, 1.65rem); line-height: 1.3; }
.sos-guide-section p { margin: .6rem 0 0; line-height: 1.65; }
.sos-guide-section .sos-guide-meta { font-size: .93rem; }
.sos-guide-section a,
.sos-guide-jump a { color: var(--unified-title, var(--sos-theme-hover, #163d33)) !important; text-decoration: underline; text-underline-offset: .18em; }
.sos-guide-jump { margin-block: .8rem; padding: .65rem 1rem; }
.sos-guide-jump a { font-weight: 700; }
