:root {
  --sf-purple: #4c1f7a;
  --sf-purple-deep: #3a1560;
  --sf-purple-ink: #24103d;
  --sf-teal: #00a499;
  --sf-teal-deep: #007a70;
  --sf-yellow: #ffdd00;
  --sf-action: var(--sf-teal);
  --sf-action-hover: var(--sf-teal-deep);
  --sf-action-text: var(--sf-ink);
  --sf-ink: #101820;
  --sf-ink-soft: #3b4252;
  --sf-muted: #6a7380;
  --sf-line: #e4e2dd;
  --sf-cream: #f7f5f0;
  --sf-paper: #ffffff;
  --sf-font: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sf-shadow: 0 12px 32px rgba(16, 24, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  margin: 0;
}

body.sf-site {
  min-height: 100%;
  margin: 0;
  background: var(--sf-paper);
  color: var(--sf-ink);
  font-family: var(--sf-font);
  font-size: 16px;
  font-feature-settings: "kern" 1;
  line-height: 1.5;
}

body.sf-site a {
  color: inherit;
}

body.sf-site img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font-family: var(--sf-font);
}

.sf-container {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
}

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

.sf-skip:focus {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--sf-action);
  color: var(--sf-action-text);
  border-radius: 6px;
  font-weight: 900;
}

.sf-arrow,
.sf-external {
  flex: 0 0 auto;
  vertical-align: middle;
}

.sf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.sf-button:hover,
.sf-button:focus {
  transform: translateY(-1px);
  text-decoration: none;
}

.sf-button--large {
  min-height: 52px;
  padding: 16px 28px;
  font-size: 15.5px;
}

.sf-button--yellow {
  background: var(--sf-action);
  color: var(--sf-action-text);
}

.sf-button--yellow:hover,
.sf-button--yellow:focus {
  background: var(--sf-action-hover);
  color: var(--sf-action-text);
}

.sf-button--outline-dark {
  border: 1.5px solid var(--sf-ink);
  background: transparent;
  color: var(--sf-ink);
}

.sf-button--outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
}

.sf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header and mega menu */
.sf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--sf-line);
  background: #fff;
}

.sf-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1280px, calc(100% - 80px));
  min-height: 76px;
  margin: 0 auto;
}

.sf-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--sf-ink);
  text-decoration: none;
}

.sf-brand:hover {
  text-decoration: none;
}

.sf-brand__mark {
  display: inline-flex;
  color: var(--sf-purple);
}

.sf-brand__logo {
  display: block;
  width: 132px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(18%) sepia(51%) saturate(1778%) hue-rotate(251deg) brightness(84%) contrast(96%);
}

.sf-brand__text {
  display: grid;
  gap: 3px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.sf-brand__text small {
  color: rgba(16, 24, 32, 0.62);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.sf-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.sf-nav__item {
  position: static;
}

.sf-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1.5px dashed transparent;
  border-radius: 6px;
  color: var(--sf-ink);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  opacity: 0.88;
}

.sf-nav__link:hover,
.sf-nav__link:focus,
.sf-nav__item.is-open > .sf-nav__link {
  color: var(--sf-teal-deep);
  text-decoration: none;
  opacity: 1;
}

.sf-nav__item.is-open > .sf-nav__link {
  border-color: var(--sf-teal);
}

.sf-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 150ms ease;
}

.sf-nav__item.is-open .sf-chevron {
  transform: translateY(2px) rotate(225deg);
}

.sf-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  display: none;
  width: 100vw;
  transform: translateX(-50%);
  border-top: 1px solid var(--sf-line);
  border-bottom: 1px solid var(--sf-line);
  background: #fff;
  box-shadow: var(--sf-shadow);
  color: var(--sf-ink);
  padding: 32px 40px 36px;
  animation: sf-menu-in 160ms ease-out;
}

.sf-nav__item.is-open .sf-mega {
  display: block;
}

.sf-mega__grid {
  display: flex;
  align-items: stretch;
  gap: 56px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.sf-mega__columns {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(var(--sf-menu-cols), minmax(0, 1fr));
  gap: 40px;
}

.sf-mega__section h2 {
  margin: 0 0 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sf-line);
  color: var(--sf-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-transform: uppercase;
}

.sf-mega__section h2:empty::before {
  content: "\00a0";
}

.sf-mega__link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sf-line);
  color: var(--sf-ink);
  text-decoration: none;
}

.sf-mega__link:hover,
.sf-mega__link:focus {
  color: var(--sf-purple);
  text-decoration: none;
}

.sf-mega__link span {
  flex: 1;
  min-width: 0;
}

.sf-mega__link strong {
  display: block;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.3;
}

.sf-mega__link small {
  display: block;
  margin-top: 3px;
  color: var(--sf-muted);
  font-size: 13px;
  line-height: 1.4;
}

.sf-mega__feature {
  position: relative;
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sf-purple);
  color: #fff;
  padding: 22px;
}

.sf-mega__feature .sf-rosette {
  position: absolute;
  top: -30px;
  right: -30px;
  opacity: 0.12;
}

.sf-mega__feature span {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sf-mega__feature strong {
  position: relative;
  display: block;
  max-width: 230px;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
}

.sf-mega__feature a {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
  border-radius: 999px;
  background: var(--sf-action);
  color: var(--sf-action-text);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.sf-menu-backdrop {
  position: fixed;
  inset: 76px 0 0;
  z-index: -1;
  display: none;
  background: rgba(16, 24, 32, 0.18);
}

.sf-header.has-open-menu .sf-menu-backdrop {
  display: block;
}

.sf-account {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.sf-account__login {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1.5px solid var(--sf-line);
  border-radius: 999px;
  color: var(--sf-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.sf-account__login:hover,
.sf-account__login:focus {
  text-decoration: none;
}

.sf-account__join {
  min-height: 36px;
  padding: 9px 16px;
  font-size: 13px;
}

.sf-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1.5px solid var(--sf-line);
  border-radius: 999px;
  background: #fff;
  padding: 10px;
}

.sf-nav-toggle span:not(.sf-visually-hidden) {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 1px;
  background: var(--sf-ink);
}

@keyframes sf-menu-in {
  from {
    opacity: 0;
    transform: translate(-50%, -4px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Home */
.sf-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--sf-line);
  background: var(--sf-cream);
}

.sf-hero__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(76, 31, 122, 0.035) 0, rgba(76, 31, 122, 0.035) 1px, transparent 1px, transparent 14px);
}

.sf-hero__contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.13;
}

.sf-hero__contours path {
  fill: none;
  stroke: var(--sf-purple);
  stroke-width: 1.2;
}

.sf-hero__county {
  position: absolute;
  top: 60px;
  right: -120px;
  width: 480px;
  height: 360px;
  opacity: 0.08;
  pointer-events: none;
}

.sf-hero__county path {
  fill: none;
  stroke: var(--sf-purple);
  stroke-width: 2;
}

.sf-hero__county circle {
  fill: var(--sf-purple);
}

.sf-hero__rosette {
  position: absolute;
  pointer-events: none;
}

.sf-hero__rosette--left {
  left: -120px;
  top: -80px;
  color: var(--sf-purple);
  opacity: 0.05;
}

.sf-hero__rosette--right {
  right: -60px;
  bottom: -40px;
  color: var(--sf-teal);
  opacity: 0.04;
}

.sf-hero__coast {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  opacity: 0.7;
}

.sf-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 1fr);
  gap: 72px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 96px;
}

.sf-hero__copy h1 {
  max-width: 700px;
  margin: 20px 0 22px;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.sf-hero__copy h1 span {
  color: var(--sf-purple);
}

.sf-hero__copy h1 .sf-hero__teal {
  color: var(--sf-teal);
}

.sf-hero__copy p {
  max-width: 500px;
  margin: 0 0 32px;
  color: var(--sf-ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.sf-photo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(3, 152px);
  gap: 12px;
  position: relative;
}

.sf-photo-grid > *,
.sf-photo-tile {
  min-width: 0;
  border-radius: 6px;
}

.sf-photo-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  color: #fff;
  padding: 18px;
  text-decoration: none;
}

body.sf-site a.sf-photo-tile,
body.sf-site a.sf-photo-tile:hover,
body.sf-site a.sf-photo-tile:focus {
  color: #fff;
  text-decoration: none;
}

a.sf-photo-tile:hover::before,
a.sf-photo-tile:focus::before {
  background: linear-gradient(90deg, rgba(36, 16, 61, 0.78) 0%, rgba(36, 16, 61, 0.22) 68%);
}

.sf-photo-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(36, 16, 61, 0.66) 0%, rgba(36, 16, 61, 0.12) 68%);
}

.sf-photo-tile > * {
  position: relative;
  z-index: 1;
}

.sf-photo-tile span {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  line-height: 1.1;
  text-transform: uppercase;
}

.sf-photo-tile strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
}

.sf-photo-tile .sf-arrow {
  flex: 0 0 auto;
  color: #fff;
  opacity: 0.9;
}

.sf-photo-tile .sf-arrow path {
  stroke: currentColor;
}

/* Background images are now set via inline style on each .sf-photo-tile
   in the mod_custom module so admins can update them without touching CSS.
   These modifier classes remain as fallbacks / convenience shortcuts. */
.sf-photo-tile--water {
  background-image: url("/images/headers/scout-jumping-into-lake.jpg");
}

.sf-photo-tile--ground {
  background-image: url("/images/stories/Winning-Scout-Team-1.jpg");
}

.sf-photo-tile--fire {
  background-image: url("/images/Bradfield_Campfire_circle.jpg");
}

.sf-finder {
  background: var(--sf-purple);
  color: #fff;
  padding: 32px 0;
}

.sf-finder__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.sf-finder__label {
  flex: 0 0 auto;
}

.sf-finder__label span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sf-finder__label h2 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.sf-finder__form {
  flex: 1;
  display: flex;
  max-width: 560px;
  margin-left: auto;
  border-radius: 999px;
  background: #fff;
  padding: 6px;
}

.sf-finder__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--sf-ink);
  padding: 10px 18px;
  font-size: 15px;
}

.sf-finder__form button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--sf-action);
  color: var(--sf-action-text);
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.sf-finder__form button:hover,
.sf-finder__form button:focus {
  background: var(--sf-action-hover);
}

.sf-finder__inner > p {
  max-width: 180px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.4;
}

.sf-news {
  background: #fff;
  padding: 96px 0;
}

.sf-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.sf-section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.sf-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sf-filter-tabs button {
  border: 1.5px solid var(--sf-line);
  border-radius: 999px;
  background: #fff;
  color: var(--sf-ink);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sf-filter-tabs button.is-active {
  border-color: var(--sf-ink);
  background: var(--sf-ink);
  color: #fff;
}

.sf-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.sf-news-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.sf-news-card:hover,
.sf-news-card:focus {
  text-decoration: none;
}

.sf-news-card:hover strong,
.sf-news-card:focus strong {
  color: var(--sf-purple);
}

.sf-news-card__image {
  display: block;
  height: 220px;
  margin-bottom: 18px;
  border-radius: 6px;
  background-position: center;
  background-size: cover;
}

.sf-news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sf-news-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1.5px solid var(--sf-purple);
  border-radius: 999px;
  background: #fff;
  color: var(--sf-purple);
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sf-news-card__meta time {
  color: var(--sf-muted);
  font-size: 12px;
  font-weight: 700;
}

.sf-news-card strong {
  display: block;
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
}

.sf-news-card em {
  display: block;
  color: var(--sf-ink-soft);
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
}

.sf-cta {
  padding: 0 0 96px;
}

.sf-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr);
  gap: 24px;
}

.sf-volunteer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 1fr);
  align-items: center;
  gap: 40px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--sf-purple);
  color: #fff;
  padding: 48px 56px;
}

.sf-volunteer__copy,
.sf-volunteer__image {
  position: relative;
  z-index: 1;
}

.sf-volunteer h2 {
  max-width: 520px;
  margin: 10px 0 14px;
  color: #fff;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.sf-volunteer p {
  max-width: 460px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15.5px;
  line-height: 1.55;
}

.sf-volunteer__image {
  height: 200px;
  border-radius: 6px;
  background: url("https://images.unsplash.com/photo-1593113598332-cd288d649433?w=1200&q=70&auto=format&fit=crop") center / cover;
}

.sf-volunteer__mark {
  position: absolute;
  top: -60px;
  right: -60px;
  color: #fff;
  opacity: 0.08;
}

.sf-safeguarding {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 10px;
  background: var(--sf-yellow);
  color: var(--sf-ink);
  padding: 32px 36px;
}

.sf-safeguarding span {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sf-safeguarding h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
}

.sf-safeguarding p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
}

.sf-safeguarding__phone {
  display: block;
  border-radius: 6px;
  background: var(--sf-ink);
  color: #fff;
  padding: 14px 18px;
  text-decoration: none;
}

.sf-safeguarding__phone:hover,
.sf-safeguarding__phone:focus {
  color: #fff;
  text-decoration: none;
}

.sf-safeguarding__phone span {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.sf-safeguarding__phone strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  font-weight: 900;
}

/* Interior pages */
.sf-breadcrumbs {
  border-bottom: 1px solid var(--sf-line);
  background: var(--sf-cream);
}

.sf-breadcrumbs ul.breadcrumb,
.sf-breadcrumbs ol.breadcrumb,
.sf-breadcrumbs .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
  padding: 14px 0 !important;
  list-style: none !important;
  background: transparent !important;
}

.sf-breadcrumbs .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sf-muted);
  font-size: 13px;
  font-weight: 800;
  list-style: none !important;
}

.sf-breadcrumbs .breadcrumb-item::marker {
  content: "";
}

.sf-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(16, 24, 32, 0.35);
}

.sf-breadcrumbs .breadcrumb-item a {
  color: var(--sf-purple);
  text-decoration: none;
}

.sf-breadcrumbs .breadcrumb-item.active {
  color: var(--sf-ink);
}

.sf-page-content {
  padding: 56px 0 72px;
}

.sf-page-content__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.sf-page-content__grid:has(.sf-sidebar) {
  grid-template-columns: 280px minmax(0, 1fr);
}

.sf-page-content__grid:has(.sf-sidebar + .sf-component + .sf-sidebar) {
  grid-template-columns: 260px minmax(0, 1fr) 260px;
}

.sf-component {
  min-width: 0;
}

.sf-component h1,
.sf-component h2,
.sf-component h3,
.sf-component .page-header h1,
.sf-component .page-header h2 {
  color: var(--sf-ink);
  font-weight: 900;
  letter-spacing: 0;
}

.sf-component a {
  color: var(--sf-purple);
}

.sf-article {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.sf-article__tools {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
}

.sf-article__section {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 0 16px;
  border: 1.5px solid var(--sf-purple);
  border-radius: 999px;
  color: var(--sf-purple);
  padding: 3px 11px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
}

.sf-article__header {
  margin-bottom: 32px;
}

.sf-article__header h1 {
  max-width: 840px;
  margin: 0 0 18px;
  color: var(--sf-ink);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.03;
}

.sf-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--sf-muted);
  font-size: 13px;
  font-weight: 800;
}

.sf-article__meta span,
.sf-article__meta em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
}

.sf-article__meta span {
  border: 1.5px solid var(--sf-purple);
  color: var(--sf-purple);
}

.sf-article__meta em {
  background: var(--sf-cream);
  color: var(--sf-muted);
}

.sf-article__tags,
.sf-news-list-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sf-article__tags .tags,
.sf-news-list-card__tags .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-article__tags a,
.sf-news-list-card__tags a {
  display: inline-flex;
  border-radius: 999px;
  background: var(--sf-cream);
  color: var(--sf-purple);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.sf-article__image {
  margin: 0 auto 34px;
  max-width: 760px;
}

.sf-article__image img {
  display: block;
  width: 100%;
  max-height: 430px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.sf-article__image figcaption {
  margin-top: 8px;
  color: var(--sf-muted);
  font-size: 13px;
}

.sf-article__body {
  color: var(--sf-ink);
  font-size: 17px;
  line-height: 1.72;
}

.sf-article__body > *:first-child {
  margin-top: 0;
}

/* ---- Override editor-injected inline font styles ---- */

/* Force template font on anything the editor wraps in a span/font/div with a style attr.
   Uses !important because inline styles win by default. */
.sf-article__body span[style],
.sf-article__body font,
.sf-article__body p[style],
.sf-article__body h1[style],
.sf-article__body h2[style],
.sf-article__body h3[style],
.sf-article__body h4[style],
.sf-article__body li[style],
.sf-article__body td[style],
.sf-article__body th[style] {
  font-family: var(--sf-font) !important;
}

/* Kill editor-applied font sizes on inline spans — body size should govern.
   Block-level font-sizes (h2, h3…) are kept intentional so not targeted here. */
.sf-article__body span[style*="font-size"],
.sf-article__body font[size] {
  font-size: inherit !important;
}

/* Stop editors painting text black/white and hiding it against the background */
.sf-article__body span[style*="color"],
.sf-article__body font[color] {
  color: inherit;
}

/* ---- Block elements ---- */

.sf-article__body p,
.sf-article__body ul,
.sf-article__body ol,
.sf-article__body table,
.sf-article__body blockquote,
.sf-article__body pre,
.sf-article__body details {
  margin-top: 0;
  margin-bottom: 1.15em;
}

.sf-article__body h1,
.sf-article__body h2,
.sf-article__body h3,
.sf-article__body h4,
.sf-article__body h5,
.sf-article__body h6 {
  color: var(--sf-ink);
  font-family: var(--sf-font);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
}

.sf-article__body h1 {
  margin: 1.6em 0 0.6em;
  font-size: 36px;
}

.sf-article__body h2 {
  margin: 1.55em 0 0.55em;
  font-size: 32px;
}

.sf-article__body h3 {
  margin: 1.35em 0 0.45em;
  font-size: 24px;
}

.sf-article__body h4 {
  margin: 1.25em 0 0.4em;
  font-size: 19px;
}

.sf-article__body h5 {
  margin: 1.2em 0 0.35em;
  font-size: 17px;
}

.sf-article__body h6 {
  margin: 1.15em 0 0.3em;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.sf-article__body a {
  color: var(--sf-purple);
  font-weight: 800;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* ---- Lists ---- */

.sf-article__body ul,
.sf-article__body ol {
  padding-left: 1.6em;
}

.sf-article__body li {
  margin-bottom: 0.4em;
}

.sf-article__body li > ul,
.sf-article__body li > ol {
  margin-top: 0.4em;
  margin-bottom: 0;
}

/* ---- Inline text elements ---- */

.sf-article__body strong,
.sf-article__body b {
  font-weight: 800;
}

.sf-article__body mark {
  background: rgba(255, 221, 0, 0.45);
  border-radius: 2px;
  padding: 1px 3px;
  color: inherit;
}

.sf-article__body del,
.sf-article__body s {
  opacity: 0.6;
}

.sf-article__body abbr[title] {
  cursor: help;
  text-decoration: underline dotted;
}

/* ---- Rule ---- */

.sf-article__body hr {
  border: none;
  border-top: 2px solid var(--sf-line);
  margin: 2em 0;
}

/* ---- Images ---- */

.sf-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.sf-article__body img[style*="float: left"],
.sf-article__body img[style*="float:left"] {
  margin: 0.35em 1.4em 1em 0;
}

.sf-article__body img[style*="float: right"],
.sf-article__body img[style*="float:right"] {
  margin: 0.35em 0 1em 1.4em;
}

.sf-article__body figure {
  margin: 1.5em 0;
}

.sf-article__body figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--sf-muted);
  text-align: center;
}

/* ---- Blockquote ---- */

.sf-article__body blockquote {
  border-left: 5px solid var(--sf-yellow);
  background: var(--sf-cream);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  font-weight: 700;
  font-style: normal;
}

.sf-article__body blockquote p:last-child {
  margin-bottom: 0;
}

/* ---- Code ---- */

.sf-article__body code,
.sf-article__body kbd,
.sf-article__body samp {
  background: var(--sf-cream);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.88em;
  font-family: 'Courier New', Courier, monospace;
  color: var(--sf-purple);
}

.sf-article__body pre {
  background: var(--sf-cream);
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

.sf-article__body pre code {
  background: none;
  border-radius: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* ---- Table ---- */

.sf-article__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  overflow-x: auto;
  display: block;
}

.sf-article__body thead {
  border-bottom: 2px solid var(--sf-line);
}

.sf-article__body th,
.sf-article__body td {
  border-bottom: 1px solid var(--sf-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.sf-article__body th {
  background: var(--sf-cream);
  font-weight: 900;
}

.sf-article__body tr:last-child td {
  border-bottom: none;
}

/* ---- Bootstrap utility classes injected by editors ---- */

/* Text alignment */
.sf-article__body .text-center  { text-align: center; }
.sf-article__body .text-right,
.sf-article__body .text-end     { text-align: right; }
.sf-article__body .text-left,
.sf-article__body .text-start   { text-align: left; }
.sf-article__body .text-justify { text-align: justify; }

/* Floats */
.sf-article__body .float-right,
.sf-article__body .float-end    { float: right; margin: 0 0 1em 1.4em; }
.sf-article__body .float-left,
.sf-article__body .float-start  { float: left; margin: 0 1.4em 1em 0; }
.sf-article__body .clearfix::after { content: ""; display: table; clear: both; }

/* Responsive images */
.sf-article__body .img-fluid,
.sf-article__body .img-responsive { max-width: 100%; height: auto; }

/* Bootstrap grid — enough to honour two-column layouts from the editor */
.sf-article__body .container,
.sf-article__body .container-fluid { width: 100%; }

.sf-article__body .row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -10px;
}

.sf-article__body [class*="col-"] {
  padding-inline: 10px;
  width: 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  .sf-article__body .col-sm-6  { width: 50%; }
  .sf-article__body .col-sm-4  { width: 33.333%; }
  .sf-article__body .col-sm-3  { width: 25%; }
  .sf-article__body .col-sm-8  { width: 66.667%; }
  .sf-article__body .col-sm-9  { width: 75%; }
  .sf-article__body .col-sm-12 { width: 100%; }
}

@media (min-width: 768px) {
  .sf-article__body .col-md-6  { width: 50%; }
  .sf-article__body .col-md-4  { width: 33.333%; }
  .sf-article__body .col-md-3  { width: 25%; }
  .sf-article__body .col-md-8  { width: 66.667%; }
  .sf-article__body .col-md-9  { width: 75%; }
  .sf-article__body .col-md-12 { width: 100%; }
  .sf-article__body .col-lg-6  { width: 50%; }
  .sf-article__body .col-lg-4  { width: 33.333%; }
  .sf-article__body .col-lg-3  { width: 25%; }
  .sf-article__body .col-lg-8  { width: 66.667%; }
  .sf-article__body .col-lg-9  { width: 75%; }
  .sf-article__body .col-lg-12 { width: 100%; }
}

/* Bootstrap wells / cards */
.sf-article__body .well,
.sf-article__body .card,
.sf-article__body .card-body {
  background: var(--sf-cream);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 1.15em;
}

/* Bootstrap alerts */
.sf-article__body .alert {
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 1.15em;
  border-left: 4px solid transparent;
}

.sf-article__body .alert-info    { background: #f3eefa; border-color: var(--sf-purple); }
.sf-article__body .alert-success { background: #e6f7f6; border-color: var(--sf-teal); }
.sf-article__body .alert-warning { background: #fff8e6; border-color: #e8a000; }
.sf-article__body .alert-danger,
.sf-article__body .alert-error   { background: #fdf0ee; border-color: #c0392b; }

/* Bootstrap badges/labels from old content */
.sf-article__body .badge,
.sf-article__body .label {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
  background: var(--sf-purple);
  color: #fff;
}

/* ---- Phoca Download ---- */

.sf-article__body .phocadownloadfile32,
.sf-article__body .phocadownloadfile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0.5em 0 1em;
  border-radius: 999px;
  background: var(--sf-action);
  color: var(--sf-action-text);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 900;
}

.sf-article__body .phocadownloadfile32 a,
.sf-article__body .phocadownloadfile a {
  color: var(--sf-action-text);
  text-decoration: none;
}

.sf-article__info,
.sf-article__pagination,
.sf-article__toc,
.sf-article__login,
.content-links {
  margin: 24px 0;
}

.content-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-links a,
.sf-article__login a {
  display: inline-flex;
  border-radius: 999px;
  background: var(--sf-action);
  color: var(--sf-action-text);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.sf-page .mod-custom .masthead {
  min-height: 0 !important;
  height: auto !important;
  border-bottom: 1px solid var(--sf-line);
  background: var(--sf-cream) !important;
  padding: 54px 0 48px;
  position: relative;
  overflow: hidden;
}

.sf-page .mod-custom .masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(76, 31, 122, 0.04) 0, rgba(76, 31, 122, 0.04) 1px, transparent 1px, transparent 14px);
  pointer-events: none;
}

.sf-page .mod-custom .masthead .container,
.sf-page .mod-custom .masthead .row,
.sf-page .mod-custom .masthead .col-12 {
  display: block;
  width: min(1280px, calc(100% - 80px));
  max-width: none;
  height: auto !important;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.sf-page .mod-custom .masthead h1 {
  margin: 0;
  color: var(--sf-purple) !important;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.sf-content-blog {
  color: var(--sf-ink);
}

.sf-content-blog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.sf-content-blog__head h1 {
  margin: 0;
  color: var(--sf-ink);
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.sf-content-blog__head p,
.sf-content-blog__intro {
  max-width: 520px;
  margin: 0;
  color: var(--sf-ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.sf-content-blog__plugins {
  margin-bottom: 28px;
}

.sf-content-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.sf-content-blog__item {
  min-width: 0;
}

.sf-news-list-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: var(--sf-ink);
  border-radius: 8px;
}

.sf-news-list-card__edit {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
}

.sf-news-list-card__image {
  display: block;
  height: 220px;
  margin-bottom: 18px;
  border-radius: 6px;
  background-color: var(--sf-cream);
  background-position: center;
  background-size: cover;
  text-decoration: none;
}

.sf-news-list-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.sf-news-list-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.sf-news-list-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1.5px solid var(--sf-purple);
  border-radius: 999px;
  background: #fff;
  color: var(--sf-purple);
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sf-news-list-card__meta time {
  color: var(--sf-muted);
  font-size: 12px;
  font-weight: 700;
}

.sf-news-list-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
}

.sf-news-list-card h2 a {
  color: var(--sf-ink);
  text-decoration: none;
}

.sf-news-list-card h2 a:hover,
.sf-news-list-card h2 a:focus {
  color: var(--sf-purple);
  text-decoration: none;
}

.sf-news-list-card__info {
  display: none;
}

.sf-news-list-card p {
  margin: 0 0 18px;
  color: var(--sf-ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.sf-news-list-card__tags {
  margin-bottom: 16px;
}

.sf-news-list-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-top: auto;
  border-radius: 999px;
  background: var(--sf-action);
  color: var(--sf-action-text) !important;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.sf-news-list-card__readmore:hover,
.sf-news-list-card__readmore:focus {
  background: var(--sf-action-hover);
  color: var(--sf-action-text) !important;
  text-decoration: none;
}

.sf-more-news {
  margin-top: 44px;
  border-top: 1px solid var(--sf-line);
  padding-top: 28px;
}

.sf-more-news h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 900;
}

.sf-more-news ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-more-news a {
  color: var(--sf-purple);
  font-weight: 800;
  text-decoration: none;
}

.sf-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  border-top: 1px solid var(--sf-line);
  padding-top: 24px;
}

.sf-pagination__counter {
  margin: 0;
  color: var(--sf-muted);
  font-size: 13px;
  font-weight: 700;
}

.sf-pagination .pagination,
.sf-pagination ul,
.sf-pagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-pagination a,
.sf-pagination span,
.sf-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--sf-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.sf-pagination .page-item.disabled .page-link,
.sf-pagination__item--disabled .sf-pagination__link {
  opacity: 0.35;
}

.sf-pagination .icon-angle-double-left::before {
  content: "<<";
}

.sf-pagination .icon-angle-left::before {
  content: "<";
}

.sf-pagination .icon-angle-right::before {
  content: ">";
}

.sf-pagination .icon-angle-double-right::before {
  content: ">>";
}

.sf-pagination .active a,
.sf-pagination .active span,
.sf-pagination .page-item.active .page-link,
.sf-pagination__item--active .sf-pagination__link {
  border-color: var(--sf-purple);
  background: var(--sf-purple);
  color: #fff;
}

.sf-contact-list {
  margin-top: 8px;
}

.sf-contact-list__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  border-radius: 8px;
  background: var(--sf-cream);
  padding: 16px;
}

.sf-contact-list__toolbar input[type="text"],
.sf-contact-list__limit select {
  min-height: 44px;
  border: 1px solid var(--sf-line);
  border-radius: 6px;
  background: #fff;
  color: var(--sf-ink);
  padding: 10px 12px;
  font: inherit;
}

.sf-contact-list__toolbar input[type="text"] {
  flex: 1 1 260px;
}

.sf-contact-list__limit {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.sf-contact-list__sort {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--sf-muted);
  font-size: 13px;
  font-weight: 800;
}

.sf-contact-list__sort::before {
  content: "Sort:";
}

.sf-contact-list__sort a {
  color: var(--sf-purple);
  text-decoration-color: rgba(76, 31, 122, 0.3);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.sf-contact-list__grid {
  display: grid;
  gap: 18px;
}

.sf-contact-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 12px 36px rgba(16, 24, 32, 0.06);
}

.sf-contact-card.is-unpublished {
  opacity: 0.72;
}

.sf-contact-card__main {
  display: flex;
  min-width: 0;
  gap: 18px;
}

.sf-contact-card__image {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sf-cream);
}

.sf-contact-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-contact-card__content {
  min-width: 0;
}

.sf-contact-card__title {
  margin: 0 0 8px;
  color: var(--sf-ink);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 900;
  line-height: 1.12;
}

.sf-contact-card__title a {
  color: inherit;
  text-decoration: none;
}

.sf-contact-card__title a:hover,
.sf-contact-card__title a:focus {
  color: var(--sf-purple);
}

.sf-contact-card__badge {
  display: inline-flex;
  margin: 0 8px 10px 0;
  border-radius: 999px;
  background: var(--sf-yellow);
  color: var(--sf-ink);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.sf-contact-card__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 12px 0 0;
}

.sf-contact-card__details div {
  min-width: 0;
}

.sf-contact-card__details dt {
  margin: 0 0 3px;
  color: var(--sf-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.sf-contact-card__details dd {
  margin: 0;
  color: var(--sf-ink);
  font-size: 15px;
  line-height: 1.45;
}

.sf-contact-card__details a {
  color: var(--sf-purple);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.sf-contact-card__actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.sf-contact-card__link,
.sf-contact-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  background: var(--sf-action);
  color: var(--sf-action-text) !important;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.sf-contact-list__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  border-top: 1px solid var(--sf-line);
  padding-top: 24px;
}

.sf-contact-list__counter {
  margin: 0;
  color: var(--sf-muted);
  font-size: 13px;
  font-weight: 700;
}

.sf-contact-list__pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-contact-list__pagination a,
.sf-contact-list__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--sf-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.sf-contact-list__pagination .active a,
.sf-contact-list__pagination .active span,
.sf-contact-list__pagination .page-item.active .page-link {
  border-color: var(--sf-purple);
  background: var(--sf-purple);
  color: #fff;
}

/* Weblinks */
.com-weblinks-categories h1,
.com-weblinks-category h1,
.weblink-category h1 {
  margin: 0 0 24px;
  color: var(--sf-ink);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.03;
}

.weblink-category h2 {
  margin: 0 0 12px;
  color: var(--sf-ink);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
}

.com-weblinks-categories .com-content-categories__items,
.com-weblinks-category .category.list-unstyled {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.com-weblinks-categories .com-content-categories__item,
.com-weblinks-category .category.list-unstyled > li {
  min-width: 0;
  margin: 0 !important;
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(16, 24, 32, 0.06);
}

.com-weblinks-categories .com-content-categories__item {
  position: relative;
  overflow: hidden;
}

.com-weblinks-categories .com-content-categories__item::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--sf-purple);
}

.com-weblinks-categories .com-content-categories__item .w-100,
.com-weblinks-category .list-title {
  border: 0;
  background: transparent;
  padding: 0;
}

.com-weblinks-categories .com-content-categories__item a,
.com-weblinks-category .list-title > a,
.com-weblinks-category .list-title > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 100%;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--sf-ink);
  padding: 22px;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.22;
  text-align: left;
  text-decoration: none;
}

.com-weblinks-category .list-title > button {
  cursor: pointer;
}

.com-weblinks-categories .com-content-categories__item a::after,
.com-weblinks-category .list-title > a::after,
.com-weblinks-category .list-title > button::after {
  content: ">";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--sf-action);
  color: var(--sf-action-text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.com-weblinks-categories .com-content-categories__item a:hover,
.com-weblinks-categories .com-content-categories__item a:focus,
.com-weblinks-category .list-title > a:hover,
.com-weblinks-category .list-title > a:focus,
.com-weblinks-category .list-title > button:hover,
.com-weblinks-category .list-title > button:focus {
  color: var(--sf-purple);
  text-decoration: none;
}

.com-weblinks-categories .category-desc,
.weblink-category .category-desc {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--sf-ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.com-weblinks-category__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 24px 0 26px;
  border-radius: 8px;
  background: var(--sf-cream);
  padding: 16px;
}

.com-weblinks-category__filter input[type="text"] {
  flex: 1 1 260px;
  min-height: 44px;
  border: 1px solid var(--sf-line);
  border-radius: 6px;
  background: #fff;
  color: var(--sf-ink);
  padding: 10px 12px;
  font: inherit;
}

.com-weblinks-category__filter .btn {
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 900;
}

.com-weblinks-category__filter .btn-primary {
  border-color: var(--sf-action);
  background: var(--sf-action);
  color: var(--sf-action-text);
}

.com-weblinks-category__filter .btn-primary:hover,
.com-weblinks-category__filter .btn-primary:focus {
  border-color: var(--sf-action-hover);
  background: var(--sf-action-hover);
  color: var(--sf-action-text);
}

.com-weblinks-category__filter .btn-secondary {
  border: 1.5px solid var(--sf-ink);
  background: transparent;
  color: var(--sf-ink);
}

.com-weblinks-category .list-hits,
.com-weblinks-category__counter:empty,
.com-weblinks-category__counter .counter:empty {
  display: none;
}

.com-weblinks-category .item-image {
  max-width: 180px;
  margin: 0 18px 12px 0;
}

.com-weblinks-category .item-image img {
  max-width: 100%;
  border-radius: 8px;
}

.sf-sidebar {
  min-width: 0;
  border-radius: 8px;
  background: var(--sf-cream);
  padding: 20px;
}

/* Footer */
.sf-footer {
  background: var(--sf-purple-ink);
  color: #fff;
}

.sf-events {
  background: var(--sf-teal);
  padding: 44px 0;
}

.sf-events__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.sf-events__head h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0;
}

.sf-events__head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.sf-events__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sf-event-card {
  display: flex;
  gap: 14px;
  min-width: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 18px;
  text-decoration: none;
}

.sf-event-card:hover,
.sf-event-card:focus {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
}

.sf-event-card__date {
  flex: 0 0 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 60px;
  border-radius: 4px;
  background: #fff;
  color: var(--sf-teal-deep);
  padding: 6px 10px;
  text-align: center;
}

.sf-event-card__date strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.sf-event-card__date em {
  display: block;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
}

.sf-event-card__body {
  min-width: 0;
}

.sf-event-card__body strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.25;
}

.sf-event-card__body small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.35;
}

.sf-footer__main {
  padding: 56px 0 28px;
}

.sf-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.sf-footer__logo {
  display: flex;
  align-items: flex-start;
  margin-bottom: 22px;
}

.sf-footer__logo-img {
  display: block;
  width: 150px;
  height: auto;
}

.sf-footer__logo strong {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.sf-footer address,
.sf-footer__brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13.5px;
  font-style: normal;
  line-height: 1.65;
}

.sf-footer__brand p {
  margin-top: 22px;
}

.sf-footer__brand a,
.sf-footer__col a,
.sf-footer__legal a {
  color: #fff;
  text-decoration: none;
}

.sf-footer__brand a {
  color: rgba(255, 255, 255, 0.82);
}

.sf-footer__col h2 {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.sf-footer__col a {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.sf-footer__modules {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
}

.sf-footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
}

.sf-footer__legal span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.sf-footer__legal a {
  color: rgba(255, 255, 255, 0.72);
}

/* Joomla compatibility */
.com-content-article,
.blog,
.category-list,
.contact,
.login,
.registration,
.profile,
.logout {
  max-width: 100%;
}

.control-group {
  margin-bottom: 1rem;
}

.control-group input[type="text"],
.control-group input[type="email"],
.control-group input[type="password"],
.control-group input[type="search"],
.control-group input[type="url"],
.control-group input[type="tel"],
.control-group textarea,
.control-group select,
.form-group input,
.form-group textarea,
.form-group select {
  display: block;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--sf-line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

.btn,
button.btn,
input.btn {
  border-radius: 999px;
  font-weight: 900;
}

.btn-primary {
  border-color: var(--sf-purple);
  background: var(--sf-purple);
}

.table {
  width: 100%;
}

/* JEvents calendar */
#jevents {
  color: var(--sf-ink);
}

#jevents .contentpaneopen {
  margin: 0;
  padding: 0;
}

#jevents_header h1 {
  margin: 0 0 24px;
  color: var(--sf-ink);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.03;
}

#jevents_body {
  overflow: hidden;
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--sf-shadow);
}

#jevents_body .month_date {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  border-bottom: 1px solid var(--sf-line);
  background: var(--sf-cream);
  padding: 24px 28px 18px;
}

#jevents_body .month_title,
#jevents_body .month_title_year {
  float: none;
  margin: 0;
  color: var(--sf-ink);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

#jevents_body .month_title_year {
  color: var(--sf-purple);
}

#jevents_body .new-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  border-bottom: 1px solid var(--sf-line);
  background: #fff;
  padding: 16px 28px;
}

#jevents_body .new-navigation .nav-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#jevents_body .new-navigation .nav-items > div,
#jevents_body .new-navigation .nav-search {
  float: none;
  margin: 0;
  border: 0 !important;
  padding: 0;
}

#jevents_body .new-navigation a,
#jevents_body #jumpto button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1.5px solid var(--sf-line) !important;
  border-radius: 999px;
  background: #fff;
  color: var(--sf-ink);
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

#jevents_body .new-navigation .active a,
#jevents_body .new-navigation a:hover,
#jevents_body .new-navigation a:focus,
#jevents_body #jumpto button {
  border-color: var(--sf-purple) !important;
  background: var(--sf-purple) !important;
  background-color: var(--sf-purple) !important;
  background-image: none !important;
  color: #fff !important;
}

#jevents_body .new-navigation .nav-search a {
  width: 38px;
  padding: 0;
}

#jevents_body .new-navigation .nav-search img {
  width: 16px;
  height: 16px;
  filter: grayscale(1);
}

#jevents_body #jumpto {
  margin: 0;
  border-bottom: 1px solid var(--sf-line);
  background: var(--sf-cream);
  padding: 16px 28px;
}

#jevents_body #jumpto form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}

#jevents_body #jumpto select {
  min-height: 38px;
  border: 1px solid var(--sf-line);
  border-radius: 6px;
  background: #fff;
  color: var(--sf-ink);
  padding: 7px 10px;
  font: inherit;
}

#jevents_body .jev_toprow.jev_monthv {
  margin: 0;
  background: var(--sf-teal) !important;
  background-color: var(--sf-teal) !important;
  color: #fff;
}

#jevents_body .jev_header2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 50px;
  margin: 0;
  padding: 0 18px;
}

#jevents_body .previousmonth,
#jevents_body .currentmonth,
#jevents_body .nextmonth {
  float: none;
  width: auto;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

#jevents_body .previousmonth {
  text-align: left;
}

#jevents_body .nextmonth {
  text-align: right;
}

#jevents_body .previousmonth a,
#jevents_body .nextmonth a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
}

#jevents_body .previousmonth a::before {
  content: "<";
}

#jevents_body .nextmonth a::after {
  content: ">";
}

#jevents_body .cal_top_day_names,
#jevents_body .cal_table {
  width: 100% !important;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

#jevents_body .cal_top_day_names {
  background: #fff;
}

#jevents_body .cal_daysnames {
  border: 0;
  border-bottom: 1px solid var(--sf-line);
  color: var(--sf-muted);
  padding: 13px 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-align: left;
  text-transform: uppercase;
}

#jevents_body .cal_table td {
  position: relative;
  height: 104px;
  border: 1px solid var(--sf-line);
  background: #fff;
  color: var(--sf-ink);
  padding: 9px 8px;
  vertical-align: top;
}

#jevents_body .cal_table tr:first-child td {
  border-top: 0;
}

#jevents_body .cal_table td:first-child {
  border-left: 0;
}

#jevents_body .cal_table td:last-child {
  border-right: 0;
}

#jevents_body .cal_daysoutofmonth {
  background: #f0efeb !important;
  color: rgba(16, 24, 32, 0.42) !important;
}

#jevents_body .cal_today {
  background: rgba(255, 221, 0, 0.18) !important;
  box-shadow: inset 0 0 0 2px var(--sf-yellow);
}

#jevents_body .cal_daylink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  border-radius: 999px;
  color: var(--sf-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

#jevents_body .cal_today .cal_daylink {
  background: var(--sf-purple) !important;
  background-color: var(--sf-purple) !important;
  color: #fff !important;
}

#jevents_body .listview {
  display: none;
}

#jevents_body .event_div_1,
#jevents_body .event_div_2 {
  margin: 4px 0 0;
}

#jevents_body .month_cell_st {
  overflow: hidden;
  border: 0 !important;
  border-left: 4px solid var(--sf-teal) !important;
  border-radius: 4px;
  background: var(--sf-cream);
  color: var(--sf-ink) !important;
  padding: 0;
}

#jevents_body .month_cell_st .editlinktip,
#jevents_body .month_cell_st .hasjevtip {
  display: block;
}

#jevents_body .cal_titlelink {
  display: block;
  overflow: hidden;
  color: var(--sf-ink) !important;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#jevents_body .cal_titlelink:hover,
#jevents_body .cal_titlelink:focus {
  color: var(--sf-purple) !important;
  text-decoration: none;
}

#jevents_body .ev_navigation,
#jevents_body .jev_adminpanel,
#jevents_body .jev_clear {
  clear: both;
}

#jevents_body .event_legend_container,
#jevents_body .jev_legend,
#jevents_body .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
  border-top: 1px solid var(--sf-line);
  background: var(--sf-cream);
  padding: 18px 28px;
}

#jevents_body .event_legend_item,
#jevents_body .event_legend_name {
  float: none;
  margin: 0;
  padding: 0;
  border-width: 0 !important;
}

#jevents_body .event_legend_item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

#jevents_body .event_legend_item::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 22px;
  border-radius: 999px;
  background: var(--sf-purple);
}

#jevents_body .event_legend_desc {
  display: none;
}

#jevents_body .event_legend_container a,
#jevents_body .jev_legend a,
#jevents_body .legend a {
  color: var(--sf-ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

#jevents_body .jevtt_title {
  background: var(--sf-purple) !important;
  color: #fff !important;
  font-weight: 900;
}

#jevents_body .jevtt_text {
  color: var(--sf-ink);
  font-size: 13px;
  line-height: 1.5;
}

/* JEvents event detail */
#jevents_body:has(.jev_evdt),
#jevents_body:has(.event_details) {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#jevents_body .jev_evdt,
#jevents_body .event_details {
  max-width: 920px;
  margin: 0 auto 72px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--sf-ink);
  font-size: 17px;
  line-height: 1.72;
}

#jevents_body .jev_evdt_header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--sf-line);
  padding-bottom: 22px;
}

#jevents_body .jev_evdt_title,
#jevents_body .event_details > h2 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: var(--sf-ink);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.03;
}

#jevents_body .jev_evdt_icons,
#jevents_body .event_details .actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  float: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

#jevents_body .jev_evdt_icons > a,
#jevents_body .event_details .actions a,
#jevents_body .jev_evdt_icons .modal,
#jevents_body .jev_evdt_icons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border: 1.5px solid var(--sf-purple);
  border-radius: 999px;
  background: #fff;
  color: var(--sf-purple);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

#jevents_body .jev_evdt_icons img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

#jevents_body .jev_eventdetails_body,
#jevents_body .event_details_m {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

#jevents_body .jev_evdt_summary,
#jevents_body .jev_evdt_contact,
#jevents_body .jev_evdt_creator,
#jevents_body .jev_evdt_location,
#jevents_body .jev_evdt_extrainf,
#jevents_body .event_details_m > div,
#jevents_body .ev_detail {
  margin: 0;
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  background: #fff;
  padding: 18px 20px;
  color: var(--sf-ink);
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.06);
}

#jevents_body .jev_evdt_summary {
  border-color: transparent;
  background: var(--sf-purple);
  color: #fff;
  font-weight: 900;
  line-height: 1.45;
}

#jevents_body .jev_evdt_contact,
#jevents_body .jev_evdt_location,
#jevents_body .jev_evdt_extrainf,
#jevents_body .ev_detail.location,
#jevents_body .ev_detail.extrainfo {
  border-left: 6px solid var(--sf-teal);
}

#jevents_body .jev_evdt_desc,
#jevents_body .event_details > p,
#jevents_body .event_details > div:not(.event_details_m):not(.ev_detail):not(.jev_evdt_header) {
  grid-column: 1 / -1;
  margin: 10px 0 4px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--sf-ink);
  font-size: 18px;
  line-height: 1.75;
}

#jevents_body .jev_evdt_desc p,
#jevents_body .event_details p {
  margin: 0 0 18px;
}

#jevents_body .jev_evdt_desc p:last-child,
#jevents_body .event_details p:last-child {
  margin-bottom: 0;
}

#jevents_body .jev_evdt_desc a,
#jevents_body .event_details a {
  color: var(--sf-purple);
  font-weight: 900;
  text-decoration-color: rgba(76, 31, 122, 0.3);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

#jevents_body .jev_evdt_desc a:hover,
#jevents_body .jev_evdt_desc a:focus,
#jevents_body .event_details a:hover,
#jevents_body .event_details a:focus {
  color: var(--sf-teal);
}

#jevents_body .jev_evdt_contact .contact,
#jevents_body .jev_evdt_location .location,
#jevents_body .event_details_m .contact,
#jevents_body .ev_detail.location .location {
  display: block;
  margin-bottom: 5px;
  color: var(--sf-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

#jevents_body .jev_evdt_creator,
#jevents_body .jev_evdt_hits,
#jevents_body .event_details_m .hits {
  display: none;
}

#jevents_body .jev_evdt_extrainf {
  grid-column: 1 / -1;
  background: var(--sf-cream);
  font-weight: 800;
}

#jevents_body .jevdialogs {
  color: var(--sf-ink);
  font-size: 16px;
  line-height: 1.5;
}

#jevents_body .modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16, 24, 32, 0.22);
}

#jevents_body .modal-header,
#jevents_body .modal-footer {
  border-color: var(--sf-line);
}

#jevents_body .modal-title {
  color: var(--sf-ink);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .sf-header__inner {
    gap: 18px;
  }

  .sf-nav__link {
    padding-inline: 9px;
    font-size: 13.5px;
  }

  .sf-account__login {
    display: none;
  }

  .sf-hero__inner {
    gap: 48px;
  }
}

@media (max-width: 980px) {
  .sf-container,
  .sf-header__inner {
    width: min(100% - 40px, 1280px);
  }

  .sf-header__inner {
    min-height: 68px;
  }

  .sf-nav-toggle {
    display: block;
  }

  .sf-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 68px);
    overflow: auto;
    margin: 0;
    border: 1px solid var(--sf-line);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: #fff;
    padding: 12px;
    box-shadow: var(--sf-shadow);
  }

  .sf-header.is-mobile-open .sf-nav {
    display: block;
  }

  .sf-nav__item {
    position: relative;
  }

  .sf-nav__link {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 13px 12px;
  }

  .sf-mega {
    position: static;
    width: auto;
    transform: none;
    border: 0;
    box-shadow: none;
    padding: 0 8px 14px;
    animation: none;
  }

  .sf-mega__grid,
  .sf-mega__columns {
    display: block;
  }

  .sf-mega__section {
    margin-top: 16px;
  }

  .sf-mega__feature {
    display: none;
  }

  .sf-menu-backdrop {
    inset: 68px 0 0;
  }

  .sf-account {
    margin-left: 0;
  }

  .sf-account__join {
    display: none;
  }

  .sf-hero__inner,
  .sf-cta__grid,
  .sf-volunteer {
    grid-template-columns: 1fr;
  }

  .sf-photo-grid {
    grid-template-rows: repeat(3, 140px);
  }

  .sf-finder__inner,
  .sf-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .sf-finder__form {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .sf-finder__inner > p {
    max-width: 560px;
  }

  .sf-news__grid,
  .sf-content-blog__grid,
  .sf-events__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-page-content__grid,
  .sf-page-content__grid:has(.sf-sidebar),
  .sf-page-content__grid:has(.sf-sidebar + .sf-component + .sf-sidebar) {
    grid-template-columns: 1fr;
  }

  #jevents_body .new-navigation {
    align-items: flex-start;
    flex-direction: column;
  }

  #jevents_body .cal_table td {
    height: 92px;
  }

  .com-weblinks-categories .com-content-categories__items,
  .com-weblinks-category .category.list-unstyled {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sf-container,
  .sf-header__inner {
    width: min(100% - 28px, 1280px);
  }

  .sf-brand__text {
    font-size: 16px;
  }

  .sf-brand__logo {
    width: 116px;
  }

  .sf-hero__inner {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .sf-hero__copy h1 {
    font-size: 44px;
  }

  .sf-hero__copy p {
    font-size: 16px;
  }

  .sf-actions,
  .sf-finder__form {
    flex-direction: column;
  }

  .sf-button,
  .sf-finder__form button {
    width: 100%;
  }

  .sf-photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 132px);
  }

  .sf-news,
  .sf-page-content {
    padding: 64px 0;
  }

  .sf-news__grid,
  .sf-events__grid,
  .sf-footer__grid {
    grid-template-columns: 1fr;
  }

  .sf-volunteer,
  .sf-safeguarding {
    padding: 28px 24px;
  }

  .sf-events__head,
  .sf-content-blog__head,
  .sf-pagination,
  .sf-footer__legal {
    align-items: flex-start;
    flex-direction: column;
  }

  .sf-content-blog__grid,
  .sf-more-news ul {
    grid-template-columns: 1fr;
  }

  .sf-news-list-card {
    border-bottom: 1px solid var(--sf-line);
    padding-bottom: 28px;
  }

  .sf-contact-card,
  .sf-contact-card__main,
  .sf-contact-card__actions,
  .sf-contact-list__pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .sf-contact-card__actions {
    align-items: flex-start;
  }

  .sf-contact-card__details {
    grid-template-columns: 1fr;
  }

  .sf-contact-list__toolbar .sf-button {
    width: 100%;
  }

  .com-weblinks-categories .com-content-categories__items,
  .com-weblinks-category .category.list-unstyled {
    grid-template-columns: 1fr;
  }

  .com-weblinks-category__filter {
    align-items: stretch;
    flex-direction: column;
  }

  .com-weblinks-category__filter input[type="text"],
  .com-weblinks-category__filter .btn {
    width: 100%;
  }

  .sf-article__body {
    font-size: 16px;
  }

  .sf-article__header h1 {
    font-size: 36px;
  }

  #jevents_body {
    margin-inline: calc((100vw - 100%) / -2);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  #jevents_body:has(.jev_evdt),
  #jevents_body:has(.event_details) {
    margin-inline: 0;
  }

  #jevents_body .jev_evdt_header {
    grid-template-columns: 1fr;
  }

  #jevents_body .jev_evdt_icons,
  #jevents_body .event_details .actions {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }

  #jevents_body .jev_eventdetails_body,
  #jevents_body .event_details_m {
    grid-template-columns: 1fr;
  }

  #jevents_body .jev_evdt_desc,
  #jevents_body .jev_evdt_extrainf {
    grid-column: auto;
  }

  #jevents_body .month_date,
  #jevents_body .new-navigation,
  #jevents_body #jumpto,
  #jevents_body .event_legend_container,
  #jevents_body .jev_legend,
  #jevents_body .legend {
    padding-right: 16px;
    padding-left: 16px;
  }

  #jevents_body .new-navigation .nav-items {
    width: 100%;
  }

  #jevents_body .new-navigation .nav-items > div,
  #jevents_body .new-navigation .nav-items a {
    flex: 1 1 auto;
  }

  #jevents_body .jev_header2 {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 16px;
  }

  #jevents_body .previousmonth,
  #jevents_body .currentmonth,
  #jevents_body .nextmonth {
    text-align: center;
  }

  #jevents_body .cal_daysnames {
    padding: 10px 4px;
    font-size: 10px;
    text-align: center;
  }

  #jevents_body .cal_table td {
    height: 82px;
    padding: 6px 4px;
  }

  #jevents_body .cal_daylink {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  #jevents_body .cal_titlelink {
    padding: 4px 5px;
    font-size: 10px;
  }
}

/* =========================================================
   System alerts (.sf-alert)
   ========================================================= */

#system-message-container {
  padding: 0;
}

#system-message-container:has(> *) {
  padding: 16px 0;
}

.sf-alert {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid var(--sf-line);
  background: var(--sf-paper);
  padding: 16px 20px;
  margin-bottom: 12px;
  font-size: 15px;
  position: relative;
}

.sf-alert--success { border-color: #00a499; background: #e6f7f6; }
.sf-alert--warning { border-color: #e8a000; background: #fff8e6; }
.sf-alert--error   { border-color: #c0392b; background: #fdf0ee; }
.sf-alert--info    { border-color: #4c1f7a; background: #f3eefa; }

.sf-alert__heading {
  font-size: 14px;
  font-weight: 800;
  text-transform: capitalize;
  margin: 0;
}

.sf-alert__body {
  margin: 0;
}

.sf-alert__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--sf-muted);
  padding: 0;
  line-height: 1;
}

/* =========================================================
   Badges (.sf-badge)
   ========================================================= */

.sf-badge {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sf-badge--warning {
  background: #e8a000;
  color: #fff;
}

.sf-badge--danger {
  background: #c0392b;
  color: #fff;
}

/* =========================================================
   Forms (.sf-form)
   ========================================================= */

.sf-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sf-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sf-form__group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--sf-ink);
}

.sf-form__group input,
.sf-form__group select,
.sf-form__group textarea {
  width: 100%;
  border: 1px solid var(--sf-line);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--sf-ink);
  background: var(--sf-paper);
  transition: border-color 0.15s;
}

.sf-form__group input:focus,
.sf-form__group select:focus,
.sf-form__group textarea:focus {
  outline: none;
  border-color: var(--sf-purple);
}

.sf-form__optional {
  font-size: 12px;
  color: var(--sf-muted);
}

.sf-form__check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.sf-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.sf-button--full {
  width: 100%;
  justify-content: center;
}

/* =========================================================
   Login page (.sf-login)
   ========================================================= */

.sf-login {
  max-width: 480px;
  margin-inline: auto;
}

.sf-login h1 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 20px;
}

.sf-login__description,
.sf-login__image {
  margin-bottom: 20px;
}

.sf-login__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--sf-line);
  font-size: 14px;
}

.sf-login__links a {
  color: var(--sf-purple);
  text-decoration: none;
}

.sf-login__links a:hover {
  text-decoration: underline;
}

/* =========================================================
   Profile (.sf-profile, .sf-profile-edit)
   ========================================================= */

.sf-profile,
.sf-profile-edit {
  max-width: 720px;
}

.sf-profile__actions {
  margin-bottom: 24px;
}

.sf-profile__core {
  border: none;
  padding: 0;
  margin: 0 0 24px;
}

.sf-profile__core legend {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--sf-ink);
}

/* Definition list used in profile */
.sf-dl {
  display: grid;
  gap: 1px;
  background: var(--sf-line);
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  overflow: hidden;
}

.sf-dl__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  background: var(--sf-paper);
  padding: 12px 16px;
}

.sf-dl__row dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--sf-muted);
}

.sf-dl__row dd {
  margin: 0;
  font-size: 14px;
  color: var(--sf-ink);
}

/* =========================================================
   Page navigation plugin (.sf-page-nav)
   ========================================================= */

.sf-page-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--sf-line);
}

.sf-page-nav__prev,
.sf-page-nav__next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--sf-line);
  border-radius: 6px;
  padding: 10px 16px;
  color: var(--sf-purple);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.sf-page-nav__prev:hover,
.sf-page-nav__next:hover {
  background: var(--sf-cream);
  border-color: var(--sf-purple);
}

.sf-page-nav__next {
  margin-left: auto;
}

/* =========================================================
   Read more (.sf-readmore)
   ========================================================= */

.sf-readmore {
  margin: 16px 0 0;
}

/* =========================================================
   Module section chromes (.sf-module-section)
   ========================================================= */

.sf-module-section {
  position: relative;
  padding: 48px 0;
}

.sf-module-section--purple {
  background: var(--sf-purple);
  color: #fff;
}

.sf-module-section--teal {
  background: var(--sf-teal-deep);
  color: #fff;
}

/* =========================================================
   Front-end admin editing overlays
   ========================================================= */

/* Give the xhtml/html5 chrome wrapper a positioning context too,
   just like .sf-module-section already has */
.moduletable {
  position: relative;
}

/* Joomla uses its own icon font for icon-edit which isn't loaded on the
   frontend — map it to the FontAwesome 4 pencil we already have */
a.jmodedit .icon-edit::before {
  font-family: 'FontAwesome';
  content: "\f040";
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
}

/* Module edit button — Joomla injects this as the first child of the
   module's outermost element (div.moduletable or section.sf-module-section) */
a.jmodedit {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  color: var(--sf-ink);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.15s, box-shadow 0.15s;
}

a.jmodedit:hover,
a.jmodedit:focus {
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Tooltip — keep it in the DOM but invisible; reveal on hover of the
   sibling .jmodedit button via CSS (no JS dependency needed) */
[role="tooltip"][id^="tip-"] {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 200;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s;
}

a.jmodedit:hover ~ [role="tooltip"][id^="tip-"],
a.jmodedit:focus ~ [role="tooltip"][id^="tip-"] {
  visibility: visible;
  opacity: 1;
}

/* ---- Article & card edit icon dropdown ---- */

/* The .icons wrapper sits inside .sf-article__tools or .sf-news-list-card__edit,
   both of which are already absolutely positioned */
.sf-article__tools .btn-group,
.sf-news-list-card__edit .btn-group {
  position: relative;
  float: none !important;
}

/* Cog toggle button */
.sf-article__tools .sf-icon-btn,
.sf-news-list-card__edit .sf-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  color: var(--sf-ink);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.15s, box-shadow 0.15s;
}

.sf-article__tools .sf-icon-btn:hover,
.sf-article__tools .sf-icon-btn:focus,
.sf-news-list-card__edit .sf-icon-btn:hover,
.sf-news-list-card__edit .sf-icon-btn:focus {
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Hide the redundant caret */
.sf-article__tools .caret,
.sf-news-list-card__edit .caret {
  display: none;
}

/* Dropdown menu — hidden by default, shown when .show is toggled by Bootstrap */
.sf-article__tools .dropdown-menu,
.sf-news-list-card__edit .dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  z-index: 300;
  min-width: 120px;
  padding: 4px 0;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: none;
}

.sf-article__tools .dropdown-menu.show,
.sf-news-list-card__edit .dropdown-menu.show {
  display: block;
}

.sf-article__tools .dropdown-item,
.sf-news-list-card__edit .dropdown-item {
  padding: 0;
}

.sf-article__tools .dropdown-item a,
.sf-news-list-card__edit .dropdown-item a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  color: var(--sf-ink);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.sf-article__tools .dropdown-item a:hover,
.sf-news-list-card__edit .dropdown-item a:hover {
  background: var(--sf-cream);
}

/* =========================================================
   Error page (.sf-error-page)
   ========================================================= */

.sf-error {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background: var(--sf-cream);
  text-align: center;
}

.sf-error__decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.06;
  pointer-events: none;
}

.sf-error__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}

.sf-error__code {
  font-size: clamp(100px, 22vw, 180px);
  font-weight: 900;
  line-height: 1;
  color: var(--sf-purple);
  opacity: 0.12;
  margin-bottom: -0.15em;
  letter-spacing: -0.04em;
}

.sf-error h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  color: var(--sf-ink);
  margin-bottom: 16px;
}

.sf-error p {
  font-size: 18px;
  color: var(--sf-ink-soft);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.sf-error .sf-actions {
  justify-content: center;
}

.sf-error__debug {
  margin-top: 48px;
  text-align: left;
  background: var(--sf-paper);
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
}

.sf-error__debug summary {
  cursor: pointer;
  padding: 4px 0;
  color: var(--sf-ink-soft);
}

.sf-error__debug pre {
  overflow: auto;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .sf-error {
    padding: 60px 0 80px;
  }

  .sf-error .sf-actions {
    flex-direction: column;
    align-items: center;
  }
}
