:root {
    --deep: #061a2e;
    --ocean: #0a3a5c;
    --mid: #0e5a82;
    --foam: #a8dff0;
    --gold: #c9a84c;
    --serif: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
    --sans: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}

a {
    color: var(--foam);
}

a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* --- Footer --- */
footer {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  padding: 2rem 0;
  border-top: 1px solid rgba(168,223,240,0.1);
  margin-top: auto;
  background: var(--ocean);
}

/* Navigation bar */
.navbar {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0 15px 0 25px;
    background: var(--ocean);
    border-bottom: 1px solid rgba(168, 223, 240, 0.15);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Brand and logo text */
.nav-brand-container {
    display: flex;
    align-items: center;
    padding: 14px 0;
}

.nav-brand {
    color: var(--foam);
    font-family: var(--serif);
    font-size: 1.15rem;
    letter-spacing: 0.05em;
}

.nav-brand a {
    color: inherit;
    text-decoration: none;
}

.nav-brand strong {
    color: var(--gold);
    font-weight: 400;
}

/* Navigation links */
.nav-links {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
    color: var(--gold);
}

/* Hide the checkbox and hamburger on desktop */
#nav-toggle,
.nav-toggle-label {
    display: none;
}

/* Responsive mobile navigation */
@media (max-width: 960px) {
    .nav-toggle-label {
        display: block;
        align-self: center;
        cursor: pointer;
        color: var(--foam);
        font-size: 1.6rem;
        line-height: 1;
        padding: 14px 12px;
        margin-right: -12px;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .navbar {
        padding: 0 25px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--ocean);
        flex-direction: column;
        border-bottom: 1px solid rgba(168, 223, 240, 0.15);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        z-index: 1001;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(168, 223, 240, 0.15);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a:hover,
    .nav-links a:active {
        color: var(--gold);
        background: rgba(168, 223, 240, 0.08);
    }

    /* Show the menu when the hamburger is checked */
    #nav-toggle:checked ~ .nav-links {
        display: flex;
    }
}

/* --- Member Profile Grid --- */
.profiles-grid {
  max-width: 1420px;
  margin: 2rem auto 1rem;
  padding: 0 1.5rem;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: stretch;
}

/* Used by the <noscript> message */
.empty-state {
  grid-column: 1 / -1;
  padding: 3.5rem 1rem;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
}

.more-wrap {
  text-align: center;
  padding: 1rem 0 3rem;
}

.more-btn {
  background: none;
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.7em 1.6em;
  border-radius: 2em;
  font-family: var(--sans);
  transition: background 0.2s;
}
.more-btn:hover { background: rgba(201,168,76,0.1); }
.more-btn[hidden] { display: none; }

.bio-wrap {
  width: 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}

.bio-wrap:hover {
  border: 1px dotted gray;
}

.bio-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0;
  flex-direction: row;
}

.bio-header > div {
  flex: 1;
  min-width: 0;
}

.bio-photo {
  width: auto;
  height: 150px;
  border-radius: .5rem;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: var(--ocean);
}

.bio-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: var(--foam);
  line-height: 1.15;
  margin-bottom: .4rem;
}

.bio-title {
  font-size: 0.9rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .2rem;
  font-weight: 600;
}

.bio-uni {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.profile-block-outer {
  padding: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.profile-block-inner {
  padding: 20px;
  border: 0px solid white;
  border-radius: 20px;
  width: 100%;
  background: var(--deep);
}

/* Only the profile-card links become block-level (full clickable card) */
.profile-block-inner a {
  display: block;
  text-decoration: none;
}

/* Medium screens: still 2 columns, but each card's photo/text stacks and centers */
@media (max-width: 1024px) and (min-width: 641px) {
  .bio-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bio-photo {
    order: -1;
    margin: 0 auto 1rem auto;
  }
}

/* Narrow / mobile: collapse to 1 column, keep the stacked/centered look */
@media (max-width: 640px) {
  .profiles-grid {
    grid-template-columns: 1fr;
    gap: 7rem;
  }

  .profile-block-inner {
    width: 300px;
    margin: 0 auto;
  }

  .bio-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bio-photo {
    order: -1;
    margin: 0 auto 1rem auto;
  }
}