/* Sustain_Ability event page, Bratislava 2026.
   Standalone: the page does not load the Unify theme. Mobile first — most
   visitors arrive from an emailed link on a phone. Fonts match the main site
   (Open Sans, Roboto Slab); accents are the project's blue and turquoise. */

:root {
  --blue: #01579B;
  --blue-dark: #013F70;
  --teal: #27C7BD;
  --teal-text: #0B7A73;      /* turquoise dark enough for text on white */
  --ink: #1D2731;
  --muted: #55626F;
  --line: #DCE3E9;
  --tint: #F2F7FA;
  --error: #B3261E;
  --error-bg: #FCEEEE;
  --ok: #0B6E4F;
  --ok-bg: #E7F6F0;
  --radius: 10px;
  --wrap: 1140px;      /* the home page's Bootstrap container */
  --narrow: 760px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.65 "Open Sans", Helvetica, Arial, sans-serif;
}

/* Anchored sections land below the sticky sections bar. */
[id] { scroll-margin-top: 72px; }

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

a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

h1, h2 {
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h2 { font-size: 1.6rem; color: var(--blue); }
h2::after {
  content: "";
  display: block;
  width: 48px; height: 4px;
  margin-top: .45em;
  border-radius: 2px;
  background: var(--teal);
}

p { margin: 0 0 1em; }

.sa-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }
/* Text sections keep a readable measure but share the wide sections' left edge. */
.sa-narrow > * { max-width: var(--narrow); }

.sa-sr, .sa-hp {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sa-skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 8px 14px; background: var(--blue); color: #fff; border-radius: 6px;
}
.sa-skip:focus { top: 8px; color: #fff; }

/* ---- Site header ---------------------------------------------------------
   The main site menu, drawn to match the Unify header of /index.html and
   /sustain-ability/ (logo bar, then an uppercase menu row; hamburger below
   992px). Its items are repeated in those files and in
   /fashion-transparency-lab/ — keep them in step. */

.site-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }

.site-header { background: #fff; box-shadow: 0 5px 10px -6px rgba(0, 0, 0, .1); position: relative; z-index: 60; }
.site-header img { display: block; width: 175px; height: auto; }
.site-header__top { display: none; padding: 18px 0; border-bottom: 1px solid #eee; }
.site-header__bar .site-wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  min-height: 84px; padding-top: 10px; padding-bottom: 10px;
}
.site-header__logo { flex: none; }

.site-header__toggle {
  display: none;
  margin-left: auto; padding: 10px 0;
  width: 37px; height: 34px;
  border: 0; background: none; cursor: pointer;
}
.site-header__toggle span,
.site-header__toggle span::before,
.site-header__toggle span::after {
  display: block; position: relative;
  width: 37px; height: 1px; background: #2c2f37;
}
.site-header__toggle span::before,
.site-header__toggle span::after { content: ""; position: absolute; left: 0; }
.site-header__toggle span::before { top: -8px; }
.site-header__toggle span::after { top: 8px; }
.js .site-header__toggle { display: block; }

.site-menu { flex: 1 0 100%; }
.js .site-menu { display: none; }
.js .site-menu.is-open { display: block; }
.site-menu ul { margin: 0; padding: 8px 0 0; list-style: none; }
.site-menu a,
.site-menu__sub > button {
  display: block; padding: 8px 0;
  color: #2c2f37; text-decoration: none; text-transform: uppercase;
  font-size: 14px; font-weight: 600; line-height: 1.6;
}
.site-menu a:hover, .site-menu__sub > button:hover,
.site-menu .is-active > a, .site-menu .is-active > button { color: #6281c8; }

/* Projects dropdown: listed under its heading on small screens, a hover /
   focus / tap dropdown from 992px. */
.site-menu__sub > button {
  border: 0; background: none; cursor: pointer;
  font-family: inherit; text-align: left;
}
.site-menu__sub > button::after {
  content: ""; display: inline-block;
  width: 6px; height: 6px; margin: 0 0 3px 8px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.site-menu .site-menu__sub ul { padding: 0 0 4px 16px; }
.site-menu__sub ul a { text-transform: none; }

@media (min-width: 992px) {
  .site-header__top { display: block; }
  .site-header__logo, .js .site-header__toggle { display: none; }
  .site-header__bar .site-wrap { min-height: 74px; }
  .site-menu, .js .site-menu { display: block; flex: 1 1 auto; }
  .site-menu ul { display: flex; padding: 0; }
  .site-menu li { margin: 0 10px; }
  .site-menu__sub { position: relative; }
  .site-menu .site-menu__sub ul {
    display: none;
    position: absolute; top: 100%; left: -16px; z-index: 70;
    min-width: 220px; padding: 8px 0;
    border-top: 2px solid #6281c8; background: #fff; box-shadow: 0 0 2px #ccc;
  }
  .site-menu .site-menu__sub:hover ul,
  .site-menu .site-menu__sub:focus-within ul,
  .site-menu .site-menu__sub.is-open ul { display: block; }
  .site-menu__sub ul li { margin: 0; }
  .site-menu__sub ul a { padding: 6px 16px; }
}
@media (min-width: 1200px) { .site-menu li { margin: 0 20px; } }

/* ---- Page sections bar (sticky, under the site header) ------------------- */

.sa-subnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.sa-subnav__inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 56px;
}
.sa-subnav ul {
  display: flex; gap: 22px;
  margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scrollbar-width: none;
  white-space: nowrap;
  /* Fade at the right edge: on phones the links scroll sideways. */
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
  padding-right: 24px;
}
@media (min-width: 860px) {
  .sa-subnav ul { -webkit-mask-image: none; mask-image: none; padding-right: 0; }
}
.sa-subnav ul::-webkit-scrollbar { display: none; }
.sa-subnav a:not(.sa-lang) {
  display: block; padding: 6px 0;
  color: var(--ink); text-decoration: none;
  font-size: .9rem; font-weight: 600;
}
.sa-subnav a:not(.sa-lang):hover { color: var(--blue); }

.sa-lang {
  flex: none;
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none;
  font-size: .875rem; font-weight: 600;
}
.sa-lang:hover { border-color: var(--blue); color: var(--blue); }
.sa-lang img { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.sa-lang__long { display: none; }

@media (min-width: 700px) {
  .sa-lang__long { display: inline; }
  .sa-lang__short { display: none; }
}

/* ---- Hero --------------------------------------------------------------- */

.sa-hero {
  position: relative; overflow: hidden;
  padding: 48px 0 56px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(39, 199, 189, .55) 0, rgba(39, 199, 189, 0) 42%),
    radial-gradient(circle at 0% 100%, rgba(39, 199, 189, .28) 0, rgba(39, 199, 189, 0) 40%),
    linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #0A72B5 100%);
}
.sa-hero .sa-wrap { position: relative; }
.sa-hero__kicker {
  display: inline-block;
  margin-bottom: 18px; padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
}
.sa-hero h1 { font-size: 2.3rem; margin-bottom: .3em; max-width: 20ch; }
.sa-hero__subtitle { font-size: 1.15rem; font-weight: 600; max-width: 34ch; opacity: .95; }
.sa-hero__when {
  display: flex; flex-direction: column; gap: 6px;
  margin: 24px 0 14px;
  font-weight: 700; font-size: 1.05rem;
}
.sa-hero__when span { display: inline-flex; align-items: center; gap: 10px; }
.sa-hero__when svg { width: 20px; height: 20px; flex: none; fill: var(--teal); }
.sa-hero__facts {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 28px; padding: 0; list-style: none;
}
.sa-hero__facts li {
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px;
  font-size: .9rem;
}

@media (min-width: 700px) {
  .sa-hero { padding: 88px 0 96px; }
  .sa-hero h1 { font-size: 3.4rem; }
  .sa-hero__subtitle { font-size: 1.35rem; }
  .sa-hero__when { flex-direction: row; gap: 28px; }
}

/* ---- Buttons ------------------------------------------------------------ */

.sa-btn {
  display: inline-block;
  padding: 14px 28px;
  border: 0; border-radius: 999px;
  background: var(--blue); color: #fff;
  font: 700 1rem/1.2 "Open Sans", Helvetica, Arial, sans-serif;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.sa-btn:hover { background: var(--blue-dark); color: #fff; }
.sa-btn:active { transform: translateY(1px); }
.sa-btn:disabled { opacity: .7; cursor: progress; }
.sa-btn--light { background: #fff; color: var(--blue); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.sa-btn--light:hover { background: var(--teal); color: var(--blue-dark); }

.sa-arrow-link { font-weight: 700; text-decoration: none; }
.sa-arrow-link:hover { text-decoration: underline; }

/* ---- Sections ----------------------------------------------------------- */

.sa-section { padding: 56px 0; }
.sa-section--tint { background: var(--tint); }
@media (min-width: 700px) { .sa-section { padding: 80px 0; } h2 { font-size: 2rem; } }

.sa-lead { font-size: 1.2rem; line-height: 1.55; color: var(--blue-dark); font-weight: 600; }

.sa-callout {
  margin: 1.5em 0;
  padding: 18px 20px;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--tint);
}
.sa-callout p:last-child { margin-bottom: 0; }

.sa-note { color: var(--muted); font-size: .95rem; }

/* ---- Programme timeline ------------------------------------------------- */

.sa-day { font-weight: 700; color: var(--teal-text); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }

.sa-timeline { margin: 0 0 1.2em; padding: 0; list-style: none; position: relative; }
.sa-timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px;
  width: 2px; background: var(--line);
}
.sa-timeline__item {
  position: relative;
  display: grid; gap: 2px;
  padding: 10px 0 14px 32px;
}
.sa-timeline__item::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue);
}
.sa-timeline__time { font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; font-size: .95rem; white-space: nowrap; }
.sa-timeline__what { font-size: 1.02rem; }
.sa-timeline__item--break .sa-timeline__what { color: var(--muted); font-style: italic; }
.sa-timeline__item--break::before { border-color: var(--teal); }
.sa-timeline__item--key .sa-timeline__what { font-weight: 700; }
.sa-timeline__item--key::before { background: var(--teal); border-color: var(--teal); }

@media (min-width: 700px) {
  .sa-timeline__item { grid-template-columns: 140px 1fr; gap: 20px; align-items: baseline; }
}

/* ---- Venue -------------------------------------------------------------- */

.sa-venue { display: grid; gap: 28px; }
.sa-venue__name { font-size: 1.1rem; }
.sa-map {
  position: relative; min-height: 300px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--tint);
}
.sa-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 860px) {
  .sa-venue { grid-template-columns: 5fr 6fr; gap: 40px; align-items: stretch; }
  .sa-map { min-height: 380px; }
}

/* ---- Registration ------------------------------------------------------- */

.sa-section--register { background: linear-gradient(180deg, #fff 0, var(--tint) 100%); }

.sa-alert {
  margin: 0 0 1.6em; padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--tint); border: 1px solid var(--line);
}
.sa-alert p:last-child, .sa-alert ul:last-child { margin-bottom: 0; }
.sa-alert:focus { outline: none; }
.sa-alert--success { background: var(--ok-bg); border-color: #A9DCC6; }
.sa-alert--warning { background: #FFF6E5; border-color: #F2C77B; border-left: 4px solid #E8A33D; color: #6B4A00; font-size: 1.05rem; }
.sa-alert--error { background: var(--error-bg); border-color: #EDB8B4; color: var(--error); }
.sa-alert--error a { color: var(--error); font-weight: 600; }
.sa-alert__title { font-family: "Roboto Slab", Georgia, serif; font-weight: 700; font-size: 1.25rem; color: var(--ok); }

.sa-form { margin-top: 1.6em; }
.sa-req { color: var(--error); font-weight: 700; }

.sa-group {
  margin: 0 0 20px; padding: 20px 16px 6px;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.sa-group > legend {
  float: left; width: 100%;
  margin: 0 0 14px; padding: 0;
  font-family: "Roboto Slab", Georgia, serif; font-weight: 700; font-size: 1.1rem;
  color: var(--blue);
}
.sa-group__grid { clear: both; display: grid; gap: 0 20px; }
@media (min-width: 640px) {
  .sa-group { padding: 24px 24px 10px; }
  .sa-group--person .sa-group__grid,
  .sa-group--org .sa-group__grid { grid-template-columns: 1fr 1fr; }
}

.sa-field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.sa-field > label, .sa-field > legend {
  display: block; padding: 0;
  margin-bottom: 6px;
  font-weight: 600; font-size: .95rem;
}
.sa-field--textarea, .sa-field--checkboxes, .sa-field--radio, .sa-field--consent { grid-column: 1 / -1; }

.sa-hint { margin: -2px 0 8px; color: var(--muted); font-size: .875rem; }

.sa-field input[type=text], .sa-field input[type=email], .sa-field input[type=tel],
.sa-field select, .sa-field textarea {
  display: block; width: 100%;
  padding: 12px 14px;
  border: 1px solid #B7C3CE; border-radius: 8px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem; /* 16px keeps iOS from zooming on focus */
}
.sa-field textarea { resize: vertical; min-height: 110px; }
.sa-field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.sa-field input:focus, .sa-field select:focus, .sa-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 87, 155, .18);
}

.sa-choices { display: grid; gap: 8px; }
@media (min-width: 640px) { .sa-field--checkboxes .sa-choices { grid-template-columns: 1fr 1fr; } }
.sa-choice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; font-weight: 400; line-height: 1.45;
}
.sa-choice:hover { border-color: #9FB4C6; }
.sa-choice:has(input:checked) { border-color: var(--blue); background: #F1F7FC; }
.sa-choice input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }

/* Consents: a table — checkbox column, text column, ruled rows. */
.sa-group--consent .sa-group__grid {
  gap: 0; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.sa-field--consent { margin: 0; }
.sa-field--consent + .sa-field--consent { border-top: 1px solid var(--line); }
.sa-field > .sa-choice--consent {
  margin: 0;
  display: grid; grid-template-columns: 52px 1fr; gap: 0;
  padding: 0; border: 0; border-radius: 0;
  font-size: .95rem; font-weight: 400;
}
.sa-field > .sa-choice--consent input { justify-self: center; margin: 14px 0; }
.sa-field > .sa-choice--consent > span { padding: 12px 16px 12px 14px; border-left: 1px solid var(--line); }
.sa-field > .sa-choice--consent:hover { background: #F7FAFC; }
.sa-field > .sa-choice--consent:has(input:checked) { background: #F1F7FC; }
.sa-field--consent .sa-error-msg { margin: 0; padding: 0 16px 12px 66px; }

.sa-field.is-invalid input, .sa-field.is-invalid select, .sa-field.is-invalid textarea { border-color: var(--error); }
.sa-field.is-invalid .sa-choice { border-color: #E3A6A1; }
.sa-error-msg { margin: 6px 0 0; color: var(--error); font-size: .9rem; font-weight: 600; }

.sa-form .sa-btn { width: 100%; margin-top: 6px; }
@media (min-width: 640px) { .sa-form .sa-btn { width: auto; } }

/* ---- Privacy policy ----------------------------------------------------- */

.sa-policy h1 { font-size: 1.9rem; color: var(--blue); }
.sa-policy h2 { font-size: 1.3rem; margin-top: 2em; }
.sa-policy h3 { font-size: 1.05rem; color: var(--blue-dark); margin: 1.6em 0 .4em; }
.sa-policy ul { margin: 0 0 1em; padding-left: 1.25em; }
.sa-policy li { margin-bottom: .4em; }
.sa-basis { padding-left: 14px; border-left: 3px solid var(--teal); color: var(--muted); font-size: .95rem; }
.sa-toc {
  margin: 1.5em 0 1em;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--tint);
}
.sa-toc__title { margin-bottom: .4em; font-weight: 700; }
.sa-toc ol { margin: 0; padding-left: 1.4em; }
.sa-toc li { margin-bottom: .2em; }
@media (min-width: 700px) {
  .sa-policy h1 { font-size: 2.4rem; }
  .sa-policy h2 { font-size: 1.5rem; }
}

/* ---- Footer ------------------------------------------------------------- */

.sa-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); background: #fff; font-size: .875rem; color: var(--muted); }
.sa-footer__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-bottom: 18px; }
.sa-footer__logos img { display: block; height: 40px; width: auto; }
.sa-footer__logos .sa-footer__eu { height: 48px; }
.sa-footer__project { height: 64px !important; }
.sa-logo-missing {
  display: inline-flex; align-items: center;
  padding: 0 14px; border: 2px dashed #C8D2DB; border-radius: 6px;
  font-weight: 700; color: var(--muted);
}
.sa-footer__disclaimer { max-width: 900px; line-height: 1.55; }
.sa-footer__links a { color: var(--muted); }
