/* ESA 2027 Alicante — site styles
   Tokens follow the ESA brand standards notes (Sept 2026). */

:root {
  --navy: #1D1D36;
  --violet: #5C5ADB;
  --violet-deep: #3D3C92;
  --violet-40: #A4A3E7;
  --violet-20: #C4C3F3;
  --coral: #FF6161;
  --logo-blue: #03039F;
  --hairline: #E8E6E6;
  --grey: #6E6E6D;
  --band: #F6F5FA;
  --sand: #F5F0E7;      /* Alicante warmth — info sections */
  --sea: #2B6C8F;       /* Mediterranean accent, used sparingly */
  --ink: #1D1D36;
  --white: #fff;
  --max: 1180px;
  --gutter: 24px;
  --radius: 10px;
  --font-head: "Poppins", "Trebuchet MS", Arial, Helvetica, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet-deep); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; color: var(--navy); font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.5rem 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.lead { font-size: 1.2rem; color: #3a3a52; }
.muted { color: var(--grey); }
.small { font-size: .9rem; }

/* Eyebrow — ESA hero device: star mark + coral rule + uppercase label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--violet-deep);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--coral); }
.on-dark .eyebrow { color: var(--violet-20); }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  padding: 0 22px; line-height: 46px; border-radius: var(--radius);
  background: var(--violet); color: #fff; text-decoration: none; border: 2px solid var(--violet);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--violet-deep); border-color: var(--violet-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--violet-deep); }
.btn--ghost:hover { background: var(--violet-deep); color: #fff; }
.on-dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.on-dark .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--sm { line-height: 38px; padding: 0 16px; font-size: .95rem; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand__meeting { font-family: var(--font-head); font-size: .78rem; line-height: 1.3; color: var(--navy); border-left: 1px solid var(--hairline); padding-left: 14px; white-space: nowrap; }
.brand__meeting strong { display: block; font-size: .95rem; font-weight: 700; }
.nav-toggle { display: none; background: none; border: 1px solid var(--hairline); border-radius: 8px; padding: 10px 12px; font-family: var(--font-head); font-size: .9rem; color: var(--navy); cursor: pointer; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--font-head); font-size: .92rem; font-weight: 500; color: var(--navy); text-decoration: none; padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--band); color: var(--violet-deep); }
.nav a[aria-current="page"] { color: var(--violet); box-shadow: inset 0 -3px 0 var(--violet); border-radius: 8px 8px 0 0; }
.nav .has-sub { position: relative; }
.nav .has-sub > a::after { content: " ▾"; font-size: .75em; }
.nav .sub { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--hairline); border-radius: 10px; padding: 8px; min-width: 220px; box-shadow: 0 12px 30px rgba(29,29,54,.12); flex-direction: column; gap: 2px; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: flex; }
.nav .sub a { padding: 9px 12px; }
.nav .nav__cta { margin-left: 10px; }
.nav .nav__cta a { background: var(--violet); color: #fff; line-height: 1; padding: 13px 18px; }
.nav .nav__cta a:hover { background: var(--violet-deep); color: #fff; }

.brand, .nav { flex-shrink: 0; }
@media (max-width: 1400px) { .brand__meeting { display: none; } }
@media (max-width: 1060px) {
  .nav a { font-size: .85rem; padding: 10px 9px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--hairline); flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 18px; box-shadow: 0 20px 40px rgba(29,29,54,.12); }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1rem; padding: 12px 10px; }
  .nav .has-sub > a::after { content: ""; }
  .nav .sub { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 6px 16px; }
  .nav .nav__cta { margin: 10px 0 0; }
  .nav .nav__cta a { display: block; text-align: center; }
}

/* Home hero — two-panel split */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: .4em; }
.hero h1 span { color: var(--violet-20); display: block; font-weight: 500; font-size: .55em; letter-spacing: .02em; margin-top: .3em; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 34rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 1.5rem 0 2rem; font-family: var(--font-head); font-size: .95rem; }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta small { color: var(--violet-40); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual { position: relative; }
.hero__card {
  position: absolute; left: -24px; bottom: 28px; background: #fff; color: var(--navy);
  border-radius: var(--radius); padding: 16px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.35);
  font-family: var(--font-head); line-height: 1.3; max-width: 260px;
}
.hero__card strong { display: block; font-size: 1.4rem; font-weight: 700; }
.hero__card span { color: var(--grey); font-size: .85rem; }
.hero__logo-slot { margin-bottom: 1.4rem; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; }
  .hero__card { position: static; margin-top: 14px; max-width: none; box-shadow: none; }
}

/* Inner page hero — navy band */
.page-hero { background: var(--navy); color: #fff; }
.page-hero.on-dark h1 { color: var(--violet-20); }
.page-hero .wrap { padding-top: 56px; padding-bottom: 56px; }
.page-hero .lead { color: rgba(255,255,255,.86); max-width: 40rem; }
.page-hero--image { background: var(--navy); position: relative; overflow: hidden; }
.page-hero--image .ph { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; opacity: .55; align-items: flex-end; justify-content: flex-end; }
.page-hero--image .wrap { position: relative; }

/* Sections */
.section { padding: 64px 0; }
.section--band { background: var(--band); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: var(--violet-20); }
.section--tight { padding: 40px 0; }
.section__head { max-width: 720px; margin-bottom: 2rem; }

/* Key dates strip */
.dates { background: var(--band); border-bottom: 1px solid var(--hairline); }
.dates .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.date { padding: 22px 20px 22px 0; border-right: 1px solid var(--hairline); margin-right: 20px; }
.date:last-child { border-right: 0; }
.date small { display: block; font-family: var(--font-head); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
.date strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; display: block; }
.date span { color: var(--grey); font-size: .9rem; }
.date--soon strong { color: #b1282a; }
@media (max-width: 700px) { .date { border-right: 0; border-bottom: 1px solid var(--hairline); margin-right: 0; padding: 16px 0; } .date:last-child { border-bottom: 0; } }

/* Deadline badge: navy on coral (passes AA) */
.badge { display: inline-block; background: var(--coral); color: var(--navy); font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge--soft { background: var(--violet-20); }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-top: 0; }
.card--link { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
.card--link:hover { border-color: var(--violet); transform: translateY(-2px); color: inherit; }
.card--link .more { color: var(--violet); font-family: var(--font-head); font-weight: 500; font-size: .95rem; }
.card--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.card--navy h3 { color: var(--violet-20); }
.card--sand { background: var(--sand); border-color: #e7dfd0; }

/* Two-column prose with aside */
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 48px; align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .split, .split--even { grid-template-columns: 1fr; gap: 28px; } }

/* People */
.person { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.person .ph { aspect-ratio: 1; border-radius: 50%; }
.person h3 { margin: 0 0 .15em; font-size: 1.1rem; }
.person p { margin: 0; color: var(--grey); font-size: .95rem; }
@media (max-width: 480px) { .person { grid-template-columns: 88px 1fr; } }

/* Placeholder image blocks — replace with <img> when photos arrive */
.ph {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: repeating-linear-gradient(135deg, #d9d7ec 0 10px, #e6e5f3 10px 20px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--violet-deep); font-family: var(--font-head); font-size: .85rem; padding: 16px;
}
.ph--wide { aspect-ratio: 16 / 7; }
.ph--square { aspect-ratio: 1; }
.ph--logo { aspect-ratio: 3 / 1; background: repeating-linear-gradient(135deg, #2a2a4d 0 10px, #33335a 10px 20px); color: var(--violet-20); }
.ph--map { aspect-ratio: 16 / 9; }
.ph span { background: rgba(255,255,255,.85); padding: 6px 12px; border-radius: 6px; }
.ph--logo span { background: rgba(29,29,54,.7); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1rem 0 2rem; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--grey); background: var(--band); }
td.num, th.num { text-align: right; white-space: nowrap; }
caption { caption-side: top; text-align: left; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--navy); padding: 0 0 10px; }
caption .badge { margin-left: 10px; vertical-align: middle; }

/* Notice */
.notice { border-left: 4px solid var(--coral); background: var(--band); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.notice--info { border-left-color: var(--violet); }
.notice p:last-child { margin-bottom: 0; }

/* Hotel cards */
.hotels { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 24px; }
.hotel { display: grid; grid-template-columns: 130px 1fr; gap: 20px; }
.hotel .ph { aspect-ratio: 1; }
.hotel h3 { margin-bottom: .2em; }
.hotel .stars { color: #c99a2e; letter-spacing: .1em; font-size: .9rem; }
.hotel address { font-style: normal; color: var(--grey); font-size: .92rem; margin: .4em 0 .6em; }
@media (max-width: 560px) { .hotels { grid-template-columns: 1fr; } .hotel { grid-template-columns: 1fr; } .hotel .ph { aspect-ratio: 16/9; } }

/* Sponsor logo grid */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.logos .ph { aspect-ratio: 3 / 2; background: #fff; border: 1px dashed #c8c6dd; color: var(--grey); }

/* Programme */
.prog-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.prog-tabs a { display: inline-block; font-family: var(--font-head); font-weight: 500; font-size: .95rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--navy); text-decoration: none; background: #fff; }
.prog-tabs a:hover { border-color: var(--violet); color: var(--violet-deep); }
.prog-day { margin-bottom: 3rem; scroll-margin-top: 100px; }
.prog-day__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-bottom: 4px; }
.prog-day__head h2 { margin: 0; }
.prog-day__head span { color: var(--grey); font-family: var(--font-head); }
.prog-row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.prog-row__time { font-family: var(--font-head); font-size: .9rem; color: var(--violet-deep); font-weight: 500; white-space: nowrap; padding-top: 2px; }
.prog-row__title { font-weight: 700; font-family: var(--font-head); font-size: 1rem; margin: 0 0 .2em; }
.prog-row__people { color: #3a3a52; font-size: .93rem; margin: 0; }
.prog-row__people b { font-weight: 600; color: var(--grey); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }
.prog-row__notes { color: var(--grey); font-size: .9rem; margin: .3em 0 0; }
.prog-row--session { background: var(--navy); color: #fff; border-radius: 6px; padding: 10px 14px; margin: 14px 0 0; border-bottom: 0; }
.prog-row--session .prog-row__time { color: var(--violet-20); }
.prog-row--session .prog-row__title { color: #fff; }
.prog-row--session .prog-row__people { color: var(--violet-20); }
.prog-row--session .prog-row__people b { color: var(--violet-40); }
.prog-row--break { background: var(--band); padding-left: 14px; padding-right: 14px; }
.prog-row--break .prog-row__title { font-weight: 500; color: var(--grey); }
.prog-row--social { background: var(--sand); padding-left: 14px; padding-right: 14px; }
.prog-status { font-size: .85rem; color: var(--grey); font-family: var(--font-head); margin-top: 1.5rem; }
.prog-outline { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
@media (max-width: 560px) { .prog-row { grid-template-columns: 1fr; gap: 4px; } }

/* CTA band */
.cta-band { background: var(--violet-deep); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.cta-band h2 { color: #fff; margin: 0; font-size: 1.5rem; }
.cta-band p { margin: .25em 0 0; color: var(--violet-20); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); padding: 48px 0 32px; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--violet-20); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8em; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4em; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; margin-top: 10px; color: var(--violet-40); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.site-footer img { height: 44px; width: auto; margin-bottom: 14px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* Utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inline-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--grey); font-size: .95rem; margin-bottom: 1rem; }
