html.geo-pending body > :not(script) {
    visibility: hidden !important;
}

body.cookie-modal-open {
    overflow: hidden;
}

.legacy-cookie-manager {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.legacy-cookie-card {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 88px;
    padding: 18px 52px;
    background: rgba(3, 68, 79, 0.94);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.14);
}

.legacy-cookie-copy p {
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

.legacy-cookie-copy a {
    color: #fff;
    text-decoration: underline;
}

.legacy-cookie-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    margin-left: auto;
}

.legacy-cookie-actions button,
.legacy-cookie-settings button {
    min-height: 32px;
    padding: 6px 12px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: 500 12px/1.25 Arial, Helvetica, sans-serif;
}

.legacy-cookie-actions .legacy-cookie-manage {
    padding-right: 0;
    padding-left: 0;
    border: 0;
    background: transparent;
    color: #7fbe43;
    font-weight: 600;
    text-decoration: underline;
}

.legacy-cookie-actions .legacy-cookie-accept,
.legacy-cookie-settings .legacy-cookie-save {
    border-radius: 0;
    background: #7fbe43;
    color: #fff;
    font-weight: 600;
}

.legacy-cookie-settings {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

.legacy-cookie-settings-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 29, 34, 0.58);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.legacy-cookie-settings-panel {
    position: relative;
    width: min(100%, 450px);
    padding: 38px 56px 40px;
    border-radius: 14px;
    background: #104853;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    color: #fff;
}

.legacy-cookie-settings-panel h2 {
    margin: 0 0 8px;
    color: #fff;
    font: 600 14px/1.4 Arial, Helvetica, sans-serif;
}

.legacy-cookie-settings-panel > p {
    margin: 0 0 18px;
    color: #fff;
    font-size: 12px;
}

.legacy-cookie-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

.legacy-cookie-setting-row strong,
.legacy-cookie-setting-row small {
    display: block;
}

.legacy-cookie-setting-row strong {
    color: #fff;
    font-size: 12px;
    line-height: 1.25;
}

.legacy-cookie-setting-row small {
    margin-top: 1px;
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
}

.legacy-cookie-settings .legacy-cookie-toggle {
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    min-height: 18px;
    height: 18px;
    padding: 0;
    border-radius: 999px;
    background: #d1d5db;
}

.legacy-cookie-settings .legacy-cookie-toggle span {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.16s ease;
}

.legacy-cookie-settings .legacy-cookie-toggle[aria-checked="true"] {
    background: #7fbe43;
}

.legacy-cookie-settings .legacy-cookie-toggle[aria-checked="true"] span {
    transform: translateX(18px);
}

.legacy-cookie-always {
    flex: 0 0 auto;
    padding: 5px 12px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #4b5563;
    font-size: 11px;
    font-weight: 600;
}

.legacy-cookie-settings-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 20px;
}

.legacy-cookie-settings .legacy-cookie-cancel {
    padding-right: 0;
    padding-left: 0;
    background: transparent;
    color: #7fbe43;
    font-weight: 600;
    text-decoration: underline;
}

.legacy-cookie-settings .legacy-cookie-save {
    min-height: 32px;
    padding-right: 16px;
    padding-left: 16px;
}

body.legacy-cookie-modal-open {
    overflow: hidden;
}

body.legacy-cookie-modal-open .legacy-cookie-manager {
    visibility: hidden;
}

@media (max-width: 600px) {
    .legacy-cookie-card {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        min-height: 0;
        padding: 18px 20px;
    }

    .legacy-cookie-actions {
        justify-content: flex-end;
        flex-direction: row;
        gap: 18px;
        margin-left: 0;
    }

    .legacy-cookie-actions button {
        width: auto;
    }

    .legacy-cookie-settings-panel {
        padding: 32px 24px;
    }
}

body.cookie-modal-open .cookie-consent-gate {
    visibility: hidden !important;
    pointer-events: none;
}

/* Cookie consent: shared visual design for the site and blog. */
.cookie-consent-gate {
  position: fixed;
  z-index: 1400;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.cookie-consent-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 64px;
  padding: 36px 48px;
  border: 1px solid #dcdad4;
  border-radius: 0;
  background: rgba(246,245,241,.96);
  color: #111;
  box-shadow: none;
  pointer-events: auto;
}
.cookie-consent-copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cookie-consent-gate .section-label,
.cookie-settings-modal .section-label {
  color: #1b5e69;
  font: 700 11px/1.4 'GT Walsheim','MaisonNeue',Arial,sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.cookie-consent-gate h2,
.cookie-settings-modal h2 {
  margin: 0;
  font: 700 30px/1.12 'GT Walsheim','MaisonNeue',Arial,sans-serif;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.cookie-consent-gate h2 span,
.cookie-settings-modal h2 span { display: block; color: #111; }
.cookie-consent-gate h2 span + span,
.cookie-settings-modal h2 span + span { color: #1b5e69; }
.cookie-consent-copy p,
.cookie-settings-intro {
  margin: 4px 0 0;
  color: #4a4a4a;
  font: 300 15px/1.7 'MaisonNeue',Arial,sans-serif;
}
.cookie-consent-copy p { max-width: 66ch; }
.cookie-consent-copy a { color: #1b5e69; text-decoration: underline; text-underline-offset: 3px; }
.cookie-consent-copy a:hover { color: #04313f; }
.cookie-consent-gate .notice-actions { flex: 0 0 220px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.cookie-consent-gate button,
.cookie-settings-modal button { cursor: pointer; border-radius: 0; }
.cookie-consent-gate .cookie-primary,
.cookie-consent-gate .cookie-secondary,
.cookie-settings-modal .cookie-primary,
.cookie-settings-modal .cookie-secondary {
  min-height: 49px;
  padding: 0 24px;
  font-family: 'GT Walsheim','MaisonNeue',Arial,sans-serif;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background 180ms cubic-bezier(.4,0,.2,1), color 180ms cubic-bezier(.4,0,.2,1), border-color 180ms cubic-bezier(.4,0,.2,1);
}
.cookie-consent-gate .cookie-primary,
.cookie-settings-modal .cookie-primary { border: 1px solid #1b5e69; background: #1b5e69; color: #fff; font-weight: 700; }
.cookie-consent-gate .cookie-primary:hover,
.cookie-settings-modal .cookie-primary:hover { border-color: #04313f; background: #04313f; }
.cookie-consent-gate .cookie-secondary,
.cookie-settings-modal .cookie-secondary { border: 1px solid #dcdad4; background: transparent; color: #4a4a4a; font-weight: 400; }
.cookie-consent-gate .cookie-secondary:hover,
.cookie-settings-modal .cookie-secondary:hover { border-color: #1b5e69; color: #1b5e69; }
.cookie-consent-gate .notice-actions .cookie-manage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1b5e69;
  font: 700 11px/1.3 'GT Walsheim','MaisonNeue',Arial,sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.cookie-consent-gate .notice-actions .cookie-manage:hover { color: #04313f; }
.cookie-manage span { font-size: 13px; letter-spacing: 0; }
.cookie-consent-gate :focus-visible,
.cookie-settings-modal :focus-visible { outline: 2px solid #063343; outline-offset: 2px; }
.cookie-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cookie-settings-backdrop { position: absolute; inset: 0; background: rgba(4,49,63,.62); }
.cookie-settings-panel {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 600px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 44px 48px 40px;
  border: 1px solid #dcdad4;
  border-radius: 0;
  background: #f6f5f1;
  box-shadow: none;
}
.cookie-settings-close {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid #dcdad4;
  background: #fff;
  color: #1b5e69;
  font: 700 11px 'GT Walsheim','MaisonNeue',Arial,sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cookie-settings-close:hover { border-color: #1b5e69; }
.cookie-options { display: flex; flex-direction: column; margin-top: 18px; border-top: 1px solid #dcdad4; }
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #dcdad4;
  color: #111;
}
.cookie-option > span:first-child { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cookie-option strong { color: #111; font: 400 15px/1.3 'GT Walsheim','MaisonNeue',Arial,sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.cookie-option small { color: #4a4a4a; font: 300 14px/1.6 'MaisonNeue',Arial,sans-serif; }
.cookie-always-on { flex: none; color: #1b5e69; font: 700 11px/1.3 'GT Walsheim','MaisonNeue',Arial,sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.cookie-option input[role="switch"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 20px;
  margin: 0;
  border: 0;
  border-radius: 20px;
  background: #d4d4d4;
  cursor: pointer;
  transition: background 180ms cubic-bezier(.4,0,.2,1);
}
.cookie-option input[role="switch"]::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 180ms cubic-bezier(.4,0,.2,1);
}
.cookie-option input[role="switch"]:checked { background: #063343; }
.cookie-option input[role="switch"]:checked::before { transform: translateX(20px); }
.cookie-settings-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cookie-settings-actions button { flex: 1 1 200px; }
@media (max-width: 760px) {
  .cookie-consent-panel { padding: 24px; gap: 24px; }
  .cookie-consent-gate .notice-actions { flex: 1 1 100%; }
  .cookie-consent-gate .notice-actions button { width: 100%; }
  .cookie-settings-panel { padding: 60px 24px 28px; }
}
@media (max-width: 480px) {
  .cookie-consent-gate { left: 12px; right: 12px; bottom: 12px; }
  .cookie-consent-panel { max-height: calc(100dvh - 24px); padding: 20px; }
  .cookie-consent-gate h2, .cookie-settings-modal h2 { font-size: 26px; }
  .cookie-settings-modal { padding: 12px; }
  .cookie-option { gap: 12px; }
  .cookie-always-on { white-space: nowrap; }
}

@media (max-width: 480px) { .cookie-settings-panel { max-height: calc(100dvh - 24px); } }

/* The job-board form stylesheet hides ordinary checkboxes; keep preference switches visible. */
body:not(#foo) .cookie-settings-modal .cookie-option input[role="switch"] {
  position: relative;
  z-index: auto;
}

/* The job board header and healthcare prompt use higher layers than the main site. */
.cookie-consent-gate { z-index: 20000; }
.cookie-settings-modal { z-index: 21000; }
