/* === Global Reset === */
body {
  font-family: 'Merriweather', serif;
  margin: 0;
  background: #1c1c1c url('https://www.transparenttextures.com/patterns/dark-wood.png');
  color: #f0e6d2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === Header === */
header {
  background: #2b1f14 url('https://www.transparenttextures.com/patterns/dark-wood.png');
  border-bottom: 6px solid #8b6f47;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
header .logo {
  height: 120px;
  margin-bottom: 10px;
}
header h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.5em;
  margin: 0;
  color: #c7a55d;
  text-shadow: 1px 2px 4px #000;
}
header h2 {
  font-size: 1.5em;
  margin: 5px 0 0;
  color: #e0c97f;
}

/* === Nav Buttons === */
.button-banner {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
  flex-wrap: wrap;
}
.big-btn {
  padding: 12px 24px;
  background: #3b2a1f;
  border: 3px solid #8b6f47;
  border-radius: 10px;
  font-family: 'Cinzel', serif;
  font-size: 1.1em;
  color: #e0c97f;
  text-decoration: none;
  transition: 0.3s;
}
.big-btn:hover {
  background: #5a3f2b;
  color: #ffdf7f;
  border-color: #ffdf7f;
  box-shadow: 0 0 12px rgba(255, 215, 128, 0.6);
}

/* === Section Panels === */
.section,
.section.role,
.role.section {
  margin: 30px auto;
  max-width: 1100px;
  background: #2b1f14 url('https://www.transparenttextures.com/patterns/dark-wood.png');
  border: 2px solid #8b6f47;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}
.division-title {
  background: #3b2a1f;
  border-bottom: 2px solid #8b6f47;
  font-family: 'Cinzel', serif;
  font-size: 1.2em;
  color: #e0c97f;
  padding: 10px 15px;
}

/* === Role Body === */
.role-body {
  padding: 20px;
}

/* Bullet grid (6 plaques) */
.summary-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  opacity: 1;
  max-height: 500px;          /* new */
  overflow: hidden;           /* new */
  transition: opacity 0.5s ease, max-height 0.5s ease; /* new */
}
.summary-card {
  flex: 1 1 calc(33% - 12px);
  min-width: 200px;
  background: #3b2a1f;
  border: 2px solid #8b6f47;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  font-size: 1.05em;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: #f5deb3;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
  display:flex; align-items:center; justify-content:center;
  transition: 0.3s;
}
.summary-card:hover {
  transform: translateY(-3px);
  border-color: #ffdf7f;
  color: #ffdf7f;
  box-shadow: 0 0 12px rgba(255, 215, 128, 0.8);
}

/* Paragraph view */
.more {
  margin-top: 10px;
  text-align: center;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease;
}
.more p {
  max-width: 800px;
  margin: 0 auto 15px;
  line-height: 1.7;
}

/* Toggles */
.toggle {
  display: block;
  margin: 14px auto 0;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  cursor: pointer;
  color: #d4af37;
  text-align: center;
  user-select: none;
}
.toggle:hover { color: #ffd700; }
.toggle-more::before, .toggle-less::before { content: "--== "; color: #8b6f47; }
.toggle-more::after,  .toggle-less::after  { content: " ==--"; color: #8b6f47; }
.toggle-less { display:none; }

/* Expanded state (smooth fades) */
.role.expanded .summary-grid {
  opacity: 0;
  max-height: 0;              /* collapses space */
  margin-bottom: 0;           /* prevents extra spacing */
}
.role.expanded .more {
  opacity: 1;
  max-height: 600px;
}
.role.expanded .toggle-more { display:none; }
.role.expanded .toggle-less { display:block; }
/* Staff roster grid */
.staff-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px;
  justify-content: flex-start;
}

/* Staff card */
.staff-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 15px;
  background: #3b2a1f;
  border: 2px solid #8b6f47;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  width: 250px;        /* ✅ fixes stretching */
}

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #8b6f47;
  color: #1c1c1c;
  font-weight: bold;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Staff info */
.staff-info .username {
  font-size: 1.05em;
  font-weight: bold;
  color: #f0e6d2;
  text-shadow: 1px 1px 2px #000;
}
.staff-info .role {
  font-size: 0.85em;
  color: #c7a55d;
}
/* === Policies Page === */
.policy-intro-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 25px auto;
  max-width: 1100px;
}

.policy-intro-wrapper .gold-bar {
  flex: 1;
  height: 3px;
  background: linear-gradient(to right, #8b6f47, #ffd700, #8b6f47);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.policy-intro-box {
  background: #2b1f14 url('https://www.transparenttextures.com/patterns/dark-wood.png');
  border: 2px solid #8b6f47;
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 0 0 12px rgba(0,0,0,0.6);
  max-width: 800px;
  text-align: center;
}

.policy-intro-box p {
  font-family: 'Cinzel', serif;
  font-size: 1.2em;
  line-height: 1.6em;
  color: #e0c97f;
  margin: 0;
}

.policy-intro-box em {
  font-style: italic;
  color: #ffdf7f;
}


/* Grid of plaques */
.plaque-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 15px;
}
.plaque {
  background: #3b2a1f;
  border: 2px solid #8b6f47;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 1.25em;
  color: #e0c97f;
  cursor: pointer;
  transition: all 0.4s ease, opacity 0.4s ease;
  opacity: 1;
}
.plaque:hover {
  border-color: #ffdf7f;
  color: #ffdf7f;
  box-shadow: 0 0 10px rgba(255, 215, 128, 0.7);
}
.plaque .hidden-text {
  display: none;
  margin-top: 10px;
  font-size: 0.95em;
  line-height: 1.5;
  color: #f0e6d2;
  text-align: center;
}
.plaque.expanded {
  grid-column: 1 / -1; /* take full width */
  text-align: left;
}
.plaque.expanded .hidden-text {
  display: block;
}
.plaque.hidden { display: none; }

/* Back button styled like Show Less */
.back-btn {
  display: block;
  margin: 18px auto 0;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  cursor: pointer;
  color: #d4af37;
  text-align: center;
  user-select: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.back-btn::before { content: "--== "; color: #d4af37; }
.back-btn::after { content: " ==--"; color: #d4af37; }

.back-btn:hover {
  color: #ffdf7f;
}

.plaque.expanded .back-btn {
  opacity: 1;
}



/* === Footer === */
footer {
  background: #2b1f14 url('https://www.transparenttextures.com/patterns/dark-wood.png');
  border-top: 6px solid #8b6f47;
  padding: 20px;
  text-align: center;
  color: #c7a55d;
  font-family: 'Cinzel', serif;
  margin-top: auto;
}
