@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Palatino Linotype is the title font used in the association's own documents.
   System font on Windows/macOS; EB Garamond loaded as web fallback. */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;600;700&display=swap');

:root {
  --font-title: 'Palatino Linotype', 'Palatino', 'Book Antiqua', 'EB Garamond', Georgia, serif;
  --font-body:  'Inter', system-ui, -apple-system, sans-serif;
}

/* ─── COLOUR PALETTE (derived from the CRAIO logo) ───────────
   Variable names are kept from the original template (--blue etc.)
   so components can be shared; the values are CRAIO's own.
   Deep teal:       #0e5a6b  (dominant logo colour)
   Mid teal:        #1f7f8f  (mid accent)
   Sand gold:       #d6c08a  (accent line / light logo tone)
   Dark teal:       #07323d  (header / footer bg)
   Page background: #f4f5f2  (pale warm off-white)
   ──────────────────────────────────────────────────────────── */

:root {
  --blue:        #0e5a6b;
  --blue-mid:    #1f7f8f;
  --blue-dark:   #07323d;
  --blue-light:  #5aa7b3;
  --silver:      #d6c08a;
  --silver-light:#ece0bf;
  --off-white:   #f4f5f2;
  --warm-grey:   #e2e5e0;
  --white:       #ffffff;
  --text-dark:   #13232a;
  --text-mid:    #2f4650;
  --text-light:  #627880;
  --border:      #cfd8d6;
  --radius:      6px;
  --shadow-sm:   0 2px 8px rgba(7,50,61,0.10);
  --shadow-md:   0 6px 24px rgba(7,50,61,0.16);
  --gold:        #c9a54b;
  --gold-light:  #dcc07a;
  --navy:        #07323d;
  --shadow-lg:   0 16px 48px rgba(7,50,61,0.22);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--off-white);
  min-height: 100vh;
}

/* ─── BANNER ───────────────────────────────────────────────── */

header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0a4552 60%, #0e5a6b 100%);
  position: relative;
  overflow: visible;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 50%, rgba(214,192,138,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 90% 20%, rgba(90,167,179,0.10) 0%, transparent 55%);
  pointer-events: none;
  overflow: hidden;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--silver) 25%, var(--silver-light) 50%, var(--silver) 75%, transparent 100%);
}

.banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.6rem 2rem;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.banner-identity {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.banner-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  color: inherit;
}

.banner-logo {
  height: 64px;
  width: auto;
  flex-shrink: 0;
  background: white;
  border-radius: 6px;
  padding: 4px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.banner-title {
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.banner-subtitle {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--silver);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ─── NAVIGATION ───────────────────────────────────────────── */

nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

nav a:hover { color: var(--white); background: rgba(255,255,255,0.12); }

nav a.nav-cta {
  background: var(--blue);
  border: 1.5px solid var(--silver);
  color: var(--white);
  font-weight: 600;
  margin-left: 0.4rem;
}

nav a.nav-cta:hover { background: var(--blue-mid); border-color: var(--silver-light); }

.nav-member {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(214,192,138,0.35);
  border-radius: var(--radius);
}

.nav-member:hover {
  background: rgba(255,255,255,0.20) !important;
}

/* ─── LAYOUT ───────────────────────────────────────────────── */

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
main.container { padding-top: 3rem; padding-bottom: 4rem; }

/* ─── HERO ─────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 3rem 2rem 3.5rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--blue);
  margin-bottom: 2.5rem;
}

.hero h2 {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.hero .lead {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 400;
}

/* ─── CONTENT ──────────────────────────────────────────────── */

.content {
  background: var(--white);
  border-radius: 10px;
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  border-left: 4px solid var(--blue-mid);
}

.content h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--warm-grey);
}

.content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-mid);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.content p { color: var(--text-mid); margin-bottom: 1rem; }

.content ul { list-style: none; padding: 0; margin-bottom: 1rem; }

.content ul li {
  color: var(--text-mid);
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
}

.content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blue-light);
  font-weight: 600;
}

.content a { color: var(--blue-mid); text-decoration: underline; text-underline-offset: 3px; }
.content a:hover { color: var(--blue-dark); }

/* ─── CTA ──────────────────────────────────────────────────── */

.cta {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  border-radius: 10px;
  padding: 2.5rem 3rem;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.cta h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta p { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; font-size: 0.95rem; }

/* ─── BUTTONS ──────────────────────────────────────────────── */

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.8rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 10px rgba(14,90,107,0.25);
}

.btn:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14,90,107,0.35);
}

.btn-small {
  display: inline-block;
  background: transparent;
  color: var(--blue-mid);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border: 1.5px solid var(--blue-mid);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.btn-small:hover { background: var(--blue-mid); color: var(--white); }

/* ─── DOCUMENTS PAGE ───────────────────────────────────────── */

.page-header { margin-bottom: 2rem; }

.page-header h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.4rem;
}

.page-header .lead { color: var(--text-light); font-size: 1rem; }

.document-section {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.document-section h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--silver-light);
}

.document-list { display: grid; gap: 1rem; }

.document-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--silver-light);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.document-item:hover { border-left-color: var(--blue); box-shadow: var(--shadow-sm); }
.document-item-body { flex: 1; }
.document-item h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.25rem; }
.document-item p { font-size: 0.87rem; color: var(--text-light); margin-bottom: 0.4rem; }
.date { font-size: 0.78rem; color: var(--text-light); display: block; font-style: italic; }
.document-item .btn-small { align-self: center; white-space: nowrap; }

.members-notice {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  border-radius: 10px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}

.members-notice h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.members-notice p { color: rgba(255,255,255,0.75); font-size: 0.9rem; max-width: 500px; }
.members-notice a { color: var(--silver-light); }

/* ─── LOGIN ────────────────────────────────────────────────── */

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem;
}

.login-container {
  background: var(--white);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--blue);
}

.login-container h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.6rem;
}

.login-container p { color: var(--text-mid); font-size: 0.92rem; margin-bottom: 0.8rem; }

.notice {
  background: var(--off-white);
  border-left: 3px solid var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.75rem 1rem;
  font-size: 0.85rem !important;
  color: var(--text-mid) !important;
  margin: 1.2rem 0 1.8rem !important;
  text-align: left;
}

.help-text { font-size: 0.8rem !important; color: var(--text-light) !important; margin-top: 1.4rem !important; }

/* ─── FOOTER ───────────────────────────────────────────────── */

footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.55);
  padding: 2rem;
  text-align: center;
  font-size: 0.82rem;
  margin-top: 2rem;
  border-top: 3px solid var(--silver);
}

footer p + p { margin-top: 0.4rem; }
footer a { color: var(--silver-light); text-decoration: none; }
footer a:hover { text-decoration: underline; color: var(--white); }

/* ─── GOOGLE CALENDAR ──────────────────────────────────────── */

.calendar-wrapper {
  margin: 1.2rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.calendar-wrapper iframe { display: block; width: 100%; }

.calendar-note {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .calendar-wrapper iframe { height: 400px; }
}

/* ─── BREADCRUMB ───────────────────────────────────────────── */

.breadcrumb { font-size: 0.85rem; margin-bottom: 0.3rem; }
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }

/* ─── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 720px) {
  /* Banner */
  .banner-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1rem 0.8rem;
    gap: 0.8rem;
  }
  .banner-identity { gap: 0.8rem; }
  .banner-logo { height: 48px; }
  .banner-title { font-size: 1.1rem; }
  .banner-subtitle { font-size: 0.7rem; letter-spacing: 0.1em; }

  /* Nav */
  nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.2rem;
    padding-bottom: 0.5rem;
  }
  nav a { padding: 0.35rem 0.65rem; font-size: 0.75rem; }

  /* Layout */
  .container { padding: 0 1rem; }
  main.container { padding-top: 1.5rem; padding-bottom: 2.5rem; }

  /* Hero */
  .hero { padding: 2rem 1.2rem; }
  .hero h2 { font-size: 1.4rem; }
  .hero .lead { font-size: 0.95rem; }

  /* Content blocks */
  .content { padding: 1.4rem 1.2rem; }
  .content h3 { font-size: 1.15rem; }
  .cta { padding: 1.6rem 1.2rem; }
  .cta h3 { font-size: 1.2rem; }

  /* Documents */
  .page-header h2 { font-size: 1.5rem; }
  .document-section { padding: 1.4rem 1.2rem; }
  .document-item { flex-direction: column; gap: 0.6rem; }
  .document-item .btn-small { align-self: flex-start; }
  .members-notice { flex-direction: column; padding: 1.4rem 1.2rem; gap: 1rem; }
  .members-notice h3 { font-size: 1rem; }

  /* Login */
  .login-container { padding: 2rem 1.4rem; }
}

@media (max-width: 420px) {
  .banner-title { font-size: 1rem; }
  .banner-subtitle { display: none; }
  nav a { font-size: 0.72rem; padding: 0.3rem 0.5rem; }
}

/* ─── DROPDOWN NAV ─────────────────────────────────────────── */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.nav-dropdown-toggle::after {
  content: '▾';
  font-size: 0.7rem;
  opacity: 0.75;
}

.nav-dropdown-toggle:hover,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.nav-dropdown-menu {
  display: none;
}

.nav-dropdown-menu.is-open {
  display: block;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 170px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 1000;
  border: 1px solid var(--border);
}

/* dropdown display handled by JS */

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text-dark) !important;
  background: none !important;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  border-radius: 0;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.nav-dropdown-menu a:hover {
  background: var(--off-white) !important;
  border-left-color: var(--blue);
  color: var(--blue-dark) !important;
}

.nav-dropdown-menu a + a {
  border-top: 1px solid var(--warm-grey);
}

@media (max-width: 720px) {
  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }
  .nav-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-radius: 0;
    background: rgba(0,0,0,0.20);
    width: 100%;
  }
  .nav-dropdown-menu a {
    color: rgba(255,255,255,0.85) !important;
    padding: 0.4rem 1.4rem;
    font-size: 0.75rem;
    border-left: none;
  }
  .nav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.10) !important;
    color: var(--white) !important;
  }
  .nav-dropdown-menu a + a {
    border-top: 1px solid rgba(255,255,255,0.08);
  }
}

.document-section p a {
  color: var(--blue-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.document-section p a:hover { color: var(--blue-dark); }

/* ─── CONFERENCE COMPONENTS (CRAIO) ───────────────────────── */

.banner-title .banner-alt { font-weight: 400; color: var(--silver); }

.hero .hero-fr {
  font-family: var(--font-title);
  font-style: italic;
  color: var(--text-light);
  margin-top: 0.6rem;
  font-size: 0.98rem;
}

/* Feature card for the current / next conference */
.conf-card {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  border-radius: 10px;
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: center;
}
.conf-card .eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}
.conf-card h3 {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.25;
  margin: 0.3rem 0 0.5rem;
}
.conf-card p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.conf-card .conf-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.6rem; font-size: 0.9rem; color: rgba(255,255,255,0.9); }
.conf-card .conf-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.conf-card .btn { background: var(--gold); color: var(--navy); box-shadow: none; text-align: center; }
.conf-card .btn:hover { background: var(--gold-light); }
.btn-ghost {
  display: inline-block;
  text-align: center;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: var(--radius);
  padding: 0.55rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* Live status badge (filled in by JS from data-start / data-end) */
.status-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.5rem;
  background: var(--gold);
  color: var(--navy);
}
.status-badge:empty { display: none; }
.status-badge.is-live { background: #2e9d5b; color: #fff; }
.status-badge.is-past { background: var(--silver-light); color: var(--text-mid); }

/* Key facts grid */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.fact {
  background: var(--white);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--blue-mid);
}
.fact .fact-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}
.fact .fact-value { font-weight: 600; color: var(--text-dark); line-height: 1.4; margin-top: 0.2rem; }
.fact .fact-value small { display: block; font-weight: 400; color: var(--text-light); font-size: 0.82rem; }
.fact a { color: var(--blue-mid); }

/* In-page tabs (sub-navigation for a conference) */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--silver-light);
}
.subnav a {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.subnav a:hover { color: var(--blue); }
.subnav a.active { color: var(--blue-dark); border-bottom-color: var(--gold); }

/* Programme / timetable */
.day-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.day-tab {
  background: var(--white);
  border: 1.5px solid var(--blue-mid);
  color: var(--blue-mid);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  cursor: pointer;
}
.day-tab.active, .day-tab:hover { background: var(--blue-mid); color: var(--white); }
.day-panel { display: none; }
.day-panel.active { display: block; }
.print-all .day-panel { display: block; }

.timetable { display: grid; gap: 0.8rem; }
.slot {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  background: var(--white);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--silver-light);
}
.slot.session { border-left-color: var(--blue); }
.slot.break { background: var(--off-white); box-shadow: none; border-left-color: var(--warm-grey); padding: 0.7rem 1.3rem; }
.slot-time { font-weight: 700; color: var(--blue-dark); font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.slot-body h4 { font-family: var(--font-title); font-size: 1.08rem; color: var(--blue-dark); line-height: 1.35; }
.slot.break .slot-body h4 { font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; color: var(--text-mid); }
.slot-body .slot-meta { font-size: 0.85rem; color: var(--text-light); margin: 0.2rem 0 0.5rem; }
.slot-body ul { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.slot-body li {
  font-size: 0.92rem;
  color: var(--text-mid);
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
  border-top: 1px dashed var(--warm-grey);
}
.slot-body li:first-child { border-top: none; }
.slot-body li::before { content: '▸'; position: absolute; left: 0; color: var(--gold); }
.slot-body li strong { color: var(--text-dark); }
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--silver-light);
  color: var(--blue-dark);
  padding: 0.05rem 0.45rem;
  border-radius: 3px;
  margin-right: 0.35rem;
}

/* Data tables */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.data th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 2px solid var(--silver-light);
  padding: 0.6rem 0.8rem;
}
table.data td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--warm-grey); color: var(--text-mid); vertical-align: top; }
table.data tr:hover td { background: var(--off-white); }
table.data td strong { color: var(--text-dark); }
.muted { color: var(--text-light); font-size: 0.85rem; }

.filter-input {
  width: 100%;
  max-width: 360px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  margin-bottom: 1rem;
}

/* Callout */
.callout {
  background: #fbf6e8;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.2rem;
  margin: 0 0 1.5rem;
  color: var(--text-mid);
  font-size: 0.92rem;
}

/* Conferences archive (sidebar + panel, as on the newsletters page) */
.archive-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.archive-sidebar {
  background: var(--white);
  border-radius: 10px;
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 1.5rem;
}
.archive-sidebar h3 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--warm-grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.year-group { margin-bottom: 1.2rem; }
.year-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 0.4rem;
  padding-left: 0.4rem;
}
.arc-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-mid);
  cursor: pointer;
  line-height: 1.3;
}
.arc-btn:hover { background: var(--off-white); color: var(--navy); }
.arc-btn.active { background: var(--navy); color: var(--white); font-weight: 600; }
.arc-panel { display: none; }
.arc-panel.active { display: block; }
.arc-panel .document-section:first-child { border-top: 4px solid var(--blue); }

@media (max-width: 720px) {
  .conf-card { grid-template-columns: 1fr; padding: 1.4rem 1.2rem; }
  .conf-card .conf-actions { flex-direction: row; flex-wrap: wrap; }
  .slot { grid-template-columns: 1fr; gap: 0.3rem; padding: 0.9rem 1rem; }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-sidebar { position: static; }
  .subnav a { padding: 0.45rem 0.6rem; font-size: 0.8rem; }
}

@media print {
  header, footer, .subnav, .day-tabs, .no-print { display: none !important; }
  .day-panel { display: block !important; }
  body { background: #fff; }
  .slot, .document-section, .content { box-shadow: none; }
}

.callout a { color: var(--blue-mid); text-decoration: underline; text-underline-offset: 3px; }

/* Several download buttons for one document (abstract, slides, PowerPoint) */
.doc-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-self: center; justify-content: flex-end; max-width: 330px; }
.doc-actions .btn-small { white-space: nowrap; }
.document-item h4 .tag { vertical-align: 1px; }
@media (max-width: 720px) {
  .doc-actions { justify-content: flex-start; max-width: none; align-self: flex-start; }
}

/* ─── SEARCH ───────────────────────────────────────────────── */

nav a.nav-search { border: 1px solid rgba(255,255,255,0.3); }
.search-row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.search-row .filter-input { flex: 1; min-width: 200px; max-width: none; margin-bottom: 0; font-size: 1.05rem; }
.search-box form { margin-bottom: 1rem; }
.scopes { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.85rem; color: var(--text-light); }
.scope { display: inline-flex; align-items: center; gap: 0.4rem; }
.scope-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border); display: inline-block; }
.scope.on { color: var(--text-dark); font-weight: 600; }
.scope.on .scope-dot { background: #2e9d5b; border-color: #2e9d5b; }
.scope-note { font-weight: 400; color: var(--text-light); font-size: 0.8rem; }
.scope-note::before { content: '('; } .scope-note::after { content: ')'; }
.unlock { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--warm-grey); }
.unlock label { display: block; margin-bottom: 0.4rem; }
.unlock .btn-small { background: var(--white); cursor: pointer; font-family: var(--font-body); }
.pw-msg { color: #b91c1c; font-size: 0.88rem; margin-top: 0.5rem; }
#results { display: grid; gap: 0.8rem; }
.result { background: var(--white); border-radius: 8px; padding: 1rem 1.3rem; box-shadow: var(--shadow-sm); border-left: 4px solid var(--silver-light); }
.result h3 { font-family: var(--font-title); font-size: 1.05rem; line-height: 1.35; margin: 0.3rem 0; }
.result h3 a { color: var(--blue-dark); text-decoration: none; }
.result h3 a:hover { text-decoration: underline; }
.result-sub { font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; color: var(--text-light); }
.result p { font-size: 0.9rem; color: var(--text-mid); overflow-wrap: anywhere; }
.result mark { background: #f6e7b4; color: inherit; padding: 0 1px; border-radius: 2px; }
.tag.scope-public { background: #e3f0ea; color: #1d6b42; }
.tag.scope-members { background: #e1eef1; color: var(--blue); }
.tag.scope-confidential { background: #fbe3e1; color: #9b2c22; }
p.result-sub { font-size: 0.82rem; color: var(--text-light); margin-bottom: 0.3rem; }
.result-also { font-size: 0.82rem !important; color: var(--text-light) !important; margin-top: 0.4rem; }
.result-also a { color: var(--blue-mid); }
footer .footer-admin { font-size: 0.75rem; opacity: 0.7; }
[hidden] { display: none !important; }
.login-container a { color: var(--blue-mid); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ─── LANGUAGE SELECTOR (end of the menu) ──────────────────── */

.lang-switch {
  display: inline-flex;
  margin-left: 0.4rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  overflow: hidden;
}
nav .lang-switch a { border-radius: 0; padding: 0.35rem 0.55rem; letter-spacing: 0.08em; }
nav .lang-switch a.is-current { background: rgba(255,255,255,0.2); color: var(--white); font-weight: 600; }
@media (max-width: 720px) {
  .lang-switch { margin-left: auto; }
  nav .lang-switch a { padding: 0.3rem 0.5rem; }
}
.banner-title { white-space: nowrap; }
@media (min-width: 721px) { .banner-subtitle { max-width: 15rem; } }
/* Medium screens: the menu (longer in French) goes under the site name instead of overflowing */
@media (min-width: 721px) and (max-width: 1180px) {
  .banner-inner { flex-wrap: wrap; row-gap: 0.8rem; }
  nav { flex-wrap: wrap; }
}
