/* ============================================================
   Mike Hudson — Halcyonic-styled version
   Recreating the visual feel of HTML5 UP's Halcyonic template
   (https://html5up.net/halcyonic, CC BY 3.0).
   ============================================================ */

:root {
  --bg:        #1d2426;
  --bg-alt:    #232b2e;
  --bg-card:   #2a3438;
  --bg-banner: #4794a0;
  --text:      #d8dde1;
  --text-dim:  #9aa3a8;
  --heading:   #ffffff;
  --accent:    #5fb4c4;
  --accent-2:  #82c8d4;
  --rule:      rgba(255,255,255,0.08);
  --serif:     "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --sidebar-w: 26rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 20px;       /* base ~121% of the previous 16.5px; all rem sizes scale automatically */
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5 {
  color: var(--heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.4em;
  line-height: 1.25;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 2.0rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1rem; letter-spacing: 0.18em; text-transform: uppercase; }

.subhead {
  color: var(--accent-2);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin: -0.6em 0 1.2em;
}

p { margin: 0 0 1.2em; }
strong, b { color: var(--heading); font-weight: 600; }

/* ---------- Links ---------- */
a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px dotted rgba(130,200,212,0.35);
  transition: color .15s, border-color .15s;
}
a:hover {
  color: var(--heading);
  border-bottom-color: var(--heading);
}

/* ---------- Layout: main left, sidebar right ---------- */
#wrapper {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}
#main {
  flex: 1;
  min-width: 0;
  background: var(--bg);
}
#sidebar {
  width: var(--sidebar-w);
  background: var(--bg-alt);
  border-left: 1px solid var(--rule);
  padding: 4rem 3rem;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
}

/* ---------- Sidebar ---------- */
.sidebar-logo {
  margin-bottom: 2.5rem;
}
.sidebar-logo a {
  color: var(--heading);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  display: block;
}
.sidebar-logo span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  font-weight: 400;
}

.sidebar-section { margin-bottom: 2.5rem; }
.sidebar-section h4 {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { margin: 0; }
.sidebar-nav a {
  display: block;
  padding: 0.55rem 0;
  border: 0;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--rule);
}
.sidebar-nav a:hover {
  color: var(--heading);
  padding-left: 6px;
}
.sidebar-nav li:last-child a { border-bottom: 0; }
.sidebar-nav li.indent a { padding-left: 1.5rem; font-size: 0.88rem; color: var(--text-dim); }
.sidebar-nav li.indent a:hover { color: var(--heading); padding-left: calc(1.5rem + 6px); }

.sidebar-contact div {
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}
.sidebar-contact .label {
  color: var(--text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 0.8rem;
}

.sidebar-footer {
  font-size: 0.78rem;
  color: var(--text-dim);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.sidebar-footer a { color: var(--text-dim); }

/* ---------- Banner / Hero ---------- */
.banner {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(29,36,38,0.55), rgba(71,148,160,0.35)),
    radial-gradient(circle at 30% 40%, #1c3a44 0%, #0b1416 70%);
  overflow: hidden;
  padding: 6rem 3rem;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(white 1px, transparent 1px),
    radial-gradient(white 0.6px, transparent 0.6px);
  background-size: 80px 80px, 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.08;
  pointer-events: none;
}
.banner-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.banner h1 {
  font-size: 3.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}
.banner .subhead {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  margin: 0 0 2rem;
  letter-spacing: 0.06em;
  font-style: normal;
  text-transform: uppercase;
  font-weight: 500;
}
.banner p.lede {
  color: rgba(255,255,255,0.95);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* Compact variant used on the home page (no Learn More button). */
.banner--compact {
  min-height: 0;
  padding: 1.8rem 3rem;
}
.banner--compact h1 {
  font-size: 2.4rem;
  margin-bottom: 0.1rem;
}
.banner--compact .subhead {
  margin: 0;
}

.button {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.button:hover {
  background: #fff;
  color: var(--bg);
  border-color: #fff;
}
.button.alt {
  border-color: var(--accent);
  color: var(--accent-2);
}
.button.alt:hover { background: var(--accent); color: #fff; }

/* ---------- Section wrappers ---------- */
section.wrapper {
  padding: 5rem 4rem;
  border-bottom: 1px solid var(--rule);
}
section.wrapper.style-alt { background: var(--bg-alt); }
section.wrapper.style-feature {
  background: var(--bg-banner);
  color: #fff;
}
section.wrapper.style-feature h2,
section.wrapper.style-feature h3,
section.wrapper.style-feature h4 { color: #fff; }
section.wrapper.style-feature a {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.4);
}
section.wrapper.style-feature a:hover { border-bottom-color: #fff; }

.wrapper > .inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Spotlight (image + text row) ---------- */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: center;
}
.spotlight.reverse {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.spotlight.reverse .spotlight-image { order: 2; }
.spotlight-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ---------- Features grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.feature {
  text-align: center;
}
.feature .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--accent-2);
  font-size: 1.8rem;
  border: 1px solid rgba(255,255,255,0.15);
}
section.style-feature .feature .icon {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.feature h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.feature p { font-size: 0.95rem; margin: 0; }

/* ---------- Card grid (members, links) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.4rem 1.6rem;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h4 {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 0.3rem;
  color: var(--heading);
}
.card h4 a { color: var(--heading); border: 0; }
.card h4 a:hover { color: var(--accent-2); }
.card .role {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
  letter-spacing: 0.04em;
}

/* Card variant with a logo / image header */
.card.with-image {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card.with-image .card__img {
  background: #e8e8ea;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--rule);
  height: 110px;          /* fixed so the image cell can't grow with the image */
  box-sizing: border-box;
  overflow: hidden;       /* belt-and-braces clip in case the rule above is overridden */
}
.card.with-image .card__img img {
  max-height: 100%;       /* fit within the 110px cell (minus padding) */
  max-width: 100%;        /* never spill out horizontally */
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;    /* preserve aspect ratio inside the box */
}
.card.with-image .card__body {
  padding: 1.2rem 1.4rem 1.4rem;
}

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.92rem;
  background: var(--bg-card);
}
th, td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th {
  background: rgba(0,0,0,0.2);
  color: var(--accent-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
}
tr:last-child td { border-bottom: 0; }

/* ---------- Figure + text row (side-by-side) ---------- */
.figure-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 0 0 1.5rem;
  flex-wrap: wrap;
}
.figure-row > figure {
  flex: 0 0 300px;
  max-width: 300px;
  margin: 0;
}
.figure-row > figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  background: #fff;
}
.figure-row > figure figcaption {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.4rem;
  line-height: 1.4;
}
.figure-row > .figure-body {
  flex: 1;
  min-width: 200px;
}
.figure-row > .figure-body > p:last-child { margin-bottom: 0; }
.figure-row.reverse > figure       { order: 2; }
.figure-row.reverse > .figure-body { order: 1; }
@media (max-width: 600px) {
  .figure-row > figure { flex: 0 0 100%; max-width: 100%; }
}

/* ---------- Image utilities ---------- */
.image.fit { width: 100%; }
.image.fit img { width: 100%; height: auto; display: block; border-radius: 4px; }
.image-frame {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
}
.image-frame img { width: 100%; display: block; }

/* ---------- News timeline ---------- */
.news-item {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--rule);
}
.news-item:last-child { border-bottom: 0; }
.news-item .date {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.news-item h3 { margin: 0 0 0.6rem; font-size: 1.25rem; }
.news-item h3 a { color: var(--heading); border: 0; }
.news-item h3 a:hover { color: var(--accent-2); }

/* ---------- Bullet lists ---------- */
ul.styled {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}
ul.styled li {
  padding: 0.6rem 0 0.6rem 1.6rem;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
ul.styled li:last-child { border-bottom: 0; }
ul.styled li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Footer ---------- */
.copyright {
  text-align: center;
  padding: 2rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top: 1px solid var(--rule);
}

/* ---------- Mobile hamburger nav ---------- */
.nav-toggle {
  display: none;
  position: fixed;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 100;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform .2s ease, opacity .15s ease;
}
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 90;
  opacity: 0;
  transition: opacity .2s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --sidebar-w: 22rem; }
  section.wrapper { padding: 4rem 3rem; }
}
@media (max-width: 900px) {
  /* Hamburger button visible */
  .nav-toggle { display: flex; }

  /* Main column fills the screen; sidebar becomes an overlay */
  #wrapper { flex-direction: column; }
  #main { width: 100%; }

  #sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(22rem, 88vw);
    max-width: none;
    height: 100vh;
    z-index: 95;
    padding: 4.5rem 2rem 2rem;
    border-left: 1px solid var(--rule);
    border-top: 0;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }

  body.nav-open #sidebar { transform: translateX(0); }
  body.nav-open .nav-backdrop { display: block; opacity: 1; }
  body.nav-open { overflow: hidden; }

  /* Hamburger morphs to ✕ when open */
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .spotlight, .spotlight.reverse {
    grid-template-columns: 1fr;
  }
  .spotlight.reverse .spotlight-image { order: 0; }
  .banner { min-height: 50vh; padding: 4rem 2rem; }
  .banner h1 { font-size: 2.4rem; }
  section.wrapper { padding: 3.5rem 2rem; }
}
@media (max-width: 500px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .banner h1 { font-size: 2rem; }
}
