:root {
  --primary: #123a63;
  --accent: #c6531a;
  --bg: #f5f5f8;
  --surface: #ffffff;
  --muted: #666666;
  --border-subtle: #e0e0e5;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #222222;
  background: var(--bg);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Top photo strip */

.photo-strip {
  background: #000000;
  overflow-x: auto;
}

.photo-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.photo-strip img {
  display: block;
  height: 90px;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .photo-strip img {
    height: 120px;
  }
}

/* Header / navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  min-width: 220px;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-title a {
  color: inherit;
  text-decoration: none;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  white-space: nowrap;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus {
  border-bottom-color: var(--accent);
  text-decoration: none;
}

@media (max-width: 720px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Layout */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
}

@media (max-width: 480px) {
  .page {
    padding-inline: 1rem;
  }
}

/* Hero */

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin: 1.5rem 0 1rem;
}

.hero-text {
  flex: 2 1 260px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.hero-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0.4rem 0 0.2rem;
}

.hero-meta {
  margin: 0.25rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.9rem;
  padding: 0.2rem 0.85rem;
  border-radius: 999px;
  background: rgba(18, 58, 99, 0.05);
  font-size: 0.8rem;
  color: #333333;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-image {
  flex: 1 1 220px;
}

.hero-image img {
  border-radius: 0.9rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* Sections */

.section {
  margin: 2.5rem 0 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.section h2 {
  font-size: 1.35rem;
  margin: 0;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.section p {
  margin: 0.35rem 0;
}

/* Lists */

ul {
  padding-left: 1.1rem;
  margin: 0.4rem 0 0.6rem;
}

li {
  margin-bottom: 0.25rem;
}

/* Two-column text (for description languages) */

/* .two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

.text-justify {
  text-align: justify;
}
*/

/* Important dates */

.dates-table {
  border-collapse: separate;
  border-spacing: 2.5rem 0.35rem;
  margin-top: 0.25rem;
}

.dates-table th {
  text-align: left;
  font-weight: 600;
  padding-bottom: 0.25rem;
  font-size: 0.95rem;
}

.dates-table td {
  font-size: 0.93rem;
  vertical-align: top;
}

.dates-table tbody tr:first-child td {
  padding-top: 0.1rem;
}

.dates-table tbody tr:last-child td {
  padding-bottom: 0.1rem;
}

@media (max-width: 600px) {
  .dates-table {
    border-spacing: 1.3rem 0.3rem;
  }
}

/* Venue / map */

.venue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .venue-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.map-embed {
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
}

.map-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* Sponsors */

.sponsors {
  border-top: 1px solid var(--border-subtle);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  margin-top: 0.7rem;
}

.sponsor-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sponsor-tuwien img {
  max-width: 120px;
}

.sponsor-fwf img {
  max-width: 140px;
}

.sponsor-p13 img {
  max-width: 120px;
}

.sponsor-erc img {
  max-width: 160px;
}

/* Utility */

.inline-icon {
  height: 1.2em;
  vertical-align: -0.25em;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.page-footer-note {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}


/* Lattice path demo panel next to committee */

.speakers-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(320px, 380px);
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 720px) {
  .speakers-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lattice-panel {
  background: var(--surface);
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 0.75rem 0.9rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.lattice-panel-title {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.lattice-panel-canvas {
  display: block;
  width: 100%;
  height: 300px;
}

/* Call to Action Buttons */
.hero-cta-group {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--accent); /* Orange/Rust color */
  color: white;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(198, 83, 26, 0.3); /* Soft orange glow */
}

.btn-primary:hover {
  background-color: #b04615; /* Slightly darker on hover */
  border-color: #b04615;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background-color: rgba(18, 58, 99, 0.05);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Added specifically for the new Quick Links buttons */
.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.quick-link-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.quick-link-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}


.lang {
  display: block;
  /* Replaces column-count: 2; */
  columns: 2 300px; /* Max 2 columns, but minimum 300px width per column */
  
  column-gap: 40px;
  width: 100%;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-break: normal;
  overflow-wrap: break-word;
}


.column-break {
  display: block;
  break-before: column;
  -webkit-column-break-before: column; /* Safari/Chrome anciens */
  -moz-column-break-before: column;    /* Firefox anciens */
}

.lang-container {
  width: 100%;
}


.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#language-switcher img {
  width: 25px;
  cursor: pointer;
  margin-left: 10px;
}
