/* --- About Page --- */
.passion-rotator {
  color: var(--blue-mid);
  cursor: var(--cursor-pointer);
  font-style: italic;
  text-decoration: underline;
}

.passion-rotator:hover {
  text-decoration: underline;
}

.about-page #sidebar-left {
  padding-bottom: 0;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.profile-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.7;
}

.profile-table td:first-child {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 140px;
  white-space: nowrap;
}

.about-page .box.box--fun-facts .box-content {
  color-scheme: dark;
  background-color: var(--bg-panel);
}

/* --- About layout demos: photo placeholder & switcher --- */
.profile-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-panel-alt);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-label);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-photo-square {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 16px;
}

/* Desktop About sidebar: slightly shorter photo so the tagline fits */
.about-photo-desktop .profile-photo-square {
  height: 400px;
  max-height: 400px;
  aspect-ratio: auto;
}

.profile-photo--glow {
  border-color: var(--border-accent);
  box-shadow: 0 0 20px rgba(26, 80, 204, 0.12);
}

.about-photo-desktop {
  display: block;
}

.about-photo-mobile {
  display: none;
}

.profile-photo-hero {
  width: 100%;
  min-height: 220px;
  border-radius: 0;
}

.profile-photo-inline {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.about-tagline {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 1px;
  margin-bottom: 0px;
}

.about-dossier-photo {
  flex-shrink: 0;
  border-right: 1px solid var(--border);
}

.about-dossier-bio {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.about-dossier-bio .box-content {
  flex: 1;
}

.about-stat-strip {
  display: flex;
  border: 1px solid var(--border);
  border-top: none;
  background-color: var(--bg-panel);
}

.about-stat {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border-right: 1px solid var(--border);
}

.about-stat:last-child {
  border-right: none;
}

.about-stat .label-mono {
  display: block;
  margin-bottom: 6px;
}

.about-stat p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-body);
}

/* --- About layout 5: Two-Column Grid --- */
.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-two-col-left,
.about-two-col-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.about-two-col-right .box {
  flex: 1;
}

/* --- About layout 6: Centered Profile --- */
.about-centered {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.profile-photo-centered {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  margin-bottom: 14px;
}

.about-centered-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 18px;
}

.about-centered-divider {
  width: 100%;
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
}

.about-centered .box {
  width: 100%;
}

.about-centered-facts {
  display: flex;
  width: 100%;
  border: 1px solid var(--border);
  border-top: none;
  background-color: var(--bg-panel);
}

.about-centered-fact {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border-right: 1px solid var(--border);
}

.about-centered-fact:last-child {
  border-right: none;
}

.about-centered-fact .label-mono {
  display: block;
  margin-bottom: 6px;
}

.about-centered-fact p {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-body);
}

/* --- About Page: Mobile tweaks (matches site mobile breakpoint) --- */
@media (max-width: 980px) {
  /* About page: hide desktop sidebar photo, show inline mobile photo.
     This makes the order: ABOUT ME banner → photo → About → Fun facts. */
  .about-page #sidebar-left.about-photo-desktop {
    display: none;
  }

  .about-photo-mobile {
    display: block;
    margin: 12px auto 20px;
  }

  .about-photo-mobile .profile-photo-square {
    width: 80%;
    margin: 0 auto 10px;
  }

  .about-photo-mobile .about-tagline {
    margin-bottom: 0;
    text-align: center;
  }

  .about-intro-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
