@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Source+Serif+4:ital,opsz,wght@0,8..60,400..800;1,8..60,400..800&display=swap');

:root {
  --navy: #002855;        /* IEEE ComSoc Dark Blue */
  --navy-soft: #003e7e;   /* IEEE ComSoc Soft Dark */
  --comsoc-blue: #00629b; /* Official IEEE Brand Blue */
  --comsoc-light: #0073ae;/* Bright ComSoc Accent */
  --comsoc-cyan: #00a3e0; /* ComSoc Cyan Accent */
  --line: #cbd5e1;        /* Crisp slate border */
  --text: #1e293b;        /* Deep slate text */
  --muted: #475569;       /* Slate muted text */
  --link: #00629b;        /* IEEE Blue links */
  --link-hover: #003a5d;  /* Darker link hover */
  --bg-page: #f8fafc;     /* Clean academic background */
  --bg-subtle: #f1f5f9;   /* Subtle academic panel background */
  --page-max: 1120px;
  --sidebar-width: 300px;
  /* Prestigious Academic Serif Stack */
  --font-academic: 'Source Serif 4', 'EB Garamond', 'Times New Roman', Times, 'Cambria', Georgia, serif;
  --font-heading: 'EB Garamond', 'Source Serif 4', 'Times New Roman', Times, Georgia, serif;
  /* Dark Gradient Accent Borders */
  --dark-gradient-v: linear-gradient(180deg, #00142e 0%, #002855 50%, #00457c 100%);
  --dark-gradient-h: linear-gradient(90deg, #00142e 0%, #002855 50%, #00457c 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  min-height: 100%;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-academic);
  font-size: 16.5px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.2px;
  font-weight: 700;
}

a {
  color: var(--link);
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

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

img,
object {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#site-navigation-placeholder {
  display: contents;
}

#announcement-placeholder {
  display: block;
}

/* Sidebar */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  overflow-y: auto;
  background: var(--navy);
  color: #ffffff;
  padding: 28px 22px;
  border-right: 1px solid rgba(0, 98, 155, 0.3);
}

.sidebar-brand {
  display: block;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 15.5px;
  line-height: 1.35;
  text-decoration: none;
  border-bottom: 2px solid var(--comsoc-light);
  padding-bottom: 12px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.sidebar-brand:hover,
.sidebar-brand:focus {
  color: #ffffff;
  text-decoration: none;
  border-bottom-color: #60a5fa;
}

.sidebar-brand:hover span,
.sidebar-brand:focus span {
  color: #e0f2fe;
}

.sidebar-brand:hover strong,
.sidebar-brand:focus strong {
  color: #93c5fd;
}

.sidebar-brand span {
  display: inline;
  font-size: inherit;
  letter-spacing: 0.25px;
  line-height: inherit;
}

.sidebar-brand strong {
  display: inline;
  margin-top: 0;
  font-size: inherit;
  font-family: inherit;
  font-weight: 700;
  color: #ffffff;
  border-bottom: none;
  padding-bottom: 0;
  letter-spacing: 0.25px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.sponsor-group {
  margin: 16px 0 12px;
  padding: 12px 10px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sponsor-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.logo-tile {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 4px;
}

.logo-tile img {
  display: block;
  width: auto;
  max-height: 44px;
  mix-blend-mode: screen;
}

.logo-tile img[src*="stevens_logo.svg"] {
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  filter: none !important;
}

.logo-tile.wide {
  margin-top: 10px;
}

.logo-tile.wide img {
  max-height: 160px;
  mix-blend-mode: normal;
}

.sponsor-caption {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-family: var(--font-academic);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.site-nav ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li:not(:first-child) a {
  margin-top: -1px;
}

.site-nav a {
  display: flex;
  min-height: 38px;
  align-items: center;
  color: #ffffff;
  font-family: var(--font-academic);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  position: relative;
  z-index: 1;
  color: var(--navy);
  background: #ffffff;
  border-color: #ffffff;
  font-weight: 700;
}

.site-nav a:focus-visible {
  outline: 2px solid var(--comsoc-light);
  outline-offset: 2px;
  position: relative;
  z-index: 2;
}

.mobile-header {
  display: none;
}

.page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin-left: var(--sidebar-width);
  background: #ffffff;
}

.site-main {
  flex: 1 0 auto;
}

/* Masthead with Updated 2027 NYC Backdrop */
.masthead {
  border-bottom: 2px solid var(--comsoc-blue);
  background:
    linear-gradient(rgba(0, 36, 78, 0.96), rgba(0, 75, 130, 0.94)),
    url("../../gallery/nyc-skyline.jpg?v=20270905") center center / cover no-repeat;
  padding: 18px 24px 16px;
  text-align: center;
  color: #ffffff;
}

.masthead h1 {
  max-width: 1040px;
  margin: 0 auto 5px;
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: 0.25px;
}

.masthead p {
  margin: 3px auto;
  font-family: var(--font-academic);
  font-weight: 600;
  font-size: 15.5px;
  color: #f1f5f9;
  line-height: 1.35;
}

.masthead .masthead-meta {
  color: #ffffff;
  font-size: 16px;
  margin: 3px auto;
}

.masthead .masthead-sponsor,
.masthead p:last-child {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 0;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-bottom: 3px solid var(--comsoc-blue);
}

.content {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 38px 42px 52px;
}

.content.narrow {
  max-width: 980px;
}

.content h2 {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: 29px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--navy);
  border-bottom: 2px solid var(--comsoc-blue);
  padding-bottom: 8px;
}

.content h3 {
  margin: 32px 0 12px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.32;
  color: var(--navy-soft);
}

.content h4 {
  margin: 22px 0 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--comsoc-blue);
}

.content p,
.content ul,
.content ol {
  margin-top: 0;
  margin-bottom: 16px;
}

.content ul,
.content ol {
  padding-left: 26px;
}

.lead {
  font-size: 18px;
  text-align: justify;
  line-height: 1.75;
}

.centered {
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 28px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.important-dates table {
  font-size: 17px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap table {
  min-width: 520px;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg-subtle);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  border-bottom: 2px solid var(--line);
}

td {
  font-family: var(--font-academic);
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #f8fafc;
}

/* Main Body Layout (Desktop 2-column layout when announcements are present) */
.main-body-wrap {
  width: 100%;
  max-width: 1600px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 36px 40px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.main-body-wrap > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.main-body-wrap > .content {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

#announcement-placeholder {
  display: block;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Announcements Sidebar Panel */
.announcement-block {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 24px;
  overflow: hidden;
}


.announcement-inner,
.announcement-block .content {
  padding: 16px 16px 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
}

.announcement-block h2 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: none;
  padding-bottom: 0;
}

.announcement-table,
.announcement-block table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  border: 1px solid var(--line) !important;
  box-sizing: border-box !important;
  font-size: 13.5px;
  line-height: 1.42;
}

.announcement-table td {
  padding: 9px 10px;
  border: 1px solid var(--line);
  box-sizing: border-box;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.announcement-table tr:last-child td,
.announcement-block table tr:last-child td {
  border-bottom: 1px solid var(--line) !important;
}

.announcement-table td:first-child {
  width: 86px;
  max-width: 86px;
  min-width: 86px;
  color: var(--navy);
  font-family: var(--font-academic);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  background: var(--bg-subtle);
}

.announcement-table td:last-child {
  width: auto;
  font-size: 13.5px;
  line-height: 1.45;
}

.announcement-table tbody tr:hover {
  background: #f8fafc;
}

@media (max-width: 1180px) {
  .main-body-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px 40px;
  }

  .announcement-block {
    position: static;
  }
}

.date-list {
  display: grid;
  gap: 10px;
  padding-left: 24px;
}

.date-list li {
  font-size: 16.5px;
}

/* People / Committee */
.people-section {
  display: grid;
  gap: 30px;
  margin-top: 20px;
}

.people-group h3 {
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.people-group p {
  margin-bottom: 8px;
}

.people-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 34px;
}

.person {
  min-width: 0;
  line-height: 1.45;
  padding: 4px 0;
}

.person strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
}

.person strong a {
  color: var(--text);
  text-decoration: none;
}

.person strong a:hover {
  color: var(--comsoc-blue);
  text-decoration: underline;
}

.person span {
  display: block;
  color: var(--muted);
  font-size: 15px;
}

.topic-list > li {
  margin-bottom: 16px;
}

.speaker {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 26px;
  align-items: start;
  margin: 22px 0 42px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
}

.speaker-photo {
  display: block;
  width: 190px;
  height: 230px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.speaker h3 {
  margin-top: 0;
}

.speaker-title {
  color: var(--muted);
  font-weight: 700;
}

.sponsorship-level {
  position: relative;
  margin-bottom: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  overflow: hidden;
}

.sponsorship-level:last-of-type {
  margin-bottom: 14px;
}

.sponsorship-level h3 {
  margin: 0 0 2px;
  font-size: 20px;
  line-height: 1.25;
}

.sponsorship-level p {
  margin-bottom: 3px;
  line-height: 1.4;
}

.sponsorship-level ul {
  margin-top: 0;
  margin-bottom: 2px;
  padding-left: 20px;
}

.sponsorship-level li {
  margin-bottom: 0;
  line-height: 1.35;
}

.venue-content h3 {
  margin-top: 30px;
}

.venue-summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  margin: 14px 0 24px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  overflow: hidden;
}

.venue-summary h3 {
  margin: 0 0 8px;
}

.venue-summary p {
  margin-bottom: 0;
}

.venue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.button-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid var(--comsoc-blue);
  background: var(--comsoc-blue);
  color: #ffffff;
  font-family: var(--font-academic);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button-link:hover,
.button-link:focus {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.button-link.secondary {
  background: #ffffff;
  color: var(--comsoc-blue);
  border-color: var(--comsoc-blue);
}

.button-link.secondary:hover,
.button-link.secondary:focus {
  background: #eef6fc;
  color: var(--navy);
}

.map-embed {
  overflow: hidden;
  width: 100%;
  height: clamp(300px, 42vw, 460px);
  margin: 18px 0 30px;
  border: 1px solid var(--line);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.hotel-table {
  min-width: 760px;
}

.hotel-table td:first-child {
  width: 34%;
}

.hotel-table td:nth-child(2) {
  width: 28%;
}

.hotel-table span {
  color: var(--muted);
}

.travel-panel {
  position: relative;
  padding: 22px 26px;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  margin-top: 14px;
  overflow: hidden;
}

.travel-panel p:last-child {
  margin-bottom: 0;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.pdf-frame {
  width: 100%;
  height: 560px;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
}

.pdf-frame object {
  width: 100%;
  height: 100%;
}

/* Archive / Previous Years Cards */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 24px 0 36px;
}

.archive-card {
  position: relative;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 28px 26px 26px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}


.archive-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 24px;
}

.archive-card p {
  color: var(--muted);
  margin-bottom: 14px;
}

.archive-card .archive-meta {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.6;
}

.archive-card .button-link {
  align-self: flex-start;
}

/* Footer */
.site-footer {
  flex: 0 0 auto;
  background: var(--navy);
  color: #ffffff;
  border-top: 3px solid var(--comsoc-blue);
  font-family: var(--font-academic);
}

.footer-inner {
  display: flex;
  width: 100%;
  max-width: 1600px;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 22px 40px;
}

.footer-sponsors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-sponsor-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-sponsor-label {
  font-size: 0.88rem;
  color: #94a3b8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: var(--font-academic);
}

.footer-sponsors .logo-tile {
  min-height: 46px;
  padding: 6px 10px;
}

.footer-sponsors img {
  max-height: 36px;
}

.site-footer a {
  color: #93c5fd;
}

.site-footer a:hover {
  color: #ffffff;
}

/* Media Queries */
@media (max-width: 980px) {
  .sidebar {
    display: none;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--navy);
    color: #ffffff;
    padding: 12px 18px;
    border-bottom: 2px solid var(--comsoc-blue);
  }

  .mobile-brand {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.25;
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .mobile-brand:hover,
  .mobile-brand:focus {
    color: #e0f2fe;
    text-decoration: none;
  }

  .mobile-menu {
    position: relative;
  }

  .mobile-menu summary {
    display: flex;
    width: 42px;
    height: 38px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .hamburger {
    display: grid;
    width: 20px;
    gap: 4px;
  }

  .hamburger span {
    display: block;
    height: 2px;
    background: #ffffff;
  }

  .mobile-menu nav {
    position: absolute;
    top: 46px;
    right: 0;
    width: min(290px, calc(100vw - 32px));
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .mobile-menu nav ul {
    gap: 0;
  }

  .page-shell {
    margin-left: 0;
  }

  .masthead {
    padding: 16px 14px 12px;
  }

  .masthead h1 {
    font-size: 20px;
    line-height: 1.25;
  }

  .content {
    padding: 28px 20px 40px;
  }

  .main-body-wrap {
    padding: 24px 18px 36px;
  }

  .lead {
    text-align: left;
  }

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

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

  .speaker-photo {
    width: 170px;
    height: 210px;
  }

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

  .venue-actions {
    justify-content: flex-start;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15.5px;
  }

  .mobile-brand {
    max-width: 270px;
  }

  .content h2 {
    font-size: 24px;
  }

  .hero-image {
    height: auto;
    object-fit: contain;
  }

  .pdf-frame {
    height: 420px;
  }
}
