/* =============================================================
   ACISP 2027 — Design System (v2)
   Familiar ACISP layout: top title bar · left menu · content column
   Refined "ACISP blue" palette.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy:        #1c3f6e;   /* headings, conference title */
  --navy-800:    #163258;
  --accent:      #2b6cb0;   /* links, active menu, actions */
  --accent-600:  #235a94;   /* hover */
  --accent-050:  #eef5fc;   /* tint */

  --menu:        #dcf2ff;   /* menu item background */
  --menu-hover:  #e9f7ff;
  --menu-line:   #c3e2f5;

  --ink:         #24313d;   /* body text */
  --muted:       #55677a;   /* secondary text (AA on white) */
  --faint:       #7d8ea0;
  --line:        #d7e3ef;
  --line-2:      #c4d6e6;
  --bg:          #ffffff;
  --bg-soft:     #f3f8fc;
  --table-head:  #dcebf8;

  --warn-bg:     #fff8ec;
  --warn-line:   #e8c98a;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1160px;
  --readw: 760px;
  --sidebar-w: 226px;
  --radius: 8px;
  --radius-sm: 5px;
  --gutter: clamp(14px, 3.5vw, 28px);
  --shadow-sm: 0 1px 2px rgba(28, 63, 110, .06), 0 1px 3px rgba(28, 63, 110, .08);
  --shadow-md: 0 6px 20px rgba(28, 63, 110, .10);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.28; font-weight: 700; }
h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .5rem; }
h2 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; }
h3 { font-size: 1.08rem; margin: 1.3rem 0 .45rem; }
p { margin: 0 0 1rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Top title bar ---------- */
.topbar { background: #fff; border-bottom: 3px solid var(--accent); }
.topbar__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brandbar { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brandbar:hover { text-decoration: none; }
.brandbar img { height: 46px; width: auto; display: block; }
.brandbar__acronym { font-size: 1.55rem; font-weight: 800; color: var(--navy); letter-spacing: .3px; line-height: 1; }
.brandbar__acronym span { color: var(--accent); }
.conf-title { text-align: right; color: var(--navy); line-height: 1.25; }
.conf-title__name { font-size: clamp(.98rem, 1.6vw, 1.18rem); font-weight: 700; }
.conf-title__meta { font-size: .86rem; color: var(--muted); font-weight: 500; margin-top: 2px; }
.topbar__toggle { display: none; background: transparent; border: 1px solid var(--line-2); color: var(--navy); border-radius: 7px; padding: 8px 10px; cursor: pointer; }

/* ---------- Content shell: sidebar + main ---------- */
.site-content {
  max-width: var(--maxw); margin-inline: auto; padding: 26px var(--gutter) 40px;
  display: flex; gap: 30px; align-items: flex-start;
}
main { flex: 1 1 auto; min-width: 0; }
/* Neutralise the full-bleed section/container pattern inside the column */
main .container { max-width: none; width: auto; margin: 0; padding: 0; }
main .section { padding: 0; margin: 0 0 1.6rem; }
main .section:last-child { margin-bottom: 0; }
main .prose { max-width: var(--readw); }

/* ---------- Sidebar ---------- */
.sidebar { flex: 0 0 var(--sidebar-w); width: var(--sidebar-w); position: sticky; top: 18px; }
.menu { list-style: none; margin: 0 0 22px; padding: 0; border: 1px solid var(--menu-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.menu li + li { border-top: 1px solid var(--menu-line); }
.menu a { display: block; padding: 9px 15px; background: var(--menu); color: var(--navy); font-size: .92rem; font-weight: 500; text-decoration: none; }
.menu a:hover { background: var(--menu-hover); color: var(--accent-600); padding-left: 18px; text-decoration: none; transition: padding .12s; }
.menu a[aria-current="page"] { background: var(--accent); color: #fff; font-weight: 600; }
.menu a[aria-current="page"]:hover { color: #fff; padding-left: 15px; }
.sidebar__partners { text-align: center; padding: 0 6px; }
.sidebar__partners h4 { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.sidebar__partners a { display: block; margin: 0 auto 16px; }
.sidebar__partners img { max-width: 155px; max-height: 66px; width: auto; margin: 0 auto; }
.sidebar__partners .tba { margin-top: 4px; }

/* ---------- Site banner slideshow (Melbourne photos, every page) ---------- */
.site-banner-wrap { max-width: var(--maxw); margin-inline: auto; padding: 20px var(--gutter) 0; }
.site-banner { position: relative; height: clamp(220px, 32vw, 400px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--navy-800); }
.site-banner__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.site-banner__slide.is-active { opacity: 1; }
.site-banner__slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.site-banner__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 26px 16px; background: linear-gradient(180deg, rgba(9, 23, 42, 0) 40%, rgba(9, 23, 42, .78) 100%); pointer-events: none; }
.site-banner__dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; display: flex; gap: 8px; z-index: 2; }
.site-banner__dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .3); padding: 0; cursor: pointer; }
.site-banner__dot:hover { background: rgba(255, 255, 255, .65); }
.site-banner__dot.is-active { background: #fff; }
/* Pause/play control — WCAG 2.2.2 requires a way to stop the rotation. */
.site-banner__pause { width: 18px; height: 18px; margin-left: 6px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .35); cursor: pointer; position: relative; }
.site-banner__pause:hover { background: rgba(0, 0, 0, .55); }
.site-banner__pause::before, .site-banner__pause::after { content: ""; position: absolute; top: 4px; width: 2px; height: 8px; background: #fff; }
.site-banner__pause::before { left: 5px; }
.site-banner__pause::after { right: 5px; }
/* paused → show a single play triangle instead of the two bars */
.site-banner.is-paused .site-banner__pause::before { left: 5px; top: 3px; width: 0; height: 0; background: none; border-left: 7px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.site-banner.is-paused .site-banner__pause::after { display: none; }
@media (max-width: 520px) {
  /* keep the credit clear of the dot controls in the bottom band */
  .site-banner__credit { top: 8px; bottom: auto; }
}
@media (prefers-reduced-motion: reduce) { .site-banner__slide { transition: none; } }
.site-banner__title { margin: 0; color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: .5px; line-height: 1.1; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.site-banner__sub { margin: 3px 0 0; color: #e8f0fb; font-size: clamp(.92rem, 1.7vw, 1.12rem); font-weight: 500; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.site-banner__credit { position: absolute; right: 12px; bottom: 7px; font-size: .66rem; color: rgba(255, 255, 255, .88); text-shadow: 0 1px 6px rgba(0, 0, 0, .75); }
.site-banner__credit a { color: #fff; }

/* ---------- Page heading (interior + home) ---------- */
.pagehead { background: none; border: 0; }
.pagehead__inner { padding: 0; border-bottom: 2px solid var(--line); margin-bottom: 1.3rem; padding-bottom: .8rem; }
.pagehead h1 { margin: .1rem 0 .3rem; }
.pagehead p { color: var(--muted); max-width: var(--readw); margin: 0; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin: 0 0 .3rem; }
.breadcrumb a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Prose / content ---------- */
.section__head { max-width: var(--readw); margin-bottom: 1rem; }
.section__head h2 { font-size: 1.35rem; margin: 0 0 .3rem; }
.section__head p { color: var(--muted); margin: 0; }
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.prose { max-width: var(--readw); }
.prose h2 { font-size: 1.25rem; margin: 1.8rem 0 .5rem; }
.prose h3 { font-size: 1.06rem; margin: 1.4rem 0 .4rem; }
.prose h4 { font-size: 1rem; margin: 1.3rem 0 .4rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.prose li { margin: .3rem 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose a.btn, .prose a.btn:hover { text-decoration: none; }
.lead { font-size: 1.08rem; color: var(--ink); }
.group-title { font-size: 1.2rem; color: var(--navy); margin: 1.6rem 0 .7rem; }
.group-title:first-child { margin-top: .1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: .94rem; font-weight: 600; line-height: 1; padding: 10px 18px; border-radius: 7px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-600); color: #fff; }
.btn--outline { background: #fff; color: var(--accent); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--accent); background: var(--accent-050); color: var(--accent-600); }
.btn--sm { padding: 7px 13px; font-size: .86rem; }
.btn.is-disabled, .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- Cards / grids ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 0; }
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.linkcard { display: flex; flex-direction: column; gap: 5px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .12s; }
.linkcard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.linkcard h3 { font-size: 1.02rem; margin: 0; }
.linkcard p { color: var(--muted); font-size: .9rem; margin: 0; }
.linkcard .arrow { color: var(--accent); font-weight: 600; font-size: .88rem; margin-top: 4px; }

/* Quick facts (home) */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 .5rem; padding: 0; list-style: none; }
.facts li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.facts .k { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 3px; }
.facts .v { font-size: 1rem; font-weight: 600; color: var(--navy); margin: 0; }

/* Conference introduction video (home) */
.conference-video { max-width: var(--readw); margin: 1.15rem 0 1.35rem; }
.conference-video__player {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  background: var(--navy-800); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
table.data th, table.data td { text-align: left; padding: 10px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--table-head); color: var(--navy); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
table.data tbody tr:nth-child(even) td { background: var(--bg-soft); }
table.data tbody tr:last-child td { border-bottom: 0; }


table.data tr.subhead td, table.data tr.subhead th { background: var(--navy); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; text-align: left; }

/* ---------- Committee ---------- */
/* Role on the left, its members on the right — stays compact with the one
   or two people per role that an organising committee actually has. */
.committee { max-width: 720px; border-top: 1px solid var(--line); }
.committee-row { display: grid; grid-template-columns: 190px 1fr; gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.committee-role { font-size: .95rem; color: var(--navy); margin: 0; font-weight: 700; }
.committee-people { list-style: none; margin: 0; padding: 0; }
.committee-people li { padding: 2px 0; }
.committee-people li + li { margin-top: 2px; }
.person__name { font-weight: 600; color: var(--ink); }
.person__aff { color: var(--muted); font-size: .9rem; }
.person__aff::before { content: " · "; color: var(--line-2); }
@media (max-width: 620px) {
  .committee-row { grid-template-columns: 1fr; gap: 4px; }
  .committee-role { color: var(--accent); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
}
.pc-list { columns: 2; column-gap: 36px; }
.pc-list .person { break-inside: avoid; }

/* ---------- Speakers ---------- */
.speaker { display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.speaker__photo { width: 130px; height: 130px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); border: 1px solid var(--line); }
.speaker__photo--ph { display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 1.8rem; font-weight: 700; }
.speaker h2 { margin: 0 0 2px; font-size: 1.2rem; }
.speaker__aff { color: var(--muted); margin: 0 0 8px; }
.speaker__title { font-weight: 600; color: var(--accent-600); margin: 0 0 4px; }
.speaker__sched { font-size: .86rem; color: var(--muted); margin: 0 0 12px; }
.speaker__label { font-weight: 700; color: var(--navy); }

/* ---------- Sponsors ---------- */
.sponsor-tier { margin-bottom: 26px; }
.sponsor-tier h2 { text-align: center; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.sponsor-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; }
.sponsor { display: flex; align-items: center; justify-content: center; min-width: 160px; height: 100px; padding: 14px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.sponsor img { max-height: 66px; width: auto; }

/* ---------- Callouts / misc ---------- */
.callout { border: 1px solid var(--line-2); border-left: 4px solid var(--accent); background: var(--accent-050); padding: 13px 16px; border-radius: var(--radius-sm); margin: 1.1rem 0; }
.callout p:last-child { margin-bottom: 0; }
.callout--note { border-left-color: var(--warn-line); background: var(--warn-bg); }
.callout__label { font-weight: 700; color: var(--navy); }

.tba { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--muted); background: var(--bg-soft); border: 1px dashed var(--line-2); padding: 2px 9px; border-radius: 999px; }
.tba::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
/* Empty states carry a page on their own until the data arrives, so give
   them enough presence not to read as a rendering failure. */
.empty-note {
  color: var(--muted); font-style: normal; margin: 0;
  position: relative;                 /* not flex: links must stay inline */
  max-width: var(--readw); padding: 20px 24px 20px 56px;
  background: var(--bg-soft); border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}
.empty-note::before {
  content: ""; position: absolute; left: 22px; top: 21px;
  width: 18px; height: 18px;
  border-radius: 50%; border: 2px solid var(--line-2);
  background:
    linear-gradient(var(--muted), var(--muted)) center 3px / 2px 6px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center 11px / 2px 2px no-repeat;
}
.empty-note a { color: var(--accent); }
.empty-note code { font-style: normal; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip { background: #fff; border: 1px solid var(--line-2); color: var(--navy); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 500; }

/* Deadlines block — mirrors the Call for Papers document layout */
.deadlines { margin: 1rem 0 1.2rem; }
.deadlines .deadline-group { border-left: 3px solid var(--accent); background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 12px; }
.deadlines .deadline-group p { margin: 0; }
.deadlines .deadline-group strong { color: var(--navy); }
.deadlines .deadline-single { border-left: 3px solid var(--navy); background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 12px; color: var(--navy); }

/* Publisher logos, as they appear in the Call for Papers document.
   Equal-size neutral frames keep the solid-colour LNCS block from
   visually outweighing the line-art Springer wordmark. */
.pub-logos { display: flex; flex-wrap: wrap; gap: 16px; margin: 1.6rem 0; }
.pub-logos a { flex: 1 1 0; min-width: 220px; display: flex; align-items: center; justify-content: center; height: 116px; padding: 14px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pub-logos a:hover { border-color: var(--line-2); }
/* Both marks stay sharp at 2x here: Springer is vector, and lncs.jpg is
   296px tall (so retina-crisp up to a 148px display height). */
.pub-logos img { max-height: 88px; max-width: 100%; width: auto; object-fit: contain; }

/* Topics of interest — deliberately one per line, as in the CFP document */
.topic-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.topic-list li { position: relative; padding: 5px 0 5px 18px; font-size: .95rem; }
.topic-list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.news { list-style: none; margin: 0; padding: 0; }
.news li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.news li:last-child { border-bottom: 0; }
.news time { flex: 0 0 auto; min-width: 112px; color: var(--accent-600); font-weight: 600; font-size: .88rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cfe0f2; margin-top: 10px; }
.site-footer .inner { max-width: var(--maxw); margin-inline: auto; padding: 20px var(--gutter); font-size: .86rem; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; align-items: center; }
.site-footer a { color: #dcebfa; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.noscript-banner { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); color: #7a5a12; text-align: center; padding: 10px 16px; font-size: .9rem; }
.local-banner { background: var(--navy); color: #fff; border-bottom: 2px solid var(--accent); padding: 12px 18px; text-align: center; font-size: .9rem; line-height: 1.5; }
.local-banner strong { color: #fff; }
.local-banner code { background: rgba(255,255,255,.16); padding: 2px 7px; border-radius: 5px; font-size: .9em; }
.local-banner a { color: #bcd4f5; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .topbar__toggle { display: inline-flex; }
  .conf-title { display: none; }
  .site-content { flex-direction: column; gap: 18px; padding-top: 18px; }
  .sidebar { position: static; width: 100%; flex-basis: auto; }
  .menu { display: none; }
  .menu.is-open { display: block; }
  .sidebar__partners { display: none; }
  .pc-list { columns: 1; }
  .speaker { grid-template-columns: 1fr; }
  .speaker__photo { width: 110px; height: 110px; }
}
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .topbar__inner { min-height: 0; }
  .news li { flex-direction: column; gap: 2px; }
}

@media print {
  .topbar__toggle, .sidebar, .site-footer, .local-banner { display: none; }
  .site-content { display: block; }
  a { color: #000; text-decoration: underline; }
}
