/* Hallmark · genre: editorial · tone: calm and confident · palette: green/orange on warm paper · macrostructure: Ecosystem Index · system: accepted American Butler page-v2 · enrichment: E8 generated hero + real CMS card imagery · generated: OpenAI image_gen · post-processed: 1920×760 WebP · chrome: shared homepage header/footer · contrast: pass (40–41) · responsive: pass (49–57) */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4 · still editorial, discovery-first, no invented proof or decorative motion */
.ab-editorial {
  --ab-color-accent-ink: var(--ab-color-ink);
  --ab-color-focus: var(--ab-color-ink);
  min-width: 0;
  overflow: clip;
  background: var(--ab-color-paper);
  color: var(--ab-color-ink);
}

.ab-page-main.ab-editorial {
  padding-block-start: 0;
}

.ab-editorial :where(h1, h2, h3) {
  min-width: 0;
  font-style: normal;
  overflow-wrap: anywhere;
}

.ab-editorial .ab-page-button {
  color: var(--ab-color-on-dark);
}

.ab-editorial :where(h1, h2, h3, p, figure, blockquote) {
  margin-block-start: 0;
}

.ab-editorial-hero {
  position: relative;
  height: 40rem;
  min-height: 40rem;
  padding: 0;
  overflow: hidden;
  background: var(--ab-color-green);
  color: var(--ab-color-on-dark);
}

.ab-editorial-hero__background,
.ab-editorial-hero__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ab-editorial-hero__background {
  object-fit: cover;
  object-position: center 46%;
  transform: scale(1.012);
}

.ab-editorial-hero__scrim {
  background:
    radial-gradient(circle at 76% 42%, transparent 0 18%, oklch(12% .02 245 / .12) 52%),
    linear-gradient(90deg, oklch(11% .024 245 / .9) 0 40%, oklch(12% .022 245 / .5) 70%, oklch(12% .022 245 / .6));
}

.ab-editorial-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  height: 40rem;
  min-height: 40rem;
  flex-direction: column;
  justify-content: center;
  padding-block: 7rem 3.25rem;
}

.ab-editorial-hero .ab-page-breadcrumbs,
.ab-editorial-hero .ab-page-breadcrumbs a,
.ab-editorial-hero .ab-page-title {
  color: inherit;
}

.ab-editorial-hero .ab-page-breadcrumbs li:not(:last-child)::after {
  color: currentColor;
  opacity: .55;
}

.ab-editorial-hero .ab-page-title {
  max-width: 14ch;
}

.ab-editorial-hero .ab-page-lead {
  max-width: 43rem;
  color: oklch(96% .005 80 / .84);
}

.ab-editorial-hero__grid,
.ab-editorial-category-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ab-space-xl);
  align-items: center;
}

.ab-editorial-hero__grid {
  width: min(100%, 53rem);
}

.ab-editorial-hero__copy,
.ab-editorial-category-hero__grid > div {
  min-width: 0;
}

.ab-editorial-hero__media,
.ab-editorial-category-hero figure {
  min-width: 0;
  margin-block-end: 0;
  overflow: hidden;
  border-radius: var(--ab-radius-lg);
  background: var(--ab-color-surface-warm);
}

.ab-editorial-hero__media img,
.ab-editorial-category-hero figure img {
  display: block;
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
}

.ab-editorial-search-wrap {
  --ab-editorial-search-overlap: 4.5rem;
  position: relative;
  z-index: 1;
  margin-block-start: calc(-1 * var(--ab-editorial-search-overlap));
  padding-block-start: 0;
}

.ab-editorial-search {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--ab-color-rule);
  border-radius: var(--ab-radius-lg);
  background: var(--ab-color-surface);
  color: var(--ab-color-ink);
  box-shadow: var(--ab-shadow-float);
}

.ab-editorial-search__form > label {
  display: block;
  margin-block-end: var(--ab-space-sm);
  color: var(--ab-color-ink);
  font-size: var(--ab-text-md);
  font-weight: 800;
}

.ab-editorial-search__field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ab-space-sm);
}

.ab-editorial-search__field input {
  width: 100%;
  min-height: 3.25rem;
  padding: .75rem 3.25rem .75rem 1rem;
  border-width: 1px;
  outline: 2px solid transparent;
  outline-offset: 1px;
  background: var(--ab-color-surface);
  color: var(--ab-color-ink);
}

.ab-editorial-search__field input:hover {
  background: var(--ab-color-surface-soft);
}

.ab-editorial-search__field input:focus-visible {
  border-width: 1px;
  outline: 3px solid var(--ab-color-focus);
  outline-offset: 2px;
}

.ab-editorial-search__clear {
  position: absolute;
  inset-block-start: .25rem;
  inset-inline-end: .25rem;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--ab-radius-pill);
  background: transparent;
  color: var(--ab-color-muted);
  font: 500 1.5rem/1 var(--ab-font-body);
  cursor: pointer;
}

.ab-editorial-search__field:has(.ab-page-button) .ab-editorial-search__clear {
  inset-block-start: .25rem;
}

.ab-editorial-topics {
  display: grid;
  gap: var(--ab-space-sm);
  margin-block-start: var(--ab-space-lg);
  padding-block-start: var(--ab-space-lg);
  border-block-start: 1px solid var(--ab-color-rule);
}

.ab-editorial-topics > span {
  color: var(--ab-color-muted);
  font-size: var(--ab-text-sm);
  font-weight: 700;
}

.ab-editorial-topics > div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ab-space-xs);
}

.ab-editorial-topics a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: .5rem 1rem;
  border: 1px solid var(--ab-color-rule);
  border-radius: var(--ab-radius-pill);
  background: var(--ab-color-surface-soft);
  color: var(--ab-color-ink);
  font-size: var(--ab-text-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ab-editorial-section-head {
  max-width: 52rem;
  margin-block-end: clamp(2rem, 5vw, 4rem);
}

.ab-editorial-discovery .ab-editorial-section-head,
.ab-editorial-category-list .ab-editorial-section-head {
  margin-block-end: var(--ab-space-lg);
}

.ab-editorial-section-head p {
  max-width: 42rem;
  margin: var(--ab-space-md) 0 0;
  color: var(--ab-color-muted);
  font-size: var(--ab-text-md);
}

.ab-editorial-section-head--split {
  max-width: none;
}

.ab-editorial-section-head--split > a,
.ab-editorial-text-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  margin-block-start: var(--ab-space-md);
  color: var(--ab-color-accent-dark);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.ab-editorial-category-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ab-space-md);
}

.ab-editorial-guide-bridge__inner {
  min-height: clamp(14rem, 24vw, 18rem);
  position: relative;
  display: grid;
  gap: var(--ab-space-xl);
  align-items: center;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: var(--ab-radius-lg);
  isolation: isolate;
  background: var(--ab-color-ink);
  color: var(--ab-color-on-dark);
}

.ab-editorial-guide-bridge__inner > img,
.ab-editorial-guide-bridge__scrim {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -2;
  inset: 0;
}

.ab-editorial-guide-bridge__inner > img {
  object-fit: cover;
  opacity: .38;
}

.ab-editorial-guide-bridge__scrim {
  z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ab-color-ink) 96%, transparent), color-mix(in srgb, var(--ab-color-ink) 58%, transparent));
}

.ab-editorial-guide-bridge__copy {
  min-width: 0;
}

.ab-editorial-guide-bridge h2 {
  max-width: 18ch;
  margin: 0;
  color: var(--ab-color-on-dark);
  font-family: var(--ab-font-display);
  font-size: var(--ab-type-section-compact);
  font-style: normal;
  font-weight: var(--ab-weight-heading);
  letter-spacing: var(--ab-tracking-section-compact);
  line-height: var(--ab-leading-section-compact);
  text-wrap: balance;
}

.ab-editorial-guide-bridge p {
  max-width: 48rem;
  margin: var(--ab-space-sm) 0 0;
  color: color-mix(in srgb, var(--ab-color-on-dark) 82%, transparent);
  font-size: var(--ab-type-cta-body);
  line-height: var(--ab-leading-cta-body);
  text-wrap: pretty;
}

.ab-editorial-guide-bridge .ab-page-button {
  width: fit-content;
  justify-self: start;
  color: var(--ab-color-on-dark);
}

.ab-editorial-category-card {
  min-width: 0;
}

.ab-editorial-category-card__link {
  position: relative;
  min-height: 19rem;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--ab-radius-lg);
  background: var(--ab-color-green);
  color: var(--ab-color-on-dark);
  text-decoration: none;
}

.ab-editorial-category-card__link > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ab-duration-medium) var(--ab-ease-out);
}

.ab-editorial-category-card__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, oklch(12% .022 248 / .18) 52%, oklch(12% .022 248 / .94) 100%);
}

.ab-editorial-category-card__body {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-content: end;
  align-items: end;
  padding: var(--ab-card-padding-compact);
  padding-inline-end: calc(var(--ab-card-padding-compact) + 3.25rem);
  color: var(--ab-color-on-dark);
}

.ab-editorial-category-card__body strong {
  width: 100%;
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--ab-font-display);
  font-size: var(--ab-text-md);
  line-height: 1.08;
  letter-spacing: -.03em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ab-editorial-category-card__arrow {
  position: absolute;
  z-index: 2;
  inset-block-end: var(--ab-card-padding-compact);
  inset-inline-end: var(--ab-card-padding-compact);
  flex: 0 0 auto;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid oklch(100% 0 0 / .45);
  border-radius: 50%;
  font-size: 1.125rem;
}

.ab-editorial-reference {
  padding-block: var(--ab-section-compact);
  background: var(--ab-color-paper);
}

.ab-editorial-reference__disclosure {
  overflow: clip;
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--ab-color-rule-strong);
  border-radius: var(--ab-radius-lg);
  background: var(--ab-color-surface-warm);
}

.ab-editorial-reference__disclosure summary {
  display: grid;
  min-height: 7rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--ab-space-lg);
  padding-block: clamp(1.5rem, 3vw, 2rem);
  cursor: pointer;
  list-style: none;
}

.ab-editorial-reference__disclosure summary::-webkit-details-marker {
  display: none;
}

.ab-editorial-reference__disclosure summary:focus-visible {
  outline: 2px solid var(--ab-color-focus);
  outline-offset: 3px;
}

.ab-editorial-reference__disclosure summary small {
  display: block;
  margin-block-end: var(--ab-space-xs);
  color: var(--ab-color-accent-dark);
  font-size: var(--ab-text-xs);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ab-editorial-reference__disclosure summary strong {
  display: block;
  max-width: 22ch;
  font-family: var(--ab-font-display);
  font-size: var(--ab-type-section-compact);
  letter-spacing: var(--ab-tracking-section-compact);
  line-height: var(--ab-leading-section-compact);
}

.ab-editorial-reference__control {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding-inline: 1rem;
  border: 1px solid var(--ab-color-rule-strong);
  border-radius: var(--ab-radius-pill);
  color: var(--ab-color-ink);
  font-size: var(--ab-text-sm);
  font-weight: 800;
  white-space: nowrap;
}

.ab-editorial-reference__control > span {
  align-items: center;
  gap: .45rem;
}

.ab-editorial-reference__control-closed {
  display: inline-flex;
}

.ab-editorial-reference__control-open {
  display: none;
}

.ab-editorial-reference__disclosure[open] .ab-editorial-reference__control-closed {
  display: none;
}

.ab-editorial-reference__disclosure[open] .ab-editorial-reference__control-open {
  display: inline-flex;
}

.ab-editorial-reference__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: 0 clamp(2rem, 4vw, 3rem);
}

.ab-editorial-reference__content figure {
  min-width: 0;
  min-height: 22rem;
  margin: 0;
  display: grid;
  place-items: end center;
  overflow: hidden;
  border: 1px solid var(--ab-color-rule);
  border-radius: var(--ab-radius-lg);
  background: var(--ab-color-paper);
}

.ab-editorial-reference__content figure img {
  display: block;
  width: 100%;
  height: 22rem;
  object-fit: contain;
  object-position: center bottom;
}

.ab-editorial-reference__body {
  min-width: 0;
  max-width: 45rem;
  display: grid;
  align-content: start;
  gap: var(--ab-space-md);
}

.ab-editorial-reference__content h3 {
  max-width: 24ch;
  margin: 0;
  font-size: var(--ab-type-subheading);
  letter-spacing: -.035em;
}

.ab-editorial-reference__content h3:not(:first-child) {
  margin-block-start: var(--ab-space-md);
  padding-block-start: var(--ab-space-lg);
  border-block-start: 1px solid var(--ab-color-rule);
}

.ab-editorial-reference__content .ab-editorial-prose {
  max-width: 62rem;
}

.ab-editorial-reference__content .ab-editorial-prose h3 {
  margin-block-end: var(--ab-space-xs);
}

.ab-editorial-reference__content .ab-editorial-prose :where(ul, ol) {
  display: grid;
  gap: var(--ab-space-xs);
}

.ab-editorial-reference__content .ab-editorial-prose ul {
  padding-inline-start: 1.15rem;
  list-style: none;
}

.ab-editorial-reference__content .ab-editorial-prose ul > li {
  position: relative;
}

.ab-editorial-reference__content .ab-editorial-prose ul > li::before {
  position: absolute;
  inset-block-start: .72em;
  inset-inline-start: -1rem;
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: var(--ab-color-accent);
  content: '';
  transform: translateY(-50%);
}

.ab-editorial-reference__content .ab-editorial-prose ol {
  list-style-type: decimal;
}

.ab-editorial-reference__content .ab-editorial-prose ol > li::marker {
  color: var(--ab-color-accent);
  font-weight: 800;
}

.ab-editorial-reference__body > .ab-editorial-text-link {
  min-height: 3rem;
  margin-block-start: var(--ab-space-sm);
  padding: .75rem 1.25rem;
  justify-self: start;
  border-radius: var(--ab-radius-pill);
  background: var(--ab-color-ink);
  color: var(--ab-color-on-dark);
}

/* The shared newsletter owns the terminal gap, so the hub CTA must not add a
   second full section of trailing whitespace before it. */
.ab-editorial-hub-cta {
  padding-block-end: 0;
}

.ab-editorial-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ab-space-lg);
}

.ab-editorial-article-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-block-start: 1px solid var(--ab-color-rule-strong);
  background: var(--ab-color-paper);
}

.ab-editorial-article-card__media {
  display: block;
  min-height: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--ab-radius-md);
  background: var(--ab-color-surface-warm);
  color: var(--ab-color-ink);
  text-decoration: none;
}

.ab-editorial-article-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: opacity var(--ab-duration-short) var(--ab-ease-out);
}

.ab-editorial-article-card__placeholder {
  min-height: 100%;
  display: grid;
  place-items: center;
  color: var(--ab-color-muted);
  font-weight: 800;
}

.ab-editorial-article-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: var(--ab-space-md) var(--ab-space-lg);
}

.ab-editorial-article-card__category {
  max-width: 100%;
  display: block;
  overflow: hidden;
  color: var(--ab-color-green);
  font-size: var(--ab-text-xs);
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ab-editorial-article-card h3 {
  min-width: 0;
  margin: var(--ab-space-sm) 0 0;
  font-family: var(--ab-font-display);
  font-size: var(--ab-type-card);
  font-weight: var(--ab-weight-heading);
  line-height: var(--ab-leading-card);
  letter-spacing: -.035em;
  overflow-wrap: break-word;
  word-break: normal;
}

.ab-editorial-article-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--ab-color-ink);
  text-decoration: none;
}

.ab-editorial-article-card p {
  margin: var(--ab-space-sm) 0 0;
  color: var(--ab-color-muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ab-editorial-article-card__more {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  margin-block-start: auto;
  padding-block-start: var(--ab-space-sm);
  color: var(--ab-color-accent-dark);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

/* Editorial category cards reuse the approved home cover-card contract. The
   category owns only grid sizing and link semantics; the protected home
   component and its assets remain untouched. */
.ab-editorial-article-card.art-card {
  width: 100%;
  height: 28.4375rem;
  min-height: 28.4375rem;
  display: block;
  border: 0;
  border-radius: 1rem;
  background: transparent;
}

.ab-editorial-article-card .art-card__title {
  width: 100%;
  height: 3.25rem;
  min-height: 3.25rem;
  margin: 0;
  padding-block-end: 0;
  color: var(--ab-color-ink);
  font-family: var(--ab-font-display);
  font-size: var(--ab-type-card-compact);
  font-weight: var(--ab-weight-strong);
  line-height: 1.2;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.ab-editorial-article-card .art-card__title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: inherit;
  text-decoration: none;
}

.ab-editorial-article-card .art-card__text {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow-wrap: anywhere;
}

.ab-editorial-article-card.art-card--feat .art-card__title {
  color: var(--ab-color-on-dark);
}

.ab-editorial-article-card .art-card__media:focus-visible,
.ab-editorial-article-card .art-card__title a:focus-visible,
.ab-editorial-article-card .art-more:focus-visible {
  outline: 2px solid var(--ab-color-accent);
  outline-offset: 3px;
}

.ab-editorial-article-card .art-card__media:focus-visible {
  border-radius: 1rem;
}

.ab-editorial-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ab-space-sm);
  margin-block-start: var(--ab-space-xl);
}

.ab-editorial-pager__button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border: 1px solid var(--ab-color-rule-strong);
  border-radius: var(--ab-radius-pill);
  background: var(--ab-color-surface);
  color: var(--ab-color-ink);
  font: 700 var(--ab-text-sm)/1 var(--ab-font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.ab-editorial-pager__button:disabled,
.ab-editorial-pager__button.is-disabled,
.ab-editorial-pager__button[aria-disabled='true'] {
  opacity: .5;
  cursor: not-allowed;
}

.ab-editorial-pager__button[aria-busy='true'] {
  cursor: progress;
}

.ab-editorial-pager__status {
  color: var(--ab-color-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ab-editorial-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--ab-space-xl);
  border: 1px solid var(--ab-color-rule);
  border-radius: var(--ab-radius-lg);
  background: var(--ab-color-surface-soft);
  color: var(--ab-color-muted);
}

.ab-editorial-seo {
  background: var(--ab-color-surface-warm);
  color: var(--ab-color-ink);
}

.ab-editorial-seo__grid,
.ab-editorial-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ab-space-xl);
  align-items: start;
}

.ab-editorial-seo figure,
.ab-editorial-about img {
  margin-block-end: 0;
  border-radius: var(--ab-radius-lg);
}

.ab-editorial-seo figure img,
.ab-editorial-about > .ab-page-container > img,
.ab-editorial-about__grid > img {
  display: block;
  width: 100%;
  max-height: 38rem;
  object-fit: cover;
}

.ab-editorial-prose {
  min-width: 0;
  color: var(--ab-color-ink-soft);
  overflow-wrap: anywhere;
}

.ab-editorial-prose :where(p, ul, ol, blockquote) {
  margin-block: 0 var(--ab-space-md);
}

.ab-editorial-prose :where(ul, ol) {
  padding-inline-start: 1.5rem;
}

.ab-editorial-feature-intro .ab-editorial-prose :where(ul, ol) {
  display: grid;
  gap: var(--ab-space-xs);
}

.ab-editorial-feature-intro .ab-editorial-prose ul {
  padding-inline-start: 1.15rem;
  list-style: none;
}

.ab-editorial-feature-intro .ab-editorial-prose ul > li {
  position: relative;
}

.ab-editorial-feature-intro .ab-editorial-prose ul > li::before {
  position: absolute;
  inset-block-start: .72em;
  inset-inline-start: -1rem;
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: var(--ab-color-accent);
  content: '';
  transform: translateY(-50%);
}

.ab-editorial-feature-intro .ab-editorial-prose ol:not([style]):not(:has(> li .span_blue)) {
  list-style-type: decimal;
}

.ab-editorial-feature-intro .ab-editorial-prose ol:not(:has(> li .span_blue)) > li::marker {
  color: var(--ab-color-accent);
  font-weight: 800;
}

/* Some legacy editorial lists combine a semantic <ol> with typed `01.`
   prefixes. Keep the list semantics, but expose exactly one visual index. */
:where(.ab-editorial-rich__content, .ab-editorial-feature-intro) .ab-editorial-prose ol:has(> li .span_blue) {
  padding-inline-start: 0;
  list-style: none !important;
  counter-reset: ab-editorial-manual-list;
}

:where(.ab-editorial-rich__content, .ab-editorial-feature-intro) .ab-editorial-prose ol:has(> li .span_blue) > li {
  position: relative;
  padding-inline-start: 2.25rem;
  counter-increment: ab-editorial-manual-list;
}

:where(.ab-editorial-rich__content, .ab-editorial-feature-intro) .ab-editorial-prose ol:has(> li .span_blue) > li .span_blue {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  min-width: 1.75rem;
  color: var(--ab-color-accent-dark);
  font-size: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: .02em;
}

:where(.ab-editorial-rich__content, .ab-editorial-feature-intro) .ab-editorial-prose ol:has(> li .span_blue) > li .span_blue::before {
  color: var(--ab-color-accent-dark);
  content: counter(ab-editorial-manual-list, decimal-leading-zero);
  font-size: 1rem;
  line-height: inherit;
}

.ab-editorial-prose a {
  color: var(--ab-color-accent-dark);
  text-decoration-thickness: .08em;
  text-underline-offset: .15em;
}

.ab-editorial-prose :where(h2, h3, h4) {
  margin: var(--ab-space-xl) 0 var(--ab-space-md);
  color: var(--ab-color-ink);
  font-family: var(--ab-font-display);
  font-style: normal;
  font-weight: var(--ab-weight-heading);
  line-height: var(--ab-leading-section-compact);
  overflow-wrap: anywhere;
}

.ab-editorial-prose h2 {
  font-size: var(--ab-type-section-compact);
  letter-spacing: var(--ab-tracking-section-compact);
}

.ab-editorial-prose h3 {
  font-size: var(--ab-type-subheading);
}

.ab-editorial-prose h4 {
  font-size: var(--ab-type-card-compact);
}

.ab-editorial-category-hero {
  background: var(--ab-color-ink);
}

.ab-editorial-category-list {
  border-block-end: 0;
}

.ab-editorial-sponsor {
  display: grid;
  gap: var(--ab-space-xs);
  padding-block: var(--ab-section-compact);
}

.ab-editorial-sponsor small {
  color: var(--ab-color-muted);
  font-size: var(--ab-text-xs);
}

.ab-editorial-sponsor a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--ab-color-rule);
  border-radius: var(--ab-radius-md);
  background: var(--ab-color-surface-soft);
}

.ab-editorial-sponsor img {
  display: block;
  width: 100%;
  height: auto;
}

.ab-editorial-rich__mobile-toc {
  margin-block-end: var(--ab-space-xl);
  border: 1px solid var(--ab-color-rule);
  border-radius: var(--ab-radius-md);
  background: var(--ab-color-surface);
}

.ab-editorial-rich__mobile-toc summary,
.ab-editorial-faq summary {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ab-space-md);
  padding: var(--ab-space-md);
  color: var(--ab-color-ink);
  font-weight: 800;
  cursor: pointer;
}

.ab-editorial-rich__mobile-toc nav {
  display: grid;
  gap: var(--ab-space-sm);
  padding: 0 var(--ab-space-md) var(--ab-space-md);
}

.ab-editorial-rich__mobile-toc a,
.ab-editorial-rich__aside a {
  position: relative;
  color: var(--ab-color-ink-soft);
  text-decoration: none;
}

.ab-editorial-rich__mobile-toc a.is-active,
.ab-editorial-rich__mobile-toc a[aria-current='location'],
.ab-editorial-rich__aside a.is-active,
.ab-editorial-rich__aside a[aria-current='location'] {
  color: var(--ab-color-ink);
  font-weight: 800;
}

.ab-editorial-rich__aside a.is-active::before,
.ab-editorial-rich__aside a[aria-current='location']::before {
  position: absolute;
  inset-block: .15rem;
  inset-inline-start: calc(var(--ab-space-md) * -1);
  width: 2px;
  border-radius: var(--ab-radius-pill);
  background: var(--ab-color-accent);
  content: '';
}

.ab-editorial-rich__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ab-space-xl);
}

.ab-editorial-rich__content,
.ab-editorial-rich__section {
  min-width: 0;
}

.ab-editorial-rich__content .ab-editorial-prose {
  max-width: 72ch;
}

.ab-editorial-feature-intro,
.ab-editorial-rich__section,
.ab-editorial-faq,
.ab-editorial-history {
  scroll-margin-block-start: 8rem;
}

.ab-editorial-rich__section {
  margin-block-end: var(--ab-section-related);
}

.ab-editorial-feature-intro {
  display: grid;
  gap: var(--ab-space-md);
  margin-block-end: var(--ab-section-related);
  padding-block: var(--ab-space-lg);
  padding-inline: clamp(var(--ab-space-lg), 3vw, var(--ab-space-xl));
  border: 1px solid var(--ab-color-rule);
  border-radius: var(--ab-radius-lg);
  background: var(--ab-color-surface-soft);
}

.ab-editorial-feature-intro > h2 {
  position: relative;
  max-width: none;
  margin: 0;
  padding-block-end: var(--ab-space-md);
  border-block-end: 1px solid var(--ab-color-rule-strong);
  font-size: var(--ab-type-section);
  font-weight: var(--ab-weight-heading);
  line-height: var(--ab-leading-section);
  letter-spacing: var(--ab-tracking-section);
  text-wrap: balance;
}

.ab-editorial-feature-intro > h2::after {
  position: absolute;
  inset-block-end: -1px;
  inset-inline-start: 0;
  width: var(--ab-space-xl);
  height: calc(var(--ab-space-xs) / 6);
  border-radius: var(--ab-radius-pill);
  background: var(--ab-color-accent);
  content: '';
}

.ab-editorial-feature-intro__body,
.ab-editorial-feature-intro__copy {
  min-width: 0;
}

.ab-editorial-feature-intro__copy {
  max-width: 62ch;
  display: grid;
  gap: var(--ab-space-md);
}

.ab-editorial-feature-intro__copy > .ab-editorial-prose {
  font-size: var(--ab-reading-body-size);
  line-height: var(--ab-reading-body-leading);
  text-wrap: pretty;
}

.ab-editorial-feature-intro__copy > .ab-editorial-prose > p:first-child {
  text-wrap: balance;
}

.ab-editorial-feature-intro__continuation {
  max-width: 72ch;
  padding-block-start: var(--ab-space-md);
  border-block-start: 1px solid var(--ab-color-rule);
}

.ab-editorial-feature-intro .ab-editorial-feature-intro__figure {
  width: min(100%, 52rem);
  margin: var(--ab-space-md) 0 0;
  overflow: hidden;
  border-radius: var(--ab-radius-md);
  aspect-ratio: 17 / 10;
}

.ab-editorial-feature-intro .ab-editorial-feature-intro__figure img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--ab-radius-md);
  object-fit: cover;
}

.ab-editorial-rich__content > :last-child,
.ab-editorial-rich__content > :last-child > :last-child,
.ab-editorial-rich__content > :last-child .ab-editorial-prose > :last-child {
  margin-block-end: 0;
}

/* Legacy owners may project whitespace-only section shells after the final
   visible block. Treat the last block with real descendants as the visual
   boundary, so the following rail remains the sole owner of its 64/48 gap. */
.ab-editorial-rich__content > :where(.ab-editorial-rich__section, .ab-editorial-history):not(:has(*)) {
  display: none;
}

.ab-page-document--editorial .ab-editorial-rich__content > :has(*):not(:has(~ * > *)),
.ab-page-document--editorial .ab-editorial-rich__content > :has(*):not(:has(~ * > *)) > :last-child,
.ab-page-document--editorial .ab-editorial-rich__content > :has(*):not(:has(~ * > *)) .ab-editorial-prose > :last-child {
  margin-block-end: 0;
}

.ab-editorial-rich figure {
  margin: var(--ab-space-xl) 0;
}

.ab-editorial-rich__section > figure {
  width: min(100%, 52rem);
  aspect-ratio: 17 / 10;
  overflow: hidden;
  border-radius: var(--ab-radius-md);
}

.ab-editorial-rich figure img,
.ab-editorial-history__image {
  display: block;
  width: 100%;
  border-radius: var(--ab-radius-md);
}

.ab-editorial-rich__section > figure img {
  height: 100%;
  object-fit: cover;
}

/* The newsletter owns the terminal family gap. Editorial CTA compositions
   therefore surrender their trailing section padding without affecting the
   same shared component in service, home, or other page families. */
.ab-page-document--editorial .ab-service-family-cta {
  padding-block-end: 0;
}

.ab-editorial-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ab-space-sm);
}

.ab-editorial-facts article {
  padding-block: var(--ab-space-md);
  border-block-start: 1px solid var(--ab-color-rule);
}

.ab-editorial-facts h3 {
  margin-block-end: var(--ab-space-sm);
  color: var(--ab-color-ink);
  font-family: var(--ab-font-display);
  font-size: var(--ab-type-card);
  font-style: normal;
}

.ab-editorial-quote {
  margin: 0 0 var(--ab-section-related);
  padding: var(--ab-space-xl);
  border-radius: var(--ab-radius-lg);
  background: var(--ab-color-green);
  color: var(--ab-color-on-dark);
  font-family: var(--ab-font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.ab-editorial-quote cite {
  display: block;
  margin-block-start: var(--ab-space-md);
  font-family: var(--ab-font-body);
  font-size: var(--ab-text-sm);
  font-style: normal;
}

.ab-editorial-faq {
  margin-block-end: var(--ab-section-related);
}

.ab-editorial-faq details {
  border-block-start: 1px solid var(--ab-color-rule);
}

.ab-editorial-faq details:last-child {
  border-block-end: 1px solid var(--ab-color-rule);
}

.ab-editorial-faq details > .ab-editorial-prose {
  padding: 0 var(--ab-space-md) var(--ab-space-md);
}

.ab-editorial-faq details > .ab-editorial-prose > :last-child {
  margin-block-end: 0;
}

.ab-editorial-history {
  display: grid;
  gap: var(--ab-space-lg);
}

.ab-editorial-history__link {
  min-width: 0;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  gap: var(--ab-space-md);
  align-items: center;
  padding: var(--ab-space-sm);
  border: 1px solid var(--ab-color-rule);
  border-radius: var(--ab-radius-md);
  background: var(--ab-color-surface);
  color: var(--ab-color-ink);
  text-decoration: none;
}

.ab-editorial-history__link img {
  width: 5rem;
  aspect-ratio: 1;
  border-radius: var(--ab-radius-sm);
  object-fit: cover;
}

.ab-editorial-history__link:not(:has(> img:not([hidden]))) {
  grid-template-columns: minmax(0, 1fr) auto;
}

.ab-editorial-history__link > img[hidden] {
  display: none;
}

.ab-editorial-history__link span {
  min-width: 0;
  display: grid;
}

.ab-editorial-history__link small {
  color: var(--ab-color-muted);
}

.ab-editorial-history__link strong {
  overflow-wrap: anywhere;
}

.ab-editorial-media-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(16rem, 78%);
  gap: var(--ab-space-md);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--ab-color-rule-strong) transparent;
}

.ab-editorial-media-rail img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--ab-radius-md);
  object-fit: cover;
  scroll-snap-align: start;
}

.ab-editorial-rich__aside {
  display: none;
}

.ab-editorial :where(a, button):active {
  opacity: .82;
}

@media (hover: hover) and (pointer: fine) {
  .ab-editorial-category-card__link:hover > img {
    transform: scale(1.025);
  }

  .ab-editorial-category-card__link:hover .ab-editorial-category-card__arrow {
    border-color: var(--ab-color-accent);
    background: var(--ab-color-accent);
  }

  .ab-editorial-reference__body > .ab-editorial-text-link:hover {
    background: var(--ab-color-accent);
    color: var(--ab-color-ink);
  }

  .ab-editorial-article-card__media:hover img {
    opacity: .88;
  }

  .ab-editorial-topics a:hover,
  .ab-editorial-pager__button:hover:not(:disabled):not(.is-disabled) {
    border-color: var(--ab-color-accent);
  }
}

@media (min-width: 40rem) {
  .ab-editorial-search__field {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ab-editorial-search__clear {
    inset-inline-end: 7.75rem;
  }

  .ab-editorial-topics {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .ab-editorial-category-grid,
  .ab-editorial-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ab-editorial-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ab-editorial-section-head--split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--ab-space-xl);
  }

  .ab-editorial-section-head--split > a {
    margin-block-start: 0;
  }

  .ab-editorial-pager {
    justify-content: center;
  }

  .ab-editorial-pager__status {
    min-width: 5rem;
    text-align: center;
  }
}

@media (min-width: 60rem) {
  .ab-editorial-search-wrap {
    --ab-editorial-search-overlap: 3.5rem;
  }

  .ab-editorial-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ab-editorial-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ab-editorial-guide-bridge__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ab-editorial-guide-bridge .ab-page-button {
    justify-self: end;
  }

  .ab-editorial[data-editorial-mode='useful'] .ab-editorial-category-card__link {
    min-height: clamp(19rem, 24vw, 26rem);
  }

  .ab-editorial-article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ab-editorial-seo__grid,
  .ab-editorial-about__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(20rem, .8fr);
    gap: clamp(3rem, 7vw, 7rem);
  }

  .ab-editorial-about__grid > img {
    order: -1;
  }

  .ab-editorial-rich__mobile-toc {
    display: none;
  }

  .ab-editorial-rich__layout {
    grid-template-columns: minmax(0, 3fr) minmax(15rem, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
  }

  .ab-editorial-rich__layout:not(:has(> .ab-editorial-rich__aside)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .ab-editorial-rich__layout:not(:has(> .ab-editorial-rich__aside)) > .ab-editorial-rich__content {
    width: 100%;
    max-width: none;
  }

  .ab-editorial-feature-intro__body:has(> .ab-editorial-feature-intro__figure) {
    display: flow-root;
  }

  .ab-editorial-feature-intro__body:has(> .ab-editorial-feature-intro__figure) > .ab-editorial-feature-intro__copy {
    width: 100%;
    max-width: none;
    display: block;
  }

  .ab-editorial-feature-intro__body:has(> .ab-editorial-feature-intro__figure) > .ab-editorial-feature-intro__copy .ab-editorial-prose > :where(ul, ol) {
    display: block;
    clear: none;
  }

  .ab-editorial-feature-intro__body:has(> .ab-editorial-feature-intro__figure) > .ab-editorial-feature-intro__copy .ab-editorial-prose > :where(ul, ol) > li + li {
    margin-block-start: var(--ab-space-xs);
  }

  .ab-editorial-feature-intro__body:has(> .ab-editorial-feature-intro__figure) > .ab-editorial-feature-intro__figure {
    float: right;
    width: min(40%, 30rem);
    height: auto;
    margin: 0 0 var(--ab-space-sm) var(--ab-space-md);
    aspect-ratio: 17 / 10;
  }

  .ab-editorial-rich__aside {
    display: block;
  }

  .ab-editorial-reference__content {
    grid-template-columns: minmax(17rem, 20rem) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2.5rem, 5vw, 4rem);
  }

  .ab-editorial-reference__content:not(:has(> figure)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .ab-editorial-reference__content figure {
    position: sticky;
    inset-block-start: 7.5rem;
    min-height: 27.5rem;
  }

  .ab-editorial-reference__content figure img {
    height: 27.5rem;
  }

}

@media (min-width: 90rem) {
  .ab-editorial-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ab-editorial[data-editorial-mode='useful'] .ab-editorial-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ab-editorial-article-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--ab-space-md);
  }

  .ab-editorial-category-card__link {
    min-height: 20rem;
  }

  .ab-editorial[data-editorial-mode='useful'] .ab-editorial-category-card__link {
    min-height: clamp(19rem, 24vw, 26rem);
  }
}

@media (max-width: 48rem) {
  .ab-editorial-feature-intro__body:has(> .ab-editorial-feature-intro__figure) > .ab-editorial-feature-intro__copy {
    margin-block-start: var(--ab-space-lg);
  }

  .ab-editorial-article-card.art-card {
    width: 100%;
    height: 26.25rem;
    min-height: 26.25rem;
    justify-self: stretch;
  }

  .ab-editorial-topics > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .ab-editorial-topics a {
    width: 100%;
    min-width: 0;
    height: auto;
    justify-content: flex-start;
    padding-block: .7rem;
    line-height: 1.35;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .ab-editorial-hero,
  .ab-editorial-hero__inner {
    height: auto;
    min-height: 34rem;
  }

  .ab-editorial-hero__inner {
    padding-block: 6.5rem 2.75rem;
  }

  .ab-editorial-hero__scrim {
    background: linear-gradient(180deg, oklch(12% .022 248 / .56), oklch(12% .022 248 / .92));
  }

  .ab-editorial-category-card__link {
    width: min(100%, 20rem);
    min-height: 19rem;
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-editorial-article-card.art-card,
  .ab-editorial-article-card .art-card__media,
  .ab-editorial-article-card .art-card__image,
  .ab-editorial-article-card .art-card__grad,
  .ab-editorial-article-card .art-card__content,
  .ab-editorial-article-card .art-card__label {
    transition-duration: .01ms;
  }
}

@media (pointer: coarse) {
  .ab-editorial-topics a,
  .ab-editorial-pager__button,
  .ab-editorial-search__clear {
    min-height: 3rem;
  }
}
