/* Do not remove left sidebar blocks; keep them visible in all versions.
   Keep each name on a new line for committee sections. */

:root {
  --bg: #0e2135;
  --surface: #17314a;
  --surface-2: #1d3b58;
  --card: #f8fbff;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.3);
  --text: #f7fbff;
  --muted: #c4d4e3;
  --primary: #1d87e4;
  --primary-dark: #1369bc;
  --secondary: #1b9a73;
  --secondary-dark: #177a5b;
  --pink: #dc4b96;
  --purple: #7b61df;
  --cyan: #22b8f0;
  --gold: #ffd75a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --maxw: 1080px;
  --pad: 28px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
  height: 100%;
}

body {
  margin: 0;
  padding: calc(24px + var(--safe-top)) calc(24px + var(--safe-right)) calc(24px + var(--safe-bottom)) calc(24px + var(--safe-left));
  background: linear-gradient(180deg, #edf4fb, #e1ebf6);
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

.poster {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 35, 56, 0.18);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.header {
  padding: var(--pad);
  background:
    radial-gradient(circle at top right, rgba(29, 135, 228, 0.2), transparent 26%),
    linear-gradient(180deg, #12273f 0%, #0f2235 100%);
  border-bottom: 1px solid var(--line);
}

.header-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}

.brand {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  padding: 16px 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
  min-height: 188px;
}

.brand .logo-wrap {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 0;
  margin-bottom: 14px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.brand img {
  width: 100%;
  height: 100%;
  max-width: none;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

.brand .small {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.35;
  padding: 0 4px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.brand .big {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 900;
}

.brand .year {
  margin-top: 8px;
  font-size: 26px;
  color: #deebf6;
}

.hero {
  display: grid;
  gap: 16px;
  -ms-flex-line-pack: center;
  align-content: center;
  min-width: 0;
}

.tag {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(27, 154, 115, 0.14);
  border: 1px solid rgba(27, 154, 115, 0.25);
  color: #c5f1e1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  max-width: 28ch;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

h1 .accent { color: #8fd7ff; }
h1 .accent2 { color: #c8f36e; }

.meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.meta-box {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  min-height: 94px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.meta-box .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.88;
  margin-bottom: 8px;
}

.meta-box .value {
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.15;
  font-weight: 900;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.meta-box .sub {
  margin-top: 5px;
  font-size: 17px;
  font-weight: 700;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.main-wrap {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: var(--pad);
  min-width: 0;
}

.sidebar,
.content {
  display: grid;
  gap: 18px;
  -ms-flex-line-pack: start;
  align-content: start;
  min-width: 0;
}

.side-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 18px;
  min-width: 0;
}

.side-title {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef8ef;
  color: #173727;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: 100%;
}

.side-item { margin-bottom: 12px; }
.side-item:last-child { margin-bottom: 0; }

.side-item strong {
  display: block;
  color: #6bf2bd;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.2;
}

.side-item span {
  display: block;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.group {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  min-width: 0;
}

.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  min-width: 0;
}

.section-tag {
  position: relative;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.01em;
  border-radius: 0 14px 14px 14px;
  box-shadow: var(--shadow);
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  z-index: 1;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.section-tag::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -10px;
  width: 22px;
  height: 10px;
  background: inherit;
  -webkit-clip-path: polygon(0 0, 100% 0, 0 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: 0.95;
}

.head-lines {
  position: relative;
  height: 18px;
  min-width: 0;
}

.head-lines::before,
.head-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--line-strong), rgba(255, 255, 255, 0.04));
}

.head-lines::before { top: 4px; }
.head-lines::after { bottom: 4px; }

.tag-pink { background: var(--pink); }
.tag-green { background: var(--secondary); }
.tag-purple { background: var(--purple); }

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 18px;
  padding-top: 40px;
  min-width: 0;
}

.person-card {
  position: relative;
  background: var(--card);
  color: #182433;
  border-radius: 22px;
  min-height: 182px;
  padding: 60px 18px 18px;
  text-align: center;
  overflow: visible;
  min-width: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.person-card.center-span {
  grid-column: 1 / -1;
  max-width: 380px;
  width: 100%;
  justify-self: center;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  position: absolute;
  top: -34px;
  left: 50%;
  -webkit-transform: translateX(-50%) translateZ(0);
  transform: translateX(-50%) translateZ(0);
  border: 5px solid var(--cyan);
  background: linear-gradient(135deg, #d8f0ff, #9fd1f0);
  display: -ms-grid;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 26px;
  font-weight: 900;
  color: #16476a;
  z-index: 2;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

.avatar img {
  width: 100%;
  height: 100%;
  max-width: none;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center center;
  object-position: center center;
  display: block;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.person-card h3 {
  margin: 10px 0 4px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 900;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.person-card p {
  margin: 0;
  color: #1788d1;
  font-size: 18px;
  font-weight: 700;
}

.agenda {
  padding: var(--pad);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
  min-width: 0;
}

.agenda-box {
  background: linear-gradient(180deg, var(--secondary), var(--secondary-dark));
  border-radius: 16px;
  padding: 20px 22px;
  text-align: center;
  min-width: 0;
}

.agenda-time {
  font-size: 18px;
  font-weight: 900;
  color: #f3fbff;
}

.agenda-topic {
  margin: 8px auto;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
  text-transform: uppercase;
  max-width: 34ch;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.agenda-speaker {
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
  text-transform: uppercase;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.cta {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 18px;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  cursor: pointer;
}

.cta.zoom { background: var(--primary); color: #fff; }
.cta.youtube { background: #eef3f7; color: #1f2a36; }

/* Tablets / large phones */
@media (max-width: 920px) {
  body {
    padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
    background: var(--bg);
    overflow-x: hidden;
  }

  .poster {
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
  }

  .header-grid,
  .main-wrap {
    grid-template-columns: 1fr;
  }

  h1 { max-width: none; }

  .brand {
    padding: 18px 16px;
    min-height: 0;
  }

  .brand .small {
    font-size: 12px;
    line-height: 1.35;
    padding: 0 8px;
  }

  .people-grid {
    gap: 48px 18px;
    padding-top: 40px;
  }
}

/* Phones */
@media (max-width: 680px) {
  :root { --pad: 16px; }

  .header,
  .main-wrap,
  .agenda {
    padding: var(--pad);
  }

  .meta-row,
  .people-grid,
  .cta-row {
    grid-template-columns: 1fr;
  }

  .brand .logo-wrap {
    width: 88px;
    height: 88px;
    margin-bottom: 10px;
  }

  .brand .big { font-size: 26px; }
  .brand .year { font-size: 20px; }
  .brand .small {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  h1 {
    font-size: clamp(20px, 5.8vw, 26px);
    line-height: 1.22;
  }

  .tag {
    font-size: 12px;
    padding: 8px 12px;
  }

  .meta-box,
  .side-card,
  .person-card,
  .agenda-box {
    border-radius: 16px;
  }

  .meta-box {
    min-height: 0;
    padding: 14px 15px;
  }

  .meta-box .value { font-size: 22px; }

  .meta-box .sub,
  .person-card p,
  .agenda-time,
  .agenda-speaker {
    font-size: 15px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-tag {
    font-size: 18px;
    min-height: 40px;
    padding: 0 12px;
    max-width: 100%;
  }

  .head-lines {
    height: 12px;
    width: 100%;
  }

  .side-item span { font-size: 15px; }
  .side-item strong { font-size: 12px; }

  .people-grid {
    padding-top: 44px;
    gap: 56px;
  }

  .person-card {
    min-height: 0;
    padding: 58px 14px 16px;
    overflow: visible;
  }

  .person-card.center-span {
    grid-column: auto;
    max-width: none;
  }

  .avatar {
    width: 84px;
    height: 84px;
    top: -30px;
    border-width: 4px;
  }

  .person-card h3 { font-size: 18px; }

  .agenda-topic {
    font-size: 16px;
    max-width: none;
  }

  .agenda-box { padding: 16px; }

  .cta-row { gap: 12px; }

  .cta {
    min-height: 52px;
    font-size: 13px;
    padding: 12px 14px;
    width: 100%;
  }
}

/* Small phones */
@media (max-width: 400px) {
  :root { --pad: 14px; }

  h1 { font-size: 19px; }
  .meta-box .value { font-size: 19px; }
  .person-card h3 { font-size: 16px; }
  .section-tag { font-size: 16px; }
  .avatar {
    width: 78px;
    height: 78px;
    top: -28px;
  }
  .people-grid {
    padding-top: 40px;
    gap: 52px;
  }
}

/* iOS Safari landscape / notch */
@supports (padding: max(0px)) {
  @media (max-width: 920px) {
    body {
      padding-top: max(0px, var(--safe-top));
      padding-right: max(0px, var(--safe-right));
      padding-bottom: max(0px, var(--safe-bottom));
      padding-left: max(0px, var(--safe-left));
    }
  }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-transition: none !important;
    transition: none !important;
  }
}
