@charset "UTF-8";
/* =====================================================================
   HappyPDEs 2026 -- stylesheet for program-abstracts.php
   Colours and look follow the conference poster.
   Expects imar-logo.png in the same folder as this file.
   ===================================================================== */

:root {
  --navy:        #0B2545;
  --deepblue:    #13315C;
  --sky:         #8DA9C4;
  --accent:      #E8A33D;   /* the poster's gold */
  --accent-dark: #C47F17;
  --paper:       #F4F6F9;
  --card:        #FFFFFF;
  --ink:         #1E2A38;
  --link:        #13315C;
  --break-bg:    #FCF0DC;
  --pill:        #0B2545;   /* background of the time labels */
  --shadow:      0 6px 22px rgba(11, 37, 69, 0.09);
  --col:         880px;     /* width of the text column */
  /* space between the screen edge and the text column */
  --gutter:      max(20px, (100% - var(--col)) / 2);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:    #0D1624;
    --card:     #162236;
    --ink:      #E3EAF2;
    --link:     #A9C4E4;
    --break-bg: rgba(232, 163, 61, 0.14);
    --pill:     #2E5283;
    --shadow:   0 6px 22px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

/* ----- page ---------------------------------------------------------- */
html {
  background: var(--paper);
  overflow-x: clip;
}

body {
  height: auto;
  min-height: 100%;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

/* every block sits in one centred column, except the header */
body > * {
  box-sizing: border-box;
  width: min(var(--col), 100% - 40px);
  margin-left: auto;
  margin-right: auto;
}

/* ----- header (the <h1>) -------------------------------------------- */
body > h1 {
  position: relative;
  width: 100%;
  margin: 0 0 40px;
  /* the right padding keeps the title clear of the date badge */
  padding: 168px calc(var(--gutter) + 190px) 46px var(--gutter);
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1200 300%22 preserveAspectRatio=%22xMaxYMid slice%22%3E%3Cg fill=%22%23fff%22 fill-opacity=%220.11%22 font-family=%22Palatino Linotype, Palatino, Book Antiqua, Georgia, serif%22 font-style=%22italic%22 font-size=%2230%22%3E%3Ctext x=%221180%22 y=%2255%22 text-anchor=%22end%22 transform=%22rotate(-4 1180 55)%22%3E%E2%88%82%E2%82%9C%E2%82%9Cu %E2%88%92 c%C2%B2%CE%94u = 0%3C/text%3E%3Ctext x=%221180%22 y=%22155%22 text-anchor=%22end%22 transform=%22rotate(4 1180 155)%22%3E%E2%88%92%CE%94u = f(u)%3C/text%3E%3Ctext x=%22700%22 y=%22262%22 text-anchor=%22end%22 transform=%22rotate(-3 700 262)%22%3Ei%E2%88%82%E2%82%9C%CF%88 %2B %CE%94%CF%88 = %7C%CF%88%7C%C2%B2%CF%88%3C/text%3E%3Ctext x=%22660%22 y=%2258%22 text-anchor=%22end%22 transform=%22rotate(3 660 58)%22%3E%E2%88%82%E2%82%9Cu %E2%88%92 %CE%94u = 0%3C/text%3E%3Ctext x=%221180%22 y=%22268%22 text-anchor=%22end%22 transform=%22rotate(2 1180 268)%22%3E%E2%88%82%E2%82%9C%CF%81 %2B %E2%88%87%C2%B7(%CF%81v) = 0%3C/text%3E%3C/g%3E%3C/svg%3E") right center / cover no-repeat, var(--navy);
  border-bottom: 6px solid var(--accent);
  color: #fff;
  font-size: clamp(2.5rem, 7.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

body > h1 span { color: var(--accent); }

/* IMAR logo in a white card, top-left */
body > h1::before {
  content: "";
  position: absolute;
  top: 30px;
  left: var(--gutter);
  width: 176px;
  height: 82px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff url("imar-logo.png") center / contain no-repeat;
  background-origin: content-box;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
}

/* date badge, filled from the h1's data-dates attribute */
body > h1::after {
  content: attr(data-dates);
  position: absolute;
  right: var(--gutter);
  bottom: 38px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 156px;
  height: 156px;
  padding: 0 24px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
}

/* ----- section headings --------------------------------------------- */
h2 {
  margin-top: 44px;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 8px;
  background: var(--accent);
}

/* ----- venue card ---------------------------------------------------- */
.venue {
  padding: 24px 28px;
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.venue h2 { margin-top: 0; }

a {
  color: var(--link);
  font-weight: 700;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent-dark); }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ----- day headings (<h3>) ------------------------------------------ */
h3 {
  margin-top: 36px;
  margin-bottom: 16px;
  padding: 12px 20px;
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ----- talks ---------------------------------------------------------- */
.talk {
  margin-bottom: 16px;
  padding: 22px 28px 24px;
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow);
}

/* time */
.talk > b,
.break > b {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 1px 11px;
  border-radius: 999px;
  background: var(--pill);
  color: #fff;
  font-size: 0.88em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* title */
.talk > em {
  color: var(--link);
  font-size: 1.22rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

/* breaks (coffee, lunch, ...) */
.break {
  margin-bottom: 16px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--break-bg);
  color: var(--accent-dark);
  font-weight: 700;
}

.break > b {
  margin-bottom: 0;
  background: var(--accent);
  color: var(--navy);
}

/* the cards replace the separators */
body > hr { display: none; }

/* long formulas in abstracts scroll instead of widening the page */
mjx-container[display="true"] {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
}

/* ----- footer band ---------------------------------------------------- */
body::after {
  content: "";
  display: block;
  height: 48px;
  margin-top: 40px;
  border-top: 5px solid var(--accent);
  background: var(--navy);
}

/* ----- small screens ------------------------------------------------- */
@media (max-width: 640px) {
  body { font-size: 16px; }

  body > h1 { padding: 140px var(--gutter) 32px; }

  body > h1::before { top: 24px; width: 140px; height: 66px; }

  body > h1::after {
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin-top: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--accent);
    font-size: 1.15rem;
    text-align: left;
  }

  .venue, .talk { padding: 18px 18px 20px; }
}
