*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 24px 16px 40px;
}

.card {
  width: 100%;
  max-width: 420px;
}

.top {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}

.who {
  margin-top: 18px;
  text-align: center;
}

.avatar {
  display: block;
  object-fit: cover;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 32px;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.role {
  margin: 8px 0 2px;
  font-size: 17px;
}

.org {
  margin: 6px 0 0;
  font-size: 15px;
}

.btns {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.btn svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.btn:focus-visible,
.note a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.qrbox {
  margin: 28px auto 0;
  width: 168px;
  text-align: center;
}

.qr {
  display: block;
  width: 168px;
  height: 168px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
}

.qrbox figcaption {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.7;
}

.note {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.75;
}

.note a {
  color: inherit;
}

.note .sep {
  margin: 0 8px;
}

/* Personal */
.t-ct {
  --focus: #6f5bff;
  background: #0b0b0c;
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
}

.t-ct .mark {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.12em;
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 4px 10px;
}

.t-ct .avatar {
  background: #1d1f23;
  font-weight: 700;
}

.t-ct .org {
  color: #b9bec6;
}

.t-ct .btn {
  background: #17191d;
  color: #fff;
  border: 1px solid #2a2e33;
}

.t-ct .btn:hover {
  border-color: #6f5bff;
}

.t-ct .btn.primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.t-ct .note a {
  text-decoration-color: #8f5bff;
}

/* TP */
.t-tp {
  --focus: #ff0082;
  background: #fff;
  color: #000;
  font-family: Calibri, "Carlito", "Segoe UI", Arial, sans-serif;
}

.t-tp .tp-logo {
  height: 40px;
  color: #000;
}

.t-tp h1 {
  font-weight: 300;
  font-size: 30px;
}

.t-tp .avatar {
  background: #4b4c6a;
  color: #fff;
  font-weight: 300;
}

.t-tp .org {
  color: #676767;
}

.t-tp .btn {
  background: #fff;
  color: #000;
  border: 1px solid #cccccc;
}

.t-tp .btn svg {
  color: #4b4c6a;
}

.t-tp .btn:hover {
  border-color: #4b4c6a;
}

.t-tp .btn.primary {
  background: #4b4c6a;
  color: #fff;
  border-color: #4b4c6a;
}

.t-tp .btn.primary svg {
  color: #fff;
}

.t-tp .qr {
  border: 1px solid #e6e6e5;
}

.t-tp .tp-bar {
  height: 6px;
  margin: 22px 48px 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #790097, #ff0083);
}

[hidden] {
  display: none !important;
}

/* Personal banner, matching the LinkedIn header */
.banner {
  position: relative;
  height: 132px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 45% 90% at 58% 0%, rgba(58, 84, 255, 0.55), transparent 70%),
    radial-gradient(ellipse 40% 120% at 100% 50%, rgba(140, 40, 150, 0.55), transparent 70%),
    linear-gradient(180deg, #0a0a14 0%, #050508 100%);
  border: 1px solid #1c1d2a;
}

.banner-grid {
  position: absolute;
  inset: 10px 12px;
  background:
    linear-gradient(90deg, rgba(110, 120, 255, 0.18) 1px, transparent 1px) 0 0 / 25% 100%;
  border: 1px solid rgba(110, 120, 255, 0.14);
  pointer-events: none;
}

.banner-logo {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  line-height: 0;
}

.banner-logo img {
  width: 132px;
  height: auto;
}

.who-banner {
  margin-top: -52px;
  position: relative;
}

.t-ct .who-banner .avatar {
  border: 3px solid transparent;
  padding: 3px;
  background:
    linear-gradient(#0b0b0c, #0b0b0c) padding-box,
    linear-gradient(135deg, #3a54ff, #a62fb4) border-box;
}
