/* #629: the customer pages (platform.invisory.co). Invisory brand from the
   11 Nov mocks. System fonts for now: the mocks' Google fonts would need the
   CSP opened to fonts.googleapis.com and fonts.gstatic.com. */
:root {
  --navy: #0a3443;
  --navy9: #214756;
  --navy7: #4e6e7a;
  --navy6: #65818c;
  --blue: #2583aa;
  --blue-ink: #18577e;
  --lime: #b3d334;
  --ground: #f4f7f8;
  --card: #ffffff;
  --line: #dae1e5;
  --line2: #edf1f3;
  --sky: #e6f1f8;
  --error-bg: #fdecef;
  --error-ink: #8a1c2b;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--navy); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--blue-ink); }
a:hover { color: var(--blue); }

.top { display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: var(--navy); color: #fff; border-bottom: 3px solid var(--lime); }
.top .brand { color: #fff; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; margin-right: auto; }
.top .who { color: #c3ced3; font-size: 14px; }
.top form { display: inline; margin: 0; }
.top button.link { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

.shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 51px); }
.nav { background: var(--card); border-right: 1px solid var(--line); padding: 20px 12px; }
.nav ol { list-style: none; margin: 0; padding: 0; }
.nav a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 8px; color: var(--navy9); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--line2); color: var(--navy); }
.nav a[aria-current="page"] { background: var(--sky); color: var(--navy); font-weight: 600; }
.nav .step { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line2); color: var(--navy7); font-size: 12px; font-weight: 700; flex: none; }
.nav a[aria-current="page"] .step { background: var(--navy); color: #fff; }
.nav .soon { margin-left: auto; font-size: 11px; color: var(--navy6); font-weight: 500; }

main { padding: 28px 32px; max-width: 980px; }
h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -0.01em; }
.lead { color: var(--navy7); margin: 0 0 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.card + .card { margin-top: 16px; }
.muted { color: var(--navy6); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--line2); color: var(--navy7); }
.flash.error { background: var(--error-bg); color: var(--error-ink); border-radius: 8px; padding: 10px 12px; }
a.button { display: inline-block; padding: 9px 18px; border-radius: 8px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; }
a.button:hover { background: var(--navy9); color: #fff; }

.single { max-width: 440px; margin: 64px auto; padding: 0 16px; }

@media (max-width: 760px) {
  .top { padding: 10px 16px; gap: 12px; }
  .top .who { display: none; }
  .shell { display: block; min-height: 0; }
  .nav { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .nav ol { display: flex; flex-wrap: wrap; gap: 2px 4px; }
  .nav a { white-space: nowrap; padding: 6px 10px; font-size: 14px; }
  .nav .soon { display: none; }
  main { padding: 20px 16px; }
}

/* #629 part 4: Partners for a deal */
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line2); }
table.list th { font-size: 13px; color: var(--navy7); font-weight: 600; }
.match-head { display: flex; align-items: center; gap: 12px; }
.match-head h2 { font-size: 18px; margin: 0; flex: 1; }
.rank { color: var(--navy7); font-weight: 700; }
.score { background: var(--navy); color: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 14px; }
.small { font-size: 13px; }
.reasons { margin: 8px 0; padding-left: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.actions form { margin: 0; }
.actions button { min-height: 44px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.actions button.secondary { background: var(--card); color: var(--navy); }
.flash.ok { background: var(--sky); color: var(--navy); border-radius: 8px; padding: 10px 12px; }
details.card summary { cursor: pointer; font-weight: 600; }
@media (max-width: 760px) { table.list th:nth-child(3), table.list td:nth-child(3) { display: none; } }
