/* ============================================================
   App Monkey — Editorial layer (technology publication)
   Loaded after appmonkey-2026.css. Prefix: ed-
   Reuses the --am-* tokens; adds a serif for headlines/reading.
   ============================================================ */
:root {
  --ed-serif: var(--am-font-display);  /* name kept; now the original Bricolage Grotesque */
  --ed-rule: #e4ddd0;
  --ed-ad-bg: #f2f0ea;
}

/* Display face (Bricolage Grotesque) for editorial headlines. Prefixed with .font-enforcer to beat its global h1-h3 rule. */
.font-enforcer :is(.ed-hero__title, .ed-section__title, .ed-featured__title, .ed-story__title, .ed-ranked__title,
  .ed-topics a, .ed-pagehead__title, .ed-search__label) { font-family: var(--ed-serif); }
.font-enforcer .ed-ad__headline { font-family: var(--am-font-display); }

/* ---------- Nav tweaks (Search is a nav item now) ---------- */
.nav-link[aria-current="page"] { color: var(--am-ink); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-search { display: inline-flex; align-items: center; gap: 7px; }
.ed-search { border: 0; border-radius: var(--r-lg); padding: 0; width: min(640px, calc(100% - 32px)); margin-top: 12vh; box-shadow: 0 24px 60px rgba(23,19,16,.28); background: var(--am-surface); }
.ed-search::backdrop { background: rgba(23,19,16,.5); }
.ed-search__form { padding: 24px; position: relative; }
.ed-search__label { display: block; font-family: var(--ed-serif); font-weight: 700; font-size: 1.5rem; margin-bottom: 14px; color: var(--am-ink); }
.ed-search__row { display: flex; gap: 10px; }
.ed-search__row input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid var(--am-border-2); border-radius: var(--r-md); background: #fff; color: var(--am-ink); }
.ed-search__row input:focus { border-color: var(--am-blue); }
.ed-search__close { position: absolute; top: 18px; right: 20px; background: none; border: 0; color: var(--am-muted); font-weight: 700; cursor: pointer; }

/* ---------- Shared type ---------- */
.ed-eyebrow { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--am-blue); margin: 0 0 14px; }
.ed-kicker { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-kicker a { color: var(--am-blue); text-decoration: none; }
.ed-kicker a:hover { text-decoration: underline; }
.ed-meta { font-size: var(--fs-meta); color: var(--am-muted); font-weight: 700; margin: 0; }
.ed-link { font-weight: 700; font-size: .9375rem; color: var(--am-blue); text-decoration: none; white-space: nowrap; }
.ed-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ed-sponsored { background: var(--am-ink); color: #fff; padding: 2px 7px; border-radius: 3px; letter-spacing: .08em; }

/* ---------- Hero ---------- */
.ed-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--ed-rule); }
.ed-hero__grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ed-hero__copy { max-width: 760px; }
.ed-hero__title { font-family: var(--ed-serif); font-weight: 800; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -.03em; color: var(--am-ink); margin: 0 0 20px; text-wrap: balance; }
.ed-hero__sub { font-size: 1.1875rem; line-height: 1.55; color: var(--am-body); max-width: 560px; margin: 0 0 28px; }
.ed-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ed-hero__mascot { width: 220px; height: 220px; flex: none; mix-blend-mode: multiply; }

/* ---------- Advertisement (always labelled, never styled like a story) ---------- */
.ed-ad { margin: 32px 0; padding: 10px 12px 12px; background: var(--ed-ad-bg); border: 1px dashed #c9c1b0; border-radius: var(--r-sm); }
.ed-ad__label { margin: 0 0 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #6f6759; }
.ed-ad__body { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; background: #fff; border: 1px solid var(--ed-rule); border-radius: 6px; text-decoration: none; color: var(--am-ink); }
.ed-ad__body:hover { border-color: var(--am-blue); text-decoration: none; color: var(--am-ink); }
.ed-ad__copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ed-ad__headline { font-family: var(--am-font-display); font-size: 1.0625rem; }
.ed-ad__desc { font-size: var(--fs-sm); color: var(--am-body); }
.ed-ad__logo { height: 26px; width: auto; align-self: flex-start; margin-bottom: 4px; }
.ed-ad__cta { flex: none; font-weight: 700; font-size: var(--fs-sm); color: var(--am-blue); }
.ed-ad__body:has(.ed-ad__creative) { padding: 0; overflow: hidden; }
.ed-ad__creative { display: block; width: 100%; }
.ed-ad__creative img { display: block; width: 100%; height: auto; }
.ed-ad--article-sidebar .ed-ad__body { flex-direction: column; align-items: flex-start; }
@media (max-width: 640px) { .ed-ad__body { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* ---------- Sections ---------- */
.ed-section { padding-block: 40px 8px; }
.ed-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 12px; margin-bottom: 24px; border-bottom: 1px solid var(--ed-rule); }
.ed-section__title { font-family: var(--ed-serif); font-weight: 700; font-size: 1.75rem; letter-spacing: -.01em; margin: 0; color: var(--am-ink); }
.ed-section__head, .ed-pagehead { position: relative; }
/* Brand rule: hairline with a yellow pill and a blue dot (the banana + the blue accent) */
.ed-section__head::after, .ed-pagehead::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 76px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='8'%3E%3Crect width='56' height='8' rx='4' fill='%23ffd94d'/%3E%3Ccircle cx='68' cy='4' r='4' fill='%231d4ed8'/%3E%3C/svg%3E") no-repeat left center; }
.ed-section__sub { margin: 4px 0 0; color: var(--am-muted); font-size: var(--fs-sm); }

/* ---------- Featured ---------- */
.ed-featured { padding-block: 8px 8px; }
.ed-featured__inner { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 36px; align-items: center; }
.ed-featured__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-sm); background: var(--am-tag-bg); }
.ed-featured__title { font-family: var(--ed-serif); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; }
.ed-featured__title a { color: var(--am-ink); text-decoration: none; }
.ed-featured__title a:hover { color: var(--am-blue); }
.ed-featured__excerpt { font-size: 1.125rem; line-height: 1.55; color: var(--am-body); margin: 0 0 14px; }
.ed-featured__body .ed-link { display: inline-block; margin-top: 16px; }

/* ---------- Story cards ---------- */
.ed-story__media img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--r-sm); background: var(--am-tag-bg); aspect-ratio: 16 / 10; }
.ed-story__title { font-family: var(--ed-serif); font-weight: 700; letter-spacing: -.01em; line-height: 1.18; margin: 0 0 8px; }
.ed-story__title a { color: var(--am-ink); text-decoration: none; }
.ed-story__title a:hover { color: var(--am-blue); }
.ed-story__excerpt { color: var(--am-body); line-height: 1.5; margin: 0 0 10px; }
.ed-story__media { display: block; margin-bottom: 14px; min-width: 0; }
.ed-story, .ed-featured__body { min-width: 0; }

.ed-latest { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 36px; padding-bottom: 32px; border-bottom: 1px solid var(--ed-rule); }
.ed-story--lead .ed-story__title { font-size: clamp(1.75rem, 3vw, 2.375rem); }
.ed-story--lead .ed-story__excerpt { font-size: 1.0625rem; }
.ed-latest__side { display: flex; flex-direction: column; gap: 24px; }
.ed-latest__side .ed-story { padding-bottom: 24px; border-bottom: 1px solid var(--ed-rule); }
.ed-latest__side .ed-story:last-child { border: 0; padding: 0; }
.ed-story--secondary .ed-story__title { font-size: 1.375rem; }
.ed-story--secondary .ed-story__excerpt { font-size: var(--fs-sm); }

.ed-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px 28px; padding-top: 32px; }
.ed-story--grid .ed-story__title { font-size: 1.1875rem; }
.ed-story--grid .ed-story__excerpt { font-size: var(--fs-sm); }

/* ---------- Most read (ranked, text only) ---------- */
.ed-ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; columns: 2; column-gap: 40px; }
.ed-ranked li { counter-increment: rank; break-inside: avoid; border-bottom: 1px solid var(--ed-rule); }
.ed-ranked a { display: grid; grid-template-columns: 2.2rem 1fr; padding: 14px 0; text-decoration: none; }
.ed-ranked a::before { content: counter(rank); grid-row: span 2; font-family: var(--ed-serif); font-weight: 700; font-size: 1.75rem; line-height: 1; color: #b9ae98; }
.ed-ranked__title { font-family: var(--ed-serif); font-weight: 700; font-size: 1.1875rem; line-height: 1.25; color: var(--am-ink); }
.ed-ranked a:hover .ed-ranked__title { color: var(--am-blue); }

/* ---------- Topics (typographic, not filter pills) ---------- */
.ed-topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 32px; }
.ed-topics li { border-bottom: 1px solid var(--ed-rule); }
.ed-topics a { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 14px 0; font-family: var(--ed-serif); font-weight: 700; font-size: 1.375rem; color: var(--am-ink); text-decoration: none; }
.ed-topics a:hover { color: var(--am-blue); }
.ed-topics span { font-family: var(--am-font-body); font-size: var(--fs-meta); font-weight: 700; color: var(--am-muted); }
.ed-topics em { flex-basis: 100%; font-family: var(--am-font-body); font-style: normal; font-weight: 400; font-size: var(--fs-sm); color: var(--am-body); }
.ed-topics--page { grid-template-columns: repeat(2, 1fr); }

/* ---------- Row list (More stories / archive) ---------- */
.ed-rows { display: flex; flex-direction: column; }
.ed-story--row { display: grid; grid-template-columns: minmax(0,1fr) 200px; gap: 24px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--ed-rule); }
.ed-story--row .ed-story__media { order: 2; margin: 0; }
.ed-story--row .ed-story__title { font-size: 1.375rem; }
.ed-story--row .ed-story__excerpt { font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ed-featured--topic { margin-bottom: 40px; }
.ed-story--row:not(:has(.ed-story__media)) { grid-template-columns: 1fr; }
.ed-loadmore { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; flex-wrap: wrap; }

/* ---------- Tools (supporting, quiet) ---------- */
.ed-tools { padding-bottom: 56px; }
.ed-toollist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.ed-toollist li { border-bottom: 1px solid var(--ed-rule); }
.ed-toollist a { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; text-decoration: none; }
.ed-toollist strong { color: var(--am-ink); font-size: 1rem; }
.ed-toollist span { color: var(--am-muted); font-size: var(--fs-sm); }
.ed-toollist a:hover strong { color: var(--am-blue); }

/* ---------- Generic page head + pager ---------- */
.ed-page { padding-block: 48px 64px; }
.ed-pagehead { padding-bottom: 40px; margin-bottom: 8px; border-bottom: 1px solid var(--ed-rule); }
.ed-pagehead__title { font-family: var(--ed-serif); font-weight: 700; font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.02em; line-height: 1.05; margin: 0 0 16px; color: var(--am-ink); }
.ed-pagehead__sub { font-size: 1.125rem; color: var(--am-body); max-width: 620px; margin: 0; }
.ed-pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; font-weight: 700; font-size: var(--fs-sm); }
.ed-pager a { color: var(--am-blue); text-decoration: none; }
.ed-pager [aria-disabled] { color: var(--am-faint); }
.ed-pager span:nth-child(2) { color: var(--am-muted); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .ed-hero__mascot { width: 140px; height: 140px; }
  .ed-featured__inner, .ed-latest { grid-template-columns: 1fr; gap: 24px; }
  .ed-grid { grid-template-columns: repeat(2, 1fr); }
  .ed-topics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .ed-hero { padding: 36px 0 28px; }
  .ed-hero__mascot { display: none; }
  .ed-grid, .ed-topics, .ed-topics--page, .ed-toollist { grid-template-columns: 1fr; }
  .ed-ranked { columns: 1; }
  .ed-story--row { grid-template-columns: minmax(0,1fr) 104px; gap: 14px; }
  .ed-story--row .ed-story__title { font-size: 1.125rem; }
  .ed-section__title { font-size: 1.5rem; }
}

/* ============================================================
   ARTICLE
   ============================================================ */
.ed-article { padding: 36px var(--am-gutter) 24px; max-width: var(--am-container); margin-inline: auto; }
.ed-article__head { max-width: 1084px; margin: 0 auto 28px; }
.ed-article__head > * { max-width: 820px; }
.ed-crumbs { display: flex; gap: 8px; font-size: var(--fs-meta); font-weight: 700; color: var(--am-muted); margin-bottom: 18px; }
.ed-crumbs a { color: var(--am-muted); text-decoration: none; }
.ed-crumbs a:hover { color: var(--am-blue); }
.ed-article__title { font-family: var(--ed-serif); font-weight: 700; font-size: clamp(2.125rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -.025em; color: var(--am-ink); margin: 0 0 16px; text-wrap: balance; }
.font-enforcer h1.ed-article__title { font-family: var(--ed-serif); }
.ed-article__deck { font-family: var(--am-font-body); font-size: 1.25rem; line-height: 1.5; color: var(--am-body); margin: 0 0 20px; }
.ed-byline { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-sm); color: var(--am-muted); margin: 0; padding-top: 16px; border-top: 1px solid var(--ed-rule); }
.ed-byline strong { color: var(--am-ink); }
.ed-sponsor-note { font-size: var(--fs-sm); background: var(--ed-ad-bg); border: 1px dashed #c9c1b0; padding: 10px 12px; border-radius: var(--r-sm); margin: 0 0 18px; }
.ed-article__hero { max-width: 1084px; margin: 0 auto 40px; }
.ed-article__hero img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--r-sm); background: var(--am-tag-bg); }

.ed-article__layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 64px; justify-content: center; align-items: start; }
.ed-article__aside { position: sticky; top: 88px; }
.ed-article__aside:empty { display: none; }
.ed-article__aside .ed-ad { margin-top: 0; }

.ed-toc { margin: 0 0 32px; padding: 14px 18px; border: 1px solid var(--ed-rule); border-radius: var(--r-sm); background: var(--am-surface); }
.ed-toc summary { cursor: pointer; font-weight: 800; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--am-muted); }
.ed-toc ol { margin: 12px 0 0; padding-left: 1.2rem; font-size: var(--fs-sm); }
.ed-toc li { margin: 6px 0; }
.ed-toc a { color: var(--am-ink); text-decoration: none; }
.ed-toc a:hover { color: var(--am-blue); text-decoration: underline; }

/* Reading typography */
.ed-prose { font-family: var(--am-font-body); font-size: 1.0625rem; line-height: 1.75; color: #2b2620; overflow-wrap: break-word; }
.ed-prose > :first-child { margin-top: 0; }
.ed-prose p { margin: 0 0 1.35em; }
.ed-prose h2, .ed-prose h3, .ed-prose h4 { font-family: var(--ed-serif); font-weight: 700; color: var(--am-ink); letter-spacing: -.015em; line-height: 1.2; }
.font-enforcer .ed-prose h2, .font-enforcer .ed-prose h3, .font-enforcer .ed-prose h4 { font-family: var(--ed-serif); }
.ed-prose h2 { font-size: 1.875rem; margin: 2.1em 0 .6em; scroll-margin-top: 90px; }
.ed-prose h3 { font-size: 1.4375rem; margin: 1.8em 0 .5em; }
.ed-prose h4 { font-size: 1.1875rem; margin: 1.5em 0 .4em; }
.ed-prose a { color: var(--am-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ed-prose a:hover { color: var(--am-blue-ink); text-decoration-thickness: 2px; }
.ed-prose ul, .ed-prose ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.ed-prose li { margin: .4em 0; }
.ed-prose img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.ed-prose figure { margin: 2em 0; }
.ed-prose figcaption { font-family: var(--am-font-body); font-size: var(--fs-meta); color: var(--am-muted); margin-top: 8px; }
.ed-prose blockquote { margin: 1.8em 0; padding: .2em 0 .2em 1.3em; border-left: 3px solid var(--am-blue); font-family: var(--am-font-display); font-size: 1.375rem; line-height: 1.4; font-style: normal; font-weight: 600; color: var(--am-ink); }
.ed-prose blockquote p:last-child { margin-bottom: 0; }
.ed-prose hr { border: 0; border-top: 1px solid var(--ed-rule); margin: 2.4em 0; }
.ed-prose :not(pre) > code { font-size: .86em; background: var(--am-tag-bg); padding: .12em .38em; border-radius: 4px; }
.ed-prose pre { font-size: .875rem; line-height: 1.6; margin: 1.8em 0; padding: 18px 20px; background: #f6f8fa; border: 1px solid var(--ed-rule); border-radius: var(--r-sm); overflow-x: auto; }
.ed-prose pre code { background: none; padding: 0; font-size: inherit; }
.ed-prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-family: var(--am-font-body); font-size: var(--fs-sm); margin: 1.8em 0; }
.ed-prose th, .ed-prose td { border: 1px solid var(--ed-rule); padding: 8px 12px; text-align: left; }
.ed-prose th { background: var(--am-tag-bg); }
.ed-prose iframe, .ed-prose video { max-width: 100%; }

.ed-article__foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ed-rule); display: grid; gap: 16px; font-size: var(--fs-sm); }
.ed-tags, .ed-share, .ed-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; }
.ed-tags span, .ed-share span, .ed-ai span { font-weight: 800; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--am-muted); min-width: 92px; }
.ed-tags a, .ed-share a, .ed-share button { color: var(--am-ink); font: inherit; font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ed-rule); }
.ed-tags a:hover, .ed-share a:hover, .ed-share button:hover { color: var(--am-blue); text-decoration-color: currentColor; }
.ed-ai img { display: block; }
.ed-grid--tight { padding-top: 0; }

/* ============================================================
   COMMENTS
   ============================================================ */
.ed-comments { padding-block: 24px 24px; }
.ed-comments__inner { max-width: 720px; margin: 0 auto; padding: 36px 0 8px; border-top: 1px solid var(--ed-rule); }
.ed-comments__title { font-family: var(--ed-serif); font-weight: 700; font-size: 2rem; margin: 0 0 20px; color: var(--am-ink); }
.font-enforcer .ed-comments__title { font-family: var(--ed-serif); }
.ed-comments__count { font-size: var(--fs-sm); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--am-muted); margin: 32px 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--ed-rule); }
.ed-muted { color: var(--am-muted); }
.ed-compose > summary { display: inline-flex; list-style: none; }
.ed-compose > summary::-webkit-details-marker, .ed-reply > summary::-webkit-details-marker { display: none; }
.ed-compose[open] > summary { display: none; }
.ed-notice { padding: 10px 14px; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 700; margin: 0 0 16px; list-style: none; }
.ed-notice--ok { background: #e8f7ee; color: #14532d; }
.ed-notice--err { background: #ffeceb; color: #7f1d1d; }

.ed-form { display: grid; gap: 14px; margin-top: 16px; }
.ed-form__row { display: grid; gap: 6px; }
.ed-form label { font-size: var(--fs-sm); font-weight: 700; color: var(--am-ink); }
.ed-form small { font-weight: 500; color: var(--am-muted); }
.ed-form input, .ed-form textarea { font: inherit; font-size: 1rem; padding: 11px 13px; border: 1.5px solid var(--am-border-2); border-radius: var(--r-sm); background: #fff; color: var(--am-ink); width: 100%; }
.ed-form input:focus, .ed-form textarea:focus { border-color: var(--am-blue); }
.ed-form__note { margin: 0; font-size: var(--fs-meta); color: var(--am-muted); }
.ed-form .am-btn { justify-self: start; }
.ed-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.ed-thread { list-style: none; margin: 0; padding: 0; }
.ed-thread--child { margin-top: 14px; padding-left: 18px; border-left: 2px solid var(--ed-rule); }
.ed-comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--ed-rule); }
.ed-thread--child > .ed-comment:last-child { border-bottom: 0; padding-bottom: 0; }
.ed-comment__avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--am-tag-bg); color: var(--am-ink); display: grid; place-items: center; font-weight: 800; }
.ed-comment__main { flex: 1; min-width: 0; }
.ed-comment__head { margin: 0 0 4px; font-size: var(--fs-sm); }
.ed-comment__head time { color: var(--am-muted); margin-left: 8px; font-size: var(--fs-meta); }
.ed-comment__body { font-size: 1rem; line-height: 1.6; color: var(--am-body); overflow-wrap: anywhere; }
.ed-reply { margin-top: 8px; }
.ed-reply > summary { cursor: pointer; list-style: none; display: inline-block; font-size: var(--fs-meta); font-weight: 700; color: var(--am-blue); }

@media (max-width: 1099.98px) {
  .ed-article__layout { grid-template-columns: minmax(0, 720px); }
  .ed-article__aside { position: static; }
}
@media (max-width: 767.98px) {
  .ed-prose { font-size: 1rem; }
  .ed-prose h2 { font-size: 1.625rem; }
  .ed-article__deck { font-size: 1.1875rem; }
  .ed-article { padding-top: 24px; }
}

/* ---------- Topic / search pages ---------- */
.ed-featured--topic { padding-block: 32px 8px; }
.ed-inline-search { display: flex; gap: 10px; margin-top: 20px; max-width: 560px; }
.ed-inline-search input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 1.5px solid var(--am-border-2); border-radius: var(--r-md); background: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ed-empty { padding: 56px 0; text-align: center; }
.ed-empty h2 { font-family: var(--ed-serif); font-weight: 700; font-size: 1.75rem; margin: 0 0 8px; }
.ed-empty p { color: var(--am-body); margin: 0 0 20px; }

/* ---------- Advertise page ---------- */
.ed-adv-cta { margin: 24px 0 0; }
.ed-adv-lead { font-size: 1.125rem; line-height: 1.6; color: var(--am-body); max-width: 680px; margin: 8px 0 22px; }
.ed-adv-topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: topic; }
.ed-adv-topics li { counter-increment: topic; display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--am-surface); border: 1px solid var(--am-border-2); border-radius: var(--r-md); font-family: var(--am-font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; color: var(--am-ink); transition: border-color var(--dur) ease, transform var(--dur) var(--ease); }
.ed-adv-topics li::before { content: counter(topic, decimal-leading-zero); flex: none; font-family: var(--am-font-body); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; color: var(--am-blue); background: var(--am-blue-soft); min-width: 30px; text-align: center; padding: 4px 0; border-radius: 6px; }
.ed-adv-topics li:hover { border-color: var(--am-blue); transform: translateY(-2px); }
.ed-adv-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin: 0; }
.ed-adv-metrics dt { font-size: var(--fs-meta); font-weight: 700; color: var(--am-muted); text-transform: uppercase; letter-spacing: .08em; }
.ed-adv-metrics dd { margin: 4px 0 0; font-family: var(--ed-serif); font-size: 2.25rem; font-weight: 700; }
.ed-adv-formats { list-style: none; margin: 0; padding: 0; }
.ed-adv-formats li { padding: 18px 0; border-bottom: 1px solid var(--ed-rule); display: grid; grid-template-columns: 260px 1fr; gap: 8px 32px; }
.ed-adv-formats h3 { margin: 0; font-family: var(--ed-serif); font-size: 1.375rem; font-weight: 700; }
.font-enforcer .ed-adv-formats h3, .font-enforcer .ed-adv-final h2 { font-family: var(--ed-serif); }
.ed-adv-formats p { margin: 0; color: var(--am-body); }
.ed-adv-final { margin-top: 56px; padding: 36px; background: var(--am-surface); border: 1px solid var(--ed-rule); border-radius: var(--r-md); }
.ed-adv-final h2 { margin: 0 0 8px; font-weight: 700; font-size: 1.75rem; }
.ed-adv-final p { margin: 0 0 18px; color: var(--am-body); }
@media (max-width: 991.98px) { .ed-adv-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .ed-adv-topics { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) { .ed-adv-formats li { grid-template-columns: 1fr; } .ed-adv-final { padding: 24px; } }

/* ---------- Accessibility ---------- */
.ed-skip { position: absolute; left: 12px; top: -48px; z-index: 2000; background: var(--am-ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
.ed-skip:focus { top: 12px; color: #fff; }

/* Hero accents carried over from the original design: blue word + yellow highlighter */
.ed-hero__title { isolation: isolate; }
.ed-hero__title .am-hero__accent { color: var(--am-blue); }
.ed-hero__title .am-mark::after { bottom: .06em; height: .26em; }

/* Page headline accents (blue word + yellow highlighter), e.g. /advertise */
.ed-pagehead__title { isolation: isolate; text-wrap: balance; }
.ed-pagehead__title .am-hero__accent { color: var(--am-blue); }
.ed-pagehead__title .am-mark::after { bottom: .06em; height: .26em; }
