*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}
:root {
  --bg: #0d1428;
  --nav-dark: #0a1220;
  --red: #f42148;
  --white: #fff;

  --link: #3e5a7c;
  --red-hover: #ff5d7d;
  --nav-height: 56px;
  --mantine-scale: 1;

  --surface-soft: #f3f5f8;
  --surface-alt: #eef2f6;
  --surface-line: #d9e0e8;

  --white-soft: #eef2f7;
  --white-muted: rgba(255 255 255 / 0.78);

  --text-dark: #162033;
  --text-mid: #42536a;
  --text-muted: #6c7b90;

  --space-1: .3rem;
  --space-2: .45rem;
  --space-3: .7rem;
  --space-4: .85rem;
  --space-5: 1rem;
  --space-6: 1.25rem;
  --space-7: 1.6rem;
  --space-8: 2rem;
  --space-9: 2.4rem;
  --space-10: 3.2rem;
  --space-11: 4.2rem;
}

/* Layout  */
.container-wide,
.page-title-inner,
.page-wide .page-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.container,
.page-section-inner,
.prose {
  max-width: 820px;
  margin: 0 auto;
}

.page-content {
  background: var(--surface-soft);
}

.page-section {
  padding: 4.2rem 1.5rem;
  border-bottom: 1px solid var(--surface-line);
  background: var(--surface-soft);
}

.page-section-alt {
  background: var(--surface-alt);
}

.page-title {
  background: var(--surface-soft);
  padding: 3.2rem 1.5rem 2.4rem;
  border-bottom: 1px solid var(--surface-line);
}

/* Typography */
body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 0 L56 16 L56 50 L28 66 L0 50 L0 16 Z' fill='none' stroke='%23ffffff' stroke-width='0.7' stroke-opacity='0.05'/%3E%3Cpath d='M28 66 L56 50 L56 84 L28 100 L0 84 L0 50 Z' fill='none' stroke='%23ffffff' stroke-width='0.7' stroke-opacity='0.05'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  background-attachment: fixed;
  color: var(--white-soft);
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Source Serif 4', serif;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  font-family: 'IBM Plex Sans', sans-serif;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  color: var(--red-hover);
  text-decoration: underline;
}

.meta,
.label,
.badge,
.committee-role,
.hero-eyebrow,
.hero-subtitle,
.footer-copy {
  font-family: 'IBM Plex Mono', monospace;
}

.page-title h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin: 0;
}

.page-title p {
  max-width: 760px;
  margin-top: .85rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.55rem, 2.5vw, 1.95rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin: 0;
  padding-left: .9rem;
  border-left: 3px solid var(--red);
}

.section-head p {
  max-width: 760px;
  margin-top: .7rem;
  padding-left: .9rem;
  font-size: .98rem;
  line-height: 1.75;
  color: var(--text-mid);
}

.card-title,
.committee-name {
  font-family: 'Source Serif 4', serif;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-dark);
  margin: 0 0 .3rem;
}

/* Prose System */
.page-section-inner,
.prose {
  color: var(--text-mid);
}

.page-section-inner a,
.prose a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--link) 35%, transparent);
  transition: color .2s ease, border-color .2s ease;
}

.page-section-inner a:hover,
.prose a:hover {
  color: var(--red-hover);
  border-bottom-color: var(--red-hover);
  text-decoration: none;
}

.page-section-inner > * + *,
.prose > * + * {
  margin-top: var(--space-5);
}

.page-section-inner p,
.prose p {
  max-width: 760px;
  color: var(--text-mid);
}

.page-section-inner ul,
.page-section-inner ol,
.prose ul,
.prose ol {
  margin: 1rem 0 1rem 1.4rem;
  padding: 0;
}

.page-section-inner li,
.prose li {
  margin-bottom: .45rem;
  line-height: 1.7;
  color: var(--text-mid);
}

.page-section-inner li strong,
.prose li strong {
  color: var(--text-dark);
}

.page-section-inner ul + p,
.page-section-inner ol + p,
.prose ul + p,
.prose ol + p {
  margin-top: 1rem;
}

.page-section-inner ul li::marker,
.page-section-inner ol li::marker,
.prose ul li::marker,
.prose ol li::marker {
  color: var(--red);
}

.prose blockquote,
.page-section-inner blockquote {
  margin: 1.2rem 0;
  padding: .2rem 0 .2rem 1rem;
  border-left: 3px solid rgba(244 33 72 / 0.35);
  color: var(--text-mid);
}

.prose code,
.page-section-inner code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .92em;
  padding: .12rem .32rem;
  border-radius: 4px;
  background: rgba(22 32 51 / 0.06);
  color: var(--text-dark);
}

.prose hr,
.page-section-inner hr {
  border: 0;
  border-top: 1px solid var(--surface-line);
  margin: 1.8rem 0;
}

/* Navbar */
#navbar-slot,
#hero-slot,
#footer-slot {
  width: 100%;
}

#hero-slot {
  min-height: clamp(520px, 60vh, 680px);
}

#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 400;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease,
    box-shadow .35s ease, backdrop-filter .35s ease;
}

#navbar.scrolled {
  background: rgba(10 18 32 / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255 255 255 / 0.07);
  box-shadow: 0 2px 24px rgba(0 0 0 / 0.7);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 2rem;
}

.nav-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .65rem;
  font-weight: 500;
  color: var(--white);
  flex-shrink: 0;
}

.nav-brand-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .82rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: .04em;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: stretch;
  list-style: none;
  height: 100%;
  flex: 1;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-link,
.nav-btn {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: 0 .9rem;
  color: var(--white);
  font-family: inherit;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color .18s;
}

.nav-link:hover,
.nav-btn:hover {
  text-decoration: none;
}

.nav-link::after,
.nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width .28s ease, left .28s ease;
}

.nav-link:hover::after,
.nav-btn:hover::after,
.nav-item.open > .nav-link::after,
.nav-item.open > .nav-btn::after {
  width: 100%;
  left: 0;
}

.caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .85;
  margin-top: 1px;
  transition: transform .2s;
}

.nav-item.open > .nav-btn .caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #0f1a28;
  border-radius: 10px;
  list-style: none;
  z-index: 300;
  padding: .45rem 0;
  margin-top: 8px;
  box-shadow: 0 18px 40px rgba(0 0 0 / 0.35);
  border: 1px solid rgba(255 255 255 / 0.06);
}

.nav-item.open > .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  padding: .74rem 1.35rem;
  color: #eef2f7;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}

.nav-dropdown li a:hover {
  color: var(--white);
  background: rgba(255 255 255 / 0.06);
  border-left-color: var(--red);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#nav-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0 0 0 / 0.55);
  z-index: 350;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s, visibility .3s;
}

#nav-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 820px) {
  .nav-hamburger {
    display: flex;
    position: relative;
    z-index: 560;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: #0a1220;
    flex-direction: column;
    align-items: stretch;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 550;
    padding: 0 0 2rem;
    border-right: 1px solid rgba(255 255 255 / 0.06);
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform .3s cubic-bezier(.4, 0, .2, 1),
      visibility .3s;
  }

  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-menu::before {
    content: 'ACM CCS 2027';
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
    background: #0a1220;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255 255 255 / 0.06);
  }

  .nav-item {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link,
  .nav-btn {
    padding: .82rem 1.4rem;
    border-bottom: 1px solid rgba(255 255 255 / 0.05) !important;
    border-left: 3px solid transparent;
    font-size: .9rem;
    color: #eef2f7;
    justify-content: space-between;
    width: 100%;
  }

  .nav-link::after,
  .nav-btn::after {
    display: none;
  }

  .nav-link:hover,
  .nav-btn:hover,
  .nav-item.open > .nav-link,
  .nav-item.open > .nav-btn {
    border-bottom-color: rgba(255 255 255 / 0.05) !important;
    border-left-color: var(--red);
    background: rgba(255 255 255 / 0.04);
    color: var(--white);
  }

  .nav-dropdown {
    position: static;
    border-radius: 0;
    border-left: 3px solid rgba(244 33 72 / 0.35);
    box-shadow: none;
    background: rgba(0 0 0 / 0.25);
    padding: 0;
    margin-left: 1rem;
  }

  .nav-dropdown li a {
    padding: .65rem 1rem .65rem 1.2rem;
    font-size: .84rem;
    color: #cbd5e1;
    border-left: none;
  }

  .nav-dropdown li a:hover {
    color: var(--white);
    background: rgba(255 255 255 / 0.06);
    border-left: none;
  }
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 5.75rem) 1.5rem 5.4rem;
  min-height: 100vh;
  background-image: url('./../img/46.jpg');
  background-size: cover;
  background-position: center 35%;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(13 20 40 / 0.40) 0%,
    rgba(13 20 40 / 0.35) 30%,
    rgba(13 20 40 / 0.75) 65%,
    rgba(10 18 32 / 0.95) 100%
  );
}

.hero-eyebrow,
.hero-logo,
.hero-title,
.hero-subtitle,
.hero-location,
.hero-divider,
.coming-soon-badge {
  opacity: 0;
  animation: fadeUp .7s forwards;
}

.hero-eyebrow  { animation-delay: .1s; }
.hero-logo     { animation-delay: .2s; }
.hero-title    { animation-delay: .3s; }
.hero-subtitle { animation-delay: .4s; }
.hero-location { animation-delay: .5s; }
.hero-divider  { animation-delay: .55s; }
.coming-soon-badge { animation-delay: .6s; }

.hero-eyebrow {
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255 255 255 / 0.82);
  margin-bottom: 1.8rem;
  text-shadow: 0 1px 10px rgba(0 0 0 / 0.5);
}

.hero-logo {
  width: calc(10.8rem * var(--mantine-scale));
  height: auto;
  margin-bottom: 1.9rem;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 6px 14px rgba(0 0 0 / 0.16));
}

.hero-title {
  font-size: clamp(3.2rem, 8.2vw, 5.9rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: .65rem;
  text-shadow: 0 1px 10px rgba(0 0 0 / 0.20), 0 2px 34px rgba(0 0 0 / 0.14);
}

.hero-title span {
  color: rgba(255 255 255 / 0.88);
}

.hero-subtitle {
  font-size: clamp(.82rem, 2.1vw, 1rem);
  color: var(--white-muted);
  letter-spacing: .10em;
  margin-bottom: .45rem;
  text-shadow: 0 1px 8px rgba(0 0 0 / 0.42);
}

.hero-location {
  font-size: .98rem;
  font-weight: 600;
  color: rgba(255 255 255 / 0.94);
  margin-bottom: 3rem;
  text-shadow: 0 1px 10px rgba(0 0 0 / 0.55);
}

.hero-divider {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255 255 255 / 0.35), transparent);
  margin: 0 auto 2.8rem;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(8 14 30 / 0.46);
  border: 1px solid rgba(255 255 255 / 0.14);
  border-radius: 999px;
  padding: .5rem 1.25rem;
  font-size: .7rem;
  letter-spacing: .16em;
  color: rgba(255 255 255 / 0.88);
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0 0 0 / 0.42);
}

.coming-soon-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: rgba(255 255 255 / 0.72);
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}

.hero-home {
  min-height: 100vh;
}

.hero-subpage {
  min-height: 640px;
  padding-top: calc(var(--nav-height) + 4.4rem);
  padding-bottom: 4.2rem;
  justify-content: center;
}

.hero-subpage .hero-logo {
  width: calc(9.8rem * var(--mantine-scale));
  margin-bottom: 1.5rem;
}

.hero-subpage .hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  margin-bottom: .75rem;
}

.hero-subpage .hero-subtitle {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  letter-spacing: .08em;
  margin-bottom: .3rem;
}

.hero-subpage .hero-location {
  font-size: 1.02rem;
  margin-bottom: 2rem;
}

.hero-subpage .hero-divider {
  margin-bottom: 0;
}

/* News */
.news-section {
  position: relative;
  z-index: 1;
  background: var(--surface-soft);
  padding: 4.6rem 1.5rem 5rem;
  box-shadow: inset 0 4px 24px rgba(13 21 32 / 0.06);
}

.news-section-inner {
  max-width: 780px;
  margin: 0 auto;
}

.news-section h2 {
  font-size: 2.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--red);
}

.news-timeline {
  list-style: none;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.95rem;
  position: relative;
}

.news-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 38px;
  bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #d6dde6, #eef2f6);
}

.news-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid #d6dde6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(15 23 42 / 0.03);
}

.news-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-body {
  padding-top: .38rem;
  font-size: .94rem;
  line-height: 1.8;
  color: var(--text-mid);
}

.news-body strong {
  color: var(--text-dark);
  font-weight: 700;
}

.news-body a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

.news-body a:hover {
  color: var(--red-hover);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  background: #0a1220;
}

.footer-about {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.2rem 2rem 2.1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 2.5rem;
  align-items: start;
}

.footer-about::before {
  content: '';
  width: 3px;
  background: var(--red);
  border-radius: 2px;
  align-self: stretch;
}

.footer-about h3,
.footer-about p {
  grid-column: 2;
  color: var(--white);
}

.footer-about h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: .9rem;
}

.footer-about p {
  font-size: .86rem;
  line-height: 1.9;
  margin-bottom: .6rem;
}

.footer-about a {
  color: var(--red);
  text-decoration: none;
}

.footer-about a:hover {
  color: var(--red-hover);
  text-decoration: underline;
}

.footer-copy {
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255 255 255 / 0.06);
  font-size: .74rem;
  color: #6f8096;
}

.footer-copy span {
  color: #7e92aa;
}

/* Page Title */
.page-title-inner {
  max-width: 1100px;
  margin: 0 auto;
}

[id] {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

/* Responsive Rhythm */
@media (max-width: 640px) {
  .page-title {
    padding: 2.8rem 1.25rem 2rem;
  }

  .page-section {
    padding: 3.4rem 1.25rem;
  }

  .section-head {
    margin-bottom: 1.6rem;
  }

  .page-title p,
  .section-head p {
    margin-top: .75rem;
  }
}

/* Animations */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .35;
    transform: scale(.65);
  }
}

.toc-nav {
        margin-top: 1.1rem;
        padding-top: 1rem;
      }

      .toc-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0.7rem 1.2rem;
      }

      .toc-nav a {
        font-family: "IBM Plex Mono", monospace;
        font-size: 0.78rem;
        letter-spacing: 0.04em;
        color: var(--text-mid);
        text-decoration: none;
        border-bottom: 1px dotted black;
      }

      .toc-nav a:hover {
        color: var(--red);
        text-decoration: none;
        border-bottom: 1px dotted var(--red);
      }

      .conduct-page .page-section + .page-section {
        border-top: 0;
      }

      @media (max-width: 640px) {
        .toc-nav ul {
          display: block;
        }

        .toc-nav li + li {
          margin-top: 0.55rem;
        }
      }