/* Industry Newsletters — cards, listing page and newsletter articles.
   Loaded by lib/industry-newsletters.php. */

.newsletter-article,
.hr-newsletters {
    --nl-ink: #1e1148;
    --nl-navy: #22194D;
    --nl-violet: #5433EB;
    --nl-violet-2: #6D5DF7;
    --nl-lilac: #a78bfa;
    --nl-soft: #F5F3FF;
    --nl-line: rgba(34, 25, 77, 0.12);
    --nl-text: #2b2840;
}

/* ---------- Cards (homepage, listing page, "More newsletters") ---------- */

.home-page .hr-category-post.hr-newsletters {
    position: relative;
    background:
        radial-gradient(55% 60% at 100% 0%, rgba(84, 51, 235, 0.45) 0%, rgba(84, 51, 235, 0) 60%),
        radial-gradient(45% 50% at 0% 100%, rgba(167, 139, 250, 0.18) 0%, rgba(167, 139, 250, 0) 60%),
        linear-gradient(180deg, #050419 0%, #22194D 100%);
}

.home-page .hr-newsletters h2 {
    color: #fff;
}

.home-page .hr-newsletters .hr-cp--subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.home-page .hr-newsletters .ast-wrap>div {
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.3), 0 24px 48px rgba(0, 0, 0, 0.25);
}

.home-page .hr-newsletters .ast-wrap>div .hr-cp-info {
    border-color: transparent;
}

.home-page .hr-newsletters .ast-btn.lm:hover {
    background: #4325d6;
    border-color: #4325d6;
}

.hr-newsletters .ast-wrap>div img {
    width: 100%;
    aspect-ratio: 1664 / 1200;
    object-fit: cover;
}

.industry-newsletters-page .hr-newsletters .hr-cp--subtitle p {
    margin: 0;
}

.newsletter-article .hr-newsletters {
    background: var(--nl-soft);
}

/* ---------- Article hero ---------- */

.newsletter-article .nl-hero {
    background: #0b0626;
    color: #fff;
    padding: 216px 0 72px;
}

.nl-hero__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 80% at 85% 10%, rgba(84, 51, 235, 0.55) 0%, rgba(84, 51, 235, 0) 60%),
        radial-gradient(50% 70% at 0% 100%, rgba(167, 139, 250, 0.25) 0%, rgba(167, 139, 250, 0) 60%),
        linear-gradient(180deg, #050419 0%, #22194D 100%);
}

.nl-hero__glow::after {
    content: "";
    position: absolute;
    right: -6%;
    bottom: -30%;
    width: 520px;
    height: 420px;
    border-radius: 48px;
    background: linear-gradient(135deg, rgba(109, 93, 247, 0.35), rgba(84, 51, 235, 0.05));
    transform: skewX(-18deg);
}

.nl-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1312px;
}

.nl-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-mont-regular);
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 32px;
    transition: color .2s;
}

.nl-hero__back .nl-icon {
    width: 16px;
    height: 16px;
    transform: rotate(180deg);
}

.nl-hero__back:hover {
    color: #fff;
}

.nl-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-family: var(--font-noto-sans);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
}

.nl-hero__tag {
    background: #6D5DF7;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 4px;
}

.newsletter-article .nl-hero h1 {
    text-align: left;
    font-family: var(--font-noto-sans);
    font-weight: 400;
    font-size: 64px;
    line-height: 1.08;
    letter-spacing: -0.01em;
    max-width: 900px;
    margin: 0 0 20px;
}

.nl-hero__standfirst {
    font-family: var(--font-noto-sans);
    font-weight: 300;
    font-size: 24px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
    max-width: 760px;
    margin: 0 0 40px;
}

.nl-byline {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nl-byline__photos {
    display: flex;
}

.nl-byline__photos img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 25%;
    border: 3px solid #22194D;
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.5);
}

.nl-byline__photos img+img {
    margin-left: -14px;
}

.nl-byline__text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-noto-sans);
}

.nl-byline__names {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.nl-byline__sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

/* ---------- Layout ---------- */

.nl-body {
    padding: 80px 0 112px;
    background: #fff;
}

.nl-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 96px;
    align-items: start;
}

.nl-article {
    max-width: 760px;
    font-family: var(--font-noto-sans);
    color: var(--nl-text);
    font-size: 18px;
    line-height: 1.7;
}

.nl-article p {
    margin: 0 0 1.1em;
}

.nl-article p:last-child {
    margin-bottom: 0;
}

.nl-article a {
    color: var(--nl-violet);
}

.nl-article h2 {
    font-family: var(--font-noto-sans);
    font-weight: 400;
    font-size: 40px;
    line-height: 1.15;
    color: var(--nl-ink);
    margin: 0 0 24px;
}

.nl-article h3 {
    font-family: var(--font-noto-sans);
    font-weight: 600;
    font-size: 21px;
    line-height: 1.35;
    color: var(--nl-ink);
    margin: 0 0 8px;
}

.nl-eyebrow {
    display: block;
    font-family: var(--font-inter), var(--font-noto-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nl-violet);
    margin-bottom: 12px;
}

.nl-section {
    margin-top: 72px;
    scroll-margin-top: 24px;
}

.nl-icon {
    flex: none;
}

/* Buttons */
.nl-btn.ast-btn {
    display: inline-flex;
    gap: 10px;
    width: auto;
    padding: 14px 24px;
    margin-top: 24px;
    text-decoration: none;
    color: #fff;
    transition: background-color .2s, transform .2s;
}

.nl-article .nl-btn.ast-btn {
    color: #fff;
}

.nl-btn .nl-icon {
    width: 18px;
    height: 18px;
    transition: transform .2s;
}

.nl-btn:hover .nl-icon {
    transform: translateX(3px);
}

.nl-btn.violet:hover {
    background: #4325d6;
}

.nl-article .nl-btn.ast-btn.nl-btn--ghost {
    color: var(--nl-violet);
    border-color: var(--nl-violet);
    font-family: var(--font-mont-regular);
}

.nl-article .nl-btn.ast-btn.nl-btn--ghost:hover {
    background: var(--nl-violet);
    color: #fff;
}

.nl-article .nl-btn.ast-btn.nl-btn--light {
    background: #fff;
    border-color: #fff;
    color: var(--nl-ink);
    font-family: var(--font-mont-regular);
    margin-top: 0;
}

.nl-article .nl-btn.ast-btn.nl-btn--light:hover {
    background: var(--nl-soft);
}

/* ---------- Lead ---------- */

.nl-lead {
    font-size: 22px;
    line-height: 1.6;
    color: var(--nl-ink);
    font-weight: 300;
}


/* ---------- Stats strip ---------- */

.nl-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    margin-top: 48px;
    background: var(--nl-line);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--nl-line);
}

.nl-stats__item {
    background: var(--nl-soft);
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nl-stats__value {
    font-size: 56px;
    line-height: 1;
    font-weight: 300;
    color: var(--nl-violet);
    letter-spacing: -0.02em;
}

.nl-stats__label {
    font-size: 16px;
    line-height: 1.45;
    color: var(--nl-text);
}

.nl-stats__source {
    grid-column: 1 / -1;
    background: var(--nl-soft);
    margin: 0;
    padding: 0 28px 20px;
    font-size: 13px;
    color: rgba(43, 40, 64, 0.65);
}

/* ---------- Feature story ---------- */

.nl-story__figure {
    margin: 0 0 32px;
}

.nl-story__figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.nl-story__figure figcaption {
    text-align: left;
    font-size: 14px;
    color: rgba(43, 40, 64, 0.7);
    margin-top: 10px;
}

.nl-pullquote {
    margin: 0 0 28px;
    padding: 0 0 0 28px;
    border-left: 4px solid var(--nl-violet);
}

.nl-pullquote p {
    font-size: 28px;
    line-height: 1.35;
    font-weight: 400;
    color: var(--nl-ink);
    font-style: italic;
}

/* ---------- Promo card ---------- */

.nl-promo {
    display: flex;
    gap: 24px;
    margin-top: 56px;
    padding: 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, #F5F3FF 0%, #EDF0FF 100%);
    border: 1px solid rgba(84, 51, 235, 0.18);
}

.nl-promo__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--nl-violet);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.nl-promo__icon .nl-icon {
    width: 28px;
    height: 28px;
}

.nl-promo h3 {
    font-size: 24px;
    font-weight: 400;
}

.nl-promo p {
    font-size: 17px;
}

.nl-promo .nl-eyebrow {
    margin-bottom: 6px;
}

/* ---------- Market update ---------- */

.nl-market__intro {
    font-size: 19px;
}

.nl-points {
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
    counter-reset: none;
}

.nl-point {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 28px 0;
    border-top: 1px solid var(--nl-line);
    list-style: none;
}

.nl-point__num {
    font-size: 15px;
    font-weight: 600;
    color: var(--nl-violet);
    letter-spacing: 0.06em;
    padding-top: 3px;
}

.nl-point .nl-prose {
    font-size: 17px;
}

.nl-tip {
    margin-top: 24px;
    padding: 28px 32px;
    border-radius: 16px;
    background: var(--nl-ink);
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
}

.nl-tip__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--nl-lilac);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nl-tip__head .nl-icon {
    width: 26px;
    height: 26px;
}

/* ---------- Quote ---------- */

.nl-quote {
    position: relative;
    padding: 48px 48px 40px;
    border-radius: 16px;
    background: var(--nl-soft);
}

.nl-quote::before {
    content: "\201C";
    position: absolute;
    top: -10px;
    right: 36px;
    font-family: Georgia, serif;
    font-size: 180px;
    line-height: 1;
    color: rgba(84, 51, 235, 0.14);
}

.nl-quote__lead {
    font-size: 16px;
    color: rgba(43, 40, 64, 0.8);
}

.nl-quote figure {
    margin: 0;
}

.nl-quote blockquote {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.nl-quote blockquote p {
    font-size: 28px;
    line-height: 1.4;
    font-weight: 300;
    font-style: italic;
    color: var(--nl-ink);
}

.nl-quote figcaption {
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--nl-violet);
}

.nl-quote figcaption::before {
    content: "— ";
}

/* ---------- Report insight ---------- */

.nl-insight {
    padding: 48px;
    border-radius: 16px;
    background: linear-gradient(160deg, #22194D 0%, #050419 100%);
    color: rgba(255, 255, 255, 0.85);
}

.nl-insight .nl-eyebrow {
    color: var(--nl-lilac);
}

.nl-article .nl-insight h2 {
    color: #fff;
    font-size: 34px;
}

.nl-insight__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.nl-insight__stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(167, 139, 250, 0.25);
}

.nl-insight__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nl-lilac);
}

.nl-insight__value {
    font-size: 64px;
    line-height: 1;
    font-weight: 300;
    color: #fff;
    letter-spacing: -0.02em;
}

.nl-insight__text {
    font-size: 16px;
    line-height: 1.45;
}

.nl-insight__body {
    font-size: 18px;
}

/* ---------- Live roles ---------- */

.nl-roles__intro {
    font-size: 17px;
}

.nl-roles__intro span {
    display: block;
    font-size: 14px;
    color: rgba(43, 40, 64, 0.65);
}

.nl-roles__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.nl-role {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--nl-line);
    background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.nl-role:not(.is-closed):hover {
    border-color: rgba(84, 51, 235, 0.45);
    box-shadow: 0 12px 32px rgba(34, 25, 77, 0.10);
    transform: translateY(-2px);
}

.nl-role__tags {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
}

.nl-role__type {
    background: var(--nl-soft);
    color: var(--nl-violet);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.nl-role__loc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(43, 40, 64, 0.7);
}

.nl-role__loc .nl-icon {
    width: 16px;
    height: 16px;
}

.nl-article .nl-role h3 {
    font-size: 19px;
    margin-bottom: 4px;
}

.nl-article .nl-role h3 a {
    color: var(--nl-ink);
    text-decoration: none;
}

.nl-article .nl-role h3 a:hover {
    color: var(--nl-violet);
}

.nl-role__salary {
    font-size: 15px;
    font-weight: 600;
    color: var(--nl-violet);
    margin-bottom: 10px;
}

.nl-role p {
    font-size: 15px;
    line-height: 1.55;
    flex: 1;
}

.nl-article .nl-role__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-family: var(--font-mont-regular);
    font-size: 15px;
    text-decoration: none;
}

.nl-role__link .nl-icon {
    width: 16px;
    height: 16px;
}

.nl-role.is-closed {
    background: #fafafa;
}

.nl-role.is-closed h3,
.nl-role.is-closed p,
.nl-role.is-closed .nl-role__salary {
    opacity: 0.6;
}

.nl-role__status {
    align-self: flex-start;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(43, 40, 64, 0.7);
    background: #ececf1;
    padding: 4px 10px;
    border-radius: 999px;
}

/* ---------- Events ---------- */

.nl-events {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 24px;
    padding-top: 48px;
    border-top: 1px solid var(--nl-line);
}

.nl-events__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--nl-soft);
    color: var(--nl-violet);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nl-article .nl-events h2 {
    font-size: 30px;
}

.nl-article .nl-events__recent {
    margin-top: 20px;
    font-size: 16px;
}

.nl-events__recent span {
    display: inline-block;
    margin-right: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--nl-violet-2);
    padding: 3px 8px;
    border-radius: 4px;
}

/* ---------- Let's talk ---------- */

.nl-talk {
    text-align: center;
    padding: 56px 48px;
    border-radius: 24px;
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(84, 51, 235, 0.6) 0%, rgba(84, 51, 235, 0) 60%),
        linear-gradient(160deg, #22194D 0%, #050419 100%);
    color: rgba(255, 255, 255, 0.85);
}

.nl-talk__photos {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.nl-talk__photos img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 25%;
    border: 3px solid #22194D;
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.6);
}

.nl-talk__photos img+img {
    margin-left: -16px;
}

.nl-article .nl-talk h2 {
    color: #fff;
    margin-bottom: 12px;
}

.nl-talk p {
    max-width: 560px;
    margin: 0 auto;
}

.nl-talk__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.nl-talk__emails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    margin-top: 28px;
    font-size: 15px;
}

.nl-article .nl-talk__emails a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
}

.nl-article .nl-talk__emails a:hover {
    opacity: 1;
    text-decoration: underline;
}

.nl-talk__emails .nl-icon {
    width: 18px;
    height: 18px;
    color: var(--nl-lilac);
}

/* ---------- Sidebar ---------- */

.nl-aside__sticky {
    position: sticky;
    top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nl-toc {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--nl-line);
    font-family: var(--font-noto-sans);
}

.nl-toc__title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nl-ink);
    margin-bottom: 12px;
}

.nl-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nl-toc li {
    list-style: none;
}

.nl-toc a {
    display: block;
    padding: 8px 0 8px 14px;
    border-left: 2px solid var(--nl-line);
    font-size: 15px;
    line-height: 1.4;
    color: rgba(43, 40, 64, 0.8);
    text-decoration: none;
    transition: color .2s, border-color .2s;
}

.nl-toc a:hover,
.nl-toc a.is-active {
    color: var(--nl-violet);
    border-left-color: var(--nl-violet);
}

.nl-aside__card {
    padding: 24px;
    border-radius: 16px;
    background: var(--nl-ink);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-noto-sans);
    font-size: 15px;
    line-height: 1.5;
}

.nl-aside__card .nl-eyebrow {
    color: var(--nl-lilac);
}

.nl-aside__card p {
    margin: 0;
}

.nl-aside__card .nl-btn.ast-btn {
    margin-top: 16px;
    padding: 10px 18px;
    font-size: 15px;
}

/* ---------- Responsive ---------- */

@media only screen and (max-width: 1024px) {
    .nl-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .nl-aside {
        display: none;
    }

    .nl-article {
        max-width: 760px;
        margin: 0 auto;
    }
}

@media only screen and (max-width: 768px) {
    .nl-hero__glow::after {
        display: none;
    }

    .newsletter-article .nl-hero h1 {
        font-size: 44px;
    }

    .nl-hero__standfirst {
        font-size: 20px;
    }

    .nl-article h2 {
        font-size: 32px;
    }

    .nl-roles__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .nl-insight,
    .nl-quote {
        padding: 36px 28px;
    }

    .nl-talk {
        padding: 44px 24px;
    }
}

@media only screen and (max-width: 480px) {
    .newsletter-article .nl-hero {
        padding: 104px 0 48px;
    }

    .newsletter-article .nl-hero h1 {
        font-size: 36px;
    }

    .nl-hero__back {
        margin-bottom: 24px;
    }

    .nl-body {
        padding: 48px 0 72px;
    }

    .nl-article {
        font-size: 17px;
    }

    .nl-lead {
        font-size: 19px;
    }

    .nl-section {
        margin-top: 56px;
    }

    .nl-stats__value,
    .nl-insight__value {
        font-size: 48px;
    }

    .nl-promo {
        flex-direction: column;
        padding: 24px;
    }

    .nl-point {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .nl-events {
        grid-template-columns: minmax(0, 1fr);
    }

    .nl-pullquote p,
    .nl-quote blockquote p {
        font-size: 23px;
    }
}
