.updates-page [hidden] { display: none !important; }
.updates-page .site { overflow-x: clip; overflow-y: visible; }

/* Patch notes index */
.updates { padding-bottom: 72px; }
.updates-intro { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-raised), var(--bg)); }
.updates-intro .adventure-wrap { padding-block: 34px 30px; }
.updates-crumbs { margin-bottom: 18px; color: var(--text-muted); font-size: 13.5px; }
.updates-crumbs a { color: var(--text-soft); }
.updates-crumbs a:hover { color: var(--text); }
.updates-intro h1 { margin: 0; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.08; letter-spacing: -.035em; }
.updates-intro p { max-width: 62ch; margin: 10px 0 0; color: var(--text-soft); font-size: 15.5px; line-height: 1.6; }

.updates-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 32px; }
.updates-rail { position: sticky; top: 24px; display: grid; gap: 22px; }
.updates-filters { display: grid; gap: 10px; }
.updates-filters label { color: var(--text-soft); font-size: 13px; font-weight: 650; }
.updates-filters input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg-raised); color: var(--text); font: inherit; font-size: 14.5px; }
.updates-filters input::placeholder { color: var(--text-muted); }
.updates-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.updates-kinds button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--text-soft); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.updates-kinds button:hover { border-color: var(--line-strong); color: var(--text); }
.updates-kinds button[aria-pressed="true"] { border-color: rgba(245, 199, 107, .55); background: rgba(245, 199, 107, .1); color: var(--gold-bright); }
.updates-count { margin: 0; color: var(--text-soft); font-size: 13.5px; }
.updates-count:empty { display: none; }
.updates-months { display: grid; gap: 2px; padding-top: 18px; border-top: 1px solid var(--line); }
.updates-months a { padding: 5px 0; color: var(--text-soft); font-size: 14px; }
.updates-months a:hover { color: var(--text); }
.updates-follow { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.updates-follow a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-bright); font-size: 14px; font-weight: 650; }
.updates-follow a:hover { text-decoration: underline; text-underline-offset: 3px; }

.updates-log { min-width: 0; }
.updates-toolbar { display: flex; justify-content: flex-end; margin-bottom: -6px; }
.updates-expand { min-height: 34px; padding: 0; border: 0; background: none; color: var(--blue-bright); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.updates-expand:hover { text-decoration: underline; text-underline-offset: 3px; }
.updates-month { scroll-margin-top: 20px; }
.updates-month + .updates-month, .updates-empty + .updates-month { margin-top: 28px; }
.updates-month > h2 { position: sticky; top: 0; z-index: 2; margin: 0; padding: 12px 0 10px; border-bottom: 1px solid var(--line-strong); background: var(--bg); color: var(--text-soft); font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.updates-month-note { max-width: 64ch; margin: 14px 0 4px; color: var(--text-soft); font-size: 14.5px; }
.updates-month-note a { color: var(--blue-bright); text-decoration: underline; text-underline-offset: 3px; }
.updates-empty { padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); color: var(--text-soft); }

/* One update: date column, title that opens the notes, summary and section topics. */
.updates .update-entry { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; margin: 0; padding: 22px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; scroll-margin-top: 56px; }
.updates .update-date { align-self: start; display: block; padding-top: 3px; color: var(--text-muted); font-size: 13px; font-weight: 650; line-height: 1.1; text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.updates .update-date span { display: block; margin-bottom: 2px; color: var(--text); font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.updates .update-date:hover span { color: var(--blue-bright); }
.updates .update-main { min-width: 0; }
.updates .update-badge { display: inline-block; margin: 0 0 6px; color: var(--gold); font-size: 12.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.updates .update-title { margin: 0; font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.25; letter-spacing: -.02em; text-wrap: pretty; }
.updates .update-title-toggle { display: inline; padding: 0; border: 0; background: none; color: var(--text); font: inherit; letter-spacing: inherit; text-align: left; text-transform: none; cursor: pointer; }
.updates .update-title-toggle::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .45em; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: translateY(-.2em) rotate(45deg); transition: transform 160ms ease; }
.updates .update-title-toggle[aria-expanded="true"]::after { transform: translateY(.05em) rotate(225deg); }
.updates .update-title-toggle:hover { color: var(--blue-bright); }
.updates .update-title-toggle:focus-visible { outline-offset: 3px; }
.updates .update-summary { max-width: 70ch; margin: 6px 0 0; color: var(--text-soft); font-size: 15px; line-height: 1.6; }
.updates .update-entry.is-open[data-summary-repeats] .update-summary { display: none; }
.updates .update-topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.updates .update-topics li { margin: 0; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-raised); color: var(--text-soft); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.updates .update-entry.is-open .update-topics { display: none; }

/* Patch note bodies come from Discord markdown. */
.updates .update-body { max-width: 72ch; margin-top: 14px; }
.updates .update-body > :first-child { margin-top: 0; }
.updates .update-body :is(p, li) { color: var(--text-soft); font-size: 15.5px; line-height: 1.7; }
.updates .update-body p { margin: 0 0 12px; }
.updates .update-body :is(h2, h3, h4, h5, h6) { margin: 24px 0 8px; color: var(--text); font-size: 1.05rem; font-weight: 750; line-height: 1.35; letter-spacing: -.01em; }
.updates .update-body :is(ul, ol) { margin: 0 0 14px; padding-left: 1.2em; }
.updates .update-body li { margin: 4px 0; padding-left: 2px; }
.updates .update-body li::marker { color: var(--text-muted); }
.updates .update-body strong { color: var(--text); font-weight: 700; }
.updates .update-body a { color: var(--blue-bright); text-decoration: underline; text-underline-offset: 3px; }
.updates .update-body code { padding: 1px 5px; border-radius: 4px; background: var(--bg-panel); color: var(--blue-pale); font-size: .92em; overflow-wrap: anywhere; }
.updates .update-body pre { overflow: auto; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-panel); }
.updates .update-body pre code { padding: 0; background: none; }
.updates .update-body :is(blockquote, .update-callout) { margin: 16px 0; padding: 12px 16px; border-left: 3px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--bg-raised); color: var(--text-soft); }
.updates .update-body blockquote p { margin: 0; }
.updates .update-body .update-callout strong { display: block; margin-bottom: 4px; }
.updates .update-body .update-lead { color: var(--text); font-size: 16.5px; }
.updates .update-body hr { margin: 20px 0; border: 0; border-top: 1px solid var(--line); }
.updates .update-part { scroll-margin-top: 56px; }
.updates .update-body :is(figure, .content-media) { margin: 18px 0; }
.updates .update-body :is(img, video) { display: block; max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.updates .update-body figcaption { margin-top: 6px; color: var(--text-muted); font-size: 13.5px; }
.updates .update-body .content-media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.updates .update-body .content-media-grid figure { margin: 0; }
.patch-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.patch-gallery img { width: 100%; height: auto; border-radius: var(--radius-sm); }
.updates .update-detail a { font-weight: 650; }

.updates-page :is(a, button, input):focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Release detail pages (major releases) */
.updates-page .release-header { padding-block: 48px 38px; }
.updates-page .release-header .breadcrumbs { margin-bottom: 32px; }
.updates-page .release-header h1 { max-width: 24ch; margin: 0 0 24px; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.08; text-wrap: balance; }
.updates-page .release-context { color: var(--blue-pale); font-size: .875rem; }
.updates-page .release-summary { max-width: 64ch; color: var(--text-soft); font-size: 1.125rem; }
.updates-page .release-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--text-soft); font-size: .875rem; }
.updates-page .release-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: clamp(32px, 6vw, 90px); padding-bottom: 80px; }
.updates-page .release-body { min-width: 0; padding-top: 25px; border-top: 1px solid var(--line-strong); }
.updates-page .release-body :is(p, li) { color: var(--text-soft); font-size: 1rem; }
.updates-page .release-body :is(h2, h3, h4) { margin: 36px 0 14px; font-family: var(--display); font-weight: 750; }
.updates-page .release-body h2 { font-size: 2rem; }
.updates-page .release-body :is(h3, h4) { font-size: 1.5rem; }
.updates-page .release-body li { margin-block: 9px; }
.updates-page .release-body a { text-decoration: underline; text-underline-offset: .2em; }
.updates-page .release-body pre { overflow: auto; padding: 18px; background: var(--bg-panel); border-radius: var(--radius-sm); }
.updates-page .release-body code { color: var(--blue-pale); overflow-wrap: anywhere; }
.updates-page .release-body blockquote { margin-inline: 0; padding: 15px 20px; background: var(--bg-panel); border-left: 3px solid var(--blue-bright); }
.updates-page .release-aside { align-self: start; position: sticky; top: 28px; display: grid; gap: 18px; padding-top: 25px; border-top: 1px solid var(--line-strong); }
.updates-page .release-aside h2 { margin: 0; font-size: 1.5rem; }
.updates-page .release-aside > a:not(.button) { display: flex; align-items: center; min-height: 44px; color: var(--text-soft); }
.updates-page .release-withdrawn { padding-block: 80px; }
.updates-page .release-withdrawn h1 { font-size: clamp(2.5rem, 5vw, 4rem); }

@media (max-width: 900px) {
  .updates-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; }
  .updates-rail { position: static; gap: 14px; }
  .updates-months { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-top: 12px; }
  .updates-follow { padding-top: 12px; }
  .updates-page .release-layout { grid-template-columns: minmax(0, 1fr); }
  .updates-page .release-aside { position: static; max-width: 400px; }
}

@media (max-width: 600px) {
  .updates-intro .adventure-wrap { padding-block: 24px 22px; }
  .updates .update-entry { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 18px 0; }
  .updates .update-date span { font-size: 20px; }
  .updates .update-body :is(p, li) { font-size: 15px; }
  .updates-page .release-header { padding-block: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .updates .update-title-toggle::after { transition: none; }
}
