/* ═══════════════════════════════════════════════════════════════
   committee.css — Shared styles for all individual committee pages
   *.html
═══════════════════════════════════════════════════════════════ */

:root {
  --blue:      #1d4fa1;
  --blue-mid:  #2e69c9;
  --blue-lt:   #5b9bd5;
  --blue-pale: #ddeaf7;
  --dark:      #0f1b2d;
  --text:      #1a2640;
  --mid:       #4a5a7a;
  --muted:     #8899bb;
  --white:     #ffffff;
  --off:       #f5f7fa;
  --border:    #dde5f0;
  --nav-h:     64px;
  --accent:    #1d4fa1; /* overridden per-page with <style>:root{--accent:...}</style> */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--off); color: var(--text); overflow-x: hidden; }

/* ─── MAINTENANCE BANNER ─── */
.banner {
  background: var(--dark); color: var(--blue-lt); text-align: center;
  font-family: 'Inter', sans-serif; font-size: 0.75rem; font-style: italic;
  font-weight: 600; letter-spacing: 0.03em; padding: 16px;
}

/* ─── NAV ─── */
nav.sitenav {
  position: sticky; top: 0; z-index: 500; height: var(--nav-h);
  background: var(--white); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 28px; flex-shrink: 0; }
.nav-logo-mark { width: 38px; height: 38px; }
.nav-logo-text { font-family: 'Familjen Grotesk', serif; font-size: clamp(0.05rem, 3.5vw, 1.05rem); font-weight: 600; color: var(--text); line-height: 1.2; }
.nav-logo-text span { display: block; font-size: clamp(0.2rem, 3.5vw, 0.7rem); font-weight: 400; color: var(--muted); font-family: 'Inter', sans-serif; letter-spacing: 0.04em; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { display: block; padding: 7px 13px; font-size: 0.83rem; font-weight: 500; color: var(--mid); text-decoration: none; border-radius: 6px; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { background: var(--blue); color: var(--white); }

.has-drop { position: relative; }
.has-drop > a::after { content: ' ▾'; font-size: 0.6rem; opacity: 0.7; }
.drop { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: var(--white); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 32px rgba(0,0,0,0.1); min-width: 176px; padding: 6px; z-index: 300; }
.drop::before { content: ""; position: absolute; top: -20px; left: 0; width: 100%; height: 20px; background: transparent; }
.has-drop:hover .drop { display: block; }
.drop a { display: block; border-radius: 6px; font-size: 0.8rem; padding: 7px 12px; color: var(--mid); }
.drop a:hover { background: var(--blue-pale); color: var(--blue); }

.has-sidedrop { position: relative; }
.has-sidedrop > a::after { content: ' ▸'; font-size: 0.6rem; opacity: 0.7; }
.sidedrop { display: none; position: absolute; top: -200%; left: calc(100% + 8px); background: var(--white); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 32px rgba(0,0,0,0.1); min-width: 220px; padding: 10px; z-index: 500; white-space: normal; }
.has-sidedrop::after { content: ""; position: absolute; top: 0; left: 100%; width: 12px; height: 100%; background: transparent; pointer-events: auto; }
.has-sidedrop:hover .sidedrop { display: block; }
.sidedrop a { display: block; border-radius: 6px; font-size: 0.8rem; padding: 8px 12px; color: var(--mid); }
.sidedrop a:hover { background: var(--blue-pale); color: var(--blue); }

.nav-resources { margin-left: auto; display: flex; align-items: center; }
.nav-resources a { display: flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--blue-pale); color: var(--blue); font-size: 0.8rem; font-weight: 600; text-decoration: none; border-radius: 8px; border: 1px solid rgba(45,105,201,0.2); transition: background 0.15s, color 0.15s; white-space: nowrap; }
.nav-resources a:hover { background: var(--blue); color: var(--white); }

/* ─── COMMITTEE SUB-NAV ─── */
.comm-subnav-wrap { background: var(--white); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.comm-subnav-wrap::-webkit-scrollbar { display: none; }
.comm-subnav { display: flex; align-items: center; padding: 0 40px; white-space: nowrap; }
.comm-tab { display: inline-block; padding: 13px 14px; font-size: 0.8rem; font-weight: 600; color: var(--mid); text-decoration: none; border-bottom: 3px solid transparent; transition: color 0.15s, border-color 0.15s; }
.comm-tab:hover { color: var(--text); }
.comm-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ─── COMMITTEE HERO ─── */
.comm-hero { position: relative; height: 300px; overflow: hidden; background: var(--accent); }
.comm-hero img { width: 100%; height: 100%; object-fit: cover; display: block; object-fit: cover; object-position: center top;}

/* ─── INFO SECTION ─── */
.comm-info { background: var(--white); display: grid; grid-template-columns: 1fr 1.5fr; gap: 0; padding: 52px 60px; }
.comm-info-left { margin-right: 20px; }
.comm-info-left h1 { font-family: 'Familjen Grotesk', serif; font-size: 2.4rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; padding-bottom: 12px; border-bottom: 3px solid var(--accent); display: inline-block; margin-bottom: 20px; }
.comm-info-left .desc { font-size: 0.88rem; color: var(--mid); line-height: 1.75; margin-bottom: 20px; }
.comm-contact { font-size: 0.82rem; color: var(--mid); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.comm-contact .sep { opacity: 0.4; }
.comm-contact a { color: var(--accent); text-decoration: none; font-weight: 600; }
.comm-contact a:hover { text-decoration: underline; }
.admin-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; background: var(--off); border: 1px solid var(--border); border-radius: 8px; font-size: 0.78rem; font-weight: 600; color: var(--mid); text-decoration: none; margin-top: 20px; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.admin-btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

.comm-info-right { padding-left: 56px; border-left: 1px solid var(--border); }
.comm-info-right h2 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 18px; }
#resourceList { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.resource-item { display: flex; align-items: center; gap: 14px; }
.resource-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.resource-icon img { width: 40px; height: 40px; object-fit: contain; }
.resource-link { font-size: 0.88rem; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: rgba(0,0,0,0.2); transition: color 0.15s; }
.resource-link:hover { color: var(--accent); }
.resource-empty { font-size: 0.82rem; color: var(--muted); font-style: italic; }
.comm-resources-note { font-size: 0.8rem; color: var(--mid); line-height: 1.65; }
.comm-resources-note a { color: var(--accent); text-decoration: underline; }

/* ─── PEOPLE SECTION ─── */
.people-section { background: var(--off); padding: 52px 60px 72px; }
.people-layout { display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: start; }
.people-col-label { display: inline-block; background: var(--accent); color: var(--white); font-family: 'Familjen Grotesk', serif; font-size: 1.05rem; font-weight: 600; padding: 6px 18px; margin-bottom: 20px; }
#membersGrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.people-empty { font-size: 0.82rem; color: var(--muted); font-style: italic; padding: 12px 0; }

/* ─── PERSON CARD ─── */
.person-card { background: var(--white); border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.person-card-top { background: var(--accent); position: relative; aspect-ratio: 1 / 1; }
.person-card-top img.person-photo { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.person-shield-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 1; }
.person-shield-bg img { width: 100%; object-fit: contain; }
.person-firstname { font-family: 'Familjen Grotesk', serif; font-size: 0.88rem; font-weight: 700; color: var(--white); background: var(--accent); padding: 8px 10px; text-align: center;}
.person-card-bottom { padding: 8px 10px 10px; }
.person-lastname { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.person-role { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }

.person-card.coordinator { max-width: 240px; }
.person-card.coordinator .person-firstname { font-size: 1.3rem; }
.person-card.coordinator .person-card-bottom { padding: 12px 14px; }
.person-card.coordinator .person-lastname { font-size: 0.95rem; }
.person-card.coordinator .person-role { font-size: 0.8rem; }

/* ─── FOOTER ─── */
footer { background: var(--dark); color: rgba(255,255,255,0.55); padding: 48px 60px 40px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr 0.6fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p.pre { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 4px; }
.footer-brand h3 { font-family: 'Familjen Grotesk', serif; font-size: 1.25rem; font-weight: 600; color: var(--white); line-height: 1.25; margin-bottom: 14px; }
.footer-brand .desc { font-size: 0.76rem; line-height: 1.65; color: rgba(255,255,255,0.4); }
.footer-brand .desc a { color: rgba(255,255,255,0.55); text-decoration: underline; }
.footer-col h4 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.footer-col p, .footer-col address { font-size: 0.78rem; font-style: normal; color: rgba(255,255,255,0.4); line-height: 1.65; padding-right: 40px; }
.footer-col a { display: inline-flex; color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.78rem; margin-bottom: 5px; transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 20px; font-size: 0.72rem; color: rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: space-between; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .people-layout { grid-template-columns: 220px 1fr; gap: 40px; }
  #membersGrid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .comm-info { grid-template-columns: 1fr; padding: 36px 28px; }
  .comm-info-right { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 32px; margin-top: 32px; }
  .people-layout { grid-template-columns: 1fr; gap: 40px; }
  .people-section { padding: 40px 28px 60px; }
  #membersGrid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  nav.sitenav { padding: 0 16px; }
  .nav-links, .nav-resources { display: none; }
  .comm-hero { height: 200px; }
  .comm-hero img { object-position: left top; }
  .comm-info { padding: 28px 20px; }
  .comm-info-left h1 { font-size: 1.8rem; }
  #membersGrid { grid-template-columns: repeat(2, 1fr); }
  .people-section { padding: 28px 20px 48px; }
  .comm-subnav { padding: 0 16px; }
  footer { padding: 36px 24px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
