/* Maltaforenglish global control system
   Buttons: soft rectangle. Section labels: compact yellow rectangle.
   Feature tags: white outlined pill with the existing colour accent. */
:root {
  --mfe-control-radius: 10px;
  --mfe-section-label-radius: 8px;
  --mfe-tag-radius: 999px;
}

/* The never-matching double ID raises specificity so this final stylesheet
   consistently replaces legacy pill rules on every page. */
html body :is(
  #mfe-control-system#mfe-control-system-never,
  button,
  input[type="button"],
  input[type="submit"],
  a.button,
  button.button,
  .btn,
  .nav-cta,
  .hero-search__talk,
  .guide-all-button,
  .review-button,
  .preventivo-action-btn,
  .preventivo-next,
  .preventivo-back,
  .not-found-button--light,
  .not-found-button--ghost,
  .language-option,
  .about-final-cta__consultation,
  .segment-final-cta__consultation,
  .about-map-reset,
  .preventivo-contact-option,
  .adult-price-card__price,
  .resource-filter button,
  .guide-index-filter button,
  .segment-buttons a,
  .teen-week-tabs,
  .teen-week-tab
) {
  border-radius: var(--mfe-control-radius) !important;
}

html body :is(
  #mfe-control-system#mfe-control-system-never,
  a.button,
  button.button,
  .btn,
  .nav-cta,
  .hero-search__talk,
  .guide-all-button,
  .review-button,
  .preventivo-action-btn,
  .preventivo-next,
  .preventivo-back,
  .not-found-button--light,
  .not-found-button--ghost,
  .language-option,
  .about-final-cta__consultation,
  .segment-final-cta__consultation,
  .about-map-reset,
  .preventivo-contact-option,
  .adult-price-card__price,
  .resource-filter button,
  .guide-index-filter button,
  .segment-buttons a,
  .teen-week-tabs,
  .teen-week-tab
) {
  min-height: 48px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

/* The final Home CTA has a legacy high-specificity pill rule. */
html body.home-page main#main section.home-preview-final > div.container.home-preview-final__inner > div.home-preview-final__actions > a.button {
  border-radius: var(--mfe-control-radius) !important;
}

/* Align the Home team title with the scale used by the other section headings. */
html body.home-page.home-preview #chi-siamo .split__copy h2 {
  max-width: 920px !important;
  font-size: clamp(2.5rem, 4.3vw, 3rem) !important;
  line-height: 1.05 !important;
}

@media (max-width: 760px) {
  html body.home-page.home-preview #chi-siamo .split__copy h2 {
    font-size: clamp(2rem, 9vw, 2.5rem) !important;
  }
}

/* Section labels match the approved compact yellow reference. */
html body :is(
  #mfe-section-label-system#mfe-section-label-system-never,
  main .section-kicker,
    main .eyebrow
) {
  min-height: 30px !important;
  padding: 6px 12px !important;
  color: var(--mfe-navy, #293659) !important;
  background: var(--mfe-yellow, #f2ec96) !important;
  border: 1px solid rgba(41, 54, 89, 0.86) !important;
  border-radius: var(--mfe-section-label-radius) !important;
  box-shadow: 1px 1px 0 rgba(24, 47, 107, 0.07) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

/* Feature tags use the outlined pill model shown in the reference. */
html body :is(
  #mfe-feature-tag-system#mfe-feature-tag-system-never,
  .home-malta-tag,
  .segment-trust-row > span,
  .about-why__tags > li,
  .path-proof-tag,
  .pill,
  .chip
) {
  color: var(--mfe-navy, #293659) !important;
  background: #fff !important;
  border: 2px solid var(--mfe-navy, #293659) !important;
  border-radius: var(--mfe-tag-radius) !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

/* Compact category badges remain visually distinct, but share the pill shape. */
html body :is(
  #mfe-compact-tag-system#mfe-compact-tag-system-never,
  .adult-price-card__tag,
  .review-profile-tag,
  .resource-card__category,
  .resource-card > div > span:first-child
) {
  border-radius: var(--mfe-tag-radius) !important;
}

html body :is(
  .preventivo-profile-card,
  .preventivo-program-card,
  .preventivo-week-card,
  .preventivo-accommodation-card,
  .preventivo-compact-option,
  .about-contact-choice,
  .consultation-date-options label,
  .consultation-mode-options label,
  .consultation-time-options label
) {
  border-radius: var(--mfe-control-radius) !important;
}

/* Keep genuinely circular controls circular for recognition and accessibility. */
html body :is(
  #mfe-circle-system#mfe-circle-system-never,
  .sticky-actions a,
  .mobile-carousel-dots button,
  .adult-accommodation-carousel__dots button,
  .guide-card-actions__button,
  .language-dialog__close,
  .about-map-marker,
  input[type="radio"] + i,
  input[type="checkbox"] + i
) {
  border-radius: 50% !important;
}
