/* Your Other World v1.22.1 — centered Vesper City clock, no navigation collisions.
   Loaded after all other stylesheets to take priority over the older flex header. */
.topbar.topbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center !important;
  gap: 10px 16px !important;
  min-height: 80px;
  height: auto;
  padding: 10px 8px;
}
.topbar.topbar > .brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
.topbar.topbar > .topnav {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  flex: none !important;
  width: max-content !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  justify-content: flex-end !important;
}
.topbar.topbar > .ff-world-clock {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  padding: 0 6px;
  margin: 0;
  border: 0;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.ff-world-clock .ff-clock-label {
  display: block;
  font-size: 9px;
  letter-spacing: 1.1px;
  font-weight: 800;
  line-height: 1.3;
  color: #c6a5ec;
  white-space: nowrap;
}
.ff-world-clock time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  line-height: 1.35;
  font-size: 11px;
  font-weight: 650;
  color: #e7d8ff;
  white-space: nowrap;
}
.ff-world-clock [data-world-clock-time] {
  color: #91eadc;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}
/* On medium screens, place the clock in a centered row *inside* the header.
   This guarantees clearance for both the logo and full navigation. */
@media (max-width: 1470px) {
  .topbar.topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .topbar.topbar > .brand { grid-column: 1; grid-row: 1; }
  .topbar.topbar > .topnav {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: max-content !important;
  }
  .topbar.topbar > .ff-world-clock {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    padding: 3px 0 0;
  }
}
@media (max-width: 1100px) {
  .topbar.topbar { grid-template-columns: minmax(0, 1fr); }
  .topbar.topbar > .brand { grid-column: 1; grid-row: 1; }
  .topbar.topbar > .ff-world-clock {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
  }
  .topbar.topbar > .topnav {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
}
@media (max-width: 650px) {
  .topbar.topbar { gap: 7px !important; }
  .topbar.topbar > .ff-world-clock { padding: 4px 0; }
  .topbar.topbar > .topnav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }
  .ff-world-clock .ff-clock-label { font-size: 9px; }
  .ff-world-clock time { font-size: 11px; }
}
