/* The editorial row shares the opening's secondary surface; the map stays the primary action. */
#map-intro .map-intro-news > span { color: #ffd39b; font-size: 14px; font-weight: 750; }
#map-intro .map-intro-news small {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-wrap: nowrap; font-weight: 550; color: #fff5f5;
}
@media (min-aspect-ratio: 1/1) {
  .map-intro-actions:has(.map-intro-news) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .map-intro-news { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-aspect-ratio: 1/1) {
  .map-intro-actions:has(.map-intro-news) { gap: 8px; }
}
@media (max-aspect-ratio: 1/1) and (max-height: 700px) {
  #map-intro .map-intro-actions a { min-height: 44px; padding-block: 4px; }
  #map-intro .map-intro-proof { margin-top: 8px; }
}

#map-news-open {
  padding: 0 6px;
  color: #ffd5af;
  font: 700 14px/1.15 var(--atlas-body, DM), sans-serif;
  white-space: nowrap;
}
#map-news-open .ic, .map-news-context .ic { width: 18px; height: 18px; flex: none; }
#map-news-open:hover, #map-news-clear:hover { text-decoration: underline; }
.map-news-context:not([hidden]), .map-news-context > span, #map-news-clear {
  display: flex; align-items: center; gap: 8px;
}
.map-news-context:not([hidden]) { width: 100%; justify-content: space-between; }
.map-news-context > span { color: #ffe2bb; font-size: 14px; }
#map-news-clear {
  min-height: 40px; padding: 0 5px; border: 0; background: transparent;
  font: 650 14px/1 var(--atlas-body, DM), sans-serif; color: #fff7f4; cursor: pointer;
}
#map-session-entry[data-news-highlights] :is(#map-session-plan, .map-session-end > :not(#map-news-open)) { display: none; }
@media (max-width: 520px) {
  .map-ui #map-session-entry #map-news-open { gap: 4px; padding-inline: 3px; font-size: 12.5px; }
  #map-session-plan { overflow: hidden; }
  #map-session-entry .map-session-plan-copy b { overflow: hidden; text-overflow: ellipsis; }
  #map-session-entry .map-session-end { gap: 5px; }
  #map-session-entry .map-session-replay-label {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}
@media (max-width: 370px) {
  .map-ui #map-session-entry #map-session-plan > .ic { display: none; }
}

#map-news-panel {
  position: fixed; inset: auto 0 0;
  box-sizing: border-box;
  width: 100%; max-width: none; max-height: min(64dvh, max(370px, 46dvh), 540px);
  margin: 0; padding: 0 0 env(safe-area-inset-bottom);
  overflow: hidden;
  border: 1px solid #65516b; border-bottom: 0; border-radius: 22px 22px 0 0;
  color: #fff4f4; background: linear-gradient(145deg, #40263e 0%, #291b30 40%, #211727 100%);
  box-shadow: 0 -10px 40px #160e2538;
  font: 500 14px/1.4 var(--atlas-body, DM), sans-serif;
}
#map-news-panel[open] { display: flex; flex-direction: column; }
#map-news-panel::backdrop { background: #130b200f; backdrop-filter: none; }
#map-news-panel::before {
  content: ""; display: block; flex: none; width: 36px; height: 4px;
  margin: 9px auto 0; border-radius: 5px; background: #b6a2b8;
}
.map-news-head, #map-news-panel footer { flex: none; }
.map-news-head {
  display: flex; align-items: center; justify-content: space-between; padding: 2px 10px 2px 18px;
  border-bottom: 1px solid #ffffff2b;
}
.map-news-head h2 {
  display: flex; align-items: center; gap: 9px; margin: 0; color: #fff4ed;
  font: 750 19px/1.2 var(--atlas-body, DM), sans-serif; letter-spacing: -.02em;
}
.map-news-head h2 .ic { width: 21px; height: 21px; color: #ffd5c5; }
.map-news-close {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0;
  border-radius: 50%; background: transparent; color: #f4e5ee; cursor: pointer;
}
.map-news-close .ic { width: 20px; height: 20px; }
.map-news-notice:not([hidden]) {
  padding: 8px 18px; border-bottom: 1px solid #ffffff24; color: #ffe1be;
}
.map-news-notice a { color: inherit; text-underline-offset: 3px; }
.map-news-scroll {
  min-height: 0; overflow: auto; overscroll-behavior: contain;
  padding: 0 18px; scrollbar-width: thin; scrollbar-color: #a780a7 transparent;
}
.map-news-story { padding-block: 12px; }
.map-news-story + .map-news-story { border-top: 1px solid #ffffff24; }
.map-news-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; color: #dccbd8; font-size: 12px; }
.map-news-story h3 { margin: 2px 0 0; font: 700 16px/1.25 var(--atlas-body, DM), sans-serif; }
.map-news-story h3 a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 32px; color: #fff6ee; text-decoration: none;
}
.map-news-story h3 a:hover { text-decoration: underline; }
.map-news-story a .ic { width: 17px; height: 17px; flex: none; color: #e2cddc; }
.map-news-section {
  padding-top: 12px; margin: 3px 0 -4px; border-top: 1px solid #ffffff36;
  color: #f6c18e; font: 750 12px/1.4 var(--atlas-body, DM), sans-serif;
}
.map-news-places { margin: 7px 0 0; color: #e4d4df; font-size: 13px; }
.map-news-show {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  width: 100%; min-height: 44px; margin-top: 8px; padding: 8px 14px;
  border: 1px solid #ffe0c4; border-radius: 13px;
  background: linear-gradient(105deg,#ffd09b,#ffa0af); color: #271529;
  font: 750 14px/1.25 var(--atlas-body, DM), sans-serif; cursor: pointer;
}
.map-news-show .ic { width: 17px; height: 17px; }
#map-news-panel footer { border-top: 1px solid #ffffff24; }
#map-news-panel footer a {
  display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px;
  color: #ffe1cc; text-underline-offset: 3px;
}
#map-news-panel footer .ic { width: 16px; height: 16px; }
#map-news-panel :focus-visible, #map-news-open:focus-visible, #map-news-clear:focus-visible {
  outline: 2px solid #89f0d2; outline-offset: -2px;
}
@media (min-width: 761px) {
  #map-news-panel {
    inset: calc(var(--pwa-mast, 68px) + 64px + env(safe-area-inset-top)) auto auto 12px;
    width: clamp(310px, 30vw, 385px); max-width: calc(100vw - 24px);
    max-height: calc(100dvh - var(--pwa-mast, 68px) - 85px - env(safe-area-inset-top));
    border-bottom: 1px solid #65516b; border-radius: 18px;
    box-shadow: 0 15px 40px #160e2544;
  }
  #map-news-panel::before { display: none; }
  .map-news-head { padding-block: 5px; }
}
@media (max-height: 530px) and (max-width: 760px) {
  #map-news-panel { max-height: 78dvh; }
}
@media (prefers-reduced-motion: no-preference) {
  #map-news-panel[open] { animation: news-reveal .18s ease-out; }
  @keyframes news-reveal { from { opacity: .5; transform: translateY(8px); } }
}
