/* CertHub navigation: one visual system across public and signed-in pages. */
.cert-hub-header { --ch-surface:#fff; --ch-text:#162743; --ch-muted:#56657b; --ch-line:#e2e8f0; --ch-accent:#3154cd; --ch-soft:#f0f4ff; position:relative; z-index:1040; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:24px; min-height:88px; padding:16px clamp(24px,4vw,72px); box-sizing:border-box; border-bottom:1px solid var(--ch-line); background:var(--ch-surface); color:var(--ch-text); font-family:Inter,system-ui,sans-serif; }
[data-theme="dark"] .cert-hub-header { --ch-surface:#101c30; --ch-text:#f0f4fc; --ch-muted:#bcc9dd; --ch-line:#2d3d56; --ch-accent:#c5d1ff; --ch-soft:#213452; color-scheme:dark; }
.cert-hub-header * { box-sizing:border-box; }
.cert-hub-header a { text-decoration:none; }
.cert-hub-header svg { width:22px; height:22px; flex:none; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.cert-hub-brand { display:flex; align-items:center; gap:12px; justify-self:start; color:var(--ch-text); }
.cert-hub-brand img { width:38px; height:43px; object-fit:contain; }
.cert-hub-brand strong { display:block; color:var(--ch-text); font-size:23px; font-weight:800; line-height:1.15; letter-spacing:-1px; }
.cert-hub-brand .cert-hub-brand-dot { color:#db9d20; }
.cert-hub-brand small { display:block; margin-top:4px; color:var(--ch-muted); font-size:11px; font-weight:550; letter-spacing:.02em; }
.cert-hub-links { display:flex; align-items:center; gap:4px; padding:4px; border:1px solid var(--ch-line); border-radius:14px; background:var(--ch-surface); }
.cert-hub-links > a,.cert-hub-more summary { display:flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:10px 16px; border-radius:10px; color:var(--ch-muted); font-size:14px; font-weight:650; white-space:nowrap; cursor:pointer; }
.cert-hub-links > a:hover,.cert-hub-links > a[aria-current="page"],.cert-hub-more summary:hover,.cert-hub-more[open] summary { color:var(--ch-accent); background:var(--ch-soft); }
.cert-hub-more { position:relative; }
.cert-hub-more summary { list-style:none; }
.cert-hub-more summary::-webkit-details-marker { display:none; }
.cert-hub-header .cert-hub-chevron { width:16px; height:16px; stroke-width:2; transition:transform 160ms ease; }
.cert-hub-more[open] .cert-hub-chevron { transform:rotate(180deg); }
.cert-hub-more-menu { position:absolute; top:calc(100% + 16px); right:0; width:360px; padding:12px; border:1px solid var(--ch-line); border-radius:18px; background:var(--ch-surface); box-shadow:0 18px 48px -12px #10274635; }
.cert-hub-menu-label { margin:5px 12px 10px; color:var(--ch-muted); font-size:10px; line-height:1.5; font-weight:750; letter-spacing:.1em; text-transform:uppercase; }
.cert-hub-more-menu a { display:flex; align-items:center; gap:14px; min-height:68px; padding:12px; border-radius:11px; color:var(--ch-accent); }
.cert-hub-more-menu a:hover { background:var(--ch-soft); }
.cert-hub-more-menu strong { display:block; color:var(--ch-text); font-size:13px; line-height:1.5; font-weight:650; }
.cert-hub-more-menu small { display:block; margin-top:2px; color:var(--ch-muted); font-size:11px; line-height:1.5; }
.cert-hub-actions { display:flex; align-items:center; justify-self:end; gap:14px; }
.cert-hub-header .cert-hub-action { display:flex; align-items:center; justify-content:center; min-height:44px; padding:11px 24px; border:1px solid #213454; border-radius:11px; background:#172b49; color:#fff; font-size:13px; font-weight:650; white-space:nowrap; box-shadow:0 3px 7px #182c4910; }
.cert-hub-header .cert-hub-action:hover { background:#29466e; }
[data-theme="dark"] .cert-hub-header .cert-hub-action { background:#d7e2ff; color:#142b50; border-color:#d7e2ff; }
.cert-hub-theme { display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid var(--ch-line); border-radius:11px; background:var(--ch-surface); color:var(--ch-muted); cursor:pointer; }
.cert-hub-theme:hover { color:var(--ch-accent); background:var(--ch-soft); }
.cert-hub-header .cert-hub-sun { display:none; }
[data-theme="dark"] .cert-hub-header .cert-hub-sun { display:block; }
[data-theme="dark"] .cert-hub-header .cert-hub-moon { display:none; }
.cert-hub-header :is(a,button,summary):focus-visible { outline:2px solid var(--ch-accent); outline-offset:3px; }
.certification-workspace-shell .cert-hub-header { margin-left:264px; padding-inline:24px; }
@media(min-width:901px) { .certification-workspace-shell.cert-sidebar-collapsed .cert-hub-header,.certification-workspace-shell:has(.ev-shell.is-side-collapsed) .cert-hub-header { margin-left:64px; } }
@media(max-width:1150px) { .cert-hub-header { column-gap:16px; padding-inline:24px; } .certification-workspace-shell .cert-hub-header { grid-template-columns:1fr auto; } .certification-workspace-shell .cert-hub-links { grid-row:2; grid-column:1/-1; justify-content:center; } }
@media(max-width:1000px) { .cert-hub-header { grid-template-columns:1fr auto; } .cert-hub-links { grid-row:2; grid-column:1/-1; justify-content:center; } }
@media(max-width:900px) { .certification-workspace-shell .cert-hub-header { margin-left:0; padding-left:64px; } }
@media(max-width:760px) { .cert-hub-header { grid-template-columns:1fr auto; row-gap:14px; padding:16px; } .cert-hub-links { grid-row:2; grid-column:1/-1; justify-content:space-between; gap:0; width:100%; } .cert-hub-links > a,.cert-hub-more summary { padding:8px; font-size:12px; } .cert-hub-brand strong { font-size:21px; } .cert-hub-actions { gap:8px; } .cert-hub-header .cert-hub-action { padding-inline:16px; } .cert-hub-more-menu { width:min(360px,calc(100vw - 32px)); } }
@media(max-width:360px) { .cert-hub-links > a,.cert-hub-more summary { padding:8px 5px; font-size:11px; gap:4px; } .cert-hub-header .cert-hub-chevron { width:13px; height:13px; } }
@media (max-width: 760px) {
  .certification-workspace-shell .cert-hub-header {
    padding-right: 16px;
  }
  .certification-workspace-shell .cert-hub-links {
    margin-left: -48px;
    width: calc(100% + 48px);
    justify-content: space-between;
  }
}
@media (max-width: 380px) {
  .certification-workspace-shell .cert-hub-header { column-gap: 6px; }
  .certification-workspace-shell .cert-hub-brand { gap: 4px; }
  .certification-workspace-shell .cert-hub-brand img { width: 24px; }
  .certification-workspace-shell .cert-hub-brand strong { font-size: 18px; }
  .certification-workspace-shell .cert-hub-actions { gap: 6px; }
  .certification-workspace-shell .cert-hub-header .cert-hub-action { padding-inline: 8px; }
}
@media(prefers-reduced-motion:reduce) { .cert-hub-header * { transition:none; } }

/* Make the email-verification gate read as the next required action. */
.cert-hub .cert-empty--inline:has(form[action*="resend-verification"]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 1.15rem 1.25rem;
  border: 2px solid #c47b13;
  border-left: 7px solid #d98b16;
  border-radius: 14px;
  background: #fff6df;
  color: #59400f;
  text-align: left;
  box-shadow: 0 10px 24px rgb(106 67 8 / 10%);
}

.cert-hub .cert-empty--inline:has(form[action*="resend-verification"]) > div::before {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: .45rem;
  padding: .2rem .58rem;
  border-radius: 999px;
  background: #ffe7b0;
  color: #754700;
  content: "ACTION REQUIRED";
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .09em;
}

.cert-hub .cert-empty--inline:has(form[action*="resend-verification"]) h3 {
  margin: 0 0 .25rem;
  color: #493000;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.35;
}

.cert-hub .cert-empty--inline:has(form[action*="resend-verification"]) p {
  color: #59400f;
  font-size: .9rem;
  line-height: 1.55;
}

.cert-hub .cert-empty--inline:has(form[action*="resend-verification"]) form {
  margin-top: .75rem;
}

.cert-hub .cert-empty--inline:has(form[action*="resend-verification"]) form button.ev-btn {
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid #8d5305;
  border-radius: 9px;
  background: #965900;
  color: #fff;
  font-size: .86rem;
  font-weight: 800;
  box-shadow: 0 3px 8px rgb(89 54 5 / 18%);
}

.cert-hub .cert-empty--inline:has(form[action*="resend-verification"]) form button.ev-btn:hover {
  background: #754500;
}

.cert-hub .cert-empty--inline:has(form[action*="resend-verification"]) form button.ev-btn:focus-visible {
  outline: 3px solid #2f5dcc;
  outline-offset: 3px;
}

/* Keep the per-enrollment lock notice as prominent as the hub-level action. */
.cert-hub .cert-enrollment .cert-empty--inline:has(> i.fa-lock) {
  align-items: start;
  padding: 1rem 1.1rem;
  border: 1px solid #d39a3a;
  border-left: 5px solid #d98b16;
  background: #fff6df;
  color: #59400f;
  box-shadow: 0 6px 16px rgb(106 67 8 / 8%);
}

.cert-hub .cert-enrollment .cert-empty--inline:has(> i.fa-lock) i {
  width: 42px;
  height: 42px;
  border: 1px solid #ecc46f;
  border-radius: 11px;
  background: #ffe7b0;
  color: #754700;
}

.cert-hub .cert-enrollment .cert-empty--inline:has(> i.fa-lock) h3 {
  color: #493000;
  font-size: .98rem;
  font-weight: 800;
}

.cert-hub .cert-enrollment .cert-empty--inline:has(> i.fa-lock) p {
  color: #59400f;
  font-size: .82rem;
  line-height: 1.5;
}

[data-theme="dark"] .cert-hub .cert-empty--inline:has(form[action*="resend-verification"]),
[data-theme="dark"] .cert-hub .cert-enrollment .cert-empty--inline:has(> i.fa-lock) {
  border-color: #a7782a;
  border-left-color: #f3bd52;
  background: #302716;
  color: #f5e8c7;
}

[data-theme="dark"] .cert-hub .cert-empty--inline:has(form[action*="resend-verification"]) > div::before,
[data-theme="dark"] .cert-hub .cert-enrollment .cert-empty--inline:has(> i.fa-lock) i {
  border-color: #80612e;
  background: #51401e;
  color: #ffe1a0;
}

[data-theme="dark"] .cert-hub .cert-empty--inline:has(form[action*="resend-verification"]) h3,
[data-theme="dark"] .cert-hub .cert-empty--inline:has(form[action*="resend-verification"]) p,
[data-theme="dark"] .cert-hub .cert-enrollment .cert-empty--inline:has(> i.fa-lock) h3,
[data-theme="dark"] .cert-hub .cert-enrollment .cert-empty--inline:has(> i.fa-lock) p {
  color: #f5e8c7;
}

[data-theme="dark"] .cert-hub .cert-empty--inline:has(form[action*="resend-verification"]) form button.ev-btn {
  border-color: #f3bd52;
  background: #f3bd52;
  color: #2c210d;
}

[data-theme="dark"] .cert-hub .cert-empty--inline:has(form[action*="resend-verification"]) form button.ev-btn:hover {
  background: #ffd477;
}

@media (max-width: 600px) {
  .cert-hub .cert-empty--inline:has(form[action*="resend-verification"]) {
    padding: 1rem;
  }

  .cert-hub .cert-empty--inline:has(form[action*="resend-verification"]) form button.ev-btn {
    width: 100%;
  }
}
