/* ============================================================
   SAME19 — design
   Brand colors taken from the conference flyer:
   navy #002890, teal #00A4A3, waterlight blues.
   ============================================================ */

:root {
	--navy: #002890;
	--navy-700: #001f70;
	--navy-900: #00154f;
	--teal: #00a4a3;
	--teal-600: #009190;
	--teal-700: #076a68;
	--teal-50: #e8f8f7;
	--ink: #2f3a48;
	--ink-soft: #8b97a8;
	--blue-50: #f3f8ff;
	--blue-100: #e3eeff;
	--white: #ffffff;
	--bg: #ffffff;
	--bg-soft: #f5f9ff;
	--border: #dee8f8;
	--text: #2b3a5a;
	--muted: #63738f;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 16px 44px rgba(0, 40, 144, .09);
	--shadow-sm: 0 8px 22px rgba(0, 40, 144, .07);
	--sidebar-width: 300px;
	--content-max: 1040px;
	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--teal); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--teal-600); }

h1, h2, h3, h4 {
	margin: 0 0 .55em;
	color: var(--navy);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 3.7vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: .3em 0; }

b, strong { color: var(--navy); font-weight: 700; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

/* ---------- Layout ---------- */

.layout { display: flex; min-height: 100vh; }

.sidebar {
	position: sticky;
	top: 0;
	flex: 0 0 var(--sidebar-width);
	width: var(--sidebar-width);
	height: 100vh;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	padding: 30px 24px;
	background:
		radial-gradient(120% 70% at 0% 0%, rgba(0, 164, 163, .12), transparent 62%),
		radial-gradient(120% 70% at 100% 100%, rgba(0, 40, 144, .10), transparent 62%),
		linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
	border-right: 1px solid var(--border);
}

.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: block; flex: 1; transition: opacity .18s ease; }
.brand:hover { opacity: .85; }
.brand picture { display: block; }
.brand img { display: block; width: 100%; height: auto; }

.sidebar-nav {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-top: 22px;
	margin-bottom: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
}
.sidebar-nav a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.sidebar-nav .nav-ico {
	width: 19px;
	height: 19px;
	flex: none;
	color: var(--ink-soft);
	transition: color .18s ease;
}
.sidebar-nav a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 3px;
	height: 18px;
	border-radius: 0 3px 3px 0;
	background: var(--teal);
	transform: translateY(-50%) scale(0);
	transform-origin: left center;
	opacity: 0;
	transition: transform .24s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
}
.sidebar-nav a:hover { background: rgba(0, 164, 163, .09); color: var(--teal-600); }
.sidebar-nav a:hover .nav-ico { color: var(--teal); }
.sidebar-nav a.active::before {
	transform: translateY(-50%) scale(1);
	opacity: 1;
}
.sidebar-nav a.active {
	background: var(--teal-50);
	color: var(--teal-700);
	box-shadow: inset 0 0 0 1px rgba(0, 164, 163, .14);
}
.sidebar-nav a.active .nav-ico { color: var(--teal); }

.sidebar-foot {
	margin-top: auto;
	padding: 16px 18px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: rgba(255, 255, 255, .68);
	box-shadow: 0 8px 20px rgba(0, 40, 144, .05);
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 13px;
	color: var(--muted);
}
.sidebar-foot .foot-label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 5px;
	color: var(--ink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.sidebar-foot .foot-label::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--teal);
}
.sidebar-foot a { color: var(--ink); font-weight: 600; }
.sidebar-foot a:hover { color: var(--teal); }

.content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.blocks {
	width: 100%;
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 56px 56px 32px;
	flex: 1 0 auto;
}

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

.section { margin: 56px 0; }
.blocks > .section:first-child { margin-top: 0; }
.section > .inner { position: relative; }
.section h2 { margin-top: 2em; }
.section h3 { margin-top: 1.6em; }
.section .inner > :first-child { margin-top: 0; }
.section .section { margin: 0 0 32px; }
.section .section:last-child { margin-bottom: 0; }

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

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

.section.hero { margin-bottom: 40px; }
.section.hero > .inner {
	padding: 64px 56px 58px;
	border-radius: 30px;
	text-align: center;
	background:
		radial-gradient(85% 120% at 6% 0%, rgba(0, 164, 163, .30), transparent 55%),
		radial-gradient(85% 120% at 94% 6%, rgba(0, 40, 144, .26), transparent 55%),
		linear-gradient(180deg, #ffffff 0%, #e6f1ff 100%);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.section.hero > .inner::after {
	content: '';
	position: absolute;
	inset: auto -20% -60% -20%;
	height: 60%;
	background: radial-gradient(60% 100% at 50% 0%, rgba(0, 164, 163, .16), transparent 70%);
	pointer-events: none;
}
.section.hero h1 { position: relative; z-index: 1; margin-bottom: 25px; }
.section.hero .lede { position: relative; z-index: 1; max-width: 660px; margin: 0 auto 1.7em; color: var(--text); font-size: 1.12rem; }

.hero-badge {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	padding: 6px 16px;
	border-radius: 999px;
	background: var(--navy);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .22em;
}
.hero-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

.hero-meta {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 24px;
}
.chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .85);
	border: 1px solid var(--border);
	color: var(--navy);
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(0, 40, 144, .04);
}

.hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Page head ---------- */

.section.page-head { margin-bottom: 40px; }
.section.page-head h1 { margin-bottom: 12px; }
.section.page-head .kicker {
	display: inline-block;
	margin-bottom: 12px;
	color: var(--teal);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
}

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 999px;
	background: var(--teal);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	border: 1.5px solid transparent;
	cursor: pointer;
	box-shadow: 0 12px 26px rgba(0, 164, 163, .26);
	transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover { background: var(--teal-600); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0, 164, 163, .32); }
.btn.outline { background: transparent; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn.outline:hover { background: var(--navy); color: #fff; }

/* ---------- Cards / content ---------- */

.card {
	padding: 28px 32px;
	border-radius: var(--radius);
	background: var(--bg-soft);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
}
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--teal); }

.people { list-style: none; margin: 0; padding: 0; }
.people li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.people li:last-child { padding-bottom: 0; border-bottom: 0; }

.dates ul { list-style: none; margin: 0; padding: 0; }
.dates li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	padding: 13px 0;
	border-bottom: 1px solid var(--border);
}
.dates li:last-child { padding-bottom: 0; border-bottom: 0; }
.dates li b { color: var(--teal-600); white-space: nowrap; }

.section.join { text-align: center; }
.section.join p { color: var(--navy); font-size: 1.15rem; }

.note { color: var(--muted); font-style: italic; }
.placeholder { text-align: center; color: var(--muted); }
.pre-line { white-space: pre-line; }

/* ---------- Cards block ---------- */

.cards-grid { display: grid; gap: 20px; }
.cards-grid.cols-1 { grid-template-columns: 1fr; }
.cards-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 800px) {
	.cards-grid.cols-2,
	.cards-grid.cols-3 { grid-template-columns: 1fr; }
	.cards-grid { gap: 16px; }
}

/* ---------- Map block ---------- */

.map-embed {
	margin: 24px 0 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-soft);
}
.map-frame {
	display: block;
	width: 100%;
	height: 380px;
	border: 0;
}
.map-links { margin: 8px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.6; }
.map-links a { color: var(--muted); }
.map-links a:hover { color: var(--teal); }
.map-links span { margin: 0 .45em; }

@media (max-width: 560px) {
	.map-frame { height: 300px; }
}

/* ---------- Grid block ---------- */

.grid { display: grid; gap: 28px; align-items: start; }
.section h2 + .grid { margin-top: 1.6em; }
.block-intro { margin-bottom: 1.6em; }
.block-intro > :last-child { margin-bottom: 0; }
.grid.cols-1 { grid-template-columns: 1fr; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.with-sep { grid-template-columns: 1fr auto 1fr; align-items: start; }
.grid-sep { align-self: center; font-size: 2rem; font-weight: 800; color: var(--teal); text-align: center; padding: 0 .4rem; }
.section .grid-item h3 { margin-top: 0; }

@media (max-width: 800px) {
	.grid { gap: 16px; }
	.grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
	.grid.with-sep { grid-template-columns: 1fr; }
	.grid-sep { padding: .2rem 0; }
}

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

.site-footer { border-top: 1px solid var(--border); }
.site-footer .inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 22px 56px;
	font-size: 13px;
	color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--teal); }

/* ---------- SPA navigation transition (see spa.js) ---------- */

.blocks { transition: opacity .18s ease, transform .18s ease; }

html.is-navigating .blocks { opacity: 0; transform: translateY(8px); }

/* jump straight to the top on a page swap – do not use the global smooth scroll */
html.is-navigating { scroll-behavior: auto; }

@media (prefers-reduced-motion: reduce) {
	.blocks { transition: none; }
	html.is-navigating .blocks { opacity: 1; transform: none; }
}

/* ---------- Mobile ---------- */

#menutoggle { display: none; }
.menu-btn { display: none; padding: 8px; border-radius: 10px; color: var(--navy); cursor: pointer; }
.menu-btn:hover { background: rgba(0, 40, 144, .07); }

@media (max-width: 980px) {
	.layout { display: block; }

	.sidebar {
		position: static;
		width: 100%;
		height: auto;
		padding: 16px 20px;
		border-right: 0;
		border-bottom: 1px solid var(--border);
		overflow: visible;
	}
	.brand { flex: 0 0 auto; }
	.brand picture { width: auto; }
	.brand img { height: 22px; width: auto; }
	.menu-btn { display: flex; align-items: center; justify-content: center; }

	.sidebar-nav { display: none; margin-top: 16px; margin-bottom: 0; padding-top: 16px; }
	.sidebar-foot { display: none; margin-top: 16px; }

	#menutoggle:checked ~ .sidebar .sidebar-nav { display: flex; }
	#menutoggle:checked ~ .sidebar .sidebar-foot { display: flex; }

	.blocks { padding: 32px 20px 16px; }
	.section.hero > .inner { padding: 44px 24px; border-radius: 24px; }
	.section.hero .lede { font-size: 1.02rem; }
	.site-footer .inner { flex-direction: column; text-align: center; padding: 20px; }
}

@media (max-width: 560px) {
	h1 { font-size: 1.75rem; }
	.section.hero h1 { font-size: 1.6rem; }
	.hero-meta { flex-direction: column; align-items: center; }
	.chip { width: 100%; justify-content: center; }
	.dates li { flex-direction: column; gap: 2px; }
	.card { padding: 22px 20px; }
}
