/* Home v113: consistent rows, three selected offers, existing card actions retained. */
#root .fs-home-page {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
#root .fs-home-page .fs-home-featured {
  margin: 6px 0 28px;
  border-radius: 22px;
  min-height: 250px;
  box-shadow: 0 8px 24px #0b284714;
  overflow: hidden;
}
#root .fs-home-page .fs-home-featured .hero-copy {
  width: min(65%, 760px) !important;
  max-width: min(65%, 760px) !important;
  padding: 4px 0;
}
#root .fs-home-page .fs-home-featured .hero-copy h2 {
  font-size: clamp(26px, 2.5vw, 36px) !important;
  line-height: 1.2 !important;
  max-width: 24ch !important;
  margin: 10px 0 !important;
}
#root .fs-home-page .fs-home-featured .hero-copy button {
  min-height: 44px;
  margin-top: 18px;
  border-radius: 10px;
}
#root .fs-home-page .fs-home-section {
  min-width: 0;
  padding: 24px;
  margin: 0 0 28px;
  background: #fff;
  border: 1px solid #dce5ed;
  border-radius: 20px;
  box-shadow: 0 3px 16px #0b284706;
}
#root .fs-home-page .fs-home-section .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e7edf2;
}
#root .fs-home-page .fs-home-section .section-heading p {
  margin: 0 0 5px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.1em;
  color: #356381;
  font-weight: 650;
}
#root .fs-home-page .fs-home-section .section-heading h2 {
  font-size: clamp(21px, 1.7vw, 26px) !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  color: #0b2847;
}
#root .fs-home-page .fs-home-section .section-heading > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #ccdbe5;
  border-radius: 9px;
  background: #f5f9fc;
  color: #174b6f;
  font-size: 14px !important;
  font-weight: 600;
  white-space: nowrap;
}
#root .fs-home-page .fs-home-section .section-heading > button:hover {
  background: #e8f1f7;
  border-color: #9bb6c9;
}
#root .fs-home-page .fs-home-section .home-events,
#root .fs-home-page .fs-home-section .offer-grid.fs-home-offers {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin: 0 !important;
  align-items: stretch;
  min-width: 0;
}
#root .fs-home-page .home-events > article {
  display: flex;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
#root .fs-home-page .home-events .event-card-main,
#root .fs-home-page .fs-home-offers > .offer-card {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0;
  width: 100%;
  height: 100% !important;
  border: 1px solid #d9e3eb !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 3px 10px #0b284707 !important;
  transition:
    box-shadow 0.18s,
    border-color 0.18s;
}
#root .fs-home-page .home-events .event-card-main:hover,
#root .fs-home-page .fs-home-offers > .offer-card:hover {
  transform: none !important;
  border-color: #afc4d3 !important;
  box-shadow: 0 6px 20px #0b284712 !important;
}
#root .fs-home-page .home-events .event-thumb,
#root .fs-home-page .fs-home-offers .offer-visual {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16/9;
  flex: 0 0 auto !important;
  border-radius: 0 !important;
  background-size: cover;
  background-position: center;
}
#root .fs-home-page .fs-home-offers .offer-visual.fit-contain {
  background-size: contain;
  background-repeat: no-repeat;
}
#root .fs-home-page .home-events .event-date {
  position: relative !important;
  inset: auto !important;
  align-self: flex-start;
  display: flex !important;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 16px 16px 0 !important;
  padding: 6px 10px !important;
  border: 1px solid #d6e3ed;
  border-radius: 8px;
  background: #edf4f9;
  box-shadow: none;
}
#root .fs-home-page .home-events .event-date strong {
  font-size: 20px !important;
  line-height: 1.2 !important;
}
#root .fs-home-page .home-events .event-date small {
  font-size: 12px !important;
  line-height: 1.2 !important;
}
#root .fs-home-page .home-events .event-info {
  padding: 12px 16px !important;
  margin: 0 !important;
  min-width: 0;
}
#root .fs-home-page .home-events .event-info > p {
  font-size: 12px !important;
  margin: 0 0 6px !important;
  color: #516c80;
}
#root .fs-home-page .home-events .event-title-button {
  font-size: 18px !important;
  line-height: 1.35 !important;
  margin: 0 0 9px !important;
  padding: 0 !important;
  min-height: 0 !important;
  color: #10344e;
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
}
#root .fs-home-page .home-events .event-info > span {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #536b7b;
}
#root .fs-home-page .home-events .event-commercial {
  margin: 0 16px 12px !important;
  padding: 12px 0 !important;
  width: auto !important;
  border-top: 1px solid #e4ebf1;
  border-bottom: 1px solid #e4ebf1;
  gap: 10px !important;
  box-sizing: border-box;
}
#root .fs-home-page .home-events .attendees,
#root .fs-home-page .home-events .event-threshold {
  margin: 0 16px 12px !important;
  width: auto !important;
  box-sizing: border-box;
}
#root .fs-home-page .home-events .fs-card-action {
  margin: auto 16px 16px !important;
  padding-top: 12px;
  width: auto !important;
}
#root .fs-home-page .home-events .event-register {
  width: 100% !important;
  min-height: 42px !important;
  border-radius: 9px !important;
}
#root .fs-home-page .fs-home-offers .offer-body {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  gap: 0;
  padding: 16px !important;
  min-width: 0;
}
#root .fs-home-page .fs-home-offers .fs-offer-copy {
  margin-bottom: 12px;
}
#root .fs-home-page .fs-home-offers .fs-offer-heading h3 {
  font-size: 18px !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}
#root .fs-home-page .fs-home-offers .fs-offer-summary {
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin-top: 8px;
}
#root .fs-home-page .fs-home-offers .offer-commercial {
  margin: 0 0 12px !important;
  padding: 12px 0 !important;
  border-top: 1px solid #e4ebf1;
  border-bottom: 1px solid #e4ebf1;
}
#root .fs-home-page .fs-home-offers .offer-footer {
  margin-top: auto !important;
  padding-top: 14px;
  min-height: 0;
}
#root .fs-home-page .fs-home-offers .offer-footer > button {
  min-height: 42px !important;
  width: 100% !important;
  border-radius: 9px !important;
}
#root
  .fs-home-page
  :is(.fs-home-offers, .section-heading > button):focus-visible {
  outline: 3px solid #3581b7;
  outline-offset: 4px;
}
@media (max-width: 1100px) and (min-width: 761px) {
  #root .fs-home-page .fs-home-section {
    padding: 18px;
  }
  #root .fs-home-page .fs-home-section .home-events,
  #root .fs-home-page .fs-home-section .offer-grid.fs-home-offers {
    gap: 12px !important;
  }
}
@media (max-width: 760px) {
  #root .fs-home-page .fs-home-featured {
    margin-bottom: 22px;
    min-height: 0 !important;
    border-radius: 16px !important;
  }
  #root .fs-home-page .fs-home-featured .hero-copy {
    width: 100% !important;
    max-width: 100% !important;
  }
  #root .fs-home-page .fs-home-featured .hero-copy h2 {
    font-size: 26px !important;
    max-width: 100% !important;
  }
  #root .fs-home-page .fs-home-section {
    padding: 16px 12px;
    margin-bottom: 20px;
    border-radius: 16px;
  }
  #root .fs-home-page .fs-home-section .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
  }
  #root .fs-home-page .fs-home-section .section-heading h2 {
    font-size: 22px !important;
  }
  #root .fs-home-page .fs-home-section .section-heading > button {
    min-height: 44px;
  }
  #root .fs-home-page .fs-home-section .home-events {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
  #root .fs-home-page .fs-home-section .offer-grid.fs-home-offers {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-x: contain;
    padding: 0 0 12px !important;
    align-items: stretch;
    scrollbar-width: thin;
    scrollbar-color: #7f9eb4 #e9f0f5;
  }
  #root .fs-home-page .fs-home-offers > .offer-card {
    flex: 0 0 88% !important;
    max-width: 340px !important;
    scroll-snap-align: start;
    height: auto !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #root .fs-home-page .fs-home-offers > .offer-card,
  #root .fs-home-page .home-events > article {
    animation: none !important;
    transition: none !important;
  }
}
/* Reset inherited list layouts only inside the home card rows. */
#root .fs-home-page .home-events .event-card-main {
  padding: 0 !important;
  gap: 0 !important;
  align-items: stretch !important;
}
#root .fs-home-page .home-events .event-thumb {
  display: block !important;
}
#root .fs-home-page .home-events .event-date {
  flex-direction: row !important;
}
#root .fs-home-page .home-events .event-date small {
  margin: 0 !important;
}
#root .fs-home-page .home-events .event-info {
  flex: 0 0 auto !important;
}
#root .fs-home-page .home-events .event-title-button {
  min-height: 2.7em !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between;
  gap: 8px;
}
#root .fs-home-page .home-events .event-commercial {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex: 0 0 auto !important;
}
#root .fs-home-page .home-events .event-commercial .event-price {
  min-width: 0;
  flex: 1 1 130px;
}
#root .fs-home-page .home-events .event-commercial > b {
  flex: 0 0 auto;
  max-width: 100%;
  padding: 5px 10px;
  white-space: normal;
}
#root .fs-home-page .home-events .attendees {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  padding: 0 !important;
}
#root .fs-home-page .home-events .attendees > span:empty {
  display: none !important;
}
#root .fs-home-page .home-events .attendees > small {
  display: block !important;
  width: auto !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  white-space: normal !important;
}
#root .fs-home-page .home-events .attendees > small > strong {
  display: inline !important;
  margin-right: 4px !important;
  font-size: 13px !important;
}
#root .fs-home-page .home-events .event-threshold {
  padding: 8px 10px !important;
  min-height: 0 !important;
}
#root .fs-home-page .home-events .fs-card-action {
  min-height: 82px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
#root .fs-home-page .fs-home-offers .fs-offer-heading {
  min-height: 2.7em;
  align-items: flex-start;
}
/* Long category names must wrap inside the sidebar, including at browser zoom. */
#root .sidebar nav,
#root .sidebar .nav-group,
#root .sidebar .fs-nav-group {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#root .sidebar nav .fs-subnav {
  grid-template-columns: minmax(0, 1fr) !important;
  min-width: 0;
  max-width: 100%;
  width: auto;
  box-sizing: border-box;
}
#root .sidebar nav .fs-subnav button.fs-subnav-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  box-sizing: border-box;
  white-space: normal !important;
  transform: none !important;
}
#root .sidebar nav .fs-subnav button.fs-subnav-item > i {
  display: block;
  flex: 0 0 18px !important;
  width: 18px !important;
  margin: 0 !important;
}
#root
  .sidebar
  nav
  .fs-subnav
  button.fs-subnav-item
  > span:not(.fs-manual-badge) {
  display: block !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  padding: 2px 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
  word-break: normal;
  text-overflow: clip !important;
  text-align: left !important;
  line-height: 1.4 !important;
  background: transparent !important;
  border-radius: 0 !important;
  font-size: 12px !important;
}
#root .sidebar nav .fs-subnav button.fs-subnav-item > :is(b, .fs-manual-badge) {
  flex: 0 0 auto !important;
  position: static !important;
  transform: none !important;
  min-width: 18px;
  max-width: none;
  margin-left: 0 !important;
  box-sizing: border-box;
}
#root .fs-home-page .home-events .attendees > small {
  margin: 0 !important;
  align-self: stretch !important;
  text-align: left !important;
  max-width: 100%;
}
