/* Speakers, agenda, welcome messages and the hero artwork's sizing (November 24, 2026).
   The Speakers list and the Agenda are generated from data files by build_sections.py;
   see README.md. Colours and type come from site.css. */

/* ---------- speakers: photo, the KV's dashed rule, name (links to the speaker's page), role */
.speakers { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 48px 24px; margin-top: 56px; }
.spk { min-width: 0; }
.spk__photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; background: var(--raised); }
.spk__body { position: relative; margin-top: 18px; padding-top: 16px; }
.spk__body::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--rule) 0 3px, transparent 3px 7px); opacity: 0.85; }
.spk__name { font-size: 18px; font-weight: 700; line-height: 1.3; }
.spk__name a { color: var(--white); text-decoration: none; }
.spk__name a:hover { color: var(--cyan); text-decoration: underline; }
.spk__role { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- agenda: one tab per day (the date is the handle), then the day's slots */
.agenda { --cols: 150px minmax(0, 1fr) 180px; margin-top: 48px; }
.day-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
html:not(.js) .day-tabs { display: none; }
.day-tab {
  display: flex; align-items: flex-start; gap: 22px; min-width: 0;
  padding: 0 0 28px; padding-inline-end: 24px; margin-bottom: -1px;
  background: none; border: 0; border-bottom: 3px solid transparent;
  color: var(--muted); text-align: start; cursor: pointer;
}
.day-tab[aria-selected="true"] { color: var(--white); border-bottom-color: var(--cyan); }
.day-tab__num { flex: 0 0 auto; font-family: "Roboto", sans-serif; font-size: clamp(64px, 7vw, 104px); font-weight: 900; line-height: 0.78; letter-spacing: -0.03em; color: rgba(108, 255, 255, 0.3); transition: color 0.2s; }
.day-tab:hover .day-tab__num { color: rgba(108, 255, 255, 0.65); }
.day-tab[aria-selected="true"] .day-tab__num { color: var(--cyan); }
.day-tab__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.day-tab__label { font-size: 15px; font-weight: 700; color: var(--magenta); }
.day-tab__date { font-size: 24px; font-weight: 900; line-height: 1.15; }

.day-panel[hidden] { display: none; }
.day-panel:focus-visible { outline-offset: 8px; }
/* the panel's own heading shows when the tabs cannot (no JS); with tabs it is read, not shown */
.day-panel__head { display: flex; flex-direction: column; gap: 4px; margin-top: 56px; font-weight: 400; }
.day-panel:first-of-type .day-panel__head { margin-top: 0; }
.js .day-panel__head { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }

.slots__head { display: grid; grid-template-columns: var(--cols); gap: 0 32px; padding: 28px 0 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: var(--muted); }
.slot { display: grid; grid-template-columns: var(--cols); gap: 8px 32px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.slot__time { font-size: 17px; font-weight: 700; color: var(--cyan); font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 3px; }
.slot__event { min-width: 0; }
.slot__title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; }
.slot__place { font-size: 16px; color: var(--muted); padding-top: 4px; }
.slot__group { margin-top: 24px; }
.slot__role { margin-bottom: 14px; font-size: 14px; font-weight: 700; color: var(--magenta); }
.slot__note { font-size: 17px; line-height: 1.45; }

/* coffee, prayer and lunch breaks: tinted, as in the printed agenda */
.slot--break { margin-inline: -19px -16px; padding-inline: 16px; border-inline-start: 3px solid var(--magenta); background: rgba(233, 0, 131, 0.09); border-bottom-color: transparent; }
.slot--break .slot__title, .slot--plain .slot__title { font-size: 18px; }
.slot--break .slot__title { font-weight: 500; }
.slot--end { border-bottom: 0; padding-bottom: 0; }
.slot--end .slot__title { font-size: 16px; font-weight: 700; color: var(--muted); }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px 28px; }
.people--talks { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.person { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.person__pics { flex: 0 0 auto; display: flex; }
.person__pic { display: block; width: 52px; height: 52px; border-radius: 2px; object-fit: cover; background: var(--raised); }
.person--pair .person__pic + .person__pic { margin-inline-start: -14px; outline: 2px solid var(--deep); }
.person__pic--none { display: flex; align-items: center; justify-content: center; background: transparent; border: 1px dashed rgba(255, 255, 255, 0.28); }
.person__pic--none .sq { margin: 0; }
.person__text { min-width: 0; }
.person__name { font-size: 17px; font-weight: 700; line-height: 1.35; }
.person__talk { margin-top: 4px; font-size: 17px; line-height: 1.45; }
.person__line { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- hero tagline: no single word left on its own line */
.hero__line { text-wrap: balance; max-width: 30em; }

/* ---------- hero artwork: always shown whole, sized to the first screen.
   Side by side with the text, it is as tall as the screen allows (header and a margin taken off);
   stacked above the text (narrower than 1020px), it takes about 45% of the screen height. */
.hero__visual { align-items: flex-start; padding-block: 16px; }
.hero__visual .portrait {
  width: min(100%, 600px, calc((100vh - var(--header-h) - 48px) * 0.6452));
  width: min(100%, 600px, calc((100svh - var(--header-h) - 48px) * 0.6452));
}
@media (max-width: 1019px) {
  .hero { min-height: 0; }
  .hero__visual { order: -1; flex-basis: 100%; height: auto; overflow: visible; align-items: flex-start; padding: 16px var(--gutter) 0; }
  .hero__visual .portrait { width: auto; max-width: 100%; height: clamp(280px, 46vh, 440px); height: clamp(280px, 46svh, 440px); }
  .hero__text { padding-block: 16px 56px; }
}

/* ---------- short notes: "By invitation" (poster session), "Free admission" (registration) */
.fact__note, .note-tag { display: inline-block; align-self: flex-start; margin-top: 12px; padding: 3px 10px; border: 1px solid var(--cyan); border-radius: 2px; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--cyan); }
.fact__note { margin-top: 10px; }
.cta-card .note-tag { margin-top: 18px; }
.structure__group > .note-tag { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--cyan); }
.register__free { margin-top: 14px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; line-height: 1.2; color: var(--cyan); }
html[lang="ar"] .register__free { font-weight: 700; line-height: 1.5; }
.site-footer__brand a { display: inline-block; }

/* ---------- welcome messages: each message's own title heads it */
.message__title { font-size: 24px; font-weight: 700; line-height: 1.3; }
#welcome-kicker + .messages { margin-top: 32px; }

/* ---------- Arabic page */
html[lang="ar"] .person__talk { line-height: 1.6; }
html[lang="ar"] .day-tab__label { font-size: 16px; }
html[lang="ar"] .day-tab__date { font-weight: 700; line-height: 1.4; }
html[lang="ar"] .slot__title { line-height: 1.6; }
html[lang="ar"] .slot__role { font-size: 15px; }
html[lang="ar"] .message__title { line-height: 1.5; }

@media (max-width: 1000px) {
  .agenda { --cols: 120px minmax(0, 1fr) 150px; }
}
@media (max-width: 760px) {
  .speakers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; margin-top: 40px; }
  .spk__body { margin-top: 14px; padding-top: 12px; }
  .spk__name { font-size: 16px; }
  .spk__role { font-size: 14px; }
  .agenda { margin-top: 36px; }
  .day-tab { flex-direction: column; gap: 12px; padding-bottom: 18px; padding-inline-end: 8px; }
  .day-tab__num { font-size: 56px; }
  .day-tab__date { font-size: 17px; }
  .slots__head { display: none; }
  .slot { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "time place" "event event"; gap: 6px 16px; padding: 24px 0; }
  .slot__time { grid-area: time; font-size: 16px; }
  .slot__place { grid-area: place; justify-self: end; text-align: end; padding-top: 3px; font-size: 14px; }
  .slot__event { grid-area: event; margin-top: 4px; }
  .slot__title { font-size: 20px; }
  .slot--break { margin-inline: 0; padding-inline: 14px; }
  .people { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .person__pic { width: 44px; height: 44px; }
  .message__title { font-size: 21px; }
}

@media print {
  .day-tabs { display: none; }
  .day-panel[hidden] { display: block; }
  .js .day-panel__head { position: static !important; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin-top: 32px; }
}
