:root {
    --th-blue: #003349;
    --th-sky: #68bfd0;
    --th-orange: #f18721;
    --th-ink: #21495a;
    --th-mist: #eef7fa;
    --th-sand: #fff7f0;
    --th-shell-width: min(1100px, 92vw);
    --th-content-width: min(760px, 100%);
    --th-wide-width: min(1040px, 100%);
}

@font-face {
    font-family: 'DK Formosa';
    src: url('/wp-content/uploads/et-fonts/DK-Formosa.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.th-content-page {
    position: relative;
    overflow: clip;
    color: var(--th-blue);
    background: #fff;
}

.th-content-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: min(42vw, 560px);
    height: 360px;
    background: url('/wp-content/uploads/2024/02/header-map-scaled.webp') no-repeat left top / contain;
    opacity: 0.16;
    pointer-events: none;
}

.th-content-page__wrap {
    position: relative;
    z-index: 1;
    width: var(--th-shell-width);
    margin: 0 auto;
    padding: clamp(48px, 8vw, 90px) 0 clamp(72px, 10vw, 120px);
}

.th-content-page__article--has-hero .th-content-page__header,
.th-content-page__article--has-hero .th-content-page__featured {
    display: none;
}

.th-content-page__article--has-hero .entry-content {
    margin-top: 0;
}

.th-content-page__article--has-hero .entry-content > .th-page-hero.alignfull:first-child,
.th-content-page__article--has-hero .entry-content > .th-ambassador-hero.alignfull:first-child {
    margin-top: calc(clamp(48px, 8vw, 90px) * -1);
}

.th-content-page__header {
    max-width: 820px;
    margin: 0 auto clamp(28px, 4vw, 44px);
}

.th-content-page__parent {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.th-content-page__parent a {
    color: var(--th-sky);
    text-decoration: none;
}

.th-content-page__title {
    font-family: 'Mr Eaves Mod OT', Helvetica, Arial, Lucida, sans-serif;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--th-blue);
    margin: 0;
    padding: 0;
}

.th-content-page__intro {
    margin-top: 18px;
    max-width: 720px;
    font-size: 21px;
    line-height: 1.7;
    color: var(--th-ink);
}

.th-content-page__featured {
    width: var(--th-wide-width);
    margin: 0 auto clamp(28px, 4vw, 44px);
}

.th-content-page__featured img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 28px 60px rgba(0, 51, 73, 0.12);
}

.th-content-page .entry-content {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.th-content-page .entry-content > * {
    max-width: var(--th-content-width);
    margin-left: auto;
    margin-right: auto;
}

.th-content-page .entry-content > .alignwide {
    max-width: var(--th-wide-width);
}

.th-content-page .entry-content > .alignfull {
    width: auto;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(24px, calc(50vw - 560px));
    padding-right: max(24px, calc(50vw - 560px));
}

.th-content-page .entry-content > .wp-block-cover.alignfull,
.th-content-page .entry-content > .wp-block-group.alignfull.has-background,
.th-content-page .entry-content > .wp-block-media-text.alignfull {
    padding-left: 0;
    padding-right: 0;
}

.th-content-page .entry-content h2,
.th-content-page .entry-content h3,
.th-content-page .entry-content h4 {
    color: var(--th-blue);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-top: clamp(34px, 5vw, 56px);
    margin-bottom: 16px;
}

.th-content-page .entry-content p,
.th-content-page .entry-content li {
    font-size: clamp(18px, 1.4vw, 20px);
    line-height: 1.72;
    color: var(--th-ink);
}

.th-content-page .entry-content p {
    margin-bottom: 1.1em;
}

.th-content-page .entry-content ul,
.th-content-page .entry-content ol {
    padding-left: 1.3em;
    margin-bottom: 1.5em;
}

.th-content-page .entry-content li {
    margin-bottom: 0.45em;
}

.th-content-page .entry-content a {
    color: #0d5879;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.14em;
}

.th-content-page .entry-content .wp-block-button__link {
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 700;
    box-shadow: 0 16px 28px rgba(241, 135, 33, 0.18);
}

.th-content-page .entry-content .wp-block-buttons {
    margin-top: 24px;
}

.th-eyebrow {
    display: inline-block;
    margin: 0 0 10px;
    color: var(--th-sky);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
    font-weight: 700;
}

.th-script-accent,
.th-content-page .entry-content .th-script-accent {
    font-family: 'DK Formosa', 'Comic Sans MS', cursive;
    color: var(--th-sky);
    font-weight: 400;
    margin-left: 0.12em;
    white-space: nowrap;
}

.th-highlight {
    color: var(--th-orange);
    font-weight: 700;
}

.th-formosa {
    font-family: 'DK Formosa', 'Comic Sans MS', cursive;
    font-weight: 400;
}

.th-formosa-sky {
    font-family: 'DK Formosa', 'Comic Sans MS', cursive;
    font-weight: 400;
    color: var(--th-sky);
}

.th-formosa-orange {
    font-family: 'DK Formosa', 'Comic Sans MS', cursive;
    font-weight: 400;
    color: var(--th-orange);
}

.th-formosa-large {
    font-family: 'DK Formosa', 'Comic Sans MS', cursive;
    font-weight: 400;
    font-size: 1.28em;
    line-height: 1;
}

.th-content-page .entry-content .is-style-th-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    border: 1px solid rgba(0, 51, 73, 0.08);
    border-radius: 28px;
    padding: clamp(22px, 3vw, 30px);
    box-shadow: 0 24px 48px rgba(0, 51, 73, 0.08);
}

.th-content-page .entry-content .is-style-th-panel > *:first-child,
.th-content-page .entry-content .is-style-th-accent-band > *:first-child {
    margin-top: 0;
}

.th-content-page .entry-content .is-style-th-panel > *:last-child,
.th-content-page .entry-content .is-style-th-accent-band > *:last-child {
    margin-bottom: 0;
}

.th-content-page .entry-content .is-style-th-accent-band {
    position: relative;
    overflow: clip;
    background: linear-gradient(135deg, var(--th-sand) 0%, var(--th-mist) 100%);
    border-radius: 34px;
    padding: clamp(28px, 5vw, 46px);
}

.th-content-page .entry-content .is-style-th-accent-band::after {
    content: '';
    position: absolute;
    inset: auto -40px -40px auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(104, 191, 208, 0.28) 0%, rgba(104, 191, 208, 0) 72%);
    pointer-events: none;
}

.th-content-page .entry-content ul.is-style-th-checklist {
    list-style: none;
    padding-left: 0;
}

.th-content-page .entry-content ul.is-style-th-checklist li {
    position: relative;
    padding-left: 1.7rem;
}

.th-content-page .entry-content ul.is-style-th-checklist li::before {
    content: '•';
    position: absolute;
    top: 0;
    left: 0;
    color: var(--th-orange);
    font-size: 1.2em;
    line-height: 1.3;
}

.th-content-page .entry-content .wp-block-image.is-style-th-soft-frame img {
    border-radius: 30px;
    box-shadow: 0 26px 48px rgba(0, 51, 73, 0.12);
}

.th-content-page .entry-content .wp-block-quote.is-style-th-story-quote {
    margin: 24px auto;
    padding: 30px 34px;
    background: var(--th-blue);
    color: #fff;
    border-left: 0;
    border-radius: 26px;
}

.th-content-page .entry-content .wp-block-quote.is-style-th-story-quote p,
.th-content-page .entry-content .wp-block-quote.is-style-th-story-quote cite {
    color: inherit;
}

.th-content-page .entry-content .wp-block-columns {
    gap: clamp(18px, 3vw, 28px);
}

.th-content-page .entry-content > .th-ambassador-hero.alignfull {
    margin-top: -24px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.th-ambassador-hero .wp-block-cover__inner-container {
    width: var(--th-shell-width);
    margin: 0 auto;
}

.th-ambassador-hero__layout {
    min-height: 540px;
}

.th-ambassador-hero-copy {
    max-width: 520px;
    padding: clamp(28px, 5vw, 42px);
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(0, 46, 67, 0.96), rgba(0, 51, 73, 0.9));
    box-shadow: 0 26px 52px rgba(0, 24, 40, 0.3);
    backdrop-filter: blur(4px);
    color: #f7fbff;
}

.th-ambassador-hero-copy .wp-block-heading,
.th-ambassador-hero-copy .wp-block-heading *,
.th-ambassador-hero-copy p,
.th-ambassador-hero-copy .has-body-copy-font-size,
.th-ambassador-hero-copy a {
    color: #fff !important;
    opacity: 1 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.th-ambassador-hero-copy .th-eyebrow {
    color: #bfefff !important;
    opacity: 1 !important;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.th-ambassador-hero-copy p,
.th-ambassador-hero-copy .has-body-copy-font-size {
    color: rgba(255, 255, 255, 0.96) !important;
}

.th-ambassador-hero-copy .th-formosa-orange {
    color: #ff9a24 !important;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
}

.th-icon-feature {
    align-items: center;
}

.th-icon-feature__copy > *:first-child {
    margin-top: 0;
}

.th-section-heading--centered {
    text-align: center;
    margin-bottom: 8px;
}

.th-section-heading--centered > .wp-block-group__inner-container {
    max-width: 780px;
    margin: 0 auto;
}

.th-inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 118px;
    height: 118px;
    border-radius: 32px;
    color: var(--th-blue);
    background: linear-gradient(180deg, #f2fbff 0%, #dceef5 100%);
    box-shadow: 0 18px 36px rgba(0, 51, 73, 0.1);
}

.th-inline-icon svg {
    width: 74px;
    height: 74px;
}

.th-inline-icon--small {
    width: 72px;
    height: 72px;
    border-radius: 22px;
}

.th-inline-icon--small svg {
    width: 44px;
    height: 44px;
}

.th-inline-icon--tiny {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.55);
}

.th-inline-icon--tiny svg {
    width: 38px;
    height: 38px;
}

.th-icon-card {
    height: 100%;
    background: #fff;
    border: 1px solid rgba(0, 51, 73, 0.08);
    border-radius: 26px;
    padding: 26px 24px;
    box-shadow: 0 18px 34px rgba(0, 51, 73, 0.08);
    text-align: center;
}

.th-icon-card > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.th-icon-card .wp-block-heading {
    margin-top: 14px;
    margin-bottom: 12px;
    font-size: clamp(28px, 3vw, 34px);
}

.th-icon-card p {
    margin-bottom: 0;
}

.th-support-strip {
    margin-top: clamp(40px, 5vw, 56px);
    margin-bottom: clamp(40px, 5vw, 56px);
    padding-top: clamp(36px, 6vw, 56px);
    padding-bottom: clamp(36px, 6vw, 56px);
    background: linear-gradient(180deg, #dff3fb 0%, #d2ecf6 100%);
}

.th-support-strip > .wp-block-group__inner-container {
    width: var(--th-shell-width);
    margin: 0 auto;
}

.th-support-grid {
    margin-top: 18px;
}

.th-mini-feature {
    height: 100%;
    padding: 6px 4px;
}

.th-mini-feature > .wp-block-group__inner-container {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.th-mini-feature p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
}

.th-mini-feature strong {
    color: var(--th-blue);
}

.th-cta-panel {
    text-align: center;
    max-width: 820px;
    margin-top: clamp(28px, 4vw, 40px);
    margin-bottom: 0;
    padding: clamp(30px, 5vw, 46px);
    border: 1px solid rgba(0, 51, 73, 0.08);
    border-radius: 34px;
    box-shadow: 0 22px 44px rgba(0, 51, 73, 0.08);
}

.th-cta-panel .wp-block-buttons {
    margin-top: 20px;
}

.th-cta-panel .wp-block-button__link {
    min-width: 180px;
}

@media (max-width: 980px) {
    .th-content-page::before {
        width: 70vw;
        height: 260px;
    }

    .th-content-page .entry-content > .alignfull {
        padding-left: 24px;
        padding-right: 24px;
    }

    .th-ambassador-hero__layout {
        min-height: 0;
    }

    .th-ambassador-hero-copy {
        max-width: 100%;
    }

    .th-support-strip > .wp-block-group__inner-container {
        width: auto;
    }
}

@media (max-width: 767px) {
    .th-content-page__wrap {
        padding-top: 42px;
    }

    .th-content-page__title {
        line-height: 1.02;
    }

    .th-inline-icon {
        width: 92px;
        height: 92px;
        border-radius: 26px;
    }

    .th-inline-icon svg {
        width: 58px;
        height: 58px;
    }

    .th-inline-icon--small {
        width: 64px;
        height: 64px;
    }

    .th-inline-icon--small svg,
    .th-inline-icon--tiny svg {
        width: 36px;
        height: 36px;
    }

    .th-mini-feature > .wp-block-group__inner-container {
        flex-direction: column;
    }
}
