/* ============================================================
   IAU Meeting Template — Twenty Twenty Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Reset (exact Twenty Twenty reset) ── */
html, body { border: none; margin: 0; padding: 0; }
h1,h2,h3,h4,h5,h6,p,blockquote,address,big,cite,code,em,font,img,small,strike,sub,sup,
li,ol,ul,fieldset,form,label,legend,button,table,caption,tr,th,td {
  border: none; font-size: inherit; line-height: inherit; margin: 0; padding: 0; text-align: inherit;
}
blockquote::before, blockquote::after { content: ""; }

/* ── Document ── */
html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0s !important; transition-duration: 0s !important; } }

body {
  background: #f0f4f8;
  box-sizing: border-box;
  color: #000;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.8rem;
  letter-spacing: -0.015em;
  text-align: left;
}

*, *::before, *::after {
  box-sizing: inherit;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
  word-wrap: break-word;
}

#site-content { overflow: hidden; }

a, path { transition: all 0.15s linear; }

/* ── Screen reader ── */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; margin: -1px;
  overflow: hidden; padding: 0;
  position: absolute !important;
  width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #f1f1f1; border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
  clip: auto !important; clip-path: none;
  color: #21759b; display: block;
  font-size: 1.4rem; font-weight: 700;
  height: auto; left: 6px; top: 7px;
  line-height: normal; padding: 15px 23px;
  text-decoration: none; width: auto; z-index: 100000;
}

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  letter-spacing: -0.0415625em;
  line-height: 1.25;
  margin: 3.5rem 0 2rem;
}
h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.138888889; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.4rem; }
h4 { font-size: 2.4rem; }
h5 { font-size: 2.1rem; }
h6 { font-size: 1.6rem; letter-spacing: 0.03125em; text-transform: uppercase; }

p { line-height: 1.5; margin: 0 0 1em; }

a { color: #1a5276; text-decoration: underline; }
a:hover, a:focus { text-decoration: none; }

img { display: block; height: auto; max-width: 100%; }

ul, ol { margin: 0 0 3rem 3rem; }
ul { list-style: disc; }
ol { list-style: decimal; }
li { line-height: 1.5; margin: 0.5rem 0 0 2rem; }

.reset-list-style,
.reset-list-style ul,
.reset-list-style ol { list-style: none; margin: 0; }
.reset-list-style li { margin: 0; }

table {
  border: 0.1rem solid #c8d8e8;
  border-collapse: collapse;
  empty-cells: show;
  font-size: 1.6rem;
  margin: 4rem 0;
  max-width: 100%;
  width: 100%;
}
th, td { border: 0.1rem solid #c8d8e8; line-height: 1.4; padding: 0.6em 1em; overflow: visible; }
th { font-weight: 700; background: #d6eaf8; }
tr:nth-child(even) td { background: #eef5fb; }

blockquote {
  border-color: #1a5276; border-style: solid; border-width: 0 0 0 0.2rem;
  margin: 4rem 0; padding: 0.5rem 0 0.5rem 2rem;
}
cite { color: #6d6d6d; font-size: 1.4rem; font-weight: 600; line-height: 1.25; }

hr { border-style: solid; border-width: 0.1rem 0 0 0; border-color: #c8d8e8; margin: 4rem 0; }

/* ── Section helpers ── */
.section-inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 120rem;
  width: calc(100% - 4rem);
}
.section-inner.thin   { max-width: 58rem; }
.section-inner.small  { max-width: 80rem; }
.section-inner.medium { max-width: 100rem; }

/* ══════════════════════════════════════
   SITE HEADER
══════════════════════════════════════ */
#site-header {
  background: #fff;
  position: relative;
  border-bottom: 0.1rem solid #c8d8e8;
}

.header-inner {
  padding: 3.15rem 0;
  position: relative;
}

.header-titles-wrapper {
  align-items: center;
  display: flex;
  justify-content: flex-start;
  padding-right: 7rem; /* room for nav-toggle */
}

.header-titles {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

/* Logo */
.site-logo-link { display: block; text-decoration: none; flex-shrink: 0; }
.site-logo-link:hover { text-decoration: none; }
.site-logo-img { max-height: 6rem; width: auto; display: block; }

/* Site title + description */
.site-branding-text { display: flex; flex-direction: column; gap: 0.3rem; }

.site-title {
  font-size: 2.1rem; font-weight: 600; line-height: 1;
  margin: 0; letter-spacing: -0.0277em;
}
.site-title a { color: inherit; display: block; text-decoration: none; }
.site-title a:hover, .site-title a:focus { text-decoration: underline; }

.site-description {
  color: #6d6d6d; font-size: 1.5rem; font-weight: 500;
  margin: 0; letter-spacing: -0.0277em; line-height: 1.2;
}

/* Nav toggle (ellipsis + "Menu" text) */
.nav-toggle {
  position: absolute;
  bottom: 0; right: 0; top: 0;
  width: 6.6rem;
  background: none; border: none; box-shadow: none; border-radius: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  color: inherit;
}

.toggle-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.8rem;
}

.toggle-icon { display: block; overflow: hidden; }
.toggle-icon svg { display: block; }

.nav-toggle .toggle-icon svg { height: 0.8rem; width: 2.6rem; }

.toggle-text {
  color: #6d6d6d;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: absolute;
  top: calc(100% + 0.5rem);
  width: auto;
}

.nav-toggle:hover .toggle-text,
.nav-toggle:focus .toggle-text { text-decoration: underline; }

/* ── Banner image (below header, inner pages) ── */
.header-banner { position: relative; overflow: hidden; line-height: 0; }
.header-banner a { display: block; }
/* Subtle darkening overlay to match the home hero's mood */
.header-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}
.header-banner img {
  width: 100%; height: 200px;
  object-fit: cover; object-position: center 30%;
  display: block;
}

/* ── Homepage hero (Twenty Seventeen style) ── */
.site-hero {
  position: relative;
  min-height: 75vh;
  /* Lighter image by default; upgraded to full-res by JS on good connections */
  background-image: url(../assets/images/banner-low.jpg);
  background-size: cover;
  background-position: center bottom;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.good-bandwidth .site-hero {
  background-image: url(../assets/images/banner.jpg);
}

.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.25) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 4rem 2rem 5rem;
  width: 100%;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 auto 1.5rem;
  max-width: 80rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-tagline {
  font-size: 1.8rem;
  color: rgba(255,255,255,0.88);
  font-weight: 400;
  margin: 0 auto 2.5rem;
  max-width: 60rem;
  letter-spacing: -0.01em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-meta-item {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 3px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.8rem 1.8rem;
}

.hero-scroll-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  gap: 0.6rem;
  transition: color 0.15s;
}
.hero-scroll-down:hover, .hero-scroll-down:focus { color: #fff; text-decoration: none; }
.hero-scroll-down svg { display: block; }

/* Homepage navigation bar (below hero) */
.home-nav-bar {
  background: #fff;
  border-bottom: 0.1rem solid #c8d8e8;
}
.home-nav-bar nav { display: flex; justify-content: center; }
.home-nav-bar ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.home-nav-bar li { margin: 0; }
.home-nav-bar a {
  display: block;
  padding: 1.5rem 1.8rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.home-nav-bar a:hover, .home-nav-bar a:focus { color: #1a5276; border-bottom-color: #1a5276; }
.home-nav-bar li.current-menu-item > a { color: #1a5276; border-bottom-color: #1a5276; }

/* ══════════════════════════════════════
   MENU MODAL
══════════════════════════════════════ */
.menu-modal {
  background: #fff;
  display: none;
  opacity: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: fixed;
  bottom: 0; left: -99999rem; right: 99999rem; top: 0;
  transition: opacity 0.25s ease-in, left 0s 0.25s, right 0s 0.25s;
  z-index: 99;
}

.menu-modal.show-modal {
  display: flex;
  left: 0; right: 0;
  transition: opacity 0.25s ease-in;
}

.menu-modal.active {
  opacity: 1;
  transition: opacity 0.25s ease-out;
}

.menu-modal-inner {
  background: #fff;
  display: flex;
  justify-content: stretch;
  overflow: auto;
  width: 100%;
}

/* Override section-inner constraints inside the modal so everything
   shares the same side padding rather than fighting with breakout tricks */
.menu-modal .menu-wrapper.section-inner {
  max-width: 100%;
  width: 100%;
  padding-left: 3rem;
  padding-right: 3rem;
  padding-bottom: 5rem;
}

.menu-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.menu-top { flex-shrink: 0; }

/* Close button */
button.close-nav-toggle {
  align-items: center;
  display: flex;
  font-size: 1.6rem;
  font-weight: 500;
  justify-content: flex-end;
  padding: 3.5rem 0;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  letter-spacing: -0.015em;
  font-family: inherit;
}

button.close-nav-toggle svg {
  height: 1.8rem; width: 1.8rem;
  flex-shrink: 0; display: block;
}

button.close-nav-toggle .close-text {
  margin-right: 1.6rem;
  color: #000;
  font-size: 1.6rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: -0.015em;
}

button.close-nav-toggle:hover .close-text,
button.close-nav-toggle:focus .close-text { text-decoration: underline; }

/* Modal nav items — no longer need the full-bleed breakout hack */
.modal-menu { position: static; left: auto; width: auto; }

.modal-menu li {
  border-color: #dedfdf;
  border-style: solid;
  border-width: 0.1rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  line-height: 1;
  justify-content: flex-start;
  margin: 0;
}

.modal-menu li:last-child { border-bottom-width: 0.1rem; }

.modal-menu a {
  display: block;
  padding: 2.2rem 0;
  text-decoration: none;
  width: 100%;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.0375em;
  color: #000;
}

.modal-menu a:hover, .modal-menu a:focus { text-decoration: underline; }
.modal-menu li.current-menu-item > a { text-decoration: underline; color: #1a5276; }

/* ══════════════════════════════════════
   CONTENT
══════════════════════════════════════ */

/* Entry header (page title area) */
.entry-header {
  background: #fff;
  padding: 4rem 0 3rem;
}

.entry-header-inner { display: flex; flex-direction: column; }

.entry-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.138888889;
  letter-spacing: -0.0415625em;
  margin: 0;
}

/* Post body */
.post-inner { padding: 3rem 0 6rem; }

.entry-content { line-height: 1.5; }
.entry-content > * { margin-left: auto; margin-right: auto; margin-bottom: 1.25em; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content a:hover, .entry-content a:focus { text-decoration: none; }
.entry-content p, .entry-content li { line-height: 1.4; }
.entry-content p { text-align: justify; }
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 { margin: 3.5rem auto 2rem; }

/* Sub-heading within a heading (smaller second line) */
.subheading {
  display: inline-block;
  font-size: 0.8em;
  font-weight: 400;
  opacity: 0.8;
}

/* Home intro */
.home-content-inner { padding: 4rem 0 6rem; }
.home-content-inner .entry-title { font-size: 3.2rem; }

/* Placeholder markers */
.placeholder-notice {
  background: #eaf2f8;
  border-left: 0.3rem solid #1a5276;
  padding: 1.2rem 1.8rem;
  margin-bottom: 3rem;
  font-style: italic;
  color: #555;
  font-size: 1.6rem;
}

.placeholder {
  display: inline-block;
  background: #d6eaf8;
  border: 1px dashed #1a5276;
  border-radius: 2px;
  padding: 0 0.4rem;
  font-size: 0.9em;
  color: #154360;
  font-style: normal;
}

/* Person card grid */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.person-card { border: 0.1rem solid #c8d8e8; padding: 1.5rem 2rem; }
.person-card .role {
  font-size: 1.2rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: #1a5276; margin: 0 0 0.5rem;
}
.person-card .name { font-size: 1.6rem; font-weight: 700; margin: 0 0 0.3rem; letter-spacing: -0.025em; }
.person-card .affiliation { font-size: 1.4rem; color: #6d6d6d; margin: 0; }

/* Schedule */
.schedule-day { margin-bottom: 4rem; }
.schedule-day h3 { font-size: 2rem; font-weight: 700; margin: 0 0 0; background: #1a1a1a; color: #fff; padding: 0.75rem 1rem; letter-spacing: -0.02em; }

/* ══════════════════════════════════════
   SITE FOOTER
══════════════════════════════════════ */
#site-footer {
  background-color: #fff;
  border-top: 0.1rem solid #dedfdf;
  padding: 3rem 0;
  font-size: 1.6rem;
  margin-top: 5rem;
}

#site-footer .section-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

#site-footer a { text-decoration: none; color: inherit; }
#site-footer a:hover, #site-footer a:focus { text-decoration: underline; }

.footer-credits { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-copyright { font-weight: 600; margin: 0; }
.footer-iau { color: #6d6d6d; margin: 0; }
.footer-credit { color: #6d6d6d; margin: 0; font-size: 1.3rem; }

.to-the-top { color: #6d6d6d; text-decoration: none; white-space: nowrap; }
.to-the-top:hover, .to-the-top:focus { text-decoration: underline; color: #6d6d6d; }

/* ══════════════════════════════════════
   RESPONSIVE — min-width: 700px
══════════════════════════════════════ */
@media (min-width: 700px) {
  .section-inner { width: calc(100% - 8rem); }

  h1 { font-size: 4.8rem; }
  h2 { font-size: 4rem; }
  h3 { font-size: 3.2rem; }
  h4 { font-size: 3.2rem; }
  h5 { font-size: 2.4rem; }
  h6 { font-size: 1.8rem; }
  h1, h2, h3 { margin: 6rem auto 3rem; }
  h4, h5, h6 { margin: 4.5rem auto 2.5rem; }

  .header-inner { padding: 3.8rem 0; }
  .site-title { font-size: 2.4rem; font-weight: 700; }
  .site-logo-img { max-height: 9rem; transition: height .15s linear, max-height .15s linear; }

  .toggle-text { font-size: 1.2rem; }
  .nav-toggle { right: 2rem; }

  .menu-modal .menu-wrapper.section-inner { padding-left: 6rem; padding-right: 6rem; }

  button.close-nav-toggle { font-size: 1.8rem; padding: 4rem 0; }
  button.close-nav-toggle svg { height: 2rem; width: 2rem; }
  button.close-nav-toggle .close-text { margin-right: 2.1rem; }

  .modal-menu a { font-size: 2.4rem; padding: 2.5rem 0; }

  .entry-header { padding: 8rem 0 5rem; }
  .entry-title { font-size: 4.8rem; }
  .post-inner { padding: 8rem 0; }
  .home-content-inner { padding: 8rem 0; }
  .home-content-inner .entry-title { font-size: 4.8rem; }

  .header-banner img { height: 280px; }

  .hero-title { font-size: 5.2rem; }
  .hero-tagline { font-size: 2rem; }
  .hero-meta-item { font-size: 1.6rem; }
  .home-nav-bar a { padding: 1.6rem 2rem; font-size: 1.4rem; }
}

/* On large screens, make the banner taller and anchor the crop to the
   bottom so the earth/horizon part of the photo is in shot. */
@media (min-width: 1100px) {
  .header-banner img { height: 460px; object-position: center bottom; }
}
