/* CTI/AI/hub-ui/css/hub.css
   CTI-2286: Client Hub. External stylesheet only (CSP style-src 'self'); no inline style anywhere.
   Branding follows credittechnologies.com as measured 2026-10-17: white header with the site's
   grey rule at 92px, the nav lockup at 272x63 (name-only below 480px), Plus Jakarta Sans for
   headings, DM Sans 17px for body, the site's palette and its dark navy footer. The two woff2
   files are the site's own (OFL; licences beside them in assets/fonts/). */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../assets/fonts/plus-jakarta-sans-latin-v12.woff2?v=1792320000") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-v17.woff2?v=1792320000") format("woff2");
}

:root {
  --navy: #0b2545;
  --navy2: #123055;
  --blue: #1a6bb5;
  --blue-tint: #eaf2fa;
  --red: #bc1a25;
  --ink: #1b2430;
  --mist: #5c6b7a;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f7fafc;
  --ok: #1e7f4f;
  --err: #b42318;
  --err-bg: #fef3f2;
  --ok-bg: #ecfdf3;
  --footer-bg: #081b33;
  --footer-ink: #b9c7d8;
  --disp: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
  --r: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: var(--disp); color: var(--navy); letter-spacing: -0.01em; line-height: 1.12; }
h1 { font-size: clamp(26px, 4vw, 32px); font-weight: 700; margin: 0 0 14px; }
h2 { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
p { margin: 0 0 12px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── header ───────────────────────────────────────────────────────────── */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner {
  height: 92px; padding: 0 28px; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: 272px; height: 63px; }
.brand-logo-name { display: none; width: 200px; height: 41px; }
.brand-page {
  font-family: var(--disp); font-weight: 700; font-size: 18px; color: var(--navy);
  border-left: 1px solid var(--line); padding-left: 14px; line-height: 1.2; white-space: nowrap;
}

/* ── page ─────────────────────────────────────────────────────────────── */
.page { width: 100%; max-width: 760px; margin: 0 auto; padding: 28px 16px 48px; flex: 1 0 auto; }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 2px 10px #0b25450f, 0 12px 32px #0b25450f;
  padding: 24px; margin-bottom: 16px;
}
.lede { color: var(--navy); font-weight: 500; }
.muted { color: var(--mist); }
.small { font-size: 15px; margin-bottom: 2px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; }

label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
input[type="email"], input[type="text"] {
  display: block; width: 100%; max-width: 380px; font: inherit;
  padding: 10px 12px; border: 1px solid #c9d3df; border-radius: 10px; margin-bottom: 14px; background: var(--bg);
}
#code-input { max-width: 190px; letter-spacing: 0.2em; font-size: 21px; }
input:focus, button:focus, a:focus { outline: 2px solid var(--blue); outline-offset: 2px; }

button { font: inherit; cursor: pointer; }
button:disabled { opacity: 0.6; cursor: default; }
.primary {
  font-family: var(--disp); font-weight: 700; font-size: 16px;
  background: var(--red); color: #fff; border: 2px solid transparent; border-radius: 10px;
  padding: 12px 24px; box-shadow: 0 6px 18px #bc1a2540;
}
.secondary {
  font-family: var(--disp); font-weight: 600; font-size: 15px;
  background: var(--bg); color: var(--navy); border: 1px solid #c9d3df; border-radius: 10px; padding: 10px 18px;
}
.link-button { background: none; border: none; padding: 6px 0; color: var(--blue); font-weight: 600; }
.site-header .link-button { color: var(--navy); }

.notice {
  border: 1px solid var(--ok); background: var(--ok-bg); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 16px;
}
.notice-error { border-color: var(--err); background: var(--err-bg); }

.row-between { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

.choices { list-style: none; margin: 0; padding: 0; }
.choices li { margin-bottom: 8px; }
.choice {
  width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px;
}
.choice:hover { border-color: var(--blue); }
.choice-name { font-family: var(--disp); font-weight: 700; color: var(--navy); }
.choice-number { color: var(--mist); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.requests { width: 100%; border-collapse: collapse; font-size: 16px; }
.requests th, .requests td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.requests th { font-size: 14px; color: var(--mist); font-weight: 600; }

.group { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }
.group legend { font-family: var(--disp); font-weight: 700; color: var(--navy); padding: 0 4px; }
.check { font-weight: 400; color: var(--ink); display: block; margin: 4px 0; }
.check input { margin-right: 6px; }

.panel { border-left: 3px solid var(--blue); background: var(--blue-tint); border-radius: 0 10px 10px 0; padding: 10px 14px; margin: 0 0 12px; }
.actions { display: flex; gap: 10px; margin-top: 8px; }

/* ── footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); font-size: 14.5px; padding: 40px 0 30px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.footer-contact { font-style: normal; display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 14px; }
.site-footer a { color: var(--footer-ink); }
.site-footer a:hover { color: #ffffff; }
.footer-hours { margin-bottom: 18px; }
.footer-legal { border-top: 1px solid #ffffff1f; padding-top: 16px; margin: 0; font-size: 13.5px; }

/* ── narrow screens ───────────────────────────────────────────────────── */
@media (max-width: 479px) {
  .brand-logo { display: none; }
  .brand-logo-name { display: block; }
  .header-inner { height: 68px; padding: 0 16px; }
  .brand { gap: 10px; }
  .brand-page { font-size: 15px; padding-left: 10px; }
  .footer-inner { padding: 0 16px; }
  .footer-contact { flex-direction: column; }
  .requests th:nth-child(4), .requests td:nth-child(4) { display: none; }
  .row-between { flex-direction: column; }
}
@media (max-width: 359px) {
  .brand-logo-name { width: 166px; height: 34px; }
}
