/* MEDSCOPE 2026 - main stylesheet (light theme only)
   Used by index.html and gallery.html */

/* ===== Design tokens (colours) and page base ===== */
:root {
  --bg: #f6f8fc;
  --card: #fff;
  --tx: #14213d;
  --mut: #5b6785;
  --pri: #0b2d6b;
  --acc: #d62839;
  --grn: #5da832;
  --ln: #dde3ef;
  --hero: #0b2d6b;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top,0px);
  padding-bottom: env(safe-area-inset-bottom,0px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 16px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* ===== Navigation bar ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 9;
  background: var(--hero);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
}

nav .b {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .5px;
}

nav .b img {
  height: 38px;
  width: 38px;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

nav ul a {
  display: block;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}

nav ul a:hover {
  background: rgba(255,255,255,.15);
}

#mb {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid #fff6;
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 18px;
}

@media (max-width:1320px) {
  #mb {
    display: block;
  }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--hero);
    flex-direction: column;
    padding: 8px 16px 16px;
    margin: 0;
  }
  nav ul.o {
    display: flex;
  }
}

/* ===== Hero banner and countdown ===== */
.hero {
  background: linear-gradient(160deg,var(--hero),#1b3f8f 60%,#7b1d3a);
  color: #fff;
  text-align: center;
  padding: 56px 20px 64px;
}

.hero img.l {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  box-shadow: 0 8px 30px #0006;
}

.hero h1 {
  font-size: clamp(2.2rem,7vw,4.2rem);
  margin: 14px 0 0;
  letter-spacing: 2px;
}

.hero .s {
  font-size: 1.2rem;
  opacity: .9;
  margin: 0;
}

.hero .t {
  max-width: 720px;
  margin: 14px auto;
  font-size: 1.15rem;
  font-style: italic;
}

.tags {
  letter-spacing: 3px;
  font-weight: 700;
  font-size: .85rem;
  opacity: .85;
  margin: 10px 0;
}

.date {
  display: inline-block;
  background: linear-gradient(90deg,#ffe400,#ff8a00);
  color: #111;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 1.25rem;
  margin: 8px 0;
}

.cd {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 6px;
  flex-wrap: wrap;
}

.cd div {
  background: #ffffff1f;
  border: 1px solid #ffffff40;
  border-radius: 12px;
  min-width: 84px;
  padding: 12px 8px;
}

.cd b {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.cd span {
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--acc);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  margin: 6px;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}

.btn.g {
  background: #ffffff26;
  border: 1px solid #fff6;
}

/* ===== Sections, cards and grids ===== */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 20px;
}

section h2 {
  font-size: clamp(1.6rem,4vw,2.2rem);
  margin: 0 0 6px;
  color: var(--pri);
}

section h2+p.sub {
  color: var(--mut);
  margin: 0 0 24px;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill,minmax(230px,1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: 18px;
}

.card h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  color: var(--mut);
  font-size: .93rem;
}

.num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--acc);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 8px;
}

/* ===== Statistic boxes ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin: 20px 0;
}

.stats div {
  background: var(--pri);
  color: #fff;
  border-radius: 14px;
  text-align: center;
  padding: 18px 8px;
}

.stats b {
  font-size: 2rem;
  display: block;
}

/* ===== Two-column layout ===== */
.two {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

@media (max-width:800px) {
  .two {
    grid-template-columns: 1fr;
  }
}

.two img {
  border-radius: 14px;
  width: 100%;
  box-shadow: 0 6px 24px #0003;
}

/* ===== Programme table ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ln);
}

th,td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--ln);
  vertical-align: top;
}

th {
  background: var(--pri);
  color: #fff;
}

.tw {
  overflow-x: auto;
}

.price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--acc);
}

/* ===== Alternate (tinted) sections ===== */
.alt {
  background: color-mix(in srgb,var(--pri) 7%,var(--bg));
  max-width: none;
}

.alt>div {
  max-width: 1100px;
  margin: auto;
}

/* ===== Sponsor logos ===== */
.lg {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.lg img {
  height: 84px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  border: 1px solid var(--ln);
}

h4 {
  margin: 22px 0 8px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
}

/* ===== Tick lists ===== */
ul.chk {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
}

ul.chk li {
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 10px;
  padding: 10px 14px 10px 38px;
  position: relative;
}

ul.chk li:before {
  content: "✚";
  position: absolute;
  left: 13px;
  color: var(--acc);
}

/* ===== Forms ===== */
form {
  display: grid;
  gap: 10px;
  max-width: 560px;
}

input,textarea,select {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid var(--ln);
  background: var(--card);
  color: var(--tx);
  font: inherit;
}

.ok {
  display: none;
  color: var(--grn);
  font-weight: 700;
}

/* ===== Footer ===== */
footer {
  background: var(--hero);
  color: #fff;
  padding: 40px 20px 28px;
  text-align: center;
}

footer a {
  display: inline-block;
  margin: 2px 8px;
  font-size: .9rem;
}

footer p {
  margin: 6px 0;
  opacity: .85;
}

.note {
  font-size: .88rem;
  color: var(--mut);
}

/* ===== Video gallery page ===== */
.vg {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
}

.v {
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 14px;
  overflow: hidden;
}

.v .r {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.v iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.v h3 {
  margin: 0;
  padding: 12px 14px;
  font-size: 1rem;
}

.ph {
  display: grid;
  place-items: center;
  height: 100%;
  color: #fff9;
  font-size: .9rem;
  text-align: center;
  padding: 10px;
}

/* ===== Small helper classes ===== */
.active { background: #ffffff26; }
.hidden { display: none; }
.center { text-align: center; }
.narrow { max-width: 560px; }
.mt-sm { margin-top: 14px; }
.mt-lg { margin-top: 44px; }
.no-margin { margin: 0; }
.cd-label { margin: 0 0 10px; }
.big-timer { font-size: 2.2rem; }
.hero.hero-sm { padding: 40px 20px; }
.hero h1.page-title { font-size: clamp(2rem,6vw,3rem); }
