:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-soft: #eef5f1;
  --ink: #132f35;
  --muted: #5b7074;
  --line: #d8e3df;
  --teal: #0c766d;
  --teal-dark: #064c48;
  --blue: #204d75;
  --gold: #815a16;
  --danger: #8f3e32;
  --shadow: 0 16px 40px rgba(18, 47, 53, 0.09);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.84rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a,
.lang-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.55rem 0.72rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.lang-btn:hover,
.lang-btn:focus-visible {
  background: #e3eee9;
  color: var(--ink);
  outline: none;
}

.language-switch {
  display: inline-flex;
  gap: 0.2rem;
  padding-left: 0.5rem;
  margin-left: 0.35rem;
  border-left: 1px solid var(--line);
}

.lang-btn {
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.lang-btn.is-active {
  color: #fff;
  background: var(--teal);
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  min-height: min(720px, calc(100vh - 72px));
  padding: 4.6rem 0 2rem;
  background:
    linear-gradient(90deg, rgba(246, 248, 247, 0.98) 0%, rgba(246, 248, 247, 0.92) 42%, rgba(246, 248, 247, 0.78) 63%, rgba(246, 248, 247, 0.18) 85%),
    url("img/AI4Health.png");
  background-color: #eef5f1;
  background-position: center right;
  background-size: cover;
}

.hero-grid,
.split,
.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.hero-grid {
  grid-template-columns: minmax(0, 775px);
}

.split,
.contact-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.hero-copy {
  padding: 1rem 0 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.2rem);
  max-width: 9ch;
  color: var(--teal-dark);
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  max-width: 22ch;
}

h3 {
  font-size: 1.1rem;
}

.subtitle {
  margin: 0.9rem 0 0;
  color: var(--blue);
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  font-weight: 750;
  line-height: 1.2;
}

.lead {
  max-width: 62ch;
  margin: 1.2rem 0 0;
  color: #35575d;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.7rem;
}

.hero-actions .button {
  padding-inline: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  padding: 0.72rem 1rem;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--line);
}

.button.primary {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.7rem 0 0;
}

.fact-strip div {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.fact-strip dt {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fact-strip dd {
  margin: 0;
  font-weight: 800;
}

.qr-card,
.contact-card,
.info-card,
.program-day,
.committee-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.qr-card p {
  margin: 0;
  padding: 0.9rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.section {
  padding: 4.5rem 0;
}

.section.muted,
.status-band {
  background: var(--surface-soft);
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  max-width: 780px;
}

.section-heading p:not(.section-kicker),
.section-note {
  max-width: 780px;
  color: var(--muted);
}

.rich-copy p {
  margin-top: 0;
  color: #35575d;
  font-size: 1.03rem;
}

.status-band {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.status-grid article {
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-grid strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.12rem;
}

.status-grid p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-registration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.8rem;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.status-registration img {
  width: 74px;
  height: 74px;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid.three,
.card-grid.topics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  padding: 1.2rem;
}

.info-card .number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  border-radius: 6px;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.info-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.info-card .topic-kind {
  margin: 0 0 0.45rem;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.program-day {
  padding: 1.2rem;
}

.program-day h3 {
  color: var(--teal-dark);
}

.program-day > p {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
}

.session-list {
  display: grid;
  gap: 0.7rem;
}

.session {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdfc;
}

.session time {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--gold);
  font-weight: 850;
  font-size: 0.84rem;
}

.session strong {
  display: block;
}

.session p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.requirements {
  display: grid;
  gap: 1rem;
}

.requirement-block {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.requirement-block ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
}

.requirement-block li + li {
  margin-top: 0.35rem;
}

.registration-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 180px);
  gap: 1rem;
  align-items: start;
  margin-top: 1.2rem;
}

.form-cta {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}

.form-cta .button {
  width: min(100%, 220px);
}

.form-cta p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.qr-card {
  max-width: 180px;
  overflow: hidden;
}

.qr-card img {
  width: 100%;
  padding: 0.75rem;
  background: #fff;
}

.committees {
  display: grid;
  gap: 0.85rem;
}

.committee-panel {
  overflow: hidden;
}

.committee-panel summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 850;
}

.committee-panel summary span {
  color: var(--muted);
  font-weight: 700;
}

.committee-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--teal-dark);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f7faf9;
}

td {
  color: #294a50;
}

.committee-table-wrap th:first-child,
.committee-table-wrap td:first-child,
.committee-table-wrap th:last-child,
.committee-table-wrap td:last-child {
  white-space: nowrap;
}

.contact-section {
  background: var(--teal-dark);
  color: #fff;
}

.contact-section .section-kicker,
.contact-section p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-card {
  padding: 1.4rem;
  color: var(--ink);
}

.contact-card p {
  color: var(--muted);
}

.contact-card .contact-name {
  margin: 0;
  color: var(--teal-dark);
  font-size: 1.2rem;
  font-weight: 900;
}

.contact-website-label {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-grid strong,
.contact-card a {
  overflow-wrap: anywhere;
}

.contact-card a {
  display: block;
  width: fit-content;
  margin-top: 0.55rem;
  color: var(--teal-dark);
  font-weight: 850;
}

.site-footer {
  padding: 1.4rem 0;
  background: #092f2c;
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .site-nav a,
  .lang-btn {
    justify-content: flex-start;
  }

  .language-switch {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
  }

  .hero-grid,
  .split,
  .contact-grid,
  .program-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid.three,
  .card-grid.topics,
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1rem, var(--max));
  }

  .hero {
    padding-top: 2.4rem;
    background:
      linear-gradient(90deg, rgba(246, 248, 247, 0.98) 0%, rgba(246, 248, 247, 0.95) 58%, rgba(246, 248, 247, 0.88) 100%),
      url("img/AI4Health.png");
    background-position: center top;
    background-size: cover;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.2rem);
  }

  .fact-strip,
  .card-grid.three,
  .card-grid.topics,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 3.2rem 0;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner p + p {
    margin-top: 0.45rem;
  }
}

@media (max-width: 520px) {
  .registration-row {
    grid-template-columns: 1fr;
  }

  .form-cta,
  .form-cta .button {
    width: 100%;
  }

  .qr-card {
    width: min(100%, 220px);
  }
}
