/*
 * WORLDSKILLS MALTA SITE STYLES
 * Brand palette and typography are based on the supplied 2026 WorldSkills Malta brand book.
 */

:root {
  --wsm-red: #cb2e29;
  --wsm-dark-red: #860b07;
  --wsm-dark-blue: #003764;
  --wsm-light-blue: #74c7d9;
  --wsm-sand: #da9d60;
  --wsm-limestone: #fed28d;
  --wsm-light-grey: #f9f8f6;
  --wsm-white: #ffffff;
  --wsm-charcoal: #222222;

  /* BRAND TINTS */
  /* Derived from the approved Malta palette for large digital surfaces. */
  --wsm-red-wash: rgba(203, 46, 41, 0.08);
  --wsm-dark-red-wash: rgba(134, 11, 7, 0.08);
  --wsm-dark-blue-wash: rgba(0, 55, 100, 0.08);
  --wsm-light-blue-wash: rgba(116, 199, 217, 0.18);
  --wsm-sand-wash: rgba(218, 157, 96, 0.17);
  --wsm-limestone-wash: rgba(254, 210, 141, 0.25);
  --wsm-border: #d9dde2;
  --wsm-shadow: 0 14px 36px rgba(0, 55, 100, 0.12);
  --wsm-radius: 0;
  --wsm-header-height: 104px;
  --wsm-brand-cube: url("../images/malta-cube.svg");
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ACCESSIBILITY */

.wsm-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100000;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  background: var(--wsm-white);
  color: var(--wsm-dark-blue);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--wsm-shadow);
}

.wsm-skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--wsm-limestone);
  outline-offset: 3px;
}

/* HEADER */

.wsm-site-header {
  position: relative;
  z-index: 100;
  border-top: 4px solid var(--wsm-light-blue);
  background: var(--wsm-dark-blue);
  color: var(--wsm-white);
}

.wsm-site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--wsm-red) 0 20%,
    var(--wsm-sand) 20% 40%,
    var(--wsm-limestone) 40% 60%,
    var(--wsm-light-blue) 60% 80%,
    var(--wsm-dark-red) 80% 100%
  );
}

.wsm-header-inner {
  min-height: var(--wsm-header-height);
  gap: clamp(1.25rem, 3vw, 3rem);
}

.wsm-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.wsm-brand img {
  width: clamp(92px, 9vw, 120px);
  height: auto;
}

.wsm-site-header .wp-block-navigation {
  margin-left: auto;
}

.wsm-site-header .wp-block-navigation-item__content {
  color: var(--wsm-white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.wsm-site-header .wp-block-navigation-item__content:hover,
.wsm-site-header .wp-block-navigation-item__content:focus-visible,
.wsm-site-header .current-menu-item > .wp-block-navigation-item__content {
  color: var(--wsm-limestone);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35rem;
}

.wsm-site-header .wp-block-navigation__responsive-container-open,
.wsm-site-header .wp-block-navigation__responsive-container-close {
  color: var(--wsm-white);
}

.wsm-site-header .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--wsm-dark-blue) !important;
  color: var(--wsm-white) !important;
  padding: 1.5rem;
}

.wsm-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  gap: 0.4rem;
  width: 100%;
}

.wsm-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  width: 100%;
}

.wsm-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  display: block;
  width: 100%;
  padding: 0.8rem 0;
  font-size: 1.15rem;
}


.wsm-hero .wp-block-cover__image-background {
  object-position: center 45%;
}

/* HEADER SUBMENUS */

.wsm-site-header .wp-block-navigation__submenu-container {
  min-width: 320px !important;
  padding: 0.55rem 0 !important;
  border: 0 !important;
  border-top: 4px solid var(--wsm-red) !important;
  background: var(--wsm-dark-blue) !important;
  box-shadow: var(--wsm-shadow);
}

.wsm-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block;
  width: 100%;
  padding: 0.85rem 1.25rem;
  color: var(--wsm-white) !important;
  line-height: 1.4;
  text-decoration: none !important;
  text-underline-offset: initial;
  white-space: normal;
}

.wsm-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.wsm-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible,
.wsm-site-header .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
  background: rgba(255, 255, 255, 0.08);
  color: var(--wsm-limestone) !important;
  text-decoration: none !important;
}

/* HERO */

.wsm-hero {
  min-height: clamp(510px, 72vh, 760px);
  background-color: var(--wsm-dark-blue);
  background-image: url("../images/hero-skills.webp");
  background-position: center 45%;
  background-size: cover;
}

.wsm-hero .wp-block-cover__background {
  background-color: transparent !important;
  background-image: linear-gradient(90deg, rgba(0, 30, 55, 0.84), rgba(0, 55, 100, 0.52) 52%, rgba(0, 55, 100, 0.12)) !important;
  opacity: 1 !important;
}

.wsm-hero-content {
  width: min(100%, 1200px);
  padding-top: clamp(4rem, 9vw, 7.5rem);
  padding-bottom: clamp(4rem, 9vw, 7.5rem);
}

.wsm-eyebrow {
  margin-bottom: 0.75rem;
  color: var(--wsm-dark-red);
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wsm-hero .wsm-eyebrow,
.wsm-page-intro .wsm-eyebrow {
  color: var(--wsm-limestone);
}

.wsm-hero-title {
  max-width: 13ch;
  margin-top: 0;
  color: var(--wsm-white) !important;
  font-size: clamp(2.6rem, 7vw, 5.5rem) !important;
  line-height: 0.98 !important;
  text-wrap: balance;
}

.wsm-hero-copy {
  max-width: 58ch;
  color: var(--wsm-white);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.wsm-button .wp-block-button__link,
.wp-block-button.wsm-button .wp-block-button__link {
  min-height: 48px;
  padding: 0.8rem 1.3rem;
  border: 2px solid var(--wsm-red);
  background: var(--wsm-red);
  color: var(--wsm-white);
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.wsm-button .wp-block-button__link:hover,
.wsm-button .wp-block-button__link:focus-visible {
  border-color: var(--wsm-dark-red);
  background: var(--wsm-dark-red);
  color: var(--wsm-white);
  text-decoration: none;
}

.wsm-button.is-style-outline .wp-block-button__link {
  border-color: var(--wsm-white);
  background: transparent;
  color: var(--wsm-white);
}

.wsm-button.is-style-outline .wp-block-button__link:hover,
.wsm-button.is-style-outline .wp-block-button__link:focus-visible {
  background: var(--wsm-white);
  color: var(--wsm-dark-blue);
}

/* SECTIONS */

/*
 * KEEP CLIENT-EDITED PAGE CONTENT ON THE STANDARD WORLDSKILLS WIDE GRID.
 *
 * Managed pages are built from full-width branded sections with a 1200px wide
 * inner content grid. Editors can replace those sections with ordinary blocks,
 * which otherwise fall back to the full Post Content width. Keep every direct
 * non-full-width block on the same wide grid without forcing the narrower
 * 760px reading column used by WordPress for normal constrained content.
 */
#main-content > .wp-block-post-content > :where(:not(.alignfull)) {
  box-sizing: border-box;
  width: min(
    calc(100% - 2rem),
    var(--wp--style--global--wide-size, 1200px)
  );
  margin-left: auto !important;
  margin-right: auto !important;
}

/*
 * GIVE EDITOR-BUILT CONTENT GROUPS THEIR OWN INNER GUTTER.
 *
 * A client may rebuild a branded section with a normal Group block, including
 * a left accent border or embedded media. Padding the Group itself keeps text,
 * links and embeds away from that border while preserving the Group's standard
 * wide alignment. Full-width branded sections retain their existing layout.
 */
#main-content > .wp-block-post-content > .wp-block-group:not(.alignfull) {
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
}

/*
 * KEEP CONTENT CLEAR OF EDITOR-DEFINED ACCENT BORDERS.
 *
 * The render_block filter adds this class from Gutenberg's block attributes,
 * so spacing does not depend on whether WordPress serialized the border as a
 * left-side property, a preset class, or shorthand border styles.
 */
/*
 * WORDPRESS GLOBAL PADDING CAN ZERO NESTED .has-global-padding BLOCKS.
 *
 * Keep this selector independent of the exact Post Content wrapper. The body
 * class plus the stable render-time class gives it higher specificity than
 * WordPress' low-specificity :where() reset while still allowing inline editor
 * padding to win when an editor explicitly sets it.
 */
.worldskills-malta-site .wsm-editor-bordered-block:not(.wsm-callout) {
  box-sizing: border-box;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
}

.wsm-section {
  box-sizing: border-box;
  padding-top: clamp(3.75rem, 7vw, 7rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
  padding-bottom: clamp(3.75rem, 7vw, 7rem);
  padding-left: clamp(1rem, 3vw, 1.5rem);
}

.wsm-section--compact {
  padding-top: clamp(2.75rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.wsm-section--grey {
  background: var(--wsm-light-grey);
}

.wsm-section--accent-red {
  background: var(--wsm-red-wash);
  box-shadow: inset 0 6px 0 var(--wsm-red);
}

.wsm-section--accent-sand {
  background: var(--wsm-sand-wash);
  box-shadow: inset 0 6px 0 var(--wsm-sand);
}

.wsm-section--accent-limestone {
  background: var(--wsm-limestone-wash);
  box-shadow: inset 0 6px 0 var(--wsm-limestone);
}

.wsm-section--accent-light-blue {
  background: var(--wsm-light-blue-wash);
  box-shadow: inset 0 6px 0 var(--wsm-light-blue);
}

.wsm-section--accent-dark-blue {
  background: var(--wsm-dark-blue-wash);
  box-shadow: inset 0 6px 0 var(--wsm-dark-blue);
}

.wsm-section--accent-red .wsm-eyebrow {
  color: var(--wsm-dark-red);
}

.wsm-section--accent-sand .wsm-eyebrow {
  color: var(--wsm-dark-red);
}

.wsm-section--accent-limestone .wsm-eyebrow {
  color: var(--wsm-dark-red);
}

.wsm-section--accent-light-blue .wsm-eyebrow,
.wsm-section--accent-dark-blue .wsm-eyebrow {
  color: var(--wsm-dark-blue);
}

.wsm-section--blue {
  background: var(--wsm-dark-blue);
  color: var(--wsm-white);
}

.wsm-section--blue h2,
.wsm-section--blue h3,
.wsm-section--blue h4 {
  color: var(--wsm-white);
}

.wsm-section-heading {
  position: relative;
  max-width: 18ch;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  font-size: clamp(2rem, 4vw, 3.6rem) !important;
  line-height: 1.04 !important;
  text-wrap: balance;
}

.wsm-section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 92px;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--wsm-red) 0 25%,
    var(--wsm-sand) 25% 50%,
    var(--wsm-limestone) 50% 75%,
    var(--wsm-light-blue) 75% 100%
  );
}

.wsm-section-intro {
  max-width: 68ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.wsm-accent-serif {
  color: var(--wsm-red);
  font-family: var(--wp--preset--font-family--inria-serif), Georgia, serif !important;
  font-style: italic;
  font-weight: 400;
}


/* INTERNAL PAGE FOUNDATIONS */

.wsm-page-intro {
  position: relative;
  padding-top: clamp(4rem, 7vw, 7rem);
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
  background: var(--wsm-dark-blue);
  color: var(--wsm-white);
}

.wsm-page-intro::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--wsm-red) 0 20%,
    var(--wsm-sand) 20% 40%,
    var(--wsm-limestone) 40% 60%,
    var(--wsm-light-blue) 60% 80%,
    var(--wsm-dark-red) 80% 100%
  );
}

.wsm-page-intro .wsm-eyebrow {
  color: var(--wsm-limestone);
}

.wsm-page-title {
  max-width: 18ch;
  margin: 0;
  color: var(--wsm-white) !important;
  font-size: clamp(2.5rem, 6vw, 4.8rem) !important;
  line-height: 1 !important;
  text-wrap: balance;
}

.wsm-page-lead {
  max-width: 68ch;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.wsm-link-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.wsm-link-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 6px solid var(--wsm-light-blue);
  background: var(--wsm-light-blue-wash);
}

.wsm-link-panel:nth-child(2) {
  border-top-color: var(--wsm-limestone);
  background: var(--wsm-limestone-wash);
}

.wsm-link-panel:nth-child(3) {
  border-top-color: var(--wsm-red);
  background: var(--wsm-red-wash);
}

.wsm-link-panel h2 {
  margin-top: 0;
}

.wsm-link-panel p:last-child {
  margin-bottom: 0;
}

.wsm-callout {
  box-sizing: border-box;
  padding: clamp(1.5rem, 4vw, 3rem);
  /* WordPress global padding styles zero nested horizontal padding at desktop/tablet. */
  padding-inline: clamp(1.5rem, 4vw, 3rem) !important;
  border-left: 8px solid var(--wsm-red);
  background: var(--wsm-light-grey);
}

.wsm-callout > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.wsm-callout > :first-child {
  margin-top: 0;
}

.wsm-callout > :last-child {
  margin-bottom: 0;
}


/* ABOUT US */

.wsm-about-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.wsm-about-card {
  display: flex;
  min-width: 0;
  min-height: 270px;
  flex-direction: column;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-top: 6px solid var(--wsm-light-blue);
  background: var(--wsm-white);
  box-shadow: var(--wsm-shadow);
}

.wsm-about-card:nth-child(2) {
  border-top-color: var(--wsm-sand);
}

.wsm-about-card:nth-child(3) {
  border-top-color: var(--wsm-red);
}

.wsm-about-card:nth-child(4) {
  border-top-color: var(--wsm-dark-blue);
}

.wsm-about-card h3 {
  margin-top: 0;
  color: var(--wsm-dark-blue);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.wsm-about-card .wsm-text-link {
  margin-top: auto;
  padding-top: 1.5rem;
  font-weight: 700;
}

.wsm-about-image img {
  width: 100%;
  min-height: 380px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.wsm-about-malta-intro {
  max-width: 900px;
  margin-inline: auto;
}

.wsm-vmp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.wsm-vmp-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 6rem);
  border-top: 7px solid var(--wsm-light-blue);
  background: var(--wsm-white);
  box-shadow: var(--wsm-shadow);
}

.wsm-vmp-card::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 0.8rem;
  width: clamp(54px, 6vw, 76px);
  aspect-ratio: 1;
  background: var(--wsm-brand-cube) center / contain no-repeat;
  opacity: 0.42;
  pointer-events: none;
}

.wsm-vmp-card:nth-child(2) {
  border-top-color: var(--wsm-limestone);
}

.wsm-vmp-card:nth-child(3) {
  border-top-color: var(--wsm-red);
}

.wsm-vmp-card h3 {
  margin-top: 0.35rem;
  color: var(--wsm-dark-blue);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
}

.wsm-vmp-card__number {
  margin: 0;
  color: var(--wsm-sand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.wsm-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.wsm-contact-item {
  min-width: 0;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-left: 5px solid var(--wsm-dark-blue);
  background: var(--wsm-white);
  box-shadow: 0 8px 24px rgba(0, 55, 100, 0.08);
}

.wsm-contact-item__label {
  display: block;
  margin: 0 0 0.5rem;
  color: var(--wsm-dark-red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* BUILDING BLOCKS */

.wsm-building-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.wsm-building-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 8px solid var(--wsm-light-blue);
  background: linear-gradient(180deg, var(--wsm-light-blue-wash) 0, var(--wsm-white) 58%);
  box-shadow: var(--wsm-shadow);
}

.wsm-building-card:nth-child(2) {
  border-top-color: var(--wsm-limestone);
  background: linear-gradient(180deg, var(--wsm-limestone-wash) 0, var(--wsm-white) 58%);
}

.wsm-building-card:nth-child(3) {
  border-top-color: var(--wsm-red);
  background: linear-gradient(180deg, var(--wsm-red-wash) 0, var(--wsm-white) 58%);
}

.wsm-building-card::after {
  content: "";
  position: absolute;
  right: 1.15rem;
  bottom: 1rem;
  width: clamp(70px, 7vw, 92px);
  aspect-ratio: 1;
  background-image: var(--wsm-brand-cube);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.7;
  pointer-events: none;
}

.wsm-building-card h3 {
  margin-top: 0;
  color: var(--wsm-dark-blue);
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
}

.wsm-building-card p:last-child {
  margin-bottom: 0;
}

/* DYNAMIC CONTENT CARDS */

.wsm-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 2rem);
  margin-top: 2rem;
}

.wsm-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--wsm-border);
  background: var(--wsm-white);
  box-shadow: 0 8px 24px rgba(0, 55, 100, 0.08);
}

.wsm-event-grid .wsm-card {
  border-top: 5px solid var(--wsm-light-blue);
}

.wsm-news-grid .wsm-card {
  border-top: 5px solid var(--wsm-red);
}

.wsm-skill-grid .wsm-card {
  border-top: 5px solid var(--wsm-sand);
}

.wsm-people-grid .wsm-card {
  border-top: 5px solid var(--wsm-dark-red);
}

.wsm-card__image {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--wsm-light-grey);
}

.wsm-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.wsm-card:hover .wsm-card__image img {
  transform: scale(1.025);
}

.wsm-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.15rem, 2vw, 1.6rem);
}

.wsm-card__meta {
  margin: 0 0 0.7rem;
  color: var(--wsm-dark-red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.wsm-card__title {
  margin: 0 0 0.8rem;
  color: var(--wsm-dark-blue);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.16;
}

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

.wsm-card__title a:hover,
.wsm-card__title a:focus-visible {
  color: var(--wsm-red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.wsm-card__excerpt {
  margin: 0 0 1rem;
  color: #4d5660;
}

.wsm-card__link {
  margin-top: auto;
  font-weight: 700;
}

.wsm-card__placeholder {
  display: grid;
  aspect-ratio: 3 / 2;
  place-items: center;
  padding: 1rem;
  background: var(--wsm-light-grey);
  color: var(--wsm-dark-blue);
  font-weight: 700;
  text-align: center;
}

/* PARTNERS */

.wsm-partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.wsm-partner {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 1px solid var(--wsm-border);
  border-bottom: 4px solid var(--wsm-limestone);
  background: var(--wsm-white);
  text-align: center;
  transition: border-color 160ms ease, transform 160ms ease;
}

.wsm-partner:hover {
  border-bottom-color: var(--wsm-red);
  transform: translateY(-2px);
}

.wsm-partner img {
  width: auto;
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}

.wsm-partner a {
  color: var(--wsm-dark-blue);
  font-weight: 700;
  text-decoration: none;
}

.wsm-partner a:hover,
.wsm-partner a:focus-visible {
  color: var(--wsm-red);
  text-decoration: underline;
}

/* TEXT / IMAGE PATTERN */

.wsm-split {
  align-items: stretch !important;
  gap: clamp(1.5rem, 4vw, 4rem) !important;
}

.wsm-split .wp-block-image,
.wsm-split .wp-block-image img {
  width: 100%;
  height: 100%;
}

.wsm-split .wp-block-image img {
  min-height: 360px;
  object-fit: cover;
}

/* COMPETITION HUB */

.wsm-competition-nav {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--wsm-border);
  background: var(--wsm-white);
  box-shadow: 0 8px 24px rgba(0, 55, 100, 0.06);
}

.wsm-competition-nav__inner {
  display: flex;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.wsm-competition-nav a {
  flex: 0 0 auto;
  padding: 1rem 1.1rem;
  border-bottom: 4px solid transparent;
  color: var(--wsm-dark-blue);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.wsm-competition-nav a:nth-child(4n + 1) {
  border-bottom-color: var(--wsm-red);
}

.wsm-competition-nav a:nth-child(4n + 2) {
  border-bottom-color: var(--wsm-sand);
}

.wsm-competition-nav a:nth-child(4n + 3) {
  border-bottom-color: var(--wsm-limestone);
}

.wsm-competition-nav a:nth-child(4n) {
  border-bottom-color: var(--wsm-light-blue);
}

.wsm-competition-nav a:hover,
.wsm-competition-nav a:focus-visible {
  background: var(--wsm-light-grey);
  color: var(--wsm-dark-red);
}

.wsm-programme {
  margin-top: 2rem;
  border-top: 1px solid rgba(0, 55, 100, 0.18);
}

.wsm-programme__item {
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.3rem 0;
  border-bottom: 1px solid rgba(0, 55, 100, 0.18);
}

.wsm-programme__when {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--wsm-dark-red);
  font-size: 0.92rem;
}

.wsm-programme__when strong {
  color: var(--wsm-dark-blue);
}

.wsm-programme__content h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.wsm-programme__content h3 a {
  color: var(--wsm-dark-blue);
  text-decoration: none;
}

.wsm-programme__content h3 a:hover,
.wsm-programme__content h3 a:focus-visible {
  color: var(--wsm-red);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.wsm-programme__content p {
  margin: 0.4rem 0 0;
}

.wsm-results-wrap {
  margin-top: 2rem;
  overflow-x: auto;
}

.wsm-results-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--wsm-white);
  box-shadow: 0 8px 24px rgba(0, 55, 100, 0.06);
}

.wsm-results-table th,
.wsm-results-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--wsm-border);
  text-align: left;
}

.wsm-results-table th {
  background: var(--wsm-dark-blue);
  color: var(--wsm-white);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wsm-results-table tbody tr:nth-child(even) {
  background: var(--wsm-light-grey);
}

.wsm-results-table td:first-child {
  color: var(--wsm-dark-red);
  font-weight: 700;
}




/* PARTNERS AND GETTING INVOLVED */

.wsm-partners-intro {
  max-width: 760px;
}

.wsm-involvement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.wsm-involvement-card {
  position: relative;
  min-width: 0;
  min-height: 260px;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  padding-bottom: clamp(4.5rem, 8vw, 5.8rem);
  border-top: 6px solid var(--wsm-light-blue);
  background: linear-gradient(180deg, var(--wsm-light-blue-wash), var(--wsm-white) 62%);
  box-shadow: var(--wsm-shadow);
}

.wsm-involvement-card:nth-child(2) {
  border-top-color: var(--wsm-limestone);
  background: linear-gradient(180deg, var(--wsm-limestone-wash), var(--wsm-white) 62%);
}

.wsm-involvement-card:nth-child(3) {
  border-top-color: var(--wsm-red);
  background: linear-gradient(180deg, var(--wsm-red-wash), var(--wsm-white) 62%);
}

.wsm-involvement-card::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 0.8rem;
  width: clamp(58px, 6vw, 78px);
  aspect-ratio: 1;
  background: var(--wsm-brand-cube) center / contain no-repeat;
  opacity: 0.52;
  pointer-events: none;
}

.wsm-involvement-card h3 {
  margin-top: 0;
  color: var(--wsm-dark-blue);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.wsm-involvement-card p:last-child {
  margin-bottom: 0;
}

.wsm-benefits-placeholder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.wsm-benefit-placeholder {
  min-width: 0;
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--wsm-sand);
  background: var(--wsm-white);
  box-shadow: 0 8px 24px rgba(0, 55, 100, 0.07);
}

.wsm-benefit-placeholder strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--wsm-dark-blue);
}


/* EUROSKILLS */

.wsm-euroskills-overview {
  align-items: center;
}

.wsm-euroskills-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}

.wsm-euroskills-links > div {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 1.35rem 1.35rem 4.5rem;
  border-top: 5px solid var(--wsm-light-blue);
  background: var(--wsm-white);
  box-shadow: 0 10px 28px rgba(0, 55, 100, 0.08);
}

.wsm-euroskills-links > div:nth-child(2) {
  border-top-color: var(--wsm-red);
}

.wsm-euroskills-links > div:nth-child(3) {
  border-top-color: var(--wsm-sand);
}

.wsm-euroskills-links > div:nth-child(4) {
  border-top-color: var(--wsm-limestone);
}

.wsm-euroskills-links > div::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  bottom: 0.75rem;
  width: 58px;
  aspect-ratio: 1;
  background: var(--wsm-brand-cube) center / contain no-repeat;
  opacity: 0.42;
  pointer-events: none;
}

.wsm-euroskills-links strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--wsm-dark-blue);
  font-size: 1.15rem;
}

.wsm-euroskills-links span {
  color: var(--wsm-charcoal);
  line-height: 1.55;
}

/* FOOTER */

.wsm-site-footer {
  border-top: 6px solid var(--wsm-red);
  background: var(--wsm-dark-blue);
  color: var(--wsm-white);
}

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

.wsm-site-footer a:hover,
.wsm-site-footer a:focus-visible {
  color: var(--wsm-limestone);
}

.wsm-footer-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) minmax(220px, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.wsm-footer-logo {
  width: 128px;
  height: auto;
}

.wsm-footer-title {
  margin: 0 0 0.8rem;
  color: var(--wsm-white) !important;
  font-size: 1rem !important;
  text-transform: uppercase;
}

.wsm-footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wsm-footer-links li + li {
  margin-top: 0.45rem;
}

.wsm-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

.wsm-footer-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* CMS OUTPUT */

.wsm-empty-state {
  padding: 1.25rem;
  border-left: 4px solid var(--wsm-limestone);
  background: var(--wsm-light-grey);
}

.wsm-placeholder-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.45rem;
  background: var(--wsm-limestone);
  color: var(--wsm-dark-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* RESPONSIVENESS */

@media (max-width: 959px) {
  :root {
    --wsm-header-height: 92px;
  }

  .wsm-header-inner {
    min-height: var(--wsm-header-height);
  }

  /* Override the parent theme desktop navigation breakpoint. */
  .wsm-site-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex !important;
  }

  .wsm-site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none !important;
  }

  .wsm-site-header .wp-block-navigation__responsive-container.is-menu-open {
    overflow-y: auto;
    padding: clamp(1rem, 3vw, 2rem);
  }

  .wsm-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    display: block !important;
    width: min(100%, 680px);
    margin-inline: auto;
    padding-top: 3rem !important;
  }

  .wsm-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.45rem !important;
    width: 100%;
  }

  .wsm-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
  }

  .wsm-site-header .wp-block-navigation__responsive-container.is-menu-open > .wp-block-navigation__responsive-close > .wp-block-navigation__responsive-dialog > .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    padding: 0.75rem 0;
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .wsm-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0.1rem 0 0.8rem 0 !important;
    padding: 0 0 0 1rem !important;
    border: 0 !important;
    border-left: 2px solid rgba(255, 255, 255, 0.28) !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .wsm-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    display: block;
    width: 100%;
    padding: 0.55rem 0 0.55rem 0.8rem;
    font-size: 1rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .wsm-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
    background: rgba(255, 255, 255, 0.08);
  }

  .wsm-building-grid,
  .wsm-link-columns,
  .wsm-content-grid,
  .wsm-about-grid,
  .wsm-vmp-grid,
  .wsm-contact-grid,
  .wsm-involvement-grid,
  .wsm-benefits-placeholder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wsm-partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 781px) {
  .wsm-hero {
    min-height: 600px;
  }

  .wsm-hero .wp-block-cover__background {
    background: linear-gradient(180deg, rgba(0, 30, 55, 0.88), rgba(0, 55, 100, 0.55));
  }

  .wsm-split {
    gap: 1.5rem !important;
  }

  .wsm-split .wp-block-image img {
    min-height: 280px;
  }

  .wsm-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  .wsm-site-header {
    border-top-width: 3px;
  }

  .wsm-site-header .wp-block-navigation__responsive-container.is-menu-open {
    padding: 1rem 1.25rem 1.5rem;
  }

  .wsm-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    width: 100%;
    padding-top: 2.75rem !important;
  }

  .wsm-site-header .wp-block-navigation__responsive-container.is-menu-open > .wp-block-navigation__responsive-close > .wp-block-navigation__responsive-dialog > .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    padding-block: 0.65rem;
    font-size: 1.08rem;
  }

  .wsm-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    margin-bottom: 0.65rem !important;
    padding-left: 0.75rem !important;
  }

  .wsm-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    padding: 0.5rem 0 0.5rem 0.65rem;
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .wsm-brand img {
    width: 72px;
  }

  .wsm-hero {
    min-height: 540px;
  }

  .wsm-hero-content {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .wsm-building-grid,
  .wsm-link-columns,
  .wsm-content-grid,
  .wsm-partner-grid,
  .wsm-about-grid,
  .wsm-vmp-grid,
  .wsm-contact-grid {
    grid-template-columns: 1fr;
  }

  .wsm-building-card {
    min-height: auto;
  }

  .wsm-about-image img {
    min-height: 260px;
  }

  .wsm-partner {
    min-height: 120px;
  }

  .wsm-footer-meta {
    flex-direction: column;
  }
}

@media (max-width: 599px) {
  .wsm-competition-nav__inner {
    width: 100%;
    box-sizing: border-box;
    padding-inline: 0.5rem;
  }

  .wsm-competition-nav a {
    padding: 0.85rem 0.8rem;
    font-size: 0.84rem;
  }

  .wsm-programme__item {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .wsm-results-wrap {
    overflow: visible;
  }

  .wsm-results-table,
  .wsm-results-table thead,
  .wsm-results-table tbody,
  .wsm-results-table tr,
  .wsm-results-table th,
  .wsm-results-table td {
    display: block;
  }

  .wsm-results-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .wsm-results-table tr {
    margin-bottom: 1rem;
    border-top: 5px solid var(--wsm-red);
    background: var(--wsm-white) !important;
    box-shadow: 0 8px 24px rgba(0, 55, 100, 0.06);
  }

  .wsm-results-table td {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.75rem;
    border-bottom: 1px solid var(--wsm-border);
  }

  .wsm-results-table td::before {
    content: attr(data-label);
    color: var(--wsm-dark-blue);
    font-weight: 700;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* CONTENT DETAILS */

.wsm-detail-list {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 2rem;
  border-top: 1px solid var(--wsm-border);
}

.wsm-detail-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--wsm-border);
}

.wsm-detail-list dt {
  color: var(--wsm-dark-blue);
  font-weight: 700;
}

.wsm-detail-list dd {
  margin: 0;
}

@media (max-width: 599px) {
  .wsm-detail-list > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* COPY STYLE */

.ws-pullquote cite::before {
  content: "-";
}

/* NATIONAL CHAMPIONSHIPS */

.wsm-national-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.wsm-national-links > div {
  position: relative;
  display: flex;
  min-height: 150px;
  overflow: hidden;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.25rem 4.25rem;
  border-top: 5px solid var(--wsm-dark-blue);
  background: var(--wsm-white);
  box-shadow: 0 10px 28px rgba(0, 55, 100, 0.08);
}

.wsm-national-links > div::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  bottom: 0.65rem;
  width: 52px;
  aspect-ratio: 1;
  background: var(--wsm-brand-cube) center / contain no-repeat;
  opacity: 0.34;
  pointer-events: none;
}

.wsm-national-links > div:nth-child(2) {
  border-top-color: var(--wsm-light-blue);
}

.wsm-national-links > div:nth-child(3) {
  border-top-color: var(--wsm-red);
}

.wsm-national-links > div:nth-child(4) {
  border-top-color: var(--wsm-sand);
}

.wsm-national-links strong {
  color: var(--wsm-dark-blue);
  font-size: 1.1rem;
}

.wsm-national-links span {
  color: var(--wsm-charcoal);
  line-height: 1.55;
}

.wsm-competition-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 2rem;
}

.wsm-info-panel {
  position: relative;
  display: flex;
  min-height: 245px;
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(4.25rem, 7vw, 5.5rem);
  border-top: 6px solid var(--wsm-red);
  background: var(--wsm-white);
  box-shadow: 0 12px 30px rgba(0, 55, 100, 0.09);
}

.wsm-info-panel::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 0.8rem;
  width: 58px;
  aspect-ratio: 1;
  background: var(--wsm-brand-cube) center / contain no-repeat;
  opacity: 0.3;
  pointer-events: none;
}

.wsm-info-panel--rules {
  border-top-color: var(--wsm-dark-blue);
}

.wsm-info-panel__label {
  margin-bottom: 0.65rem;
  color: var(--wsm-dark-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wsm-info-panel h3 {
  margin: 0 0 0.8rem;
  color: var(--wsm-dark-blue);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.wsm-info-panel p {
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.wsm-info-panel .wsm-text-link,
.wsm-info-panel__pending {
  margin-top: auto;
}

.wsm-info-panel__pending {
  color: var(--wsm-dark-red);
  font-weight: 700;
}

@media (max-width: 959px) {
  .wsm-national-links,
  .wsm-euroskills-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .wsm-national-links,
  .wsm-euroskills-links,
  .wsm-competition-info-grid,
  .wsm-involvement-grid,
  .wsm-benefits-placeholder {
    grid-template-columns: 1fr;
  }

  .wsm-national-links > div,
  .wsm-info-panel {
    min-height: auto;
  }
}


/* BREADCRUMBS */

.wsm-breadcrumbs {
  width: min(100% - 2rem, 1200px);
  margin: 0 auto;
  padding: 1rem 0;
  font-size: 0.88rem;
}

.wsm-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wsm-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.wsm-breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: var(--wsm-sand);
}

.wsm-breadcrumbs a {
  color: var(--wsm-dark-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2rem;
}

.wsm-breadcrumbs [aria-current="page"] {
  color: var(--wsm-dark-red);
  font-weight: 700;
}

/* INFORMATION PAGES */

.wsm-information-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.wsm-information-card {
  min-width: 0;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border-top: 5px solid var(--wsm-red);
  background: var(--wsm-white);
  box-shadow: var(--wsm-shadow);
}

.wsm-information-card:nth-child(2) { border-top-color: var(--wsm-sand); }
.wsm-information-card:nth-child(3) { border-top-color: var(--wsm-light-blue); }
.wsm-information-card h3 { margin-top: 0; color: var(--wsm-dark-blue); }

/* 404 */

.wsm-404 .wp-block-search {
  max-width: 640px;
  margin-top: 2rem;
}

.wsm-404 .wp-block-search__inside-wrapper { border: 2px solid var(--wsm-dark-blue); }
.wsm-404 .wp-block-search__button { border: 0; background: var(--wsm-red); color: var(--wsm-white); }

@media (max-width: 781px) {
  .wsm-information-grid { grid-template-columns: 1fr; }
  .wsm-breadcrumbs { padding-top: 0.8rem; padding-bottom: 0.8rem; font-size: 0.82rem; }
}

/* RESPONSIVE AND ACCESSIBILITY QA PASS */

:where(.wsm-card__title, .wsm-about-card h3, .wsm-involvement-card h3, .wsm-euroskills-links strong, .wsm-national-links strong) {
  overflow-wrap: anywhere;
}

.wsm-page-title,
.wsm-section-heading {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 959px) {
  .wsm-euroskills-links,
  .wsm-national-links,
  .wsm-competition-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .wsm-involvement-grid,
  .wsm-benefits-placeholder,
  .wsm-euroskills-links,
  .wsm-national-links,
  .wsm-competition-info-grid {
    grid-template-columns: 1fr;
  }

  .wsm-page-title {
    font-size: clamp(2.25rem, 12vw, 3.4rem) !important;
  }

  .wsm-section-heading {
    font-size: clamp(1.9rem, 10vw, 2.8rem) !important;
  }

  .wsm-hero-title {
    font-size: clamp(2.35rem, 12vw, 3.8rem) !important;
  }

  .wsm-hero-content .wp-block-buttons {
    width: 100%;
    align-items: stretch;
    gap: 0.75rem;
  }

  .wsm-hero-content .wp-block-button,
  .wsm-hero-content .wp-block-button__link {
    width: 100%;
  }

  .wsm-results-table td {
    grid-template-columns: minmax(88px, 38%) minmax(0, 1fr);
  }

  .wsm-card__body,
  .wsm-about-card,
  .wsm-involvement-card,
  .wsm-vmp-card,
  .wsm-info-panel {
    overflow-wrap: anywhere;
  }
}

@media (forced-colors: active) {
  :where(a, button, input, textarea, select, [tabindex]):focus-visible {
    outline: 3px solid CanvasText;
  }

  .wsm-card,
  .wsm-about-card,
  .wsm-building-card,
  .wsm-involvement-card,
  .wsm-vmp-card,
  .wsm-info-panel,
  .wsm-partner {
    border: 1px solid CanvasText;
  }
}

/* CUSTOM CMS BLOCKS */

.wsm-block-section-heading,
.wsm-text-media,
.wsm-custom-cta,
.wsm-custom-hero__inner {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.wsm-custom-hero {
  min-height: clamp(360px, 48vw, 620px);
  display: flex;
  align-items: center;
  background-color: var(--wsm-dark-blue);
  background-size: cover;
  background-position: center;
  color: var(--wsm-white);
  border-bottom: 4px solid var(--wsm-red);
}

.wsm-custom-hero__inner {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.wsm-custom-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--wsm-white);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: .96;
}

.wsm-custom-hero__lead {
  max-width: 720px;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.wsm-custom-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.wsm-button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border: 2px solid currentColor;
  color: var(--wsm-white);
  font-weight: 700;
  text-decoration: none;
}

.wsm-text-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.wsm-text-media__media img,
.wsm-text-media__media .wsm-card__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.wsm-custom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-block: clamp(3rem, 6vw, 5rem);
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--wsm-dark-blue);
  color: var(--wsm-white);
  border-top: 5px solid var(--wsm-red);
}

.wsm-custom-cta h2 {
  margin-top: 0;
  color: var(--wsm-white);
}

@media (max-width: 781px) {
  .wsm-text-media { grid-template-columns: 1fr; }
  .wsm-custom-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 599px) {
  .wsm-custom-hero__actions,
  .wsm-custom-hero__actions a,
  .wsm-custom-cta .wp-element-button {
    width: 100%;
  }
}

.wsm-feature-cards {
  width: min(100% - 2rem, 1180px);
  margin: clamp(3rem, 6vw, 6rem) auto;
}

.wsm-feature-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 2rem;
}

.wsm-feature-card {
  position: relative;
  min-width: 0;
  min-height: 240px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 5px solid var(--wsm-light-blue);
  background: var(--wsm-white);
  box-shadow: var(--wsm-shadow);
  overflow: hidden;
}

.wsm-feature-card:nth-child(2) { border-top-color: var(--wsm-limestone); }
.wsm-feature-card:nth-child(3) { border-top-color: var(--wsm-red); }
.wsm-feature-card::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 48px;
  height: 48px;
  background: url('../images/malta-cube.svg') center / contain no-repeat;
  opacity: .72;
}
.wsm-feature-card h3 { margin-top: 0; color: var(--wsm-dark-blue); }

@media (max-width: 781px) { .wsm-feature-cards__grid { grid-template-columns: 1fr; } }


/* PRIVACY NOTICE */

.wsm-policy .wsm-section-intro {
  max-width: 780px;
}

.wsm-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.wsm-policy-card {
  position: relative;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 5px solid var(--wsm-dark-blue);
  background: var(--wsm-white);
  box-shadow: var(--wsm-shadow);
}

.wsm-policy-card:nth-child(2),
.wsm-policy-card:nth-child(5) {
  border-top-color: var(--wsm-light-blue);
}

.wsm-policy-card:nth-child(3),
.wsm-policy-card:nth-child(6) {
  border-top-color: var(--wsm-red);
}

.wsm-policy-card__number {
  display: block;
  margin-bottom: .75rem;
  color: var(--wsm-dark-red);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.wsm-policy-card h3 {
  margin-top: 0;
  color: var(--wsm-dark-blue);
}

.wsm-policy-card p:last-child {
  margin-bottom: 0;
}

.wsm-policy-note {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: 1.25rem 1.5rem;
  border-left: 5px solid var(--wsm-red);
  background: var(--wsm-white);
  color: var(--wsm-dark-blue);
}

@media (max-width: 781px) {
  .wsm-policy-grid {
    grid-template-columns: 1fr;
  }
}


/* MOBILE CONTENT REFINEMENTS */

@media (max-width: 599px) {
  .wsm-page-intro {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .wsm-page-title {
    max-width: none;
    font-size: clamp(2.15rem, 10vw, 3.05rem) !important;
    line-height: 1.02 !important;
    text-wrap: pretty;
  }

  .wsm-page-lead {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .wsm-section-heading {
    max-width: none;
    font-size: clamp(1.85rem, 8.5vw, 2.6rem) !important;
    line-height: 1.08 !important;
    text-wrap: pretty;
  }

  .wsm-callout {
    padding: 1.25rem 1.25rem 1.35rem;
    padding-inline: 1.25rem !important;
    border-left-width: 5px;
  }

  .wsm-callout h2 {
    font-size: clamp(1.7rem, 8vw, 2.25rem) !important;
    line-height: 1.1 !important;
    overflow-wrap: normal;
    word-break: normal;
  }

  .wsm-callout p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .wsm-building-card,
  .wsm-feature-card {
    padding-bottom: 5.25rem;
  }

  .wsm-building-card::after,
  .wsm-feature-card::after {
    right: 1rem;
    bottom: 1rem;
    width: 58px;
    height: 58px;
    opacity: 0.62;
  }

  .wsm-building-card h3,
  .wsm-feature-card h3 {
    font-size: clamp(1.6rem, 7vw, 2rem);
    line-height: 1.1;
  }

  .wsm-building-card p,
  .wsm-feature-card p {
    line-height: 1.5;
  }

  .wsm-contact-grid {
    gap: 0.85rem;
  }

  .wsm-contact-item {
    padding: 1.2rem 1.25rem;
  }

  .wsm-contact-item p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.45;
  }

  .wsm-competition-nav__inner {
    scroll-snap-type: inline proximity;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .wsm-competition-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    scroll-snap-align: start;
  }
}

/* CLIENT-CONTROLLED SECTION VISIBILITY AND ORDER-BASED COLOUR CYCLE */

/*
 * HOME DYNAMIC SECTIONS DO NOT OWN A FIXED BACKGROUND COLOUR.
 *
 * The Core plugin marks visible Partners, Events and News sections at render
 * time and assigns palette 1, 2 or 3 from their current visible Page order.
 * Removing or hiding one section therefore promotes the following section to
 * the next palette instead of leaving adjacent automated sections alike.
 */
.worldskills-malta-site .wsm-home-palette-1 {
  background: var(--wsm-limestone-wash);
  box-shadow: inset 0 6px 0 var(--wsm-limestone);
}

.worldskills-malta-site .wsm-home-palette-2 {
  background: var(--wsm-light-blue-wash);
  box-shadow: inset 0 6px 0 var(--wsm-light-blue);
}

.worldskills-malta-site .wsm-home-palette-3 {
  background: var(--wsm-sand-wash);
  box-shadow: inset 0 6px 0 var(--wsm-sand);
}

/* EUROSKILLS PREVIEW CARDS AND MATCHING COMPETITION NAVIGATION */
.wsm-hide-euroskills-skills .wsm-euroskills-links > div:nth-child(1),
.wsm-hide-euroskills-team-malta .wsm-euroskills-links > div:nth-child(2),
.wsm-hide-euroskills-experts .wsm-euroskills-links > div:nth-child(3),
.wsm-hide-euroskills-partners .wsm-euroskills-links > div:nth-child(4),
.wsm-hide-euroskills-skills .wsm-competition-nav a[href="#skill-areas"],
.wsm-hide-euroskills-team-malta .wsm-competition-nav a[href="#team-malta"],
.wsm-hide-euroskills-experts .wsm-competition-nav a[href="#experts"],
.wsm-hide-euroskills-partners .wsm-competition-nav a[href="#partners-sponsors"] {
  display: none !important;
}

.wsm-euroskills-visible-0 .wsm-euroskills-links,
.wsm-euroskills-visible-0 .wsm-competition-nav {
  display: none;
}

@media (min-width: 960px) {
  .wsm-euroskills-visible-1 .wsm-euroskills-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .wsm-euroskills-visible-2 .wsm-euroskills-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wsm-euroskills-visible-3 .wsm-euroskills-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 600px) and (max-width: 959px) {
  .wsm-euroskills-visible-1 .wsm-euroskills-links {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* HIDE CLIENT-DISABLED EUROSKILLS SECTIONS EVEN IF EDITORS RESTRUCTURE BLOCKS. */
.wsm-hide-euroskills-skills #skill-areas,
.wsm-hide-euroskills-team-malta #team-malta,
.wsm-hide-euroskills-team-malta #competitors,
.wsm-hide-euroskills-experts #experts,
.wsm-hide-euroskills-partners #partners-sponsors {
  display: none !important;
}
