/* WPES 2026 — Workshop on Privacy in the Electronic Society
   Lightweight, dependency-free stylesheet. Brand color: #990000 */

:root {
  --brand: #990000;
  --brand-dark: #7a0000;
  --brand-light: #c0392b;
  --ink: #1a1a1a;
  --muted: #555;
  --line: #e3e3e3;
  --bg-soft: #faf7f7;
  --max: 1300px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Noto Sans", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Header ---------- */
header.site-header {
  background: var(--brand);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 26px 20px;
  max-width: var(--max);
  margin: 0 auto;
  flex-wrap: wrap;
}
.header-logo {
  display: inline-flex;
  flex: 0 0 auto;
}
.header-logo img { display: block; height: 80px; width: auto; max-width: 100%; }
.header-text { flex: 1 1 0; min-width: 0; }
.header-text h1 { margin: 0; font-size: 2.5rem; font-weight: 500; line-height: 1.15; }
.header-text .subtitle { margin: 8px 0 0; font-size: 2rem; font-weight: 500; line-height: 1.2; }
.header-text .colocated { margin: 6px 0 0; font-size: 1.1rem; opacity: 0.9; }

/* ---------- Nav ---------- */
nav.site-nav { background: var(--brand); margin-top: 8px; }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.nav-links { display: flex; flex-wrap: wrap; }
.nav-inner a {
  color: #fff;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}
.nav-inner a:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }
.nav-inner a.active { border-bottom-color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-toggle { display: none; }

/* ---------- Main ---------- */
main { padding: 38px 0 60px; }
main h2 { color: var(--brand); font-size: 1.5rem; margin: 36px 0 12px; }
main h2:first-child { margin-top: 0; }
main h3 { color: var(--brand); font-size: 1.15rem; margin: 28px 0 8px; }
main p { margin: 0 0 14px; }

.lead { font-size: 1.08rem; }

.badge {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--brand);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
}

hr { border: none; border-top: 1px solid var(--line); margin: 34px 0; }

/* ---------- Topics grid ---------- */
ul.topics {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 28px;
}
ul.topics li {
  padding: 5px 0 5px 18px;
  position: relative;
  font-size: 0.96rem;
}
ul.topics li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- Important dates ---------- */
.dates { width: 100%; border-collapse: collapse; margin: 12px 0; }
.dates td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dates td.label { font-weight: 600; width: 42%; }
.dates td.tbd { color: var(--muted); font-style: italic; }
.dates .strike { text-decoration: line-through; color: #999; }

/* ---------- Committee ---------- */
dl.committee {
  display: grid;
  grid-template-columns: minmax(200px, 38%) 1fr;
  gap: 0;
  margin: 10px 0 24px;
}
dl.committee dt {
  font-weight: 600;
  padding: 7px 12px 7px 0;
  border-bottom: 1px solid var(--line);
}
dl.committee dd {
  margin: 0;
  color: var(--muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- Program ---------- */
ul.program { list-style: none; padding: 0; }
ul.program > li { margin-bottom: 10px; }
.session {
  background: var(--bg-soft);
  border-left: 4px solid var(--brand);
  padding: 12px 16px;
  margin: 18px 0 8px;
  border-radius: 0 6px 6px 0;
}
.session .time { font-weight: 700; color: var(--brand); }
ul.papers { margin: 10px 0 0; padding-left: 20px; }
ul.papers li { margin-bottom: 12px; }
ul.papers .authors { color: var(--muted); font-style: italic; font-size: 0.93rem; }
.break { color: var(--muted); padding: 6px 16px; font-weight: 500; }

/* ---------- Callout / notice ---------- */
.notice {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 20px 0;
}
.notice.tbd { text-align: center; color: var(--muted); }
.notice.tbd strong { color: var(--brand); }

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none !important;
  margin: 6px 0;
}
.btn:hover { background: var(--brand-dark); }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 3px solid var(--brand);
  background: var(--bg-soft);
  padding: 26px 0;
  margin-top: 40px;
  font-size: 0.92rem;
  color: var(--muted);
}
footer.site-footer a { font-weight: 500; }
footer.site-footer p { margin: 4px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .header-text { flex: none; }
  .header-text h1 { font-size: 1.75rem; }
  .header-text .subtitle { font-size: 1.5rem; }
  .header-text .colocated { font-size: 1rem; }
  .nav-toggle {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    padding: 13px 16px;
    font-size: 1rem;
    cursor: pointer;
  }
  .nav-links { display: none; flex-direction: column; width: 100%; }
  .nav-links.open { display: flex !important; }
  .nav-inner { flex-direction: column; align-items: stretch; }
  .nav-inner a { border-bottom: 1px solid rgba(255,255,255,0.15); }
  ul.topics { grid-template-columns: 1fr; }
  dl.committee { grid-template-columns: 1fr; }
  dl.committee dd { padding-top: 0; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  dl.committee dt { border-bottom: none; padding-bottom: 0; }
}
