/* ==========================================================================
   International RoSH Conference 2026 — Programme
   Web edition of "Final_Conference_Programme_v.5.1.pdf"
   Palette, bands and hairlines sampled from the printed programme.
   ========================================================================== */

:root {
  --teal:            #008080;   /* table header bar, time text (day 1)      */
  --teal-ink:        #003b3a;   /* dark teal: badge, chair names, times     */
  --teal-deep:       #0a6f7d;   /* ribbon gradient start                    */
  --teal-mid:        #0d8491;
  --teal-pale:       #b9e0dd;   /* ribbon gradient end                      */
  --teal-soft:       #d5ffff;   /* break rows                               */
  --cream:           #fff2cc;   /* opening ceremony + session chair bands   */
  --paper:           #fcfcfc;
  --ink:             #000;
  --rule:            rgba(0, 128, 128, .45);
  --rule-soft:       rgba(0, 128, 128, .28);

  --time-col:        9.5rem;    /* width of the Time column                  */
  --measure:         56rem;     /* max content width                         */

  --font-body: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --font-narrow: "Arial Narrow", "Helvetica Neue Condensed", "Liberation Sans Narrow", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

p, h1, h2, h3, ul, ol { margin: 0; }

/* <source> is never a rendered box; make that explicit so it can't take a grid cell */
picture > source { display: none; }

a { color: var(--teal-deep); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--teal-ink);
  color: #fff;
  padding: .6rem 1rem;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--teal-mid);
  outline-offset: 2px;
}

/* ---------- hero -------------------------------------------------------- */
.hero {
  --pad: 1rem;
  position: relative;
  padding: 1.6rem var(--pad) .9rem;
  text-align: center;
  background: var(--paper) url("../prog-assets/header-art.jpg") no-repeat center top;
  background-size: cover;
  overflow: hidden;
}

.hero picture { display: block; }

.crest {
  display: block;
  width: clamp(76px, 12vw, 112px);
  margin: 0 auto .35rem;
  filter: drop-shadow(0 2px 3px rgba(0, 60, 60, .12));
}

.event-title {
  margin: .1rem 0 .25rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .015em;
  font-size: clamp(1.35rem, 5.4vw, 3.05rem);
  line-height: 1.06;
  background: linear-gradient(180deg,
              #58c2c8 0%, #1e99a4 18%, #0d7c88 40%,
              #0a5f6b 56%, #15818b 76%, #3fadb4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .85));
}

.event-theme {
  margin: .35rem 0 .1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: clamp(.98rem, 3.5vw, 1.7rem);
  line-height: 1.2;
  background: linear-gradient(90deg, #0a6b78 0%, #15808d 45%, #1f95a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.event-sub {
  margin: 0 0 .2rem;
  font-weight: 700;
  font-size: clamp(.82rem, 2.7vw, 1.16rem);
  color: #0b7a84;
  letter-spacing: .01em;
}

/* the full-bleed teal ribbon */
.ribbon {
  position: relative;
  margin: 1.05rem calc(-1 * var(--pad)) 0;
  width: auto;
  padding: .5rem 1rem .55rem;
  color: #fff;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: clamp(.8rem, 2.6vw, 1.06rem);
  line-height: 1.25;
  background: linear-gradient(90deg,
              #0a6f7d 0%, #0b8794 16%, #3f8e96 38%,
              #7ba8a9 54%, #8fb3b5 66%, #b9e0dd 88%, #d8efe9 100%);
}

.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, .55);
}
.ribbon::before { top: 2px; }
.ribbon::after  { bottom: 2px; }

.doc-label {
  margin: 1.15rem 0 .4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: clamp(.82rem, 2.3vw, 1.02rem);
}

/* ---------- sticky day nav --------------------------------------------- */
.daynav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 252, 252, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-soft);
  box-shadow: 0 2px 10px rgba(0, 60, 60, .05);
}

.daynav-inner {
  display: flex;
  gap: .25rem;
  max-width: var(--measure);
  margin: 0 auto;
  padding: .4rem .6rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.daynav-inner::-webkit-scrollbar { display: none; }

.daynav a {
  flex: 1 0 auto;
  display: flex;
  gap: .35rem;
  justify-content: center;
  padding: .45rem .7rem;
  border-radius: .35rem;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.daynav .dt { font-weight: 700; opacity: .7; }
.daynav .dt::before { content: "· "; }
.daynav a:hover { background: rgba(0, 128, 128, .08); }
.daynav a.is-active {
  background: var(--teal);
  color: #fff;
}
.daynav a.is-active .dt { opacity: .92; }

/* ---------- layout ------------------------------------------------------ */
main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.day { margin-bottom: 2.6rem; scroll-margin-top: 4.2rem; }

/* ---------- day badge --------------------------------------------------- */
.day-badge {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: .42rem 1.05rem .46rem;
  border-radius: .3rem;
  background: var(--teal-ink);
  color: #fff;
  font-family: var(--font-narrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .045em;
  font-size: clamp(.92rem, 2.5vw, 1.16rem);
  line-height: 1.2;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, .95),
    0 0 0 3px rgba(125, 210, 210, .55),
    0 7px 16px rgba(0, 47, 46, .16);
}

.day-badge span { font-weight: 700; }

/* ---------- day intro --------------------------------------------------- */
.kicker {
  margin: 0 0 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: clamp(.9rem, 2.3vw, 1.02rem);
}

.day-intro {
  margin: 0 0 .55rem;
  font-size: 1.02rem;
  font-weight: 400;
}

.meta {
  margin: 0 0 1.1rem;
  font-size: .97rem;
  line-height: 1.45;
}
.meta strong { font-weight: 700; }

.venue {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  margin: 0 0 .35rem;
  font-weight: 700;
  color: var(--teal-deep);
  font-size: .97rem;
}
.venue svg,
.timing svg {
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  margin-top: .12em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.timing {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  margin: 0 0 .5rem;
  font-weight: 700;
  color: var(--teal-deep);
  font-size: .97rem;
}

/* ---------- schedule table --------------------------------------------- */
.sched { margin-top: .9rem; }

.sched-head {
  display: grid;
  grid-template-columns: var(--time-col) 1fr;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
}

.sched-head > * {
  padding: .34rem .5rem;
  text-align: center;
}
.sched-head .h-time { border-right: 1px solid rgba(255, 255, 255, .6); }

/* a plain programme row */
.row {
  display: grid;
  grid-template-columns: var(--time-col) 1fr;
  padding: .55rem 0 .62rem;
  align-items: start;
}

.row .time {
  grid-column: 1;
  text-align: center;
  font-weight: 700;
  color: var(--teal);
  font-size: .93rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.row .prog {
  grid-column: 2;
  padding-right: .25rem;
  font-size: 1rem;
  line-height: 1.45;
}

.row .prog strong { font-weight: 700; }
.row .prog .sub {
  display: block;
  font-weight: 400;
  font-size: .94rem;
  line-height: 1.42;
}

/* rows that carry a teal rule beneath them (end of a block) */
.row--ruled { border-bottom: 1px solid var(--rule); }

/* break rows: cyan wash on the programme side only, label centred */
.row--break { padding: .38rem 0 .42rem; align-items: stretch; }
.row--break .time { padding-top: .28rem; }
.row--break .prog {
  background: var(--teal-soft);
  text-align: center;
  font-style: italic;
  font-weight: 700;
  color: var(--teal-ink);
  padding: .3rem .6rem;
  font-size: .98rem;
}

/* cream band — "Presentations | Session Chair: …" and "Official Opening Ceremony" */
.band {
  display: grid;
  grid-template-columns: var(--time-col) 1fr;
  background: var(--cream);
  border-top: 1.5px solid rgba(0, 128, 128, .55);
  border-bottom: 1.5px solid rgba(0, 128, 128, .55);
  margin: .35rem 0 .6rem;
}

.band .band-label {
  display: flex;
  align-items: center;
  gap: .8rem;
  grid-column: 1 / -1;
  padding: .34rem .4rem .36rem .55rem;
  font-weight: 700;
  font-size: .98rem;
  color: var(--teal-ink);
}

.band .band-label .lbl {
  padding-right: .8rem;
  border-right: 1px solid rgba(0, 128, 128, .7);
  white-space: nowrap;
}

.band--centre .band-label {
  grid-column: 1 / -1;
  justify-content: center;
  text-align: center;
  padding-left: .5rem;
  padding-right: .5rem;
}

/* ---------- presentation slot ------------------------------------------ */
.slot {
  display: grid;
  grid-template-columns: var(--time-col) 1fr;
  padding: .7rem 0 .8rem;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.slot:last-child { border-bottom: 1.5px solid var(--rule); }

.slot .time {
  grid-column: 1;
  text-align: center;
  font-weight: 700;
  color: var(--teal-ink);
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.slot-body { grid-column: 2; padding-right: .25rem; }

.slot-label {
  margin: 0 0 .18rem;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .01em;
  color: var(--ink);
}

.slot-title {
  margin: 0;
  font-style: italic;
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.42;
  color: var(--ink);
}

.authors {
  margin: .45rem 0 .3rem;
  font-size: .95rem;
  line-height: 1.5;
}
.authors b { font-weight: 700; }

sup { font-size: .66em; line-height: 0; vertical-align: super; }

.affils {
  margin: 0 0 .35rem;
  padding: 0;
  list-style: none;
  font-size: .8rem;
  line-height: 1.5;
  color: #141414;
}
.affils li { padding-left: 0; }
.affils sup { color: inherit; font-weight: 700; margin-right: .12em; }

.mode {
  margin: .35rem 0 0;
  font-size: .9rem;
  font-weight: 700;
}
.mode span { font-weight: 700; }

/* ---------- panel discussion ------------------------------------------- */
.panel-title {
  margin: 0 0 .55rem;
  font-weight: 700;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.42;
}

.panel-sub {
  margin: .2rem 0 .5rem;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
}

.panelists {
  margin: 0 0 .55rem;
  padding-left: 1.35rem;
  font-size: .95rem;
  line-height: 1.5;
}
.panelists li { margin-bottom: .38rem; }
.panelists b { font-weight: 700; }

.moderator { margin: .4rem 0 0; font-weight: 700; font-size: .95rem; }

/* ---------- gala / evening event --------------------------------------- */
.evening { margin-top: 3rem; scroll-margin-top: 4.2rem; }

.evening-title {
  margin: .2rem 0 .8rem;
  font-size: clamp(1.25rem, 3.8vw, 1.7rem);
  font-weight: 700;
  color: #0c7c86;
  letter-spacing: .005em;
}

/* ---------- partners --------------------------------------------------- */
.partners {
  margin: 1.6rem 0 2.2rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .5rem 1rem;
  align-items: center;
}

.partners picture {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.partners img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 86px;
  object-fit: contain;
  padding: .3rem;
}

/* ---------- contact ---------------------------------------------------- */
.contact {
  margin: 2rem 0 0;
  width: auto;
  background: linear-gradient(90deg,
              #0a6f7d 0%, #0b8794 18%, #5d9aa0 45%,
              #93b9b8 68%, #c2e3dd 88%, #dff1ec 100%);
  padding: .6rem 1rem .66rem;
  color: #fff;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: clamp(.88rem, 2.4vw, 1.06rem);
  position: relative;
}
.contact::before,
.contact::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, .6);
}
.contact::before { top: 2px; }
.contact::after { bottom: 2px; }

.enquiries {
  max-width: var(--measure);
  margin: 1.35rem auto 0;
  padding: 0 1rem 2.6rem;
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  color: var(--teal-ink);
}
.enquiries a { color: var(--teal-deep); font-weight: 700; }

.page-foot {
  border-top: 1px solid var(--rule-soft);
  padding: 1rem;
  text-align: center;
  font-size: .78rem;
  color: #5d6f6f;
  letter-spacing: .02em;
}

/* ==========================================================================
   TABLET  (600 – 900px)
   ========================================================================== */
@media (max-width: 900px) {
  :root { --time-col: 8rem; }

  .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partners img { max-height: 66px; }
}

/* ==========================================================================
   MOBILE  (< 600px) — every row becomes a stacked card
   ========================================================================== */
@media (max-width: 600px) {
  main { padding: 1.15rem .85rem 2.2rem; }

  .daynav-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .18rem;
    padding: .35rem .4rem;
    overflow: visible;
  }
  .daynav a {
    flex-direction: column;
    gap: 0;
    padding: .4rem .15rem .42rem;
    font-size: .76rem;
    line-height: 1.2;
    white-space: normal;
  }
  .daynav .dt { font-size: .7rem; letter-spacing: .02em; }
  .daynav .dt::before { content: ""; }

  .hero { --pad: .75rem; padding: 1.1rem var(--pad) .7rem; }

  /* the grey "Time | Programme" header is a layout aid only */
  .sched-head { display: none; }
  .sched { border-top: 3px solid var(--teal); }

  .row,
  .slot,
  .band { grid-template-columns: 1fr; }

  .row { padding: .7rem 0 .75rem; border-bottom: 1px solid var(--rule-soft); }
  .row:last-child { border-bottom: none; }

  .row .time,
  .slot .time {
    grid-column: 1;
    justify-self: start;
    text-align: left;
    display: inline-block;
    font-size: .82rem;
    padding: .12rem .5rem;
    margin-bottom: .3rem;
    border-radius: .25rem;
    background: rgba(0, 128, 128, .1);
    color: var(--teal-ink);
  }

  .row .prog,
  .slot-body { grid-column: 1; padding-right: 0; }

  /* breaks: centred pill with the time tucked above */
  .row--break {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .3rem;
    border-bottom: none;
    padding: .5rem 0;
  }
  .row--break .time {
    align-self: flex-start;
    background: transparent;
    color: var(--teal-deep);
    padding: .1rem .1rem 0;
  }
  .row--break .prog { padding: .45rem .6rem; }

  .band { margin: .5rem 0 .7rem; }
  .band .band-label {
    grid-column: 1;
    display: block;
    padding: .45rem .7rem .5rem;
    font-size: .93rem;
  }
  .band .band-label .lbl {
    display: block;
    border-right: none;
    padding-right: 0;
    margin-bottom: .1rem;
  }

  .slot { padding: .8rem 0 .85rem; }
  .slot-title { font-size: 1rem; }
  .affils { font-size: .78rem; }

  .panelists { padding-left: 1.15rem; }

  .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .partners img { max-height: 54px; }

  .enquiries { padding-bottom: 2rem; }
}

/* small phones: 2 columns; the 9th logo centres across the last row */
@media (max-width: 380px) {
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners picture:last-child { grid-column: 1 / -1; }
}

/* ---------- motion / print --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .daynav, .skip-link { display: none !important; }
  body { background: #fff; font-size: 10pt; }
  .hero { background: none; padding-top: 0; }
  .event-title, .event-theme {
    -webkit-text-fill-color: #0a6f7d;
    color: #0a6f7d;
    background: none;
  }
  main { max-width: none; padding: 0; }
  .day, .evening { page-break-inside: auto; break-inside: auto; }
  .day + .day, .evening { page-break-before: always; break-before: page; }
  .slot, .row, .band { page-break-inside: avoid; break-inside: avoid; }
  .ribbon, .contact {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  a[href^="mailto"] { text-decoration: none; }
  .page-foot { display: none; }
}
