
/* Variables */

/*LABC Colours*/
:root {
  --color-primary: #00606B;
  --color-secondary: #8C8D8E;
  --color-accent: #3095B4;
  --color-accent-secondary: #c7d28a;
  --color-background: #ffffff;
  --color-text: #1f2937;
  --color-text-inverse: #ffffff;
  --color-muted: #ACC0C6;
  --color-overlay: #51515177;
  interpolate-size: allow-keywords;
}

/* Basic Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html:focus-within {
  scroll-behavior: smooth;
}
/* set a comfortable scroll margin for elements with an ID */
[id] {
  scroll-margin-top: 3rem;
}

html,
body {
  scroll-behavior: smooth;
  scroll-margin: 2rem;
  overflow-x: hidden;
  font-family: "Noto Sans", "Gill Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  margin: 0;
  line-height: 1.18;
  color: var(--color-text);
  background: var(--color-background);
  font-variant-numeric: tabular-nums;
}

.fineprint {
  font-size: 0.9rem;
  color: var(--color-text-inverse);
  border-top: 2px solid var(--color-primary);
  padding-top: 0.5rem;
}

.fineprint a {
  color: var(--color-text-inverse);
  font-size: 0.9rem;
}

/* Text elements */
p,
address,
ul,
ol,
dl {
  margin: 0 0 1rem 0;
}

* {
  font-size: 1.1rem;
}
sup {
  font-size: 0.5em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

/* Hero */
.hero {
  /* Hero: render the background image in ::before, desaturate it, and add
     a semi-opaque color tint in ::after to create a mostly-monotone hue that
     improves contrast for text placed on top. Using pseudo elements keeps
     filters from affecting the textual content. */
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 90vh;
  display: grid;
  justify-content: center;
  place-items: center;
  grid-auto-flow: column;
}

/* Desaturated background image (behind content) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("labc-buildings.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: invert(30%) saturate(320%) brightness(90%) contrast(90%);
  transform: translateZ(0);
}

.hero h1 {
  margin: 0 0 6rem 0;
  font-size: 3rem;
  line-height: 1.2;
  font-weight: normal;
  color: var(--color-text-inverse);
}
.hero .tagline {
  font-size: 1.2rem;
}
.hero p {
  font-size: 1.2rem;
  color: var(--color-text-inverse);
}
.hero div.pagetitle {
  width: fit-content;
  margin: 0 auto 1rem;
  max-width: 70ch;
}
.hero .dateandplace {
  margin-top: 2rem;
  font-size: 1.7rem;
}

div.banner {
  width:100%;
  background-color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

div.banner img.logo-wide {
  max-width: 1700px;
  height: auto;
}

div.banner img.logo-small {
  display: none;
}

div.conference-logo {
  display: grid;
  width: 100%;
  height: 100%;
  align-items: normal;
  justify-items: center;
  padding: 2rem;
}

div.conference-logo img {
  width: 200px;
  height: auto;
}



div.call-to-action {
  display: flex;
  justify-content: space-around;
}

/* Layout helpers */
.container {
  max-width: 60rem;
  margin-inline: auto;
  padding: 1rem 0;
}

/* Sections */
section {
  padding: 2rem;
}

/* Panels */
article,
aside {
  padding: 1.1rem 0;
}

/* Headings */
h1 {
  margin: 1rem 0;
  font-size: 3rem;
  line-height: 0.9;
  font-weight: bold;
  color: var(--color-primary);
}
h2 {
  margin: 1rem 0;
  font-size: 2.3rem;
  line-height: 0.9;
  font-weight: bold;
  color: var(--color-primary);
}
h3, caption {
  margin: 1rem 0;
  font-size: 1.6rem;
  line-height: 0.9;
  font-weight: bold;
  color: var(--color-primary);
}
h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  line-height: 0.9;
  font-weight: bold;
  color: var(--color-primary);
}

/* remove the margin on a p tag before an unordered list */
p:has(+ ul) {
  margin-bottom: 0;
}

ul {
  list-style: square;
  margin: 0 0 1rem 0;
}

ul li::marker {
  color: var(--color-primary);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
tr td {
  border-top: 1px solid var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}
/* first column of the table*/
tr td:first-child {
  font-weight: bold;
  color: var(--color-secondary);
  min-width: 12ch;
}

/* Tabs to select language on mobile*/

/* Style the buttons that are used to open the tab content */
nav.lang-tabs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  overflow: hidden;
  background-color: var(--color-background);
}

nav.lang-tabs li {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  border: 2px solid var(--color-primary);
}

/* Create an active/current tablink class */
nav.lang-tabs li.active {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

article h3:has(+ details) {
  border-bottom: var(--color-primary) solid 1px;
  padding-bottom: 0.5rem;
}

details {
  height: 1.8rem;
  /* Animate the height property smoothly */
  transition: height 300ms ease;
  overflow: hidden; /* Ensures content doesn't spill out during the transition */
}

details summary {
  cursor: pointer;
  margin: 0;
  font-weight: bold;
  color: var(--color-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

details summary::marker {
  display: none; /* Hide the default marker */
  content: "";
}

summary::before {
  content: "⮞"; /* ⮞ */
  font-weight: 700;
  display: inline-block;
  width: 1em;
  height: 1em;
  text-align: center;
  transform-origin: center;
  transition: transform 300ms ease;
}
/* When the details element is open, animate to its natural height */
details[open] {
  height: auto;
}

details[open] summary::before {
  transform: rotate(90deg); /* Rotate the marker when open */
}

details div.content {
  border-left: 1px solid var(--color-primary);
  margin: 1rem;
}

details .content {
  overflow: hidden;
  transition: max-height 300ms ease;
  max-height: none; /* allow natural height when open */
}

div.entry {
  margin: 1rem;
}
div.entry:not(:first-of-type) {
  border-top: 1px solid var(--color-primary);
  padding-top: 1rem;
}
div.entry address,
div.entry li {
  margin: 0;
}
div.entry ul {
  margin: 0;
  padding-left: 2rem;
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 2rem;
  text-align: center;
}
.site-footer a {
  color: var(--color-accent);
}
.site-footer a:hover {
  color: var(--color-text-inverse);
}

/** Buttons */
a.button {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 1.25rem;
  border-radius: 0.3rem;
  text-decoration: none;
  margin: 1rem 0;
  transition: background-color 0.3s ease;
  will-change: background-color;
  text-align: center;
  max-width: 20rem;
  font-weight: bold;
}

a.button:hover {
  background-color: #000000;
}

div.call-to-action a.button {
  width: 100%;
  font-size: 120%;
}

/* Grid panels */
.panel-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
  justify-items: stretch;
}

/* Segments with top and bottom borders*/
.delineated:first-of-type {
  border-top: 1px solid var(--color-primary);
}
.delineated {
  border-bottom: 1px solid var(--color-primary);
}

/* Address grid: keeps the icon aligned with the first text line while
   wrapped text lines align with the first line (not under icon). */
div.contact-details {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.5rem;
  align-items: center;
  padding: 1rem;
  justify-items: start;
}

div.contact-details h3 {
  /*spans both grid columns*/
  grid-column: 1 / span 2;
  margin-top: 0;
}

/* Make sure the icon uses the grid cell (override inline rules) */
div.contact-details img.icon {
  grid-column: 1;
  margin: 0.2rem 0 0 0; /* spacing handled by column-gap */
  width: 2rem;
  height: 2rem;
}

/* Text block occupies the second column and will wrap inside it */
div.contact-details address,
div.contact-details p {
  grid-column: 2;
  margin: 0;
}

div.contact-details a {
  grid-column: 2;
}

.lang {
  padding:0 2rem;
  text-align: left;
  transition: opacity 300ms ease, visibility 300ms ease, display 300ms ease;
}

/* Desktop layout: two columns with variable widths */
@media (min-width: 800px) {
  .lang {
    display: block;
    pointer-events: auto;
  }
  nav.lang-tabs {
    display: none;
  }
  .panel-grid.wide-left {
    grid-template-columns: 2fr 1fr;
  }
  .panel-grid.wide-right {
    grid-template-columns: 1fr 2fr;
  }
  /* Ensure correct column placement at desktop sizes */
  .panel-grid.wide-left article {
    grid-column: 1;
  }
  .panel-grid.wide-left aside {
    grid-column: 2;
  }
  .panel-grid.wide-right article {
    grid-column: 2;
  }
  .panel-grid.wide-right aside {
    grid-column: 1;
  }
  .panel-grid.balanced {
    grid-template-columns: 1fr 1fr;
  }
  .panel-grid.left-narrow {
    grid-template-columns: 1fr 5fr;
    justify-content: start;
  }

  /* Keep both items on the same row to avoid auto-placement pushing one down */
  .panel-grid.wide-left article,
  .panel-grid.wide-left aside,
  .panel-grid.wide-right article,
  .panel-grid.wide-right aside,
  .panel-grid.balanced article,
  .panel-grid.balanced aside {
    grid-row: 1;
  }
}

/* Mobile layout: stack; ensure narrower column sits below */
@media (max-width: 799px) {
  * {
    font-size: 1rem;
  }
  nav.lang-tabs {
    display: grid;
    grid-auto-flow: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  .lang {
    text-align: center;
    display: none;
    pointer-events: none;
  }
  .lang.on-top {
    display: block;
    pointer-events: auto;
  }
  div.banner img.logo-wide {
    display: none;
  }
  div.banner img.logo-small {
    max-width: 100%;
  }
  div.banner img.logo-small.active-logo {
    display: block;
  }
  .panel-grid {
    gap: 0.5rem;
    justify-items: stretch;
  }
  .panel-grid.wide-left,
  .panel-grid.wide-right,
  .panel-grid.balanced {
    grid-template-columns: 100%;
  }
  .panel-grid article {
    order: 1;
  }
  .panel-grid aside {
    order: 2;
  }
  section {
    padding: 1rem;
  }
  .hero {
    padding: 2rem 0;
  }
  .hero .lang {
    padding: 1rem;
  }
  .hero h1 {
    line-height: 1.1;
    font-size: 2.3rem;
    margin: 0 1rem;
  }
  .container {
    grid-template-columns: 100%;
    gap: 0;
  }
  article,
  aside {
    padding: 0;
  }
  a.button {
    width: 100%;
  }
  tr td {
    padding: 1rem 0.2rem;
  }

  div.conference-logo {
    display: none;
  }
  .navigation-links {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  .navigation-links a.button {
    width: 100%;
    max-width: none; /* keep full width on small screens */
    flex: 0 1 auto;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  details .content {
    transition: none;
  }
  .section-tilt::before {
    transition: none;
  }
  html:focus-within {
    scroll-behavior: auto;
  }
}

/* Better focus outlines for accessibility */
:where(a, button, [tabindex="0"]):focus {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}


/* Navigation links: stretch to fill a single row on wide screens; stack on narrow screens */
.navigation-links {
  display: flex;
  gap: 0.75rem;
  align-items: stretch; /* ensure children stretch to same height */
  justify-content: center;
  flex-wrap: wrap;
}
.navigation-links a.button {
  flex: 1 1 0;
  width: auto; /* override fixed width set elsewhere */
  max-width: none; /* remove global max-width cap so flex sizing can work */
  min-width: 0; /* allow shrinking inside flex */
  text-align: center;
  display: flex; /* make the anchor a flex container so content can be centered */
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem; /* ensure consistent internal spacing */
  white-space: normal; /* allow wrapping if needed */
  margin: 0; /* reset margin for flex layout */
}
.navigation-links a.button.disabled {
  background-color: var(--color-muted);
  pointer-events: none;
  :hover {
    background-color: var(--color-muted);
  }
}
.navigation-links a.full-width {
  flex: 0 0 100%;
  max-width: 100%;
}

/* ===============================
   Angled section backgrounds
   Usage (examples):
   <section class="section-tilt tilt-top tilt-secondary"> ... </section>
   <section class="section-tilt tilt-both tilt-accent" style="--tilt-cut: 6vw"> ... </section>
   =============================== */

/* Base utility: enables pseudo background and defines defaults */
.section-tilt {
  position: relative;
  isolation: isolate; /* ensure ::before sits behind content only in this section */
  --tilt-bg: var(--color-primary);
  --tilt-cut: clamp(24px, 4vw, 56px);
}

/* Add a little more vertical padding to section-tilt containers */

section.section-tilt div.container {
  padding: 4rem 0;
}

.section-tilt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #ccc;
  /* default to a subtle top tilt if no modifier is given */
  clip-path: polygon(0 var(--tilt-cut), 100% 0, 100% 100%, 0 100%);
}

/* Tilt variants */
.section-tilt.tilt-top::before {
  clip-path: polygon(0 var(--tilt-cut), 100% 0, 100% 100%, 0 100%);
}
.section-tilt.tilt-bottom::before {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tilt-cut)), 0 100%);
}
.section-tilt.tilt-both::before {
  clip-path: polygon(0 var(--tilt-cut), 100% 0, 100% calc(100% - var(--tilt-cut)), 0 100%);
}

/* Color themes (override --tilt-bg) */
.section-tilt.tilt-secondary {
  --tilt-bg: var(--color-secondary);
}
.section-tilt.tilt-accent {
  --tilt-bg: color-mix(in srgb, var(--color-accent) 88%, white);
}
.section-tilt.tilt-primary {
  --tilt-bg: color-mix(in srgb, var(--color-primary) 85%, white);
}
.section-tilt.tilt-muted {
  --tilt-bg: color-mix(in srgb, var(--color-muted) 20%, white);
}
.section-tilt.tilt-white {
  --tilt-bg: #fff;
}

@media print {
  /* Reset viewport-dependent heights */
  .hero {
    min-height: auto;
    height: auto;
    padding: 2rem 0;
  }
  
  /* Ensure all sections are visible */
  section {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  div.entry{
    page-break-inside: avoid;
    break-inside: avoid;
  }
  summary{
    break-after: avoid;
  }
  
  /* Add page breaks between major sections */
  section + section {
    page-break-before: auto;
  }


}