:root {
  --ink: #1f2937;
  --muted: #5f6b7a;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --line: #d9e0e8;
  --red: #b91c1c;
  --red-strong: #991b1b;
  --blue: #1e5f8f;
  --teal: #14756f;
  --shadow: 0 10px 28px rgba(31, 41, 55, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0;
  background: #ffffff;
}

.logo-masthead {
  display: grid;
  place-items: center;
  padding: 6px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.logo-masthead a {
  display: block;
  width: min(720px, 100%);
}

.logo-masthead img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  background: #ffffff;
  border-bottom: 1px solid #d9e0e8;
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 132px;
  text-decoration: none;
  color: var(--red-strong);
  font-weight: 900;
}

.brand-mark {
  font-size: 1.35rem;
  letter-spacing: 0;
}

.brand-text {
  color: var(--ink);
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  flex: 0 1 min(1220px, 100%);
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-links a,
.nav-group > a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 16px;
  color: #5d6670;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-group:hover > a {
  color: #1f2937;
  background: #f2f4f6;
  text-decoration: none;
}

.nav-group {
  position: relative;
  display: inline-flex;
}

.nav-group > a::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 244px;
  padding: 8px 0;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.18);
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  display: grid;
}

.nav-menu a {
  width: 100%;
  padding: 9px 13px;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .nav-shell {
    width: min(1180px, calc(100% - 32px));
  }

  .brand {
    min-width: 118px;
  }

  .nav-links a,
  .nav-group > a {
    padding: 8px 7px;
    font-size: 0.82rem;
  }

  .nav-group > a::after {
    margin-left: 5px;
  }

  .committee-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 8px;
  }
}

.hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: 128px 20px 56px;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(16, 24, 39, 0.44), rgba(16, 24, 39, 0.74)),
    var(--hero-image) center / cover no-repeat;
}

.home-hero {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: end center;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(7, 36, 61, 0.08), rgba(7, 36, 61, 0.28)),
    var(--hero-image) center / cover no-repeat;
}

.hero-caption {
  width: min(860px, calc(100% - 44px));
  padding: 0 0 28px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.62);
}

.hero-caption h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.16;
  font-weight: 800;
}

.hero-caption p {
  margin: 7px 0 0;
  font-size: 1.08rem;
  font-weight: 750;
}

.page-hero {
  min-height: 46vh;
  display: grid;
  place-items: center;
  padding: 70px 20px 54px;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(16, 24, 39, 0.52), rgba(16, 24, 39, 0.82)),
    var(--hero-image) center / cover no-repeat;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 46px;
  width: min(1180px, calc(100% - 48px));
  margin: 72px auto 34px;
  align-items: start;
}

.home-main {
  display: grid;
  gap: 28px;
}

.content-block {
  background: #ffffff;
}

.content-block h1 {
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  color: #2d2f33;
  font-size: clamp(1.3rem, 2.1vw, 1.72rem);
  line-height: 1.18;
  font-weight: 800;
}

.content-block h2 {
  margin: 0 0 14px;
  color: #2f3338;
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  line-height: 1.2;
}

.content-block h3 {
  margin: 0 0 7px;
  color: #2f3338;
  font-size: 1rem;
}

.content-block p {
  color: #3f4650;
  font-size: 0.96rem;
}

.content-block li {
  font-size: 0.96rem;
}

.home-sidebar {
  display: grid;
  gap: 22px;
}

.side-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #c5d8ea;
  border-radius: 4px;
}

.side-card h2 {
  margin: 0;
  padding: 11px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #d6e3ef;
  color: #256192;
  font-size: 1rem;
}

.side-card p {
  margin: 0;
  padding: 13px 14px 16px;
  color: #5d6670;
  font-size: 0.94rem;
  line-height: 1.48;
}

.track-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 13px 14px 16px 30px;
  color: #5d6670;
  font-size: 0.94rem;
  line-height: 1.35;
}

.side-card-blue {
  border-color: #2e83c2;
}

.side-card-blue h2 {
  background: #2e83c2;
  color: #ffffff;
}

.side-card-soft {
  border-color: #f0dfb7;
}

.side-card-soft h2 {
  background: #fff7df;
  color: #8b6a28;
}

.attending-list {
  display: grid;
  gap: 16px;
}

.attending-list article {
  padding: 16px 18px;
  border-left: 5px solid #2e83c2;
  background: #f8fbfd;
}

.compact-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  font-weight: 950;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.44);
}

.hero-inner {
  width: min(1040px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  font-weight: 800;
  color: #ffd7d7;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 1.02;
  font-weight: 950;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.44);
}

.hero h1 span {
  color: #ff4b4b;
}

.hero .subtitle {
  width: min(820px, 100%);
  margin: 22px auto 0;
  font-size: clamp(1.15rem, 2.4vw, 1.8rem);
  font-weight: 800;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.5);
}

.hero .meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero .meta span {
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 18px auto;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section h2 {
  margin: 0 0 14px;
  color: var(--red-strong);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.section h3 {
  margin: 22px 0 8px;
  color: #263244;
}

.lead {
  font-size: 0.98rem;
  color: #3b4657;
}

.notice {
  padding: 15px 17px;
  margin: 14px 0;
  border-left: 6px solid var(--blue);
  background: #eaf3fb;
  color: #1f405d;
  font-size: 0.94rem;
  font-weight: 650;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.link-grid a {
  display: block;
  padding: 16px 18px;
  color: var(--blue);
  background: #eef6fb;
  border: 1px solid #b8d3e7;
  font-weight: 850;
  text-decoration: none;
}

.link-grid a::before {
  content: "->";
  margin-right: 8px;
  color: var(--red);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  min-height: 146px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fbfcfd;
}

.tile strong {
  display: block;
  margin-bottom: 8px;
  color: var(--red-strong);
  font-size: 1.05rem;
}

.date-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.date-list li {
  display: grid;
  grid-template-columns: minmax(130px, 190px) 1fr;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: #fbfcfd;
}

.date-list time {
  color: var(--red-strong);
  font-weight: 850;
}

.section-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 850;
  text-transform: uppercase;
}

.visa-section {
  margin-top: 34px;
}

.visa-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.visa-card {
  padding: 18px;
  border: 1px solid #c5d8ea;
  background: #fbfdff;
}

.visa-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  background: #2e83c2;
  color: #ffffff;
  font-weight: 900;
}

.visa-country-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  padding-left: 1.1rem;
  margin: 14px 0;
  font-weight: 800;
}

.visa-checklist li {
  margin: 10px 0;
}

.visa-source {
  margin-top: 26px;
  padding: 22px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.program-placeholder {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 24px;
  align-content: center;
  color: #29404f;
  background:
    linear-gradient(135deg, rgba(30, 95, 143, 0.1), rgba(185, 28, 28, 0.09)),
    #fbfcfd;
  border: 1px dashed #aab8c6;
}

.program-placeholder strong {
  color: var(--red-strong);
  font-size: 1.18rem;
}

.clean-list {
  padding-left: 1.1rem;
}

.clean-list li {
  margin: 8px 0;
}

.about-strip {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
}

.committee-section h3 {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--red-strong);
  font-size: 1.3rem;
}

.committee-section h3:first-of-type {
  margin-top: 22px;
}

.committee-section {
  width: min(1280px, calc(100% - 48px));
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.committee-grid.one-card {
  grid-template-columns: minmax(0, 240px);
}

.person-card {
  min-height: 290px;
  padding: 16px 14px 18px;
  text-align: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
}

.person-card img {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto 14px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(31, 41, 55, 0.12);
  background: #ffffff;
}

.person-card h4 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.25;
}

.person-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.speaker {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  background: #eef2f5;
  border: 1px solid var(--line);
  color: var(--red-strong);
  font-weight: 900;
  font-size: 1.35rem;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  background: var(--red);
  color: #ffffff;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid var(--red-strong);
}

.button.secondary {
  color: var(--blue);
  background: #eef6fb;
  border-color: #b8d3e7;
}

.site-footer {
  margin-top: 28px;
  background: #ffffff;
  color: #111827;
  border-top: 1px solid var(--line);
}

.footer-branding {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 16px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.footer-logo-ieee {
  display: block;
  width: 150px;
  height: auto;
}

.footer-logo-sps {
  display: block;
  width: 168px;
  height: auto;
}

.footer-copyright {
  margin: 0;
  flex: 1 1 auto;
  color: #111827;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.35;
}

.footer-branding > a {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.photo-credit {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 18px;
  color: #6b3a3a;
  font-size: 0.78rem;
  text-align: center;
}

.photo-credit a {
  color: inherit;
}

.footer-host {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 4px;
  color: #263244;
  text-align: left;
}

.footer-host img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-host span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  text-transform: uppercase;
}

.footer-host strong {
  display: block;
  color: #1f2937;
  font-size: 0.8rem;
  line-height: 1.32;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    padding: 0;
  }

  .nav-shell {
    width: 100%;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a,
  .nav-group > a {
    padding: 8px 9px;
  }

  .nav-group {
    display: block;
  }

  .nav-menu {
    position: static;
    min-width: 100%;
    box-shadow: none;
    margin-bottom: 4px;
  }

  .hero {
    min-height: 76vh;
    padding-top: 72px;
  }

  .page-hero {
    min-height: 34vh;
    padding-top: 72px;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 22px 18px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .home-grid {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 1180px);
    margin-top: 38px;
    gap: 30px;
  }

  .home-hero {
    min-height: 340px;
  }

  .content-block h1 {
    font-size: clamp(1.15rem, 4.2vw, 1.45rem);
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .visa-card-grid,
  .visa-country-list {
    grid-template-columns: 1fr;
  }

  .committee-grid,
  .committee-grid.one-card {
    grid-template-columns: 1fr;
  }

  .person-card {
    min-height: 0;
  }

  .date-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .speaker {
    grid-template-columns: 1fr;
  }

  .footer-branding {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-logos {
    gap: 16px;
    flex-wrap: wrap;
  }

  .footer-host {
    text-align: left;
  }
}
