.cc-theme-light {
  --cc-bg:           #ffffff;
  --cc-bg-header:    #f8f9fa;
  --cc-bg-input:     #f8f9ff;
  --cc-bg-user:      #e8eeff;
  --cc-bg-bot:       #f4f5f7;
  --cc-accent:       #e4924e;
  --cc-accent-hover: #3451d1;
  --cc-text:         #1a1a2e;
  --cc-text-muted:   #6b7280;
  --cc-border:       rgba(0,0,0,0.08);
  --cc-shadow:       0 8px 32px rgba(0,0,0,0.15);
  --cc-bubble-bg:    #e4924e;
  --cc-bubble-color: #fff;
}


  .modular-highlights {
    text-align: center;
  }
  .modular-highlights.offset-box .frame-box {
    margin: -3rem -1.4rem 3rem;
    padding: 1rem 1rem;
    background: #fff;
    box-shadow: 0 0 75px 0 rgba(69, 77, 93, 0.1);
  }
  .modular-highlights.small .columns {
    margin-top: -1rem;
  }
  .modular-highlights.small .highlight-image {
    display: block;
    justify-content: left;
  }
  .modular-highlights.small .highlight-image h6 {
    text-transform: none;
  }
  .modular-highlights .frame-box {
    padding: 3rem 0;
  }
  .modular-highlights .frame-box > p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .modular-highlights .column {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
  .modular-highlights .column:hover .highlight-content {
    color: #667189;
  }
  .modular-highlights .highlight-image {
    font-size: 130px;
    height: 200px;
    width: 100%;
    color: #e7e9ed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 1rem 0;
  }
  .modular-highlights .highlight-image h6 {
    line-height: 1;
    z-index: 1;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0;
    display: block;
  }
  .modular-highlights .highlight-content {
    color: #acb3c2;
  }
  .modular-features a:hover {
    text-decoration: none;
  }

  .modular-events {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  

  .bg-dark .form-input {
    background-color: #454d5d;
    border-width: 0 0 1px 0;
  }

  .bg-dark .btn, 
  .bg-dark .button {
    background-color: #454d5d;
  }

  .modular-row {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .team-item {
    padding: 30px 0 40px;
    margin-bottom: 30px;
    margin-top: 15px;
    text-align: center;
    overflow: hidden;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(0, 0, 0, 0.1) inset;
  }
  
  .team-item .picture {
    display: inline-block;
    height: 130px;
    width: 130px;
    z-index: 1;
    position: relative;
  }
  
  .team-item .picture::before {
    content: "";
    width: 100%;
    height: 0;
    border-radius: 50%;
    background-color: #e4924e;
    position: absolute;
    bottom: 135%;
    right: 0;
    left: 0;
    opacity: 0.9;
    transform: scale(3);
    transition: all 0.3s linear 0s;
  }
  
  .team-item:hover .picture::before {
    height: 100%;
  }
  
  .team-item .picture::after {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #e4924e;
    position: absolute;
    top: 4px;
    left: 0;
    z-index: -1;
  }
  
  .team-item .picture img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    transform: scale(1);
    transition: all 0.9s ease 0s;
  }
  
  .team-item:hover .picture img {
    box-shadow: 0 0 0 14px #f7f5ec;
    transform: scale(0.7);
  }
  
  .team-item .title {
    display: block;
    font-size: 15px;
    margin-top: 0;
    color: #4e5052;
    text-transform: capitalize;
  }
  
  .team-item .social {
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: #e4924e;
    position: absolute;
    bottom: -100px;
    left: 0;
    transition: all 0.5s ease 0s;
  }
  
  .team-item:hover .social {
    bottom: 0;
  }
  
  .team-item .social li {
    display: inline-block;
    margin-top: 0;
  }
  
  .team-item .social li a {
    display: block;
    padding: 10px;
    font-size: 17px;
    color: white;
    transition: all 0.3s ease 0s;
    text-decoration: none;
  }


/* TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline {
  position: relative;
  white-space: nowrap;
  max-width: 1400px;
  margin: 0 auto;
  grid-template-columns: 320px auto;
  grid-gap: 20px;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 30px;
  width: 100px;
  z-index: 2;
}

.timeline::after {
  right: 0;
  background: linear-gradient(270deg,rgba(248, 249, 250, 1) 0%, rgba(248, 249, 250, 1) 50%, rgba(248, 249, 250, 0) 100%)
}

.timeline::before {
  background: linear-gradient(90deg,rgba(248, 249, 250, 1) 0%, rgba(248, 249, 250, 1) 50%, rgba(248, 249, 250, 0) 100%)
}

.timeline ol::-webkit-scrollbar {
  height: 12px;
}

.timeline ol::-webkit-scrollbar-thumb,
.timeline ol::-webkit-scrollbar-track {
  border-radius: 92px;
}

.timeline ol::-webkit-scrollbar-thumb {
  background: #e4924e;
}

.timeline ol::-webkit-scrollbar-track {
  background: white;
}

.timeline ol {
  padding: 150px 0;
  margin-left: 0;
  transition: all 1s;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-color: #e4924e white;
}

.timeline ol li {
  position: relative;
  display: inline-block;
  list-style-type: none;
  width: 160px;
  height: 5px;
  background: #454D5E;
  scroll-snap-align: start;
}

.timeline ol li:last-child {
  width: 340px;
}

.timeline ol li:not(:first-child) {
  margin-left: 14px;
}

.timeline ol li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 1px);
  bottom: 0;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #e4924e;
  z-index: 1;
}

.timeline ol li span.icon {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #e4924e;
}

.timeline ol li div {
  position: absolute;
  left: calc(100% + 7px);
  width: 280px;
  padding: 15px;
  white-space: normal;
  color: black;
  background: white;
  border-radius: 0 10px 10px 10px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.timeline ol li div::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline ol li:nth-child(odd) div {
  top: -16px;
  transform: translateY(-100%);
  border-radius: 10px 10px 10px 0;
}

.timeline ol li:nth-child(odd) div::before {
  top: 100%;
  border-width: 8px 8px 0 0;
  border-color: white transparent transparent transparent;
}

.timeline ol li:nth-child(even) div {
  top: calc(100% + 16px);
}

.timeline ol li:nth-child(even) div::before {
  top: -8px;
  border-width: 8px 0 0 8px;
  border-color: transparent transparent transparent white;
}

.timeline time {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #e4924e;
}

/* GENERAL MEDIA QUERIES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (max-width: 800px) {
  .timeline {
    display: block;
  }

  .timeline::before,
  .timeline::after {
    width: 50px;
  }

  .timeline::before {
    left: 0;
  }

  .timeline .info {
    display: none;
  }
}


/* Customizeed number input field */

input[type="number"] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.number-input {
  display: inline-flex;
}

.number-input,
.number-input * {
  box-sizing: border-box;
}

.number-input button {
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  margin: 0;
  border: 1px solid #e28a41;
  border-radius: 50%;
  background: #e4924e;
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 0 #dd7722, 0 3px 8px rgba(228, 146, 78, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}

.number-input button:hover,
.number-input button:focus-visible {
  background: #e18438;
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #dd7722, 0 6px 12px rgba(228, 146, 78, 0.45);
}

.number-input button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #dd7722;
}

.number-input input[type=number] {
  flex: 1 1 auto;
  min-width: 0;
  width: 3.5rem;
  height: 2.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.number-input input[type=number]:focus {
  border: 0;
  box-shadow: none;
  outline: none;
}

.item-input {
  background: #fff;
  max-width: 300px;
  position: relative;
  z-index: 1;
  margin: 10px auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.item-input .image img {
  display: block;
  width: 100%;
}

.item-input .content {
  background: #fff;
}

.item-input .content label {
  display: block;
  padding: 15px 5px 15px 15px;
  width: 100%;
  float: none;
  background: #fff;
}

/* Price: orange banner floating at the top right of the card */
.item-input .content .price {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  width: auto;
  float: none;
  padding: 0.3rem 0.9rem;
  border-radius: 0 0 0 14px;
  background: #e4924e;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.item-input .content .price::after {
  content: " €";
  font-size: 0.75em;
}

.item-input .footer {
  padding: 0.3rem 0.6rem 0.8rem;
}

.item-input .number-input {
  display: flex;
  align-items: center;
  width: 100%;
}

/** LOGIN FORM **/

#grav-login {
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(225, 225, 225, 0.4);
  border-radius: 10px;
  z-index: 1;
  overflow: hidden;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  position: relative;
  margin: 0 auto;
  width: 80%;
  text-align: center;
}

#grav-login > a {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Login page: single frame split into a branded band (1/3) + the form (2/3) */
.login-frame {
  display: flex;
  max-width: 800px;
  margin: 3rem auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 45px -9px rgba(0, 0, 0, 0.15);
}

.login-frame-brand {
  display: flex;
  flex: 0 0 33.333%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: #e4924e;
  text-align: center;
}

.login-frame-brand-text {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.login-frame-panel {
  flex: 1;
  padding: 2rem;
  background: #fff;
}

/* Link (styled as text, not a button) under the brand headline, toggling
 * between the magic-link and password panes in .login-frame-panel. */
.login-frame-toggle {
  margin-top: 1rem;
}

.login-frame-toggle-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.login-frame-toggle-btn:hover,
.login-frame-toggle-btn:focus {
  opacity: 1;
}

/* Login/magic-link pane swap: only one pane is visible at a time ([hidden]
 * handles that), the .is-active/.is-leaving classes drive the cross-fade. */
.login-swap {
  position: relative;
}

.login-swap-pane {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.login-swap-pane.is-active {
  opacity: 1;
  transform: translateY(0);
}

.login-swap-pane.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

@media (max-width: 600px) {
  .login-frame {
    flex-direction: column;
    margin: 1.5rem auto;
  }
  .login-frame-brand {
    flex-basis: auto;
    padding: 1.5rem;
  }
}

/* Neutralize the old standalone card look now that #grav-login sits inside .login-frame-panel */
.login-frame-panel #grav-login {
  width: 100%;
  margin: 0;
  border: 0;
  background: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* scss/theme/_forms.scss hides #grav-login .form-label globally, relying on
 * placeholders instead — but only login.md's fields set a "placeholder:".
 * Forgot/reset/magic-link/2FA don't, so re-show their labels rather than
 * leaving the field unlabeled. */
.login-frame-panel #grav-login form:not(.login-form) .form-label {
  display: block;
}

/* The "Connectez-vous" page title is redundant with the brand band's headline */
.login-frame-panel #grav-login > h1:first-child {
  display: none;
}

.login-form .button-wrapper {
  display: flex;
  flex-direction: column-reverse;
}

.login-form .button-wrapper > * {
  margin-top: 20px;
}

/* Buttons: subtle 3D/pressed-shadow effect.
 * Scoped to any form living in the "auth family" (.login-frame-panel
 * #grav-login), not just .login-form, so the forgot/reset/magic-link/2FA
 * pages that reuse the same .login-frame shell look consistent too. */
.login-frame-panel .button-wrapper .btn {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s, border-color 0.2s, color 0.2s;
}

.login-frame-panel .button-wrapper .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 2px 0 rgba(0, 0, 0, 0.08);
}

.login-frame-panel .button-wrapper .btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Primary (orange) fill for the submit button. The login/2FA forms already
 * get this from scss/theme/_forms.scss (@include button-primary), but that
 * mixin is scoped to .login-form/.twofa-form only; declared again here in
 * plain CSS so forgot/reset/magic-link forms match without a Sass build. */
.login-frame-panel #grav-login form button[type="submit"] {
  color: #fff;
  border-color: #e28a41;
  background: #e4924e;
  box-shadow: 0 3px 0 #dd7722, 0 4px 10px rgba(228, 146, 78, 0.4);
}

.login-frame-panel #grav-login form button[type="submit"]:hover,
.login-frame-panel #grav-login form button[type="submit"]:focus {
  border-color: #df7c2b;
  background: #e18438;
  box-shadow: 0 4px 0 #dd7722, 0 8px 16px rgba(228, 146, 78, 0.45);
}

.login-frame-panel #grav-login form button[type="submit"]:active {
  border-color: #dd7722;
  background: #df7f2f;
  box-shadow: 0 1px 0 #dd7722, 0 2px 4px rgba(228, 146, 78, 0.3);
}

.checkboxes.counters {    
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.counters label.disabled{
  display: flex;
  justify-content: space-between;
}

.counters label.disabled{
  color: lightgray;
}

.counters .slots {
  display: flex;
  flex-direction: row-reverse;    
  justify-content: flex-start;
  margin-bottom: 10px;
  float: right;
  padding-top: 10px;
  padding-right: 10px;
}

.counters .slot {
  display: block;
  height: 5px;
  width: 5px;
  border-radius: 2px;
  margin-left: 2px;
  margin-right: 2px;
}
.counters .slot.busy{
  background-color: #3c3b3b;
}
.counters .slot.free{
  background-color: lightgray;
}

/* Header user menu (login-status): icon only, with a dropdown for name + logout */
.login-status-wrapper .user-menu {
  position: relative;
  display: inline-block;
}

.login-status-wrapper .user-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.login-status-wrapper .user-menu-toggle i {
  margin: 0;
  font-size: 1rem;
  color: #454d5d;
}

.login-status-wrapper .user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 10;
  min-width: 180px;
  max-width: 260px;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
  background: #fff;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
}

.login-status-wrapper .user-menu:hover .user-menu-dropdown,
.login-status-wrapper .user-menu:focus-within .user-menu-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.login-status-wrapper .user-menu-name {
  font-weight: 700;
}

/* One flat list: the parent's own info form, each child's info form,
   preferences and logout all sit at the same level, no separators. */
.login-status-wrapper .user-menu-links {
  display: flex;
  flex-direction: column;
}

.login-status-wrapper .user-menu-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  white-space: normal;
  color: #454d5d !important;
  text-decoration: none;
}

.login-status-wrapper .user-menu-link i {
  flex: 0 0 auto;
  width: 1rem;
  text-align: center;
  color: #e4924e;
}

.login-status-wrapper .user-menu-link:hover {
  color: #e4924e !important;
  text-decoration: none;
}

/** Parent / child self-service info form (school-manager plugin)
 *  Layout lives in the plugin blueprint (parent_info.md / child_info.md,
 *  form classes: "gsm-form"); this styles it as a modern card + 2-col grid.
 –––––––––––––––––––––––––––––––––––––––––––––––––– */

.gsm-info-page {
  --gsm-accent: #e4924e;
  --gsm-accent-dark: #dd7722;
  --gsm-ink: #1a1a2e;
  --gsm-muted: #6b7280;
  --gsm-border: rgba(0, 0, 0, 0.08);
  max-width: 1100px;
  margin: 0 auto;
}

.gsm-info-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.gsm-info-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--gsm-accent);
  color: #fff;
  font-size: 1.4rem;
}

/* Profile page: the icon badge is replaced by the user's actual avatar */
.gsm-info-icon.gsm-info-avatar {
  overflow: hidden;
  background: var(--gsm-border);
}

.gsm-info-icon.gsm-info-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gsm-info-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.gsm-info-heading h1 {
  margin: 0 0 0.5rem;
}

.gsm-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 420px;
}

.gsm-progress-track {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 4px;
  background: var(--gsm-border);
  overflow: hidden;
}

.gsm-progress-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gsm-accent), var(--gsm-accent-dark));
  transition: width 0.4s ease;
}

.gsm-progress-label {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gsm-muted);
  white-space: nowrap;
}

.gsm-card {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 45px -9px rgba(0, 0, 0, 0.12);
}

.gsm-card .card-body {
  padding: 2rem;
}

@media (max-width: 600px) {
  .gsm-card .card-body {
    padding: 1.25rem;
  }
}

/* Profile page: avatar sits over the top-right corner of the card, straddling
 * its top border, instead of in a separate heading row above it. */
.gsm-profile-card {
  position: relative;
  margin-top: 2.5rem;
}

.gsm-profile-card .gsm-info-icon.gsm-profile-avatar {
  position: absolute;
  top: 0;
  right: 2rem;
  transform: translateY(-50%);
  width: 5rem;
  height: 5rem;
  border: 4px solid #fff;
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.25);
  /* No explicit z-index: #header is position:fixed with z-index:2 (see
     scss/theme/_header.scss) and must always stack above page content,
     including the site's dropdown user menu. Staying z-index:auto keeps the
     avatar above the in-flow card content (positioned descendants paint
     above static ones regardless) without ever competing with the header's
     explicit stacking level. */
}

@media (max-width: 600px) {
  .gsm-profile-card .gsm-info-icon.gsm-profile-avatar {
    width: 4rem;
    height: 4rem;
    right: 1.25rem;
  }
}

.gsm-info-intro {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--gsm-border);
  color: var(--gsm-muted);
}

/* Child info page: same header/card language as the parent page, but the
 * child form is split into several blueprint forms (default, medical, ...),
 * each rendered as its own card/section below the shared progress header. */
.gsm-section + .gsm-section {
  margin-top: 1.75rem;
}

.gsm-section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
}

.gsm-section-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--gsm-accent);
  color: #fff;
  font-size: 0.95rem;
}

.gsm-section-medical .gsm-section-icon {
  background: #7234d6;
}

.gsm-notice {
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(114, 52, 214, 0.2);
  border-radius: 8px;
  background: rgba(114, 52, 214, 0.06);
  color: var(--gsm-ink);
  font-size: 0.92rem;
}

.gsm-notice p {
  margin-bottom: 0.6rem;
}

.gsm-notice p:last-child {
  margin-bottom: 0;
}

.gsm-notice strong {
  color: #7234d6;
}

.gsm-info-intro p:last-child {
  margin-bottom: 0;
}

/* Field grid: two columns on desktop, fields flagged "full-width" (see
   blueprint outerclasses) span both columns. */
.gsm-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem 1.5rem;
}

.gsm-form .form-field {
  min-width: 0;
  margin-bottom: 0.75rem;
}

.gsm-form .form-field.full-width {
  grid-column: 1 / -1;
}

.gsm-form .form-label {
  padding-top: 0;
  padding-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gsm-ink);
}

.gsm-form .form-input,
.gsm-form select.form-input {
  border-radius: 8px;
  border-color: var(--gsm-border);
  background: #f8f9ff;
}

.gsm-form .form-input:focus {
  border-color: var(--gsm-accent);
  box-shadow: 0 0 0 0.1rem rgba(228, 146, 78, 0.25);
  background: #fff;
}

.gsm-form .form-input:disabled {
  background: #f1f1f4;
  color: var(--gsm-muted);
  opacity: 1;
}

.gsm-form .switch-toggle {
  border-color: var(--gsm-border);
}

.gsm-form .switch-toggle input:checked + label {
  background: var(--gsm-accent);
  color: #fff;
}

.gsm-form span.required {
  color: var(--gsm-accent-dark);
}

.gsm-form .buttons {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gsm-border);
}

.gsm-form .buttons button[type="submit"] {
  background: var(--gsm-accent);
  border-color: var(--gsm-accent);
  color: #fff;
  box-shadow: 0 3px 0 var(--gsm-accent-dark), 0 4px 10px rgba(228, 146, 78, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gsm-form .buttons button[type="submit"]:hover {
  box-shadow: 0 4px 0 var(--gsm-accent-dark), 0 8px 16px rgba(228, 146, 78, 0.45);
  transform: translateY(-2px);
}

.gsm-form .buttons button[type="submit"]:active {
  box-shadow: 0 1px 0 var(--gsm-accent-dark), 0 2px 4px rgba(228, 146, 78, 0.3);
  transform: translateY(1px);
}

.gsm-form .buttons button[type="reset"] {
  background: transparent;
  color: var(--gsm-muted);
  border-color: var(--gsm-border);
}

.gsm-form .buttons button[type="reset"]:hover {
  color: var(--gsm-ink);
  border-color: var(--gsm-muted);
}

@media (max-width: 640px) {
  .gsm-form {
    grid-template-columns: 1fr;
  }

  .gsm-form .buttons {
    justify-content: stretch;
    flex-direction: column-reverse;
  }

  .gsm-form .buttons button {
    width: 100%;
  }

  .gsm-info-header {
    align-items: flex-start;
  }
}

/** Mailbox Listing **/
.mailbox-items {
  display: flex;
  flex-direction: column;
}

.mailbox-listing .mailbox-item {
  position: relative;
  isolation: isolate; /* keeps the banner/chevron below the site's dropdown menus */
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mailbox-listing .mailbox-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.mailbox-item-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1.6rem 3rem 0.6rem 0.4rem;
}

.mailbox-listing .mailbox-item .card-title a {
  color: inherit;
}

.mailbox-item-summary {
  color: #6b7280;
  font-size: 0.8rem;
}

.mailbox-listing .mailbox-item .card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding-top: 0;
}

/* Date: orange banner floating at the top right of the card */
.mailbox-item-date {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.2rem 0.8rem;
  border-radius: 0 0 0 12px;
  background: #e4924e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* Open the message: simple chevron on the right of the card */
.mailbox-listing .mailbox-item > a.mailbox-item-open {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  margin: 0;
  padding: 0;
  color: #e4924e;
  font-size: 1.1rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.mailbox-listing .mailbox-item > a.mailbox-item-open .fa {
  display: block;
  margin: 0;
  line-height: 1;
}

.mailbox-listing .mailbox-item > a.mailbox-item-open:hover,
.mailbox-listing .mailbox-item > a.mailbox-item-open:focus-visible {
  color: #dd7722;
  transform: translateX(3px);
  text-decoration: none;
}

.mailbox-listing .empty-mailbox {
  text-align: center;
  color: #6b7280;
}

/** Notebook / report card page (notebook plugin)
 *  Reuses the .gsm-info-page header language from the parent/child info
 *  pages, then renders one collapsible card per child with the grades
 *  table. All the score computation lives in the template (unchanged from
 *  the plugin's own logic) — this just replaces its inline styles with
 *  classes so it follows the site's look.
 –––––––––––––––––––––––––––––––––––––––––––––––––– */

.gsm-notebook-intro {
  margin-bottom: 1.5rem;
  color: var(--gsm-muted);
}

.gsm-notebook-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gsm-notebook-child {
  /* Rounded accordion card; overflow clips the summary and the body to that shape. */
  overflow: hidden;
}

details.card.gsm-notebook-child {
  border: 0;
  border-radius: 18px;
}

.gsm-notebook-child-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  cursor: pointer;
  list-style: none;
}

.gsm-notebook-child-summary::-webkit-details-marker {
  display: none;
}

.gsm-notebook-child-summary::after {
  content: '';
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.5rem;
  border-right: 2px solid var(--gsm-muted);
  border-bottom: 2px solid var(--gsm-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.gsm-notebook-child[open] .gsm-notebook-child-summary::after {
  transform: rotate(-135deg);
}

.gsm-notebook-child-name {
  /* Grows to consume the row's free space so the badges + the summary's
     chevron ::after (itself a flex item) stay clustered together at the
     end, instead of getting evenly spread out by justify-content. */
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gsm-ink);
}

.gsm-notebook-child-scores {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gsm-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.65rem;
  border: 1px solid var(--gsm-border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gsm-ink);
}

.gsm-score-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gsm-score-badge.green { border-color: #2bb17a; }
.gsm-score-badge.yellow { border-color: #f0a03a; }
.gsm-score-badge.red { border-color: #e6735c; }
.gsm-score-badge.green .gsm-score-dot { background: #2bb17a; }
.gsm-score-badge.yellow .gsm-score-dot { background: #f0a03a; }
.gsm-score-badge.red .gsm-score-dot { background: #e6735c; }

.gsm-notebook-body {
  padding: 0 1.75rem 1.75rem;
  border-top: 1px solid var(--gsm-border);
}

.gsm-table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.flex-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.flex-table th,
.flex-table td {
  padding: 0.6rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--gsm-border);
  white-space: nowrap;
}

.flex-table thead th {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--gsm-muted);
  border-bottom: 2px solid var(--gsm-border);
}

.flex-table td.first,
.flex-table th:first-child {
  text-align: left;
  white-space: normal;
}

.flex-table td.first {
  font-weight: 600;
  color: var(--gsm-ink);
}

.flex-table td.first.mandatory {
  border-left: 3px solid #e4924e;
}

.flex-table td.notices {
  position: relative;
  font-variant-numeric: tabular-nums;
}

.flex-table td.notices.green { background: rgba(43, 177, 122, 0.12); color: #1f8f61; }
.flex-table td.notices.yellow { background: rgba(240, 160, 58, 0.14); color: #b3701e; }
.flex-table td.notices.red { background: rgba(230, 115, 92, 0.12); color: #c14e34; }

.flex-table tfoot td {
  font-weight: 700;
  border-bottom: none;
  border-top: 2px solid var(--gsm-border);
}

.trend-up { color: #2bb17a; }
.trend-down { color: #e6735c; }

.flex-table td.notices .trend-up,
.flex-table td.notices .trend-down {
  position: absolute;
  top: 4px;
  right: 3px;
  font-size: 0.65em;
}

.gsm-notebook-trend-float {
  float: right;
  margin-left: 4px;
  font-size: 0.65em;
}

.gsm-notebook-comment {
  position: absolute;
  bottom: 2px;
  right: 2px;
  padding: 2px;
  border: 0;
  background: none;
  font-size: 0.7em;
  line-height: 1;
  color: #e4924e;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}

.gsm-notebook-comment:hover,
.gsm-notebook-comment:focus-visible {
  color: #dd7722;
  transform: scale(1.25);
}

.gsm-comment-dialog {
  width: min(90vw, 420px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.gsm-comment-dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.gsm-comment-dialog form {
  margin: 0;
}

.gsm-comment-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  background: #e4924e;
  color: #fff;
}

.gsm-comment-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
}

.gsm-comment-dialog-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.gsm-comment-dialog-text {
  margin: 0;
  padding: 1.25rem;
  white-space: pre-line;
}

.gsm-notebook-totals {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.gsm-notebook-totals h4 {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0;
  font-size: 1rem;
}

.gsm-notebook-totals h4 span:first-child {
  color: var(--gsm-muted);
  font-weight: 400;
}

.gsm-notebook-totals h4 .green { color: #2bb17a; }
.gsm-notebook-totals h4 .yellow { color: #b3701e; }
.gsm-notebook-totals h4 .red { color: #c14e34; }

.gsm-notebook-empty {
  margin: 1.5rem 0 0;
  color: var(--gsm-muted);
  font-style: italic;
}

@media (max-width: 640px) {
  .gsm-notebook-child-summary {
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
  }

  .gsm-notebook-body {
    padding: 0 1.25rem 1.25rem;
  }
}

/** Behavior / incident log page (behavior plugin)
 *  Same accordion-per-child pattern as the notebook page (reuses its
 *  .gsm-notebook-list/-child/-body/-intro classes on purpose — this is the
 *  same "one card per child, expand for detail" family). The plugin ships
 *  its own zig-zag "timeline" look (plugin://behavior/css/timeline.css,
 *  loaded on every page by the plugin itself) which this intentionally
 *  does not use, to stay visually consistent with the rest of the parent
 *  portal instead.
 –––––––––––––––––––––––––––––––––––––––––––––––––– */

.gsm-behavior-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.gsm-behavior-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--gsm-muted);
  color: #fff;
  font-size: 0.6rem;
}

.gsm-behavior-badge.severity-0 { background: var(--gsm-muted); }
.gsm-behavior-badge.severity-1 { background: #f0a03a; }
.gsm-behavior-badge.severity-2 { background: #dd7722; }
.gsm-behavior-badge.severity-3 { background: #c0392b; }

.gsm-behavior-empty {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gsm-muted);
}

.gsm-behavior-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gsm-behavior-event {
  --behavior-color: var(--gsm-muted);
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--gsm-border);
  border-left: 4px solid var(--behavior-color);
  border-radius: 8px;
  background: #fbfbfd;
}

.gsm-behavior-event.type-bagarre { --behavior-color: #ed2c23; }
.gsm-behavior-event.type-intimidation { --behavior-color: #c0392b; }
.gsm-behavior-event.type-destruction { --behavior-color: #d35400; }
.gsm-behavior-event.type-insolence { --behavior-color: #f7941c; }
.gsm-behavior-event.type-perturbation { --behavior-color: #b8860b; }
.gsm-behavior-event.type-triche { --behavior-color: #7234d6; }
.gsm-behavior-event.type-retard { --behavior-color: #2d9cdb; }
.gsm-behavior-event.type-autre { --behavior-color: #838383; }

.gsm-behavior-event-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.gsm-behavior-event-type {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.045);
  color: var(--behavior-color);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.gsm-behavior-event-date {
  font-size: 0.82rem;
  color: var(--gsm-muted);
  white-space: nowrap;
}

.gsm-behavior-event-description {
  margin: 0 0 0.75rem;
  color: var(--gsm-ink);
}

.gsm-behavior-event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.6rem;
  border-top: 1px solid var(--gsm-border);
}

.gsm-behavior-event-author {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--gsm-muted);
}

.gsm-behavior-ack {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--gsm-ink);
  cursor: pointer;
}

.gsm-behavior-ack input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--gsm-accent);
}

@media (max-width: 640px) {
  .gsm-behavior-event-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/** Account profile page (Grav core login plugin, route: plugins.login.route_profile)
 *  Same header/card/.gsm-form language as the other pages. The avatar
 *  preview (originally its own read-only field, no upload control) now
 *  renders in the page header instead — see profile.html.twig. A couple of
 *  the remaining field types (section, conditional) still render outside
 *  the usual .form-field wrapper entirely, so they need an explicit
 *  full-width rule rather than the .full-width outerclasses convention
 *  used elsewhere.
 –––––––––––––––––––––––––––––––––––––––––––––––––– */

.gsm-form > *:not(.form-field) {
  grid-column: 1 / -1;
}

.gsm-form .form-field.twofa-secret {
  grid-column: 1 / -1;
}

.gsm-form h3 {
  margin: 0.5rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gsm-border);
  font-size: 1.1rem;
}

/** Article footer navigation (activity plugin, article view)
 *  <nav class="post-nav"> in activity_item.html.twig's footer: prev link,
 *  tag badges and next link laid out as a single navigation bar instead of
 *  the previous flat <ul>.
 –––––––––––––––––––––––––––––––––––––––––––––––––– */

.post-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.post-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  padding: 0.45rem 1.1rem;
  border: 1px solid #e28a41;
  border-radius: 100px;
  background: #e4924e;
  color: #fff;
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 3px 0 #dd7722, 0 4px 10px rgba(228, 146, 78, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s, border-color 0.2s;
}

.post-nav-link:hover,
.post-nav-link:focus-visible {
  border-color: #df7c2b;
  background: #e18438;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #dd7722, 0 8px 16px rgba(228, 146, 78, 0.45);
}

.post-nav-link:active {
  border-color: #dd7722;
  background: #df7f2f;
  transform: translateY(2px);
  box-shadow: 0 1px 0 #dd7722, 0 2px 4px rgba(228, 146, 78, 0.3);
}

.post-nav-next {
  margin-left: auto;
}

.post-nav-placeholder {
  flex: 0 0 auto;
  width: 1px;
}

.post-nav-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-nav-tags .tag a {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  background: rgba(228, 146, 78, 0.12);
  color: #dd7722;
  font-size: 0.8rem;
  text-decoration: none;
}

.post-nav-tags .tag a:hover {
  background: rgba(228, 146, 78, 0.22);
  text-decoration: none;
}

@media (max-width: 640px) {
  .post-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .post-nav-next {
    margin-left: 0;
  }

  .post-nav-placeholder {
    display: none;
  }

  .post-nav-tags {
    order: 3;
    width: 100%;
  }
}

/* Blog / activity cards */
.activity-card {
  overflow: hidden;
  border: 0;
  border-radius: 0.8rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.activity-card-media {
  position: relative;
  min-height: 2.5rem;
  background: #eef0f3;
}

.activity-card-media img {
  display: block;
  width: 100%;
  height: auto;
}

.activity-card-banner {
  position: absolute;
  top: 0.8rem;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.8rem 0.25rem 0.6rem;
  border-radius: 0 999px 999px 0;
  background: #dd7722;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 90%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.activity-card-dates {
  display: flex;
  flex-direction: column;
}

.activity-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.activity-card-heading .card-title {
  flex: 1;
  min-width: 0;
}

.activity-card-content {
  padding: 0.8rem 1rem 0.6rem;
}

.activity-card-visibility {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.activity-card-visibility.is-public {
  color: #2e9d5b;
}

.activity-card-visibility.is-private {
  color: #8b95a1;
}

.activity-card-summary {
  margin-top: 0.4rem;
  font-size: 0.8rem;
}

.activity-card-groups {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 0.6rem 1rem 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}


/* Activity page: date banner under the title + nav bar in the footer */
.post .activity-daterange {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.2rem;
  margin: 0.6rem 0 1rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: #dd7722;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.post .activity-daterange .activity-daterange-item {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.post .activity-daterange .activity-daterange-label {
  opacity: 0.85;
  font-weight: 400;
}

.post .activity-daterange-lock {
  font-size: 0.95rem;
}

.post footer .actions .post-nav-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.post-nav .post-nav-tags .tag {
  margin: 0;
}


/* Activity page: photo gallery section (background extends to the full page width,
   content stays aligned with the container) */
.post section.gallery {
  margin: 1.5rem 0;
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.04);
  clip-path: inset(0 -100vmax);
}

/* Photo gallery buttons (Unite Gallery): round orange buttons like the rest of the site.
   The default sprites are replaced by inline SVG icons centred in the circle. */
.ug-button-tile-navigation,
.ug-lightbox .ug-lightbox-arrow-left,
.ug-lightbox .ug-lightbox-arrow-right,
.ug-lightbox .ug-lightbox-button-close,
.ug-gallery-wrapper .ug-slider-control.ug-arrow-left,
.ug-gallery-wrapper .ug-slider-control.ug-arrow-right {
  box-sizing: border-box !important;
  width: 38px !important;
  height: 38px !important;
  border: 1px solid #e28a41 !important;
  border-radius: 50% !important;
  background-color: #e4924e !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 20px 20px !important;
  box-shadow: 0 3px 0 #dd7722, 0 4px 10px rgba(228, 146, 78, 0.4);
  opacity: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s;
}

.ug-button-tile-navigation:hover,
.ug-lightbox .ug-lightbox-arrow-left:hover,
.ug-lightbox .ug-lightbox-arrow-right:hover,
.ug-lightbox .ug-lightbox-button-close:hover,
.ug-gallery-wrapper .ug-slider-control.ug-arrow-left:hover,
.ug-gallery-wrapper .ug-slider-control.ug-arrow-right:hover,
.ug-lightbox .ug-lightbox-arrow-left.ug-arrow-hover,
.ug-lightbox .ug-lightbox-arrow-right.ug-arrow-hover,
.ug-lightbox .ug-lightbox-button-close.ug-button-hover,
.ug-gallery-wrapper .ug-slider-control.ug-arrow-hover {
  background-color: #e18438 !important;
  background-position: center center !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #dd7722, 0 8px 16px rgba(228, 146, 78, 0.45);
}

.ug-button-tile-navigation:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #dd7722, 0 2px 4px rgba(228, 146, 78, 0.3);
}

.ug-button-tile-navigation.ug-button-disabled,
.ug-gallery-wrapper .ug-slider-control.ug-arrow-disabled {
  opacity: 0.5;
}

.ug-button-tile-navigation.ug-button-disabled:hover {
  transform: none;
}

.ug-button-tile-navigation.ug-button-tile-left,
.ug-lightbox .ug-lightbox-arrow-left,
.ug-gallery-wrapper .ug-slider-control.ug-arrow-left { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='14.5 6 8.5 12 14.5 18'/%3E%3C/svg%3E") !important; }
.ug-button-tile-navigation.ug-button-tile-right,
.ug-lightbox .ug-lightbox-arrow-right,
.ug-gallery-wrapper .ug-slider-control.ug-arrow-right { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9.5 6 15.5 12 9.5 18'/%3E%3C/svg%3E") !important; }
.ug-button-tile-navigation.ug-button-tile-play { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='9 6 18 12 9 18' fill='white'/%3E%3C/svg%3E") !important; }
.ug-button-tile-navigation.ug-button-tile-play.ug-pause-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='9' y1='6' x2='9' y2='18'/%3E%3Cline x1='15' y1='6' x2='15' y2='18'/%3E%3C/svg%3E") !important; }
.ug-lightbox .ug-lightbox-button-close { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='7' x2='17' y2='17'/%3E%3Cline x1='17' y1='7' x2='7' y2='17'/%3E%3C/svg%3E") !important; }

/* Photo gallery carousel: borderless, rounded tiles with a soft zoom on hover */
.post section.gallery .ug-thumb-wrapper.ug-tile {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease;
}

.post section.gallery .ug-thumb-wrapper.ug-tile:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.post section.gallery .ug-thumb-wrapper.ug-tile img.ug-thumb-image {
  transition: transform 0.35s ease;
}

.post section.gallery .ug-thumb-wrapper.ug-tile:hover img.ug-thumb-image {
  transform: scale(1.06);
}

.post section.gallery .ug-thumb-wrapper .ug-thumb-border-overlay {
  display: none;
}

/* Activity page: form section (same full-width grey band as the gallery) */
.post section.form {
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.04);
  clip-path: inset(0 -100vmax);
}

.post section.form form > *:last-child {
  margin-bottom: 0;
}

/* Activity form buttons: round orange pill (submit) and outlined pill (reset) */
.post section.form .button-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.post section.form .button-wrapper .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 0.5rem 1.4rem;
  border: 1px solid #e28a41;
  border-radius: 100px;
  background: #e4924e;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 3px 0 #dd7722, 0 4px 10px rgba(228, 146, 78, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s, border-color 0.2s, color 0.2s;
}

.post section.form .button-wrapper .btn:hover,
.post section.form .button-wrapper .btn:focus-visible {
  border-color: #df7c2b;
  background: #e18438;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #dd7722, 0 8px 16px rgba(228, 146, 78, 0.45);
}

.post section.form .button-wrapper .btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #dd7722, 0 2px 4px rgba(228, 146, 78, 0.3);
}

.post section.form .button-wrapper .btn[type="reset"] {
  border-color: #e4924e;
  background: #fff;
  color: #dd7722;
  box-shadow: none;
}

.post section.form .button-wrapper .btn[type="reset"]:hover,
.post section.form .button-wrapper .btn[type="reset"]:focus-visible {
  background: rgba(228, 146, 78, 0.12);
  color: #dd7722;
  box-shadow: none;
}

.post section.form .button-wrapper .btn[type="reset"]:active {
  transform: translateY(1px);
}

.item-input:not(:has(.image)) .content label {
  padding-right: 5.5rem;
}

.item-input:not(:has(.image)) .content {
  min-height: 2.8rem;
}

/* Order total (field with id="total"): a "receipt" panel, orange gradient with ticket notches.
   Label on the left, big amount on the right, separated by a dashed tear line. */
.form-field:has(#total) {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  margin: 1.25rem auto;
  padding: 0.8rem 1.5rem;
  max-width: 460px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0a566 0%, #e4924e 45%, #dd7722 100%);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(221, 119, 34, 0.55);
  overflow: hidden;
}

/* ticket notches on both sides */
.form-field:has(#total)::before,
.form-field:has(#total)::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: #f4f4f4;
}

.form-field:has(#total)::before { left: -9px; }
.form-field:has(#total)::after { right: -9px; }

.form-field:has(#total) > div:first-child,
.form-field:has(#total) > div:first-child * {
  background-image: none;
}

.form-field:has(#total) > div:first-child *::before,
.form-field:has(#total) > div:first-child *::after {
  content: none !important;
}

.form-field:has(#total) > div:first-child {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  width: auto;
  margin: 0;
  padding: 0 1rem 0 0;
  border-right: 2px dashed rgba(255, 255, 255, 0.55);
}

.form-field:has(#total) label {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
}

.form-field:has(#total) > div:last-child {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: auto;
  padding: 0;
}

.form-field:has(#total) > div:last-child [class*="wrapper"] {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  padding: 0;
}

.form-field:has(#total) > div:last-child [class*="wrapper"]::after {
  content: "€";
  margin-left: 0.15rem;
  font-size: 1.4rem;
  font-weight: 700;
  opacity: 0.9;
}

.form-field:has(#total) input#total {
  width: 6.5rem;
  height: auto;
  padding: 0.1rem 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.form-field:has(#total) input#total:focus {
  outline: none;
}

/* Callouts (markdown notices) inside forms: same colours, rounded with a light coloured border */
form .notices {
  padding: 0.4rem 1.2rem 0.4rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 12px;
}

form .notices.yellow { border-color: rgba(240, 173, 78, 0.55); }
form .notices.red { border-color: rgba(217, 83, 79, 0.45); }
form .notices.blue { border-color: rgba(91, 192, 222, 0.6); }
form .notices.green { border-color: rgba(92, 184, 92, 0.55); }

form .notices.yellow,
form .notices.red,
form .notices.blue,
form .notices.green {
  border-left-width: 8px;
}

form .notices p {
  margin: 0.6rem 0;
}

/* Form section titles (fieldset legends): centred, a bit larger, orange */
.post section.form fieldset > legend,
.post section.form legend {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  color: #dd7722;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}

/* Message page: date/time banner under the title */
.message-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.6rem 0 1rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: #dd7722;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.mailbox-detail .post-nav-tags .label {
  margin: 0;
}

/* Notebook table: fit the card width instead of scrolling horizontally */
.gsm-notebook-body .gsm-table-scroll {
  overflow-x: visible;
}

.gsm-notebook-body .flex-table {
  min-width: 0;
  table-layout: auto;
}

.gsm-notebook-body .flex-table th,
.gsm-notebook-body .flex-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.gsm-notebook-body .flex-table td.first {
  min-width: 5.5rem;
  overflow-wrap: break-word;
}

@media (max-width: 640px) {
  .gsm-notebook-body {
    padding: 0 0.75rem 1.25rem;
  }

  .gsm-notebook-body .flex-table {
    font-size: 0.78rem;
  }

  .gsm-notebook-body .flex-table th,
  .gsm-notebook-body .flex-table td {
    padding: 0.45rem 0.25rem;
  }

  .gsm-notebook-body .flex-table thead th {
    font-size: 0.62rem;
    letter-spacing: 0;
  }

  .gsm-notebook-body .flex-table td.first {
    min-width: 0;
  }
}

/* Appointment form buttons: round orange pill like the other site buttons */
form[data-appt-validate] .buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

form[data-appt-validate] .buttons .button,
form[data-appt-validate] .buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 0.55rem 1.6rem;
  border: 1px solid #e28a41;
  border-radius: 100px;
  background: #e4924e;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 3px 0 #dd7722, 0 4px 10px rgba(228, 146, 78, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s, border-color 0.2s;
}

form[data-appt-validate] .buttons .button:hover,
form[data-appt-validate] .buttons .button:focus-visible,
form[data-appt-validate] .buttons button:hover,
form[data-appt-validate] .buttons button:focus-visible {
  border-color: #df7c2b;
  background: #e18438;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #dd7722, 0 8px 16px rgba(228, 146, 78, 0.45);
}

form[data-appt-validate] .buttons .button:active,
form[data-appt-validate] .buttons button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #dd7722, 0 2px 4px rgba(228, 146, 78, 0.3);
}

form[data-appt-validate] .buttons button[type="reset"] {
  background: #fff;
  color: #dd7722;
  border-color: #e4924e;
  box-shadow: none;
}
