﻿/* PPAM-AGCA workshop subsite stylesheet.
 * Self-contained: not derived from the main /lawenda/ stylesheet.
 * Modern sans-serif aesthetic to contrast the scholarly LaTeX-CSS look
 * of Marcin Lawenda's main site, while keeping the same accent colour. */

:root {
  --bg: #ffffff;
  --bg-tint: #f5f8fb;
  --text: #1a1f2b;
  --text-soft: #5a6470;
  --accent: #2d5f7c;         /* steel-blue, matches main ML site */
  --accent-hover: #1c4863;
  --accent-soft: #e6eef4;
  --eu-blue: #003399;
  --border: #d8dde3;
  --shadow: 0 1px 2px rgba(15, 25, 40, 0.04), 0 2px 8px rgba(15, 25, 40, 0.06);
  --radius: 6px;
  --radius-lg: 10px;
  --maxw: 64rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus-visible { color: var(--accent-hover); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 0;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; }

/* --- Top bar / breadcrumb nav --- */
.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 1.25rem;
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  flex-wrap: wrap;
}
.topbar a { color: var(--text); text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar .home-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--text);
}
.topbar .home-mark img { width: 1.2rem; height: 1.2rem; border-radius: 3px; }
.topbar .crumb-sep {
  color: var(--text-soft);
  opacity: 0.55;
}
.topbar .crumb-current {
  color: var(--text-soft);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 3rem 1.25rem 2.5rem;
  background:
    radial-gradient(circle at 1.5px 1.5px, rgba(45, 95, 124, 0.12) 1px, transparent 1.5px) 0 0 / 18px 18px,
    linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero .parent-conf {
  font-size: 0.85rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.hero .parent-conf strong {
  color: var(--accent);
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.18;
  margin: 0 0 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hero .where-when {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 1.2rem;
}
.hero .where-when .sep {
  color: var(--accent);
  margin: 0 0.6em;
  opacity: 0.6;
}
.hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent-hover);
  color: #fff;
}
.btn-outline {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

/* --- Main content container --- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

section + section {
  margin-top: 3rem;
}

section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 1rem;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
section h2::before {
  content: "";
  display: inline-block;
  width: 0.3rem;
  height: 0.95rem;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
  position: relative;
  top: 0.04em;
}
section h3 {
  font-size: 1.05rem;
  margin: 1.3rem 0 0.5rem;
  font-weight: 600;
}

p { margin: 0 0 1rem; }
ul { padding-left: 1.4rem; }
ul li + li { margin-top: 0.3rem; }

/* --- Important dates panel --- */
.dates-panel {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem 1.2rem;
  margin: 1rem 0 0;
  box-shadow: var(--shadow);
}
.dates-panel h2 { margin-top: 0; margin-bottom: 0.8rem; }
.dates-panel dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.45rem 1.4rem;
  margin: 0;
}
.dates-panel dt {
  font-weight: 600;
  color: var(--text);
}
.dates-panel dd {
  margin: 0;
  color: var(--text);
}
.dates-panel .crossed {
  text-decoration: line-through;
  color: var(--text-soft);
  margin-right: 0.6em;
}
.dates-panel .extended {
  font-weight: 600;
  color: var(--accent);
}

/* --- Topic group grid --- */
.topic-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .topic-groups { grid-template-columns: 1fr 1fr; }
}
.topic-group {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem 1.1rem;
}
.topic-group h3 {
  font-size: 0.95rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.6rem;
  font-weight: 700;
}
.topic-group ul {
  margin: 0;
  padding-left: 1.2rem;
}
.topic-group li {
  font-size: 0.95rem;
  color: var(--text);
}

/* Flat topic list (used for 2024 with no thematic grouping) */
.topic-list-flat {
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  column-count: 1;
}
@media (min-width: 720px) {
  .topic-list-flat { column-count: 2; column-gap: 2rem; }
}
.topic-list-flat ul {
  margin: 0;
  padding-left: 1.2rem;
}
.topic-list-flat li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
}

/* --- Edition teaser cards (landing page) --- */
.editions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin: 1.5rem 0 0;
}
@media (min-width: 720px) {
  .editions { grid-template-columns: 1fr 1fr; }
}
.edition-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.edition-card:hover,
.edition-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
  color: var(--text);
  text-decoration: none;
}
.edition-card .edition-meta {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  font-weight: 600;
}
.edition-card .edition-current {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.edition-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}
.edition-card .edition-location {
  color: var(--text);
}
.edition-card .edition-dates {
  font-weight: 600;
}
.edition-card .edition-status {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: auto;
}

/* --- Talk list (programme) --- */
.talks {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 0.5rem 0 1.2rem;
}
.talks li {
  margin: 0 0 0.9rem;
  padding: 0;
  line-height: 1.45;
}
.talks .talk-title {
  display: block;
  font-weight: 500;
  color: var(--text);
}
.talks .talk-authors {
  display: block;
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-top: 0.15rem;
}

/* Inline badges next to talk titles */
.badge-remote,
.badge-winner {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.3rem;
  white-space: nowrap;
}
.badge-remote {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.badge-winner {
  background: #fff4d6;
  color: #8a6300;
  border: 1px solid #d9a900;
}

/* --- Award card --- */
.award-card {
  background: linear-gradient(180deg, #fff8e1 0%, #fff4d6 100%);
  border: 1px solid #d9a900;
  border-left: 4px solid #d9a900;
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  margin: 0.5rem 0 1rem;
}
.award-card .award-title {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  margin: 0 0 0.4rem;
}
.award-card .award-authors {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin: 0;
}

/* --- People (chairs, committee, contact) --- */
.people {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) {
  .people { grid-template-columns: 1fr 1fr; }
}
.people li {
  display: block;
  font-size: 0.95rem;
}
.people .person-name {
  font-weight: 600;
  color: var(--text);
}
.people .person-aff {
  color: var(--text-soft);
  font-size: 0.88rem;
}

/* --- Funder strip footer --- */
.funder-strip {
  background: var(--bg-tint);
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem 1.2rem;
}
.funder-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.funder-logos {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.funder-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.funder-logo svg {
  width: 2rem;
  height: 1.4rem;
  border-radius: 2px;
}
.funder-text strong { color: var(--text); }

.site-footer {
  text-align: center;
  padding: 1rem 1.25rem 2rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}
.site-footer a { color: var(--text-soft); text-decoration: underline; }
.site-footer a:hover { color: var(--accent); }

/* --- Print stylesheet --- */
@media print {
  :root { --bg: #fff; --bg-tint: #fff; --text: #000; --text-soft: #555; }
  body { font-size: 11pt; line-height: 1.4; }
  .topbar, .hero-actions, .site-footer, .skip-link { display: none; }
  main { padding: 0; max-width: 100%; }
  .hero { padding: 1rem 0; background: #fff; border: none; }
  .dates-panel { background: #fff; border: 1px solid #888; box-shadow: none; }
  .topic-group, .topic-list-flat { background: #fff; border: 1px solid #ccc; }
  .edition-card { box-shadow: none; }
  a { color: #000; text-decoration: none; }
  h2, h3 { page-break-after: avoid; }
  section { page-break-inside: avoid; }
}
