/* Poppins, self-hosted (no requests to Google) */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }

:root {
  --teal: #0097b1;
  --teal-dark: #007b91;
  --teal-light: #e8f6f9;
  --ink: #12424f;
  --muted: #5b7f89;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #f2fafc 0%, #dff1f5 100%);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 14px 28px;
}

a { color: inherit; text-decoration: none; }

/* ---------- The card ---------- */
.card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(0, 92, 110, .14), 0 2px 6px rgba(0, 92, 110, .06);
  overflow: hidden;
  padding: 30px 36px 30px 26px;
}

/* teal tab at the top-left and stripe on the right, like the printed card */
.card .tab {
  position: absolute; top: 0; left: 26px;
  width: 30px; height: 64px;
  background: var(--teal);
  border-radius: 0 0 16px 16px;
}
.card .stripe {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 14px; background: var(--teal);
}

/* ---------- Header ---------- */
.head { text-align: center; }

.logo { display: block; width: 190px; max-width: 70%; margin: 8px auto 22px; }

.avatar {
  display: block;
  width: 132px; height: 132px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--teal), 0 8px 20px rgba(0, 92, 110, .18);
}

h1 {
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--teal);
  letter-spacing: -.01em;
}
.role { font-size: 1.1rem; color: var(--teal); margin-top: 2px; }

/* ---------- Main button ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  font: inherit; font-weight: 600; font-size: 1.05rem;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 22px; height: 22px; }

.btn-primary {
  margin-top: 24px;
  background: var(--teal); color: #fff; border: 0;
  box-shadow: 0 8px 18px rgba(0, 151, 177, .32);
}
.btn-primary:hover { background: var(--teal-dark); }

.btn-outline {
  margin-top: 14px;
  background: #fff; color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal-light); }

/* ---------- Quick actions ---------- */
.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 22px;
}
.action {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 500; color: var(--ink);
}
.action .icon { width: 52px; height: 52px; }
.action .icon svg { width: 24px; height: 24px; }

/* icon tile, same shape as on the printed card */
.icon {
  flex: none;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--teal); color: #fff;
  border-radius: 12px 12px 12px 3px;
}
.icon svg { width: 19px; height: 19px; }

/* ---------- Details list ---------- */
.details {
  list-style: none;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--teal);
}
.details li + li { margin-top: 6px; }
.details a, .details .row {
  display: flex; align-items: center; gap: 14px;
  padding: 6px 4px;
  border-radius: 10px;
  font-size: 1rem;
  color: var(--teal);
  overflow-wrap: anywhere;
}
.details a:hover { background: var(--teal-light); }

.tagline {
  margin-top: 24px;
  text-align: center;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--teal);
}

/* ---------- Footer / toast ---------- */
footer { margin-top: 20px; font-size: .8rem; color: var(--muted); text-align: center; }
footer a { color: var(--teal); font-weight: 500; }

.toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-size: .9rem;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Team index page ---------- */
.team { list-style: none; margin-top: 10px; }
.team li + li { margin-top: 12px; }
.team a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border-radius: 16px;
  background: var(--teal-light);
}
.team img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.team strong { display: block; color: var(--teal); font-size: 1.05rem; }
.team span { font-size: .9rem; color: var(--muted); }

@media (max-width: 360px) {
  .card { padding: 26px 26px 26px 18px; }
  h1 { font-size: 1.4rem; }
  .action .icon { width: 46px; height: 46px; }
}
