/* Webyficha site release 2026.08-R2.
   Client-specific corrections pending incorporation into WF Web Engine. */

/* Prevent intrinsic media sizing from widening narrow viewports. */
.hero-split .grid > *,
.split .grid > *,
.contactblk .grid > * {
  min-width: 0;
}

.hero-split .media,
.hero-split .imgph,
.split .media,
.split .imgph {
  max-width: 100%;
  width: 100%;
}

.cookie-settings-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #8fa0c0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus-visible {
  color: #fff;
}

.cookie-settings-inline {
  appearance: none;
  border: 2px solid var(--navy);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font: 700 15px/1.2 var(--body);
  margin-top: 10px;
  padding: 12px 18px;
}

/* First layer */
.wf-consent {
  bottom: 16px;
  left: 50%;
  right: auto;
  width: min(1040px, calc(100% - 32px));
  max-width: none;
  margin: 0;
  padding: 22px 24px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  background: #0a1f44;
  box-shadow: 0 18px 60px rgba(10, 31, 68, .34);
  color: #fff;
}

.wf-consent[hidden],
.wf-consent-settings[hidden] {
  display: none !important;
}

.wf-consent-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.wf-consent .wf-consent-title {
  margin: 0 0 5px;
  color: #fff;
  font: 800 18px/1.25 var(--display);
}

.wf-consent .wf-consent-text {
  max-width: 68ch;
  margin: 0;
  color: #e1e8f5;
  font-size: 14px;
  line-height: 1.55;
}

.wf-consent .wf-consent-text a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wf-consent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  gap: 9px;
}

.wf-consent .wf-consent-action,
.wf-consent-panel .wf-consent-action {
  min-height: 44px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: #fff;
  color: #0a1f44;
  cursor: pointer;
  font: 800 14px/1.2 var(--body);
  padding: 10px 14px;
  text-align: center;
}

.wf-consent button.wf-consent-action[data-accept],
.wf-consent button.wf-consent-action[data-reject] {
  border: 2px solid #fff;
  background: #fff;
  color: #0a1f44;
}

.wf-consent button.wf-consent-action[data-configure] {
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
}

.wf-consent .wf-consent-action[data-configure] {
  background: transparent;
  color: #fff;
}

.wf-consent .wf-consent-action:hover,
.wf-consent-panel .wf-consent-action:hover {
  filter: brightness(.94);
}

.wf-consent .wf-consent-action:focus-visible,
.wf-consent-panel button:focus-visible,
.cookie-settings-link:focus-visible,
.cookie-settings-inline:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

/* Preferences layer */
.wf-consent-settings {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 20px;
  background: rgba(10, 31, 68, .72);
  backdrop-filter: blur(4px);
}

.wf-consent-panel {
  position: relative;
  width: min(650px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(10, 31, 68, .35);
  padding: 28px;
}

.wf-consent-panel h2 {
  margin: 0 42px 8px 0;
  font-size: clamp(25px, 4vw, 34px);
}

.wf-consent-panel > p {
  margin: 0 0 20px;
  color: var(--grey);
  font-size: 15px;
}

.wf-consent-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.wf-consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.wf-consent-category h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.wf-consent-category p {
  margin: 0;
  color: var(--grey);
  font-size: 14px;
  line-height: 1.5;
}

.wf-consent-always {
  border-radius: 999px;
  background: #e9f7f3;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  white-space: nowrap;
}

.wf-consent-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.wf-consent-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wf-consent-switch span {
  position: relative;
  display: block;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #c9d1dd;
  cursor: pointer;
  transition: background .18s ease;
}

.wf-consent-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(10, 31, 68, .22);
  transition: transform .18s ease;
}

.wf-consent-switch input:checked + span {
  background: #0f766e;
}

.wf-consent-switch input:checked + span::after {
  transform: translateX(22px);
}

.wf-consent-switch input:focus-visible + span {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.wf-consent-panel-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.wf-consent-panel .wf-consent-action {
  border-color: var(--navy);
  background: #fff;
}

.wf-consent-panel .wf-consent-action[data-save] {
  background: var(--navy);
  color: #fff;
}

body.wf-consent-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero-split .media,
  .hero-split .imgph,
  .split .media,
  .split .imgph {
    min-height: 0;
  }

  .wf-consent-inner {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .wf-consent-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .hero-split .media,
  .hero-split .imgph,
  .split .media,
  .split .imgph {
    min-height: 0;
    width: 100%;
  }

  .hero-split h1,
  .hero-img h1,
  .article-head h1,
  .blog-hero h1 {
    overflow-wrap: break-word;
    font-size: clamp(31px, 9.2vw, 42px);
  }

  .wf-consent {
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 17px;
  }

  .wf-consent-actions,
  .wf-consent-panel-actions {
    grid-template-columns: 1fr;
  }

  .wf-consent .wf-consent-action,
  .wf-consent-panel .wf-consent-action {
    width: 100%;
  }

  .wf-consent-settings {
    align-items: end;
    padding: 0;
  }

  .wf-consent-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    padding: 24px 18px;
  }

  .wf-consent-category {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wf-consent-switch span,
  .wf-consent-switch span::after {
    transition: none;
  }
}
