/* Renault 5 Community — exact match override stylesheet
   Loaded after assets/styles.css. Uses public body page- classes. */

/* Racing Sans One - R5 badge-style lettering for the brand wordmark (OFL, self-hosted) */
@font-face {
  font-family: 'Racing Sans One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/racing-sans-one-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Racing Sans One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/racing-sans-one-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Public page base: white background, Inter font */
html {
  background: #ffffff;
}

body main {
  background: #ffffff;
  color: #111517;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  display: block;
  padding: 0;
  background: #111517;
  color: #ffffff;
  border: 0;
  box-shadow: none;
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: rgba(255, 255, 255, 0.9);
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #FFD500;
}

.site-nav a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 2px;
  background: #FFD500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 3px;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bars {
  background: linear-gradient(#ffffff, #ffffff) center / 20px 3px no-repeat;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  background: #ffffff;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-actions .button,
.account-actions .button.ghost {
  padding: 7px 12px;
  min-height: 32px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  color: #111517;
  background: #FFD500;
  border: 1px solid #FFD500;
}

.account-actions .button.ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.account-actions .button:hover {
  background: #ffdb33;
  border-color: #ffdb33;
}

.account-actions .button.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.account-actions .notification-button,
.account-actions .account-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.account-actions .notification-button:hover,
.account-actions .account-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.account-actions .topbar-icon {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

.account-actions .notification-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #FFD500;
  color: #111517;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
}

/* Admin bar — must paint above .site-header (z-index: 50) so the inbox
   preview dropdown renders on top like the notification dropdown. */
.admin-bar {
  z-index: 60;
}

@media (max-width: 1180px) {
  .admin-bar {
    z-index: 1300;
  }

  .admin-bar-preview {
    z-index: 1400;
  }

  /* Anchor the inbox preview to the bar itself so it can never leave
     the viewport when the Inbox item wraps near the screen edge. */
  .admin-bar-menu {
    position: static;
  }

  .admin-bar-preview {
    left: 8px;
    right: 8px;
    width: auto;
  }
}

.site-header .notification-menu,
.site-header .account-menu {
  position: relative;
  padding-bottom: 6px;
  margin-bottom: -6px;
}

.site-header .notification-dropdown,
.site-header .account-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 80;
  min-width: 220px;
  display: none;
  background: #111517;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 6px;
  padding-top: 4px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.site-header .notification-menu:hover .notification-dropdown,
.site-header .notification-menu:focus-within .notification-dropdown,
.site-header .notification-menu.is-open .notification-dropdown,
.site-header .account-menu:hover .account-dropdown,
.site-header .account-menu:focus-within .account-dropdown,
.site-header .account-menu.is-open .account-dropdown {
  display: grid;
  gap: 4px;
}

.site-header .notification-dropdown .description {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  padding: 4px 8px;
  margin: 0;
}

.site-header .notification-mark-all-form {
  margin: 0;
  padding: 0 8px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .notification-mark-all-form button,
.site-header .notification-dropdown-item button {
  padding: 5px 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: #ffffff;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-header .notification-mark-all-form button:hover,
.site-header .notification-dropdown-item button:hover {
  background: #FFD500;
  color: #111517;
  border-color: #FFD500;
}

.site-header .notification-dropdown-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  border-left: 2px solid transparent;
}

.site-header .notification-dropdown-item.unread {
  border-left-color: #FFD500;
  background: rgba(255,213,0,0.08);
}

.site-header .notification-dropdown-item:hover {
  background: rgba(255,255,255,0.06);
}

.site-header .notification-dropdown a,
.site-header .notification-dropdown a strong {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
}

.site-header .notification-dropdown a span {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 11px;
}

.site-header .all-notifications-link {
  display: block;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 8px;
  margin-top: 4px;
  color: #FFD500;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.site-header .account-dropdown a {
  display: block;
  padding: 8px;
  color: #ffffff;
  font-size: 13px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-header .account-dropdown a:hover,
.site-header .account-dropdown a:focus {
  background: rgba(255,255,255,0.08);
  color: #FFD500;
}

/* Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: #0f0f0f;
  background-image: url('background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  min-height: auto;
  padding: 0;
  border: 0;
}

.hero::after,
.hero-layout::after {
  content: none !important;
  display: none !important;
}

.hero-layout {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: 0;
  align-items: stretch !important;
  padding: 0 !important;
  background: transparent !important;
}

.hero-copy {
  position: relative;
  z-index: 10;
  background: rgba(17, 21, 23, 0.78);
  display: flex;
  align-items: center;
  padding: 48px 32px;
}

.hero-copy::before {
  content: none !important;
}

.hero-copy > * {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  font-size: 42px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin: 0;
}

.hero-copy h1 span {
  color: #FFD500;
}

.hero-copy p {
  max-width: 280px;
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.hero-copy .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 20px;
  background: #FFD500;
  color: #111517;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.hero-copy .button:hover {
  background: #ffdb33;
}

.hero-copy .button.ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-image-wrap {
  position: relative;
  min-height: 0;
  background: transparent;
  overflow: hidden;
}

.hero-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: grayscale(100%) contrast(1.1);
}

.hero-diagonal {
  position: absolute;
  left: 41%;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 20;
  pointer-events: none;
}

.hero-diagonal::before {
  content: "";
  position: absolute;
  inset: -10% 0;
  background: #FFD500;
  transform: skewX(-18deg);
}

.hero-diagonal::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 62px;
  width: 14px;
  background: #ffffff;
  transform: skewX(-18deg);
  box-shadow: 16px 0 0 #000000;
}

.mobile-diagonal {
  display: none;
  height: 12px;
}

/* Three cards -------------------------------------------------------- */
.three-cards {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px clamp(16px, 4vw, 24px) 40px;
}

.three-cards-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-card {
  display: block;
  text-decoration: none;
  color: #111517;
}

.home-card .card-media {
  height: 150px;
  overflow: hidden;
  position: relative;
  background: #f0f0f0;
}

.home-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-card:hover .card-media img {
  transform: scale(1.03);
}

.card-icon {
  background: #FFD500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 56px;
  height: 56px;
  color: #111517;
  transition: transform 0.3s ease;
}

.home-card:hover .card-icon svg {
  transform: scale(1.08);
}

.card-icon img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.home-card:hover .card-icon img {
  transform: scale(1.08);
}

.card-about svg {
  width: 80px;
  height: 80px;
}

.card-body {
  padding-top: 12px;
}

.card-body h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.card-body h3 svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.home-card:hover .card-body h3 svg {
  transform: translateX(3px);
}

.home-card-wrap {
  position: relative;
}

.home-card-wrap .site-text-edit-link {
  z-index: 60;
  pointer-events: auto;
}

.home-card-wrap .home-card-image-edit {
  position: absolute;
  top: -6px;
  left: -6px;
  z-index: 60;
  pointer-events: auto;
}

.home-feature-image-edit {
  position: absolute;
  top: -6px;
  left: -6px;
  z-index: 60;
  pointer-events: auto;
}

.home-card-image-preview {
  height: 120px;
  border: 1px solid #d6dade;
  border-radius: 3px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-card-image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-body p {
  font-size: 12px;
  color: #64717b;
  line-height: 1.5;
  margin: 4px 0 0;
}

/* Lower feature ------------------------------------------------------ */
.home-feature {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px) 40px;
  position: relative;
}

.home-feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.home-feature-image {
  height: 210px;
  overflow: hidden;
  background: #e5e5e5;
  position: relative;
}

.home-feature-icon {
  background: #FFD500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.home-feature-icon svg {
  width: 96px;
  height: 96px;
  color: #111517;
}

.home-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-feature-text h2 {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 12px;
}

.home-feature-text p {
  font-size: 12px;
  color: #64717b;
  line-height: 1.6;
  max-width: 340px;
  margin: 0 0 16px;
}

.home-summary-modules {
  padding-top: 0;
  position: relative;
}

.home-summary-modules .grid-config-edit {
  position: absolute;
  top: -8px;
  right: 0;
  z-index: 60;
  pointer-events: auto;
}

/* Homepage summary modules render as a fixed 2x2 grid regardless of the
   generic 3-column .page-home .content-grid and span-6 .panel.half rules. */
body main .content-grid.home-summary-modules {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body main .content-grid.home-summary-modules > .panel,
body main .content-grid.home-summary-modules > .panel.half {
  grid-column: auto;
}

body main .home-summary-modules .panel {
  padding: 18px;
}

.home-feature-text .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #FFD500;
  color: #111517;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

/* Flash / notice ----------------------------------------------------- */
.flash-section {
  max-width: 1120px;
  margin: 20px auto 0;
  padding: 0 16px;
}

.flash-section-inline {
  max-width: none;
  margin: 0 0 16px;
  padding: 0;
}

.notice,
.panel.full .notice {
  background: #f7f8f9;
  border: 1px solid #e6e8ea;
  border-left: 3px solid #FFD500;
  margin: 12px 0;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #111517;
  border-radius: 4px;
}

/* Footer ------------------------------------------------------------- */
.site-footer {
  width: 100%;
  background: #111517;
  color: rgba(255, 255, 255, 0.7);
  border: 0;
  border-radius: 0;
  padding: 0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 24px);
}

.footer-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

.footer-logo-img {
  width: auto;
  height: 34px;
  display: block;
}

.footer-brand .brand-sub {
  font-family: 'Racing Sans One', 'Inter', Arial, sans-serif;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 3px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: #FFD500;
  border-color: #FFD500;
}

/* Platform icons render as masks over currentColor; unknown platforms keep
   the first letter of their label as fallback. */
.social-icon-facebook,
.social-icon-instagram,
.social-icon-youtube,
.social-icon-x,
.social-icon-tiktok,
.social-icon-linkedin {
  font-size: 0;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.social-icon-facebook {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M13.5 22v-8.2h2.8l.4-3.2h-3.2V8.5c0-.9.3-1.6 1.7-1.6h1.6V4.1c-.3 0-1.3-.1-2.4-.1-2.4 0-4 1.5-4 4.2v2.4H7.6v3.2h2.8V22h3.1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M13.5 22v-8.2h2.8l.4-3.2h-3.2V8.5c0-.9.3-1.6 1.7-1.6h1.6V4.1c-.3 0-1.3-.1-2.4-.1-2.4 0-4 1.5-4 4.2v2.4H7.6v3.2h2.8V22h3.1z'/%3E%3C/svg%3E");
}

.social-icon-instagram {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='4.5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17' cy='7' r='1.4' fill='%23000' stroke='none'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='4.5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17' cy='7' r='1.4' fill='%23000' stroke='none'/%3E%3C/svg%3E");
}

.social-icon-youtube {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.5' y='6' width='19' height='12' rx='3' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath fill='%23000' d='M10 9.3v5.4l4.8-2.7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.5' y='6' width='19' height='12' rx='3' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath fill='%23000' d='M10 9.3v5.4l4.8-2.7z'/%3E%3C/svg%3E");
}

.social-icon-x {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M17.7 3H21l-7.4 8.5L22.3 21h-6.8l-5.3-6.4L4.2 21H1l7.9-9.1L1.7 3h7l4.8 5.8L17.7 3zm-1.2 16h1.9L7.4 4.9H5.4L16.5 19z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M17.7 3H21l-7.4 8.5L22.3 21h-6.8l-5.3-6.4L4.2 21H1l7.9-9.1L1.7 3h7l4.8 5.8L17.7 3zm-1.2 16h1.9L7.4 4.9H5.4L16.5 19z'/%3E%3C/svg%3E");
}

.social-icon-tiktok {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M16.6 3c.4 2.3 1.9 3.8 4.4 4v3.1c-1.6 0-3.1-.5-4.4-1.4v6.6A5.8 5.8 0 1 1 10 9.5v3.2a2.7 2.7 0 1 0 3.5 2.6V3h3.1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M16.6 3c.4 2.3 1.9 3.8 4.4 4v3.1c-1.6 0-3.1-.5-4.4-1.4v6.6A5.8 5.8 0 1 1 10 9.5v3.2a2.7 2.7 0 1 0 3.5 2.6V3h3.1z'/%3E%3C/svg%3E");
}

.social-icon-linkedin {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zM3 9h4v12H3zM9 9h3.8v1.7h.1c.5-1 1.8-2 3.7-2 4 0 4.4 2.6 4.4 6V21h-4v-5.5c0-1.3 0-3-1.9-3s-2.2 1.4-2.2 2.9V21H9z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zM3 9h4v12H3zM9 9h3.8v1.7h.1c.5-1 1.8-2 3.7-2 4 0 4.4 2.6 4.4 6V21h-4v-5.5c0-1.3 0-3-1.9-3s-2.2 1.4-2.2 2.9V21H9z'/%3E%3C/svg%3E");
}

.footer-nav-center {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.footer-nav-center a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-nav-center a:hover {
  color: #FFD500;
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  margin-top: 10px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

/* Global public page styles ------------------------------------------ */
body main h1,
body main h2,
body main h3,
body main h4 {
  color: #111517;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body main a:not(.button):not(.site-nav a),
body main .page-hero a:not(.button) {
  color: #111517;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body main a:not(.button):not(.site-nav a):hover,
body main .page-hero a:not(.button):hover {
  color: #a17f00;
}

body main .button,
body main button[type="submit"]:not(.nav-toggle):not(.notification-button):not(.account-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border: 0;
  border-radius: 4px;
  background: #FFD500;
  color: #111517;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

body main .button:hover,
body main button[type="submit"]:not(.nav-toggle):not(.notification-button):not(.account-button):hover {
  background: #ffdb33;
}

body main .button.ghost{
  background: transparent;
  color: #111517;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

body main .button.ghost:hover{
  background: #111517;
  color: #ffffff;
  border-color: #111517;
}

body main .button.danger {
  background: #e53232;
  color: #ffffff;
}

body main .button.danger:hover {
  background: #c72020;
}

body main .page-hero {
  position: relative;
  padding: 0 !important;
  min-height: 260px !important;
  overflow: hidden;
  color: #ffffff;
  background-color: #0f0f0f !important;
  background-image: url('background.webp') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 0 !important;
  box-shadow: none !important;
}

body main .page-hero::after {
  display: none !important;
}

body main .page-hero h1 {
  color: #ffffff;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}

body main .page-hero .eyebrow {
  color: #FFD500;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
}

body main .page-hero p{
  color: rgba(255, 255, 255, 0.8);
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  max-width: 320px;
}

body main .page-hero .page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  flex: none;
  max-width: none;
}

body main .page-hero .page-hero-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body main .page-hero .hero-action-group--buttons .page-hero-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body main .page-hero .button.ghost,
body main .page-hero .button.ghost.dark {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

body main .page-hero .button.ghost:hover,
body main .page-hero .button.ghost.dark:hover {
  background: #ffffff;
  color: #111517;
  border-color: #ffffff;
}

body main .page-hero .hero-diagonal {
  left: 41%;
}

body main .panel,
body main .profile-card,
body main .forum-main,
body main .forum-sidebar,
body main .project-card,
body main .event-card{
  background: #ffffff;
  color: #111517;
  border: 1px solid #e6e8ea;
  border-radius: 6px;
  box-shadow: none;
}

body main .panel h2,
body main .panel h3,
body main .panel h4 {
  color: #111517;
}

body main .content-grid,
body main .forum-layout,
body main .events-layout,
body main .projects-layout,
body main .wide-section{
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 24px);
}

body main input,
body main select,
body main textarea {
  padding: 10px 12px;
  border: 1px solid #c8d6e7;
  border-radius: 4px;
  background: #ffffff;
  color: #111517;
  font-family: inherit;
  font-size: 0.9rem;
}

body main input:focus,
body main select:focus,
body main textarea:focus {
  border-color: #FFD500;
  outline: 2px solid rgba(255, 213, 0, 0.2);
}

body main .field label,
body main label {
  color: #111517;
  font-weight: 600;
  font-size: 0.85rem;
}

body main .flash,
body main .notice,
body main .success,
body main .error,
body main .info,
body main .warning {
  background: #f7f8f9;
  border: 1px solid #e6e8ea;
  border-left: 3px solid #FFD500;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111517;
}

body main .table,
body main table {
  width: 100%;
  border-collapse: collapse;
  color: #111517;
}

body main .table th,
body main table th {
  background: #f7f8f9;
  color: #111517;
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e6e8ea;
}

body main .table td,
body main table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6e8ea;
}

body main .table tr:hover td,
body main table tr:hover td {
  background: #f7f8f9;
}

.hero .hero-copy h1 {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #111517;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    gap: 3px;
    z-index: 40;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav a::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* Mobiel: hamburger helemaal rechts, daarvoor profiel, chat en meldingen. */
  .header-right .account-actions {
    order: 1;
  }

  .header-right .nav-toggle {
    order: 2;
  }

  .account-actions .notification-menu {
    order: 1;
  }

  .account-actions .chat-header-button {
    order: 2;
  }

  .account-actions .account-menu {
    order: 3;
  }

  body main .hero {
    height: auto;
    min-height: 0;
    background-image: none !important;
  }

  body main section.hero.has-custom-image {
    background-image: none !important;
    background-position: center !important;
  }

  body main .hero-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  body main .hero-copy {
    clip-path: none;
    padding: 26px 22px;
    background: #111517;
  }

  body main .hero-copy h1 {
    font-size: 30px;
    max-width: none;
    -webkit-line-clamp: 3;
  }

  body main .hero-copy p {
    max-width: 480px;
  }

  body main .hero-layout > .hero-action-panel {
    display: none;
  }

  body main .hero-actions-mobile {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px) 20px;
    pointer-events: auto;
    background: transparent;
  }

  .hero-diagonal {
    display: none;
  }

  .hero-image-wrap {
    display: none;
  }

  .mobile-diagonal {
    display: flex;
    height: 24px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  }

  .mobile-diagonal div:nth-child(2) {
    width: 18px !important;
  }

  .mobile-diagonal div:nth-child(3) {
    width: 14px !important;
  }

  .three-cards-inner {
    grid-template-columns: 1fr;
  }

  .home-feature-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body main .page-hero {
    min-height: 220px !important;
  }
}

@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-copy .button {
    width: 100%;
    justify-content: center;
  }

  .home-feature-image {
    height: 180px;
  }

  .footer-top {
    flex-wrap: wrap;
  }

  .footer-nav-center {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    margin-top: 6px;
  }
}

/* Standardized layout helpers ----------------------------------------- */

body main .content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

body main .content-grid > .panel,
body main .content-grid > .panel:not(.full) {
  border: 1px solid #e6e8ea;
}

/* styles.css adds a white "sheen" border-top from the old dark design,
   which is invisible on the light cards — restore the standard border color. */
body main .forum-main > .panel,
body main .events-main > .panel,
body main .projects-overview > .panel,
body main .project-state-report,
body main .project-update,
body main .event-detail-card {
  border-top-color: #e6e8ea;
}

body main .content-grid > .panel,
body main .content-grid > .panel.full,
body main .content-grid > .panel.half,
body main .content-grid > .panel.third {
  grid-column: span 12;
}

body main .content-grid > .panel.half {
  grid-column: span 6;
}

body main .content-grid > .panel.third {
  grid-column: span 4;
}

/* styles.css gives every .panel.full/.half/.third `grid-column: span 12`.
   Outside .content-grid that creates 12 implicit columns in single-column
   grids like .events-main, squeezing non-panel siblings into one track. */
body main .events-main > .panel,
body main .projects-main > .panel,
body main .projects-overview > .panel,
body main .forum-main > .panel,
body main .events-sidebar > .panel,
body main .projects-sidebar > .panel,
body main .forum-sidebar > .panel {
  grid-column: auto;
}

/* Same implicit-track problem on the project detail page: once the
   content-grid collapses to 1fr, `span 12` panels create 11 implicit
   columns and `grid-column: 1 / -1` items (the project root article)
   are squeezed into the single explicit track. */
body main .content-grid.project-detail-page > .panel {
  grid-column: 1 / -1;
}

body main .contact-page-shell {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

body main .contact-page-shell .contact-info-panel {
  grid-column: span 5;
}

body main .contact-page-shell .contact-form-panel {
  grid-column: span 7;
}

body main .button.dark {
  background: #111517;
  color: #ffffff;
  border: 1px solid #111517;
}

body main .button.dark:hover {
  background: #2a2f33;
  border-color: #2a2f33;
}

body main .button.ghost.dark {
  background: transparent;
  color: #111517;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

body main .button.ghost.dark:hover {
  background: #111517;
  color: #ffffff;
  border-color: #111517;
}

body main .description,
body main .panel .description,
body main .home-feature-text p,
body main .card-body p {
  color: #4a545c;
  line-height: 1.6;
}

body main .contact-info-panel {
  background: #111517;
  border: 0;
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.82);
}

body main .contact-info-panel .eyebrow {
  color: #FFD500;
}

body main .contact-info-panel h2 {
  color: #ffffff;
}

body main .contact-info-panel .description {
  color: rgba(255, 255, 255, 0.72);
}

body main .contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  font-size: 12px;
}

body main .contact-info-list span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid #FFD500;
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.88);
}

body main .contact-info-list strong {
  color: #FFD500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body main .contact-form-panel {
  border: 1px solid #e6e8ea;
  border-radius: 2px;
}

body main .contact-form-panel .section-heading {
  margin-bottom: 18px;
}

body main .contact-form-panel .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body main .contact-form-panel .form-grid .field {
  display: grid;
  gap: 6px;
}

body main .contact-form-panel .form-grid .field.full,
body main .contact-form-panel .form-grid .notice.full {
  grid-column: 1 / -1;
}

body main .contact-form-panel .form-grid textarea {
  min-height: 140px;
  resize: vertical;
}

body main .contact-form-panel .form-grid .button {
  justify-self: start;
}

@media (max-width: 980px) {
  body main .contact-page-shell .contact-info-panel,
  body main .contact-page-shell .contact-form-panel {
    grid-column: 1 / -1;
  }
}

/* Home hero sizing aligned with page-hero ----------------------------- */

.hero {
  height: 360px;
  min-height: 360px;
}

.hero-layout {
  height: 100%;
  min-height: inherit;
}

.hero-copy {
  grid-column: 1 / -1;
  max-width: none;
  padding: 40px 32px;
  clip-path: polygon(0 0, 49% 0, 44% 100%, 0 100%);
}

.hero-image-wrap {
  display: none;
}

.hero-copy h1 {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 420px;
  padding-bottom: 0.08em;
}

.hero-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 300px;
}

.hero-action-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 44%;
  z-index: 30;
  padding: 24px 32px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  background: transparent;
}

.hero-action-panel > * {
  pointer-events: auto;
}

.hero-action-panel .hero-action-group {
  background: #ffffff;
  border: 1px solid #e6e8ea;
  border-top: 3px solid #FFD500;
  border-radius: 2px;
  box-shadow: none;
}

.hero-action-panel .hero-action-group-label {
  color: #111517;
}

/* Mobile copy of the hero actions: rendered right after </section> inside
   main, hidden on desktop where the in-hero panel is used. Keep this at
   (0,1,1) so the (0,2,1) rule inside the ≤980px media query wins. */
.hero-actions-mobile {
  display: none;
}

@media (max-width: 900px) {
  .hero {
    height: auto;
  }

  .hero-copy {
    clip-path: none;
  }

  .hero-action-panel {
    position: static;
    left: auto;
    right: auto;
    width: 100%;
    justify-content: flex-start;
    background: transparent;
  }
}

/* Remove legacy home-hero.png backgrounds -------------------------------- */

.content-grid .panel::before,
body main .content-grid .panel::before {
  content: none !important;
  background-image: none !important;
}

/* Breadcrumbs, projecten & evenementen -------------------------------- */

body main .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  width: 100%;
  max-width: 1120px;
  margin: 8px auto 12px;
  padding: 0 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  color: #111517;
  font-size: 0.85rem;
}

body main .breadcrumbs a {
  color: #111517;
  font-weight: 600;
  text-decoration: none;
}

body main .breadcrumbs a:hover,
body main .breadcrumbs a:focus {
  color: #FFD500;
  text-decoration: underline;
}

body main .breadcrumbs strong {
  color: #111517;
  font-weight: 800;
}

body main .breadcrumb-separator,
body main .breadcrumb-prefix {
  color: #FFD500;
  font-weight: 700;
}

body main .breadcrumb-prefix {
  display: none;
}

/* Compact spacing between the page banner and the content below it.
   styles.css stacks margin-top:22px with padding-top:clamp(18px,3vw,34px). */
body main > .wide-section,
body main > .content-grid,
body main > .events-layout,
body main > .projects-layout,
body main > .forum-layout,
body main > .three-cards {
  margin-top: 12px;
  padding-top: 12px;
}

main > .page-hero + *,
main > .flash-section + * {
  margin-top: 12px;
}

body main .eyebrow {
  color: #FFD500;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}

body main .section-heading,
.chat-modal .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
}

body main .section-heading::before,
.chat-modal .section-heading::before {
  content: none;
}

body main .section-heading h2,
body main .section-heading h3,
.chat-modal .section-heading h2,
.chat-modal .section-heading h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: #111517;
  margin: 0;
}

body main .section-heading .eyebrow {
  margin: 0 0 3px;
  font-size: 0.72rem;
}

body main .listing-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

body main .section-heading-sort .field,
body main .listing-toolbar .compact-inline {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

body main .section-heading-sort select,
body main .listing-toolbar select {
  height: 30px;
  width: auto;
  min-width: 0;
  max-width: 160px;
  padding-inline: 6px 24px;
  font-size: 0.8rem;
}

body main .section-heading-sort .compact-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  color: #4a545c;
  cursor: pointer;
}

body main .section-heading-sort .compact-checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #111517;
}

body main .project-list,
body main .event-list {
  display: grid;
  gap: 16px;
}

body main .project-card,
body main .event-card,
body main .search-card,
body main .home-module-card,
body main .home-summary-modules .useful-link-card {
  position: relative;
  background: #ffffff;
  color: #111517;
  border: 1px solid #e6e8ea;
  border-radius: 6px;
  padding: 0;
  box-shadow: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

body main .project-card:hover,
body main .project-card:focus-within,
body main .event-card:hover,
body main .event-card:focus-within,
body main .search-card:hover,
body main .search-card:focus-within,
body main .home-module-card:hover,
body main .home-module-card:focus-within,
body main .home-summary-modules .useful-link-card:hover,
body main .home-summary-modules .useful-link-card:focus-within {
  border-color: #FFD500;
  background: #fffbed;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 21, 23, 0.08);
}

/* Uniform card inset: the inner link row carries the spacing so the
   article itself stays padding-free. Right-side arrow space is reserved
   on the text column instead of the card, keeping left/right padding equal. */
body main .event-card-overview-link,
body main .project-card-main {
  min-height: 96px;
  padding: 12px 16px;
}

body main .project-card-compact {
  padding-right: 32px;
}

body main .event-card-link::after,
body main .project-card-main::after,
body main .search-card::after,
body main .home-module-card::after,
body main .home-summary-modules .useful-link-card::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: #6b7885;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='m13 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='m13 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: background 0.15s ease;
}

body main .event-card-link::after {
  right: 0;
}

body main .project-card-main::after,
body main .search-card::after,
body main .home-module-card::after,
body main .home-summary-modules .useful-link-card::after {
  right: 16px;
}

body main .event-card:hover .event-card-link::after,
body main .event-card:focus-within .event-card-link::after,
body main .project-card:hover .project-card-main::after,
body main .project-card:focus-within .project-card-main::after,
body main .search-card:hover::after,
body main .search-card:focus-within::after,
body main .home-module-card:hover::after,
body main .home-module-card:focus-within::after,
body main .home-summary-modules .useful-link-card:hover::after,
body main .home-summary-modules .useful-link-card:focus-within::after {
  background: #111517;
}

body main .project-card h3,
body main .event-card h3,
body main .search-card h3,
body main .home-module-card h3,
body main .home-summary-modules .useful-link-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111517;
  margin: 0;
}

body main .project-card a:hover h3,
body main .event-card a:hover h3,
body main .search-card:hover h3,
body main .home-module-card:hover h3,
body main .home-summary-modules .useful-link-card:hover h3 a {
  color: #111517;
  text-decoration: underline;
}

body main .search-results {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

body main .search-card {
  display: block;
  padding: 14px 52px 14px 16px;
  color: inherit;
  text-decoration: none;
}

body main .home-summary-modules .list {
  display: grid;
  gap: 10px;
}

/* styles.css's .content-grid .panel .list .home-module-card rules (0,4,0) beat
   the shared card selectors, so the module cards get their own block. */
body main .home-summary-modules .panel .list .home-module-card,
body main .home-summary-modules .panel .list .useful-link-card {
  display: block;
  min-height: 0;
  padding: 12px 46px 12px 14px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  border: 1px solid #e6e8ea;
  border-radius: 6px;
  box-shadow: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

body main .home-summary-modules .panel .list .home-module-card:hover,
body main .home-summary-modules .panel .list .home-module-card:focus-within,
body main .home-summary-modules .panel .list .useful-link-card:hover,
body main .home-summary-modules .panel .list .useful-link-card:focus-within {
  border-color: #FFD500;
  border-left-color: #FFD500;
  background: #fffbed;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 21, 23, 0.08);
}

body main .home-summary-modules .panel .list .home-module-card h3,
body main .home-summary-modules .panel .list .useful-link-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111517;
  margin: 0 0 2px;
}

body main .home-summary-modules .panel .list .home-module-card:hover h3,
body main .home-summary-modules .panel .list .useful-link-card:hover h3 a,
body main .home-summary-modules .panel .list .useful-link-card:focus-within h3 a {
  color: #111517;
  text-decoration: underline;
}

body main .home-summary-modules .panel .list .home-module-card .meta,
body main .home-summary-modules .panel .list .home-module-card .description,
body main .home-summary-modules .panel .list .useful-link-card .meta,
body main .home-summary-modules .panel .list .useful-link-card .description {
  color: #4a545c;
  font-size: 0.82rem;
  margin: 2px 0 0;
}

body main .home-summary-modules .panel .list .home-module-card .eyebrow {
  margin-bottom: 2px;
}

/* Module panel headers get a stronger title treatment. */
body main .home-summary-modules .panel .section-heading {
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 2px solid #111517;
}

body main .home-summary-modules .panel .section-heading .eyebrow {
  color: #d3b000;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}

body main .home-summary-modules .panel .section-heading h2 {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: none;
}

body main .home-summary-modules .panel .section-heading a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: auto;
  overflow: visible;
  color: #0072f0;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

body main .home-summary-modules .panel .section-heading a::after {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='m13 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='m13 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

body main .home-summary-modules .panel .section-heading a:hover,
body main .home-summary-modules .panel .section-heading a:focus-visible {
  color: #0059c1;
  text-decoration: underline;
}

body main .auth-switch {
  margin: 14px 0 0;
}

body main .auth-switch a {
  color: #0072f0;
  font-weight: 700;
}

body main .search-card mark {
  background: #FFD500;
  color: #111517;
  padding: 0 1px;
  border-radius: 2px;
}

body main .project-card-fact,
body main .event-card-date,
body main .event-card .event-title-organizer,
body main .search-card .search-snippet,
body main .search-card .meta,
body main .home-module-card .meta,
body main .home-module-card .description,
body main .home-summary-modules .useful-link-card .description {
  color: #4a545c;
  font-size: 0.9rem;
  margin: 4px 0 0;
}

body main .project-card-thumb {
  background: #e6e8ea;
  color: #111517;
  font-size: 0.72rem;
  font-weight: 700;
}

body main .project-card-thumb span {
  color: #111517;
}

body main .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  align-items: center;
}

body main .pagination a,
body main .pagination strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

body main .pagination a {
  background: #ffffff;
  color: #111517;
  border: 1px solid #e6e8ea;
}

body main .pagination a:hover,
body main .pagination a:focus {
  background: #FFD500;
  color: #111517;
  border-color: #FFD500;
}

body main .pagination strong {
  background: #111517;
  color: #FFD500;
}

body main .projects-sidebar,
body main .events-sidebar {
  display: grid;
  gap: 16px;
}

/* Project & event detail pages ------------------------------------------- */

body main .forum-message {
  background: #ffffff;
  border: 1px solid #e6e8ea;
  border-radius: 6px;
  box-shadow: none;
  overflow: hidden;
}

body main .message-author {
  background: #f7f8f9;
  color: #111517;
  border-right: 1px solid #e6e8ea;
  padding: 16px;
}

body main .message-author::before {
  content: none;
}

body main .message-author > strong,
body main .message-author-name-link {
  color: #111517;
}

body main .message-author-name-link:hover,
body main .message-author-name-link:focus {
  color: #FFD500;
}

body main .message-author span,
body main .message-author small {
  color: #4a545c;
  font-size: 0.85rem;
}

body main .message-avatar {
  border: 2px solid #FFD500;
  border-radius: 50%;
}

body main .message-content {
  padding: 24px;
}

body main .message-title-band {
  margin: -24px -24px 20px;
  padding: 18px 24px 16px;
  background: #f7f8f9;
  border-bottom: 3px solid #FFD500;
}

body main .message-title-band .eyebrow {
  color: #FFD500;
}

body main .message-title-band h2 {
  color: #111517;
  font-size: 1.65rem;
  margin: 0;
}

body main .project-summary-box {
  background: #fffef7;
  border: 1px solid #e6e8ea;
  border-radius: 6px;
  padding: 14px;
  margin: 16px 0;
}

body main .project-summary-box strong {
  color: #111517;
}

body main .project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body main .project-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #e6e8ea;
  border-radius: 4px;
  background: #f7f8f9;
  color: #111517;
  font-size: 0.85rem;
  font-weight: 600;
}

body main .project-aspect-read-grid,
body main .project-change-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body main .project-state-report .project-aspect-read-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body main .project-aspect-read-grid div,
body main .project-change-grid div,
body main .project-parts {
  border: 1px solid #e6e8ea;
  border-radius: 6px;
  background: #ffffff;
  padding: 14px;
}

body main .project-update {
  border: 1px solid #e6e8ea;
  border-radius: 6px;
  background: #ffffff;
  padding: 0;
}

body main .project-aspect-read-grid div.updated,
body main .project-change-grid div.changed,
body main .project-update.latest-update {
  border-left: 3px solid #FFD500;
  background: #fffef7;
}

body main .project-aspect-read-grid div.placeholder,
body main .project-change-grid div.same {
  background: #f7f8f9;
}

body main .project-aspect-read-grid strong,
body main .project-change-grid strong,
body main .project-parts strong,
body main .project-update-description > strong {
  color: #111517;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

body main .project-update-description {
  border: 1px solid #e6e8ea;
  border-radius: 6px;
  background: #ffffff;
  padding: 14px;
}

body main .project-aspect-read-grid p,
body main .project-change-grid p,
body main .project-parts p {
  margin: 7px 0 0;
  color: #4a545c;
}

body main .project-aspect-read-grid small {
  display: block;
  margin-top: 8px;
  color: #4a545c;
}

body main .project-part-history {
  margin: 0;
  padding-left: 16px;
}

body main .project-part-history li + li {
  margin-top: 8px;
}

body main .project-update {
  margin-bottom: 16px;
  overflow: hidden;
}

body main .project-update > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  background: #f7f8f9;
  color: #111517;
}

body main .project-update > summary::-webkit-details-marker {
  display: none;
}

body main .project-update > summary span[aria-hidden="true"] {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #111517;
  color: #FFD500;
  font-size: 1.4rem;
  font-weight: 300;
  border-radius: 4px;
}

body main .project-update > summary strong {
  color: #111517;
  font-size: 1.1rem;
  font-weight: 800;
}

body main .project-update > summary small {
  color: #4a545c;
  font-size: 0.85rem;
  font-weight: 700;
}

body main .project-status-update {
  background: #ffffff;
  border: 1px solid #e6e8ea;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}

body main .project-status-update strong {
  color: #111517;
}

body main .project-status-update small {
  color: #4a545c;
}

body main .project-update-list,
body main .project-comments,
body main .event-comments-list {
  display: grid;
  gap: 16px;
}

body main .project-comment-target {
  display: inline-block;
  background: #111517;
  color: #FFD500;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 4px;
}

body main .project-comment-target-description {
  color: #4a545c;
  font-size: 0.85rem;
  margin: 0 0 10px;
}

body main .post-body,
body main .post-body p {
  color: #4a545c;
  line-height: 1.65;
}

body main .post-body h2,
body main .post-body h3 {
  color: #111517;
}

body main .event-detail-header {
  padding: 0 0 18px;
  border-bottom: 2px solid #e6e8ea;
  position: relative;
}

body main .event-detail-header::before {
  content: none;
}

body main .event-detail-header h2 {
  color: #111517;
  font-size: 1.75rem;
  font-weight: 900;
  margin: 0;
}

body main .event-title-organizer {
  color: #4a545c;
  font-size: 0.85rem;
  font-weight: 600;
}

body main .event-archived-badge {
  display: inline-block;
  background: #111517;
  color: #FFD500;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-left: 4px;
}

body main .event-detail-description {
  color: #4a545c;
  border: 0;
  padding: 0;
  margin: 18px 0;
  line-height: 1.65;
}

body main .event-detail-description > strong,
body main .event-detail-description > strong u {
  color: #111517;
  text-decoration: none;
}

body main .event-detail-section h3 {
  color: #111517;
  font-size: 1.2rem;
  font-weight: 900;
  margin: 0 0 16px;
}

body main .event-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body main .event-info-grid div {
  display: grid;
  gap: 6px;
  align-content: start;
  border: 1px solid #e6e8ea;
  border-radius: 6px;
  background: #f7f8f9;
  padding: 14px;
}

body main .event-info-grid div strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #111517;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body main .event-info-grid div span {
  color: #4a545c;
  font-size: 0.95rem;
  font-weight: 600;
}

body main .event-icon {
  color: #FFD500;
}

body main .event-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body main .compact-print-panel > summary,
body main .project-comment-compose > summary,
body main .event-comment-compose > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f7f8f9;
  color: #111517;
  border-top: 3px solid #FFD500;
  border-bottom: 1px solid #e6e8ea;
  cursor: pointer;
  list-style: none;
}

body main .compact-print-panel > summary::-webkit-details-marker,
body main .project-comment-compose > summary::-webkit-details-marker,
body main .event-comment-compose > summary::-webkit-details-marker {
  display: none;
}

body main .compact-print-panel > summary span[aria-hidden="true"],
body main .project-comment-compose > summary span[aria-hidden="true"],
body main .event-comment-compose > summary span[aria-hidden="true"],
body main .content-edit-panel > summary span[aria-hidden="true"] {
  color: #FFD500;
  font-size: 1.4rem;
  font-weight: 300;
}

body main .compact-print-panel > summary span:first-child,
body main .content-edit-panel > summary span:first-child {
  color: #111517;
  font-weight: 600;
  letter-spacing: 0;
}

body main .project-comment-compose,
body main .event-comment-compose {
  border: 1px solid #e6e8ea;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

body main .project-update .forum-message {
  background: transparent;
  border: 0;
}

body main .project-update .message-content {
  padding: 20px;
}

body main .events-sidebar,
body main .projects-sidebar {
  display: grid;
  gap: 18px;
}

body main .events-sidebar .panel,
body main .projects-sidebar .panel {
  background: #ffffff;
  border: 1px solid #e6e8ea;
  border-radius: 6px;
  padding: 16px;
}

@media (max-width: 900px) {
  body main .project-aspect-read-grid,
  body main .project-change-grid,
  body main .event-info-grid,
  body main .event-detail-content-grid {
    grid-template-columns: 1fr;
  }

  body main .project-facts {
    gap: 8px;
  }

  body main .project-facts span {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  body main .event-detail-poster {
    height: 240px;
  }

  body main .message-title-band {
    margin: -24px -24px 16px;
    padding: 16px 24px 14px;
  }

  body main .message-title-band h2 {
    font-size: 1.4rem;
  }
}

/* Tighter spacing and sharper panels ------------------------------------- */

body main .message-author .button.ghost.dark {
  background: #ffffff;
  color: #111517;
  border: 1px solid #e6e8ea;
}

body main .message-author .button.ghost.dark:hover {
  background: #111517;
  color: #ffffff;
  border-color: #111517;
}

body main .message-author .button.dark {
  background: #111517;
  color: #ffffff;
  border: 1px solid #111517;
}

body main .message-author .button.dark:hover {
  background: #2a2f33;
  border-color: #2a2f33;
}

body main .panel,
body main .forum-message,
body main .project-card,
body main .event-card,
body main .search-card,
body main .project-update,
body main .project-status-update,
body main .project-aspect-read-grid div,
body main .project-change-grid div,
body main .project-parts,
body main .project-update-description,
body main .project-summary-box,
body main .event-info-grid div,
body main .events-sidebar .panel,
body main .projects-sidebar .panel,
body main .project-facts span,
body main .message-content,
body main .compact-print-panel,
body main .project-comment-compose,
body main .event-comment-compose {
  border-radius: 2px;
}

/* Event detail - full-width per-event layout */
body main .events-layout.event-detail-view {
  grid-template-columns: minmax(0, 1fr);
}

body main .events-layout.event-detail-view .events-main {
  grid-template-columns: minmax(0, 1fr);
}

body main .events-layout.event-detail-view .events-main > * {
  grid-column: 1 / -1;
  min-width: 0;
}

/* Event detail sidebar becomes a full-width card strip below the content;
   each section gets one equal-width column */
body main .events-layout.event-detail-view .events-sidebar {
  position: static;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

body main .events-layout.event-detail-view .event-side-panel {
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e6e8ea;
  border-radius: 2px;
}

body main .events-layout.event-detail-view .event-side-panel h3 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  color: #111517;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #e6e8ea;
}

/* "alle evenementen in deze serie" button sits at the bottom of its panel */
body main .events-layout.event-detail-view .event-side-footer {
  margin-top: auto;
  padding-top: 12px;
}

body main .event-side-list {
  display: grid;
  gap: 8px;
}

body main .event-side-list a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  color: #111517;
  text-decoration: none;
  background: #ffffff;
}

body main .event-side-list a strong,
body main .event-side-list a span {
  display: block;
}

body main .event-side-list a strong {
  font-weight: 600;
}

body main .event-side-list a span {
  font-size: 0.85rem;
  color: #6b7885;
}

body main .event-side-list a:hover {
  background: #FFD500;
  border-color: #FFD500;
}

body main .event-side-list a:hover strong,
body main .event-side-list a:hover span {
  color: #111517;
}

body main .events-layout.event-detail-view .event-detail-message.event-detail-card {
  grid-template-columns: 220px minmax(0, 1fr);
}

body main .events-layout.event-detail-view .event-detail-content-grid {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  body main .events-layout.event-detail-view .events-sidebar,
  body main .events-layout.event-detail-view .event-detail-message.event-detail-card,
  body main .events-layout.event-detail-view .event-detail-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Event detail - full-width card, poster left, info right */
body main .events-layout.event-detail-view .event-detail-message.event-detail-card {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

body main .events-layout.event-detail-view .event-detail-content-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

body main .events-layout.event-detail-view .event-detail-message.no-poster .event-detail-content-grid {
  grid-template-columns: minmax(0, 1fr);
}

body main .events-layout.event-detail-view .event-detail-message.no-poster .event-detail-left-poster {
  display: none;
}

body main .events-layout.event-detail-view .message-author.event-author-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: none;
  padding: 14px 16px;
  border-right: 0;
  border-bottom: 1px solid #e6e8ea;
}

body main .events-layout.event-detail-view .message-author.event-author-card .message-avatar,
body main .events-layout.event-detail-view .message-author.event-author-card .message-author-avatar-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

body main .events-layout.event-detail-view .message-author.event-author-card .message-author-avatar-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

body main .events-layout.event-detail-view .message-author.event-author-card .emoji-row {
  margin-left: auto;
}

body main .events-layout.event-detail-view .event-detail-left-poster {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

body main .events-layout.event-detail-view .event-detail-main {
  width: 100%;
}

@media (max-width: 900px) {
  body main .events-layout.event-detail-view .event-detail-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Event posters - portrait format, fully visible, click to enlarge -------- */

body main .event-detail-poster {
  width: 100%;
  max-width: 340px;
  height: auto;
  aspect-ratio: 2 / 3;
  background: #111517;
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  overflow: hidden;
}

body main .event-detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #111517;
}

body main [data-poster-lightbox] {
  cursor: zoom-in;
}

body main .event-poster-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* styles.css sizes .event-card-poster-aside as a fixed landscape box
   (118x82, 86x66 on mobile) with object-fit: cover. Portrait posters need
   an auto-height 2/3 box and a matching first grid column. */
body main .event-card .event-card-overview-link {
  grid-template-columns: 150px minmax(0, 1fr);
}

body main .event-card .event-card-poster-aside {
  width: 150px;
  max-width: 150px;
  height: auto;
  align-self: start;
  overflow: hidden;
  background: #111517;
  border: 1px solid #e6e8ea;
  border-radius: 2px;
}

body main .event-card .event-card-poster-aside .event-detail-poster {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
  aspect-ratio: 2 / 3;
  border: 0;
  border-radius: 0;
  background: #111517;
}

body main .event-card .event-card-poster-aside .event-detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body main .event-card .event-card-info {
  padding-right: 30px;
}

body main .event-list.compact .event-card .event-card-overview-link {
  grid-template-columns: 110px minmax(0, 1fr);
}

body main .event-list.compact .event-card .event-card-poster-aside {
  width: 110px;
  max-width: 110px;
}

body main .event-list.compact .event-card .event-card-poster-aside .event-detail-poster {
  width: 110px;
  max-width: 110px;
}

@media (max-width: 900px) {
  body main .event-card .event-card-overview-link {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  body main .event-card .event-card-poster-aside,
  body main .event-card .event-card-poster-aside .event-detail-poster {
    width: 86px;
    max-width: 86px;
    height: auto;
    aspect-ratio: 2 / 3;
  }

  body main .event-list.compact .event-card .event-card-overview-link {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  body main .event-list.compact .event-card .event-card-poster-aside,
  body main .event-list.compact .event-card .event-card-poster-aside .event-detail-poster {
    width: 72px;
    max-width: 72px;
    height: auto;
    aspect-ratio: 2 / 3;
  }
}

@media (max-width: 640px) {
  body main .event-card .event-card-overview-link {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  body main .event-card .event-card-poster-aside,
  body main .event-card .event-card-poster-aside .event-detail-poster {
    width: 72px;
    max-width: 72px;
    height: auto;
    aspect-ratio: 2 / 3;
  }

  body main .event-list.compact .event-card .event-card-overview-link {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  body main .event-list.compact .event-card .event-card-poster-aside,
  body main .event-list.compact .event-card .event-card-poster-aside .event-detail-poster {
    width: 62px;
    max-width: 62px;
    height: auto;
    aspect-ratio: 2 / 3;
  }
}

/* Nieuws page ------------------------------------------------------------ */

body main .news-result-count {
  margin: 12px 0 0;
  color: #4a545c;
}

body main .news-empty h3 {
  margin: 0 0 6px;
}

body main .news-list {
  display: grid;
  gap: 14px;
}

body main .news-article {
  background: #ffffff;
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  padding: 20px;
}

body main .news-article.news-article-latest {
  padding: 26px;
}

body main .news-article-title {
  margin: 0 0 4px;
  color: #111517;
  letter-spacing: -0.01em;
}

body main .news-article-latest .news-article-title {
  font-size: 1.9rem;
}

body main .news-article-date {
  margin: 0 0 14px;
  color: #6b7885;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body main .news-article-body {
  color: #4a545c;
  line-height: 1.7;
}

body main .news-article-body > :first-child {
  margin-top: 0;
}

body main .news-article-body > :last-child {
  margin-bottom: 0;
}

/* Info page - tabbed categories ------------------------------------------ */

body main .info-tabs-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  max-width: 1120px;
  margin: 22px auto 40px;
  padding-inline: clamp(16px, 4vw, 24px);
}

body main .info-tab-list {
  display: grid;
  gap: 4px;
  padding: 6px;
  background: #111517;
  border-radius: 2px;
  position: sticky;
  top: 16px;
}

body main .info-tab {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

body main .info-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFD500;
}

body main .info-tab.active {
  background: #FFD500;
  border-left-color: #111517;
  color: #111517;
}

body main .info-tab-panels {
  min-width: 0;
}

body main .info-tab-panel {
  display: none;
  background: #ffffff;
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  padding: 24px;
}

body main .info-tab-panel.active {
  display: block;
}

body main .info-tab-panel h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

body main .info-tab-panel .description {
  margin: 0;
  color: #4a545c;
  line-height: 1.7;
}

body main .info-tab-panel .description h3,
body main .info-tab-panel .description h4 {
  margin: 20px 0 6px;
  color: #111517;
}

@media (max-width: 900px) {
  body main .info-tabs-shell {
    grid-template-columns: 1fr;
  }

  body main .info-tab-list {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  body main .info-tab {
    border-left: 0;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  body main .info-tab.active {
    border-bottom-color: #111517;
  }
}

/* Project detail page ----------------------------------------------------- */

body main .content-grid.project-detail-page {
  gap: 16px;
  align-content: start;
}

body main .project-detail-page > .forum-message,
body main .project-detail-page > .panel,
body main .project-detail-page > article {
  grid-column: 1 / -1;
  min-width: 0;
}

body main .project-detail-page .project-message {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

body main .project-detail-page .project-base-report {
  display: block;
}

body main .project-state-report {
  background: #ffffff;
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  box-shadow: none;
}

body main .project-state-report-toggle > summary {
  background: #f7f8f9;
  border-bottom: 1px solid #e6e8ea;
  color: #111517;
}

body main .project-state-report-toggle > summary .eyebrow {
  color: #a17f00;
}

body main .project-state-report-toggle > summary h3 {
  margin: 0;
  color: #111517;
}

body main .project-state-report-toggle > summary span:last-child {
  color: #111517;
}

body main .project-state-report .notice {
  margin: 12px 16px 0;
}

body main .project-gallery-section {
  background: #ffffff;
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  box-shadow: none;
}

body main .project-gallery-section h3 {
  margin: 0 0 12px;
  color: #111517;
  font-size: 1.05rem;
}

body main .project-image-item {
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  background: #ffffff;
}

body main .project-image-item figcaption {
  color: #4a545c;
}
body main .forum-category-header::before,
body main .message-title-band::before {
  content: none;
}

body main .forum-quote {
  background: #f7f8f9;
  border-left: 3px solid #FFD500;
  border-radius: 2px;
}

/* Emoji reaction buttons - readable on light surfaces --------------------- */

body main .emoji-form .button,
body main .emoji-form button[type="submit"] {
  background: #ffffff !important;
  color: #111517 !important;
  border: 1px solid #d6dade !important;
  font-size: 15px;
  line-height: 1;
}

body main .emoji-form .button:hover,
body main .emoji-form button[type="submit"]:hover {
  background: #111517 !important;
  border-color: #111517 !important;
}

/* Emoji reactions panel - compact dark strip between content and comments --- */

body main .emoji-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #161a1d;
  border: 1px solid #2a3036;
  border-radius: 3px;
  padding: 8px 12px;
  margin: 10px 0;
}

body main .emoji-panel-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa4ac;
  flex: 0 0 auto;
}

body main .emoji-panel .emoji-row {
  margin: 0;
  gap: 8px;
}

body main .emoji-panel .emoji-form {
  gap: 6px;
}

body main .emoji-panel .emoji-form .button,
body main .emoji-panel .emoji-form button[type="submit"] {
  background: #22282d !important;
  color: #f4f6f7 !important;
  border: 1px solid #3a424a !important;
  font-size: 14px;
  line-height: 1;
  padding: 5px 7px;
  min-height: 0;
}

body main .emoji-panel .emoji-form .button:hover,
body main .emoji-panel .emoji-form button[type="submit"]:hover {
  background: #FFD500 !important;
  border-color: #FFD500 !important;
  color: #111517 !important;
}

body main .emoji-panel .emoji-button .emoji-count {
  font-size: 10px;
  font-weight: 800;
  color: #9aa4ac;
  margin-left: 4px;
}

body main .emoji-panel .emoji-button.is-active,
body main .emoji-panel .emoji-form button.is-active {
  background: #FFD500 !important;
  border-color: #FFD500 !important;
  color: #111517 !important;
}

body main .emoji-panel .emoji-button.is-active .emoji-count {
  color: #111517;
}

body main .emoji-panel .emoji-button[disabled] {
  cursor: default;
}



body main .emoji-panel > .button.dark {
  margin-left: auto;
}

/* Primary-contribution panels must span the whole content grid ------------- */

body main .content-grid > .emoji-panel,
body main .events-main > .emoji-panel,
body main .forum-main > .emoji-panel,
body main .projects-layout > .emoji-panel,
body main .wide-section > .emoji-panel {
  grid-column: 1 / -1;
}

/* Expandable emoji picker --------------------------------------------------- */

body main .emoji-panel .emoji-expand {
  display: contents;
}

body main .emoji-panel .emoji-expand > summary.emoji-expand-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  cursor: pointer;
  background: #22282d;
  color: #f4f6f7;
  border: 1px solid #3a424a;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 9px;
  min-height: 0;
  user-select: none;
}

body main .emoji-panel .emoji-expand > summary.emoji-expand-toggle::-webkit-details-marker {
  display: none;
}

body main .emoji-panel .emoji-expand > summary.emoji-expand-toggle:hover {
  background: #FFD500;
  border-color: #FFD500;
  color: #111517;
}

body main .emoji-panel .emoji-expand .emoji-expand-list {
  display: none;
}

body main .emoji-panel .emoji-expand[open] .emoji-expand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 0 100%;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #2a3036;
}

body main .emoji-panel .emoji-expand[open] > summary.emoji-expand-toggle {
  background: #3a424a;
  border-color: #4a545e;
}

body main .message-author .message-tool-link,
body main .message-author .report-details summary,
body main .message-author .content-report summary {
  background: #ffffff;
  border: 1px solid #d6dade;
  border-radius: 2px;
  box-shadow: none;
  color: #111517;
}

body main .message-author .message-tool-link:hover,
body main .message-author .report-details summary:hover,
body main .message-author .content-report summary:hover {
  background: #111517;
  border-color: #111517;
  color: #ffffff;
}

@media (max-width: 900px) {
  body main .project-detail-page .project-message {
    grid-template-columns: 1fr;
  }
}

/* Links page ------------------------------------------------------------ */

body main .links-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

body main .links-page .panel.full {
  grid-column: 1 / -1;
}

body main .links-page .list {
  display: grid;
  gap: 12px;
}

body main .links-page .list-item.useful-link-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-items: baseline;
  align-content: start;
  min-height: 0;
  padding: 10px 44px 10px 16px;
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: none;
}

body main .links-page .useful-link-card .description,
body main .links-page .useful-link-card .actions-inline {
  grid-column: 1 / -1;
}

body main .links-page .list-item.useful-link-card:hover,
body main .links-page .list-item.useful-link-card:focus-within {
  background: #fffbed;
  border-color: #e6e8ea;
  box-shadow: 0 4px 14px rgba(17, 21, 23, 0.08);
  transform: none;
}

body main .links-page .useful-link-card .tag {
  justify-self: start;
  min-height: 0;
  padding: 3px 8px;
  border-radius: 2px;
  background: #FFD500;
  color: #111517;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body main .links-page .useful-link-card h3 a {
  color: #111517;
  text-decoration: none;
}

body main .links-page .useful-link-card:hover h3 a,
body main .links-page .useful-link-card:focus-within h3 a {
  text-decoration: underline;
}

body main .links-page .useful-link-card h3 {
  margin: 0;
}

body main .links-page .useful-link-card .description {
  color: #4a545c;
  font-size: 0.95rem;
  line-height: 1.45;
}

body main .links-page .useful-link-card .description p {
  margin: 0 0 4px;
}

body main .links-page .useful-link-card .description p:last-child {
  margin-bottom: 0;
}

body main .links-page .useful-link-card .actions-inline {
  margin-top: 4px;
}

/* -----------------------------------------------------------------------
   Ledenlijst
----------------------------------------------------------------------- */
body main .members-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

body main .members-page > .panel {
  grid-column: 1 / -1;
}

body main .members-page .list {
  display: grid;
  gap: 16px;
}

body main .members-page .profile-list-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 0;
  padding: 12px 52px 12px 16px;
  border: 1px solid #e6e8ea;
  border-left: 4px solid #0072f0;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

body main .members-page .profile-list-item::after {
  content: "";
  width: 18px;
  height: 18px;
  right: 16px;
  background: #6b7885;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='m13 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='m13 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: background 0.15s ease;
}

body main .members-page .profile-list-item:hover,
body main .members-page .profile-list-item:focus-within {
  background: #fffbed;
  border-color: #0072f0;
  border-left-color: #FFD500;
  box-shadow: 0 6px 20px rgba(17, 21, 23, 0.08);
  transform: translateY(-2px);
}

body main .members-page .profile-list-item:hover::after,
body main .members-page .profile-list-item:focus-within::after {
  background: #111517;
}

body main .members-page .profile-list-item:hover h3 {
  color: #111517;
  text-decoration: underline;
}

body main .members-page .profile-list-item h3 {
  margin: 0 0 3px;
  font-size: 1rem;
  font-weight: 700;
  color: #111517;
}

body main .members-page .profile-list-item .meta {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7885;
}

body main .members-page .profile-avatar.small {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
}

/* -----------------------------------------------------------------------
   Profielpagina
----------------------------------------------------------------------- */
body main .profile-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

body main .profile-page > .panel,
body main .profile-page > .profile-card {
  grid-column: 1 / -1;
  min-width: 0;
}

body main .profile-card {
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: none;
}

body main .profile-cover {
  background: #111517;
  border: 0;
  border-bottom: 3px solid #FFD500;
  border-radius: 0;
  padding: 24px;
}

body main .profile-cover h2 {
  color: #ffffff;
}

body main .profile-cover-meta span {
  border-radius: 2px;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

body main .profile-card .profile-avatar {
  border-radius: 2px;
  border: 3px solid #FFD500;
  background: #1d2226;
}

body main .profile-body {
  gap: 14px;
  padding: 20px;
}

body main .profile-body section {
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  background: #ffffff;
  padding: 16px;
}

body main .profile-body h3 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111517;
}

body main .profile-fields dt {
  color: #6b7885;
  font-weight: 600;
}

body main .profile-fields dd {
  color: #111517;
}

body main .profile-fields a {
  color: #111517;
}

body main .profile-about-text {
  color: #4a545c;
}

body main .profile-report {
  border-top: 1px solid #e6e8ea;
  padding: 16px 20px;
}

body main .dashboard-card {
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  background: #ffffff;
}

body main .dashboard-card strong {
  color: #111517;
}

body main .dashboard-card span {
  color: #6b7885;
  font-weight: 600;
}

body main .dashboard-card.stat-group {
  gap: 6px;
  align-content: start;
}

body main .stat-group-title {
  color: #111517;
  font-weight: 800;
  font-size: 0.95rem;
  padding-bottom: 6px;
  border-bottom: 1px solid #e6e8ea;
}

body main .stat-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

body main a.stat-row {
  color: inherit;
  text-decoration: none;
  margin: 0 -6px;
  padding: 2px 6px;
  border-radius: 2px;
}

body main a.stat-row:hover,
body main a.stat-row:focus-visible {
  background: #fff7cc;
  text-decoration: none;
}

body main a.stat-row:hover strong,
body main a.stat-row:hover span {
  color: #111517;
}

body main .stat-row strong {
  font-size: 1.2rem;
  min-width: 1.6em;
}

body main .stat-row span {
  overflow-wrap: anywhere;
}

body main .activity-grid section {
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  background: #fafafa;
  padding: 16px;
}

body main .activity-grid h3 {
  color: #111517;
  font-size: 0.95rem;
}

body main .mini-list a {
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  background: #ffffff;
  padding: 10px;
}

body main .mini-list a:hover,
body main .mini-list a:focus {
  background: #fffbed;
  border-color: #FFD500;
  color: #111517;
}

body main .mini-list a strong,
body main .mini-list-static strong {
  color: #111517;
}

body main .mini-list span,
body main .mini-list-static span {
  color: #6b7885;
}

body main .mini-list-static {
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  background: #ffffff;
}

/* Content modals (create/edit overlays) ----------------------------------- */

body main .content-modal {
  background: rgba(17, 21, 23, 0.72);
}

body main .content-modal-panel {
  background: #ffffff;
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

body main .content-modal-panel,
body main .content-modal-panel label,
body main .content-modal-panel legend,
body main .content-modal-panel .field,
body main .content-modal-panel .field-help,
body main .content-modal-panel .description {
  color: #111517;
}

body main .content-modal-panel .eyebrow {
  color: #a17f00;
}

body main .content-modal-panel input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body main .content-modal-panel select,
body main .content-modal-panel textarea {
  color: #111517;
  background: #ffffff;
  border: 1px solid #d6dade;
  border-radius: 0;
}

body main .content-modal-panel input:focus,
body main .content-modal-panel select:focus,
body main .content-modal-panel textarea:focus {
  border-color: #d3b000;
  box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.22);
}

body main .content-modal-panel input::placeholder,
body main .content-modal-panel textarea::placeholder {
  color: #6b7885;
}

body main .content-modal-panel .subscription-switch-form {
  border-color: #e6e8ea;
  background: #f7f8f9;
}

body main .content-modal-panel .subscription-switch {
  background: #f7f8f9;
}

body main .content-modal-panel .subscription-switch-label {
  color: #111517;
}

body main .content-modal-panel .button.ghost {
  color: #111517;
  border-color: rgba(0, 0, 0, 0.2);
  background: transparent;
}

body main .content-modal-panel .button.ghost:hover,
body main .content-modal-panel .button.ghost:focus-visible {
  background: #111517;
  color: #ffffff;
}

body main .content-modal-close {
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  background: #ffffff;
  color: #111517;
}

/* Open compose/edit overlays (details acting as modals) -------------------- */

body main .details-modal-backdrop {
  background: rgba(17, 21, 23, 0.66);
}

body main .forum-comment-compose[open],
body main .forum-topic-compose[open],
body main .project-comment-compose[open],
body main .event-comment-compose[open],
body main .event-create-compose[open],
body main .project-update-compose[open],
body main .project-create-compose[open],
body main .content-edit-panel[open] {
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

body main .forum-comment-compose[open] > summary,
body main .forum-topic-compose[open] > summary,
body main .project-comment-compose[open] > summary,
body main .event-comment-compose[open] > summary,
body main .event-create-compose[open] > summary,
body main .project-update-compose[open] > summary,
body main .project-create-compose[open] > summary,
body main .content-edit-panel[open] > summary {
  background: #f7f8f9;
  color: #111517;
  border-top: 3px solid #FFD500;
  border-bottom: 1px solid #e6e8ea;
}

body main .compact-print-panel[open] summary {
  border-bottom: 1px solid #e6e8ea;
}

body main .project-print-options label {
  border: 1px solid #d6dade;
  border-radius: 2px;
  background: #ffffff;
  color: #111517;
  font-weight: 600;
}

body main .event-form-group {
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  background: #ffffff;
}

body main .event-form-group legend {
  color: #a17f00;
}

body main .emoji-picker {
  border-color: #e6e8ea;
  border-radius: 2px;
}

body main .emoji-choice {
  border-color: #d6dade;
  border-radius: 2px;
  background: #ffffff;
}

body main .selected-file {
  border-color: #e6e8ea;
  border-radius: 2px;
  background: #f7f8f9;
  color: #111517;
}

/* -----------------------------------------------------------------------
   Mobile layout repairs
   - styles.css reserves 58px of top padding on <main> for a fixed header;
     this header is sticky/in-flow, so that gap must go.
   - Login/register buttons inside the opened dark mobile menu.
----------------------------------------------------------------------- */
@media (max-width: 1180px) {
  main {
    padding-top: 0;
  }
}

.site-nav .mobile-auth-links {
  width: 100%;
}

.site-nav .mobile-auth-links .button {
  width: 100%;
  justify-content: center;
}

.site-nav .mobile-auth-links .button.ghost,
.site-nav .mobile-auth-links .button.ghost.dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.site-nav .mobile-auth-links .button.ghost:hover,
.site-nav .mobile-auth-links .button.ghost:focus-visible {
  background: transparent;
  border-color: #FFD500;
  color: #FFD500;
}

.site-nav .mobile-auth-links .button:not(.ghost) {
  background: #FFD500;
  border-color: #FFD500;
  color: #111517;
}

.site-nav .mobile-auth-links .button:not(.ghost):hover {
  background: #ffdb33;
  border-color: #ffdb33;
  color: #111517;
}

/* -----------------------------------------------------------------------
   Mobile layout repairs
   - Collapse fixed-column grids that never got a mobile fallback
     (content-grid half/third panels, contact shell, info tabs).
   - Hero/page banner: drop the image, keep a dark band + the
     yellow/white/black ribbon (.mobile-diagonal).
----------------------------------------------------------------------- */
@media (max-width: 980px) {
  body main .content-grid {
    grid-template-columns: 1fr;
  }

  /* The dedicated 2-column rule above has higher specificity than the
     generic .content-grid collapse, so it needs its own override. */
  body main .content-grid.home-summary-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-summary-modules .grid-config-edit {
    top: -6px;
    right: 8px;
  }

  body main .content-grid > .panel,
  body main .content-grid > .panel.half,
  body main .content-grid > .panel.third {
    grid-column: 1 / -1;
  }

  /* Everything uses the full viewport width on small screens. The outer
     --mood-page-gutter (16-32px per side) is dropped; a small inner gutter
     on the shells keeps text off the very edge. */
  :root {
    --mood-page-gutter: 0px;
  }

  body main .content-grid,
  body main .events-layout,
  body main .projects-layout,
  body main .forum-layout,
  body main .wide-section,
  body main .info-tabs-shell,
  body main .contact-page-shell,
  body main .flash-section,
  body main .breadcrumbs,
  body main .pagination,
  .three-cards,
  .home-feature {
    width: 100%;
    max-width: 100%;
    padding-inline: 12px;
  }

  body .site-header .site-header-inner {
    padding-inline: 12px;
  }

  .hero-copy h1,
  .hero-copy p {
    max-width: 100%;
  }

  body main .contact-page-shell {
    grid-template-columns: 1fr;
  }

  body main .contact-page-shell .contact-info-panel,
  body main .contact-page-shell .contact-form-panel {
    grid-column: 1 / -1;
  }

  /* Info page: fixed 260px sidebar squeezed the content to a few pixels. */
  body main .info-tabs-shell {
    grid-template-columns: 1fr;
  }

  /* Scrollable tab row: right-edge fade + visible scrollbar hint that
     more categories are available. */
  body main .info-tab-list {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 6px 6px 10px;
    -webkit-mask-image: linear-gradient(90deg, #000 80%, rgba(0, 0, 0, 0.15));
    mask-image: linear-gradient(90deg, #000 80%, rgba(0, 0, 0, 0.15));
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
  }

  body main .info-tab-list::-webkit-scrollbar {
    height: 4px;
  }

  body main .info-tab-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
  }

  body main .info-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  /* Banner: no photo on mobile - dark band keeps the title/buttons and the
     yellow/white/black ribbon replaces the diagonal stripe. */
  .hero {
    height: auto;
    min-height: 0;
    background-image: none;
  }

  .hero-image-wrap,
  .hero-diagonal {
    display: none;
  }

  .hero-copy {
    clip-path: none;
    grid-column: 1 / -1;
    background: #111517;
  }

  .hero-action-panel {
    position: static;
    left: auto;
    right: auto;
    width: 100%;
    padding: 0 clamp(16px, 4vw, 24px) 24px;
    justify-content: flex-start;
    background: transparent;
  }
}

@media (max-width: 640px) {
  body main .contact-form-panel .form-grid,
  body main .project-aspect-read-grid,
  body main .project-change-grid,
  body main .event-info-grid,
  body main .content-grid.home-summary-modules {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 28px 18px;
  }

  /* Trim stacked section spacing on small screens. */
  .three-cards {
    padding: 24px 12px 32px;
  }

  .home-feature {
    padding: 0 12px 28px;
  }

  body main .info-tabs-shell {
    margin: 14px auto 28px;
  }

  main > *:last-child {
    margin-bottom: 24px;
  }
}

/* Notifications / contact conversations page ------------------------------ */

body main .notification-inbox-item .admin-inbox-kind,
body main .contact-thread-item .admin-inbox-kind {
  min-width: 0;
}

body main .notification-inbox-item .admin-inbox-summary-main,
body main .contact-thread-item .admin-inbox-summary-main {
  flex-wrap: wrap;
  row-gap: 4px;
}

@media (max-width: 640px) {
  body main .notification-inbox-item summary,
  body main .contact-thread-item summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  body main .notification-inbox-item .admin-inbox-summary-meta,
  body main .contact-thread-item .admin-inbox-summary-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  body main .contact-thread-reply-form textarea {
    min-height: 110px;
  }
}

/* Forum revamp -------------------------------------------------------------
   Dark/light Renault 5 treatment: dark sidebar nav + category headers,
   flat chevron rows, sharp borders, yellow accents. */

/* Sidebar category navigation — dark tiles echoing the site header. */
body main .forum-sidebar .side-nav {
  gap: 6px;
}

body main .forum-layout .side-nav a:not(.button) {
  padding: 11px 14px;
  background: #111517;
  color: #ffffff;
  border: 1px solid #111517;
  border-left: 3px solid #111517;
  border-radius: 2px;
  box-shadow: none;
  text-decoration: none;
  font-weight: 600;
}

body main .forum-layout .side-nav a:not(.button):hover,
body main .forum-layout .side-nav a:not(.button):focus-visible {
  border-color: #FFD500;
  color: #FFD500;
  box-shadow: none;
}

body main .forum-layout .side-nav a.active:not(.button) {
  background: #1a2024;
  border-left-color: #FFD500;
  color: #FFD500;
}

body main .forum-sidebar .panel > h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

/* Category header bands — dark like header/footer with yellow underline. */
body main .forum-category-group {
  background: #ffffff;
  border: 1px solid var(--mood-line, #e6e8ea);
  border-radius: 2px;
}

body main .forum-category-header {
  background: #111517;
  color: #ffffff;
  border-bottom: 3px solid #FFD500;
  padding: 16px 18px;
}

body main .forum-category-header .eyebrow {
  color: #FFD500;
}

body main .forum-category-header h3 {
  color: #ffffff;
  margin: 0 0 4px;
}

body main .forum-category-header .description {
  color: #aab3ba;
}

body main .forum-layout .forum-category-header a:not(.button) {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.85rem;
  text-decoration: none;
}

body main .forum-layout .forum-category-header a:not(.button):hover,
body main .forum-layout .forum-category-header a:not(.button):focus-visible {
  background: #FFD500;
  border-color: #FFD500;
  color: #111517;
}

/* Board + topic + activity rows — flat rows with chevron, yellow hover. */
body main .forum-board-list,
body main .topic-card-list,
body main .recent-activity-list {
  gap: 0;
}

body main .forum-layout a.forum-row:not(.button),
body main .forum-layout a.list-item:not(.button) {
  position: relative;
  display: block;
  padding: 14px 42px 14px 10px;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--mood-line, #e6e8ea);
  border-left: 3px solid transparent;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
}

body main .forum-board-list a.forum-row:last-child,
body main .topic-card-list a.list-item:last-child,
body main .recent-activity-list a.list-item:last-child {
  border-bottom: 0;
}

body main .forum-row::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #64717b;
  font-weight: 900;
}

body main .forum-layout a.forum-row:not(.button):hover,
body main .forum-layout a.forum-row:not(.button):focus-within,
body main .forum-layout a.list-item:not(.button):hover,
body main .forum-layout a.list-item:not(.button):focus-within {
  background: #fffbed;
  border-color: var(--mood-line, #e6e8ea);
  border-left-color: #FFD500;
  box-shadow: none;
  transform: none;
}

body main .forum-layout a.forum-row:hover::after {
  color: #111517;
}

body main .forum-row h3,
body main .forum-main .list-item h3,
body main .forum-sidebar .list-item h3 {
  color: #111517;
  margin: 0 0 3px;
  font-size: 1rem;
}

body main .forum-row .description,
body main .forum-row .meta,
body main .forum-main .list-item .meta,
body main .forum-main .list-item .description,
body main .forum-sidebar .list-item .meta,
body main .forum-sidebar .list-item .description {
  color: #64717b;
  font-size: 0.88rem;
  margin: 2px 0 0;
}

/* Forum stats cards. */
body main .forum-footer-card {
  background: #f7f8f9;
  border: 1px solid var(--mood-line, #e6e8ea);
  border-radius: 2px;
}

body main .forum-footer-card strong {
  color: #111517;
}

body main .forum-footer-card span {
  color: #64717b;
  font-weight: 600;
}

/* Compose panels ("Nieuw topic" / "Reactie plaatsen"). */
body main .forum-topic-compose,
body main .forum-comment-compose {
  border: 1px solid var(--mood-line, #e6e8ea);
  border-radius: 2px;
}

body main .forum-topic-compose > summary,
body main .forum-comment-compose > summary {
  border-left: 1px solid var(--mood-line, #e6e8ea);
  border-right: 1px solid var(--mood-line, #e6e8ea);
  box-shadow: none;
}

body main .forum-topic-compose > summary span:first-child,
body main .forum-comment-compose > summary span:first-child {
  color: #111517;
  font-weight: 600;
  letter-spacing: 0;
}

/* Topic + reply messages. */
body main .forum-message.topic-post{
  border: 1px solid var(--mood-line, #e6e8ea);
  box-shadow: none;
}

body main .board-topic-panel .section-heading {
  border-bottom-color: var(--mood-line, #e6e8ea);
}

/* Quotes, editor, images. */
body main .forum-quote {
  padding: 14px 16px;
  border: 0;
  border-left: 3px solid #FFD500;
  box-shadow: none;
}

body main .forum-quote::before {
  content: none;
}

body main .editor-toolbar,
body main .emoji-picker {
  background: #f7f8f9;
  border: 1px solid var(--mood-line, #e6e8ea);
  border-radius: 2px;
}

body main .emoji-picker {
  background: #ffffff;
}

body main .emoji-choice {
  border: 1px solid var(--mood-line, #e6e8ea);
  border-radius: 2px;
  background: #ffffff;
}

body main .color-swatch,
body main .forum-image-thumb,
body main .forum-embedded-image {
  border-radius: 2px;
}

body main .forum-embedded-image {
  border-color: var(--mood-line, #e6e8ea);
}

/* Tags, lock pill, report control. */
body main .tag{
  background: #f1f3f5;
  border: 1px solid var(--mood-line, #e6e8ea);
  border-radius: 2px;
  color: #111517;
  font-size: 0.78rem;
}

body main .lock-tag {
  background: #fff7d6;
  border-color: #f0d878;
  color: #6b5400;
}

body main .message-content .report-details {
  margin-top: 18px;
  border-top-color: var(--mood-line, #e6e8ea);
}

body main .message-content .report-details summary {
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Forum mobile layout. */
@media (max-width: 980px) {
  /* Content first, sidebar navigation below it. */
  body main .forum-main {
    order: -1;
  }

  /* Author card becomes a compact header row: avatar left, identity right. */
  body main .forum-message .message-author .message-avatar,
  body main .forum-message .message-author .message-author-avatar-link {
    grid-row: span 3;
    align-self: start;
  }

  body main .forum-message .message-author .tag,
  body main .forum-message .message-author .message-tool-link,
  body main .forum-message .message-author .quote-reply,
  body main .forum-message .message-author .report-details {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body main .forum-message .message-author {
    padding: 12px 14px;
    border-bottom-color: var(--mood-line, #e6e8ea);
    gap: 4px 10px;
  }

  body main .forum-message .message-avatar {
    width: 52px;
  }

  body main .forum-message .message-content {
    padding: 16px 14px;
  }

  body main .forum-message .message-title-band {
    margin: -16px -14px 14px;
    padding: 14px;
  }

  body main .forum-category-header {
    padding: 14px;
  }

  body main .forum-layout a.forum-row:not(.button),
  body main .forum-layout a.list-item:not(.button) {
    padding: 12px 36px 12px 8px;
  }

  body main .forum-row::after {
    right: 12px;
  }

  body main .forum-comment-compose .forum-textarea,
  body main .forum-topic-compose .forum-textarea {
    min-height: 140px;
  }

  body main .forum-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   Fotoalbum / Marktplaats / Kennis sections
   ============================================================ */

body main .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

body main .photo-grid a.photo-card:not(.button),
body main a.photo-card {
  display: flex;
  flex-direction: column;
  background: #f7f8f9;
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body main a.photo-card:hover,
body main a.photo-card:focus-visible {
  border-color: #FFD500;
  box-shadow: 0 4px 14px rgba(17, 21, 23, 0.08);
  text-decoration: none;
}

body main .photo-card-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111517;
}

body main .photo-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

body main a.photo-card:hover .photo-card-thumb img {
  transform: scale(1.03);
}

body main .photo-card-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body main .photo-card-body strong {
  font-size: 0.9rem;
  line-height: 1.3;
}

body main .photo-card-body small {
  color: #66707a;
  font-size: 0.75rem;
}

/* Event photo albums */

body main .photo-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

body main .photo-album-item {
  margin: 0;
}

body main .photo-album-item .project-image-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: none;
  background: #111517;
  cursor: zoom-in;
}

body main .photo-album-item .project-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body main .photo-album-item figcaption {
  font-size: 0.75rem;
  color: #66707a;
  padding: 4px 2px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

body main .photo-album-item figcaption a {
  color: inherit;
}

body main .event-album-tile .photo-album-grid {
  grid-template-columns: repeat(3, 1fr);
}

body main .event-album-tile .photo-album-item figcaption {
  display: none;
}

body main .event-album-tile .button.full-width {
  margin-top: 12px;
}

/* Photo detail */

body main .photo-detail-panel {
  overflow: hidden;
}

body main .photo-detail-figure {
  margin: 0;
  background: #111517;
  display: flex;
  justify-content: center;
}

body main .photo-detail-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
}

body main .photo-detail-view .events-main,
body main .knowledge-detail-view .events-main,
body main .photo-detail-view .events-sidebar,
body main .knowledge-detail-view .events-sidebar {
  min-width: 0;
}

body main .photo-detail-meta {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body main .compact-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #66707a;
  font-size: 0.9rem;
}

body main .photo-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body main .photo-tag-row a.tag {
  text-decoration: none;
}

/* Marktplaats */

body main .classified-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

body main .classified-grid a.classified-card:not(.button),
body main a.classified-card {
  display: flex;
  flex-direction: column;
  background: #f7f8f9;
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body main a.classified-card:hover,
body main a.classified-card:focus-visible {
  border-color: #FFD500;
  box-shadow: 0 4px 14px rgba(17, 21, 23, 0.08);
  text-decoration: none;
}

body main a.classified-card.is-sold .classified-card-thumb img {
  filter: grayscale(0.4);
  opacity: 0.75;
}

body main .classified-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111517;
}

body main .classified-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body main .classified-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

body main .classified-card-price {
  position: absolute;
  left: 0;
  bottom: 0;
  background: #FFD500;
  color: #111517;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
}

body main .classified-card-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body main .classified-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

body main .classified-card-body strong {
  font-size: 0.95rem;
  line-height: 1.3;
}

body main .classified-card-body small {
  color: #66707a;
  font-size: 0.75rem;
}

body main .classified-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr);
  gap: 18px;
  margin: 14px 0;
}

body main .classified-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  align-content: start;
}

body main .classified-facts {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f7f8f9;
  border: 1px solid #e6e8ea;
  border-radius: 2px;
  padding: 14px;
}

body main .classified-facts dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #66707a;
}

body main .classified-facts dd {
  margin: 2px 0 0;
  font-weight: 600;
}

body main .tag.tag-warning {
  background: #fff3cd;
  color: #7a5c00;
}

/* Kennis & Documentatie */

body main .knowledge-list {
  display: flex;
  flex-direction: column;
}

body main .knowledge-list a.knowledge-card:not(.button),
body main a.knowledge-card {
  display: flex;
  gap: 14px;
  padding: 14px 8px;
  border-bottom: 1px solid #e6e8ea;
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: background 0.15s ease;
}

body main a.knowledge-card:hover,
body main a.knowledge-card:focus-visible {
  background: #fffbed;
  text-decoration: none;
}

body main .knowledge-card-kind {
  flex: 0 0 auto;
  align-self: flex-start;
  background: #111517;
  color: #FFD500;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  min-width: 84px;
  text-align: center;
}

body main .knowledge-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

body main .knowledge-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

body main .knowledge-card-body strong {
  font-size: 1rem;
  line-height: 1.3;
}

body main .knowledge-card-body small {
  color: #66707a;
  font-size: 0.8rem;
}

body main .knowledge-cover {
  margin: 0 0 14px;
}

body main .knowledge-cover img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 2px;
}

body main .knowledge-download-box {
  margin-top: 16px;
  padding: 14px;
  background: #f7f8f9;
  border: 1px solid #e6e8ea;
  border-left: 4px solid #FFD500;
  border-radius: 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 960px) {
  body main .classified-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body main .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  body main .classified-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }

  body main .knowledge-card-kind {
    min-width: 0;
  }

  body main .photo-detail-figure img {
    max-height: 55vh;
  }
}

/* ===== Inline beheer (beheerweergave) ===== */

.admin-bar-toggle-form {
  margin: 0;
}

button.admin-bar-toggle {
  font: inherit;
  cursor: pointer;
}

.admin-bar-toggle .admin-bar-count {
  background: var(--theme-strong);
  color: var(--yellow);
  text-transform: uppercase;
}

.admin-bar-toggle .admin-bar-count.muted {
  background: rgba(0, 0, 51, 0.16);
  color: var(--theme-strong);
}

.site-text-editable {
  position: relative;
}

span.site-text-editable {
  display: inline;
}

.site-text-edit-link {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 30;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(0, 0, 51, 0.3);
  border-radius: 4px;
  background: #FFD500;
  color: #111517;
  text-decoration: none;
}

.site-text-edit-link svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.site-text-edit-link:hover,
.site-text-edit-link:focus-visible {
  background: #111517;
  color: #FFD500;
}

.site-text-edit-link.inline {
  top: -10px;
  right: -10px;
  width: 18px;
  height: 18px;
}

.site-text-edit-link.inline svg {
  width: 10px;
  height: 10px;
}

/* Pencil hover: see-through overlay on the element that will be edited ------ */

body .site-text-editable:has(> .site-text-edit-link:hover)::after,
body .hero-copy-inner:has(> .hero-edit-link:hover)::after,
body .home-card-wrap:has(> .home-card-image-edit:hover) .card-media::after,
body .home-feature:has(> .home-feature-image-edit:hover) .home-feature-image::after,
body .home-summary-modules:has(> .grid-config-edit:hover)::after,
body .hero:has(.hero-image-edit:hover)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 213, 0, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 213, 0, 0.95);
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;
}

/* Logo edit pencils (header + footer) ------------------------------------------ */
.brand-wrap, .footer-brand-wrap { position: relative; display: inline-flex; align-items: center; }
.brand-wrap .logo-edit, .footer-brand-wrap .logo-edit { top: -10px; right: -10px; cursor: pointer; }
body .brand-wrap:has(> .logo-edit:hover) .brand-logo-img,
body .footer-brand-wrap:has(> .logo-edit:hover) .footer-logo-img {
  outline: 2px solid rgba(255, 213, 0, 0.95);
  outline-offset: 2px;
}

.hero-copy-inner {
  position: relative;
}

.site-text-edit-link.hero-edit-link {
  top: 0;
  right: 0;
}

.social-links .site-text-edit-link {
  top: -9px;
  right: -9px;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  font-size: 0;
}

.social-links .site-text-edit-link svg {
  width: 10px;
  height: 10px;
}

.site-text-edit-modal .content-modal-panel {
  gap: 12px;
}

.site-text-edit-form {
  display: grid;
  gap: 10px;
  color: #111517;
  font-size: 0.92rem;
}

.site-text-edit-form .eyebrow {
  margin: 0;
}

.site-text-edit-form .field {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-text-edit-form .field input,
.site-text-edit-form .field textarea,
.site-text-edit-form .field select {
  padding: 8px 10px;
  border: 1px solid #d6d9dc;
  border-radius: 3px;
  background: #ffffff;
  color: #111517;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
}

.site-text-edit-form .field.checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.site-text-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.is-hidden-admin {
  opacity: 0.55;
  outline: 2px dashed rgba(17, 21, 23, 0.35);
  outline-offset: 3px;
}

.content-admin-actions {
  margin-top: 12px;
}

.info-tab-add {
  font-weight: 800;
  color: #b8860b;
}

/* Page-banner customisation (runtime admin) ----------------------------------- */
body main .hero.has-custom-image {
  background-image: var(--hero-image) !important;
  background-position: var(--hero-pos) !important;
}
body main .hero .hero-image-edit {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 60;
  cursor: pointer;
}
.hero-pos-preview {
  width: 100%;
  height: 200px;
  margin: 6px 0;
  border: 1px solid #d6dade;
  border-radius: 2px;
  background-color: #111517;
  background-repeat: no-repeat;
  background-size: cover;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.hero-pos-preview:active {
  cursor: grabbing;
}
/* ==== Private chat ==== */
.topbar-icon-chat {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2Z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2Z'/></svg>") center / contain no-repeat;
}
.chat-header-button { position: relative; }
.notification-badge[hidden], .chat-dock-badge[hidden] { display: none; }
.chat-dock-panel[hidden], .chat-search-results[hidden], .chat-new-search[hidden], .chat-thread-view[hidden], .chat-empty-state[hidden], .chat-modal[hidden], [data-chat-invite][hidden], [data-chat-leave][hidden], [data-chat-block][hidden], [data-chat-back][hidden] { display: none; }

.chat-dock {
  position: fixed;
  right: 16px;
  bottom: 0;
  z-index: 900;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  font-size: 14px;
}
.chat-dock-bar { width: 264px; display: flex; flex-direction: column; }
.chat-dock-panel { order: -2; }
.chat-dock-ribbon { order: -1; height: 6px; background: linear-gradient(90deg, #FFD500 0, #FFD500 54%, #ffffff 54%, #ffffff 62%, #111517 62%); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.chat-dock-arrow { margin-left: auto; font-size: 10px; transition: transform .15s ease; }
#chat-dock.is-open .chat-dock-arrow { transform: rotate(180deg); }
.chat-dock-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #262c31;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: #111517;
  color: #f5f6f7;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.chat-dock-panel {
  border: 1px solid #262c31;
  border-bottom: 0;
  background: #fff;
  height: 420px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -6px 24px rgba(17, 21, 23, .16);
}
.chat-dock-panel-head { padding: 8px; border-bottom: 1px solid #e6e8ea; display: flex; align-items: center; gap: 6px; }
.chat-dock-panel-head input { flex: 1; min-width: 0; padding: 6px 10px; border: 1px solid #d4d7da; border-radius: 6px; font: inherit; }
.chat-dock-panel-head .chat-icon-button { flex: 0 0 auto; }
.chat-dock-badge {
  background: #d61f26;
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.chat-conversation-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.chat-list-loading { padding: 14px; margin: 0; }
.chat-conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #f0f1f2;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.chat-conv-item:hover { background: #f6f7f8; }
.chat-conv-item.has-unread strong { font-weight: 800; }
.chat-conv-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111517;
  color: #ffd500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 auto;
  border: 2px solid transparent;
}
.chat-conv-avatar.is-online { border-color: #2ea44f; }
.chat-conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-conv-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-conv-main small { color: #6b7280; }
.chat-conv-preview { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-conv-nopreview { color: #9ca3af; font-style: italic; }
.chat-invite-tag { color: #b45309; font-weight: 600; }

.chat-popouts, .chat-dock-popouts { display: flex; align-items: flex-end; gap: 8px; }
.chat-popout {
  width: 300px;
  height: 380px;
  display: flex;
  flex-direction: column;
  border: 1px solid #262c31;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 -6px 24px rgba(17, 21, 23, .16);
}
.chat-popout.is-min { height: auto; }
.chat-popout.is-min .chat-messages, .chat-popout.is-min .chat-compose { display: none; }
.chat-popout-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #111517;
  color: #f5f6f7;
  cursor: default;
  user-select: none;
}
.chat-popout-title { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-popout-min, .chat-popout-close, .chat-popout-block {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  padding: 0 4px;
}
.chat-popout-block { font-size: 13px; }
.chat-popout.is-blocked .chat-popout-block { color: #ffb3b6; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f6f7f8;
}
.chat-msg { display: flex; flex-direction: column; max-width: 82%; align-self: flex-start; }
.chat-msg.mine { align-self: flex-end; text-align: right; }
.chat-msg-sender { font-size: 11px; font-weight: 700; color: #4b5563; margin: 0 4px 2px; }
.chat-msg-body {
  position: relative;
  background: #fff;
  border: 1px solid #e6e8ea;
  border-radius: 12px;
  padding: 7px 11px;
  word-wrap: break-word;
  text-align: left;
}
.chat-msg.mine .chat-msg-body { background: #111517; border-color: #111517; color: #f5f6f7; }
.chat-msg-time { font-size: 10px; color: #9ca3af; margin: 2px 6px 0; }
.chat-msg-unavailable { color: #9ca3af; }
.chat-msg-report {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #d61f26;
  background: #fff;
  color: #d61f26;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: none;
}
.chat-msg-body:hover .chat-msg-report { display: block; }
.chat-compose { display: flex; gap: 6px; padding: 8px; border-top: 1px solid #e6e8ea; background: #fff; }
.chat-compose input { flex: 1; border: 1px solid #d4d7da; border-radius: 16px; padding: 6px 12px; font: inherit; }
.chat-popout .chat-compose button {
  border: 0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: #ffd500;
  color: #111517;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}

/* full page */
.chat-page-grid { align-items: stretch; }
.chat-page-panel { padding: 0; overflow: hidden; }
.chat-app {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: min(72vh, 720px);
  min-height: 460px;
}

@media (max-width: 768px) {
  .chat-page-panel {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
  }
  .chat-app {
    height: 100%;
    min-height: 100%;
    grid-template-columns: 1fr;
  }
  .chat-sidebar {
    display: none;
  }
  .chat-sidebar.is-open {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
  }
  .chat-sidebar-toggle {
    display: block;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    padding: 6px 12px;
    background: #111517;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
  }
  .chat-main {
    display: flex;
  }
  .chat-compose {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 5;
  }
  .chat-mobile-close {
    display: block;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #111517;
  }
  .chat-thread-head .chat-back {
    display: none;
  }
  .chat-main.thread-open .chat-thread-head .chat-back {
    display: block;
  }
  .chat-main.thread-open .chat-mobile-close {
    display: none;
  }
  .chat-main:not(.thread-open) .chat-sidebar-toggle {
    display: block;
  }
  .chat-main.thread-open .chat-sidebar-toggle {
    display: none;
  }
}
.chat-sidebar { border-right: 1px solid #e6e8ea; display: flex; flex-direction: column; min-height: 0; }
.chat-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #e6e8ea; }
.chat-sidebar-head h2 { margin: 0; font-size: 18px; }
.chat-sidebar-actions { display: flex; gap: 4px; }
.chat-sidebar-toggle { display: none; }
.chat-mobile-close { display: none; }
.chat-icon-button {
  border: 1px solid #d4d7da;
  background: #fff;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-icon-button:hover { background: #f0f1f2; }
.chat-new-search { padding: 8px; border-bottom: 1px solid #e6e8ea; }
.chat-new-search input { width: 100%; padding: 6px 10px; border: 1px solid #d4d7da; border-radius: 6px; font: inherit; }
.chat-search-results { display: flex; flex-direction: column; border-bottom: 1px solid #e6e8ea; max-height: 240px; overflow-y: auto; background: #fff; }
.chat-user-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #f0f1f2;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.chat-user-result:hover { background: #f6f7f8; }
.chat-user-result.is-disabled { opacity: 0.5; cursor: not-allowed; }
.chat-main { display: flex; flex-direction: column; min-height: 0; }
.chat-empty-state { margin: auto; text-align: center; padding: 30px; }
.chat-thread-view { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.chat-thread-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #e6e8ea; }
.chat-back { display: none; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.chat-thread-title { flex: 1; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.chat-thread-title small { color: #6b7280; }
.chat-online-tag.on { color: #2ea44f; }
.chat-thread-actions { display: flex; gap: 4px; }

.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(10, 12, 14, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.chat-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  width: min(480px, 100%);
  max-height: 84vh;
  overflow-y: auto;
}
.chat-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}
.chat-modal-actions { display: flex; gap: 8px; margin-top: 14px; }
.chat-prefs-form { display: flex; flex-direction: column; gap: 10px; }
.chat-blocked { margin-top: 18px; border-top: 1px solid #e6e8ea; padding-top: 12px; }
.chat-blocked h4 { margin: 0 0 8px; }
.chat-blocked-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.chat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f1f2;
  border-radius: 999px;
  padding: 3px 8px 3px 12px;
  margin: 2px;
  font-size: 13px;
}
.chat-chip button { border: 0; background: transparent; cursor: pointer; font-size: 14px; }
.chat-selected-users { margin-top: 8px; }

.easteregg-trigger { border: 0; background: transparent; font-size: 18px; cursor: pointer; padding: 0 4px; opacity: .75; transition: transform .15s ease, opacity .15s ease; }
.easteregg-trigger:hover, .easteregg-trigger:focus-visible { opacity: 1; transform: scale(1.2); }
.easteregg-targets { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.easteregg-target { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border: 1px solid #e6e8ea; border-radius: 8px; background: #fff; cursor: pointer; font-weight: 600; color: #111517; font-size: 0.95rem; }
.easteregg-target:hover:not(:disabled) { border-color: #111517; background: #f6f7f8; }
.easteregg-target:disabled { opacity: .55; cursor: default; }
.easteregg-target-avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #111517; color: #FFD500; font-weight: 800; flex: 0 0 auto; }
.easteregg-overlay { position: fixed; inset: 0; z-index: 3000; background: #111517; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; transition: opacity .4s ease; }
.easteregg-overlay.is-fading { opacity: 0; pointer-events: none; }
.easteregg-finger { font-size: 40vmin; line-height: 1; user-select: none; }
.easteregg-sender { color: #FFD500; font-weight: 800; font-size: 1.15rem; }

.chat-blocked-tag { color: #d61f26; font-weight: 600; }
.chat-thread-view.is-blocked .chat-messages,
.chat-popout.is-blocked .chat-messages { opacity: .45; filter: grayscale(.6); }
.chat-thread-view.is-blocked .chat-compose,
.chat-popout.is-blocked .chat-compose { opacity: .5; }
.chat-popout.is-blocked .chat-popout-title::after { content: " \00b7 geblokkeerd"; color: #ffb3b6; font-size: 11px; font-weight: 700; }
.chat-msg.is-blocked-msg { position: relative; }
.chat-msg.is-blocked-msg .chat-msg-body { background: #d61f26; border-color: #d61f26; color: #fff; }
.chat-msg-blocked { position: absolute; left: -24px; top: 14px; font-size: 13px; line-height: 1; }

.profile-avatar.is-online { outline: 3px solid #2ea44f; outline-offset: 2px; }

@media (max-width: 820px) {
  .chat-dock { display: none; }
  .chat-app { grid-template-columns: 1fr; height: calc(100dvh - 180px); min-height: 420px; }
  .chat-sidebar { border-right: 0; }
  .chat-main { display: none; }
  .chat-app:has(.chat-main.thread-open) .chat-sidebar { display: none; }
  .chat-app:has(.chat-main.thread-open) .chat-main { display: flex; }
  .chat-back { display: inline-block; }
}

/* Pagina-assistent: mascot + tekstballon rechts in de banner */
.hero-assistant {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: flex-end;
}
.hero-assistant.is-disabled { opacity: .35; }
.hero-assistant-hit {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.hero-assistant-bubble {
  position: relative;
  max-width: 230px;
  background: #ffffff;
  color: #111517;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.hero-assistant-bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 6px;
  border: 8px solid transparent;
  border-left-color: #ffffff;
  border-bottom: 0;
}
.hero-assistant-mascot {
  display: block;
  width: 72px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.45));
}
.hero-assistant-hit:hover .hero-assistant-mascot { transform: translateY(-3px); transition: transform .15s ease; }
.hero-assistant-edit {
  position: absolute;
  right: -6px;
  top: -12px;
  z-index: 5;
}

/* Q&A-dialoog */
.hero-qa-list { display: grid; gap: 8px; margin-top: 14px; }
.hero-qa-item {
  border: 1px solid rgba(17,21,23,.12);
  border-radius: 8px;
  overflow: hidden;
}
.hero-qa-item summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 13px;
  list-style: none;
}
.hero-qa-item summary::after { content: "+"; float: right; color: #111517; font-weight: 900; }
.hero-qa-item[open] summary::after { content: "\2212"; }
.hero-qa-item summary::-webkit-details-marker { display: none; }
.hero-qa-answer {
  padding: 0 14px 12px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(17,21,23,.85);
}
.hero-qa-answer .button { margin-top: 8px; padding: 8px 14px; font-size: 12px; }

/* Config-modals */
.hero-qa-edit-list { display: grid; gap: 14px; margin-top: 8px; }
.hero-qa-edit-row {
  border: 1px solid rgba(17,21,23,.12);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
}
.hero-qa-edit-link { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.content-modal-panel-wide { max-width: 720px; width: min(720px, 94vw); }

@media (max-width: 700px) {
  .hero-assistant { right: 10px; bottom: 10px; }
  .hero-assistant-bubble { max-width: 150px; font-size: 11px; padding: 7px 10px; }
  .hero-assistant-mascot { width: 52px; }
}
