.updates-page {
  --updates-bg: #111212;
  --updates-panel: #191918;
  --updates-text: #f3f0e9;
  --updates-muted: #bdb9b0;
  --updates-gold: #d6b77e;
  --updates-line: #3a3934;
  --updates-gutter: clamp(20px, 5vw, 80px);
  background: var(--updates-bg);
  color: var(--updates-text);
}
.updates-page [hidden] { display: none !important; }
.updates-shell { width: min(calc(100% - 2 * var(--updates-gutter)), 1200px); margin-inline: auto; padding-block: 122px clamp(38px, 7vw, 78px); }
.updates-page h1, .updates-page h2, .updates-page h3 { font-family: 'Noto Sans Thai', sans-serif; font-weight: 500; }
.updates-page .button { min-width: 0; min-height: 46px; padding: 10px 18px; border-radius: 4px; gap: 13px; }
.updates-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 28px; margin-bottom: clamp(22px, 4vw, 42px); }
.updates-heading .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--updates-gold); font-size: 11px; letter-spacing: .14em; }
.updates-heading .eyebrow::before { content: ''; width: 20px; height: 1px; background: currentColor; }
.updates-heading h1 { font-size: clamp(29px, 4.35vw, 58px); line-height: 1.28; letter-spacing: -.035em; margin-top: 10px; }
.updates-intro { max-width: 34ch; color: var(--updates-muted); font-size: 15px; line-height: 1.65; }

.updates-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; margin-bottom: 26px; border-block: 1px solid var(--updates-line); }
.updates-filters { display: flex; flex-wrap: wrap; gap: clamp(12px, 2.2vw, 30px); min-width: 0; }
.updates-filters button { padding: 13px 1px; min-height: 55px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--updates-muted); font-size: 14px; }
.updates-filters button[aria-pressed=true] { color: var(--updates-gold); border-bottom-color: var(--updates-gold); font-weight: 500; }
.updates-filters button:hover { color: var(--updates-text); }
.updates-filters button:focus-visible { outline-offset: -3px; }
.updates-search { display: flex; align-items: center; width: min(100%, 278px); min-height: 42px; margin-block: 6px; border: 1px solid #65615a; border-radius: 4px; background: var(--updates-panel); }
.updates-search:focus-within { outline: 2px solid var(--updates-gold); outline-offset: 2px; }
.updates-search button { display: grid; place-items: center; flex: 0 0 40px; min-height: 40px; padding: 0; border: 0; background: transparent; color: var(--updates-muted); }
.updates-search button:hover { color: var(--updates-gold); }
.updates-search input { width: 100%; min-width: 0; min-height: 40px; padding-inline: 0 8px; border: 0; outline: 0; background: transparent; color: var(--updates-text); font: inherit; font-size: 14px; }
.updates-search input::placeholder { color: var(--updates-muted); opacity: 1; }
.updates-search input::-webkit-search-cancel-button { display: none; }

.update-featured { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); overflow: hidden; margin-bottom: clamp(38px, 6vw, 66px); border: 1px solid var(--updates-line); border-radius: 4px; background: var(--updates-panel); }
.update-featured-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(24px, 4.25vw, 58px); }
.update-featured > img { width: 100%; height: 100%; min-height: 285px; object-fit: cover; object-position: center; }
.update-category { color: var(--updates-gold); font-size: 13px; line-height: 1.5; }
.update-featured h2 { max-width: 12em; margin-block: 12px 10px; font-size: clamp(26px, 3.75vw, 49px); line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
.update-featured-copy > p:not(.update-category) { color: var(--updates-muted); font-size: 15px; line-height: 1.65; }
.update-featured .button { margin-top: 22px; }

.updates-collection-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-bottom: 16px; }
.updates-collection-heading h2 { font-size: clamp(24px, 3.1vw, 38px); line-height: 1.3; }
.updates-collection-heading > p { color: var(--updates-muted); font-size: 13px; overflow-wrap: anywhere; }
.updates-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.update-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--updates-line); border-radius: 4px; background: var(--updates-panel); }
.update-card:is(:hover, :focus-within) { border-color: var(--updates-gold); }
.update-card > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px 3px 0 0; }
.update-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: clamp(14px, 2vw, 23px); }
.update-card-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.update-card-meta .update-category, .update-meta { font-size: 12px; }
.update-meta { color: var(--updates-muted); }
.update-card h3 { font-size: clamp(18px, 1.75vw, 24px); line-height: 1.4; overflow-wrap: anywhere; }
.update-card-excerpt { color: var(--updates-muted); font-size: 13px; line-height: 1.65; }
.update-read { display: inline-flex; gap: 9px; align-items: center; min-height: 44px; padding: 0; margin-top: auto; border: 0; color: var(--updates-gold); background: transparent; font-size: 14px; }
.update-read::after { content: ''; position: absolute; inset: 0; }
.update-read:is(:hover, :focus-visible) { color: var(--updates-text); text-decoration: underline; text-underline-offset: 4px; }
.updates-more { display: flex; justify-content: center; margin-top: 27px; }
.updates-more .button { border-color: var(--updates-line); background: transparent; color: var(--updates-gold); }
.updates-more .button:hover { border-color: var(--updates-gold); background: var(--updates-panel); }
.updates-empty { display: grid; justify-items: start; gap: 12px; padding-block: 26px; color: var(--updates-muted); }
.updates-empty h3 { color: var(--updates-text); font-size: 23px; }
.updates-empty p { overflow-wrap: anywhere; }
.updates-note { color: var(--updates-muted); line-height: 1.7; font-size: 12px; }
.updates-shell > .updates-note { margin-top: 36px; padding-top: 17px; border-top: 1px solid var(--updates-line); }
.updates-shell > .updates-note p + p { margin-top: 4px; }

.update-preview { width: min(100% - 40px, 560px); max-height: calc(100dvh - 48px); padding: clamp(23px, 4vw, 40px); overflow: auto; border: 1px solid var(--updates-line); border-radius: 4px; background: var(--updates-panel); color: var(--updates-text); }
.update-preview::backdrop { background: #090a0bc9; }
.update-preview-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; margin: -6px -6px 7px auto; border: 1px solid #65615a; border-radius: 50%; background: transparent; color: var(--updates-text); }
.update-preview h2 { margin-block: 10px; font-size: clamp(22px, 2.7vw, 32px); line-height: 1.4; }
.update-preview > p { line-height: 1.7; }
.update-preview > .updates-note { margin-block: 16px 20px; }

@media (max-width: 900px) and (min-width: 768px) {
  .updates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .updates-shell { padding-block-start: 98px; }
  .updates-intro { max-width: 41ch; font-size: 14px; }
  .updates-controls { display: grid; gap: 0; border-bottom: 0; margin-bottom: 18px; }
  .updates-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; border-bottom: 1px solid var(--updates-line); }
  .updates-filters button { padding: 7px 2px; min-height: 46px; font-size: clamp(11px, 3.2vw, 13px); line-height: 1.4; }
  .updates-search { width: 100%; margin-block: 13px 0; }
  .update-featured, .updates-grid { grid-template-columns: minmax(0, 1fr); }
  .update-featured > img { grid-row: 1; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .update-featured .button { margin-top: 16px; }
}
