/* Safe AI Heidelberg — standalone pages (/aisafety, /aisafety/past-events).
   Mirrors the original Squarespace layout; independent of ../style.css. */
@font-face { font-family: "Libre Baskerville"; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/libre-baskerville-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/libre-baskerville-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Almarai"; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/almarai-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Almarai"; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/almarai-latin-700-normal.woff2") format("woff2"); }

:root {
  --teal: #0388a0;
  --ink: #000;
  --white: #fff;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Almarai", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--teal); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Hero with the Alte Brücke photo and a frosted card */
.sai-hero {
  position: relative;
  min-height: 100vh;
  padding: 6rem 1rem 9rem;
  background: #4d7a99 url("../assets/aisafety/alte-bruecke-1000.webp") center / cover no-repeat;
}
@media (min-width: 900px) {
  .sai-hero { background-image: url("../assets/aisafety/alte-bruecke-2000.webp"); }
}
.sai-hero--plain { padding-bottom: 6rem; }
.sai-sitetitle {
  position: absolute; top: .6rem; left: 4%;
  font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--teal);
}
.sai-card {
  max-width: 54rem; margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  border-radius: 8px;
  color: var(--teal); text-align: center;
}
.sai-wordmark { width: min(100%, 34rem); margin: 0 auto 1.4rem; }
.sai-tagline { font-family: var(--serif); font-size: clamp(1rem, 1.9vw, 1.35rem); line-height: 1.25; max-width: 32rem; margin: 0 auto 4rem; }
.sai-card h1, .sai-card h2 { font-family: var(--serif); font-weight: 400; margin: 0 0 1.4rem; line-height: 1.2; }
.sai-card h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.sai-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.sai-past { display: inline-block; margin-top: 3rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }

/* Accordion */
.sai-acc { text-align: left; }
.sai-acc details { border: 0; }
.sai-acc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.2rem 0;
  font-family: var(--serif); font-size: clamp(1.05rem, 1.9vw, 1.5rem); line-height: 1.25; color: var(--teal);
}
.sai-acc summary::-webkit-details-marker { display: none; }
.sai-acc summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat;
  transition: transform .2s;
}
.sai-acc details[open] summary::after { transform: rotate(45deg); }
.sai-acc summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.sai-acc .sai-acc__body { padding: 0 0 1.2rem; color: var(--ink); font-size: 15px; }
.sai-acc .sai-acc__body p { margin: 0 0 1em; white-space: pre-wrap; }
.sai-acc .sai-acc__body ul { margin: 0 0 1em; padding-left: 1.3em; }
.sai-acc .sai-acc__body li p { margin: 0; }

/* Teal sections with wave dividers */
.sai-section { position: relative; background: var(--teal); color: var(--white); text-align: center; padding: 3rem 1rem 5rem; }
.sai-section > .sai-wave { position: absolute; left: 0; right: 0; bottom: 100%; width: 100%; height: 70px; display: block; }
.sai-section .sai-inner { max-width: 44rem; margin: 0 auto; }
.sai-section h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 1.4rem; }
.sai-section p { margin: 0 0 1em; }
.sai-section .sai-serif { font-family: var(--serif); font-size: 1.35rem; margin: .5em 0; }
.sai-section strong a { font-weight: 700; }
