/* AI for Smart Grids workshop – mobile-first, no dependencies */
:root {
  --navy: #0a3327;
  --navy-2: #12503d;
  --green: #91ef44;
  --header-bg: #041f15;               /* header and mobile menu background */
  --net-line: rgba(70, 87, 59, 0.55); /* moving dashed lines in the hero */
  --net-node: rgba(83, 104, 70, 0.55);                /* dots in the hero net */
  --green-light: #d8ffab;
  --green-mid: #1d682e;               /* readable mid green for text/icons on white */
  --ink: #14212e;
  --muted: #5b6670;
  --bg: #ffffff;
  --bg-grey: #ebece9;
  --line: #e3e7ea;
  --dash: #c2cad1;
  --on-dark: #ffffff;
  --font-title: "Goldman", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; font-family: var(--font-body); font-optical-sizing: auto;
  color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 1rem; text-align: center;
}
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; overflow-wrap: break-word; }
h2 { font-size: 1.75rem; }
p { margin: 0 0 1em; }
a { color: #1b7a3a; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
[data-slot="about"] p { text-align: justify; hyphens: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }
.skip-link:focus { top: 8px; }
.noscript { padding: 16px; background: var(--bg-grey); text-align: center; margin: 0; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; flex: none; }

/* Placeholders look identical to final content; the "[TBC" prefix in content.js marks them. */

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); color: var(--on-dark); border-bottom: 2px solid var(--green); }
.header-inner { display: flex; align-items: center; justify-content: flex-end; min-height: var(--header-h); position: relative; }
.menu-toggle { background: none; border: 1px solid rgba(255,255,255,.5); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; display: grid; place-items: center; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; background: var(--on-dark); content: ""; position: relative; }
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--header-bg); flex-direction: column; padding: 8px 16px 16px; border-bottom: 2px solid var(--green); }
.site-nav.open { display: flex; }
.site-nav a { color: var(--on-dark); text-decoration: none; padding: 12px 4px; border-bottom: 1px solid var(--navy-2); }
.site-nav a[aria-current="true"] { color: var(--green-light); border-bottom-color: var(--green-light); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy) url("../images/hero/e895cbef-bbc4-4dc0-9117-838618b81d9e.png") center bottom / cover no-repeat; color: var(--on-dark); padding: 56px 0 64px; }
.hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.grid-lines path { fill: none; stroke: var(--net-line); stroke-width: 1.5; stroke-dasharray: 6 8; animation: flow 60s linear infinite; }
.grid-nodes circle { fill: var(--net-node); opacity: .75; }
@keyframes flow { to { stroke-dashoffset: -280; } }
.hero-body { position: relative; }
.eyebrow { color: #fff; text-transform: uppercase; letter-spacing: .16em; font-size: 1.25rem; font-weight: 600; margin: 0 0 8px; }
.hero h1 { font-size: 2rem; margin-bottom: .8em; }
.hero-meta { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 1.05rem; }
.hero-meta li { display: flex; align-items: center; gap: 10px; justify-content: center; }
.hero-meta a { color: #fff; }
.button { display: inline-block; margin-top: 16px; background: var(--green); color: var(--navy); padding: 12px 60px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: background .2s, box-shadow .2s; }
.button:hover { background: var(--green-light); box-shadow: 0 0 18px rgba(145, 239, 68, .55); }
.button.is-placeholder { cursor: default; }

/* Sections */
.section { padding: 48px 0; }
.section.grey { background: var(--bg-grey); }
.section h2::after { content: ""; display: block; width: 56px; height: 3px; margin: 12px auto 0; background: var(--green); border-radius: 2px; }

/* Presenters: no frames, round photos with shadow, dashed link between them */
.presenter-grid { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 56px; margin-top: 48px; }
.presenter { position: relative; padding: 0 20px; flex: 0 0 50%; }
.photo { position: relative; }
.presenter h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin: 18px 0 2px; }
.presenter p { margin: 0; font-size: .92rem; color: var(--muted); }
.avatar { position: relative; z-index: 1; width: 224px; max-width: 100%; aspect-ratio: 1 / 1; margin: 0 auto; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #cdd5db, #aab5be); color: #fff; display: grid; place-items: center; font-family: var(--font-body); font-weight: 600; font-size: 3rem; box-shadow: 0 10px 28px rgba(10, 31, 51, .25); }
/* dashed connector between neighbouring photos in the same row */
.photo::before, .photo::after { content: ""; position: absolute; top: 50%; width: calc(50% + 20px); border-top: 2px dashed var(--dash); }
.photo::before { left: -20px; }
.photo::after { right: -20px; }
.presenter:nth-child(2n+1) .photo::before, .presenter:nth-child(2n) .photo::after, .presenter:last-child .photo::after { display: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Schedule: two plain columns with hairlines */
.schedule-date { color: var(--muted); }
.schedule-layout { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.schedule-photo img { display: block; width: 100%; height: 200px; object-fit: cover; border-radius: 16px; }
.schedule-table { table-layout: fixed; width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; text-align: left; }
.schedule-table td { padding: 16px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.schedule-table tr:last-child td { border-bottom: 1px solid var(--line); }
.schedule-table .time { width: 20%; font-size: .88rem; color: var(--muted); padding-top: 18px; }
.schedule-table .session-line { color: var(--muted); font-size: .95rem; }
.schedule-table .group td { background: rgba(227, 242, 212, 0.3); }
.schedule-table .group strong { text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.schedule-table .group .session-line { color: var(--ink); }
.schedule-table .group .time { vertical-align: middle; padding-top: 16px; }
.time-ref { display: inline-grid; place-items: center; }
.time-ref > * { grid-area: 1 / 1; }
.time-ghost { visibility: hidden; }
.session-icon { width: 3.2rem; height: 3.2rem; color: var(--green-mid); fill: currentColor; stroke: none; display: block; }

/* Venue / team */
.venue-layout { display: flex; flex-direction: column; gap: 24px; }
.venue-text { text-align: center; }   /* mobile: centred (underline already centred by .section h2::after) */
.venue-icon { width: 2.4rem; height: 2.4rem; color: var(--navy); margin-bottom: 8px; }
.venue-lines { font-size: 1.1rem; }
.venue-photo { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 28px rgba(10, 51, 39, .2); }
.team-list p { margin: 0 0 .5em; }

/* Footer */
.site-footer { background: var(--navy); border-top: 2px solid var(--green); color: var(--on-dark); padding: 12px 0; font-size: .75rem; line-height: 2; }
.site-footer p { margin: 0; }
.site-footer .copyright { color: rgba(255, 255, 255, .75); }

@media (min-width: 768px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; gap: 28px; padding: 0; border: 0; background: none; }
  .site-nav a { border-bottom: 2px solid transparent; padding: 8px 2px; }
  .hero { padding: 96px 0 104px; }
  .hero h1 { font-size: 3rem; }
  h2 { font-size: 2.1rem; }
  .section { padding: 72px 0; }

  /* 3 per row */
  .presenter { flex-basis: 33.333%; }
  .presenter:nth-child(2n+1) .photo::before, .presenter:nth-child(2n) .photo::after { display: block; }
  .presenter:nth-child(3n+1) .photo::before, .presenter:nth-child(3n) .photo::after, .presenter:last-child .photo::after { display: none; }

  /* venue: text left, image right */
  .venue-layout { flex-direction: row; align-items: center; gap: 48px; }
  .venue-text { flex: 1 1 0; min-width: 0; text-align: left; }   /* 1/3, left-aligned */
  .venue-text h2::after { margin-left: 0; margin-right: 0; }
  .venue-photo { flex: 2 1 0; min-width: 0; }  /* 2/3 */

  /* schedule: vertical image on the left, table on the right */
  .schedule-layout { flex-direction: row; align-items: stretch; gap: 40px; }
  .schedule-photo { flex: 0 0 300px; }
  .schedule-photo img { height: 100%; min-height: 360px; }
  .schedule-table { margin: 0; max-width: none; flex: 1; align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grid-lines path { animation: none; }
}
