:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --text: #1f2937;
  --muted: #5b6472;
  --line: #d9e0e8;

  --primary: #0f1c25;
  --primary-2: #0f1c25;
  --accent: #0f1c25;
  --accent-soft: rgba(238, 243, 246, 0.9);

  --maxw: 1120px;
  --shadow: 0 10px 28px rgba(15, 28, 37, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
}

/* ===== Top navigation ===== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  background: transparent;
  border-bottom: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-height: 72px;
  padding-top: 18px;
}

.nav.has-brand {
  justify-content: space-between;
}


.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--primary);
  font-weight: 600;
}

.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: 1px;
  color: #3580DB !important;
}

.brand:hover {
  opacity: 0.7;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  overflow: visible;
  padding: 0;
  border-bottom: none;
  background: transparent;
}

/* 水带只挂在首页顶部 */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: -100px;
  width: 100%;
  height: 650px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      10deg,
      rgba(255, 255, 255, 0.00) 0%,
      rgba(120, 170, 220, 0.00) 32%,
      rgba(120, 170, 220, 0.42) 45%,
      rgba(120, 170, 220, 0.78) 53%,
      rgba(120, 170, 220, 0.52) 60%,
      rgba(120, 170, 220, 0.24) 66%,
      rgba(255, 255, 255, 0.30) 72%,
      rgba(255, 255, 255, 0.82) 86%,
      rgba(255, 255, 255, 1.00) 100%
    ),
    radial-gradient(
      circle at 18% 0%,
      rgba(120, 170, 220, 0.24) 0%,
      rgba(120, 170, 220, 0.12) 18%,
      rgba(255, 255, 255, 0.00) 32%,
      rgba(255, 255, 255, 1.00) 60%
    );
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 78px;
  padding-bottom: 140px;
}

.hero-banner {
  width: min(var(--maxw), calc(100% - 30px));
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 28px;
}

/* 左边波形 */
.hero-logo-left img {
  display: block;
  width: 250px;
  height: auto;
  transform: translateY(-45px);
}

/* 右边整体 */
.hero-logo-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 110px;
  transform: translateX(35px);
  width: 812px;
}

/* 第一行：WAVE | tagline */
.hero-topline {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.hero-wave-text {
  font-family: 'Cinzel', serif;
  font-size: clamp(64px, 5.8vw, 92px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 2px;
  color: #0f1c25;
  flex-shrink: 0;
}

.hero-divider {
  width: 1px;
  height: 72px;
  background: #0f1c25;
  opacity: 0.45;
  flex-shrink: 0;
}

.hero-tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(20px, 1.8vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.8px;
  color: #0f1c25;
  text-transform: none;
  transform: translateX(10px);
}

.hero-meta-line {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  width: 100%;
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 600;
  color: #0f1c25;
  padding: 0 4px;
}



/* ===== About section ===== */

.inline-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  opacity: 0.7;
  text-decoration: none;
}

main > section:not(.hero) {
  background: #ffffff;
  position: relative;
  z-index: 1;
}

.about-section {
  position: relative;
  z-index: 2;
  margin-top: -150px;
  background: transparent !important;
}

.about-section .container {
  background: transparent;
}
.about-section .container {
  width: min(var(--maxw), calc(100% - 32px));
  max-width: none;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.about-section p {
  margin: 0 0 36px;
  line-height: 1.5;
  margin-bottom: 2em;
  text-align: justify;
}

.section-head {
  margin-bottom: 20px;
  max-width: none;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  color: #000000;
}

.section-head p {
  margin: 0 0 1.2em;
  color: #000000;
  max-width: none;
  width: 100%;
}

/* ===== Hide old unused home text blocks ===== */

.hero-bg,
.hero-text,
.eyebrow {
  display: none;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--primary);
}

.hero p,
.page-hero p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 72ch;
}

/* ===== Generic page hero ===== */

.page-hero {
  padding: 120px 0 0px;
  background: #ffffff;
  border-bottom: none;
}

.page-hero h1 {
  margin-bottom: 10px;
}

/* ===== Sections ===== */

main section {
  padding: 40px 0;
}

/* ===== Cards ===== */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.card-body {
  padding: 22px;
}

.speakers-section .container {
  padding-left: -14px;
}

.person-top {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 50px;
  align-items: start;
}

.person-photo {
  width: 160px;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
  border: none;
  padding: 0;
  flex-shrink: 0;
  margin-left: -20px;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.person-photo img.speaker-johanne {
  object-position: center;
}

.person-photo img.speaker-inge {
  object-position: 10% 35%;
   transform: scale(1.1); 
}

.person-photo img.speaker-qi {
/*  object-position: 10% 10%;
   transform: scale(1); */
   object-position: center;
}

.person-name {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 1.2rem;
}

.person-name a {
  color: #000000;              /* 黑色 */
  text-decoration: underline; /* 下划线 */
  text-underline-offset: 3px; /* 下划线稍微往下，比较好看 */
font-weight: 700;
  font-size: 1.25rem;
}

.person-name a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.person-role {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.96rem;
}

.person-block p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.96rem;
}

.tag {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--primary);
  font-size: 0.83rem;
  font-weight: 700;
}

/* ===== Programme ===== */

.programme-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: var(--primary);
  color: white;
  text-align: left;
  padding: 16px 18px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

tbody td {
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.97rem;
}

tbody tr:nth-child(even) {
  background: #fbfcfd;
}

.time {
  width: 180px;
  white-space: nowrap;
  font-weight: 700;
  color: var(--primary);
}

/* ===== Two-column content ===== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.info-box h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 1.2rem;
}

.info-box p {
  margin: 0 0 10px;
  color: var(--muted);
}

/* ===== Buttons ===== */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary);
  opacity: 0.92;
  text-decoration: none;
}

.btn-secondary {
  background: white;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--surface-2);
  text-decoration: none;
}

/* ===== Committee ===== */

.committee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.committee-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.committee-card h4 {
  margin: 0 0 6px;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px; /* 下划线稍微往下，比较好看 */
  font-size: 1.25rem;
  font-weight: 600;
}

.committee-card h4:hover {
  opacity: 0.7;
  text-decoration: none;
}

.committee-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.committee-person {
  display: flex;
  align-items: center;
  gap: 18px;
}

.committee-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.committee-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-anne {
  object-position: center 100%;
  transform: scale(1);
}

.photo-manon {
  object-position: center -50%;
  transform: scale(1.3);
}

.photo-sia {
  object-position: center 0%;
  transform: scale(1.3);
}

.photo-hanzhi {
  object-position: 40% 10%;
}


/* ===== Footer ===== */

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.footer strong {
  color: var(--primary);
}

/* ===== Responsive ===== */

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

  .person-top {
    grid-template-columns: 1fr;
  }

  .person-photo {
    width: 100%;
    height: 220px;
  }

  .nav {
    justify-content: flex-start;
    padding-top: 14px;
    min-height: auto;
  }

  .nav-links {
    gap: 12px 16px;
  }

  .hero::before {
    top: -60px;
    height: 500px;
  }

  .hero-inner {
    padding-top: 96px;
    padding-bottom: 80px;
  }

  .hero-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-logo-left img {
    width: 200px;
    transform: none;
  }

  .hero-logo-right {
    width: 100%;
    transform: none;
    padding-top: 0;
  }

  .hero-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero-divider {
    display: none;
  }

  .hero-tagline {
    transform: none;
  }

  .hero-meta-line {
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
  }

  .about-section {
    margin-top: -120px;
  }

  .about-section .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-hero {
    padding-top: 96px;
  }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
  .brand {
    display: none;
  }
  .two-col,
  .committee-grid {
    grid-template-columns: 1fr;
  }

  /* 顶部导航：允许两行，但给页面更多顶部空间 */
  .nav {
    justify-content: flex-start;
    padding-top: 14px;
    min-height: auto;
  }

  .nav-links {
    gap: 12px 16px;
    font-size: 0.95rem;
  }

  /* 首页 hero 水带 */
  .hero::before {
    top: -40px;
    height: 520px;
  }

  /* 关键：手机上也保持 logo 在左，文字在右 */
  .hero-inner {
    padding-top: 140px;
    padding-bottom: 60px;
  }

  .hero-banner {
    width: min(var(--maxw), calc(100% - 10px));
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    align-items: start;
  }

  .hero-logo-left img {
    width: 90px;
    height: auto;
    transform: translateY(-40px);
  }

  .hero-logo-right {
    width: 100%;
    padding-top: 2px;
    transform: translate(-25px, 25px);  /* 👈 往左移 */
  }

  /* 关键：保持横排，不要改成 column */
    
.hero-topline {
  display: grid;
  grid-template-columns: auto 1px 1fr;
  align-items: start;
  column-gap: 8px;
  width: 100%;
  text-align: right
}

.hero-wave-text {
  font-size: 2rem;
  line-height: 0.95;
  letter-spacing: 0.3px;
}

.hero-divider {
  display: block;
  width: 1px;
  height: 100%;
  background: #0f1c25;
  opacity: 0.45;
  align-self: center;
}

.hero-tagline {
  font-size: 0.7rem;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  max-width: none;
  margin-left: 0;
  justify-self: stretch;
}

.hero-meta-line {
  margin-top: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 8px;
  width: 100%;
  font-size: 0.6rem;
  padding: 0;
  text-align: right
}

  .page-hero {
    padding-top: 130px;
  }

  /* About 区手机端不要太大 */
  .about-section {
    margin-top: -70px;
  }

  .about-section .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .about-section .section-head h2 {
    font-size: 1.55rem;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .about-section p {
    text-align: left;
    font-size: 1rem;
    line-height: 1.65;
  }

  /* 其他页面：标题和顶部按钮不要重叠 */
  .page-hero {
    padding-top: 150px;
    padding-bottom: 12px;
  }

  .page-hero h1 {
    font-size: 2.1rem;
    line-height: 1.05;
    margin-bottom: 6px;
  }

  .person-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .person-photo {
    width: 100%;
    height: 220px;
    margin-left: 0;
  }
  
  .person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* ===== Archive ===== */
/* ===== Archive ===== */

.archive-section {
  padding-top: 24px;
}

.archive-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.archive-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;

  display: flex;
  justify-content: space-between;
  align-items: center;

  text-align: left;
}

.archive-title {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.archive-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.96rem;
}

.archive-icon {
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
  margin-left: 20px;
}

.archive-content {
  display: none;
  margin-top: 22px;
  padding-left: 6px;
}

.archive-content.open {
  display: block;
}

.archive-block {
  margin-bottom: 24px;
}

.archive-block h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--primary);
}

.archive-block ul {
  margin: 0;
  padding-left: 22px;
}

.archive-block li {
  margin-bottom: 6px;
}

.archive-block p {
  margin: 0;
}

/* ===== Archive ===== */

.archive-entry {
  margin-bottom: 28px;
}

.archive-main {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--text);
}

.archive-detail-btn {
  border: none;
  background: none;
  padding: 0;
  margin-left: 8px;
  color: #0b6edc;
  font: inherit;
  cursor: pointer;
}

/* ===== Archive ===== */

.archive-item {
  margin-bottom: 20px;
}

.archive-summary {
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 8px;
}

.archive-summary strong {
  margin-right: 8px;
}

.archive-summary:hover {
  opacity: 0.75;
}

.archive-detail {
  margin-top: 8px;
  padding-left: 22px;
}

.archive-detail p {
  margin: 0 0 8px;
  line-height: 1.5;
}

/* ===== Archive ===== */

.archive-section {
  padding-top: 24px;
}

.archive-item {
  margin-bottom: 24px;
}

.archive-summary {
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.5;
}

.archive-summary strong {
  margin-right: 8px;
}

.archive-summary:hover {
  opacity: 0.75;
}

.archive-detail {
  margin-top: 10px;
  padding-left: 24px;
}

.archive-detail p {
  margin: 0 0 8px;
  line-height: 1.5;
}


/* mobile */
@media (max-width: 900px) {

  .archive-title {
    font-size: 1.25rem;
  }

  .archive-meta {
    font-size: 0.85rem;
  }

  .archive-icon {
    font-size: 1.6rem;
  }
}
}

/* ===== Archive redesigned ===== */

.archive-section {
  padding-top: 28px;
  padding-bottom: 72px;
}

.archive-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 36px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

.archive-photo-wrap {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f6f8fa;
}

.archive-photo {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 46%;
}

.archive-info {
  padding-top: 4px;
}

.archive-year-line {
  margin-bottom: 18px;
}

.archive-year-line h2 {
  margin: 0 0 6px;
  font-size: 1.8rem;
  line-height: 1.1;
  color: var(--primary);
}

.archive-year-line p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.archive-intro {
  margin: 0 0 22px;
  color: var(--text);
  line-height: 1.65;
}

.archive-details {
  margin: 12px 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.archive-details:last-child {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.archive-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
}

.archive-details summary:hover {
  opacity: 0.75;
}

.archive-details ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.archive-details li {
  margin-bottom: 6px;
  color: var(--text);
}

.archive-details p {
  margin: 10px 0 0;
  color: var(--text);
}

@media (max-width: 900px) {
  .archive-section {
    padding-top: 18px;
    padding-bottom: 48px;
  }

  .archive-feature {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .archive-photo {
    height: 240px;
  }

  .archive-year-line h2 {
    font-size: 1.5rem;
  }

  .archive-year-line p,
  .archive-intro,
  .archive-details li,
  .archive-details p {
    font-size: 0.98rem;
  }
}


/* ===== Clean responsive hero alignment ===== */
/*
Design goals:
1. Logo left edge aligns with the About text left edge.
2. Tagline/location right edge aligns with About text right edge and nav right edge.
3. If content width is unchanged, hero width is unchanged.
4. Logo / WAVE-date / tagline-location scale together through one grid.
*/

/* Shared horizontal frame */
.site-header .container,
.hero-inner,
.about-section .container {
  width: min(var(--maxw), calc(100% - 32px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero {
  position: relative !important;
  overflow: visible !important;
  background: transparent !important;
}

.hero::before {
  top: -100px !important;
  height: 650px !important;
}

/* Hero stays in normal document flow; About never overlaps it. */
.hero-inner {
  position: relative !important;
  z-index: 1 !important;
  padding-top: 78px !important;
  padding-bottom: 118px !important;
  height: auto !important;
  overflow: visible !important;
}

/* One proportional grid from left edge to right edge. */
.hero-banner {
  width: 100% !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 22% 31% 47% !important;
  column-gap: 0 !important;
  align-items: start !important;
  justify-content: stretch !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  height: auto !important;
  container-type: inline-size !important;
}

/* Left logo column */
.hero-logo-left {
  grid-column: 1 !important;
  justify-self: start !important;
  align-self: start !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
}

.hero-logo-left img {
  display: block !important;
  width: 88% !important;
  max-width: 250px !important;
  min-width: 0 !important;
  height: auto !important;
  transform: translateY(-42px) !important;
}

/* Middle + right columns */
.hero-logo-right {
  grid-column: 2 / 4 !important;
  width: 100% !important;
  padding-top: 108px !important;
  transform: none !important;
  display: grid !important;
  grid-template-columns: 39.75% 1px 60.25% !important;
  column-gap: 0 !important;
  row-gap: 18px !important;
  align-items: center !important;
  position: static !important;
  height: auto !important;
}

.hero-topline {
  display: contents !important;
}

.hero-wave-text {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  font-family: 'Cinzel', serif !important;
  font-size: clamp(52px, 7.2cqw, 86px) !important;
  line-height: 0.95 !important;
  font-weight: 600 !important;
  letter-spacing: 1.4px !important;
  white-space: nowrap !important;
  color: #0f1c25 !important;
}

.hero-divider {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  align-self: center !important;
  display: block !important;
  width: 1px !important;
  height: clamp(46px, 5.7cqw, 68px) !important;
  background: #0f1c25 !important;
  opacity: 0.45 !important;
  transform: none !important;
}

.hero-tagline {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  align-self: center !important;
  font-family: 'Cinzel', serif !important;
  font-size: clamp(20px, 2.75cqw, 32px) !important;
  line-height: 1.18 !important;
  font-weight: 600 !important;
  letter-spacing: 0.35px !important;
  text-align: right !important;
  white-space: nowrap !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  color: #0f1c25 !important;
}

.hero-meta-line {
  grid-column: 1 / 4 !important;
  grid-row: 2 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 39.75% 1px 60.25% !important;
  column-gap: 0 !important;
  align-items: center !important;
  font-family: 'Cinzel', serif !important;
  font-size: clamp(16px, 2cqw, 24px) !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  color: #0f1c25 !important;
}

.hero-meta-line span:first-child {
  grid-column: 1 !important;
  justify-self: start !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.hero-meta-line span:last-child {
  grid-column: 3 !important;
  justify-self: end !important;
  text-align: right !important;
  white-space: nowrap !important;
}

/* About follows the hero; no negative overlap. */
.about-section {
  margin-top: -80px !important;
  position: relative !important;
  z-index: 2 !important;
  background: transparent !important;
}

.about-section .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Tablet / narrow desktop: same grid, just less vertical whitespace. */
@media (max-width: 900px) {
  .brand {
    display: none !important;
  }

  .site-header .container,
  .hero-inner,
  .about-section .container {
    width: min(var(--maxw), calc(100% - 48px)) !important;
  }

  .nav {
    justify-content: flex-start !important;
    padding-top: 14px !important;
    min-height: auto !important;
  }

  .nav-links {
    gap: 12px 16px !important;
    font-size: 0.95rem !important;
  }

  .hero::before {
    top: 78px !important;
    height: 390px !important;
  }

  .hero-inner {
    padding-top: 122px !important;
    padding-bottom: 72px !important;
  }

  .hero-logo-left img {
    width: 88% !important;
    transform: translateY(-34px) !important;
  }

  .hero-logo-right {
    padding-top: 72px !important;
    row-gap: 10px !important;
  }

  .hero-wave-text {
    font-size: clamp(28px, 7.2cqw, 58px) !important;
    letter-spacing: 0.6px !important;
  }

  .hero-divider {
    height: clamp(28px, 5.7cqw, 50px) !important;
  }

  .hero-tagline {
    font-size: clamp(10px, 2.75cqw, 24px) !important;
    line-height: 1.16 !important;
    letter-spacing: 0.1px !important;
  }

  .hero-meta-line {
    font-size: clamp(8px, 2cqw, 18px) !important;
  }

  .about-section {
    margin-top: -38px !important;
  }

  .about-section .section-head h2 {
    font-size: clamp(1.7rem, 5.6vw, 2.35rem) !important;
    line-height: 1.1 !important;
  }

  .about-section p {
    font-size: clamp(1rem, 3.2vw, 1.18rem) !important;
    line-height: 1.55 !important;
    text-align: left !important;
  }
}

/* Phone: do not let the 3-column banner overflow.
   Keep boundaries; reduce vertical offsets and scale the whole hero system smoothly. */
@media (max-width: 560px) {
  .site-header .container,
  .hero-inner,
  .about-section .container {
    width: min(var(--maxw), calc(100% - 40px)) !important;
  }

  .hero::before {
    top: 86px !important;
    height: 300px !important;
  }

  .hero-inner {
    padding-top: 118px !important;
    padding-bottom: 48px !important;
  }

  .hero-banner {
    grid-template-columns: 22% 31% 47% !important;
  }

  .hero-logo-left img {
    width: 86% !important;
    transform: translateY(-22px) !important;
  }

  .hero-logo-right {
    padding-top: 50px !important;
    row-gap: 6px !important;
  }

  .hero-wave-text {
    font-size: clamp(22px, 7.1cqw, 34px) !important;
  }

  .hero-divider {
    height: clamp(22px, 5.5cqw, 32px) !important;
  }

  .hero-tagline {
    font-size: clamp(7.5px, 2.65cqw, 12px) !important;
    letter-spacing: 0 !important;
  }

  .hero-meta-line {
    font-size: clamp(6.5px, 1.9cqw, 10px) !important;
  }

  .about-section {
    margin-top: -26px !important;
  }
}

@media (max-width: 380px) {
  .site-header .container,
  .hero-inner,
  .about-section .container {
    width: min(var(--maxw), calc(100% - 32px)) !important;
  }

  .nav-links {
    gap: 9px 12px !important;
    font-size: 0.88rem !important;
  }

  .hero-inner {
    padding-top: 112px !important;
    padding-bottom: 42px !important;
  }

  .hero-logo-right {
    padding-top: 46px !important;
  }

  .about-section {
    margin-top: -20px !important;
  }
}


/* ===== Very narrow mobile fallback ===== */
/* Below this width, the horizontal hero becomes too compressed. 
   We switch to a stacked layout to keep the page readable and avoid overlap. */
@media (max-width: 360px) {
  .site-header .container,
  .hero-inner,
  .about-section .container {
    width: min(var(--maxw), calc(100% - 32px)) !important;
  }

  .nav {
    padding-top: 12px !important;
  }

  .nav-links {
    gap: 8px 14px !important;
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
  }

  .hero::before {
    top: 84px !important;
    height: 360px !important;
  }

  .hero-inner {
    padding-top: 112px !important;
    padding-bottom: 44px !important;
  }

  .hero-banner {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 58px 1fr !important;
    column-gap: 10px !important;
    row-gap: 8px !important;
    align-items: start !important;
  }

  .hero-logo-left {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    align-self: start !important;
    justify-self: start !important;
  }

  .hero-logo-left img {
    width: 58px !important;
    max-width: 58px !important;
    transform: translateY(-8px) !important;
  }

  .hero-logo-right {
    grid-column: 2 !important;
    width: 100% !important;
    padding-top: 0 !important;
    display: grid !important;
    grid-template-columns: auto 1px 1fr !important;
    column-gap: 5px !important;
    row-gap: 6px !important;
    align-items: center !important;
  }

  .hero-topline {
    display: contents !important;
  }

  .hero-wave-text {
    grid-column: 1 !important;
    grid-row: 1 !important;
    font-size: 1.55rem !important;
    line-height: 0.95 !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
  }

  .hero-divider {
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: 24px !important;
    width: 1px !important;
    display: block !important;
    align-self: center !important;
  }

  .hero-tagline {
    grid-column: 3 !important;
    grid-row: 1 !important;
    font-size: 0.46rem !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
    text-align: right !important;
    white-space: nowrap !important;
    justify-self: end !important;
    max-width: none !important;
  }

  .hero-meta-line {
    grid-column: 1 / 4 !important;
    grid-row: 2 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: auto 1px 1fr !important;
    column-gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.42rem !important;
    line-height: 1.1 !important;
  }

  .hero-meta-line span:first-child {
    grid-column: 1 !important;
    justify-self: start !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  .hero-meta-line span:last-child {
    grid-column: 3 !important;
    justify-self: end !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  .about-section {
    margin-top: -18px !important;
  }

  .about-section .section-head h2 {
    font-size: 1.55rem !important;
    line-height: 1.08 !important;
  }

  .about-section p {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }
}

/* Extra safety for ultra-small preview widths */
@media (max-width: 260px) {
  .nav-links {
    font-size: 0.76rem !important;
    gap: 7px 10px !important;
  }

  .hero-banner {
    grid-template-columns: 48px 1fr !important;
    column-gap: 8px !important;
  }

  .hero-logo-left img {
    width: 48px !important;
    max-width: 48px !important;
  }

  .hero-wave-text {
    font-size: 1.25rem !important;
  }

  .hero-tagline {
    font-size: 0.38rem !important;
  }

  .hero-meta-line {
    font-size: 0.34rem !important;
  }
}


/* ===== Ultra-narrow stacked mobile fallback ===== */
/* For extremely narrow previews, keep navigation above the blue band and make
   the hero a readable stacked block. This prevents the water band and logo from
   overlapping the About text. */
@media (max-width: 300px) {
  .site-header {
    position: relative !important;
    background: #ffffff !important;
    z-index: 50 !important;
  }

  .site-header .container,
  .hero-inner,
  .about-section .container {
    width: min(var(--maxw), calc(100% - 28px)) !important;
  }

  .nav {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    justify-content: flex-start !important;
  }

  .nav-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px 10px !important;
    font-size: 0.68rem !important;
    line-height: 1.15 !important;
  }

  .hero {
    background:
      linear-gradient(
        10deg,
        rgba(255, 255, 255, 0.00) 0%,
        rgba(120, 170, 220, 0.58) 45%,
        rgba(120, 170, 220, 0.82) 56%,
        rgba(255, 255, 255, 0.75) 88%,
        rgba(255, 255, 255, 1.00) 100%
      ) !important;
  }

  .hero::before {
    display: none !important;
  }

  .hero-inner {
    padding-top: 16px !important;
    padding-bottom: 24px !important;
  }

  .hero-banner {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 44px 1fr !important;
    column-gap: 8px !important;
    align-items: center !important;
  }

  .hero-logo-left {
    grid-column: 1 !important;
    align-self: center !important;
    justify-self: start !important;
  }

  .hero-logo-left img {
    width: 44px !important;
    max-width: 44px !important;
    height: auto !important;
    transform: none !important;
  }

  .hero-logo-right {
    grid-column: 2 !important;
    width: 100% !important;
    padding-top: 0 !important;
    display: grid !important;
    grid-template-columns: auto 1px 1fr !important;
    column-gap: 4px !important;
    row-gap: 4px !important;
    align-items: center !important;
  }

  .hero-topline {
    display: contents !important;
  }

  .hero-wave-text {
    grid-column: 1 !important;
    grid-row: 1 !important;
    font-size: 1.08rem !important;
    line-height: 0.95 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  .hero-divider {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 1px !important;
    height: 18px !important;
    display: block !important;
  }

  .hero-tagline {
    grid-column: 3 !important;
    grid-row: 1 !important;
    font-size: 0.31rem !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    text-align: right !important;
    white-space: nowrap !important;
    justify-self: end !important;
    max-width: none !important;
  }

  .hero-meta-line {
    grid-column: 1 / 4 !important;
    grid-row: 2 !important;
    display: grid !important;
    grid-template-columns: auto 1px 1fr !important;
    column-gap: 4px !important;
    width: 100% !important;
    font-size: 0.29rem !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hero-meta-line span:first-child {
    grid-column: 1 !important;
    justify-self: start !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  .hero-meta-line span:last-child {
    grid-column: 3 !important;
    justify-self: end !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  .about-section {
    margin-top: 0 !important;
    padding-top: 18px !important;
    background: #ffffff !important;
  }

  .about-section .section-head h2 {
    font-size: 1.18rem !important;
    line-height: 1.08 !important;
  }

  .about-section p {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }
}

@media (max-width: 240px) {
  .nav-links {
    font-size: 0.58rem !important;
    gap: 4px 8px !important;
  }

  .hero-banner {
    grid-template-columns: 36px 1fr !important;
    column-gap: 6px !important;
  }

  .hero-logo-left img {
    width: 36px !important;
    max-width: 36px !important;
  }

  .hero-wave-text {
    font-size: 0.9rem !important;
  }

  .hero-tagline {
    font-size: 0.25rem !important;
  }

  .hero-meta-line {
    font-size: 0.24rem !important;
  }
}


/* ===== Ultra-narrow right-edge alignment fix ===== */
/* In very narrow views, keep the right edge of tagline/location aligned
   with the right edge of the text container. */
@media (max-width: 300px) {
  .site-header .container,
  .hero-inner,
  .about-section .container {
    width: calc(100% - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-banner {
    width: 100% !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    column-gap: 8px !important;
  }

  .hero-logo-right {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: max-content 1px minmax(0, 1fr) !important;
    column-gap: 4px !important;
  }

  .hero-tagline {
    justify-self: end !important;
    text-align: right !important;
    width: auto !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    margin-right: 0 !important;
  }

  .hero-meta-line {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: max-content 1px minmax(0, 1fr) !important;
    column-gap: 4px !important;
  }

  .hero-meta-line span:last-child {
    justify-self: end !important;
    text-align: right !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 240px) {
  .site-header .container,
  .hero-inner,
  .about-section .container {
    width: calc(100% - 24px) !important;
  }

  .hero-banner {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    column-gap: 6px !important;
  }

  .hero-logo-right,
  .hero-meta-line {
    column-gap: 3px !important;
  }
}


/* ===== Hero text scale-up refinement ===== */
/* Slightly enlarges the WAVE block, tagline, date, and location while keeping
   the same proportional relationship across screen widths. */
.hero-logo-right {
  grid-template-columns: 37% 1px 63% !important;
}

.hero-topline {
  grid-template-columns: 37% 1px 63% !important;
}

.hero-wave-text {
  font-size: clamp(60px, 8.1cqw, 96px) !important;
}

.hero-divider {
  height: clamp(50px, 6.2cqw, 74px) !important;
}

.hero-tagline {
  font-size: clamp(23px, 3.05cqw, 36px) !important;
  line-height: 1.16 !important;
}

.hero-meta-line {
  grid-template-columns: 37% 1px 63% !important;
  font-size: clamp(18px, 2.25cqw, 27px) !important;
}

/* Keep the same ratios on narrower screens instead of allowing any sudden jump. */
@media (max-width: 900px) {
  .hero-logo-right,
  .hero-topline,
  .hero-meta-line {
    grid-template-columns: 37% 1px 63% !important;
  }

  .hero-wave-text {
    font-size: clamp(32px, 8.1cqw, 64px) !important;
  }

  .hero-divider {
    height: clamp(30px, 6.2cqw, 54px) !important;
  }

  .hero-tagline {
    font-size: clamp(12px, 3.05cqw, 26px) !important;
    line-height: 1.14 !important;
  }

  .hero-meta-line {
    font-size: clamp(9px, 2.25cqw, 20px) !important;
  }
}

@media (max-width: 560px) {
  .hero-logo-right,
  .hero-topline,
  .hero-meta-line {
    grid-template-columns: 37% 1px 63% !important;
  }

  .hero-wave-text {
    font-size: clamp(24px, 8.1cqw, 38px) !important;
  }

  .hero-divider {
    height: clamp(23px, 6.2cqw, 36px) !important;
  }

  .hero-tagline {
    font-size: clamp(8px, 3.05cqw, 14px) !important;
  }

  .hero-meta-line {
    font-size: clamp(7px, 2.25cqw, 11px) !important;
  }
}

@media (max-width: 360px) {
  .hero-logo-right,
  .hero-topline,
  .hero-meta-line {
    grid-template-columns: 37% 1px 63% !important;
  }

  .hero-wave-text {
    font-size: 1.72rem !important;
  }

  .hero-divider {
    height: 26px !important;
  }

  .hero-tagline {
    font-size: 0.5rem !important;
  }

  .hero-meta-line {
    font-size: 0.45rem !important;
  }
}

@media (max-width: 300px) {
  .hero-logo-right,
  .hero-topline,
  .hero-meta-line {
    grid-template-columns: 37% 1px 63% !important;
  }

  .hero-wave-text {
    font-size: 1.18rem !important;
  }

  .hero-divider {
    height: 19px !important;
  }

  .hero-tagline {
    font-size: 0.34rem !important;
  }

  .hero-meta-line {
    font-size: 0.31rem !important;
  }
}


/* ===== Programme list layout ===== */
.programme-section {
  padding-top: 26px;
}

.programme-intro {
  max-width: 900px;
  margin: 0 0 28px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
}

.programme-list {
  width: 100%;
  max-width: 980px;
}

.program-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 18px 22px;
  border-top: 1px solid #d7d7d7;
}

.program-row:nth-child(odd) {
  background: #f0f0f0;
}

.program-row:nth-child(even) {
  background: #ffffff;
}

.program-time {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.program-activity {
  color: var(--text);
  line-height: 1.45;
}

.program-note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .program-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 18px;
  }

  .program-time {
    white-space: normal;
  }

  .programme-intro {
    font-size: 1rem;
  }
}

/* ---- Footer with sponsor logos ---- */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-sponsors {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.sponsor-label {
  font-size: 0.74rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}
.sponsor-logos {
  display: flex;
  align-items: center;
  gap: 26px;
}
.sponsor-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}
.sponsor-carlsberg { height: 30px; width: auto; display: block; }
.sponsor-villum    { height: 15px; width: auto; display: block; }
.sponsor-square    { height: 52px; width: auto; display: block; }

@media (max-width: 760px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-sponsors { align-items: flex-start; }
  .sponsor-logos { flex-wrap: wrap; gap: 20px; }
}

/* ---- Footer sponsor adjustments (home only) ---- */
.footer-inner { align-items: flex-end; }       /* bottom-align with footer text */
.footer-sponsors { gap: 0; }
.sponsor-label { display: none; }               /* remove "Supported by" */
.sponsor-logos { align-items: flex-end; gap: 30px; }
.sponsor-col { justify-content: flex-end; gap: 12px; }
.sponsor-carlsberg { height: 32px; }
.sponsor-villum    { height: 24px; }
.sponsor-square    { height: 74px; }            /* enlarge BARC + KU */

/* ---- Registration link (plain blue bold text, no box) ---- */
.reg-text { color: var(--text); max-width: 760px; line-height: 1.7; }
.reg-link { margin-top: 18px; }
.reg-link a {
  color: #2563eb;
  font-weight: 800;
  font-size: 1.12rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reg-link a:hover { opacity: 0.75; }

/* ---- Adjustments: Villum width = Carlsberg width; content right edge = nav right edge ---- */
.sponsor-col { width: 150px; align-items: stretch; }
.sponsor-carlsberg, .sponsor-villum { width: 100%; height: auto; }
.programme-list { max-width: none; }   /* align right edge with Archive nav */
.reg-text { max-width: none; }         /* align right edge with Archive nav */

/* ---- More adjustments ---- */
.programme-intro { max-width: none; }          /* right edge -> Archive */
.sponsor-square { height: 85px; }              /* = Carlsberg + Villum stacked height */

/* ---- Registration page (clean, frameless) ---- */
.reg-section { padding-top: 8px; }
.reg-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 56px;
  align-items: start;
}
.reg-text {
  max-width: none;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
  margin: 0;
}
.reg-link { margin-top: 26px; }
.reg-link a {
  color: #2563eb;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  border-bottom: 2px solid #2563eb;
  padding-bottom: 2px;
  transition: 0.2s ease;
}
.reg-link a:hover { color: #1e4fc4; border-color: #1e4fc4; }
.reg-details {
  border-left: 3px solid #dbe6f3;
  padding-left: 26px;
}
.reg-details-label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.reg-details dl { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.reg-details dt {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.reg-details dd { margin: 0; font-weight: 700; color: var(--primary); font-size: 1.02rem; }
@media (max-width: 760px) {
  .reg-grid { grid-template-columns: 1fr; gap: 32px; }
  .reg-details { border-left: none; border-top: 1px solid #e3e9f0; padding-left: 0; padding-top: 24px; }
}

/* ---- Home: About + prominent Registration box (v2) ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 52px;
  align-items: start;
}
.about-main { text-align: justify; }
.about-main .section-head { margin-bottom: 14px; }
.about-main p { margin: 0 0 18px; color: var(--text); line-height: 1.75; }
.register-box {
  position: sticky;
  top: 28px;
  text-align: left;
  background: linear-gradient(160deg, #dcebfb, #c2d9f2);
  border-radius: 18px;
  padding: 26px 26px 28px;
  box-shadow: 0 12px 30px rgba(15, 28, 37, 0.12);
}
.register-box-label {
  display: block; font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #3a4a63; font-weight: 700; margin-bottom: 14px;
}
.register-box-deadline { margin: 0; font-size: 1.02rem; color: #46566f; line-height: 1.35; }
.register-box-deadline strong { display: block; margin-top: 4px; font-size: 1.7rem; color: #0f1c25; }
.register-box-note { margin: 12px 0 20px; font-size: 0.92rem; color: #46566f; }
.register-box-link {
  display: inline-block; font-weight: 800; font-size: 1.06rem; color: #1d4ed8;
  text-decoration: none; border-bottom: 2px solid #1d4ed8; padding-bottom: 2px; transition: 0.2s ease;
}
.register-box-link:hover { opacity: 0.8; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .register-box { position: static; }
}

/* ---- Refined registration arrow (single-column) ---- */
.register-cta { text-align: right; margin: 4px 0 1.2em !important; }
.register-cta a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: 0.25s ease;
}
.register-cta-text {
  position: relative;
  padding-bottom: 2px;
  background-image: linear-gradient(#1d4ed8, #1d4ed8);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.3s ease;
}
.register-cta a:hover .register-cta-text { background-size: 100% 2px; }
.register-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #1d4ed8;
  color: #1d4ed8;
  font-size: 1.15rem;
  flex: none;
  transition: 0.25s ease;
}
.register-cta a:hover .register-cta-arrow {
  background: #1d4ed8;
  color: #fff;
  transform: translateX(4px);
}

/* ---- About heading row with inline registration CTA ---- */
.about-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.about-head h2 { margin: 0; }
.about-head .register-cta { margin: 0 !important; text-align: right; width: auto !important; flex: 0 0 auto; }
@media (max-width: 620px) {
  .about-head { gap: 12px; }
}

/* ---- Sponsor logo links ---- */
.sponsor-col a { display: block; }
.sponsor-logos a { transition: opacity 0.2s ease; }
.sponsor-logos a:hover { opacity: 0.7; }

/* ---- tweaks: bigger BARC logo + deeper registration link blue ---- */
.sponsor-barc { height: 88px; }   /* visually match KU (BARC reads smaller) */
.register-cta a { color: #1d4ed8; }
.register-cta-text { background-image: linear-gradient(#1d4ed8, #1d4ed8); }
.register-cta-arrow { border-color: #1d4ed8; color: #1d4ed8; }
.register-cta a:hover .register-cta-arrow { background: #1d4ed8; color: #fff; }

/* ---- Hero tagline: left-align the two lines (longest line's right edge stays at content right edge) ---- */
.hero-tagline { text-align: left !important; }
/* ============================================================
   MOBILE OVERRIDES (appended last so they win)
   ============================================================ */
.nav-burger { display: none; }

@media (max-width: 900px) {
  /* ---- Header: hamburger dropdown top-right (nav only; hero layout untouched) ---- */
  .site-header {
    top: 78px !important;            /* align burger top with the left logo top */
  }
  .site-header .container.nav,
  .site-header .nav {
    position: relative !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    min-height: 44px !important;
    padding-top: 0 !important;
  }
  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 10px;
    margin-left: auto;
    cursor: pointer;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 8px rgba(15, 28, 37, 0.12);
  }
  .nav-burger span {
    display: block; height: 2.5px; width: 100%;
    background: #0f1c25; border-radius: 2px; transition: 0.25s ease;
  }
  .nav-links {
    display: none !important;
    position: absolute;
    top: 58px; right: 6px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px !important;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(15, 28, 37, 0.18);
    padding: 8px;
    min-width: 200px;
    z-index: 60;
  }
  .nav-toggle:checked ~ .nav-links { display: flex !important; }
  .nav-links a { display: block; width: 100%; padding: 11px 14px; border-radius: 9px; font-size: 1rem; }
  .nav-links a:hover, .nav-links a.active { background: var(--surface-2); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---- Hero: keep the 3-column layout, just scale down proportionally on small screens ---- */
@media (max-width: 760px) {
  .hero-wave-text { font-size: clamp(20px, 8.1cqw, 96px) !important; }
  .hero-tagline   { font-size: clamp(12px, 2.95cqw, 36px) !important; line-height: 1.2 !important; white-space: normal !important; }
  .hero-divider   { height: clamp(20px, 6cqw, 74px) !important; }
  .hero-meta-line { font-size: clamp(10px, 2.2cqw, 27px) !important; }
  .hero-meta-line span:first-child,
  .hero-meta-line span:last-child { white-space: normal !important; }
}

/* ---- Footer: 4 logos stay on one row on mobile; text flush-left ---- */
@media (max-width: 760px) {
  .footer .container { padding-left: 0 !important; padding-right: 0 !important; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-text { padding-left: 0; margin-left: 0; }
  .footer-sponsors { align-items: flex-start; width: 100%; }
  .sponsor-logos { flex-wrap: nowrap !important; gap: 14px !important; align-items: flex-end; }
  .sponsor-col { width: 96px !important; gap: 7px !important; }
  .sponsor-square { height: 54px !important; }
  .sponsor-barc { height: 56px !important; }
}
@media (max-width: 400px) {
  .sponsor-logos { gap: 12px !important; }
  .sponsor-col { width: 92px !important; }
  .sponsor-square { height: 52px !important; }
  .sponsor-barc { height: 54px !important; }
}

/* ---- Mobile: water band fills from the page top-left (no empty strip above) ---- */
@media (max-width: 900px) {
  .hero::before { top: -280px !important; height: 760px !important; }
}

/* ---- Mobile: bring logo top & burger near the top (no clipping, minimal gap) ---- */
@media (max-width: 900px) {
  .hero { padding-top: 0 !important; }
  .hero-inner { padding-top: 30px !important; padding-bottom: 40px !important; }
  .hero-logo-left img { transform: none !important; }   /* stop the upward shift that clipped the logo */
  .hero-logo-right { transform: translateY(14px) !important; }   /* move WAVE / tagline / date block DOWN */
  .site-header { top: 24px !important; }
}

/* ELLIIT logo in the footer sponsor column (same width as Carlsberg/Villum) */
.sponsor-elliit { width: 100%; height: auto; display: block; }

/* ---- Lay Carlsberg / ELLIIT / Villum side by side (not stacked) ---- */
.sponsor-col {
  flex-direction: row !important;
  align-items: flex-end !important;
  gap: 22px !important;
  width: auto !important;
}
.sponsor-carlsberg { width: auto !important; height: 34px !important; }
.sponsor-elliit    { width: auto !important; height: 44px !important; }
.sponsor-villum    { width: auto !important; height: 16px !important; }

@media (max-width: 760px) {
  .sponsor-logos { flex-wrap: wrap !important; justify-content: flex-start !important; gap: 18px 20px !important; }
  .sponsor-col { width: auto !important; gap: 16px !important; }
  .sponsor-carlsberg { height: 26px !important; }
  .sponsor-elliit    { height: 34px !important; }
  .sponsor-villum    { height: 13px !important; }
}

/* ===== Stack ELLIIT / Carlsberg / Villum vertically, left-aligned (E/C/V align) ===== */
.sponsor-logos { flex-wrap: nowrap !important; }
.sponsor-col {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
  width: 150px !important;
}
.sponsor-elliit,
.sponsor-carlsberg,
.sponsor-villum { width: 100% !important; height: auto !important; }
@media (max-width: 760px) {
  .sponsor-logos { flex-wrap: nowrap !important; gap: 14px !important; }
  .sponsor-col { width: 104px !important; gap: 7px !important; }
}

/* ELLIIT: smaller + shift left so its "E" aligns with Carlsberg "C" (icon hangs to the left) */
.sponsor-elliit {
  width: 100px !important;
  height: auto !important;
  margin-left: -31px !important;
}
@media (max-width: 760px) {
  .sponsor-elliit { width: 74px !important; margin-left: -23px !important; }
}

/* ===== Final: all sponsor logos in one horizontal row, bottom-aligned ===== */
.sponsor-logos { flex-wrap: nowrap !important; align-items: flex-end !important; }
.sponsor-col {
  flex-direction: row !important;
  align-items: flex-end !important;
  gap: 22px !important;
  width: auto !important;
}
.sponsor-elliit    { width: auto !important; height: 42px !important; margin-left: 0 !important; }
.sponsor-carlsberg { width: auto !important; height: 32px !important; }
.sponsor-villum    { width: auto !important; height: 16px !important; }
@media (max-width: 760px) {
  .sponsor-logos { flex-wrap: wrap !important; gap: 16px 18px !important; }
  .sponsor-col { width: auto !important; gap: 16px !important; }
  .sponsor-elliit    { height: 32px !important; margin-left: 0 !important; }
  .sponsor-carlsberg { height: 26px !important; }
  .sponsor-villum    { height: 13px !important; }
}

/* ===== Footer logos: top-align the 3 corporate logos; shrink BARC/KU ===== */
.sponsor-logos { align-items: flex-start !important; }
.sponsor-col   { align-items: flex-start !important; }
.sponsor-elliit    { height: 40px !important; }
.sponsor-carlsberg { height: 30px !important; }
.sponsor-villum    { height: 26px !important; }   /* Villum2 */
.sponsor-square    { height: 54px !important; }   /* BARC + KU smaller */
.sponsor-barc      { height: 56px !important; }
@media (max-width: 760px) {
  .sponsor-elliit    { height: 30px !important; }
  .sponsor-carlsberg { height: 23px !important; }
  .sponsor-villum    { height: 20px !important; }
  .sponsor-square    { height: 42px !important; }
  .sponsor-barc      { height: 44px !important; }
}

/* ===== Footer logos: center-align all 5; bigger Villum ===== */
.sponsor-logos { align-items: center !important; }
.sponsor-col   { align-items: center !important; }
.sponsor-villum { height: 34px !important; }
@media (max-width: 760px) { .sponsor-villum { height: 26px !important; } }

/* ---- Mobile: right-align tagline + location so their right edges meet the body text right edge ---- */
@media (max-width: 760px) {
  .hero-tagline { text-align: right !important; }
  .hero-meta-line span:last-child { justify-self: end !important; text-align: right !important; }
}

/* ---- Mobile: justify body paragraphs so their right edge reaches the container right (matches tagline/location) ---- */
@media (max-width: 760px) {
  .section-head p:not(.register-cta) { text-align: justify !important; }
}

/* ---- Mobile: keep tagline lines on ONE line each (no wrap); shrink to fit ---- */
@media (max-width: 760px) {
  .hero-tagline {
    white-space: nowrap !important;
    text-align: right !important;
    font-size: clamp(8px, 2.7cqw, 36px) !important;
    line-height: 1.18 !important;
  }
}

/* ---- Mobile: tagline LEFT-aligned like the desktop-narrow look (longest line reaches container right; Women aligns left with Venture) ---- */
@media (max-width: 760px) {
  .hero-tagline { text-align: left !important; white-space: nowrap !important; }
}

/* ---- Mobile fine-tune: tagline closer to divider (match desktop coefficient) ---- */
@media (max-width: 760px) {
  .hero-tagline { font-size: clamp(8px, 3.05cqw, 36px) !important; }
}

/* ---- Phones only (<=560px): push WAVE block down to the logo's mid/lower area (proportional, stable) ---- */
@media (max-width: 560px) {
  .hero-banner { align-items: start !important; }
  .hero-logo-right { transform: none !important; padding-top: 12cqw !important; }
}
