/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: sans-serif;
  font-size: 12px;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='8' cy='8' r='0.75' fill='rgba(203%2C213%2C225%2C0.4)'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  background-position: 0 0;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

/* Layout */
.page {
  min-height: 100vh;
  width: auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
}

/* Sidebar (desktop: left column) */
.sidebar {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='8' cy='8' r='0.75' fill='rgba(203%2C213%2C225%2C0.4)'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  flex: 1 0 0;
  min-width: 1px;
  min-height: 100vh;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Canvas frame - groups card + links as one dropped element */
.canvas-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Card - canvas frame style (matches grid) */
.card {
  background-color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  max-width: 100%;
}

/* Avatar */
.card-avatar {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
}

.card-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Card info */
.card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.card-name {
  font-family: 'Farro', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: rgb(33, 33, 33);
  letter-spacing: 0;
  line-height: 1.2;
}

.card-title {
  font-family: 'Farro', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: rgb(99, 99, 99);
  line-height: 1.2;
}

/* Links */
.card-links {
  font-family: 'Farro', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgb(99, 99, 99);
  line-height: 1.2;
  text-align: center;
}

.card-links a {
  color: #203b5a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-links a:hover {
  color: #376ba6;
}

.separator {
  margin: 0 0.25em;
}

/* Card: avatar + name side by side */
.card {
  flex-direction: row;
  align-items: center;
}

/* Mobile: stacked layout, centered, no scroll */
@media (max-width: 1199.98px) {
  html, body {
    height: 100%;
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  .page {
    flex-direction: column;
    min-height: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
  }

  .sidebar {
    width: 100%;
    min-height: 0;
    height: auto;
    flex: none;
    padding: 16px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .card-avatar {
    width: 56px;
    height: 56px;
  }
}
