/* ==========================================================================
   CIMEGS - Conference archive pages (standalone)
   Self-contained brand stylesheet for the preserved WordPress forum pages
   served at cimeg.ca/publication/<slug>/. No dependency on the hub assets,
   so the archived URLs keep working under any deployment layout.
   Brand tokens mirror home/assets/css/style.css :root (navy/red/events-gold).
   ========================================================================== */

:root {
  --brand:    #242F5F;
  --blue-800: #1A2247;
  --blue-600: #32417F;
  --blue-100: #DCE0EF;
  --blue-050: #F0F2F8;
  --red-700:  #9E100F;
  --red-500:  #E41715;
  --gold:     #9A6A12;   /* events division accent */
  --gold-700: #7A540E;
  --paper:    #F7F8FA;
  --surface:  #FFFFFF;
  --n-100:    #ECEEF1;
  --n-300:    #C9CED6;
  --n-500:    #6E7785;
  --n-700:    #4A515B;
  --ink:      #16202B;

  --font-display: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --maxw: 60rem;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-1: 0 1px 2px rgba(26, 34, 71, .06);
  --shadow-2: 0 8px 28px rgba(26, 34, 71, .10);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; }

a { color: var(--blue-600); }
a:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--brand); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }

/* ---------- Site header ---------- */
.site-header {
  background: var(--brand);
  color: #fff;
  border-bottom: 3px solid var(--red-700);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .85rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.brand strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .2px; }
.brand span { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--blue-100); display: block; margin-top: 1px; }
.brand .seal {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, var(--blue-600), var(--blue-800));
  border: 1.5px solid rgba(255,255,255,.45);
  display: grid; place-items: center; color: #fff; font-family: var(--font-display);
  font-weight: 600; font-size: .9rem;
}
.header-nav { display: flex; gap: 1.1rem; font-size: .8rem; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: .08em; }
.header-nav a { color: var(--blue-100); text-decoration: none; }
.header-nav a:hover { color: #fff; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-family: var(--font-mono); font-size: .72rem; color: var(--n-500);
  text-transform: uppercase; letter-spacing: .07em; padding-block: 1rem .25rem; }
.breadcrumb a { color: var(--n-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--n-300); margin-inline: .4rem; }

/* ---------- Archive notice banner ---------- */
.archive-banner {
  background: var(--red-700); color: #fff; text-align: center;
  padding: .9rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; margin: 1.25rem 0 2rem;
  box-shadow: var(--shadow-1);
}
.archive-banner small { display: block; font-weight: 400; opacity: .85;
  font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .08em; margin-top: .25rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #10162E 0%, var(--brand) 45%, var(--blue-600) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 3.25rem 2rem;
  text-align: center; margin-bottom: 2.25rem; position: relative; overflow: hidden;
  box-shadow: var(--shadow-2);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(60% 80% at 88% -10%, rgba(154,106,18,.22), transparent 60%),
    radial-gradient(50% 70% at 8% 110%, rgba(228,23,21,.16), transparent 60%);
}
.hero > * { position: relative; }
.hero .kicker { font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: .16em; font-size: .72rem; color: #E7C46A; margin: 0 0 .9rem; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.7rem); margin: 0; }
.hero h2 { color: var(--blue-100); font-weight: 500; font-size: clamp(1.05rem, .9rem + .8vw, 1.4rem);
  margin: .65rem 0 0; }
.hero .when { display: inline-block; margin-top: 1.15rem; font-family: var(--font-mono);
  font-size: .82rem; letter-spacing: .04em; color: #fff;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .4rem 1rem; }
.hero p { max-width: 46rem; margin: 1.3rem auto 0; color: #EAEDF6; }

/* ---------- Content cards / sections ---------- */
.card {
  background: var(--surface); border: 1px solid var(--n-100);
  border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-1);
}
.card.tint { background: var(--blue-050); border-color: var(--blue-100); }
.card.center { text-align: center; }
.card > h2 { margin-top: 0; font-size: 1.5rem; display: flex; gap: .5rem;
  align-items: center; justify-content: inherit; flex-wrap: wrap; }
.card.center > h2 { justify-content: center; }
.card > h3 { color: var(--blue-600); margin-top: 1.75rem; }
.card > h3:first-child, .card > h2:first-child { margin-top: 0; }
.card p { max-width: 52rem; }
.card.center p { margin-inline: auto; }
.lead { color: var(--n-700); }

.section-rule { height: 4px; width: 56px; background: var(--gold);
  border-radius: 2px; margin: 0 auto 1.25rem; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
  margin-top: 1.4rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  font-weight: 600; font-size: .95rem; padding: .7rem 1.25rem; border-radius: var(--radius);
  border: 1.5px solid transparent; transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  cursor: pointer; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-700); }
.btn-red { background: var(--red-700); color: #fff; }
.btn-red:hover { background: var(--red-500); }
.btn-outline { background: var(--surface); color: var(--brand); border-color: var(--blue-100); }
.btn-outline:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Day navigation tiles ---------- */
.day-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.5rem; }
.day-tile {
  flex: 1 1 220px; max-width: 280px; text-decoration: none; text-align: center;
  background: var(--surface); border: 1.5px solid var(--blue-100); border-radius: var(--radius-lg);
  padding: 1.4rem 1rem; color: var(--brand); font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.day-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--gold); }
.day-tile .num { display: block; font-family: var(--font-mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: .4rem; }
.day-tile .ttl { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.day-tile .date { display: block; font-size: .8rem; color: var(--n-500); margin-top: .35rem; font-weight: 400; }

/* ---------- Article body (day reports / general report) ---------- */
.article h2 { font-size: 1.55rem; }
.article h3 { color: var(--blue-600); margin-top: 2rem; font-size: 1.25rem;
  border-inline-start: 4px solid var(--gold); padding-inline-start: .7rem; }
.article h4 { color: var(--blue-600); margin-top: 1.5rem; }
.article p { margin: 1rem 0; }
.article ul { margin: 1rem 0; padding-inline-start: 1.25rem; }
.article li { margin: .4rem 0; }
.article li strong { color: var(--brand); }
.article hr { border: none; border-top: 1px solid var(--n-100); margin: 2rem 0; }
.article .session-meta {
  background: var(--blue-050); border: 1px solid var(--blue-100); border-radius: var(--radius);
  padding: .9rem 1.1rem; font-size: .92rem; color: var(--n-700); margin: 1rem 0;
}
.article .session-meta strong { color: var(--brand); }
.article .colophon { color: var(--n-500); font-size: .92rem; }
.article .colophon a { color: var(--blue-600); }

/* ---------- Photo gallery ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 1.5rem 0; }
.gallery img {
  width: 300px; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-1); background: var(--blue-050);
}
.gallery.single img { width: 60%; aspect-ratio: auto; }
.gallery-label { font-family: var(--font-display); color: var(--blue-600);
  text-align: center; margin: 1.5rem 0 .5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand); color: var(--blue-100); margin-top: 3rem;
  border-top: 3px solid var(--red-700); padding-block: 2.25rem;
}
.site-footer .wrap { text-align: center; }
.site-footer a { color: #fff; }
.site-footer .links { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 1rem; font-family: var(--font-mono); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .07em; }
.site-footer .links a { text-decoration: none; color: var(--blue-100); }
.site-footer .links a:hover { color: #fff; }
.site-footer small { display: block; color: var(--blue-100); opacity: .8; font-size: .85rem; line-height: 1.6; }

/* ---------- Motion ---------- */
.fade-in { opacity: 0; transform: translateY(16px); animation: fadeInUp .7s ease forwards; }
.fade-in:nth-of-type(2) { animation-delay: .05s; }
.fade-in:nth-of-type(3) { animation-delay: .1s; }
@keyframes fadeInUp { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { animation: none; opacity: 1; transform: none; }
  .btn:hover, .day-tile:hover { transform: none; }
}

@media (max-width: 640px) {
  .card { padding: 1.5rem 1.25rem; }
  .hero { padding: 2.5rem 1.25rem; }
  .gallery.single img { width: 100%; }
  .header-nav { width: 100%; justify-content: flex-start; }
}
