/* Final navigation and programme layout adjustments. */
body[data-page="home"], body[data-page="home"] > .wrapper {
  background: #22332c;
}
body[data-page="home"] .sidebar-tv__card {
  display: block;
  color: inherit;
  text-decoration: none;
}
body[data-page="home"] .sidebar-tv__card:focus-visible {
  outline: 3px solid #479666;
  outline-offset: 4px;
}

/* Only the list grid changes; the existing broadcast cards retain their style. */
.on-air-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}
.on-air-grid > .compact-row { min-width: 0; }
.on-air-grid > .compact-row h3 { overflow-wrap: anywhere; }
.result-air a.result-channel,
.result-air a.result-channel:hover,
.result-air a.result-channel:visited {
  color: #6e8675;
  text-decoration: none;
}
.result-air a.result-channel:focus-visible {
  outline: 2px solid #4f855a;
  outline-offset: 4px;
  border-radius: 3px;
}
.broadcast-heading { flex-wrap: wrap; }
.broadcast-heading > div { min-width: 0; flex: 1 1 260px; }
.broadcast-heading .calendar-pick {
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
  margin-left: auto;
}
.broadcast-heading .radar-date { width: 100%; max-width: 100%; }
.broadcast-heading .date-trigger { width: 100%; min-height: 42px; white-space: nowrap; }
.broadcast-calendar { flex-wrap: nowrap; min-width: 0; }
.broadcast-calendar #catalog-dates { min-width: 0; }
.broadcast-calendar > .btn { flex-shrink: 0; }

.schedule-row.is-live, .schedule-row.is-live:hover {
  background: #edf5e9;
  box-shadow: inset 3px 0 0 #4d8b55;
}
.schedule-row .schedule-live-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .55px;
  text-transform: uppercase;
  color: #316b40;
}
.schedule-live-label::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #42874e;
  box-shadow: 0 0 0 3px #42874e15;
}
.schedule-live-label[hidden] { display: none; }
.schedule-row.is-live .time { color: #316b40; }

/* Shared megamenu, scoped to preserve the original header breakpoints. */
.site-shell .menu-sub {
  width: min(1060px, calc(100vw - 28px), 100%);
  padding: 0;
  max-height: min(720px, calc(100dvh - 100px));
  border-color: #d9e3da;
  border-radius: 0 0 20px 20px;
  background: #fcfdf9;
  box-shadow: 0 24px 54px #12241d36;
  scrollbar-width: thin;
  scrollbar-color: #aec5b1 #f0f4ec;
  overscroll-behavior: contain;
}
.site-shell .shell-menu-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 23px 28px 21px;
  border-bottom: 1px solid #dfe8dc;
  background: linear-gradient(115deg, #eff5e8, #fafcf7);
}
.site-shell .shell-menu-heading strong {
  display: block;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -.35px;
  color: #254532;
}
.site-shell .shell-menu-heading p { margin: 5px 0 0; font-size: 12px; color: #70826f; }
.site-shell .shell-menu-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid #d9e4d4;
  border-radius: 50%;
  background: #ffffffa8;
  color: #43624d;
  cursor: pointer;
}
.site-shell .shell-menu-close svg { width: 18px; height: 18px; }
.site-shell .shell-menu-close:hover { background: #e0ecda; }
.site-shell .menu-sub ul { padding: 0; margin: 0; list-style: none; }
.site-shell .menu-sub li { list-style: none; }
.site-shell .menu-sub .menu-sub__list {
  display: grid;
  grid-template-columns: 1.65fr 1fr 1fr;
  gap: 24px;
  margin: 0;
  padding: 26px 28px;
}
.site-shell .shell-menu-group { min-width: 0; }
.site-shell .shell-menu-group + .shell-menu-group { border-left: 1px solid #e1e8dd; padding-left: 24px; }
.site-shell .shell-menu-group h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin: 0 0 12px;
  color: #587348;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.site-shell .shell-menu-symbol {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  background: #eaf1e3;
  color: #4f7349;
}
.site-shell .shell-menu-symbol svg { width: 17px; height: 17px; }
.site-shell .shell-menu-group ul { gap: 3px; }
.site-shell .shell-menu-watch ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.site-shell .shell-menu-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-height: 41px;
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #2a4234;
  text-decoration: none;
  transition: background .16s, color .16s;
}
.site-shell .shell-menu-group a::after { content: "›"; color: #91aa87; font-size: 17px; }
.site-shell .shell-menu-group a:hover { color: #2a663d; background: #eaf3e4; }
.site-shell .shell-menu-group a[aria-current="page"] { color: #295d35; background: #e7f0e0; font-weight: 700; }
.site-shell .shell-menu-utility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 22px;
  padding: 14px 28px;
  border-top: 1px solid #e0e8da;
  background: #f1f5ed;
}
.site-shell .shell-menu-utility > span { margin-right: auto; font-size: 10px; text-transform: uppercase; letter-spacing: .9px; color: #72846b; }
.site-shell .shell-menu-utility a { padding: 7px 0; font-size: 12px; line-height: 1.5; color: #4c6850; text-decoration: none; }
.site-shell .shell-menu-utility a:hover { color: #265e37; }
.site-shell .shell-menu-utility a[aria-current="page"] { font-weight: 700; }
.site-shell .menu-sub a:focus-visible, .site-shell .menu-sub button:focus-visible { outline-color: #4c8757; outline-offset: 2px; }

@media (max-width: 1100px) {
  .on-air-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .site-shell .menu-sub { max-height: calc(100dvh - 80px); }
  .site-shell .menu-sub .menu-sub__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 20px; }
  .site-shell .shell-menu-watch { grid-column: 1 / -1; }
  .site-shell .shell-menu-group + .shell-menu-group { border-left: 0; padding-left: 0; }
  .site-shell .shell-menu-group:not(.shell-menu-watch) { border-top: 1px solid #e1e8dd; padding-top: 18px; }
  .site-shell .shell-menu-heading { padding: 20px; }
  .site-shell .shell-menu-utility { padding: 13px 20px; gap: 4px 20px; }
  .site-shell .shell-menu-utility > span { flex-basis: 100%; margin-bottom: 3px; }
  .broadcast-heading > div { flex-basis: 230px; }
}
@media (max-width: 479.98px) {
  .site-shell .menu-sub { width: min(100%, calc(100vw - 20px)); }
  .site-shell .menu-sub .menu-sub__list { column-gap: 14px; }
  .site-shell .shell-menu-group h3 { font-size: 9px; gap: 7px; }
  .site-shell .shell-menu-group a { font-size: 12px; min-height: 43px; padding: 8px; }
  .site-shell .shell-menu-symbol { width: 24px; height: 28px; flex-basis: 24px; }
  .broadcast-heading .calendar-pick { margin-left: 0; width: 100%; }
  .broadcast-heading .date-trigger { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .site-shell .menu-sub, .site-shell .shell-menu-group a { transition: none; }
}
