@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700&family=Nunito:wght@400;600;700&display=swap");

/* ---------------------------------------------------------------------
   IDC 2027 palette

   The five logo colours are FILLS and ACCENTS. On light backgrounds none
   of them pass contrast as body text -- use --ink instead. On the dark
   header and footer they become the text colours.
   --------------------------------------------------------------------- */

:root {
  --sky:   #a8d5dd;
  --moss:  #b7e5a6;
  --sun:   #fadc57;
  --orca:  #bba7df;
  --heart: #f4333a;
  --heart-deep: #c92027;
  --forest:     #2e6b44;   /* h3 */

  --deep-plum:  #5f156e;   /* footer: true purple */

  --shell: #eaf4f7;        /* page canvas: pale tint of --sky */
  --paper: #fdfbf6;        /* content cards */

  --ink:   #1e2b30;
  --link:  #4b2e83;

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

body {
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: .01em;
  line-height: 1.2;
}

h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--deep-teal);
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--forest);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--deep-plum);
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heart-deep);
}

h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-teal);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Centring */
.panel h1,
.panel h2,
.panel h3 {
  text-align: center;
}

.site-footer nav h5 {
  text-align: center;
}

.panel .text-start { text-align: left; }

a { color: var(--link); }
a:hover { color: var(--sky); }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

/* ------------------------------------------------------------- header */

:root {
  --forest: #2e6b44;   /* header */
  --peach:  #efa97a;   /* slogan */
}

.site-header {
  background: var(--forest);
  border-bottom: none;
}

.site-header .navbar-brand img { height: 78px; }

.site-header .tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--peach);
  margin-left: 1.25rem;
}

.site-header .nav-link {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: #fdfbf6;
  padding: .35rem .8rem;
  border-bottom: 3px solid transparent;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible {
  color: var(--sky);
  border-bottom-color: var(--peach);
}

.site-header .nav-link.active {
  color: #fdfbf6;
  border-bottom-color: var(--peach);
}h1

.site-header .social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1.75rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(253, 251, 246, .25);
}

.site-header .social-link {
  font-size: 1.4rem;
  padding: .25rem;
}
/* --------------------------------------------------------------- body */

main {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* Content sits on paper cards so the tinted canvas shows through
   between them. */
.panel {
  background: var(--paper);
  border-radius: 18px;
  padding: 2rem 2.25rem;
  margin-bottom: 1.75rem;
}

.panel-hero h1 {
  font-size: 3rem;
  margin-bottom: .25rem;
}

.panel-hero .dates {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--deep-plum);
  margin-bottom: 1.25rem;
}

.panel figure { margin: 1.5rem 0 0; }

.panel figure img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.panel figcaption {
  font-size: .875rem;
  color: #5a6b71;
  margin-top: .5rem;
}

/* Deadline table -------------------------------------------------- */

.deadlines {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .95rem;
}

.deadlines th {
  font-family: var(--font-display);
  font-weight: 600;
  text-align: left;
  background: var(--sky);
  color: var(--deep-teal);
  padding: .7rem .9rem;
}

.deadlines th:first-child { border-radius: 10px 0 0 0; }
.deadlines th:last-child  { border-radius: 0 10px 0 0; }

.deadlines td {
  padding: .7rem .9rem;
  border-bottom: 1px solid #e2e8ea;
  vertical-align: top;
}

.deadlines tbody tr:last-child td { border-bottom: none; }
.deadlines tbody tr:nth-child(even) { background: #f6faf3; }

.deadlines td:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.deadlines .is-next {
  background: var(--sun) !important;
  font-weight: 700;
}

.aoe-note {
  font-size: .825rem;
  color: #5a6b71;
  margin-top: .75rem;
}

/* ------------------------------------------------------------- footer */

.site-footer {
  background: var(--deep-plum);
  color: var(--paper);
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
  border-top: 5px solid var(--moss);
}

.site-footer .footer-brand {
  display: inline-block;
  line-height: 0;
}

.site-footer .footer-brand img {
  height: 110px;
  width: auto;
}

.site-footer .tagline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--sun);
  margin: 1rem 0 .25rem;
}

.site-footer .footer-meta {
  font-size: .9rem;
  color: rgba(253, 251, 246, .8);
}

.site-footer h5 {
  font-family: var(--font-display);
  color: var(--sun);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

.site-footer nav {
  text-align: center;
}

.site-footer .footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  text-align: center;
}

.site-footer .footer-list li { margin-bottom: .45rem; }

.site-footer a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(253, 251, 246, .35);
  text-underline-offset: 3px;
  font-size: .95rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--sun);
  text-decoration-color: var(--sun);
}

.site-footer .social-links {
  display: flex;
  gap: .85rem;
  margin-top: 1rem;
}

.site-footer .social-link {
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
}

.site-footer .social-link:hover { color: var(--sun); }

.site-footer .footer-bottom {
  border-top: 1px solid rgba(253, 251, 246, .25);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
}

.site-footer .footer-bottom p {
  font-size: .85rem;
  color: rgba(253, 251, 246, .8);
  margin-bottom: .25rem;
}

/* --------------------------------------------------------- responsive */

@media (max-width: 991px) {
  .site-header .navbar-brand img { height: 58px; }
  .site-header .tagline { font-size: 1.2rem; margin-left: .75rem; }
  .site-footer .footer-brand img { height: 84px; }
  .panel { padding: 1.5rem 1.25rem; }
  .panel-hero h1 { font-size: 2.2rem; }
}

/* ===================================================================
   Committee styling
   =================================================================== */

.page-title {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

/* ------------------------------------------------- committee groups */

.committee-group {
  margin-bottom: 1.5rem;
}

.committee-group h2 {
  color: var(--deep-plum);
  margin-bottom: .35rem;
}

.committee-email {
  font-size: .95rem;
  margin-bottom: 1.5rem;
}

.committee-tbd {
  color: #5a6b71;
  font-style: italic;
  margin: 0;
}

/* Up to 4 across, reflowing to 2 then 1. */
.committee-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
}

@media (min-width: 576px) {
  .committee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
  .committee-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.committee-person {
  text-align: center;
}

/* Circular crop normalises whatever people send you -- portrait,
   landscape, or square all end up the same size. */
.committee-photo {
  display: block;
  width: 148px;
  height: 148px;
  max-width: 100%;
  margin: 0 auto .85rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--sky);
  background: var(--shell);
}

.committee-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--deep-teal);
  background: var(--moss);
  border-color: var(--moss);
}

.committee-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--deep-teal);
  margin: 0 0 .1rem;
  line-height: 1.25;
}

.committee-name a {
  color: inherit;
  text-decoration: none;
}

.committee-name a:hover {
  color: var(--heart);
  text-decoration: underline;
}

.committee-affiliation {
  font-size: .9rem;
  color: #5a6b71;
  margin: 0;
  line-height: 1.35;
}

@media (max-width: 575px) {
  .committee-photo { width: 120px; height: 120px; }
  .page-title { font-size: 2.1rem; }
}