
/* Article graph — continue-reading + hub pages (archive / sitemap / site-links) */
:root {
  --ag-line: var(--line, rgba(20, 17, 15, 0.14));
  --ag-line-soft: var(--line-soft, rgba(20, 17, 15, 0.08));
  --ag-ink: var(--ink, #14110f);
  --ag-muted: var(--muted, rgba(20, 17, 15, 0.68));
  --ag-accent: var(--accent, var(--blue, var(--pine, var(--herald-red, var(--coral, #2a5a8c)))));
  --ag-paper: var(--paper, #fff);
  --ag-bg: var(--bg, var(--mist, var(--panel, #f7f5f1)));
  --ag-display: var(--font-display, var(--display, Georgia, "Times New Roman", serif));
  --ag-nav: var(--font-nav, var(--label, var(--sans, system-ui, sans-serif)));
}
.article-next {
  margin: 2.5rem 0 1.5rem;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--ag-line);
}
.article-next-head .eyebrow,
.ag-hub .eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  opacity: 0.7;
  margin: 0 0 0.4rem;
  font-family: var(--ag-nav);
}
.article-next h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.15;
}
.article-next-lede {
  max-width: 40rem;
  opacity: 0.85;
  margin: 0 0 1.25rem;
}
.article-next-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.article-next-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--ag-line-soft);
}
.article-next-list .num {
  font-variant-numeric: tabular-nums;
  opacity: 0.45;
  font-size: 0.85rem;
}
.article-next-more { margin-top: 1.25rem; }

/* Per-domain next articles layouts (graphic, not paragraph lists) */
.ag-next {
  --ag-clamp: 2;
  margin: 3rem 0 2rem;
  padding: 0;
  border: 0;
}
.ag-next-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--ag-ink);
}
.ag-next-eyebrow {
  margin: 0 0 0.25rem;
  font-family: var(--ag-nav);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
}
.ag-next-title {
  margin: 0;
  font-family: var(--ag-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  line-height: 1;
  font-weight: 500;
  color: var(--ag-ink);
}
.ag-next-count {
  font-family: var(--ag-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 0.85;
  font-weight: 500;
  opacity: 0.18;
  font-variant-numeric: tabular-nums;
}

.ag-next-tile-title,
.ag-next-cell-title,
.ag-next-mosaic-title,
.ag-next-lead-title,
.ag-next-chip span,
.ag-next-path-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--ag-clamp);
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-next--story_rail .ag-next-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(11.5rem, 14rem);
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.15rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.ag-next--story_rail .ag-next-tile {
  position: relative;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 11.5rem;
  padding: 0.9rem 0.95rem 1rem;
  text-decoration: none;
  color: var(--ag-ink);
  background: var(--ag-paper);
  border: 1px solid var(--ag-line);
  overflow: hidden;
}
.ag-next--story_rail .ag-next-tile-bg {
  position: absolute;
  right: -0.15rem;
  bottom: -0.55rem;
  font-family: var(--ag-display);
  font-size: 5.5rem;
  line-height: 0.8;
  opacity: 0.07;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.ag-next--story_rail .ag-next-tile-idx {
  font-family: var(--ag-nav);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  opacity: 0.5;
}
.ag-next--story_rail .ag-next-tile-title {
  position: relative;
  font-family: var(--ag-display);
  font-size: 1.15rem;
  line-height: 1.2;
  --ag-clamp: 3;
}
.ag-next--story_rail .ag-next-tile:hover {
  border-color: var(--ag-accent);
  transform: translateY(-2px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ag-next--case_chapters .ag-next-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.ag-next--case_chapters .ag-next-cell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.55rem;
  min-height: 7.5rem;
  padding: 0.85rem 0.9rem;
  text-decoration: none;
  color: inherit;
  background: var(--ag-paper);
  border: 1px solid var(--ag-line);
}
.ag-next--case_chapters .ag-next-cell-num {
  font-family: var(--ag-display);
  font-size: 1.65rem;
  line-height: 1;
  color: var(--ag-accent);
  font-variant-numeric: tabular-nums;
}
.ag-next--case_chapters .ag-next-cell-title {
  font-family: var(--ag-display);
  font-size: 1.02rem;
  line-height: 1.2;
  --ag-clamp: 2;
}
.ag-next--case_chapters .ag-next-cell-go {
  font-family: var(--ag-nav);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
}
.ag-next--case_chapters .ag-next-cell:hover {
  border-color: var(--ag-accent);
  background: color-mix(in srgb, var(--ag-accent) 6%, var(--ag-paper));
}
.ag-next--pulpit_stack .ag-next-head { border-bottom-color: var(--ag-accent); }
.ag-next--pulpit_stack .ag-next-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
.ag-next--pulpit_stack .ag-next-mosaic-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 8.25rem;
  padding: 0.8rem;
  text-decoration: none;
  color: inherit;
  background: var(--ag-bg);
  border-left: 4px solid var(--ag-accent);
}
.ag-next--pulpit_stack .ag-next-mosaic-item.is-wide {
  grid-column: span 2;
  background: var(--ag-paper);
  border: 1px solid var(--ag-line);
  border-left: 4px solid var(--ag-accent);
}
.ag-next--pulpit_stack .ag-next-mosaic-num {
  font-family: var(--ag-nav);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  opacity: 0.45;
}
.ag-next--pulpit_stack .ag-next-mosaic-title {
  font-family: var(--ag-display);
  font-size: 1.05rem;
  line-height: 1.2;
  --ag-clamp: 3;
}
.ag-next--pulpit_stack .ag-next-mosaic-item:hover {
  background: color-mix(in srgb, var(--ag-accent) 8%, var(--ag-paper));
}
.ag-next--newsroom_index .ag-next-lead {
  display: grid;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem 1.25rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: #fff;
  background: var(--ag-ink);
}
.ag-next--newsroom_index .ag-next-lead-kicker {
  font-family: var(--ag-nav);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  color: var(--ag-accent, #c8102e);
}
.ag-next--newsroom_index .ag-next-lead-title {
  font-family: var(--ag-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.12;
  --ag-clamp: 2;
  color: #fff;
}
.ag-next--newsroom_index .ag-next-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
.ag-next--newsroom_index .ag-next-chip {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.45rem;
  align-items: start;
  min-height: 4.4rem;
  padding: 0.65rem 0.7rem;
  text-decoration: none;
  color: inherit;
  border-top: 2px solid var(--ag-ink);
  background: var(--ag-paper);
}
.ag-next--newsroom_index .ag-next-chip b {
  font-family: var(--ag-nav);
  font-size: 0.72rem;
  color: var(--ag-accent, #c8102e);
}
.ag-next--newsroom_index .ag-next-chip span {
  font-family: var(--ag-display);
  font-size: 0.92rem;
  line-height: 1.2;
  --ag-clamp: 2;
}
.ag-next--newsroom_index .ag-next-chip:hover {
  background: color-mix(in srgb, var(--ag-accent, #c8102e) 8%, var(--ag-paper));
}
.ag-next--rescue_trail .ag-next-path {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}
.ag-next--rescue_trail .ag-next-path a {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 4.6rem;
  padding: 0.55rem 0.65rem 0.55rem 0.35rem;
  text-decoration: none;
  color: inherit;
  background: var(--ag-paper);
  border: 1px solid var(--ag-line);
}
.ag-next--rescue_trail .ag-next-path-dot {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--ag-nav);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--ag-accent, #e07a5f);
}
.ag-next--rescue_trail .ag-next-path-title {
  font-family: var(--ag-display);
  font-size: 1rem;
  line-height: 1.2;
  --ag-clamp: 2;
}
.ag-next--rescue_trail .ag-next-path a:hover {
  border-color: var(--ag-accent, #e07a5f);
}
@media (max-width: 900px) {
  .ag-next--pulpit_stack .ag-next-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-next--pulpit_stack .ag-next-mosaic-item.is-wide { grid-column: span 2; }
  .ag-next--newsroom_index .ag-next-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ag-next--case_chapters .ag-next-grid,
  .ag-next--rescue_trail .ag-next-path,
  .ag-next--newsroom_index .ag-next-chips { grid-template-columns: 1fr; }
  .ag-next--pulpit_stack .ag-next-mosaic { grid-template-columns: 1fr 1fr; }
  .ag-next--story_rail .ag-next-rail { grid-auto-columns: minmax(10.5rem, 78vw); }
}


.foot-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
  margin: 0.85rem 0 0;
  font-family: var(--ag-nav);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.foot-articles a { text-decoration: none; color: inherit; }
.foot-articles a:hover { color: var(--ag-accent); }
.foot-articles-sep { opacity: 0.35; }

/* Hub hero */
.ag-hero {
  padding: 3.25rem 0 2.5rem;
  border-bottom: 1px solid var(--ag-line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ag-bg) 88%, transparent), transparent 72%),
    var(--ag-bg);
}
.ag-hero h1 {
  font-family: var(--ag-display);
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  font-weight: 500;
  line-height: 1.08;
  margin: 0.35rem 0 0.85rem;
  max-width: 16ch;
  color: var(--ag-ink);
}
.ag-lede {
  max-width: 36rem;
  color: var(--ag-muted);
  font-size: 1.05rem;
  margin: 0 0 1.35rem;
}
.ag-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.ag-btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--ag-nav);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--ag-ink);
  background: var(--ag-ink);
  color: var(--ag-paper);
}
.ag-btn-outline {
  background: transparent;
  color: var(--ag-ink);
}
.ag-btn:hover { opacity: 0.88; }

/* Sections + chapter rows */
.ag-section {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--ag-line-soft);
}
.ag-section-label {
  font-family: var(--ag-nav);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 0 0 0.55rem;
}
.ag-section-title {
  font-family: var(--ag-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.15;
  margin: 0 0 0.65rem;
  color: var(--ag-ink);
}
.ag-section-lede {
  max-width: 38rem;
  color: var(--ag-muted);
  margin: 0 0 1.5rem;
}
.ag-chapters {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ag-line);
}
.ag-chapter {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 0.15rem;
  border-bottom: 1px solid var(--ag-line);
  text-decoration: none;
  color: inherit;
}
.ag-chapter:hover .ag-chapter-title { color: var(--ag-accent); }
.ag-chapter-num {
  font-variant-numeric: tabular-nums;
  font-family: var(--ag-nav);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0.45;
}
.ag-chapter-title {
  font-family: var(--ag-display);
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 0.25rem;
}
.ag-chapter-blurb {
  margin: 0;
  color: var(--ag-muted);
  font-size: 0.92rem;
}
.ag-chapter-arrow {
  opacity: 0.4;
  font-size: 1.1rem;
}

/* A–Z directory */
.ag-jump-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 2rem;
}
.ag-letter-chip {
  font-family: var(--ag-nav);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ag-line);
  padding: 0.45rem 0.65rem;
  background: var(--ag-paper);
  color: var(--ag-ink);
}
.ag-letter-chip:hover {
  border-color: var(--ag-accent);
  color: var(--ag-accent);
}
.ag-directory-grid { display: grid; gap: 2rem; }
.ag-directory {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ag-line-soft);
}
.ag-directory li { border-bottom: 1px solid var(--ag-line-soft); }
.ag-directory a {
  display: block;
  text-decoration: none;
  padding: 0.85rem 0.15rem;
  font-family: var(--ag-display);
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ag-ink);
}
.ag-directory a:hover { color: var(--ag-accent); }

.ag-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ag-line);
  font-family: var(--ag-nav);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ag-foot-links a { text-decoration: none; color: inherit; }

.site-links-section {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--ag-line-soft);
}
.site-links-section ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  columns: 2;
  gap: 1.25rem;
}
.site-links-section li {
  break-inside: avoid;
  padding: 0.35rem 0;
}
@media (max-width: 720px) {
  .ag-hero { padding: 2.4rem 0 1.85rem; }
  .ag-chapter { grid-template-columns: 2.4rem 1fr; }
  .ag-chapter-arrow { display: none; }
  .site-links-section ul { columns: 1; }
}
