.sector-hub-page {
  --hub-header-height: 248px;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: #1e303a;
}

.sector-hub-page .topbar {
  position: relative;
  z-index: 20;
  background: rgba(247, 250, 251, 0.96);
  border-bottom: 1px solid rgba(52, 92, 114, 0.12);
}

.sector-hub-page .monarch-topbar .hub-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1480px, calc(100% - 64px));
  min-height: var(--hub-header-height);
  gap: 14px;
  padding-block: 18px;
}

.sector-hub-page .hub-header > .monarch-brand {
  align-self: center;
  margin: 0;
}

.hub-header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hub-header-language {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-header-actions .site-lang-switch,
.hub-header-actions .login-launch {
  align-self: center;
  min-height: 44px;
}

.hub-header-actions .site-lang-link {
  min-height: 36px;
}

.hub-header-actions .login-launch {
  padding-inline: 20px;
  box-shadow: 0 5px 14px rgba(199, 105, 47, 0.16);
}

.hub-main {
  width: 100%;
  min-height: calc(100vh - var(--hub-header-height));
  margin: 0;
  padding: clamp(18px, 2.4vw, 30px) 0 0;
}

.hub-intro {
  text-align: center;
  padding-inline: 12px;
  margin-bottom: clamp(20px, 2.8vw, 32px);
}

.window-kicker {
  margin: 0 0 12px;
  color: #527185;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hub-intro h1 {
  margin: 0;
  color: #203641;
  font-size: clamp(1rem, 4.8vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.hub-window {
  --window-accent: #de7b3e;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: clamp(300px, 34vh, 440px);
  padding: clamp(28px, 4vw, 54px);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hub-window::before,
.hub-window::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hub-window::before {
  width: 360px;
  height: 360px;
  top: -190px;
  right: -100px;
  background: rgba(255, 255, 255, 0.13);
}

.hub-window::after {
  width: 220px;
  height: 220px;
  right: 16%;
  bottom: -150px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hub-window:focus-visible {
  outline: 4px solid #fff;
  outline-offset: -6px;
}

.hub-window-socials:focus-visible {
  outline-color: #173e57;
}

.hub-window-hospitality {
  background: linear-gradient(135deg, #25485d 0%, #3d6f82 100%);
}

.hub-window-print {
  background: linear-gradient(135deg, #b85d2d 0%, #e58b50 100%);
}

.hub-window-data {
  background: linear-gradient(135deg, #245548 0%, #377b65 100%);
}

.hub-window-software {
  background: linear-gradient(135deg, #202e37 0%, #40545f 100%);
}

.hub-window-socials {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  background: #c1e1ef;
}

.hub-window-socials::after { display: none; }

.hub-window-socials[aria-disabled="true"] {
  cursor: default;
  transform: none;
  box-shadow: none;
}

.socials-coming-soon {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 18px;
  border: 1px solid rgba(23, 62, 87, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #173e57;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.hub-window-socials .window-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 650px;
  align-self: center;
}

.hub-window-socials .window-kicker {
  color: #365e77;
  font-size: clamp(.8rem, 1.15vw, .95rem);
  line-height: 1.5;
}

.hub-window.hub-window-socials h2 {
  color: #173e57;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: 1.04;
}
.hub-window.hub-window-socials p:not(.window-kicker) {
  color: #345a71;
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.55;
}
.socials-network-cloud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 72px));
  gap: 12px;
  justify-content: end;
  justify-self: end;
  width: 100%;
  max-width: 324px;
  pointer-events: none;
}

.socials-network-badge {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(16, 52, 81, .12);
  border-radius: 0;
  background: rgba(255, 255, 255, .8);
}

.socials-network-badge img { display: block; width: 46%; height: 46%; object-fit: contain; }

@media (max-width: 720px) {
  .socials-network-cloud {
    grid-template-columns: repeat(6, minmax(0, 56px));
    justify-content: start;
    justify-self: start;
    gap: 8px;
    max-width: 376px;
  }
}

.window-copy {
  align-self: end;
  max-width: 600px;
}

.window-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: clamp(54px, 8vh, 105px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.window-kicker {
  color: rgba(255, 255, 255, 0.7);
}

.hub-window h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hub-window p:not(.window-kicker) {
  max-width: 550px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.55;
}

.window-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  margin-left: 22px;
}

.window-icon {
  display: grid;
  place-items: center;
  width: clamp(76px, 9vw, 118px);
  height: clamp(76px, 9vw, 118px);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.window-icon svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .hub-window {
    min-height: 330px;
  }
}

@media (max-width: 640px) {
  .sector-hub-page {
    --hub-header-height: 216px;
  }

  .sector-hub-page .monarch-topbar .hub-header {
    width: calc(100% - 32px);
    gap: 12px;
    padding-block: 14px;
  }

  .hub-header-actions {
    gap: 12px;
  }

  .hub-header-language {
    gap: 6px;
  }

  .hub-header .login-launch {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .hub-main {
    padding-top: 20px;
  }

  .hub-window {
    grid-template-columns: 1fr;
    min-height: 360px;
    padding: 26px;
  }

  .window-number {
    margin-bottom: 58px;
  }

  .window-side {
    position: absolute;
    inset: 24px 24px auto auto;
    height: calc(100% - 48px);
  }

  .window-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-window {
    transition: none;
  }
}

/* Public entry points retain each application's own authentication flow. */
.login-choice-dialog {
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(20px, 4vw, 32px);
  overflow: auto;
  border: 1px solid rgba(37, 72, 93, .16);
  border-radius: 24px;
  background: #f8fbfc;
  color: #203641;
  box-shadow: 0 30px 95px rgba(16, 38, 51, .28);
}
.login-choice-dialog::backdrop {
  background: rgba(12, 34, 48, .58);
  backdrop-filter: blur(4px);
}
.login-choice-top { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.login-choice-top h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2rem); }
.login-choice-top p { margin: 10px 0 22px; color: #526976; line-height: 1.5; }
.login-choice-close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #d8e3e8;
  border-radius: 50%;
  background: #fff;
  color: #203641;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.login-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.login-choice-card {
  display: flex;
  min-height: 174px;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(37, 72, 93, .18);
  border-radius: 18px;
  background: #fff;
  color: #203641;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}
.login-choice-card:hover { border-color: #de7b3e; transform: translateY(-2px); }
.login-choice-card:focus-visible, .login-choice-close:focus-visible {
  outline: 3px solid #c0662f;
  outline-offset: 3px;
}
.login-choice-card strong { font-size: 1.28rem; }
.login-choice-card > span:not(.login-choice-action) { color: #526976; line-height: 1.5; }
.login-choice-socials { background: #e2f2fa; }
.login-choice-action { margin-top: auto; color: #aa4c23; font-weight: 800; }
@media (max-width: 760px) {
  .login-choice-grid { grid-template-columns: 1fr; }
  .login-choice-card { min-height: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-choice-card { transition: none; }
}
