/* Visory Insights / Single Post Styles */

.insight-page {
    background: #f6f5f1;
}

.insight-hero {
    position: relative;
    overflow: hidden;
    padding: 190px 0 118px;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(3, 21, 34, 0.94) 0%, rgba(3, 21, 34, 0.82) 48%, rgba(3, 21, 34, 0.58) 100%),
        var(--insight-hero-image, none),
        linear-gradient(120deg, #031522 0%, #08273a 100%);
    background-size: cover;
    background-position: center;
}

.insight-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(3, 21, 34, 0.10) 0%, rgba(3, 21, 34, 0.26) 100%),
        radial-gradient(circle at 78% 30%, rgba(215, 162, 76, 0.12), transparent 28%);
}

.insight-hero-inner {
    position: relative;
    z-index: 1;
}

/* .insight-hero-inner is defined above with hero layering */

.insight-hero .eyebrow {
    margin-bottom: 24px;
}

.insight-title {
    max-width: 1000px;
    margin: 0;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(54px, 5.4vw, 86px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.insight-excerpt {
    max-width: 820px;
    margin: 30px 0 0;
    color: #c8d4db;
    font-size: 19px;
    line-height: 1.7;
}

.insight-meta {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #91a5b1;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.insight-featured-media {
    padding: 0 0 68px;
    background: linear-gradient(180deg, #08273a 0, #08273a 82px, #f6f5f1 82px, #f6f5f1 100%);
}

.insight-featured-image {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.insight-featured-image img {
    width: 100%;
    aspect-ratio: 16 / 7;
    height: auto;
    object-fit: cover;
    border: 1px solid rgba(5, 24, 38, 0.10);
    box-shadow: 0 20px 48px rgba(5, 24, 38, 0.10);
}

.insight-content-section {
    padding: 64px 0 110px;
}

.insight-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 64px;
    align-items: start;
}

.insight-side-label {
    position: sticky;
    top: 150px;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #9a6b2a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.insight-side-label::before {
    content: "";
    width: 38px;
    height: 1px;
    margin-bottom: 14px;
    background: #c8903e;
}

.insight-side-label strong {
    color: #0c2838;
    font-weight: 700;
}

.insight-content {
    min-width: 0;
    max-width: 880px;
    color: #263b47;
    font-size: 18px;
    line-height: 1.74;
}

.insight-content > *:first-child {
    margin-top: 0;
}

.insight-content > p:first-child {
    max-width: 860px;
    margin-bottom: 30px;
    color: #102f40;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.55;
}

.insight-content p {
    margin: 0 0 18px;
}

.insight-content h2,
.insight-content h3,
.insight-content h4 {
    color: #071f2f;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.insight-content h2 {
    position: relative;
    margin: 52px 0 22px;
    padding-top: 20px;
    font-size: clamp(34px, 3vw, 46px);
    line-height: 1.08;
}

.insight-content h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 1px;
    background: #d7a24c;
}

.insight-content h3 {
    margin: 40px 0 16px;
    font-size: clamp(28px, 2.3vw, 34px);
    line-height: 1.12;
}

.insight-content h4 {
    margin: 36px 0 16px;
    font-size: 24px;
    line-height: 1.2;
}

.insight-content strong {
    color: #0b2636;
}

.insight-content a {
    color: #a56f2d;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.insight-content blockquote {
    margin: 50px 0;
    padding: 12px 0 12px 34px;
    color: #0b2a3c;
    border-left: 3px solid #d7a24c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    line-height: 1.35;
}

.insight-content blockquote p {
    margin: 0;
}

.insight-content ul,
.insight-content ol {
    margin: 0 0 30px;
    padding-left: 26px;
}

.insight-content li {
    margin-bottom: 10px;
}

.insight-content hr {
    margin: 58px 0;
    border: 0;
    border-top: 1px solid rgba(10, 39, 57, 0.16);
}

.insight-content figure {
    margin: 44px 0;
}

.insight-content img {
    width: auto;
    max-width: 100%;
    height: auto;
}

.insight-content figcaption {
    margin-top: 12px;
    color: #71808a;
    font-size: 12px;
    line-height: 1.6;
}

.insight-related {
    min-width: 0;
}

.insight-related-sticky {
    position: sticky;
    top: 130px;
    padding: 26px 0 0;
}

.insight-related-sticky > .eyebrow {
    margin-bottom: 18px;
}

.insight-related-card {
    display: block;
    padding: 0 0 24px;
    margin: 0 0 24px;
    border-bottom: 1px solid rgba(10, 39, 57, 0.14);
}

.insight-related-thumb {
    overflow: hidden;
    margin-bottom: 16px;
    aspect-ratio: 16 / 9;
    background: #0a2739;
}

.insight-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.insight-related-card:hover .insight-related-thumb img {
    transform: scale(1.025);
}

.insight-related-date {
    display: block;
    margin-bottom: 8px;
    color: #8a969d;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.insight-related-card h3 {
    margin: 0 0 12px;
    color: #0a2739;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.15;
}

.insight-related-link,
.insight-related-empty a {
    color: #a56f2d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.insight-related-empty {
    padding: 22px;
    background: #efe9de;
    border: 1px solid rgba(10, 39, 57, 0.10);
}

.insight-related-empty p {
    margin: 0 0 14px;
    color: #56646c;
    font-size: 14px;
    line-height: 1.65;
}

.insight-series-cta {
    margin: 54px 0 12px;
    padding: 34px;
    background: #f3efe7;
    border: 1px solid rgba(10, 39, 57, 0.10);
}

.insight-series-cta .eyebrow {
    margin-bottom: 12px;
}

.insight-series-cta h3 {
    margin: 0 0 14px;
    color: #0a2739;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.1;
}

.insight-series-cta p {
    margin-bottom: 22px;
    color: #56646c;
}

.insight-series-cta .btn {
    min-height: 50px;
    text-decoration: none;
}

.insight-end-cta {
    position: relative;
    overflow: hidden;
    padding: 88px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 88% 85%, rgba(215, 162, 76, 0.10), transparent 25%),
        linear-gradient(120deg, #031522, #082b40);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.insight-end-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 80px;
    align-items: center;
}

.insight-end-copy {
    max-width: 760px;
}

.insight-end-copy h2 {
    color: #ffffff;
    font-size: clamp(46px, 4.5vw, 70px);
    line-height: 0.98;
}

.insight-end-copy > p:last-child {
    max-width: 650px;
    margin: 24px 0 0;
    color: #c5d0d7;
    font-size: 16px;
    line-height: 1.7;
}

.insight-end-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: flex-start;
}

.insight-end-actions .btn {
    width: auto;
    min-width: 220px;
    min-height: 58px;
    cursor: pointer;
}

.insight-end-actions .btn.outline {
    appearance: none;
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.38);
}

.insight-end-actions .btn.outline:hover {
    color: #071722;
    background: #ffffff;
    border-color: #ffffff;
}

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

.newsletter-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.newsletter-modal.is-open {
    display: flex;
}

.newsletter-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 15, 24, 0.80);
    backdrop-filter: blur(8px);
}

.newsletter-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(680px, 100%);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 42px 42px 30px;
    background: #061f2f;
    border: 1px solid rgba(214, 169, 91, 0.34);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.38);
}

.newsletter-modal-close {
    position: absolute;
    top: 13px;
    right: 16px;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    border: 0;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.newsletter-modal-close:hover {
    color: #e8bd75;
}

.newsletter-modal-heading {
    margin-bottom: 22px;
    padding-right: 38px;
}

.newsletter-modal-heading h2 {
    margin: 0;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.05;
}

.newsletter-modal-heading > p:last-child {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
    line-height: 1.65;
}

.newsletter-embed-wrap {
    overflow: hidden;
    background: #ffffff;
    border-radius: 8px;
}

.newsletter-embed-wrap iframe {
    display: block;
    width: 100%;
}

@media (max-width: 1050px) {
    .insight-hero {
        padding: 170px 0 90px;
    }

    .insight-content-layout {
        grid-template-columns: 1fr;
        max-width: 840px;
        gap: 0;
    }

    .insight-side-label {
        position: static;
        margin-bottom: 32px;
        flex-direction: row;
        gap: 8px;
    }

    .insight-side-label::before {
        margin: 7px 8px 0 0;
    }

    .insight-end-cta-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .insight-end-actions {
        max-width: 420px;
    }
}

@media (max-width: 760px) {
    .insight-hero {
        padding: 145px 0 72px;
    }

    .insight-title {
        font-size: clamp(42px, 12vw, 58px);
    }

    .insight-excerpt {
        font-size: 16px;
    }

    .insight-featured-media {
        padding-bottom: 58px;
        background: linear-gradient(180deg, #08273a 0, #08273a 65px, #f6f5f1 65px, #f6f5f1 100%);
    }

    .insight-featured-image img {
        height: 300px;
    }

    .insight-content-section {
        padding-bottom: 80px;
    }

    .insight-content {
        font-size: 16px;
        line-height: 1.75;
    }

    .insight-content h2 {
        margin-top: 48px;
        font-size: 34px;
    }

    .insight-content h3 {
        margin-top: 38px;
        font-size: 28px;
    }

    .insight-content blockquote {
        margin: 38px 0;
        padding-left: 22px;
        font-size: 24px;
    }

    .insight-end-cta {
        padding: 68px 0;
    }

    .insight-end-copy h2 {
        font-size: 46px;
    }

    .insight-end-actions {
        max-width: none;
    }

    .newsletter-modal {
        padding: 12px;
    }

    .newsletter-modal-dialog {
        max-height: calc(100vh - 24px);
        padding: 36px 18px 20px;
    }

    .newsletter-modal-heading h2 {
        font-size: 34px;
    }
}
