#tm-site .tm-home-status {
  position: relative;
  z-index: 3;
  background: #f1fafc;
  color: #103a52;
  border-bottom: 1px solid #cce6ed;
  font-size: 13px;
}
#tm-site .tm-status-layout {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 14px;
  min-height: 41px;
  padding-block: 3px;
}
#tm-site :is(.tm-home-status,.tm-upcoming-strip) [hidden] { display: none !important; }
#tm-site .tm-local-weather { position: relative; min-width: 0; }
#tm-site .tm-local-weather > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  cursor: pointer;
  list-style: none;
  font-weight: 750;
}
#tm-site .tm-local-weather > summary::-webkit-details-marker { display: none; }
#tm-site .tm-local-weather > summary > i:first-child { color: #00768c; font-size: 16px; }
#tm-site .tm-local-weather > summary > i:last-child { font-size: 9px; }
#tm-site .tm-local-weather[open] > summary > i:last-child { transform: rotate(180deg); }
#tm-site .tm-weather-details {
  position: absolute;
  inset: calc(100% + 4px) auto auto 0;
  z-index: 2;
  width: min(340px, calc(100vw - 30px));
  padding: 13px 15px;
  border: 1px solid #c7e4ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px #102f4924;
}
#tm-site .tm-weather-details dl { margin: 8px 0; }
#tm-site .tm-weather-details dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; padding-block: 3px; }
#tm-site .tm-weather-details dd { margin: 0; font-weight: 700; }
#tm-site .tm-weather-details small { color: #415d70; }
#tm-site .tm-weather-details a { color: #00617a; text-decoration: underline; }
#tm-site .tm-local-clock { display: flex; align-items: center; gap: 5px; min-width: 0; padding-inline: 12px; border-inline: 1px solid #cce6ed; }
#tm-site .tm-local-clock > i { color: #00768c; }
#tm-site .tm-local-clock time { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
#tm-site .tm-headlines { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; min-width: 0; }
#tm-site .tm-headline-label {
  display: grid;
  place-items: center;
  min-height: 28px;
  padding-inline: 10px;
  border-radius: 5px;
  background: #006881;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .06em;
  text-align: center;
  white-space: nowrap;
}
#tm-site .tm-headline-window { min-width: 0; overflow: hidden; padding: 3px; }
#tm-site .tm-headline { display: block; width: fit-content; max-width: 100%; color: #133d58; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
#tm-site .tm-headline:hover { text-decoration: underline; }
#tm-site .tm-headline-controls { display: flex; gap: 2px; }
#tm-site .tm-headline-controls button { display: grid; place-items: center; width: 27px; height: 28px; padding: 0; border: 1px solid #cce6ed; border-radius: 7px; background: #fff; color: #005f78; font-size: 11px; cursor: pointer; }
#tm-site .tm-headline-controls button:hover { background: #dff4f8; }

#tm-site .tm-shell.tm-upcoming-strip {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 0;
  width: min(1320px, calc(100% - 24px));
  min-height: 52px;
  margin-block: clamp(14px, 2vw, 24px);
  padding-inline-end: 8px;
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-radius-sm);
  background: var(--tm-surface);
  box-shadow: var(--tm-shadow-sm);
  color: var(--tm-navy-900);
  font-size: 14px;
  white-space: nowrap;
}
#tm-site .tm-upcoming-strip + .tm-placement-best { padding-top: 0; }
#tm-site .tm-upcoming-title {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 7px;
  min-height: 50px;
  padding-inline: 11px;
  border-start-start-radius: calc(var(--tm-radius-sm) - 1px);
  border-end-start-radius: calc(var(--tm-radius-sm) - 1px);
  background: var(--tm-navy-900);
  color: var(--tm-surface);
  font-weight: 850;
}
#tm-site .tm-upcoming-title > i { color: var(--tm-turquoise-soft); font-size: 15px; }
#tm-site .tm-upcoming-items { display: flex; align-items: center; min-width: 0; padding-inline-start: 20px; }
#tm-site .tm-upcoming-items > [data-events-fallback] { padding-inline: 7px; color: var(--tm-muted); }
#tm-site .tm-upcoming-item {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 34px;
  gap: 6px;
  padding-inline: 8px;
  color: var(--tm-navy-900);
}
#tm-site .tm-upcoming-item ~ .tm-upcoming-item { border-inline-start: 1px solid var(--tm-line); }
#tm-site .tm-upcoming-item:hover .tm-upcoming-name { color: var(--tm-blue-700); text-decoration: underline; text-underline-offset: 2px; }
#tm-site .tm-upcoming-item > img { display: block; flex: none; width: 32px; height: 32px; object-fit: cover; border-radius: 6px; }
#tm-site .tm-upcoming-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.2; }
#tm-site .tm-upcoming-date {
  flex: none;
  color: var(--tm-blue-700);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
#tm-site .tm-upcoming-date--pending { color: var(--tm-muted); font-weight: 650; }
#tm-site .tm-upcoming-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 750; }
#tm-site .tm-upcoming-short { display: none; }
#tm-site .tm-upcoming-link {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 36px;
  padding-inline: 24px;
  border-radius: 8px;
  background: var(--tm-navy-900);
  color: var(--tm-surface);
  font-weight: 820;
  text-align: center;
}
#tm-site .tm-upcoming-link:hover { background: var(--tm-blue-700); color: var(--tm-surface); }
#tm-site .tm-upcoming-link > i { position: absolute; inset-inline-end: 3px; font-size: 11px; }
#tm-site #tm-events-title { scroll-margin-top: 125px; }

@media (max-width: 1240px) {
  #tm-site .tm-upcoming-items { padding-inline-start: 12px; }
  #tm-site .tm-upcoming-name > .tm-upcoming-full { display: none; }
  #tm-site .tm-upcoming-name > .tm-upcoming-short { display: inline; }
  #tm-site .tm-upcoming-item { gap: 5px; padding-inline: 6px; }
  #tm-site .tm-upcoming-item > img { width: 26px; height: 26px; }
}
@media (max-width: 900px) {
  #tm-site .tm-upcoming-link { padding-inline: 9px; }
  #tm-site .tm-upcoming-link > i { display: none; }
}
@media (max-width: 760px) {
  #tm-site .tm-upcoming-title > .tm-upcoming-full { display: none; }
  #tm-site .tm-upcoming-title > .tm-upcoming-short { display: inline; }
}
@media (max-width: 700px) {
  #tm-site .tm-shell.tm-upcoming-strip { width: calc(100% - 14px); padding-inline-end: 5px; font-size: 12px; }
  #tm-site .tm-upcoming-title { gap: 4px; padding-inline: 6px; }
  #tm-site .tm-upcoming-title > i { font-size: 13px; }
  #tm-site .tm-upcoming-items { padding-inline-start: 5px; }
  #tm-site .tm-upcoming-item { gap: 4px; padding-inline: 4px; }
  #tm-site .tm-upcoming-date { font-size: 10px; white-space: normal; }
}
@media (max-width: 430px) {
  #tm-site .tm-upcoming-item > img { display: none; }
}
@media (max-width: 360px) {
  #tm-site .tm-upcoming-item { padding-inline: 3px; }
  #tm-site .tm-upcoming-title > i { display: none; }
  #tm-site .tm-upcoming-link { padding-inline: 6px; font-size: 11px; }
}
@media (max-width: 900px) {
  #tm-site .tm-status-layout { grid-template-columns: minmax(0,1fr) auto; }
  #tm-site .tm-local-clock { border: 0; padding: 0; }
  #tm-site .tm-headlines { grid-column: 1/-1; border-top: 1px solid #d5e9ee; padding-top: 3px; }
}
@media (max-width: 600px) {
  #tm-site .tm-home-status { font-size: 12px; }
  #tm-site .tm-status-layout { column-gap: 7px; }
  #tm-site .tm-local-clock { gap: 4px; }
  #tm-site .tm-local-clock > span { font-size: 10px; }
}
