/* Hub page only — scoped via body.hub-page so it never leaks into the
   individual dashboards, which keep shared.css's original palette. */

body.hub-page {
  --bg: #f6f5f2;
  --panel: #ffffff;
  --text: #22252b;
  --muted: #6b6f78;
  --text-faint: #9a9ea6;
  --border: #e6e3dc;
  --accent: #1c3d78;
  --accent-hover: #142c59;
  --accent-soft: rgba(28, 61, 120, 0.07);
  --accent-on-dark: #82a6f0;
  --warn: #b3392c;
  --warn-soft: rgba(179, 57, 44, 0.08);
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(22, 24, 29, 0.06);
  --shadow-md: 0 4px 16px rgba(22, 24, 29, 0.08), 0 1px 3px rgba(22, 24, 29, 0.06);
  font-family: "Inter", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  word-break: keep-all;
}

/* ---- Hero / brand pane ---- */
.hub-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 40px 34px;
  background: linear-gradient(155deg, #0c1424 0%, #142a52 46%, #1c3d78 100%);
  color: rgba(255, 255, 255, 0.92);
}

.hub-hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(560px 420px at 92% -12%, rgba(130, 166, 240, 0.22), transparent 65%),
    radial-gradient(420px 420px at -8% 118%, rgba(71, 191, 255, 0.16), transparent 65%),
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1.4px);
  background-size: auto, auto, 26px 26px;
  -webkit-mask-image: linear-gradient(155deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35) 70%);
  mask-image: linear-gradient(155deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35) 70%);
}

.hub-hero-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hub-wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Playfair Display", "Noto Serif KR", Georgia, serif;
  font-size: 24px;
  letter-spacing: 0.09em;
  font-weight: 400;
}

.hub-wordmark-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 18px;
  letter-spacing: 0;
}

.hub-wordmark small {
  display: block;
  margin-top: 6px;
  font-family: "Inter", "Noto Sans KR", sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.hub-compliance-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

.hub-hero-copy {
  position: relative;
  max-width: 620px;
  margin-top: 32px;
}

.hub-hero-copy h1 {
  font-family: "Playfair Display", "Noto Serif KR", Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.4;
  color: #fff;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.hub-hero-copy p {
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.hub-hero-foot {
  position: relative;
  margin-top: 30px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.02em;
}

/* ---- Body / dashboard grid ---- */
body.hub-page main {
  padding: 28px 40px 60px;
  max-width: 1320px;
  margin: 0 auto;
}

.hub-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.hub-section-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.hub-page .hub-progress {
  color: var(--muted);
  font-size: 13px;
}

body.hub-page .hub-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

body.hub-page .hub-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.85;
}

body.hub-page .hub-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body.hub-page .hub-card .hub-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 19px;
  margin-bottom: 14px;
}

body.hub-page .hub-card .hub-title {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

body.hub-page .hub-badge {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 720px) {
  .hub-hero { padding: 32px 24px 26px; }
  .hub-hero-copy h1 { font-size: 24px; }
  .hub-wordmark { font-size: 20px; }
  body.hub-page main { padding: 24px 20px 48px; }
}
