/* =========================================================
   ADSSSC 2027 — Conference site stylesheet
   ========================================================= */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --blue: #00629b;          /* IEEE blue */
  --blue-light: #e8f1f8;
  --accent: #c8963e;        /* muted gold */
  --text: #1f2933;
  --muted: #52606d;
  --line: #d9e2ec;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 6px;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: "Merriweather", Georgia, serif;
  color: var(--navy);
  line-height: 1.3;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 0.85rem;
}
.utility-bar .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap;
}
.utility-bar a { color: #fff; }
.utility-bar i { margin-right: 6px; color: var(--accent); }

/* ---------- Branding header ---------- */
.brand-header { background: #fff; border-bottom: 1px solid var(--line); }
.brand-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 12px; padding-bottom: 12px;
}
.brand-header .logo-inst { height: 88px; width: auto; max-width: 70%; object-fit: contain; }
.brand-header .logo-ieee { height: 58px; width: auto; object-fit: contain; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 2px 6px rgba(11, 37, 69, 0.06);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.nav-brand {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700; font-size: 1.1rem; color: var(--navy);
}
.nav-brand span { color: var(--blue); }
.nav-brand:hover { text-decoration: none; }
.nav-list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 16px 12px;
  color: var(--navy); font-weight: 600; font-size: 0.93rem;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.nav-list a:hover { text-decoration: none; color: var(--blue); border-bottom-color: var(--accent); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 10px; cursor: pointer; color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(11,37,69,0.94) 0%, rgba(11,37,69,0.82) 45%, rgba(11,37,69,0.45) 100%),
    url("adscccbanner.png") center / cover no-repeat;
}
.hero .container { padding-top: 72px; padding-bottom: 72px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.7rem); max-width: 820px; margin-bottom: 0.4em; }
.hero .acronym { color: #fff; font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 700; margin-bottom: 22px; opacity: 0.95; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 30px; font-size: 1.05rem; }
.hero-meta i { color: var(--accent); margin-right: 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: #d9a958; }
.btn-light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--navy-2); }

.countdown { display: flex; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.countdown div {
  min-width: 78px; text-align: center; padding: 10px 8px;
  border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
}
.countdown strong { display: block; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }

/* ---------- Key info strip ---------- */
.info-strip { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.info-strip .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.info-item { padding: 22px 18px; border-left: 1px solid var(--line); }
.info-item:first-child { border-left: none; }
.info-item .label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.info-item .value { font-weight: 700; color: var(--navy); font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 36px; max-width: 820px; }
.section-head .kicker {
  display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 6px;
}
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.4em; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 3px; background: var(--accent); margin-top: 14px;
}
.section-head p { color: var(--muted); margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.card h3 { font-size: 1.12rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.stat { border-top: 3px solid var(--blue); background: #fff; padding: 18px 16px; border-radius: 0 0 var(--radius) var(--radius); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat strong { display: block; font-family: "Merriweather", Georgia, serif; font-size: 1.7rem; color: var(--navy); }
.stat span { font-size: 0.9rem; color: var(--muted); }

.figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.figure figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }
.figure { margin: 0; }

/* Tracks */
.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.track-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--blue); }
.track-card .track-no { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.track-card h3 { font-size: 1.08rem; margin: 6px 0 12px; }
.track-card ul { padding-left: 1.1em; margin: 0; color: var(--muted); font-size: 0.96rem; }
.track-card li { margin-bottom: 6px; }
.track-card i { color: var(--blue); font-size: 1.4rem; margin-bottom: 10px; display: block; }
.callout {
  margin-top: 28px; padding: 18px 22px; background: var(--blue-light);
  border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }

/* Tables */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table thead th {
  background: var(--navy); color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
}
.data-table tbody tr:nth-child(even) { background: #fafbfc; }
.data-table .right { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table tr.highlight td { background: #fdf6e9; font-weight: 700; color: var(--navy); }
.table-note { font-size: 0.9rem; color: var(--muted); margin-top: 12px; }

/* Committee */
.committee { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.committee .card h3 {
  font-family: "Source Sans 3", sans-serif; font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue);
  border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 12px;
}
.committee ul { list-style: none; padding: 0; margin: 0; }
.committee li { padding: 5px 0; }
.committee li strong { color: var(--navy); }
.committee li small { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.4; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.5em; }
.steps li { position: relative; padding: 0 0 14px 44px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.placeholder {
  text-align: center; padding: 44px 24px; border: 1px dashed #b6c4d4; border-radius: var(--radius); background: #fff;
}
.placeholder i { font-size: 2rem; color: var(--blue); margin-bottom: 12px; }
.placeholder p { color: var(--muted); margin: 0 auto; max-width: 560px; }

.video-wrap video { width: 100%; border-radius: var(--radius); background: #000; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 56px 0 0; font-size: 0.95rem; }
.site-footer h4 { color: #fff; font-family: "Source Sans 3", sans-serif; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer a { color: #e2e8f0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding: 18px 0;
  font-size: 0.85rem; color: #94a3b8;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-list a { padding: 16px 8px; font-size: 0.88rem; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #fff; border-bottom: 3px solid var(--blue);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 12px 20px; border-bottom: 1px solid var(--line); margin: 0; }
  .site-nav .container { position: relative; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .tracks, .committee, .grid-3 { grid-template-columns: 1fr 1fr; }
  .info-strip .container { grid-template-columns: 1fr 1fr; }
  .info-item:nth-child(3) { border-left: none; }
  .info-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .brand-header .logo-inst { height: 60px; }
  .brand-header .logo-ieee { height: 38px; }
  .utility-bar .hide-sm { display: none; }
  .hero .container { padding-top: 48px; padding-bottom: 48px; }
  .tracks, .committee, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .countdown div { min-width: 64px; }
}
