.editorial-container {
  width: min(var(--ds-width), calc(100% - 2 * var(--ds-gutter)));
  margin-inline: auto;
}

.editorial-hero {
  padding-block: clamp(42px, 5vw, 72px);
  border-bottom: 1px solid var(--ds-line);
}

.editorial-hero h1, .editorial-news-post h1 {
  color: var(--ds-ink);
  font: 800 var(--ds-title)/1.14 var(--font-body);
  letter-spacing: -.03em;
}

.editorial-eyebrow { display: none; }

.editorial-intro {
  max-width: 42rem;
  margin-top: .75rem;
  color: var(--ds-muted);
  white-space: pre-line;
}

.editorial-content { padding-block: var(--ds-section); }
.editorial-empty { padding: 2.5rem 1rem; border-radius: var(--ds-card-radius); background: var(--ds-card); color: var(--ds-muted); text-align: center; }
.editorial-list, .editorial-cards, .editorial-downloads, .editorial-attachments ul { margin: 0; padding: 0; list-style: none; }
.editorial-list { overflow: hidden; border: 1px solid var(--ds-line); border-radius: var(--ds-card-radius); }
.editorial-list li + li { border-top: 1px solid var(--ds-line); }
.editorial-list a {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
}
.editorial-list--news a { padding-block: 1rem; }
.editorial-list a:hover, .editorial-list a:focus-visible { background: var(--ds-card); }
.editorial-list a:focus-visible { outline-offset: -3px; }
.editorial-kind { margin-right: .75rem; color: var(--ds-accent); font-size: .75rem; font-weight: 700; }
.editorial-list-title { font-weight: 700; }
.editorial-list--news .editorial-list-title { font-weight: 500; }
.editorial-list-copy { min-width: 0; }
.editorial-list-copy p { margin-top: .25rem; color: var(--ds-muted); font-size: .875rem; }
.editorial-list time { flex-shrink: 0; color: var(--ds-muted); font-size: .875rem; white-space: nowrap; }

.editorial-cards { display: grid; gap: var(--ds-gap); }
.editorial-cards a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--ds-card-radius);
  background: var(--ds-card);
  transition: transform var(--motion-base) var(--motion-ease);
}
.editorial-cards a:is(:hover, :focus-visible) { transform: translateY(-.2rem); }
.editorial-cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ds-card); }
.editorial-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--motion-slow) var(--motion-ease); }
.editorial-cards a:is(:hover, :focus-visible) img { transform: scale(1.03); }
.editorial-card-copy { padding: 1.5rem; }
.editorial-card-copy time { color: var(--ds-muted); font-size: .75rem; }
.editorial-card-copy h2 { margin-top: .5rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; }
.editorial-cards a:hover h2 { color: var(--ds-accent); }
.editorial-card-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: .75rem;
  color: var(--ds-muted);
  font-size: .875rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.editorial-expandable { border: 1px solid var(--ds-line); border-radius: var(--ds-card-radius); }
.editorial-expandable details + details { border-top: 1px solid var(--ds-line); }
.editorial-expandable summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1rem;
  cursor: pointer;
  font-weight: 700;
}
.editorial-expandable summary::-webkit-details-marker { display: none; }
.editorial-expandable summary span { color: var(--ds-accent); font-size: 1.25rem; transition: transform var(--motion-base) var(--motion-ease); }
.editorial-expandable details[open] summary span { transform: rotate(45deg); }
.editorial-expandable .editorial-answer { padding: 0 1rem 1.5rem; }

.editorial-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
.editorial-pagination a {
  display: grid;
  width: var(--ds-touch);
  height: var(--ds-touch);
  place-items: center;
  border: 1px solid var(--ds-line);
  border-radius: 999px;
  color: var(--ds-muted);
  font-size: .875rem;
}
.editorial-pagination a[aria-current="page"] { border-color: currentColor; color: var(--ds-accent); background: var(--ds-card); font-weight: 700; }
.editorial-pagination a:not([aria-current]):hover { border-color: var(--ds-accent); color: var(--ds-accent); }

.editorial-back, .editorial-post-date { color: var(--ds-muted); font-size: .875rem; }
.editorial-back:hover, .editorial-file-link:hover { color: var(--ds-accent); }
.editorial-news-post h1 { margin-top: 1rem; }
.editorial-news-post .editorial-post-date { margin-top: .5rem; }
.editorial-post-copy, .editorial-post-content { max-width: 56rem; margin-inline: auto; }
.editorial-post-copy .editorial-post-date { border-bottom: 1px solid var(--ds-line); padding-bottom: 1.25rem; }
.editorial-post-summary, .editorial-post-image, .editorial-content .site-rich-text { margin-top: 2rem; }
.editorial-post-image img { border-radius: var(--ds-banner-radius); }
.editorial-post-summary { color: var(--ds-secondary); line-height: 2; white-space: pre-line; }
.editorial-content .site-rich-text { max-width: 48rem; }
.editorial-attachments {
  max-width: 48rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ds-line);
}
.editorial-post-copy .editorial-attachments {
  padding: 1.25rem;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-small-radius);
  background: var(--ds-card);
}
.editorial-attachments h2 { font-size: 1.125rem; font-weight: 800; }
.editorial-attachments ul { margin-top: .75rem; }
.editorial-attachments li + li { margin-top: .5rem; }
.editorial-file-link, .editorial-back { display: inline-flex; min-height: var(--ds-touch); align-items: center; }
.editorial-file-link { color: var(--ds-accent); font-size: .875rem; font-weight: 700; text-decoration: underline; }
.editorial-post-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--ds-line); }
.editorial-button, .editorial-download-button { display: inline-flex; min-height: var(--ds-touch); align-items: center; border-radius: 999px; font-size: .875rem; font-weight: 700; }
.editorial-button { padding: .75rem 1.25rem; border: 1px solid var(--ds-line); }
.editorial-button:hover { border-color: var(--ds-accent); color: var(--ds-accent); }
.editorial-download-button {
  flex: none;
  padding: .5rem 1rem;
  border-radius: 999px;
  color: var(--ds-white);
  background: var(--ds-ink);
}
.editorial-download-button:hover { background: var(--ds-secondary); }
.editorial-content > .editorial-download-button { margin-top: 1rem; }
.editorial-downloads, .editorial-faq { display: grid; gap: 1rem; }
.editorial-downloads li, .editorial-faq details { border-radius: var(--ds-small-radius); background: var(--ds-card); }
.editorial-downloads li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; }
.editorial-downloads h2 { font-weight: 700; font-size: 1rem; }
.editorial-downloads h2 a:hover { color: var(--ds-accent); }
.editorial-downloads p { margin-top: .25rem; color: var(--ds-muted); font-size: .875rem; }
.editorial-faq summary { min-height: var(--ds-touch); padding: 1.125rem 1.25rem; cursor: pointer; font-weight: 700; }
.editorial-faq .editorial-disclosure { padding-inline: 1.25rem; }
.editorial-faq p, .editorial-answer { color: var(--ds-muted); font-size: .875rem; line-height: 1.75; white-space: pre-line; }
.editorial-faq p { margin: 0 0 1.25rem; }

@supports selector(details::details-content) and (transition-behavior: allow-discrete) and (interactivity: inert) {
  :is(.editorial-faq, .editorial-expandable) details::details-content {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows var(--motion-base) var(--motion-ease), opacity var(--motion-base) var(--motion-exit),
      content-visibility var(--motion-base);
    transition-behavior: allow-discrete;
  }
  :is(.editorial-faq, .editorial-expandable) details[open]::details-content {
    grid-template-rows: 1fr;
    opacity: 1;
    transition-timing-function: var(--motion-ease), var(--motion-enter);
  }
  .editorial-disclosure { min-block-size: 0; overflow: hidden; }
  details:not([open]) > .editorial-disclosure { interactivity: inert; }
}

@media (min-width: 640px) {
  .editorial-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
  .editorial-list a, .editorial-downloads li { flex-wrap: wrap; gap: .375rem 1rem; }
}

@media (min-width: 1024px) {
  .editorial-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-cards a, .editorial-cover img, .editorial-expandable summary span { transition: none; }
}
