:root {
    --redirect-forest: #173f35;
    --redirect-mint: #dff3e9;
    --redirect-cream: #f7f4ec;
    --redirect-ink: #17332c;
}

.external-redirect-body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    color: var(--redirect-ink);
    background:
        radial-gradient(circle at 15% 10%, rgba(184, 225, 205, .65), transparent 34rem),
        linear-gradient(145deg, #fbfaf6, var(--redirect-cream));
}

.external-redirect-header {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0;
}

.external-redirect-header .brand { width: max-content; }

.external-redirect-main {
    display: grid;
    place-items: center;
    width: min(100% - 32px, 760px);
    margin: 0 auto;
    padding: 28px 0 56px;
}

.external-redirect-card {
    width: 100%;
    box-sizing: border-box;
    padding: clamp(28px, 6vw, 56px);
    text-align: center;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(23, 63, 53, .12);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(23, 63, 53, .14);
}

.external-redirect-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 20px;
    color: #fff;
    background: var(--redirect-forest);
    font-size: 2rem;
}

.external-redirect-eyebrow {
    margin: 0 0 10px;
    color: #477264;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.external-redirect-card h1 {
    margin: 0;
    color: var(--redirect-forest);
    font-size: clamp(2rem, 6vw, 3.45rem);
    line-height: 1.05;
}

.external-redirect-lead { margin: 24px 0 8px; }

.external-redirect-entity {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.7rem);
    font-weight: 800;
}

.external-redirect-destination {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 8px 14px;
    margin: 24px auto;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--redirect-mint);
    overflow-wrap: anywhere;
}

.external-redirect-destination span { color: #527568; font-size: .9rem; }
.external-redirect-destination strong { color: var(--redirect-forest); }

.external-redirect-explanation {
    max-width: 620px;
    margin: 0 auto;
    color: #4b615a;
    line-height: 1.65;
}

.external-redirect-countdown { margin: 28px auto 0; }
.external-redirect-countdown p { margin: 0 0 12px; }
.external-redirect-countdown strong { display: inline-block; min-width: 1ch; font-size: 1.4em; }

.external-redirect-progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e4e9e6;
}

.external-redirect-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: #da8957;
    transform-origin: left center;
    animation: external-redirect-progress 4s linear forwards;
}

.external-redirect-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.external-redirect-actions .button { justify-content: center; }
.external-redirect-noscript { margin: 22px 0 0; color: #5f6f69; font-size: .9rem; }
.external-redirect-footer { padding: 20px 16px 28px; text-align: center; color: #61736d; font-size: .88rem; }

@keyframes external-redirect-progress { to { transform: scaleX(0); } }

@media (max-width: 520px) {
    .external-redirect-header { padding-top: 18px; }
    .external-redirect-main { width: min(100% - 24px, 760px); padding-top: 12px; }
    .external-redirect-card { border-radius: 22px; }
    .external-redirect-actions { flex-direction: column; }
    .external-redirect-actions .button { width: 100%; box-sizing: border-box; }
}

@media (prefers-reduced-motion: reduce) {
    .external-redirect-progress span { animation: none; }
}
