.updates-page {
  --updates-canvas: 76.25rem; /* 1220px — hero, header, share, related, Instagram */
  --updates-prose: 60rem; /* 960px — default editorial flow (prose + cards) */
  --updates-body-size: 1.125rem; /* 18px minimum body */
  --updates-meta-size: 1rem; /* 16px minimum metadata */
}

/*
  Width model (desktop):
  A) Editorial flow — centered --updates-prose (60rem / 960px):
     article-body p, h2/h3, lists, LocationCard, EventCard, CoachNote,
     PullQuote, ArticleCTA body.
  B) Intentional wide — --updates-canvas (76.25rem / 1220px):
     article hero/header, share bar, related-updates grid,
     InstagramEmbed (media).
  Cards are not a third width and do not inherit a broad canvas exception.
*/

.updates-page .updates-hero.section,
.updates-publication,
.updates-empty,
.article-byline,
.share-this-update,
.related-updates,
.article-body {
  max-width: var(--updates-canvas);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.updates-page .updates-hero {
  padding-top: clamp(6rem, 12vw, 9rem);
  padding-bottom: 2rem;
}

.updates-page .updates-hero h1 {
  max-width: 16ch;
}

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

.updates-page .hero-intro,
.article-dek {
  max-width: 42rem;
  font-size: var(--updates-body-size);
  line-height: 1.65;
}

.article-hero-figure {
  margin: 1.75rem 0 0;
  padding: 0;
}

.article-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  color: var(--muted, #9a9a9a);
  font-size: var(--updates-meta-size);
  margin-bottom: 1rem;
}

.article-author {
  display: inline;
}

.article-author-role {
  font-size: inherit;
}

.article-body {
  margin-bottom: 3rem;
  font-size: var(--updates-body-size);
  line-height: 1.7;
  overflow-wrap: anywhere;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--updates-prose)) minmax(0, 1fr);
}

/* A) Default: every article-body child sits in the 960px column */
.article-body > * {
  grid-column: 2;
  min-width: 0;
  max-width: 100%;
}

/* B) Only media that benefits from the 1220px canvas breaks out */
.article-body > .instagram-embed {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
}

.article-body h2,
.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Grid items do not collapse margins — keep p→h at 2rem, not 1rem + 2rem */
.article-body > p:has(+ h2),
.article-body > p:has(+ h3),
.article-body > ul:has(+ h2),
.article-body > ul:has(+ h3),
.article-body > ol:has(+ h2),
.article-body > ol:has(+ h3) {
  margin-bottom: 0;
}

.article-body ul,
.article-body ol {
  padding-inline-start: 1.5em;
  overflow-wrap: anywhere;
}

.article-body li {
  font-size: var(--updates-body-size);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.article-body a {
  color: var(--accent, #e21b23);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.article-internal-links {
  max-width: var(--updates-prose);
  margin: 0 auto 3rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  font-size: var(--updates-body-size);
  line-height: 1.65;
}

.related-updates {
  margin-bottom: 3rem;
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
  border: 0;
  border-radius: 0;
}

.article-internal-links h2,
.related-updates h2,
.share-this-update h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
}

.article-internal-links ul,
.related-updates ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.related-updates a {
  display: grid;
  gap: 0.25rem;
  text-decoration: none;
  font-size: var(--updates-body-size);
}

.related-category {
  color: var(--muted, #9a9a9a);
  font-size: var(--updates-meta-size);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-this-update {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 2rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
}

.share-this-update h2 {
  margin: 0;
  flex: 0 0 auto;
}

.share-canonical {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted, #9a9a9a);
}

.share-canonical a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.share-actions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 1 auto;
}

.share-actions li:has([hidden]) {
  display: none;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--updates-meta-size);
  text-decoration: none;
  cursor: pointer;
}

.share-button:hover,
.share-button:focus-visible {
  border-color: var(--accent, #e21b23);
}

.share-status {
  flex: 1 0 100%;
  min-height: 1.25rem;
  margin: 0;
  font-size: var(--updates-meta-size);
  color: var(--muted, #9a9a9a);
}

.updates-publication,
.updates-empty {
  padding-bottom: 4rem;
}

.updates-empty {
  font-size: var(--updates-body-size);
  line-height: 1.7;
}

.updates-featured {
  margin-bottom: 2.5rem;
}

.updates-latest h2 {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.updates-index-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.updates-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease;
}

.updates-card-featured {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.updates-card:hover,
.updates-card:focus-visible {
  border-color: var(--accent, #e21b23);
}

.updates-card .eyebrow {
  margin-bottom: 0.5rem;
}

.updates-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  text-transform: uppercase;
}

.updates-card time {
  display: block;
  color: var(--muted, #9a9a9a);
  font-size: var(--updates-meta-size);
  margin-bottom: 0.75rem;
}

.updates-card p {
  font-size: var(--updates-body-size);
  line-height: 1.65;
  margin: 0;
}

.updates-card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent, #e21b23);
  font-weight: 600;
  font-size: var(--updates-body-size);
}

.location-card,
.event-card,
.coach-note,
.pull-quote,
.instagram-embed {
  box-sizing: border-box;
  width: 100%;
  margin: 1.5rem 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-size: var(--updates-body-size);
  line-height: 1.65;
}

.article-body > .location-card,
.article-body > .event-card,
.article-body > .coach-note,
.article-body > .pull-quote {
  max-width: 100%;
}

/* h → card: heading already has 0.75rem bottom; keep ~1.25rem after the title */
.article-body > h2:has(+ .location-card),
.article-body > h2:has(+ .event-card),
.article-body > h2:has(+ .coach-note),
.article-body > h2:has(+ .pull-quote),
.article-body > h2:has(+ .instagram-embed),
.article-body > h3:has(+ .location-card),
.article-body > h3:has(+ .event-card),
.article-body > h3:has(+ .coach-note),
.article-body > h3:has(+ .pull-quote),
.article-body > h3:has(+ .instagram-embed) {
  margin-bottom: 0;
}

.article-body > h2 + .location-card,
.article-body > h2 + .event-card,
.article-body > h2 + .coach-note,
.article-body > h2 + .pull-quote,
.article-body > h2 + .instagram-embed,
.article-body > h3 + .location-card,
.article-body > h3 + .event-card,
.article-body > h3 + .coach-note,
.article-body > h3 + .pull-quote,
.article-body > h3 + .instagram-embed {
  margin-top: 1.25rem;
}

/* card → section heading */
.article-body > .location-card:has(+ h2),
.article-body > .location-card:has(+ h3),
.article-body > .event-card:has(+ h2),
.article-body > .event-card:has(+ h3),
.article-body > .coach-note:has(+ h2),
.article-body > .coach-note:has(+ h3),
.article-body > .pull-quote:has(+ h2),
.article-body > .pull-quote:has(+ h3),
.article-body > .instagram-embed:has(+ h2),
.article-body > .instagram-embed:has(+ h3) {
  margin-bottom: 0;
}

.article-body > .location-card + h2,
.article-body > .location-card + h3,
.article-body > .event-card + h2,
.article-body > .event-card + h3,
.article-body > .coach-note + h2,
.article-body > .coach-note + h3,
.article-body > .pull-quote + h2,
.article-body > .pull-quote + h3,
.article-body > .instagram-embed + h2,
.article-body > .instagram-embed + h3 {
  margin-top: 2rem;
}

/* card → p */
.article-body > .location-card + p,
.article-body > .event-card + p,
.article-body > .coach-note + p,
.article-body > .pull-quote + p,
.article-body > .instagram-embed + p {
  margin-top: 0;
}

.location-card address {
  font-style: normal;
  margin: 0.35rem 0;
}

.location-card-name,
.event-card-title {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 1.6rem;
  text-transform: uppercase;
  margin: 0.35rem 0;
}

.location-card-area,
.location-card-note {
  color: var(--muted, #9a9a9a);
}

.pull-quote blockquote {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.5;
}

.pull-quote figcaption,
.instagram-embed figcaption {
  margin-top: 0.75rem;
  color: var(--muted, #9a9a9a);
  font-size: var(--updates-meta-size);
}

.instagram-embed a {
  color: var(--accent, #e21b23);
}

.updates-page .updates-final-cta .final-cta-inner {
  max-width: var(--updates-prose);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.updates-final-cta p {
  font-size: var(--updates-body-size);
  line-height: 1.65;
  max-width: none;
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 900px) {
  .updates-page .updates-hero .hero-headline {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: end;
  }

  .updates-page .updates-hero .hero-headline .eyebrow,
  .updates-page .updates-hero .hero-headline h1 {
    grid-column: 1;
  }

  .updates-page .updates-hero .hero-headline .hero-intro,
  .article-header .article-dek {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: end;
    max-width: none;
    margin: 0;
  }

  .updates-index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .updates-index-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .updates-page .updates-hero .hero-headline,
  .article-header .hero-headline {
    display: block;
  }
}

@media (max-width: 640px) {
  .article-cta-actions .button {
    width: 100%;
  }

  .share-this-update {
    flex-direction: column;
    align-items: stretch;
  }

  .share-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .share-button {
    width: 100%;
  }

  .share-canonical {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .updates-card {
    transition: none;
  }
}
