
#mobileWeekAhead { display:none; }
@media (max-width:899px) {
  #briefingCard[data-mobile-week-ahead="true"] .nudge--briefing { display:none; }
  #mobileWeekAhead:not(:empty) { display:block; min-width:0; margin:8px 0 0; border:1px solid var(--line); border-radius:22px; background:var(--panel); overflow:hidden; }
  #mobileWeekAhead :is(h2,h3,h4,p,ul) { margin:0; padding:0; }
  #mobileWeekAhead :is(h2,h3,h4,p,li) { overflow-wrap:anywhere; }
  #mobileWeekAhead .wa-head { background:#12233e; color:#fff; padding:20px 16px 16px; }
  #mobileWeekAhead h2 { color:inherit; font-size:clamp(24px,7vw,30px); line-height:1.12; }
  #mobileWeekAhead h3 { font-size:17px; line-height:1.25; }
  #mobileWeekAhead h4 { font-size:17px; line-height:1.24; }
  #mobileWeekAhead .wa-head p { margin-top:5px; color:#d0e0e8; font-size:16px; }
  #mobileWeekAhead .wa-state { margin-top:14px; background:#233c52; padding:12px; border-radius:13px; }
  #mobileWeekAhead .wa-body { padding:14px 12px; display:grid; gap:10px; }
  #mobileWeekAhead .wa-row-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px; flex-wrap:wrap; }
  #mobileWeekAhead .wa-row-heading > span, #mobileWeekAhead .wa-legend { font-size:16px; color:var(--muted-strong,var(--muted)); }
  #mobileWeekAhead .wa-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
  #mobileWeekAhead .wa-day { min-width:44px; min-height:56px; display:grid; place-items:center; gap:1px; padding:4px 0; background:var(--panel-2); color:var(--ink); border:1px solid var(--line); border-radius:10px; box-shadow:none; font-size:16px; }
  #mobileWeekAhead .wa-day strong { font-size:16px; }
  #mobileWeekAhead .wa-day[aria-pressed="true"] { border-color:currentColor; box-shadow:inset 0 0 0 1px currentColor; }
  #mobileWeekAhead .wa-marks { min-height:5px; display:flex; gap:3px; }
  #mobileWeekAhead :is(.wa-marks,.wa-legend) i { display:inline-block; width:6px; height:6px; border-radius:50%; }
  #mobileWeekAhead i.wa-overlap { background:#b7502d; }
  #mobileWeekAhead i.wa-ride { background:#1b866c; }
  html[data-theme="dark"] #mobileWeekAhead i.wa-overlap { background:#ffaa78; }
  html[data-theme="dark"] #mobileWeekAhead i.wa-ride { background:#8be5c1; }
  #mobileWeekAhead .wa-legend { display:flex; flex-wrap:wrap; gap:6px 14px; }
  #mobileWeekAhead .wa-legend > span { display:inline-flex; align-items:center; gap:5px; }
  #mobileWeekAhead .wa-issues-title { margin-top:4px; }
  #mobileWeekAhead :is(.wa-issue,.wa-day-details) { background:var(--panel-2); border:1px solid var(--line); border-radius:14px; padding:12px; min-width:0; }
  #mobileWeekAhead .wa-day-details[hidden] { display:none; }
  #mobileWeekAhead .wa-tag { display:inline-block; border-radius:7px; padding:3px 7px; font-size:16px; font-weight:800; margin-bottom:7px; }
  #mobileWeekAhead .wa-tag.wa-overlap { color:#873416; background:#ffeddc; }
  #mobileWeekAhead .wa-tag.wa-ride { color:#155749; background:#deeee8; }
  #mobileWeekAhead .wa-issue p, #mobileWeekAhead .wa-day-details p { margin-top:4px; font-size:16px; color:var(--muted-strong,var(--muted)); }
  #mobileWeekAhead .wa-action { display:inline-flex; align-items:center; min-height:44px; padding:4px 0; text-align:left; border:0; color:var(--ink); background:transparent; box-shadow:none; text-decoration:underline; text-underline-offset:3px; }
  #mobileWeekAhead .wa-calendar { min-height:44px; color:var(--ink); background:var(--panel-2); border:1px solid var(--line); border-radius:10px; box-shadow:none; }
  #mobileWeekAhead :is(button,summary):focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
  #mobileWeekAhead .wa-day-details ul { display:grid; gap:7px; margin-top:10px; list-style:none; }
  #mobileWeekAhead .wa-day-details li { display:flex; align-items:baseline; gap:8px; font-size:16px; }
  #mobileWeekAhead .wa-day-details li span { flex:none; color:var(--muted-strong,var(--muted)); }
  #mobileWeekAhead .wa-more > summary { min-height:44px; padding:10px 4px; cursor:pointer; }
  #mobileWeekAhead .wa-more .wa-issue { margin-top:8px; }
}

/* Seven 44px targets do not fit within the card gutters on narrow phones. */
@media (max-width:393px) {
  #mobileWeekAhead .wa-days { grid-template-columns:repeat(4,minmax(44px,1fr)); }
}
