/* Shared by Next.js pages and scheduler-owned weekly article HTML. */
.weekly-map {
  --weekly-map-ink: #071923;
  --weekly-map-paper: #fffdf7;
  --weekly-map-coral: #c9472d;
  --weekly-map-teal: #176c69;
  --weekly-map-water: #0f2931;
  margin: 0;
}

.weekly-map-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
}

.weekly-map-heading h2 {
  margin: .55rem 0 0;
  font-family: var(--font-newsreader, Georgia, serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 520;
  letter-spacing: -.025em;
  line-height: 1;
}

.weekly-map-heading > p {
  max-width: 23rem;
  margin: 0;
  color: var(--ink-soft, #65747a);
  font-size: .78rem;
  line-height: 1.6;
  text-align: right;
}

.map-wrap .weekly-map-heading > p { color: #b8c6ca; }

.weekly-map-stage {
  --weekly-map-panel-height: 7.25rem;
  position: relative;
  isolation: isolate;
  min-height: 23rem;
  overflow: hidden;
  aspect-ratio: 5 / 3;
  border: 1px solid rgba(255, 255, 255, .24);
  background: var(--weekly-map-water);
}

.weekly-map-explorer {
  display: grid;
  height: clamp(35rem, 50vw, 38rem);
  grid-template-columns: minmax(0, 1fr) clamp(17rem, 24vw, 19rem);
  overflow: hidden;
  border: 1px solid rgba(7, 25, 35, .35);
  background: var(--weekly-map-paper);
  box-shadow: 0 14px 34px rgba(7, 25, 35, .12);
}

.weekly-map-explorer .weekly-map-stage {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
}

.weekly-map-live,
.weekly-map-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.weekly-map-live {
  z-index: 1;
  background: var(--weekly-map-ink);
  opacity: 0;
  transition: opacity .25s ease;
}

.weekly-map[data-map-state="ready"] .weekly-map-live { opacity: 1; }
.weekly-map[data-map-panel-ready="true"] .weekly-map-live {
  bottom: var(--weekly-map-panel-height);
  height: auto;
}

.weekly-map-fallback {
  z-index: 2;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 28%, rgba(129, 170, 169, .22), transparent 22%),
    linear-gradient(145deg, #071923, #12363e 58%, #0f2931);
}

.weekly-map-fallback::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .075) 1px, transparent 1px);
  background-size: 12.5% 20%;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 94%);
}

.weekly-map-fallback::after {
  position: absolute;
  right: 2rem;
  bottom: 1.75rem;
  color: rgba(255, 255, 255, .45);
  content: "ASIA  /  PACIFIC";
  font-family: var(--font-manrope, Arial, sans-serif);
  font-size: clamp(.72rem, 1.4vw, 1rem);
  font-weight: 850;
  letter-spacing: .2em;
}

.weekly-map-fallback-axis {
  position: absolute;
  top: 1.6rem;
  left: 1.75rem;
  max-width: 15rem;
  color: #dce8e4;
  font-family: var(--font-manrope, Arial, sans-serif);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.weekly-map-fallback-point {
  position: absolute;
  top: var(--map-pin-y);
  left: var(--map-pin-x);
  z-index: 3;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid #fffefa;
  border-radius: 50%;
  background: var(--weekly-map-coral);
  box-shadow: 0 0 0 5px rgba(201, 71, 45, .22);
  color: white;
  font-family: var(--font-manrope, Arial, sans-serif);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.weekly-map-status {
  min-height: 1.2rem;
  margin: .7rem 0 0;
  color: var(--ink-soft, #65747a);
  font-size: .68rem;
  line-height: 1.5;
}

.map-wrap .weekly-map-status { color: #b8c6ca; }
.weekly-map-status:empty { display: none; }

.weekly-map-location-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid #aeb7b2;
  border-left: 1px solid #aeb7b2;
  background: var(--weekly-map-paper);
  color: var(--weekly-map-ink);
  list-style: none;
}

.weekly-map-location-list li {
  min-width: 0;
  border-right: 1px solid #aeb7b2;
  border-bottom: 1px solid #aeb7b2;
}

.weekly-map-location-list > li > a[data-weekly-map-story-link] {
  display: grid;
  min-height: 5.35rem;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .8rem;
  align-content: start;
  padding: .95rem 1rem;
  color: inherit;
  text-decoration: none;
}

.weekly-map-location-list > li > a[data-weekly-map-story-link]:hover,
.weekly-map-location-list > li > a[data-weekly-map-story-link]:focus-visible {
  background: #f1e8d6;
  outline: 2px solid var(--weekly-map-teal);
  outline-offset: -2px;
}

.weekly-map-location-list .story-geography-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
  margin: 0;
  padding: 0 1rem .9rem 3.8rem;
}

.weekly-map-location-list .story-geography-links-label {
  color: #65747a;
  font-family: var(--font-manrope, Arial, sans-serif);
  font-size: .55rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.weekly-map-location-list .story-geography-link-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.weekly-map-location-list .story-geography-links a[data-story-geography-link] {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  gap: .25rem;
  padding: .24rem .4rem;
  border: 1px solid #b7c0bb;
  color: #425b60;
  font-family: var(--font-manrope, Arial, sans-serif);
  font-size: .62rem;
  font-weight: 790;
  line-height: 1.2;
  text-decoration: none;
}

.weekly-map-location-list .story-geography-links a[data-story-geography-link]:hover,
.weekly-map-location-list .story-geography-links a[data-story-geography-link]:focus-visible {
  border-color: var(--weekly-map-teal);
  color: var(--weekly-map-teal);
  outline: 2px solid var(--weekly-map-teal);
  outline-offset: 1px;
}

.weekly-map-location-index {
  color: var(--weekly-map-coral);
  font-family: var(--font-manrope, Arial, sans-serif);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.weekly-map-location-copy { min-width: 0; }

.weekly-map-location-copy span {
  display: block;
  color: var(--weekly-map-teal);
  font-family: var(--font-manrope, Arial, sans-serif);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1.3;
  text-transform: uppercase;
}

.weekly-map-location-copy strong {
  display: block;
  margin-top: .36rem;
  font-family: var(--font-newsreader, Georgia, serif);
  font-size: 1rem;
  font-weight: 580;
  line-height: 1.2;
}

.weekly-map figcaption {
  margin: 0;
  padding: .8rem 0;
  color: var(--ink-soft, #65747a);
  font-size: .68rem;
  line-height: 1.55;
}

.map-wrap .weekly-map figcaption { color: #b8c6ca; }

.weekly-map-pin-target {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: end center;
  cursor: pointer;
  filter: drop-shadow(0 4px 8px rgba(7, 25, 35, .24));
  transform-origin: 50% 100%;
  transition: filter .16s ease, transform .16s ease;
}

.weekly-map-pin-target[data-map-pin-state="hover"],
.weekly-map-pin-target[data-map-pin-state="focus"],
.weekly-map-pin-target[data-map-pin-state="selected"] {
  filter: drop-shadow(0 0 0 rgba(7, 25, 35, 0)) drop-shadow(0 7px 12px rgba(7, 25, 35, .3));
  transform: translateY(-2px) scale(1.12);
}

.weekly-map-pin-target[data-map-pin-state="focus"]::before,
.weekly-map-pin-target[data-map-pin-state="selected"]::before {
  position: absolute;
  inset: -3px;
  border: 3px solid var(--weekly-map-teal);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 253, 247, .96);
  content: "";
  pointer-events: none;
}

.weekly-map-load {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  min-height: 2.75rem;
  padding: .7rem .9rem;
  border: 1px solid var(--weekly-map-ink);
  border-radius: 0;
  background: var(--weekly-map-paper);
  box-shadow: 0 8px 24px rgba(7, 25, 35, .22);
  color: var(--weekly-map-ink);
  cursor: pointer;
  font-family: var(--font-manrope, Arial, sans-serif);
  font-size: .68rem;
  font-weight: 900;
}

.weekly-map-load:hover,
.weekly-map-load:focus-visible {
  border-color: var(--weekly-map-teal);
  outline: 2px solid var(--weekly-map-teal);
  outline-offset: 2px;
}

.weekly-map-pin-target::after {
  position: absolute;
  right: 2px;
  bottom: 1px;
  left: 2px;
  height: 10px;
  border-radius: 50%;
  background: rgba(7, 25, 35, .18);
  content: "";
  filter: blur(4px);
  pointer-events: none;
}

.weekly-map-navigator {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border-left: 1px solid #aeb7b2;
  background: var(--weekly-map-paper);
  color: var(--weekly-map-ink);
}

.weekly-map-navigator-header {
  display: flex;
  min-height: 4.2rem;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .65rem .7rem .65rem .85rem;
  border-bottom: 1px solid #aeb7b2;
  background: #f1e8d6;
}

.weekly-map-navigator-header > div:first-child > span,
.weekly-map-navigator-header > div:first-child > strong {
  display: block;
}

.weekly-map-navigator-header > div:first-child > span {
  color: var(--weekly-map-teal);
  font-family: var(--font-manrope, Arial, sans-serif);
  font-size: .52rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.weekly-map-navigator-header > div:first-child > strong {
  margin-top: .18rem;
  font-family: var(--font-newsreader, Georgia, serif);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.1;
}

.weekly-map-navigator-controls {
  display: flex;
  gap: .35rem;
}

.weekly-map-navigator-controls button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--weekly-map-ink);
  border-radius: 0;
  background: var(--weekly-map-paper);
  color: var(--weekly-map-ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.weekly-map-navigator-controls button:hover,
.weekly-map-navigator-controls button:focus-visible {
  border-color: var(--weekly-map-teal);
  background: var(--weekly-map-teal);
  color: white;
  outline: 2px solid var(--weekly-map-teal);
  outline-offset: 2px;
}

.weekly-map-navigator-list {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-color: #8c9998 transparent;
}

.weekly-map-navigator-list li + li {
  border-top: 1px solid #ccd1ca;
}

.weekly-map-navigator-item {
  display: grid;
  width: 100%;
  min-height: 3.9rem;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .55rem;
  align-content: center;
  padding: .65rem .75rem;
  border: 0;
  border-left: 4px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--weekly-map-ink);
  cursor: pointer;
  text-align: left;
}

.weekly-map-navigator-item:hover,
.weekly-map-navigator-item:focus-visible {
  border-left-color: var(--weekly-map-coral);
  background: #f8f2e7;
  outline: 2px solid var(--weekly-map-teal);
  outline-offset: -2px;
}

.weekly-map-navigator-item[data-map-story-state="selected"],
.weekly-map-navigator-item[aria-pressed="true"] {
  border-left-color: var(--weekly-map-coral);
  background: #dfece8;
  box-shadow: inset 0 0 0 1px rgba(23, 108, 105, .35);
}

.weekly-map-navigator-index {
  color: var(--weekly-map-coral);
  font-family: var(--font-manrope, Arial, sans-serif);
  font-size: .64rem;
  font-weight: 950;
  letter-spacing: .05em;
  line-height: 1.3;
}

.weekly-map-navigator-copy {
  min-width: 0;
}

.weekly-map-navigator-copy > span {
  display: block;
  overflow: hidden;
  color: var(--weekly-map-teal);
  font-family: var(--font-manrope, Arial, sans-serif);
  font-size: .54rem;
  font-weight: 900;
  letter-spacing: .045em;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.weekly-map-navigator-copy strong {
  display: -webkit-box;
  overflow: hidden;
  margin-top: .22rem;
  font-family: var(--font-newsreader, Georgia, serif);
  font-size: .86rem;
  font-weight: 620;
  letter-spacing: -.008em;
  line-height: 1.13;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.weekly-map-story-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: grid;
  box-sizing: border-box;
  height: var(--weekly-map-panel-height);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.1rem 1.05rem;
  overflow: hidden;
  border: 0;
  border-top: 4px solid var(--weekly-map-coral);
  background: linear-gradient(105deg, #fffdf7 0%, #f4eddf 100%);
  box-shadow: 0 -8px 24px rgba(7, 25, 35, .14);
  color: var(--weekly-map-ink);
}

.weekly-map-story-panel[hidden] { display: none; }

.weekly-map-story-panel p {
  margin: 0;
  color: var(--weekly-map-teal);
  font-family: var(--font-manrope, Arial, sans-serif);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.weekly-map-story-panel h3 {
  margin: .35rem 0 0;
  font-family: var(--font-newsreader, Georgia, serif);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 620;
  letter-spacing: -.015em;
  line-height: 1.15;
}

.weekly-map-story-panel[data-map-panel-state="idle"] h3 {
  color: #425b60;
  font-size: 1rem;
  font-weight: 560;
}

.weekly-map-story-panel-actions {
  display: flex;
  gap: .55rem;
  align-items: center;
}

.weekly-map-story-panel-actions a,
.weekly-map-story-panel-actions button {
  min-height: 2.75rem;
  padding: .72rem .86rem;
  border: 1px solid var(--weekly-map-ink);
  border-radius: 0;
  font-family: var(--font-manrope, Arial, sans-serif);
  font-size: .67rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.weekly-map-story-panel-actions a {
  background: var(--weekly-map-ink);
  color: white;
}

.weekly-map-story-panel-actions button {
  background: transparent;
  color: var(--weekly-map-ink);
  cursor: pointer;
}

.weekly-map-story-panel-actions a:hover,
.weekly-map-story-panel-actions a:focus-visible,
.weekly-map-story-panel-actions button:hover,
.weekly-map-story-panel-actions button:focus-visible {
  border-color: var(--weekly-map-teal);
  outline: 2px solid var(--weekly-map-teal);
  outline-offset: 2px;
}

@media (max-width: 880px) {
  .weekly-map-explorer { height: auto; grid-template-columns: 1fr; }
  .weekly-map-explorer .weekly-map-stage {
    height: clamp(24rem, 62vw, 31rem);
  }
  .weekly-map-navigator { border-top: 1px solid #aeb7b2; border-left: 0; }
  .weekly-map-navigator-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
  .weekly-map-navigator-list li {
    border-top: 1px solid #ccd1ca;
  }
  .weekly-map-navigator-list li:nth-child(odd) { border-right: 1px solid #ccd1ca; }
  .weekly-map-navigator-list li + li { border-top: 1px solid #ccd1ca; }
  .weekly-map-navigator-item { min-height: 4.9rem; }
}

@media (max-width: 760px) {
  .weekly-map-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: .7rem;
  }

  .weekly-map-heading > p { text-align: left; }
  .weekly-map-explorer .weekly-map-stage {
    width: 100%;
    height: clamp(22rem, 108vw, 25rem);
    min-height: 0;
    aspect-ratio: auto;
  }
  .weekly-map-location-list { grid-template-columns: 1fr; }
  .weekly-map-story-panel { gap: .7rem; padding-inline: .85rem; }
  .weekly-map-story-panel-actions { justify-content: flex-end; }
}

@media (max-width: 560px) {
  .weekly-map-explorer .weekly-map-stage { height: clamp(22rem, 108vw, 25rem); }
  .weekly-map-fallback-axis { top: 1.1rem; left: 1.1rem; }
  .weekly-map-fallback::after { right: 1rem; bottom: 1.15rem; }
  .weekly-map-fallback-point { width: 1.65rem; height: 1.65rem; }
  .weekly-map-load { top: auto; right: 1rem; bottom: 1rem; left: 1rem; width: calc(100% - 2rem); }
  .weekly-map-navigator-header { padding-left: .7rem; }
  .weekly-map-navigator-item {
    min-height: 6rem;
    grid-template-columns: 1.55rem minmax(0, 1fr);
    gap: .35rem;
    padding: .65rem .55rem;
  }
  .weekly-map-navigator-copy > span { font-size: .48rem; }
  .weekly-map-navigator-copy strong { font-size: .78rem; }
  .weekly-map-story-panel-actions { gap: .35rem; }
  .weekly-map-story-panel-actions a,
  .weekly-map-story-panel-actions button {
    padding-inline: .65rem;
    font-size: .61rem;
  }
}

@media (max-width: 360px) {
  .weekly-map-stage { --weekly-map-panel-height: 9.5rem; }
  .weekly-map-explorer .weekly-map-stage { height: clamp(24rem, 125vw, 27rem); }
  .weekly-map-navigator-list { grid-template-columns: 1fr; }
  .weekly-map-navigator-list li:nth-child(odd) { border-right: 0; }
  .weekly-map-navigator-item { min-height: 4.9rem; }
  .weekly-map-story-panel {
    grid-template-columns: 1fr;
    gap: .65rem;
    padding-block: .75rem;
  }
  .weekly-map-story-panel-actions { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .weekly-map-live,
  .weekly-map-pin-target { transition: none; }
}
