/* CYBERCONF 2027 — site stylesheet (no external dependencies) */
:root {
  --bg: #050b1f;
  --bg-2: #0a1633;
  --panel: #0e1c3d;
  --panel-2: #12244d;
  --line: #1f3566;
  --text: #e6edf7;
  --muted: #9fb0cc;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --gold: #f5c542;
  --radius: 14px;
  --max: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(139,92,246,.14), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #67e8f9; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--cyan); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,11,31,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: .04em; }
.brand .wm { font-size: 1.25rem; }
.brand .yr { font-size: 1.25rem; color: var(--cyan); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--panel-2); color: var(--cyan); }
.nav-links .btn { margin-left: 8px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: linear-gradient(90deg, var(--cyan), var(--blue)); color: #03101f !important; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(34,211,238,.35); }
.btn-ghost { border-color: var(--cyan); color: var(--cyan); }
.btn-ghost:hover { background: rgba(34,211,238,.1); }
.nav-links a.btn-primary { padding: 8px 16px; }
.nav-links a.btn-primary:hover { background: linear-gradient(90deg, var(--cyan), var(--blue)); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 48px; }
.eyebrow { color: var(--cyan); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.2rem); font-weight: 900; letter-spacing: .02em; margin-bottom: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #bcd3ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .yr { background: linear-gradient(90deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; }
.hero .sub { font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 600; margin-bottom: 12px; }
.hero .theme { font-style: italic; color: #cfe3ff; font-size: 1.15rem; margin-bottom: 20px; }
.hero .partof { color: var(--muted); margin-bottom: 28px; }
.hero .partof strong { color: var(--cyan); font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 32px; }
.fact { display: flex; gap: 10px; align-items: flex-start; }
.fact .ico { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--cyan); }
.fact .ico svg { width: 22px; height: 22px; }
.fact b { display: block; }
.fact span { color: var(--muted); font-size: .92rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.countdown { margin-top: 36px; display: inline-flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.countdown .label { color: var(--muted); font-size: .9rem; margin-right: 6px; width: 100%; }
.cd-box { min-width: 76px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; }
.cd-box b { display: block; font-size: 1.7rem; color: var(--cyan); font-variant-numeric: tabular-nums; }
.cd-box span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.pillar { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; letter-spacing: .04em; }
.pillar svg { width: 30px; height: 30px; color: var(--cyan); flex: none; }
@media (max-width: 860px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head { margin-bottom: 28px; max-width: 760px; }
.section-head p { color: var(--muted); }
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-head p { color: var(--muted); max-width: 760px; }
.prose { max-width: 820px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .muted { color: var(--muted); }

/* Submission type cards */
.type-card { position: relative; background: #f5f8ff; color: #0b1733; border-radius: var(--radius); padding: 28px; }
.type-card .badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--blue); margin-bottom: 12px; }
.type-card.b .badge { background: var(--violet); }
.type-card h3 { color: var(--blue); font-size: 1.35rem; }
.type-card.b h3 { color: var(--violet); }
.type-card dl { margin: 16px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; }
.type-card dt { font-weight: 700; }
.type-card dd { margin: 0; }

/* Tracks */
.track { display: flex; gap: 16px; }
.track .num { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #03101f; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.track h3 { font-size: 1.08rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.tags li { font-size: .82rem; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: #cfe3ff; }

/* Awards */
.awards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.award { display: flex; gap: 16px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.award .rank { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #03101f; }
.award:nth-child(1) .rank { background: #f5c542; }
.award:nth-child(2) .rank { background: #34d399; }
.award:nth-child(3) .rank { background: #38bdf8; }
.award:nth-child(4) .rank { background: #a78bfa; }
.award:nth-child(5) .rank { background: #fb7185; }
.award h3 { margin-bottom: .2em; font-size: 1.08rem; }
.award p { margin: 0; color: var(--muted); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--cyan), var(--violet)); }
.timeline li { position: relative; padding: 0 0 22px 44px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--cyan); }
.timeline li.key::before { background: var(--cyan); }
.timeline .when { font-weight: 700; color: var(--cyan); }
.timeline .what { display: block; }
.timeline .when del { color: var(--muted); font-weight: 400; margin-right: .35em; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--panel-2); font-size: .9rem; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }

/* Venues / logos */
.venue { background: #fff; color: #0b1733; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.venue img { height: 110px; width: auto; object-fit: contain; }
.venue img.wide { height: 110px; width: 100%; object-fit: contain; }
.venue a { color: #1d4ed8; }
.venue h3 { color: #0b1733; font-size: 1.05rem; margin: 0; }
.venue .tier { color: #c0392b; font-weight: 700; font-size: .9rem; }
.venue p { font-size: .92rem; margin: 0; color: #334; }

.notice { border-left: 4px solid var(--gold); background: rgba(245,197,66,.08); padding: 14px 18px; border-radius: 0 10px 10px 0; color: #f3e6bf; }

/* CTA band */
.cta-band { background: linear-gradient(90deg, rgba(34,211,238,.15), rgba(139,92,246,.15)); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.cta-band h2 { margin: 0; font-size: 1.5rem; }
.cta-band p { margin: 4px 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }
.org-logos { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.logo-chip { background: #fff; border-radius: 10px; padding: 8px 12px; display: inline-flex; align-items: center; }
.logo-chip img { height: 44px; width: auto; }
.site-footer h3.supported { margin-top: 20px; }
.logo-chip img.citt { height: 56px; }
.legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.mt { margin-top: 20px; }

/* ---------- Call for Papers (CMT requirements) ---------- */
.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; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.subnav a { font-size: .88rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); text-decoration: none; }
.subnav a:hover { border-color: var(--cyan); color: var(--cyan); }
.submit-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border: 1px solid var(--cyan); border-radius: var(--radius); background: linear-gradient(90deg, rgba(34,211,238,.10), rgba(59,130,246,.08)); }
.submit-box p { margin: 0 0 .4em; }
.submit-url { font-size: 1.05rem; font-weight: 700; word-break: break-all; }
.steps { padding-left: 1.3em; max-width: 820px; }
.steps li { margin-bottom: .6em; }
.committee h3 { font-size: 1rem; }
.ack { border-left: 4px solid var(--cyan); background: var(--panel); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 900px; }
.ack h2 { font-size: 1.2rem; }
.ack p { margin: 0; }
.cmt-ack { margin: 16px 0 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .committee { grid-template-columns: 1fr; } }

/* ---------- Committees & Chairs ---------- */
.role-group { padding: 28px 0; border-top: 1px solid var(--line); }
.role-group:first-of-type { border-top: 0; }
.role-head { margin-bottom: 16px; max-width: 760px; }
.role-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: .3em; }
.role-head p { color: var(--muted); margin: 0; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.person { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.person .initial { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: #03101f; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.person .who b { display: block; }
.person .aff { display: block; color: var(--muted); font-size: .9rem; }
.person.tba { border-style: dashed; }
.person.tba .initial { background: var(--panel-2); color: var(--muted); }
.person.tba b { color: var(--muted); font-weight: 600; }
.track-chairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 680px) { .track-chairs { grid-template-columns: 1fr; } }
.track-chair { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.track-chair .num { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #03101f; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.track-chair h3 { font-size: 1rem; margin-bottom: .2em; }
.track-chair p { margin: 0; font-size: .92rem; }
.secretariat { max-width: 640px; }
