/* === Base === */

html {
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.625;
  background-color: var(--color-page-bg);
  color: var(--color-content-text);
  overflow-x: hidden;
}

a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  color: var(--color-content-link);
  text-underline-offset: 0.4em;
}

a:hover {
  text-underline-offset: 0.3em;
}

h1,
h2,
h3,
th {
  color: var(--color-content-heading);

  word-break: break-word;
  hyphens: auto;
  text-wrap: pretty;
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  font-weight: 600;
  line-height: 1.2;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

h4 {
  font-weight: 500;
}

table {
  width: 100%;
  max-width: 100%;
  border-spacing: 0;
}

.text:has(table) {
  overflow-x: auto;
}

th,
td {
  padding: .75em 1em;
  text-align: left;
  vertical-align: baseline;
  font-size: var(--text-base);
  line-height: 1.5;
  border-bottom: 1px solid var(--color-content-line);
}

tr:last-child td {
  border-bottom: 0;
}

input,
textarea {
  display: block;
  outline: none;
  border-width: 2px;
  border-style: solid;
  border-radius: .25em;
}

input[type="email"],
input[type="text"],
input[type="tel"],
input[type="number"] {
  padding: .4em;
  font-size: var(--text-base);
  width: 100%;
  max-width: 100%;
}

textarea {
  width: 100%;
  padding: .4em;
  font-size: var(--text-base);
}

button {
  all: initial;
  font-family: var(--font-sans);
}

form > .honeypot {
  position: absolute;
  left: -9999px;
}

/* === Logo === */

.logo {
  display: block;
  width: fit-content;
  text-decoration: none;
}

.logo img {
  height: 3.5rem;
  width: auto;
}

@media (max-width: 64.999rem) {
  .site-header .logo img,
  .mobile-menu .logo img {
    filter: brightness(0) invert(1);
  }
}

/* === Notification Bar === */

.notification-bar {
  padding-top: .85em;
  padding-bottom: .85em;
  text-align: center;
  font-size: var(--text-base);
  font-weight: 600;
  background-color: hsl(209, 84%, 59%);
  color: var(--color-white);
}

.notification-bar a {
  color: var(--color-white);
}

.notification-bar .button {
  display: inline-block;
  padding: .5em 1.15em;
  border-radius: var(--radius-btn);
  text-decoration: none;
  background-color: hsl(209.2, 71%, 49%);
  color: var(--color-white);
}

.notification-bar .button:hover {
  background-color: hsl(208.2, 43%, 22%);
}

/* === Site Header === */

.site-header {
  padding-top: 2em;
  padding-bottom: 2em;
  padding-inline: var(--container-padding);
}

@media (min-width: 65rem) {
  .site-header {
    padding-top: 1.125rem;
    padding-bottom: 2rem;
  }
}

/* --- Search (header) --- */

form.search {
  position: relative;
}

form.search > svg {
  position: absolute;
  width: 1.5em;
  top: 50%;
  left: .75em;
  transform: translateY(-50%);
  fill: var(--color-white);
  pointer-events: none;
}

form.search input {
  color: var(--color-white);
  font-size: var(--text-base);
  font-weight: 500;
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-btn);
  padding: .7em 1em .7em 2.5em;
  width: 22.5rem;
}

form.search input::placeholder {
  color: var(--color-white);
  font-weight: 700;
}

form.search input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

form.search button {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  border: 0;
  overflow: hidden;
  margin: -1px;
  padding: 0;
}

/* --- Secondary Nav --- */

.sec-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25em 2rem;
}

.sec-nav a {
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 400;
}
.sec-nav a:hover {
  color: var(--color-accent);
}

.sec-nav a.btn-accent:hover {
  color: var(--color-primary);
}

.sec-nav a[aria-current="page"] {
  text-decoration: underline;
}

/* --- Primary Nav --- */

.prim-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25em 2.25rem;
  padding-top: 2.5rem;
  padding-bottom: 0;
}

.prim-nav a {
  text-decoration: none;
  font-size: var(--text-lg);
  font-weight: 500;
  padding: .35em .75em;
  border-radius: var(--radius-btn);
}

.prim-nav a[aria-current] {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.prim-nav a:hover {
  color: var(--color-accent);
}

.prim-nav a[aria-current]:hover,
.prim-nav a.btn-accent:hover {
  color: var(--color-primary);
}

/* Hide nav elements on mobile, show hamburger */
@media (max-width: 64.999rem) {
  .sec-nav,
  .prim-nav,
  form.search {
    display: none;
  }

  .site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* Show nav elements on desktop, hide hamburger (fully remove from layout) */
@media (min-width: 65rem) {
  .site-header .menu-toggle {
    display: none !important;
  }

  .sec-nav a {
    color: var(--color-primary);
  }

  .prim-nav a {
    color: var(--color-primary);
  }
}

/* --- Menu Toggle (hamburger) --- */

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  cursor: pointer;
  background: none;
  border: none;
  padding: .5em;
}

/* === Mobile Menu === */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: var(--color-primary);
  color: var(--color-gray-200);
  display: none;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 2em 1.5em 3em;
}

html.menu-open .mobile-menu {
  display: flex;
}

html.menu-open {
  overflow: hidden;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 2em;
}

.mobile-menu-header .logo img {
  filter: brightness(0) invert(1);
}

.menu-close {
  color: var(--color-accent);
  cursor: pointer;
  background: none;
  border: none;
  padding: .25em;
}

.mobile-nav {
  text-align: center;
  width: 100%;
  flex-grow: 1;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.mobile-nav-primary {
  margin-bottom: 1.25rem;
}

.mobile-nav-primary a {
  font-size: var(--text-lg);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-gray-200);
}

.mobile-nav-secondary a {
  font-size: var(--text-lg);
  font-weight: 400;
  text-decoration: none;
  color: var(--color-gray-200);
}

.mobile-menu .social {
  margin-top: 1.5em;
}

.mobile-menu-copyright {
  margin-top: 1.5em;
  font-size: var(--text-sm);
  text-align: center;
  color: var(--color-gray-200);
}

.mobile-menu-copyright a {
  color: var(--color-gray-200);
}

/* === Backward-compatible theme classes (used by other templates) === */

.theme-dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.theme-dark a {
  color: var(--color-white);
}

.theme-dark h1,
.theme-dark h2,
.theme-dark h3 {
  color: var(--color-white);
}

.theme-dark a:hover {
  text-decoration: none;
}

.theme-light {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.theme-light a {
  color: var(--color-primary);
}

.theme-light h3 {
  color: var(--color-black);
}

/* === Main content on mobile (match desktop): card colors === */

@media (max-width: 64.999rem) {
  main > section:not(.partners):not(.theme-dark) {
    background-color: var(--color-white);
    color: var(--color-primary);
  }

  main > section:not(.partners):not(.theme-dark) a {
    color: var(--color-primary);
  }

  main > section:not(.partners):not(.theme-dark) h1,
  main > section:not(.partners):not(.theme-dark) h2,
  main > section:not(.partners):not(.theme-dark) h3 {
    color: var(--color-primary);
  }

  /* Keep homepage hero card text dark on mobile (as in Figma) */
  main > section.hero-bg-image.hero-home .hero-card h1,
  main > section.hero-bg-image.hero-home .hero-card h1 span,
  main > section.hero-bg-image.hero-home .hero-card p {
    color: var(--color-primary);
  }
}

/* === Desktop content card frames === */

@media (min-width: 65rem) {
  body {
    padding: var(--frame-padding);
  }

  .site-header {
    background-color: var(--color-white);
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    color: var(--color-primary);
  }

  body:not(.page-home) .site-header {
    border-bottom: 2px solid var(--color-gray-100);
  }

  main > section:not(.partners):not(.theme-dark) {
    background-color: var(--color-white);
    color: var(--color-content-text);
  }

  main > section:not(.partners):not(.theme-dark) a {
    color: var(--color-content-link);
  }

  main > section:not(.partners):not(.theme-dark) h1,
  main > section:not(.partners):not(.theme-dark) h2,
  main > section:not(.partners):not(.theme-dark) h3 {
    color: var(--color-content-heading);
  }

  main > section:not(.partners):has(+ .partners) {
    border-radius: 0 0 var(--radius-card) var(--radius-card);
  }

  main > section:last-child:not(.partners) {
    border-radius: 0 0 var(--radius-card) var(--radius-card);
  }

  .site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    border-radius: var(--radius-card);
    padding-block: var(--container-padding);
  }

  .site-footer a {
    color: var(--color-footer-text);
  }
}

/* Sidebar cards (.agenda.aside / .subscribe.aside): inherit colors from the card instead of section-wide link/heading rules */
main > section:not(.partners):not(.theme-dark) aside > .aside a {
  color: inherit;
}

main > section:not(.partners):not(.theme-dark) aside > .aside a:hover {
  color: var(--color-accent);
}

main > section:not(.partners):not(.theme-dark) aside > .aside h3 {
  color: inherit;
}

main > section:not(.partners):not(.theme-dark) aside > .aside a.btn-accent,
main > section:not(.partners):not(.theme-dark) aside > .aside a.btn-accent:hover {
  color: var(--color-primary);
}

/* === Hero === */

.hero {
  padding: 4rem var(--container-padding);

  /* Padded heroes: fill the padded content box. Full-bleed image heroes use the global section container width. */
  &:not(.hero-bg-image) .container {
    width: 100%;
  }
}

.hero h1 {
  font-size: var(--text-4xl);
  max-width: 20ch;
  line-height: 1.15;
  font-weight: 600;
  overflow-wrap: break-word;
}

.hero h1::after {
  content: "";
  display: block;
  width: 10rem;
  height: .65rem;
  background-color: hsl(187, 72%, 63%);
  margin-top: .35em;
  border-radius: 1em;
}

.page-home .hero h1::after {
  margin-top: .25em;
}

.hero h1 + p {
  font-size: var(--text-base);
  max-width: 33ch;
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* Hero with background image */

.hero-bg-image {
  display: grid;
  min-width: 20rem;
  align-items: end;
  padding: 0;
  height: 65vh;
}

@media (min-width: 45rem) {
  .hero-bg-image {
    height: 55vh;
    align-items: center;
  }
}

@media (min-width: 65rem) {
  .hero-bg-image {
    border-radius: 0;
    overflow: hidden;
  }
}

.hero-bg-image > * {
  grid-area: 1 / -1;
}

.hero-bg-image .container {
  z-index: 2;
  padding-bottom: 2rem;
}

@media (min-width: 45rem) {
  .hero-bg-image .container {
    padding-bottom: 0;
  }
}

/* Homepage hero: full-bleed media, gulf transition, glass card (Figma 133:408 / 133:528) */

.hero-bg-image.hero-home {
  height: auto;
  align-items: stretch;
  /* Image clips in .hero-home__media; visible here so .hero-card can use .card-style negative margins */
  overflow: visible;
}

/* Homepage hero only: `hero-home` is used in views/home.php, not other templates */
.hero-home__content {
  max-width: 100%;
  margin-left: -1.25rem;
}

@media (min-width: 65rem) {
  .hero-home__content {
    margin-left: -1.75rem;
  }
}

.hero-bg-image.hero-home > .hero-home__shell {
  grid-area: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  min-height: min(36vh, 20rem);
  max-height: 28.625rem; /* Figma */
  width: 100%;
}

@media (min-width: 45rem) {
  .hero-bg-image.hero-home > .hero-home__shell {
    min-height: min(32vh, 21rem);
  }
}

@media (min-width: 65rem) {
  .hero-bg-image.hero-home > .hero-home__shell {
    min-height: clamp(15.5rem, 30vh, 19rem);
  }
}

.hero-home__media {
  grid-area: 1 / 1;
  position: relative;
  min-height: inherit;
  overflow: hidden;
  background-color: var(--color-primary);
}

.hero-home__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center 72%;
}

.hero-home__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  /* height: clamp(2.5rem, 8vw, 4.5rem); */
  /* Ornament should match the (now light) content background on mobile */
  color: var(--color-white);
  pointer-events: none;
  line-height: 0;
}

@media (min-width: 65rem) {
  .hero-home__wave {
    color: var(--color-content-bg);
    /* height: clamp(2.75rem, 5vw, 4rem); */
  }
}

.hero-home__wave-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-home__wave-svg.desktop {
  display: none;
}

@media (min-width: 65rem) {
  .hero-home__wave-svg.mobile {
    display: none;
  }

  .hero-home__wave-svg.desktop {
    display: block;
  }
}

.hero-bg-image.hero-home .hero-home__content {
  grid-area: 1 / 1;
  z-index: 2;
  align-self: end;
  /* padding-bottom: clamp(0.85rem, 3vw, 1.5rem); */
  padding-bottom: clamp(0.85rem, 13vw, 21.5rem);

}

@media (min-width: 45rem) {
  .hero-bg-image.hero-home .hero-home__content {
    align-self: center;
    padding-bottom: clamp(1rem, 3vw, 2rem);
  }
}

/* Hero card (frosted glass overlay) — homepage only */

.hero-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(7.45px);
  -webkit-backdrop-filter: blur(7.45px);
  border-radius: var(--radius-btn);
  padding: 1.25rem 1.25rem 1.35rem;
  width: fit-content;
  max-width: 30rem;
  box-shadow: 0 0.25rem 1.5rem rgba(41, 75, 105, 0.08);
  /* Match .card horizontal bleed */
}

@media (min-width: 65rem) {
  .hero-card {
    /* background: rgba(255, 255, 255, 0.75); */
    padding: 1.75rem 1.75rem 1.65rem;
    max-width: 30rem;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 0.35rem 2rem rgba(41, 75, 105, 0.06);
  }
}

.hero-card h1 {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.1875rem;
  line-height: 1.25;
}

.hero-card h1 span {
  display: block;
  font-weight: 600;
  font-size: 2.25rem;
  margin-top: 0.35rem;
  line-height: 1.05;
}

@media (min-width: 65rem) {
  .hero-card h1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.3125rem;
    text-align: left;
    max-width: 100%;
  }

  .hero-card h1 span {
    font-size: 3.5rem;
    margin-top: 0.25rem;
    text-align: left;
  }
}

.hero-card p {
  font-size: 0.875rem;
  color: var(--color-primary);
  margin-top: 0.85rem;
  line-height: 1.35;
}

@media (min-width: 65rem) {
  .hero-card p {
    font-size: 1rem;
    margin-top: 1.25rem;
    text-align: left;
    max-width: 20.5rem;
    line-height: 1.45;
  }
}

@media (min-width: 65rem) {
  .hero-bg-image.hero-home .hero-card header {
    width: 100%;
  }
}

/* Hero search */
.hero-search {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* === Article === */

.article {
  padding: 4rem var(--container-padding);
}

@media (min-width: 65rem) {
  .article {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* === Buttons === */

.btn {
  display: block;
  width: fit-content;
  padding: .75em 1.25em;
  font-size: var(--text-base);
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-btn);
  cursor: pointer;
  font-weight: 700;
  appearance: none;
  border-color: transparent;
}

.btn-sm {
  padding: .5em 1em;
  font-size: var(--text-sm);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover, #e5ac2f);
  color: var(--color-primary);
}

/* Accent buttons: always dark blue text (readable on yellow), even inside footer/mobile menu */
.site-footer .btn-accent,
.site-footer .btn-accent:hover,
.mobile-menu .btn-accent,
.mobile-menu .btn-accent:hover {
  color: var(--color-primary);
}

.page-event button.buy {
  color: var(--color-white);
  padding: 1em 1.5em;
  background-color: var(--color-bg-btn);
  border-radius: .25em;
}

.page-event button.buy:hover {
  cursor: pointer;
  background-color: var(--color-bg-btn-hover);
}

form p.error {
  color: red;
}

/* === Date === */

.date {
  display: block;
  font-size: var(--text-sm);
}

/* === Aside (sidebar cards) === */

.aside {
  padding: 1.5em;
  background-color: var(--color-sidebar-bg);
  color: var(--color-sidebar-text);
  border-radius: var(--radius-btn);
}

/* Agenda & Nieuwsbrief: Figma padding 35px */
.agenda.aside,
.subscribe.aside {
  padding: 2.1875rem; /* 35px */
}

.aside a {
  color: var(--color-sidebar-text);
}

.aside h3 {
  color: var(--color-sidebar-heading);
}

/* === Agenda sidebar (Figma: dark card, white text, accent CTA) === */

.agenda.aside {
  background-color: var(--color-primary);
  color: var(--color-white);
}

@media (max-width: 64.999rem) {
  main > section > .container > aside > .agenda.aside {
    background-color: var(--color-primary);
    color: var(--color-white);
  }

  main > section > .container > aside > .agenda.aside h3,
  main > section > .container > aside > .agenda.aside a,
  main > section > .container > aside > .agenda.aside .date {
    color: var(--color-white);
  }

  main > section > .container > aside > .agenda.aside ul > li {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }
}

.agenda.aside a {
  color: var(--color-white);
}

.agenda.aside h3 {
  color: var(--color-white);
  font-family: Montserrat;
  font-size: 2.625rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.agenda.aside header + ul,
.subscribe.aside header + ul {
  margin-top: 1.5rem;
}

.agenda.aside ul + footer {
  margin-top: 1.5625rem; /* 25px Figma */
}

.agenda ul {
  display: flex;
  flex-direction: column;
  gap: 1.5625rem; /* 25px Figma */
}

.agenda ul > li {
  padding: 0 0 0 0;
  padding-top: 1.5625rem; /* 25px gap above item */
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.agenda ul > li:last-child {
  border-bottom: none;
}

.agenda ul > li a {
  font-weight: 700;
  font-size: 1rem; /* 16px Figma */
  line-height: 1.625; /* 26px */
  text-decoration: none;
  color: currentColor;
}

.agenda .date {
  display: block;
  margin-top: 0;
  font-size: 1rem;
  line-height: 1.625;
  font-weight: 400;
  color: currentColor;
  opacity: .85;
}

.agenda footer {
  margin-top: 1.5625rem; /* 25px Figma */
}

.agenda .btn {
  width: 100%;
  text-align: center;
}

.agenda .btn-accent:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* === Subscribe (Nieuwsbrief) sidebar === */
/* Same dark card + white text as Agenda; Figma typography and spacing */

.subscribe.aside {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.subscribe.aside a,
.subscribe.aside h3 {
  color: var(--color-white);
}

.subscribe.aside h3 {
  font-size: 2.625rem; /* 42px Figma */
  font-weight: 500;
  line-height: 1;
  margin-bottom: 3.1875rem; /* 51px space to content */
}

.subscribe.aside ul {
  display: flex;
  flex-direction: column;
  gap: 1.5625rem; /* 25px Figma */
}

.subscribe.aside ul > li {
  padding-top: 1.5625rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 1rem;
  line-height: 1.625; /* 26px Figma */
}

.subscribe.aside ul > li:first-child {
  padding-top: 0;
  border-top: none;
}

.subscribe.aside a {
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.625;
}

.subscribe.aside a:hover {
  text-decoration: underline;
}

/* === TOC === */

.toc h3 {
  display: inline-block;
  padding: .75em 1em;
  font-family: var(--font-mono);
  font-size: .75rem;
  background-color: var(--color-bg-toc);
  color: var(--color-text-toc);
}

.toc ol {
  padding-top: 1em;
  padding-left: 3em;
  border-left: 2px solid var(--color-bg-toc);
}

.toc li {
  padding-left: .25em;
  list-style: decimal-leading-zero;
}

.toc li::marker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* === Box === */

.box {
  border-radius: .2em;
  padding: 1.25em 1.5em;
}

.box-info {
  /* background-color: hsl(208, 53%, 51%); */
  background-color: var(--color-primary);
  color: var(--color-white);
}

.box-success {
  background-color: hsl(98, 52.8%, 51%);
}

.box-warning {
  background-color: orange;
  color: hsl(38.6, 95.5%, 8.6%);
}

.box-alert {
  background-color: hsl(0, 68%, 52%);
}

/* === Partners === */

.partners {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 65rem) {
  .partners {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* === Footer === */

.site-footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
  padding-inline: var(--container-padding);
}

@media (min-width: 65rem) {
  .site-footer {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }
}

.site-footer .logo img {
  height: 3.5rem;
  width: auto;
}

@media (max-width: 64.999rem) {
  .site-footer .logo img {
    filter: brightness(0) invert(1);
  }
}

/* Footer nav */

.footer-nav {
  text-align: center;
  margin-bottom: 2.5rem;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25em 1.5rem;
}

.footer-nav a {
  text-decoration: none;
  font-size: var(--text-base);
}
.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-nav-primary a {
  font-weight: 500;
}

.footer-nav-secondary {
  margin-top: .25em;
}

.footer-nav-secondary a {
  font-weight: 400;
}

/* Footer bottom row */

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 65rem) {
  .footer-bottom {
    justify-content: space-between;
  }
}

/* Footer copyright */

.footer-copyright {
  margin-top: 1.5rem;
  text-align: center;
  font-size: var(--text-sm);
}

.footer-copyright a {
  color: inherit;
}

/* === Social icons === */

ul.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
}

ul.social li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  border-radius: var(--radius-btn);
  padding: .75em;
  text-decoration: none;
}

ul.social img {
  height: 1.5rem;
  width: 1.5rem;
}

@media (max-width: 64.999rem) {
  ul.social li a {
    background-color: transparent;
  }
}

@media (min-width: 65rem) {

  ul.social a {
    transition-duration: 200ms;
    transition-timing-function: ease;
  }

  ul.social li a:hover {
    transform: scale(.9);
  }
}

/* === Spacing === */

form * + input:not(input.btn),
form * + textarea {
  margin-top: .25em;
}

aside header + * {
  margin-top: 1em;
}

* + footer:not(.site-footer) {
  margin-top: 1.5em;
}

article header > * + *,
article section > * + * {
  margin-top: 2em;
}

article > * + * {
  margin-top: 2em;
}

main > section > div > aside > * + * {
  margin-top: 3em;
}

.agenda ul > * + * {
  margin-top: 0;
}

.page-events .text * + h3 {
  margin-top: 6rem;
}

.page-events .text h3 + * {
  margin-top: 1.5em;
}

/* === Events page: past event styling === */

.event-past {
  opacity: 0.5;
}

.event-badge {
  display: inline-block;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  padding: 0.15em 0.5em;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.5em;
  line-height: 1.4;
}

.event-badge--past {
  background-color: #d1d5db;
  color: #374151;
}

/* === Pagination === */

.pagination {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.35em 0.6em;
  border-radius: 4px;
  text-decoration: none;
  font-size: var(--text-sm, 0.875rem);
}

.pagination strong {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.pagination a:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
}


.page-event h1 {
  max-width: 25ch;
}

.page-toc article,
.page-toc article .text {
  max-width: initial;
}

/* === Transitions === */

input:focus,
textarea:focus {
  border-color: var(--color-accent);
}

tbody tr:hover {
  background-color: var(--color-bg-table-hover);
}

a:not(a:focus),
input.btn {
  transition-duration: 200ms;
  transition-timing-function: ease-in-out;
}

a:hover {
  cursor: pointer;
}

button:hover {
  cursor: pointer;
}

.heading {
  word-break: break-word;
  hyphens: auto;
  text-wrap: pretty;
}

.card {
  border-radius: 0.625rem;
  color: var(--color-primary);
  display: flex;
  flex-flow: column;
  padding: 2.0625rem 1.4375rem 2.0625rem 1.4375rem;
  align-items: flex-start;
  gap: 1.25rem;
  align-self: stretch;

}
.card-title {
  color: var(--color-primary) !important;
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.625rem; /* 123.81% */
  margin-bottom: 1em;
  word-break: break-word;
  hyphens: auto;
  text-wrap: pretty;
}
.card-actions {
  display: flex;
  flex-flow: column;
  gap: .625rem;
  flex-shrink: 0;

  .btn {
    color: var(--color-primary) !important;
  }
}
.card-grey {
  background: #E9E9E9;
}
.card-toc {
  flex-flow: row;
  align-items: center;
  justify-content: space-between;
}

.card-toc .card-content {
  flex: 1;
}

.card-toc > * + * {
  margin-top: 0;
}

.card-toc .card-title {
  margin-bottom: 0;
}

.card.card-toc--compact {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (min-width: 72.5rem) {
  .card {
    flex-flow: row;
    margin-inline: calc(1.4375rem * -1);
  }
}

.page-title {
  font-size: var(--text-5xl);
  margin-top: 2.1875rem;
}

/* When .text is the first child (e.g. home page), align with sidebar card padding */
article > .text:first-child {
  padding-top: 2.1875rem;
}
.page-title::after {
  content: "";
  display: block;
  width: 10rem;
  height: .65rem;
  background-color: hsl(187, 72%, 63%);
  margin-top: .35em;
  border-radius: 1em;
}

/* === Breadcrumb === */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--text-sm, 0.875rem);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 0.5em;
  opacity: 0.4;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--color-content-link, var(--color-primary));
  opacity: 0.7;
  transition: opacity 0.15s;
}

.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  font-weight: 600;
  opacity: 0.5;
}

@media (max-width: 64.999rem) {
  .desktop {
    display: none;
  }
}

@media (min-width: 65rem) {
  .mobile {
    display: none;
  }
}
