/* v92 - map and newsroom share one masthead and one URL-backed view state. */
.atlas-byline {
  pointer-events: auto;
}

.newsroom-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--atlas-rule, #d2c8bb);
  border-radius: 999px;
  background: color-mix(in srgb, var(--atlas-surface, #fbf9f4) 88%, transparent);
  box-shadow: 0 2px 10px #2221270d;
}

.newsroom-switch button {
  min-width: 82px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--atlas-muted, #58565e);
  font: 650 12px/1 var(--atlas-sans, "IBM Plex Sans", sans-serif);
}

.newsroom-switch button[aria-pressed="true"] {
  background: var(--atlas-ink, #222127);
  color: var(--atlas-surface, #fbf9f4);
}

.newsroom-switch button:hover:not([aria-pressed="true"]) {
  background: var(--atlas-selected, #e6eaf5);
  color: var(--atlas-ink, #222127);
}

#newsroom-dialog {
  position: fixed;
  inset: var(--atlas-header, 66px) 0 0 auto;
  width: clamp(720px, 62vw, 1120px);
  max-width: calc(100vw - 92px);
  height: calc(100dvh - var(--atlas-header, 66px));
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid #cfc3b4;
  border-radius: 0;
  overflow: hidden;
  background: #f5f0e6;
  color: #222127;
  box-shadow: -24px 0 70px #19170f35;
  font-family: var(--atlas-sans, "IBM Plex Sans", sans-serif);
}

#newsroom-dialog[open] {
  display: block;
  animation: newsroom-in 280ms cubic-bezier(.2,.75,.25,1) both;
}

#newsroom-dialog::backdrop {
  background: #1e28304f;
  backdrop-filter: saturate(.7) blur(2px);
  animation: newsroom-fade 220ms ease both;
}

body.newsroom-open .atlas-author,
body.newsroom-open .topbar,
body.newsroom-open .right-tools {
  opacity: .22;
  filter: grayscale(.7);
}

.newsroom-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  background:
    linear-gradient(90deg, transparent 0 23px, #98382122 23px 24px, transparent 24px),
    #f5f0e6;
}

.newsroom-toolbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 16px 10px 36px;
  border-bottom: 1px solid #cfc3b4;
  background: #f9f5ecf2;
  backdrop-filter: blur(14px);
}

.newsroom-edition {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.newsroom-edition b {
  font: 600 11px/1.2 var(--atlas-sans, "IBM Plex Sans", sans-serif);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.newsroom-edition span {
  color: #6c675e;
  font-size: 11px;
}

.newsroom-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.newsroom-toolbar button,
.newsroom-toolbar a {
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #cfc3b4;
  border-radius: 999px;
  background: #fffdf8;
  color: #222127;
  text-decoration: none;
  font: 650 12px/1 var(--atlas-sans, "IBM Plex Sans", sans-serif);
}

.newsroom-toolbar button:hover,
.newsroom-toolbar a:hover {
  background: #e6eaf5;
  border-color: #294294;
}

.newsroom-toolbar [data-newsroom-back] {
  width: auto;
  padding: 0 14px;
}

.newsroom-toolbar [data-newsroom-close] {
  font-size: 22px;
}

.newsroom-scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.newsroom-home {
  padding-bottom: 72px;
}

.newsroom-hero {
  position: relative;
  min-height: clamp(310px, 43vh, 470px);
  display: grid;
  align-items: end;
  padding: clamp(30px, 5vw, 72px);
  background: #eadbc3 url("newsroom-v92/lubon-editorial-atlas-hero.jpg") center/cover no-repeat;
  overflow: hidden;
}

.newsroom-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #f0dfc8f5 0%, #f0dfc8e8 30%, #f0dfc866 58%, transparent 82%),
    linear-gradient(0deg, #30251730, transparent 40%);
}

.newsroom-hero-copy {
  position: relative;
  max-width: 520px;
}

.newsroom-kicker {
  margin: 0 0 14px;
  color: #983821;
  font: 750 11px/1.2 var(--atlas-sans, "IBM Plex Sans", sans-serif);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.newsroom-hero h1 {
  max-width: 9ch;
  margin: 0;
  color: #222127;
  font: 430 clamp(49px, 6vw, 88px)/.88 var(--atlas-serif, Fraunces, Georgia, serif);
  letter-spacing: -.055em;
}

.newsroom-hero h1::after {
  content: ".";
  color: #983821;
}

.newsroom-hero-copy > p:last-child {
  max-width: 48ch;
  margin: 22px 0 0;
  color: #3f3b38;
  font-size: 15px;
  line-height: 1.55;
}

.newsroom-review-note {
  margin: 0;
  padding: 10px 36px;
  border-top: 1px solid #e0c6b9;
  border-bottom: 1px solid #e0c6b9;
  background: #f7e6dd;
  color: #74331f;
  font: 650 12px/1.4 var(--atlas-sans, "IBM Plex Sans", sans-serif);
}

.newsroom-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 28px clamp(28px, 5vw, 64px) 18px;
}

.newsroom-search label {
  display: block;
  margin-bottom: 8px;
  color: #6c675e;
  font-size: 11px;
  font-weight: 650;
}

.newsroom-search input {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-bottom: 2px solid #222127;
  border-radius: 0;
  padding: 8px 36px 8px 0;
  background: transparent;
  color: #222127;
  font: 500 17px/1.2 var(--atlas-sans, "IBM Plex Sans", sans-serif);
}

.newsroom-search input::placeholder {
  color: #817b72;
}

.newsroom-month {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6c675e;
  font-size: 12px;
}

.newsroom-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 clamp(28px, 5vw, 64px) 28px;
  scrollbar-width: thin;
}

.newsroom-categories button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #cfc3b4;
  border-radius: 999px;
  background: transparent;
  color: #575149;
  font: 650 12px/1 var(--atlas-sans, "IBM Plex Sans", sans-serif);
}

.newsroom-categories button[aria-pressed="true"] {
  border-color: #294294;
  background: #294294;
  color: #fff;
}

.newsroom-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 24px;
  padding: 0 clamp(28px, 5vw, 64px);
  border-top: 1px solid #91897d;
}

.newsroom-card {
  grid-column: span 6;
  display: grid;
  align-content: start;
  min-height: 270px;
  padding: 26px 0 30px;
  border-bottom: 1px solid #cfc3b4;
}

.newsroom-card:nth-child(odd) {
  padding-right: 24px;
  border-right: 1px solid #cfc3b4;
}

.newsroom-card.is-lead {
  grid-column: span 12;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, .8fr);
  column-gap: 34px;
  min-height: 300px;
  padding-right: 0;
  border-right: 0;
}

.newsroom-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-bottom: 14px;
  color: #983821;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.newsroom-card h2 {
  margin: 0;
  color: #222127;
  font: 470 clamp(27px, 3vw, 42px)/1.02 var(--atlas-serif, Fraunces, Georgia, serif);
  letter-spacing: -.035em;
}

.newsroom-card:not(.is-lead) h2 {
  font-size: clamp(24px, 2.3vw, 32px);
}

.newsroom-card p {
  max-width: 58ch;
  margin: 16px 0 20px;
  color: #5a554e;
  font-size: 14px;
  line-height: 1.55;
}

.newsroom-card button {
  justify-self: start;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #983821;
  background: transparent;
  color: #983821;
  font-weight: 700;
}

.newsroom-card-illustration {
  position: relative;
  min-height: 220px;
  border: 1px solid #cfc3b4;
  background: #eadbc3 url("newsroom-v92/lubon-editorial-atlas-hero.jpg") 70% center/cover no-repeat;
}

.newsroom-card-illustration::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #fff9;
}

.newsroom-empty {
  grid-column: 1 / -1;
  padding: 52px 0;
  color: #5a554e;
}

.newsroom-article {
  min-height: 100%;
  padding: clamp(34px, 6vw, 86px) clamp(28px, 8vw, 110px) 90px;
  background:
    linear-gradient(90deg, transparent 0 23px, #98382122 23px 24px, transparent 24px),
    #f5f0e6;
}

.newsroom-article-head {
  max-width: 830px;
  padding-bottom: 28px;
  border-bottom: 1px solid #91897d;
}

.newsroom-article-head h1 {
  margin: 12px 0 20px;
  font: 470 clamp(42px, 5vw, 72px)/.98 var(--atlas-serif, Fraunces, Georgia, serif);
  letter-spacing: -.045em;
}

.newsroom-article-head .newsroom-dek {
  max-width: 58ch;
  margin: 0;
  color: #5a554e;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
}

.newsroom-article-body {
  max-width: 690px;
  padding-top: 30px;
  font: 400 18px/1.72 var(--atlas-serif, Fraunces, Georgia, serif);
}

.newsroom-article-body p {
  margin: 0 0 1.25em;
}

.newsroom-source-box {
  max-width: 690px;
  margin-top: 34px;
  padding: 20px 0;
  border-top: 2px solid #222127;
  border-bottom: 1px solid #cfc3b4;
}

.newsroom-source-box b {
  display: block;
  margin-bottom: 9px;
  color: #6c675e;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.newsroom-source-box a {
  color: #294294;
  font-weight: 650;
  text-underline-offset: 3px;
}

.newsroom-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 690px;
  margin-top: 24px;
}

.newsroom-article-actions a,
.newsroom-article-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #294294;
  border-radius: 999px;
  background: transparent;
  color: #294294;
  text-decoration: none;
  font: 700 12px/1 var(--atlas-sans, "IBM Plex Sans", sans-serif);
}

.newsroom-article-actions a:first-child {
  background: #294294;
  color: #fff;
}

@keyframes newsroom-in {
  from { transform: translateX(36px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes newsroom-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .atlas-masthead {
    grid-template-columns: auto auto minmax(0, 1fr) !important;
  }

  .atlas-author {
    display: none !important;
  }

  .atlas-byline {
    display: block !important;
    grid-column: 3 !important;
    justify-self: end !important;
  }

  .newsroom-switch button {
    min-width: 68px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  #newsroom-dialog {
    width: 100vw;
    max-width: none;
    border-left: 0;
  }
}

@media (max-width: 700px), (max-width: 900px) and (max-height: 500px) {
  .atlas-masthead {
    padding: 0 12px !important;
    column-gap: 8px !important;
  }

  .atlas-wordmark {
    font-size: 23px !important;
  }

  .atlas-place {
    display: none;
  }

  .atlas-byline {
    grid-column: 3 !important;
  }

  .newsroom-switch {
    gap: 2px;
    padding: 2px;
  }

  .newsroom-switch button {
    min-width: 56px;
    min-height: 30px;
    padding: 0 8px;
    font-size: 10px;
  }

  #newsroom-dialog {
    inset: var(--atlas-header, 66px) 0 0;
    height: calc(100dvh - var(--atlas-header, 66px));
  }

  .newsroom-toolbar {
    min-height: 54px;
    padding: 8px 10px 8px 24px;
  }

  .newsroom-edition span {
    display: none;
  }

  .newsroom-toolbar [data-newsroom-back] {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .newsroom-hero {
    min-height: 360px;
    padding: 34px 26px;
    background-position: 60% center;
  }

  .newsroom-hero::before {
    background: linear-gradient(90deg, #f0dfc8f5 0%, #f0dfc8d9 63%, #f0dfc833 100%);
  }

  .newsroom-hero h1 {
    font-size: clamp(52px, 15vw, 66px);
  }

  .newsroom-hero-copy > p:last-child {
    font-size: 14px;
  }

  .newsroom-review-note {
    padding: 10px 24px;
  }

  .newsroom-tools {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 24px 16px;
  }

  .newsroom-categories {
    padding: 0 24px 22px;
  }

  .newsroom-grid {
    display: block;
    padding: 0 24px;
  }

  .newsroom-card,
  .newsroom-card.is-lead {
    display: grid;
    min-height: 0;
    padding: 24px 0 28px;
    border-right: 0;
  }

  .newsroom-card.is-lead {
    grid-template-columns: 1fr;
  }

  .newsroom-card-illustration {
    min-height: 170px;
    margin-top: 20px;
  }

  .newsroom-card h2,
  .newsroom-card:not(.is-lead) h2 {
    font-size: 31px;
  }

  .newsroom-article {
    padding: 34px 24px 74px;
  }

  .newsroom-article-head h1 {
    font-size: 43px;
  }

  .newsroom-article-body {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #newsroom-dialog[open],
  #newsroom-dialog::backdrop {
    animation: none;
  }

  .newsroom-scroll {
    scroll-behavior: auto;
  }
}
