
.ten-subtab,
.ten-subtab * { box-sizing: border-box; }

.ten-subtab {
    --ten-sub-blue: #0d3558;
    --ten-sub-blue-deep: #082844;
    --ten-sub-blue-hover: #16456e;
    --ten-sub-parchment: #f2ecdf;
    --ten-sub-parchment-soft: #f7f2e8;
    --ten-sub-gold: #ba8c3b;
    --ten-sub-gold-soft: #d0ae69;
    --ten-sub-ink: #102d4a;
    --ten-sub-choice-hover: #7a5a20;
    --ten-sub-shadow: rgba(10,26,43,.26);
    --ten-sub-tab-blue: #071b31;
    --ten-sub-tab-blue-hover: #0a2744;
    --ten-sub-tab-gold: #d7aa4e;
    --ten-sub-tab-gold-hover: #edc66f;
    --ten-sub-handle-h: 44px;
    --ten-sub-hover-reveal: 142px;
    --ten-sub-panel-h: 188px;
    position: fixed;
    z-index: 99990;
    left: 50%;
    bottom: 0;
    width: min(332px, calc(100vw - 34px));
    height: var(--ten-sub-handle-h);
    transform: translateX(-50%);
    font-family: Georgia, 'Times New Roman', serif;
    filter: drop-shadow(0 9px 22px var(--ten-sub-shadow));
}

.ten-subtab-panel {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 0;
    width: min(1100px, calc(100vw - 42px));
    height: var(--ten-sub-panel-h);
    overflow: hidden;
    color: var(--ten-sub-ink);
    background:
        radial-gradient(circle at 14% 18%, rgba(255,255,255,.66) 0, rgba(255,255,255,0) 23%),
        radial-gradient(circle at 84% 26%, rgba(255,255,255,.38) 0, rgba(255,255,255,0) 19%),
        radial-gradient(circle at 28% 80%, rgba(186,140,59,.045) 0, rgba(186,140,59,0) 22%),
        repeating-linear-gradient(0deg, rgba(16,45,74,.011) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(90deg, rgba(16,45,74,.009) 0 1px, transparent 1px 5px),
        linear-gradient(180deg, var(--ten-sub-parchment-soft), var(--ten-sub-parchment));
    border: 1px solid rgba(186,140,59,.68);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 100%);
    transform-origin: bottom center;
    box-shadow: 0 -16px 36px rgba(10,26,43,.12), inset 0 1px 0 rgba(255,255,255,.45);
    transition: transform 285ms cubic-bezier(.2,.75,.2,1), opacity 150ms ease, visibility 0s linear 285ms;
}

.ten-subtab-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(186,140,59,.8) 16%, rgba(186,140,59,.98) 50%, rgba(186,140,59,.8) 84%, transparent);
    pointer-events: none;
}

.ten-subtab:hover:not(.is-open) .ten-subtab-panel,
.ten-subtab:focus-within:not(.is-open) .ten-subtab-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, calc(100% - var(--ten-sub-hover-reveal)));
    transition-delay: 0s;
}

.ten-subtab.is-open .ten-subtab-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition-delay: 0s;
}

.ten-subtab-teaser {
    position: absolute;
    inset: 0;
    padding: 17px 28px calc(var(--ten-sub-handle-h) + 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    transition: opacity 135ms ease, transform 210ms ease;
}

.ten-subtab-teaser p {
    margin: 0;
    color: var(--ten-sub-blue);
    font-size: 16px;
    line-height: 1.28;
}

.ten-subtab-teaser p::after {
    content: "";
    display: block;
    width: 92px;
    height: 12px;
    margin: 12px auto 0;
    background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='12' viewBox='0 0 92 12'%3E%3Cpath d='M1 6h28m34 0h28M41 6c1.2-1.6 2.7-3 5-3s3.8 1.4 5 3c-1.2 1.6-2.7 3-5 3s-3.8-1.4-5-3Zm-6 0h6m10 0h6' fill='none' stroke='%23ba8c3b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ten-subtab-choices {
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.ten-subtab-choice {
    margin: 0;
    padding: 1px 2px 2px;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--ten-sub-blue);
    cursor: pointer;
    font: 600 13px/1.1 Georgia, 'Times New Roman', serif;
    text-transform: lowercase;
}

.ten-subtab-choice:hover,
.ten-subtab-choice:focus-visible {
    color: var(--ten-sub-choice-hover);
    border-bottom-color: currentColor;
    outline: none;
}

.ten-subtab-choice-separator { color: rgba(16,45,74,.35); }

.ten-subtab.is-open .ten-subtab-teaser {
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
}

.ten-subtab-expanded {
    position: absolute;
    inset: 0;
    padding: 26px 40px calc(var(--ten-sub-handle-h) + 18px);
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(460px, 1fr);
    gap: 34px;
    align-items: center;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 145ms ease, transform 220ms ease;
}

.ten-subtab.is-open .ten-subtab-expanded {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 95ms;
}

.ten-subtab-copyblock,
.ten-subtab-actionblock { min-width: 0; }

.ten-subtab-copyblock {
    padding-right: 18px;
    border-right: 1px solid rgba(186,140,59,.42);
}

.ten-subtab-copyblock h2 {
    margin: 0;
    max-width: 100%;
    color: var(--ten-sub-blue-deep);
    font-size: clamp(29px, 2.45vw, 35px);
    line-height: 1.04;
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: .015em;
}


.ten-subtab-tagline {
    margin: 10px 0 0;
    color: var(--ten-sub-gold);
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: .015em;
    text-transform: none;
}

.ten-subtab-close {
    position: absolute;
    z-index: 6;
    top: 9px;
    right: 12px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(16,45,74,.58);
    font: 400 23px/1 Arial, sans-serif;
    cursor: pointer;
}

.ten-subtab-close:hover,
.ten-subtab-close:focus-visible {
    color: var(--ten-sub-blue);
    background: rgba(16,45,74,.07);
    outline: none;
}

/* Native Jetpack/WordPress Subscribe form — style the real form, not a clone. */
.ten-subtab-native-subscribe,
.ten-subtab-native-subscribe > div,
.ten-subtab-native-subscribe form {
    width: 100%;
    max-width: none;
    margin: 0;
}

.ten-subtab-native-subscribe form.ten-subtab-native-form-ready {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 14px;
    row-gap: 9px;
    align-items: center;
    width: 100%;
}

.ten-subtab-native-subscribe form.ten-subtab-native-form-ready > * {
    min-width: 0;
    max-width: none;
    grid-column: 1 / -1;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.ten-subtab-native-subscribe form.ten-subtab-native-form-ready > .ten-subtab-email-cell {
    grid-column: 1;
    width: 100%;
}

.ten-subtab-native-subscribe form.ten-subtab-native-form-ready > .ten-subtab-submit-cell {
    grid-column: 2;
    width: auto;
    justify-self: end;
}

/* Some Jetpack versions wrap email + submit inside one direct child. */
.ten-subtab-native-subscribe .ten-subtab-combined-cell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 14px;
    row-gap: 9px;
    align-items: center;
    width: 100%;
}

.ten-subtab-native-subscribe .ten-subtab-combined-cell > * {
    min-width: 0;
}

.ten-subtab-native-subscribe .ten-subtab-email-inner {
    grid-column: 1;
    width: 100%;
}

.ten-subtab-native-subscribe .ten-subtab-submit-inner {
    grid-column: 2;
    width: auto;
}

.ten-subtab-native-subscribe input[type="email"] {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 1px solid rgba(16,45,74,.24) !important;
    border-radius: 9px !important;
    background: rgba(255,255,255,.56) !important;
    color: var(--ten-sub-blue) !important;
    font: 16px/1.2 Georgia, 'Times New Roman', serif !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65) !important;
}

.ten-subtab-native-subscribe input[type="email"]::placeholder {
    color: rgba(16,45,74,.62) !important;
}

.ten-subtab-native-subscribe input[type="email"]:focus {
    outline: none !important;
    border-color: rgba(16,45,74,.56) !important;
    box-shadow: 0 0 0 3px rgba(16,45,74,.08), inset 0 1px 0 rgba(255,255,255,.7) !important;
}

.ten-subtab-native-subscribe button[type="submit"],
.ten-subtab-native-subscribe input[type="submit"] {
    display: block !important;
    width: auto !important;
    min-width: 170px;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    border: 1px solid var(--ten-sub-gold) !important;
    border-radius: 9px !important;
    background: var(--ten-sub-blue) !important;
    color: var(--ten-sub-parchment-soft) !important;
    cursor: pointer;
    font: 700 14px/1 Arial, sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06) !important;
}

.ten-subtab-native-subscribe button[type="submit"]:hover,
.ten-subtab-native-subscribe button[type="submit"]:focus-visible,
.ten-subtab-native-subscribe input[type="submit"]:hover,
.ten-subtab-native-subscribe input[type="submit"]:focus-visible {
    background: var(--ten-sub-blue-hover) !important;
    color: #fff8ec !important;
    border-color: var(--ten-sub-gold-soft) !important;
    outline: none !important;
}

/* Native validation / success / existing-subscription responses remain visible. */
.ten-subtab-native-subscribe [class*="success"],
.ten-subtab-native-subscribe [class*="error"],
.ten-subtab-native-subscribe .message,
.ten-subtab-native-subscribe .jetpack-subscribe-message,
.ten-subtab-native-subscribe p:not(:empty) {
    color: #315e48;
    font-size: 13px;
    line-height: 1.35;
}

.ten-subtab-native-warning {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(130,56,38,.28);
    border-radius: 8px;
    color: #743b2f;
    background: rgba(255,255,255,.38);
    font-size: 13px;
}

.ten-subtab-dialogue[hidden] {
    display: none !important;
}

.ten-subtab-dialogue {
    width: 100%;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--ten-sub-blue-deep);
}

.ten-subtab-dialogue-title {
    margin: 0;
    color: #315e48;
    font: 600 15px/1.35 Georgia, 'Times New Roman', serif;
    letter-spacing: .035em;
}

.ten-subtab-dialogue-copy {
    margin: 7px 0 0;
    color: var(--ten-sub-blue);
    font: 400 14px/1.35 Georgia, 'Times New Roman', serif;
}

.ten-subtab-dialogue-copy:empty {
    display: none;
}

.ten-subtab-dialogue-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
}

.ten-subtab-dialogue-actions:empty {
    display: none;
}

.ten-subtab-dialogue-button {
    margin: 0;
    padding: 1px 2px 2px;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--ten-sub-blue);
    cursor: pointer;
    font: 600 13px/1.1 Georgia, 'Times New Roman', serif;
    text-transform: lowercase;
}

.ten-subtab-dialogue-button:hover,
.ten-subtab-dialogue-button:focus-visible {
    color: var(--ten-sub-choice-hover);
    border-bottom-color: currentColor;
    outline: none;
}

.ten-subtab-dialogue-separator {
    color: rgba(16,45,74,.35);
    user-select: none;
}

.ten-subtab-handle {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: var(--ten-sub-handle-h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid var(--ten-sub-tab-gold);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.055), transparent 34%),
        linear-gradient(180deg, var(--ten-sub-tab-blue), #082039 58%, var(--ten-sub-tab-blue-hover));
    color: var(--ten-sub-tab-gold);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.ten-subtab-handle span {
    display: block;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: .015em;
    color: var(--ten-sub-tab-gold);
}

.ten-subtab:hover .ten-subtab-handle,
.ten-subtab:focus-within .ten-subtab-handle,
.ten-subtab.is-open .ten-subtab-handle {
    color: var(--ten-sub-tab-gold-hover);
    background:
        linear-gradient(180deg, rgba(255,255,255,.07), transparent 36%),
        linear-gradient(180deg, #08213a, #0b2948 58%, #103657);
}

.ten-subtab:hover .ten-subtab-handle span,
.ten-subtab:focus-within .ten-subtab-handle span,
.ten-subtab.is-open .ten-subtab-handle span {
    color: var(--ten-sub-tab-gold-hover);
}

@media (max-width: 920px) {
    .ten-subtab {
        --ten-sub-panel-h: 262px;
        --ten-sub-hover-reveal: 150px;
    }

    .ten-subtab-panel { width: calc(100vw - 18px); }

    .ten-subtab-expanded {
        padding: 28px 26px calc(var(--ten-sub-handle-h) + 18px);
        grid-template-columns: 1fr;
        gap: 20px;
        align-content: center;
    }

    .ten-subtab-copyblock {
        padding-right: 0;
        padding-bottom: 16px;
        border-right: 0;
        border-bottom: 1px solid rgba(186,140,59,.42);
    }

    .ten-subtab-copyblock h2 { font-size: 29px; }
}

@media (max-width: 620px) {
    .ten-subtab {
        --ten-sub-panel-h: 320px;
        width: min(332px, calc(100vw - 22px));
    }

    .ten-subtab-expanded { padding-left: 18px; padding-right: 18px; }

    .ten-subtab-copyblock h2 { white-space: normal; }

    .ten-subtab-native-subscribe form.ten-subtab-native-form-ready,
    .ten-subtab-native-subscribe .ten-subtab-combined-cell {
        grid-template-columns: 1fr !important;
    }

    .ten-subtab-native-subscribe form.ten-subtab-native-form-ready > .ten-subtab-email-cell,
    .ten-subtab-native-subscribe form.ten-subtab-native-form-ready > .ten-subtab-submit-cell,
    .ten-subtab-native-subscribe .ten-subtab-email-inner,
    .ten-subtab-native-subscribe .ten-subtab-submit-inner {
        grid-column: 1 !important;
        width: 100%;
    }

    .ten-subtab-native-subscribe button,
    .ten-subtab-native-subscribe input[type="submit"] {
        width: 100%;
        min-width: 0;
    }
}
