/* -------------------------------------------------- */
/* GENERAL STYLES */
/* -------------------------------------------------- */

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.7rem;
  background-color: #f8f8f8;
  color: #333;
  text-align: center;
  margin: 0;
  padding: 2rem;
}

a {
  text-decoration: none;
  color: #555;
}

a:hover {
  border-bottom: 1px dotted #555;
  color: #777;
}

.hidden { display: none; }

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* -------------------------------------------------- */
/* LANGUAGE SELECTOR */
/* -------------------------------------------------- */

.lang-selector {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 0.9rem;
}

.lang-selector a {
  margin-left: 0.5rem;
  color: #666;
}

.lang-selector a.active {
  color: #000;
  font-weight: bold;
}

/* -------------------------------------------------- */
/* LOGO */
/* -------------------------------------------------- */

.logo {
  max-width: 160px;
  margin-bottom: 2rem;
  filter: grayscale(100%);
}

/* Internal pages: logo left-aligned */
.internal-logo {
  display: block;
  margin: 0 0 2rem 0;
  text-align: left;
}

/* -------------------------------------------------- */
/* LANDING PAGE LAYOUT */
/* -------------------------------------------------- */

.content {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.image-col {
  flex: 0 0 55%;
  text-align: right;
}

.image-col img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%);
}

.text-col {
  flex: 0 0 45%;
  text-align: left;
  min-width: 280px;
  margin-bottom: 1.5rem;
}

p {
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
  margin-top: 0;
}

.text-col p {
  font-style: italic;
}



.contact {
  margin-top: 5rem;
  font-size: 0.85rem;
  color: #555;
}

/* -------------------------------------------------- */
/* INTERNAL PAGE LAYOUT */
/* -------------------------------------------------- */

.internal-layout {
  display: flex;
  gap: 6rem;
  align-items: flex-start;
  text-align: left;
}

.internal-image img {
  max-width: 260px;
  filter: grayscale(100%);
}

.internal-content {
  flex: 1;
  font-size: 0.8rem;
  line-height: 1.6;
}

/* -------------------------------------------------- */
/* RESPONSIVE */
/* -------------------------------------------------- */

@media (max-width: 700px) {
  .content {
    flex-direction: column;
    align-items: center;
  }
  .image-col, .text-col {
    flex: 1 1 100%;
    text-align: center;
  }
  .text-col { text-align: left; }

  .internal-layout {
    flex-direction: column;
    text-align: left;
  }
}

/* -------------------------------------------------- */
/* PRINT VERSION */
/* -------------------------------------------------- */

@media print {

  body {
    font-family: Georgia, Garamond, "Times New Roman", serif;
    background: white !important;
    color: black !important;
    font-size: 12pt;
    padding: 0;
    margin: 1.5cm;
  }

  .lang-selector,
  .contact,
  .logo,
  .image-col,
  .internal-image {
    display: none !important;
  }

  .content,
  .internal-layout,
  .container {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
  }

  p, h1, h2, h3, h4 {
    page-break-inside: avoid;
  }

  a::after {
    content: " (" attr(href) ") ";
    font-size: 10pt;
  }
}

/* -------------------------------------------------- */
/* VISITING CARD  */
/* -------------------------------------------------- */

/* Wrapper inside .internal-content keeping aspect ratio */
.team-card-wrapper {
  width: 100%;                       /* full width of internal-content column */
  max-width: 300px;                  /* limit max width */
  aspect-ratio: 3 / 1.5;             /* flatter width : height ratio */
  border: 1px solid #fff;            /* thinner black border */
  border-radius: 0.25rem;            /* less rounded corners */
  background-color: #fff;            /* white background */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* subtle shadow */
  display: flex;
  flex-direction: column;
  justify-content: center;           /* vertical centering of content */
  align-items: flex-start;           /* left-align content */
  padding: clamp(0.5rem, 2vw, 2rem);/* scalable padding */
  margin: 0;                         /* flush left inside .internal-content */
}

/* Optional portrait */
.team-portrait {
  max-width: 50%;               /* scales proportionally */
  height: auto;
  margin-bottom: 0.5rem;
}

/* Hide portrait if none provided */
.team-portrait.empty {
  display: none;
}

/* Name text inside the card */
.team-name {
  font-size: clamp(1rem, 4vw, 1.4rem);  /* scales with viewport */
  margin-bottom: 0.7rem;
  text-align: left;                     /* left-aligned */
}

/* Team info paragraphs inside the card */

.team-info p {
  font-size: clamp(0.7rem, 2.5vw, 0.9rem); /* scales with viewport */
  margin: 0.4rem 0;
  text-align: left;                         /* left-aligned */
}

/* Links inside card */
.team-info a {
  color: #000;
  text-decoration: none;
  font-style: italic;
}

.team-info a:hover {
  text-decoration: underline;
}

/* Responsive: ensure card stays readable on small screens */
@media (max-width: 500px) {
  .team-card-wrapper {
    max-width: 250px;
    padding: 1rem;
  }
}

/* Align card bottom with image in internal layout */
.internal-layout {
  display: flex;
  gap: 6rem;                 /* preserves spacing between image and content */
  align-items: flex-end;      /* bottom-aligns children (image and card) */
}
