/* Editorial listicle pages. KRH tokens and self-hosted fonts only. */

.ed-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ed-skip:focus {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
}

.ed {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 0;
  color: var(--ink);
}

.ed-crumb {
  font-size: 0.8125rem;
  margin: 0 0 1rem;
}

.ed-crumb a {
  color: inherit;
}

.ed-disclosure {
  margin: 0 0 2.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

.ed-hero {
  text-align: center;
  padding-bottom: 2.75rem;
}

.ed-kicker {
  margin: 0;
  font-family: var(--font-mono), ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.ed h1 {
  margin: 0.9rem 0 1rem;
  font-family: var(--font-serif), ui-serif, Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.05rem, 4.4vw, 3.15rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.ed-lede {
  max-width: 38rem;
  margin: 0 auto 1.6rem;
  font-family: var(--font-serif), ui-serif, Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
}

.ed-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.35rem;
}

.ed-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.ed-pill:hover {
  background: #144ab4;
  color: var(--primary-foreground);
}

.ed-pill:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.ed-mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--primary);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ed-quiet {
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.ed-quiet a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ed-boundary {
  max-width: 40rem;
  margin: 1.35rem auto 0;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.ed-section {
  padding-top: 2.75rem;
}

.ed-section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif), ui-serif, Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.ed-intro {
  margin: 0 0 1.15rem;
  max-width: 62ch;
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.ed-reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.ed-reasons > li {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.35rem 1.25rem;
  padding: 1.45rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.ed-num {
  font-family: var(--font-mono), ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--primary);
  padding-top: 0.28rem;
}

.ed-reasons h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif), ui-serif, Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.ed-reasons p,
.ed-prose p,
.ed-faq p {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.ed-prose p + p,
.ed-faq p {
  margin-top: 0.9rem;
}

.ed a:not(.ed-pill) {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ed-faq {
  border-top: 1px solid var(--rule);
}

.ed-faq details {
  border-bottom: 1px solid var(--rule);
}

.ed-faq summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: 0.85rem 0;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
}

.ed-faq summary::-webkit-details-marker,
.ed-faq summary::marker {
  display: none;
  content: "";
}

.ed-faq summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  margin-left: auto;
  background:
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.ed-faq details[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.ed-faq summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.ed-faq details p {
  padding-bottom: 1.05rem;
}

.ed-related {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.ed-related li {
  border-bottom: 1px solid var(--rule);
}

.ed-related a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.7rem 0;
  font-size: 1rem;
  line-height: 1.4;
}

.ed-band {
  margin-top: 3.25rem;
  background: var(--brand-deep);
  color: #fff;
}

.ed-band-inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.25rem 1.25rem 3.5rem;
  text-align: center;
}

.ed-band h2 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-family: var(--font-serif), ui-serif, Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ed-band p {
  margin: 0 auto 1.35rem;
  max-width: 38rem;
  color: #d5e4f5;
  font-size: 1.02rem;
  line-height: 1.65;
}

.ed-band .ed-actions {
  margin-bottom: 0.25rem;
}

.ed-band .ed-pill {
  background: #87bcf7;
  color: #0b2545;
}

.ed-band .ed-pill:hover {
  background: #fff;
  color: #0b2545;
}

.ed-band .ed-pill:focus-visible {
  outline-color: #fff;
}

.ed-band .ed-mail {
  color: #d5e4f5;
}

body.ed-page > footer {
  margin-top: 0;
}

@media (max-width: 640px) {
  .ed {
    padding-top: 1.15rem;
  }

  .ed-disclosure {
    margin-bottom: 1.15rem;
    padding: 0.8rem 0.9rem;
  }

  .ed h1 {
    margin: 0.55rem 0 0.7rem;
    font-size: 1.85rem;
  }

  .ed-lede {
    margin-bottom: 1rem;
    font-size: 1.05rem;
  }

  .ed-hero {
    padding-bottom: 1.75rem;
  }

  .ed-actions {
    flex-direction: column;
  }

  .ed-pill {
    width: auto;
    max-width: 100%;
  }

  .ed-reasons > li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .ed-num {
    font-size: 1.25rem;
    padding-top: 0;
  }
}
