/* Reusable information-hub layout layered on the main portal design system. */
.hub-header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.hub-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  min-height: 46px;
  padding: 0 15px;
  color: var(--blue);
  border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  box-shadow: 0 5px 16px rgba(16, 59, 115, .07);
  font-size: .78rem;
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hub-back:hover {
  transform: translateX(-2px);
  border-color: color-mix(in srgb, var(--blue) 46%, var(--border));
  background: var(--blue-light);
  box-shadow: 0 8px 20px rgba(16, 59, 115, .12);
}
.hub-back:active { transform: translateX(-1px) scale(.98); }
.hub-back:focus-visible { outline: 3px solid rgba(25, 118, 210, .25); outline-offset: 2px; }
.hub-back .material-symbols-rounded { font-size: 19px; }
.hub-brand { display: none; }

.hub-container {
  width: min(100% - 36px, 820px);
  margin-inline: auto;
}

.hub-hero {
  padding: 40px 0 44px;
  color: white;
  background:
    linear-gradient(120deg, rgba(8, 43, 87, .98), rgba(16, 59, 115, .95)),
    radial-gradient(circle at 85% 20%, #2f8ce2, transparent 38%);
}
.hub-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #7dc0ff;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .13em;
}
.hub-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 8vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -.045em;
}
.hub-hero p {
  max-width: 520px;
  margin: 13px 0 0;
  color: #d7e7f8;
  font-size: .9rem;
  line-height: 1.7;
}

.hub-content { padding-block: 38px 72px; }
.hub-section-heading { margin-bottom: 18px; }
.hub-section-heading h2 { margin: 0; color: var(--navy); font-size: 1.25rem; letter-spacing: -.035em; }
.hub-section-heading p { margin: 6px 0 0; color: var(--muted); font-size: .76rem; }

.hub-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hub-list-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .22s ease;
}
.hub-list-item:last-child { border-bottom: 0; }
.hub-list-item:hover { background: color-mix(in srgb, var(--blue) 5%, var(--surface)); }
.hub-list-item:focus-visible { z-index: 1; outline: 3px solid rgba(25, 118, 210, .28); outline-offset: -3px; }
.hub-item-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--blue);
  border-radius: 13px;
  background: var(--blue-light);
}
.hub-item-icon .material-symbols-rounded { font-size: 25px; }
.hub-item-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.hub-item-copy strong { font-size: .92rem; letter-spacing: -.025em; }
.hub-item-copy small { overflow: hidden; color: var(--muted); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.hub-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  margin-top: 2px;
  color: var(--muted);
  font-size: .59rem;
  line-height: 1.4;
}
.hub-item-status { display: inline-flex; align-items: center; gap: 5px; color: #16815b; font-weight: 700; }
.hub-item-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1db97d;
  box-shadow: 0 0 0 3px rgba(29, 185, 125, .1);
}
.hub-item-arrow { color: #9aa8b8; font-size: 20px; transition: transform .2s ease, color .2s ease; }
.hub-list-item:hover .hub-item-arrow { color: var(--blue); transform: translateX(2px); }
.hub-list-item.is-placeholder .hub-item-arrow { font-size: .52rem; font-family: inherit; font-weight: 800; letter-spacing: .06em; }

.hub-footer { margin-top: auto; }
body:has(.hub-content) { min-height: 100vh; display: flex; flex-direction: column; }
body:has(.hub-content) main { flex: 1; }
body.dark .hub-back {
  color: #8fc9ff;
  border-color: rgba(111, 185, 255, .28);
  background: rgba(25, 118, 210, .11);
}
body.dark .hub-section-heading h2 { color: #e6f1fd; }
body.dark .hub-item-status { color: #61d4a4; }

@media (min-width: 600px) {
  .hub-header-inner { grid-template-columns: 1fr auto 1fr; }
  .hub-brand { display: flex; justify-self: center; }
  .hub-header-inner > .icon-button { justify-self: end; }
  .hub-container { width: min(100% - 56px, 820px); }
  .hub-hero { padding: 48px 0 52px; }
  .hub-content { padding-block: 48px 88px; }
  .hub-list-item { min-height: 88px; padding-inline: 24px; }
}
