.home-connections {
  overflow: hidden;
  border: 1px solid #dbe3e7;
  border-left: 5px solid #ef7500;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(32, 50, 58, .10);
}

.home-connections-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  color: #fff;
  background: linear-gradient(120deg, #263a43, #304b56);
}

.home-connections-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #ffad55;
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.home-connections-head h5 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.home-connections-head h5 i {
  margin-right: 7px;
  color: #ef7500;
}

.home-connections-title-accent {
  color: #ff9800;
}

.home-connections-head p {
  margin: 3px 0 0;
  color: #cbd8dd;
  font-size: .75rem;
}

.home-connections-desk-link {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 18px;
  color: #fff;
  font-size: .62rem;
  font-weight: 900;
}

.home-connection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: #f4f7f8;
}

.home-connection-bank {
  display: block;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #d6e0e4;
  border-radius: 7px;
  color: #263b45;
  background: #fff;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.home-connection-bank:hover,
.home-connection-bank:focus-visible {
  color: #263b45;
  border-color: #ef7500;
  box-shadow: 0 6px 16px rgba(29, 49, 58, .12);
  transform: translateY(-1px);
}

.home-connection-bank.closing-soon { border-left: 4px solid #e58a20; }
.home-connection-bank.closing { border-left: 4px solid #d94d43; }
.home-connection-bank.closed {
  border-left: 4px solid #9e3c38;
  cursor: not-allowed;
  background: #fbf7f7;
}

.home-connection-bank.closed:hover,
.home-connection-bank.closed:focus-visible {
  border-color: #d6e0e4;
  border-left-color: #9e3c38;
  box-shadow: none;
  transform: none;
}

.home-connection-bank-top,
.home-connection-inbound,
.home-connection-deadline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-connection-bank-top > div span {
  display: block;
  color: #7b8c93;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.home-connection-bank-top > div strong {
  font-size: 1.35rem;
}

.home-connection-status {
  padding: 3px 7px;
  border-radius: 10px;
  color: #177151;
  background: #e8f6ef;
  font-size: .66rem;
  font-weight: 900;
}

.closing-soon .home-connection-status,
.closing .home-connection-status,
.closed .home-connection-status {
  animation: connection-status-fade 1.6s ease-in-out infinite;
}

.closing-soon .home-connection-status { color: #9a580c; background: #fff1dc; }
.closing .home-connection-status { color: #a62d27; background: #fdecea; }
.closed .home-connection-status { color: #fff; background: #a83f39; }

@keyframes connection-status-fade {
  0%, 100% { opacity: 1; }
  50% { opacity: .42; }
}

@media (prefers-reduced-motion: reduce) {
  .closing-soon .home-connection-status,
  .closing .home-connection-status,
  .closed .home-connection-status { animation: none; }
}

.home-connection-inbound {
  justify-content: flex-start;
  margin: 7px 0 9px;
  color: #718289;
  font-size: .68rem;
}

.home-connection-inbound i {
  color: #ef7500;
}

.home-connection-inbound b {
  margin-left: auto;
  color: #3b5863;
}

.home-connection-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e0e7ea;
  border-radius: 5px;
}

.home-connection-routes span {
  min-width: 0;
  padding: 7px 8px;
  text-align: center;
  background: #f7f9fa;
}

.home-connection-routes span + span {
  border-left: 1px solid #e0e7ea;
}

.home-connection-routes b,
.home-connection-routes small {
  display: block;
}

.home-connection-routes b {
  font-size: .82rem;
}

.home-connection-routes small {
  color: #71838b;
  font-size: .58rem;
}

.home-connection-deadline {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #e5eaec;
}

.home-connection-deadline span {
  color: #d65f00;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.home-connection-deadline strong {
  color: #d65f00;
  font-size: 1.05rem;
}

.local-time-tooltip {
  position: relative;
  cursor: help;
}

.local-time-tooltip::before,
.local-time-tooltip::after {
  position: absolute;
  left: 50%;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.local-time-tooltip::before {
  content: "";
  bottom: calc(100% + 3px);
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top-color: #263b45;
  transform: translate(-50%, 3px);
}

.local-time-tooltip::after {
  content: attr(data-local-tooltip);
  bottom: calc(100% + 13px);
  padding: 7px 10px;
  border-radius: 4px;
  color: #fff;
  background: #263b45;
  box-shadow: 0 5px 16px rgba(20, 39, 48, .22);
  white-space: nowrap;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
  transform: translate(-50%, 3px);
}

.local-time-tooltip:hover::before,
.local-time-tooltip:hover::after,
.local-time-tooltip:focus-visible::before,
.local-time-tooltip:focus-visible::after,
.home-connection-bank:focus-visible .local-time-tooltip::before,
.home-connection-bank:focus-visible .local-time-tooltip::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.closing-soon .home-connection-deadline span,
.closing-soon .home-connection-deadline strong {
  color: #bc3d36;
}

.home-connections-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 17px;
  color: #60747d;
  background: #f5f8f9;
  font-size: .75rem;
}

.home-connections-empty i {
  margin-right: 6px;
  color: #ef7500;
}

.home-connections-empty b {
  color: #d65f00;
  font-size: .63rem;
}

.home-connections-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px;
  border-top: 1px solid #dfe7ea;
  color: #61757e;
  background: #fff;
  font-size: .7rem;
}

.home-connections-more:hover,
.home-connections-more:focus-visible {
  color: #d65f00;
  background: #fffaf5;
}

.home-connections-more b {
  color: #d65f00;
  font-size: .61rem;
  letter-spacing: .03em;
}

.home-connections-loading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 84px;
  padding: 16px 20px;
  border: 1px solid #dbe3e7;
  border-radius: 9px;
  color: #6b7d85;
  background: #f5f8f9;
}

@media (max-width: 760px) {
  .home-connections-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-connection-grid {
    grid-template-columns: 1fr;
  }

  .home-connections-empty {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-connections-more {
    align-items: flex-start;
    flex-direction: column;
  }
}
.home-recovery-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px;
  background: #fff8ee;
  border-bottom: 1px solid #ead8bf;
}

.home-recovery-title {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #ef6c00;
}

.home-recovery-title > i {
  margin-top: 2px;
  font-size: 22px;
}

.home-recovery-title b {
  display: block;
  font-size: 14px;
  letter-spacing: .02em;
}

.home-recovery-title p {
  max-width: 650px;
  margin: 4px 0 0;
  color: #687b83;
  font-size: 12px;
  line-height: 1.45;
}

.home-recovery-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.home-recovery-item {
  display: grid;
  grid-template-columns: minmax(72px, auto) 1fr;
  gap: 5px 11px;
  min-height: 72px;
  padding: 9px 10px;
  border: 1px solid #e6d8c5;
  border-radius: 6px;
  background: #fff;
  color: #263e49;
}

.home-recovery-aircraft,
.home-recovery-route {
  display: flex;
  flex-direction: column;
}

.home-recovery-aircraft b,
.home-recovery-route b {
  font-size: 14px;
}

.home-recovery-route small {
  margin-top: 4px;
  color: #819098;
  font-size: 8px;
  letter-spacing: .08em;
}

.home-recovery-aircraft strong {
  margin-top: 0;
  color: #536a74;
  font-size: 10px;
}

.home-recovery-route {
  align-items: flex-end;
  text-align: right;
}

.home-recovery-item em {
  grid-column: 1 / -1;
  color: #df6f00;
  font-size: 9px;
  font-style: normal;
  text-align: right;
}

/* The homepage operations feed follows the user's explicit Night Ops theme. */
body.site-night-ops .home-connections {
  border-color: #30485a;
  border-left-color: #ef7500;
  background: #172433;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

body.site-night-ops .home-connection-grid {
  background: #101a24;
}

body.site-night-ops .home-connection-bank {
  border-color: #30485a;
  color: #dce8ef;
  background: #172433;
}

body.site-night-ops .home-connection-bank:hover,
body.site-night-ops .home-connection-bank:focus-visible {
  border-color: #ef7500;
  color: #eef6fa;
  background: #1c2b39;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .30);
}

body.site-night-ops .home-connection-bank.closed {
  border-left-color: #d46b66;
  background: #241d22;
}

body.site-night-ops .home-connection-bank.closed:hover,
body.site-night-ops .home-connection-bank.closed:focus-visible {
  border-color: #30485a;
  border-left-color: #d46b66;
  background: #241d22;
}

body.site-night-ops .home-connection-bank-top > div span,
body.site-night-ops .home-connection-inbound,
body.site-night-ops .home-connection-routes small {
  color: #9eb1bc;
}

body.site-night-ops .home-connection-bank-top > div strong,
body.site-night-ops .home-connection-inbound b,
body.site-night-ops .home-connection-routes b {
  color: #eef6fa;
}

body.site-night-ops .home-connection-routes {
  border-color: #30485a;
}

body.site-night-ops .home-connection-routes span {
  background: #101a24;
}

body.site-night-ops .home-connection-routes span + span {
  border-left-color: #30485a;
}

body.site-night-ops .home-connection-deadline {
  border-top-color: #30485a;
}

body.site-night-ops .home-connections-empty,
body.site-night-ops .home-connections-loading {
  border-color: #30485a;
  color: #b8c8d3;
  background: #101a24;
}

body.site-night-ops .home-connections-more {
  border-top-color: #30485a;
  color: #b8c8d3;
  background: #172433;
}

body.site-night-ops .home-connections-more:hover,
body.site-night-ops .home-connections-more:focus-visible {
  color: #ffad55;
  background: #1c2b39;
}

body.site-night-ops .home-recovery-strip {
  border-bottom-color: #4a4034;
  background: #211d19;
}

body.site-night-ops .home-recovery-title p {
  color: #b8c8d3;
}

body.site-night-ops .home-recovery-item {
  border-color: #4a4034;
  color: #eef6fa;
  background: #172433;
}

body.site-night-ops .home-recovery-aircraft strong,
body.site-night-ops .home-recovery-route small {
  color: #9eb1bc;
}

@media (max-width: 900px) {
  .home-recovery-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .home-recovery-list { grid-template-columns: 1fr; }
}
