/* Swedish-Polish Chamber of Commerce — brand tokens (from the 2026 brand book) */
:root {
  /* Primary */
  --navy: #0A3166;          /* brand primary navy */
  --blue: #6A8BBB;          /* brand primary mid-blue */
  /* Secondary */
  --sky: #AECAE6;
  --mist: #DEE7F2;
  /* Supporting */
  --clay: #D2703D;          /* brand orange — decorative / large text only */
  --brick: #B4572A;         /* darkened clay for buttons & small text (AA on white & cream) */
  --amber: #F0A94B;
  --teal: #7FA6AF;
  --cream: #FBF4EC;
  --white: #FFFFFF;

  /* Dark theme (Nightfall, calendar) */
  --night: #06162F;
  --night-2: #081D3D;
  --night-card: #0A2246;
  --night-deep: #041127;
  --night-text: #F5EFE7;
  --night-muted: #A9BEDA;

  /* Light theme text */
  --ink: var(--navy);
  --ink-2: #3E557A;
  --ink-3: #4A6286;
  --line: #E8DDCF;
  --line-2: #C9D6E8;

  --font-head: 'Poppins', system-ui, sans-serif;   /* headings */
  --font-body: 'Open Sans', system-ui, sans-serif; /* sub-headings & paragraphs */

  --container: 1280px;
  --gutter: 32px;
}
@media (max-width: 640px) { :root { --gutter: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Photo frame — every event photo goes through this so any stock image fits the brand.
   Add .photo--treat to opt in to the duotone (enabled by body.is-duotone). */
.photo { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.is-duotone .photo--treat > img { filter: grayscale(1) contrast(1.06); }
.is-duotone .photo--treat::after { content: ''; position: absolute; inset: 0; background: var(--navy); mix-blend-mode: color; pointer-events: none; }

/* Horizon layout, adapted for the static Life Science page */
/* Template 1 · Horizon (light) */
body { background: var(--cream); color: var(--ink); }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--brick); }

/* Type */
.h2 { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -0.02em; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brick); }
.kicker--amber { color: var(--amber); }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.muted { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-3); }
.lead { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.chip { font-size: 13px; font-weight: 600; background: var(--mist); padding: 7px 14px; border-radius: 999px; }
.link-underline { font-family: var(--font-head); font-weight: 500; font-size: 15px; border-bottom: 2px solid var(--clay); padding-bottom: 3px; }
.text-link { font-family: var(--font-head); font-weight: 500; font-size: 15px; padding: 14px 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--font-head); font-weight: 500; font-size: 16px; padding: 17px 28px; border-radius: 12px; border: 0; cursor: pointer; }
.btn--sm { font-size: 15px; padding: 12px 20px; border-radius: 10px; }
.btn--brick { background: var(--brick); color: var(--white); }
.btn--brick:hover { background: #9A4722; color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { color: var(--white); }
.btn--amber { background: var(--amber); color: var(--navy); }
.btn--outline { background: var(--white); border: 1px solid var(--line-2); color: var(--navy); font-weight: 400; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Layout */
.section { padding-top: 112px; padding-bottom: 112px; }
.band--mist { background: var(--mist); }
.band--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: flex; flex-wrap: wrap; gap: 64px; }
.split__aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 18px; }
.split > :last-child:not(.split__aside) { flex: 2 1 640px; min-width: 0; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.site-header__logo img { height: 44px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-family: var(--font-head); font-size: 15px; }
.site-nav .btn { color: var(--white); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero__text { flex: 1.1 1 520px; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero__title { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -0.025em; }
.hero__media { flex: 1 1 460px; position: relative; min-height: 620px; }
.hero__photo { position: absolute; top: 0; right: 0; bottom: 48px; left: 40px; border-radius: 32px; }

.facts { margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.facts__item { background: var(--white); padding: 18px 20px; display: flex; gap: 14px; }
.facts__item svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--brick); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; }
.facts .facts__sub { margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--ink-3); }

.date-badge { position: absolute; left: 0; bottom: 0; background: var(--navy); color: var(--white); border-radius: 24px; padding: 22px 26px; display: flex; gap: 20px; align-items: center; border: 6px solid var(--cream); }
.date-badge__date { text-align: center; display: flex; flex-direction: column; }
.date-badge__day { font-family: var(--font-head); font-weight: 300; font-size: 54px; line-height: 1; }
.date-badge__month { font-family: var(--font-head); font-weight: 500; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.date-badge__rule { width: 1px; align-self: stretch; background: rgba(222,231,242,0.3); }
.date-badge__meta { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--mist); }
.date-badge__meta strong { font-family: var(--font-head); font-weight: 400; font-size: 16px; color: var(--white); }

/* Organisers */
.organisers { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.organisers__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding-top: 28px; padding-bottom: 28px; }
.organisers__logo { height: 34px; width: auto; }
.logo-slot { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border: 1px dashed var(--line-2); border-radius: 12px; font-size: 13px; color: var(--ink-3); }
.logo-slot--named { font-family: var(--font-head); font-weight: 500; font-size: 16px; color: var(--navy); gap: 10px; }
.logo-slot small { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--ink-3); }

/* Programme */
.programme { list-style: none; margin: 0; padding: 0; background: var(--white); border-radius: 24px; overflow: hidden; }
.programme__row { display: flex; gap: 28px; padding: 24px 32px; border-bottom: 1px solid #EEF2F8; }
.programme__row:last-child { border-bottom: 0; }
.programme__time { flex: 0 0 72px; font-family: var(--font-head); font-weight: 500; font-size: 18px; color: var(--brick); }
.programme__title { display: block; font-family: var(--font-head); font-weight: 500; font-size: 19px; }
.programme__note { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.programme__note:empty { display: none; }

/* Registration */
.register-wrap { padding-top: 96px; padding-bottom: 104px; }
.register { background: var(--navy); color: var(--white); border-radius: 32px; display: flex; flex-wrap: wrap; overflow: hidden; }
.register__intro { flex: 1 1 380px; padding: 64px 56px; display: flex; flex-direction: column; gap: 22px; }
.register__title { margin: 0; font-family: var(--font-head); font-weight: 300; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.register__summary { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--mist); }
.register__summary li::before { content: '— '; color: var(--amber); }
.register__form { flex: 1.3 1 520px; background: var(--white); color: var(--navy); margin: 12px; border-radius: 24px; padding: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select { border: 1px solid var(--line-2); border-radius: 10px; padding: 14px; font-size: 15px; font-family: var(--font-body); color: var(--navy); background: var(--white); }
.field input:focus, .field select:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.form-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.form-note a { text-decoration: underline; }
.field-error { margin: 0; font-size: 13px; line-height: 1.4; color: var(--brick); }
.field-error[hidden] { display: none; }
.register__form[hidden] { display: none; }
.form-thanks {
  flex: 1.3 1 520px;
  margin: 12px;
  border-radius: 24px;
  padding: 40px;
  background: var(--white);
  color: var(--navy);
  font-size: 17px;
  line-height: 1.6;
}
.form-thanks[hidden] { display: none; }

/* Organiser */
.organiser { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.section.organiser { padding-top: 0; }
.organiser__photo { flex: 1 1 420px; min-height: 380px; border-radius: 28px; }
.organiser__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 22px; }

/* Closing */
.closing { position: relative; background: var(--navy); color: var(--white); overflow: hidden; isolation: isolate; }
.closing__bg { position: absolute; inset: 0; z-index: -1; }
.closing__bg img { filter: grayscale(1); opacity: 0.35; }
.closing__bg::after { content: ''; position: absolute; inset: 0; background: var(--navy); mix-blend-mode: multiply; }
.closing__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding-top: 104px; padding-bottom: 104px; }
.closing__title { margin: 14px 0 0; font-family: var(--font-head); font-weight: 300; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.02em; }

/* Footer */
.site-footer { background: #072450; color: var(--mist); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 36px; padding-bottom: 36px; font-size: 14px; }
.site-footer img { height: 38px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--mist); }

/* Small screens */
@media (max-width: 720px) {
  .section { padding-top: 72px; padding-bottom: 72px; }
  .register-wrap { padding-top: 64px; padding-bottom: 64px; }
  .split { gap: 32px; }
  .hero { padding-top: 40px; gap: 40px; }
  .hero__media { min-height: 440px; }
  .hero__photo { left: 0; }
  .facts { grid-template-columns: 1fr; }
  .register__intro { padding: 40px 28px; }
  .register__form { grid-template-columns: 1fr; padding: 28px; }
  .programme__row { padding: 20px; gap: 16px; }
  .site-nav { gap: 16px; }
}

/* ---- Page additions (sticky bar, form preview, placeholders, overflow) ---- */
html { scroll-behavior: smooth; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 8px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }
.site-header { position: sticky; top: 0; z-index: 40; }
.site-nav a[href="#register"].btn { color: var(--white); }
.site-nav a[href="#register"].btn:hover { color: var(--white); }

.programme__row--tba { padding: 32px; }
.programme__row--tba .programme__title { font-size: 22px; }

.form-status { margin: 0; font-size: 14px; line-height: 1.6; color: var(--brick); }
.form-status[hidden] { display: none; }
.form-status.is-preview {
  grid-column: 1 / -1;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink-2);
}
.register__form .btn[disabled] { opacity: 0.65; cursor: not-allowed; }

/* Sticky register, DefenceTech structure, Horizon colours */
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: none;
  background: var(--navy);
  color: var(--white);
  border-top: 1px solid rgba(174,202,230,0.25);
}
.sticky-bar.is-visible { display: block; }
.sticky-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.sticky-bar p { margin: 0; font-size: 14px; color: var(--mist); }
.sticky-bar strong { color: var(--white); font-family: var(--font-head); font-weight: 500; }

.cal-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }

.site-footer a:hover { color: var(--white); }

/* Body padding when sticky is visible so the last section isn't covered */
body.has-sticky { padding-bottom: 72px; }

@media (max-width: 720px) {
  .site-nav { width: 100%; justify-content: flex-start; gap: 14px 18px; }
  .sticky-bar__inner { flex-wrap: wrap; }
  .hero__media { min-height: 400px; }
  .date-badge { padding: 16px 18px; gap: 14px; }
  .date-badge__day { font-size: 42px; }
}

.header-register { color: var(--white); }
.header-register:hover { color: var(--white); }
.organisers__cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.date-badge__month { white-space: nowrap; }

@media (min-width: 721px) {
  .site-nav { margin-left: auto; }
}

@media (max-width: 720px) {
  .header-register { display: none; }
  .site-header__inner { display: grid; grid-template-columns: 1fr; align-items: center; }
  .site-header__logo { grid-column: 1; grid-row: 1; }
  .site-nav { grid-column: 1; grid-row: 2; width: 100%; margin: 0; }
}

.organisers__logo-link { display: inline-flex; align-items: center; line-height: 0; }
.organisers__logo-link:hover { opacity: 0.85; }
.organisers__logo--stockholm { height: 44px; width: auto; }
.organisers__logo--nordisca { height: 22px; width: auto; }

/* Attendance segmented toggle */
.attendance { border: 0; margin: 0; padding: 0; min-width: 0; }
.attendance legend { padding: 0; font-size: 14px; font-weight: 600; }
.attendance__toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}
.attendance__opt { display: block; margin: 0; cursor: pointer; min-width: 0; }
.attendance__opt input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.attendance__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  color: var(--navy);
  background: var(--white);
  text-align: center;
}
.attendance__opt + .attendance__opt span { border-left: 1px solid var(--line-2); }
.attendance__opt input:checked + span {
  background: var(--navy);
  color: var(--white);
}
.attendance__opt input:focus-visible + span {
  outline: 2px solid var(--brick);
  outline-offset: -2px;
}

/* Keep partner logos at their set height; do not stretch when a cluster wraps */
.organisers__logo-link { flex: 0 0 auto; width: max-content; max-width: 100%; }
.organisers__logo--nordisca { height: 22px; width: auto; max-height: 22px; object-fit: contain; }
@media (max-width: 720px) {
  .organisers__cluster {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    width: 100%;
    gap: 12px 16px;
  }
  .organisers__logo--nordisca,
  .organisers__logo-link:has(.organisers__logo--nordisca) .organisers__logo--nordisca {
    height: 18px;
    max-height: 18px;
    width: auto;
    max-width: 140px;
  }
}


/* Strategic partners logo strip */
.strategic-partners.section { padding-top: 72px; padding-bottom: 80px; }
.strategic-partners__heading {
  text-align: center;
  margin: 0 auto 40px;
  font-size: clamp(22px, 2.6vw, 32px);
}
.strategic-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.strategic-logos li {
  flex: 0 1 calc((100% - 16px) / 2);
  max-width: calc((100% - 16px) / 2);
  height: 52px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.strategic-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}
.strategic-logos img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 36px;
  object-fit: contain;
}
.strategic-logos a:hover img { opacity: 0.75; }
.strategic-logos a:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 4px;
}
@media (min-width: 600px) {
  .strategic-partners__heading { margin-bottom: 44px; }
  .strategic-logos { gap: 28px 24px; }
  .strategic-logos li {
    flex-basis: calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
    height: 64px;
  }
  .strategic-logos img { max-height: 44px; }
}
@media (min-width: 1024px) {
  .strategic-logos { gap: 22px 14px; }
  .strategic-logos li {
    flex-basis: calc((100% - 84px) / 7);
    max-width: calc((100% - 84px) / 7);
    height: 52px;
  }
  .strategic-logos img { max-height: 40px; }
}
