/* date-header.css v1 (2026-11-11)
   The day number (.day-header__num) and weekday (.day-header__weekday) share
   .day-header__top. At widths above 1180px the identity column was squeezed to
   ~160px by the mini-months plus the Apps / Reports / menu chips, so the date
   sat on the W in "Wednesday". This sidecar does not edit the compiled bundle.
   It extends the header grid already used at 641-1180px so the top row keeps
   the full page width. Phone layout (max-width 640px) is unchanged. */
@media (min-width: 1181px) {
  .day-header__identity,
  .day-header__minis {
    display: contents;
  }
  .day-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "top top"
      "rule rule"
      "week nav"
      "m1 m2";
    column-gap: 10px;
    row-gap: 8px;
    align-items: end;
    justify-items: stretch;
  }
  .day-header__top {
    grid-area: top;
    width: 100%;
    justify-self: stretch;
  }
  .day-header__rule {
    grid-area: rule;
    width: 100%;
    justify-self: stretch;
  }
  .day-header__week {
    grid-area: week;
    margin: 0;
    padding: 0;
    align-items: flex-end;
    gap: 14px;
  }
  .day-header__month-nav {
    grid-area: nav;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 6px;
    padding-top: 0;
    padding-bottom: 2px;
    justify-self: start;
  }
  .day-header__month-nav + .mini-month,
  .day-header__month-nav + .mini-month + .mini-month {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    justify-self: stretch;
  }
  .day-header__month-nav + .mini-month { grid-area: m1; }
  .day-header__month-nav + .mini-month + .mini-month { grid-area: m2; }
}

/* Keep the date ink out of the weekday at every width. */
.day-header__num {
  padding-right: 0.14em;
}
.day-header__weekday {
  white-space: nowrap;
  padding-left: 0.12em;
  position: relative;
  z-index: 1;
}
