/* ==========================================================================
   GREATER sample pages: shared styles
   Used by final-conference.html, public-events.html and art-competition.html.
   Every class is prefixed (gr- shared, fc- / pe- / ac- per page) so these
   files can sit next to the main website's CSS without collisions.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset (scoped to the sample pages; :where() keeps it at zero
   specificity so component classes always win) ---------- */
:where(.gr-page),
:where(.gr-page) *,
:where(.gr-page) *::before,
:where(.gr-page) *::after {
  box-sizing: border-box;
}

.gr-page {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: #1f2d3d;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

:where(.gr-page) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) {
  margin: 0;
  padding: 0;
}

:where(.gr-page) :where(ul, ol) {
  list-style: none;
}

:where(.gr-page) img {
  display: block;
  max-width: 100%;
  height: auto;
}

:where(.gr-page) a {
  color: inherit;
}

:where(.gr-page) button {
  font: inherit;
  color: inherit;
}

@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}

/* ---------- Utilities ---------- */
.gr-container {
  width: 100%;
  max-width: calc(var(--gr-container, 1170px) + 2 * var(--gr-gutter, 24px));
  margin-inline: auto;
  padding-inline: var(--gr-gutter, 24px);
}

.gr-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gr-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.gr-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.125em;
}

/* Skip link: off-screen until focused */
.gr-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: #0a2f6b;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.gr-skip:focus {
  top: 12px;
}

.gr-page :focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: 2px;
}

/* ---------- Funding acknowledgement (EU emblem image) ---------- */
.gr-eu {
  display: block;
  width: auto;
  height: 44px;
}

/* ---------- Image crop focus (chosen per image in the admin) ---------- */
.gr-page img.gr-crop-top {
  object-position: 50% 12%;
}

.gr-page img.gr-crop-bottom {
  object-position: 50% 88%;
}
