/* EQ-3: Mission-blue information areas.
   Shared token --mk-info is the logo and section-title blue
   (--c-brand / #4DC8FF / 77,200,255).
   Retints info and tips section containers only: border, glow,
   left accent bar, and header pill labels.
   Does not change Areas or Maps tiles, nav, inner tile colors,
   DROPS tags, or the locked purple Tips tiles. */

:root{
  --mk-info: var(--c-brand, #4DC8FF);
  --mk-info-rgb: var(--c-brand-rgb, 77,200,255);
}

/* One shared class plus the existing info-container selectors, so
   every information area uses the same token. */
.mk-info,
main .task-section,
main .area-pack,
main .worth-detour,
main .watched-routes,
main .drops-panel,
main .drops-tiles,
main .area-intel,
main .area-tips,
main .walk-jump,
main .guide-notes,
main .field-guide,
main .pro-tips,
main .glossary-item,
main .players-reporting,
main .story-unlock,
[data-section="areas"] .area-body .task-section,
[data-section="areas"] .area-body .worth-detour,
[data-section="areas"] .area-body .watched-routes,
[data-section="areas"] .area-body .drops-panel,
[data-section="areas"] .area-body .drops-tiles,
[data-section="areas"] .area-body .area-intel,
[data-section="areas"] .area-body .area-tips{
  --pc: var(--mk-info);
  --pc-rgb: var(--mk-info-rgb);
}

/* Beat the v8 rule that pinned common panels to Areas yellow. */
[data-section="areas"] .area-body .task-section,
main .task-section:not(.guide-notes):not(.field-guide),
main .glossary-item{
  --pc: var(--mk-info);
  --pc-rgb: var(--mk-info-rgb);
}

/* "Show more" pills inside info boxes were also forced to Areas yellow. */
.task-section .mk-more,
.worth-detour .mk-more,
.watched-routes .mk-more,
.area-intel .mk-more{
  --pc: var(--mk-info);
  --pc-rgb: var(--mk-info-rgb);
}

/* Linked Orders (and other short tile rows inside an info box): sit
   under the group heading instead of centering a single tile and
   leaving a hole beside it. Content is kept. */
.task-section .tiles-4,
.task-section .tiles-items{
  justify-content: flex-start !important;
}

/* EQ-3b: Watched Routes is full width on mobile only.
   Desktop (min-width 720px) is unchanged. Cards sit side by side
   when they fit, otherwise they stack. Words wrap at spaces, not
   mid-word. */
@media (max-width: 719px) {
  [data-section="areas"] .area-body__col--right:has(> .watched-routes) {
    display: contents;
  }
  [data-section="areas"] .area-body__col--right:has(> .watched-routes) > :not(.watched-routes) {
    grid-column: 2;
    min-width: 0;
    max-width: 100%;
  }
  /* Overflow panels that sit under Watched Routes in the right column
     (Facts, Tips, or a trailing Worth the detour) span full width so
     they do not leave an empty left gutter under the full-width box. */
  [data-section="areas"] .area-body__col--right:has(> .watched-routes) > .watched-routes ~ * {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  [data-section="areas"] .area-body .watched-routes {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  [data-section="areas"] .area-body .watched-routes,
  [data-section="areas"] .area-body .watched-routes *,
  [data-section="areas"] .area-body .watched-route figcaption {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
  [data-section="areas"] .area-body .watched-routes__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
    width: 100%;
    min-width: 0;
  }
}
