.guide-page {
  max-width: 52rem;
  padding-bottom: var(--space-8);
}

.guide-header {
  padding-block: var(--space-6) var(--space-4);
}

.guide-kicker {
  margin: 0 0 var(--space-2);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.guide-header h1,
.guide-article h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 var(--space-4);
}

.guide-lead {
  max-width: 38rem;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
}

.guide-stats {
  margin: var(--space-4) 0 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.guide-finder {
  display: grid;
  gap: 0.85rem;
  margin-bottom: var(--space-5);
}

.guide-search__label,
.guide-topics__label {
  display: block;
  margin: 0 0 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.guide-search__field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.95rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.guide-search__field:focus-within {
  border-color: var(--accent);
}

.guide-search__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.guide-search__field input:focus {
  outline: none;
}

.guide-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-topics button {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  cursor: pointer;
}

.guide-topics button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.guide-group {
  margin: 0 0 var(--space-6);
}

.guide-group h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}

.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.guide-list a {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.guide-list a:hover .guide-list__title {
  color: var(--accent);
}

.guide-list__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
}

.guide-list__lead {
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.guide-empty {
  color: var(--ink-muted);
}

.guide-results {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  border-top: 1px solid var(--line);
}

.guide-results a {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.guide-results a:hover .guide-list__title {
  color: var(--accent);
}

.guide-hit__topic {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.guide-hit__snip {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.guide-crumb {
  margin: 0 0 var(--space-3);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.guide-crumb a {
  color: var(--accent);
  text-decoration: none;
}

.guide-article {
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.8;
}

.guide-article h2 {
  margin: 1.6rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
}

.guide-article p {
  margin: 0 0 1rem;
}

.guide-more {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-5);
}

.guide-next {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: inherit;
  text-decoration: none;
}

.guide-next__label,
.guide-related h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.guide-next__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.3;
}

.guide-related ul {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
}

.guide-related a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.guide-related a:hover {
  color: var(--accent);
}

.guide-promo {
  margin: 0 0 var(--space-6);
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
}

.guide-promo h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.guide-promo h2 a {
  color: inherit;
  text-decoration: none;
}

.guide-promo h2 a:hover {
  color: var(--accent);
}

.guide-promo p {
  margin: 0 0 0.9rem;
  max-width: 36rem;
}

.guide-promo__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
}

.guide-promo__file {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.guide-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.35rem;
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
  font-family: var(--font-ui);
  font-size: 0.82rem;
}

.guide-steps li {
  color: var(--ink-muted);
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.guide-steps li.is-current {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.guide-steps li.is-done {
  color: var(--accent);
  border-color: var(--accent);
}

.guide-choices {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  border-top: 1px solid var(--line);
}

.guide-choices a {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.guide-choices a:hover .guide-list__title {
  color: var(--accent);
}

.guide-choices__no {
  flex: 0 0 1.6rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--accent);
}

.guide-choices__goal {
  display: inline-block;
  margin-left: 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.guide-jump {
  margin: 0 0 var(--space-5);
  font-family: var(--font-ui);
}

.guide-jump a {
  color: var(--accent);
}

.guide-page .ad-slot--in-article,
.guide-page .ad-slot--after-article {
  max-width: none;
  padding-inline: 0;
}

.guide-page .ad-slot--after-article {
  margin-bottom: var(--space-5);
}
