/* Licensed Hubs feature (src/features/hubs). Every class here is prefixed hubs-. Light surfaces only. */

/* ---------- certification application ---------- */
.public main.hubs-wide { max-width: 1060px; }
.hubs-vsteps { list-style: none; margin: 0; padding: 0; counter-reset: hubs-step; }
.hubs-vsteps li { counter-increment: hubs-step; }
.hubs-vsteps a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--slate); font-size: 14px; line-height: 1.25; }
.hubs-vsteps a:hover { background: var(--g2); text-decoration: none; }
.hubs-vsteps a::before { content: counter(hubs-step); width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cfd7de; background: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; color: var(--slate); }
.hubs-vsteps li.done a::before { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.hubs-vsteps li.cur a { background: #e6f3f3; color: var(--navy); font-weight: 600; }
.hubs-vsteps li.cur a::before { border-color: var(--teal); }
.hubs-vsteps .hubs-state { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.hubs-fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.hubs-fieldset > legend { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 5px; padding: 0; }
.hubs-fieldset .check { margin-bottom: 6px; }
.hubs-ref { border: 1px solid var(--g1); border-radius: 8px; padding: 12px 14px 0; margin: 0 0 12px; min-width: 0; }
.hubs-ref > legend { padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--navy); }
.hubs-facts dd { font-weight: 400; white-space: pre-line; }
.hubs-summary + .hubs-summary { border-top: 1px solid var(--g1); margin-top: 18px; padding-top: 16px; }
.hubs-files { list-style: none; margin: 0; padding: 0; }
.hubs-files li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid var(--g1); }
.hubs-files li:first-child { border-top: 0; }
.hubs-files .hubs-grow { flex: 1; min-width: 180px; }

/* ---------- scorecard, density ladder ---------- */
.hubs-target { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 14px; align-items: center; padding: 11px 0; }
.hubs-target + .hubs-target { border-top: 1px solid var(--g1); }
.hubs-target b { color: var(--navy); }
.hubs-target small { display: block; }
.hubs-ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 12px 0 0; }
.hubs-ladder li { border: 1px solid var(--g1); border-radius: 8px; padding: 10px 12px; background: #fff; font-size: 13px; }
.hubs-ladder li.hubs-on { border-color: var(--teal); background: #f2fafa; }
.hubs-ladder li.hubs-cur { box-shadow: inset 0 -3px 0 var(--teal); }
.hubs-ladder b { display: block; color: var(--navy); font-size: 18px; line-height: 1.2; }

/* ---------- forms and tables ---------- */
.hubs-inline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hubs-inline select, .hubs-inline input { width: auto; padding: 5px 8px; font-size: 13px; }
.hubs-money { max-width: 150px; text-align: right; }
.hubs-neg { color: var(--bad); }
.hubs-kcard-actions { margin-top: 8px; }
.hubs-narrow { max-width: 760px; }
.hubs-panel-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hubs-panel-h h3, .hubs-panel-h h2 { margin: 0; }
.hubs-panel-h .hubs-end { margin-left: auto; }
details.hubs-more > summary { display: inline-flex; }
details.hubs-more[open] > summary { margin-bottom: 10px; }

/* ---------- printable statement ---------- */
.hubs-statement { max-width: 880px; }
.hubs-statement-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media print {
  body:has(.hubs-statement) .topbar, body:has(.hubs-statement) .sidenav, body:has(.hubs-statement) .help-fab,
  body:has(.hubs-statement) .crumbs, body:has(.hubs-statement) .banner, body:has(.hubs-statement) .hubs-noprint { display: none !important; }
  body:has(.hubs-statement) .app { display: block; min-height: 0; }
  body:has(.hubs-statement) .content { padding: 0; }
  body:has(.hubs-statement) .card { box-shadow: none; border: 0; padding: 0; }
  .hubs-statement { max-width: none; }
}

@media (max-width: 900px) {
  .hubs-target { grid-template-columns: 1fr; }
}
