/* =====================================================================
   NETWOVEN NEWSLETTERS: nw-newsletter.css
   Needs nw-tokens.css. No new design tokens.
   Raw-value exceptions: LinkedIn brand colour, 42px thumbnail,
   archive min-height clamp(), mobile header offset (100px),
   inline SVG mask icon, responsive breakpoints.
   Load only on /newsletters/ pages and nw_newsletter issues.
   ===================================================================== */

/* ===== 1. Shared ===== */

.nw-newsletter [id] {
    scroll-margin-top: var(--nw-scroll-offset);
}

.nw-newsletter .nw-eyebrow {
    margin: 0 0 var(--nw-space-3);
    color: var(--nw-brand-primary);
    font-size: var(--nw-fs-label);
    font-weight: var(--nw-fw-bold);
    letter-spacing: var(--nw-ls-eyebrow);
    text-transform: uppercase;
}

.nw-newsletter .nw-newsletter-lede {
    margin: 0 0 var(--nw-space-4);
    color: var(--nw-text-heading);
    font-size: var(--nw-fs-lead);
    font-weight: var(--nw-fw-semibold);
    line-height: var(--nw-lh-body);
}

.nw-newsletter .nw-newsletter-meta {
    margin: 0 0 var(--nw-space-3);
    color: var(--nw-text-secondary);
    font-size: var(--nw-fs-small);
    font-weight: var(--nw-fw-semibold);
}

.nw-newsletter .nw-newsletter-back a {
    display: inline-flex;
    gap: var(--nw-space-2);
    color: inherit;
    text-decoration: none;
}

.nw-newsletter .nw-newsletter-back a:hover {
    color: var(--nw-brand-primary);
}

.nw-newsletter .nw-newsletter-all {
    margin: var(--nw-space-4) 0 0;
    font-size: var(--nw-fs-body-sm);
    font-weight: var(--nw-fw-semibold);
}

.nw-newsletter .nw-newsletter-all a {
    color: var(--nw-brand-primary);
    text-decoration: none;
}

.nw-newsletter .nw-newsletter-all a:hover {
    text-decoration: underline;
}

.nw-newsletter a,
.nw-newsletter .wp-block-button__link {
    transition:
        background-color var(--nw-transition),
        color var(--nw-transition),
        border-color var(--nw-transition),
        box-shadow var(--nw-transition),
        transform var(--nw-transition);
}

.nw-newsletter :focus-visible {
    outline: var(--nw-border-width-strong) solid var(--nw-focus-ring);
    outline-offset: var(--nw-border-width-strong);
}

/* Inline SVG icons */
.nw-newsletter .nw-inline-icon {
    display: block;
    flex: 0 0 auto;
}

.nw-newsletter .nw-icon-series,
.nw-newsletter .nw-icon-mail {
    width: var(--nw-icon-sm);
    height: var(--nw-icon-sm);
}

.nw-newsletter .nw-icon-date {
    width: var(--nw-icon-xs);
    height: var(--nw-icon-xs);
}

/* ===== 2. Buttons ===== */

.nw-newsletter .two-btn {
    gap: var(--nw-space-3);
}

.nw-newsletter :is(.cta-one, .cta-two) .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--nw-btn-height);
    padding: var(--nw-btn-pad-y) var(--nw-btn-pad-x);
    font-size: var(--nw-btn-fs);
    font-weight: var(--nw-btn-fw);
    line-height: 1.25;
    border: var(--nw-border-width) solid transparent;
    border-radius: var(--nw-btn-radius);
    text-decoration: none;
}

.nw-newsletter .cta-one .wp-block-button__link {
    color: var(--nw-text-on-dark);
    background: var(--nw-brand-primary);
}

.nw-newsletter .cta-one .wp-block-button__link:hover {
    background: var(--nw-brand-primary-hover);
    box-shadow: var(--nw-shadow-blue);
    transform: translateY(var(--nw-lift-sm));
}

.nw-newsletter .cta-two .wp-block-button__link {
    color: var(--nw-text-heading);
    background: var(--nw-bg-white);
    border-color: var(--nw-border);
}

.nw-newsletter .cta-two .wp-block-button__link:hover {
    color: var(--nw-brand-primary);
    border-color: var(--nw-brand-primary);
    transform: translateY(var(--nw-lift-sm));
}

/* ===== 3. Homepage: Latest issue ===== */

.nw-newsletter-latest .wp-block-post-template {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nw-newsletter-latest .wp-block-post-title a {
    color: inherit;
    text-decoration: none;
}

.nw-newsletter-latest .wp-block-post-title a:hover {
    color: var(--nw-brand-primary);
}

.nw-newsletter-latest .wp-block-post-excerpt__excerpt {
    margin: 0;
}

.nw-newsletter-latest .nw-newsletter-actions {
    gap: var(--nw-space-3);
    margin-top: var(--nw-space-8);
}

.nw-newsletter-latest .nw-newsletter-actions .wp-block-buttons {
    margin: 0;
}

.nw-newsletter-latest .nw-newsletter-read {
    display: inline-flex;
    align-items: center;
    min-height: var(--nw-btn-height);
    padding: var(--nw-btn-pad-y) var(--nw-btn-pad-x);
    color: var(--nw-text-on-dark);
    background: var(--nw-brand-primary);
    border-radius: var(--nw-btn-radius);
    font-size: var(--nw-btn-fs);
    font-weight: var(--nw-btn-fw);
    line-height: 1.25;
    text-decoration: none;
}

.nw-newsletter-latest .nw-newsletter-read:hover {
    color: var(--nw-text-on-dark);
    background: var(--nw-brand-primary-hover);
}

/* ===== 4. Subscribe card and Contact Form 7 ===== */

.nw-newsletter .nw-newsletter-subscribe {
    padding: var(--nw-space-8);
    color: var(--nw-text-heading);
    background: var(--nw-bg-white);
    border: var(--nw-border-width) solid var(--nw-border);
    border-radius: var(--nw-radius-xl);
    box-shadow: var(--nw-shadow-card);
    --nw-focus-ring: var(--nw-brand-primary);
}

.nw-newsletter .nw-newsletter-subscribe > * {
    margin-top: 0;
}

.nw-newsletter .nw-newsletter-subscribe-title {
    display: flex;
    align-items: center;
    gap: var(--nw-space-2);
    margin: 0 0 var(--nw-space-2);
    color: var(--nw-text-heading);
    font-size: var(--nw-fs-h3);
    font-weight: var(--nw-fw-bold);
    line-height: var(--nw-lh-heading);
}

.nw-newsletter .nw-newsletter-cadence {
    margin: 0 0 var(--nw-space-4);
    color: var(--nw-text-secondary);
    font-size: var(--nw-fs-small);
}

.nw-newsletter-subscribe .wpcf7 p {
    margin: 0;
}

.nw-newsletter-subscribe .wpcf7 br {
    display: none;
}

.nw-sub {
    display: grid;
    gap: var(--nw-space-3);
}

.nw-sub .nw-vh {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nw-sub .wpcf7-form-control-wrap {
    display: block;
}

.nw-sub input[type="email"] {
    width: 100%;
    min-height: var(--nw-input-height);
    padding: var(--nw-space-3) var(--nw-space-4);
    color: var(--nw-input-text);
    background: var(--nw-input-bg);
    border: var(--nw-border-width) solid var(--nw-input-border);
    border-radius: var(--nw-radius-small);
    font: inherit;
    font-size: var(--nw-fs-body);
}

.nw-sub input[type="email"]::placeholder {
    color: var(--nw-input-placeholder);
}

.nw-sub input[type="email"]:focus {
    outline: var(--nw-border-width-strong) solid var(--nw-focus-ring-soft);
    outline-offset: 0;
    border-color: var(--nw-input-border-focus);
}

.nw-sub-consent {
    color: var(--nw-text-muted);
    font-size: var(--nw-fs-caption);
    line-height: var(--nw-lh-compact);
}

.nw-sub-consent .wpcf7-list-item {
    display: block;
    margin: 0;
}

.nw-sub-consent .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: var(--nw-space-2);
    cursor: pointer;
}

.nw-sub-consent input[type="checkbox"] {
    flex: none;
    width: var(--nw-icon-xs);
    height: var(--nw-icon-xs);
    margin: var(--nw-space-1) 0 0;
    accent-color: var(--nw-brand-primary);
}

.nw-sub-consent a {
    color: var(--nw-brand-primary);
    text-decoration: underline;
}

.nw-sub .nw-sub-row:last-child {
    position: relative;
}

.nw-sub .nw-sub-btn {
    width: 100%;
    min-height: var(--nw-btn-height);
    padding: var(--nw-btn-pad-y) var(--nw-btn-pad-x);
    color: var(--nw-text-on-dark);
    background: var(--nw-brand-primary);
    border: 0;
    border-radius: var(--nw-btn-radius);
    font: inherit;
    font-size: var(--nw-btn-fs);
    font-weight: var(--nw-btn-fw);
    cursor: pointer;
    transition:
        background-color var(--nw-transition),
        box-shadow var(--nw-transition);
}

.nw-sub .nw-sub-btn:hover {
    background: var(--nw-brand-primary-hover);
    box-shadow: var(--nw-shadow-blue);
}

.nw-sub .wpcf7-spinner {
    position: absolute;
    top: 50%;
    right: var(--nw-space-3);
    margin: calc(var(--nw-space-3) * -1) 0 0;
}

.nw-newsletter-subscribe .wpcf7-not-valid-tip {
    margin-top: var(--nw-space-1);
    font-size: var(--nw-fs-label);
}

.nw-newsletter-subscribe .wpcf7 form .wpcf7-response-output {
    margin: var(--nw-space-3) 0 0;
    padding: var(--nw-space-3) var(--nw-space-4);
    color: var(--nw-text-heading);
    background: var(--nw-bg-soft);
    border: var(--nw-border-width) solid var(--nw-border);
    border-radius: var(--nw-radius-small);
    font-size: var(--nw-fs-small);
    line-height: var(--nw-lh-compact);
}

.nw-newsletter-subscribe .wpcf7 form.sent .wpcf7-response-output {
    margin-top: 0;
    background: var(--nw-bg-green);
    border-color: var(--nw-border-green);
}

.nw-newsletter-subscribe .wpcf7 form:is(.invalid, .unaccepted, .payment-required) .wpcf7-response-output {
    background: var(--nw-bg-orange);
    border-color: var(--nw-border-orange);
}

.nw-newsletter-subscribe .wpcf7 form:is(.failed, .aborted, .spam) .wpcf7-response-output {
    background: var(--nw-bg-rose);
    border-color: var(--nw-border-rose);
}

.nw-newsletter-subscribe .wpcf7 form.sent .nw-sub {
    display: none;
}

.nw-newsletter-subscribe input[type="email"] {
    width: 100%;
    min-height: var(--nw-input-height);
    padding: var(--nw-space-3) var(--nw-space-4);
    color: var(--nw-input-text);
    background: var(--nw-input-bg);
    border: var(--nw-border-width) solid var(--nw-input-border);
    border-radius: var(--nw-radius-small);
    font: inherit;
    font-size: var(--nw-fs-body);
}
.nw-newsletter-subscribe form.marketingForm label{
  display: none;
}

.nw-newsletter-subscribe .wrap-section.emptyContainer.columns-equal-class > .columnContainer{
    padding-left: 0!important;
}

div[data-cached-form-url] .onFormSubmittedFeedback {
    height: 165px !important;
}
.nw-newsletter .nw-newsletter-privacy {
    margin: var(--nw-space-2, 8px) 0 0;
    color: var(--nw-text-muted, #64748b);
    font-size: var(--nw-fs-caption, 12px);
    line-height: var(--nw-lh-compact, 1.4);
}

.nw-newsletter .nw-newsletter-privacy a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nw-newsletter .nw-newsletter-privacy a:hover {
    color: var(--nw-brand-primary, #1f4ea3);
}
.nw-newsletter-subscribe div[data-editorblocktype="SubmitButton"] {
    padding-bottom: 0 !important;
}

/* LinkedIn follow */

.nw-newsletter .nw-newsletter-social {
    margin: var(--nw-space-4) 0 0;
    padding: var(--nw-space-4) 0 0;
    border-top: var(--nw-border-width) solid var(--nw-border);
}

.nw-newsletter .nw-newsletter-social .wp-social-link {
    margin: 0;
}

.nw-newsletter .nw-newsletter-social .wp-social-link:hover {
    transform: none;
}

.nw-newsletter .nw-newsletter-social .wp-block-social-link-anchor {
    display: inline-flex;
    align-items: center;
    gap: var(--nw-space-2);
    padding: 0;
    color: var(--nw-brand-primary);
    text-decoration: none;
}

.nw-newsletter .nw-newsletter-social svg {
    width: var(--nw-icon-sm);
    height: var(--nw-icon-sm);
    color: #0a66c2;
    fill: currentColor;
}

.nw-newsletter .nw-newsletter-social .wp-social-link-label {
    margin: 0;
    font-size: var(--nw-fs-small);
    font-weight: var(--nw-fw-semibold);
}

.nw-newsletter .nw-newsletter-social .wp-block-social-link-anchor:hover .wp-social-link-label {
    text-decoration: underline;
}

/* ===== 5. Newsletter hubs: Hero and picker ===== */

.nw-newsletter-hub {
    background-image:
        radial-gradient(circle at top right, var(--nw-glow-blue), transparent),
        radial-gradient(circle at bottom left, var(--nw-glow-purple), transparent);
}

.nw-newsletter-hub .wp-block-columns {
    gap: var(--nw-col-gap);
    align-items: center;
}

.nw-newsletter-picker {
    padding: var(--nw-card-pad);
    background: var(--nw-bg-white);
    border: var(--nw-border-width) solid var(--nw-border);
    border-radius: var(--nw-radius-xl);
    box-shadow: var(--nw-shadow-card);
}

.nw-newsletter-picker > * {
    margin-top: 0;
}

.nw-newsletter-picker .nw-newsletter-picker-title {
    margin: 0 0 var(--nw-space-2);
    color: var(--nw-text-secondary);
    font-size: var(--nw-fs-label);
    font-weight: var(--nw-fw-bold);
    line-height: var(--nw-lh-compact);
    letter-spacing: var(--nw-ls-eyebrow);
    text-transform: uppercase;
}

.nw-newsletter-picks {
    display: grid;
    gap: var(--nw-space-1);
}

.nw-newsletter-pick {
    position: relative;
    margin: 0;
    padding: var(--nw-space-4) var(--nw-space-12) var(--nw-space-4) var(--nw-space-4);
    border-radius: var(--nw-radius-md);
    transition: background-color var(--nw-transition);
}

.nw-newsletter-pick:hover {
    background: var(--nw-bg-blue);
}

.nw-newsletter-pick:focus-within {
    outline: var(--nw-border-width-strong) solid var(--nw-focus-ring);
    outline-offset: calc(var(--nw-border-width-strong) * -1);
}

.nw-newsletter-pick::after {
    content: "\2192";
    position: absolute;
    top: 50%;
    right: var(--nw-space-4);
    color: var(--nw-brand-primary);
    font-size: var(--nw-fs-h3);
    font-weight: var(--nw-fw-semibold);
    transform: translateY(-50%);
    transition: transform var(--nw-transition);
}

.nw-newsletter-pick:hover::after {
    transform: translate(var(--nw-space-1), -50%);
}

.nw-newsletter-pick .nw-newsletter-pick-meta {
    margin: 0 0 var(--nw-space-1);
    color: var(--nw-brand-primary);
    font-size: var(--nw-fs-caption);
    font-weight: var(--nw-fw-bold);
    letter-spacing: var(--nw-ls-tag);
    text-transform: uppercase;
}

.nw-newsletter-pick .nw-newsletter-pick-title {
    margin: 0 0 var(--nw-space-1);
    color: var(--nw-text-heading);
    font-size: var(--nw-fs-h3);
    font-weight: var(--nw-fw-semibold);
    line-height: var(--nw-lh-heading);
}

.nw-newsletter-pick .nw-newsletter-pick-title a {
    color: inherit;
    text-decoration: none;
}

.nw-newsletter-pick .nw-newsletter-pick-title a:focus {
    outline: 0;
}

.nw-newsletter-pick .nw-newsletter-pick-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.nw-newsletter-pick:hover .nw-newsletter-pick-title {
    color: var(--nw-brand-primary);
}

.nw-newsletter-picker .nw-newsletter-pick-text {
    margin: 0;
    color: var(--nw-text-secondary);
    font-size: var(--nw-fs-body-sm);
    line-height: var(--nw-lh-body);
}

/* ===== 6. Archive: Issue rows ===== */

.nw-archive-header {
    gap: var(--nw-col-gap);
    margin: 0 0 var(--nw-section-head-gap);
}

.nw-archive-header .nw-h2 {
    margin-bottom: 0;
}

.nw-archive-header-intro .nw-p {
    margin: 0;
}

/* Keep the archive from looking empty when a list has 0-3 issues */
.nw-newsletter-archive > .nt-container:not(:has(.wp-block-post:nth-child(4))) {
    min-height: clamp(16rem, 30vh, 24rem);
}

.nw-newsletter-rows {
    --nw-thumb-size: 42px;
    overflow: hidden;
    background: var(--nw-bg-white);
    border: var(--nw-border-width) solid var(--nw-border);
    border-radius: var(--nw-radius-xl);
    box-shadow: var(--nw-shadow-soft);
}

.nw-newsletter-rows .wp-block-post-template {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nw-newsletter-rows .wp-block-post {
    position: relative;
    margin: 0;
    border-bottom: var(--nw-border-width) solid var(--nw-border);
    transition: background-color var(--nw-transition);
}

.nw-newsletter-rows .wp-block-post:last-child {
    border-bottom: 0;
}

.nw-newsletter-rows .wp-block-post:hover {
    background: var(--nw-bg-blue);
}

/* Inset ring; the card's overflow:hidden rounds it at the first/last row */
.nw-newsletter-rows .wp-block-post:focus-within {
    outline: var(--nw-border-width-strong) solid var(--nw-focus-ring);
    outline-offset: calc(var(--nw-border-width-strong) * -1);
}

.nw-newsletter-rows .nw-newsletter-item {
    gap: var(--nw-space-7);
    margin: 0;
    padding: var(--nw-space-6) var(--nw-card-pad);
}

.nw-newsletter-rows .nw-newsletter-item > .wp-block-column:last-child {
    text-align: right;
}

/* Date: icon + text */
.nw-newsletter-rows .nw-newsletter-date {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--nw-space-2);
    min-width: 0;
    color: var(--nw-text-secondary);
}

.nw-newsletter-rows .nw-newsletter-meta {
    margin: 0;
    white-space: nowrap;
}

/* Series pill */
.nw-newsletter-rows .nw-newsletter-issue {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nw-space-2);
    margin: 0;
}

.nw-newsletter-rows .nw-newsletter-issue .wp-block-post-terms__separator {
    display: none;
}

.nw-newsletter-rows .nw-newsletter-issue a {
    position: relative;
    z-index: var(--nw-z-base);
    padding: var(--nw-space-1) var(--nw-space-3);
    color: var(--nw-brand-primary);
    background: var(--nw-bg-blue-soft);
    border: var(--nw-border-width) solid var(--nw-border-blue);
    border-radius: var(--nw-radius-pill);
    font-size: var(--nw-fs-micro, var(--nw-fs-caption));
    font-weight: var(--nw-fw-bold);
    line-height: var(--nw-lh-compact);
    letter-spacing: var(--nw-ls-tag);
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.nw-newsletter-rows .nw-newsletter-issue a:hover {
    color: var(--nw-text-on-dark);
    background: var(--nw-brand-primary);
    border-color: var(--nw-brand-primary);
}

/* Thumbnail + title */
.nw-newsletter-rows .nw-newsletter-titlebox {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--nw-space-3);
}

.nw-newsletter-rows .nw-newsletter-thumb {
    position: relative;
    flex: 0 0 var(--nw-thumb-size);
    width: var(--nw-thumb-size);
    height: var(--nw-thumb-size);
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
    background: var(--nw-bg-blue-soft);
    border: var(--nw-border-width-strong) solid var(--nw-border);
    border-radius: var(--nw-radius-small);
}

.nw-newsletter-rows .nw-newsletter-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.nw-newsletter-rows .nw-newsletter-thumb img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.nw-newsletter-rows .nw-newsletter-title {
    min-width: 0;
    margin: 0;
    color: var(--nw-text-heading);
    font-size: var(--nw-fs-body-sm);
    font-weight: var(--nw-fw-semibold);
    line-height: var(--nw-lh-heading);
}

.nw-newsletter-rows .nw-newsletter-title a {
    color: inherit;
    text-decoration: none;
}

.nw-newsletter-rows .nw-newsletter-title a:focus {
    outline: 0;
}

.nw-newsletter-rows .nw-newsletter-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.nw-newsletter-rows .wp-block-post:hover .nw-newsletter-title {
    color: var(--nw-brand-primary);
}

/* Read issue: book-open icon */
.nw-newsletter-rows .nw-newsletter-read {
    display: inline-flex;
    align-items: center;
    gap: var(--nw-space-2);
    color: var(--nw-brand-primary);
    font-size: var(--nw-fs-small);
    font-weight: var(--nw-fw-semibold);
    text-decoration: none;
    white-space: nowrap;
}

.nw-newsletter-rows .nw-newsletter-read::before {
    content: "";
    flex: 0 0 var(--nw-icon-xs);
    width: var(--nw-icon-xs);
    height: var(--nw-icon-xs);
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14'/%3E%3Cpath d='M3 18V5a2 2 0 0 1 2-2h3a4 4 0 0 1 4 4 4 4 0 0 1 4-4h3a2 2 0 0 1 2 2v13h-5a4 4 0 0 0-4 3 4 4 0 0 0-4-3H3Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14'/%3E%3Cpath d='M3 18V5a2 2 0 0 1 2-2h3a4 4 0 0 1 4 4 4 4 0 0 1 4-4h3a2 2 0 0 1 2 2v13h-5a4 4 0 0 0-4 3 4 4 0 0 0-4-3H3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nw-newsletter-rows .wp-block-post:hover .nw-newsletter-read {
    text-decoration: underline;
}

.nw-newsletter-rows .nw-newsletter-pagination {
    justify-content: space-between;
    gap: var(--nw-space-4);
    margin: 0;
    padding: var(--nw-space-4) var(--nw-card-pad);
    background: var(--nw-bg-soft);
    border-top: var(--nw-border-width) solid var(--nw-border);
    font-size: var(--nw-fs-body-sm);
    font-weight: var(--nw-fw-semibold);
}

.nw-newsletter-rows .nw-newsletter-pagination :is(a, .current) {
    min-width: 0;
    padding: var(--nw-space-1) var(--nw-space-2);
    color: var(--nw-text-secondary);
    background: none;
    border: 0;
}

.nw-newsletter-rows .nw-newsletter-pagination :is(a:hover, .current) {
    color: var(--nw-brand-primary);
}

.nw-newsletter-rows .wp-block-query-no-results .nw-p {
    margin: 0;
    padding: var(--nw-space-6) var(--nw-card-pad);
}

/* ===== 7. Series pages: Issue cards ===== */

.nw-newsletter-series-head {
    gap: var(--nw-col-gap);
    align-items: flex-end;
    margin-bottom: var(--nw-space-2);
}

.nw-newsletter-series-head .nw-h2 {
    margin-bottom: 0;
}

.nw-newsletter-series-head .nw-p {
    margin: 0;
}

.nw-newsletter-list .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--nw-grid-gap);
    margin: var(--nw-space-8) 0 0;
    padding: 0;
    list-style: none;
}

.nw-newsletter-list .wp-block-post {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: var(--nw-card-pad);
    background: var(--nw-bg-white);
    border: var(--nw-border-width) solid var(--nw-border);
    border-radius: var(--nw-radius-md);
    box-shadow: var(--nw-shadow-soft);
    transition:
        box-shadow var(--nw-transition),
        transform var(--nw-transition),
        border-color var(--nw-transition);
}

.nw-newsletter-list .wp-block-post:hover {
    border-color: var(--nw-border-blue);
    box-shadow: var(--nw-shadow-card);
    transform: translateY(var(--nw-lift));
}

.nw-newsletter-list .wp-block-post:focus-within {
    outline: var(--nw-border-width-strong) solid var(--nw-focus-ring);
    outline-offset: var(--nw-border-width-strong);
}

.nw-newsletter-list .nw-newsletter-card-meta {
    gap: var(--nw-space-2);
    align-items: center;
    margin: 0 0 var(--nw-space-3);
}

.nw-newsletter-list .nw-newsletter-card-series {
    margin: 0;
    padding: var(--nw-space-1) var(--nw-space-3);
    color: var(--nw-brand-primary);
    background: var(--nw-bg-blue-soft);
    border-radius: var(--nw-radius-pill);
    font-size: var(--nw-fs-caption);
    font-weight: var(--nw-fw-bold);
    letter-spacing: var(--nw-ls-tag);
    text-transform: uppercase;
}

.nw-newsletter-list .nw-newsletter-card-series a {
    color: inherit;
    text-decoration: none;
}

.nw-newsletter-list .nw-newsletter-meta {
    margin: 0;
    font-size: var(--nw-fs-label);
}

.nw-newsletter-list .nw-newsletter-card-title {
    margin: 0 0 var(--nw-space-2);
    color: var(--nw-text-heading);
    font-size: var(--nw-fs-h3);
    font-weight: var(--nw-fw-semibold);
    line-height: var(--nw-lh-heading);
}

.nw-newsletter-list .nw-newsletter-card-title a {
    color: inherit;
    text-decoration: none;
}

.nw-newsletter-list .nw-newsletter-card-title a:focus {
    outline: 0;
}

.nw-newsletter-list .nw-newsletter-card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.nw-newsletter-list .wp-block-post:hover .nw-newsletter-card-title {
    color: var(--nw-brand-primary);
}

.nw-newsletter-list .wp-block-post-excerpt {
    margin: 0;
}

.nw-newsletter-list .wp-block-post-excerpt__excerpt {
    margin: 0;
    font-size: var(--nw-fs-body-sm);
    line-height: var(--nw-lh-body);
}

.nw-newsletter-list .nw-newsletter-link {
    margin-top: auto;
    padding-top: var(--nw-space-5);
    color: var(--nw-brand-primary);
    font-size: var(--nw-fs-body-sm);
    font-weight: var(--nw-fw-semibold);
    text-decoration: none;
}

.nw-newsletter-list .wp-block-post:hover .nw-newsletter-link {
    text-decoration: underline;
}

.nw-newsletter-list .wp-block-query-no-results .nw-p {
    margin: var(--nw-space-6) 0 0;
    padding: var(--nw-card-pad);
    background: var(--nw-bg-soft);
    border: var(--nw-border-width) dashed var(--nw-border);
    border-radius: var(--nw-radius-md);
}

/* ===== 8. Pagination (default) ===== */

.nw-newsletter-pagination {
    justify-content: center;
    gap: var(--nw-space-2);
    margin-top: var(--nw-space-10);
}

.nw-newsletter-pagination :is(a, .current) {
    min-width: var(--nw-space-10);
    padding: var(--nw-space-2) var(--nw-space-3);
    color: var(--nw-text-heading);
    border: var(--nw-border-width) solid var(--nw-border);
    border-radius: var(--nw-radius-small);
    text-align: center;
    text-decoration: none;
}

.nw-newsletter-pagination a:hover {
    color: var(--nw-brand-primary);
    border-color: var(--nw-brand-primary);
}

.nw-newsletter-pagination .current {
    color: var(--nw-text-on-dark);
    background: var(--nw-brand-primary);
    border-color: var(--nw-brand-primary);
}

/* ===== 9. Subscribe band ===== */

.nw-newsletter-band {
    color: var(--nw-text-on-dark);
    background-color: var(--nw-brand-primary);
    background-image: var(--nw-gradient-cta);
    --nw-focus-ring: var(--nw-focus-ring-on-dark);
}

.nw-newsletter-band .wp-block-columns {
    gap: var(--nw-col-gap);
    align-items: center;
}

.nw-newsletter-band-copy :is(h2, .nw-h2) {
    margin: 0 0 var(--nw-space-4);
    color: var(--nw-text-on-dark);
    font-size: var(--nw-fs-h2);
    font-weight: var(--nw-fw-semibold);
    line-height: var(--nw-lh-heading);
}

.nw-newsletter-band-copy .nw-p {
    margin: 0 0 var(--nw-space-5);
    color: var(--nw-text-on-dark);
    font-size: var(--nw-fs-intro);
    line-height: var(--nw-lh-body);
    opacity: .9;
}

.nw-newsletter-band-copy .nw-eyebrow {
    color: var(--nw-eyebrow-on-dark);
}

.nw-newsletter-benefits {
    margin: 0;
    padding: 0;
    font-size: var(--nw-fs-body);
    line-height: var(--nw-lh-body);
    list-style: none;
}

.nw-newsletter-benefits li {
    position: relative;
    margin: 0;
    padding-left: var(--nw-space-8);
}

.nw-newsletter-benefits li + li {
    margin-top: var(--nw-list-gap);
}

.nw-newsletter-benefits li::before {
    content: "\2713";
    position: absolute;
    top: var(--nw-space-1);
    left: 0;
    display: grid;
    place-items: center;
    width: var(--nw-icon-sm);
    height: var(--nw-icon-sm);
    color: var(--nw-brand-primary);
    background: var(--nw-bg-white);
    border-radius: var(--nw-radius-pill);
    font-size: var(--nw-fs-caption);
    font-weight: var(--nw-fw-bold);
}

/* ===== 10. CTA band ===== */

.nw-newsletter-cta .nt-container {
    text-align: center;
}

.nw-newsletter-cta .nw-p {
    max-width: var(--nw-container-text);
    margin-right: auto;
    margin-left: auto;
}

.nw-newsletter-cta .wp-block-buttons {
    justify-content: center;
    margin-top: var(--nw-space-6);
}

/* ===== 11. Newsletter issue pages ===== */

.nw-newsletter-issue-head .wp-block-columns {
    align-items: flex-start;
}
.nw-issue-eyebrow { color: var(--nw-brand-primary, #1f4ea3) !important; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nw-issue-eyebrow a { color: inherit !important; text-decoration: none !important; }

.nw-newsletter-issue-head .nw-newsletter-issue-label {
    margin-top: var(--nw-space-5);
}

.nw-newsletter-meta-row {
    gap: 0;
    margin: var(--nw-space-2) 0 0;
}

.nw-newsletter-meta-row > * {
    margin: 0;
    color: var(--nw-text-secondary);
    font-size: var(--nw-fs-small);
    font-weight: var(--nw-fw-semibold);
}

.nw-newsletter-meta-row > * + *::before {
    content: "\00B7";
    margin: 0 var(--nw-space-2);
}

.nw-newsletter-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--nw-space-2);
    margin: var(--nw-space-6) 0 0;
    padding: 0;
    list-style: none;
}

.nw-newsletter-share li {
    margin: 0;
}

.nw-newsletter-share-label {
    margin-right: var(--nw-space-1) !important;
    color: var(--nw-text-secondary);
    font-size: var(--nw-fs-label);
    font-weight: var(--nw-fw-bold);
    letter-spacing: var(--nw-ls-eyebrow);
    text-transform: uppercase;
}

.nw-newsletter-share a {
    display: inline-block;
    padding: var(--nw-space-1) var(--nw-space-4);
    color: var(--nw-text-heading);
    background: var(--nw-bg-white);
    border: var(--nw-border-width) solid var(--nw-border);
    border-radius: var(--nw-radius-pill);
    font-size: var(--nw-fs-small);
    font-weight: var(--nw-fw-semibold);
    text-decoration: none;
}

.nw-newsletter-share a:hover {
    color: var(--nw-brand-primary);
    border-color: var(--nw-brand-primary);
}

.nw-newsletter-toc {
    margin: 0;
    padding: var(--nw-card-pad);
    background: var(--nw-bg-white);
    border: var(--nw-border-width) solid var(--nw-border);
    border-radius: var(--nw-radius-xl);
    box-shadow: var(--nw-shadow-card);
}

.nw-newsletter-toc summary {
    color: var(--nw-text-heading);
    font-size: var(--nw-fs-label);
    font-weight: var(--nw-fw-bold);
    letter-spacing: var(--nw-ls-eyebrow);
    text-transform: uppercase;
    cursor: pointer;
}

.nw-newsletter-toc :is(ol, ul) {
    margin: var(--nw-space-4) 0 0;
    padding: 0;
    list-style: none;
    counter-reset: nw-toc;
}

.nw-newsletter-toc li {
    margin: 0;
    border-top: var(--nw-border-width) solid var(--nw-border);
    counter-increment: nw-toc;
}

.nw-newsletter-toc li:first-child {
    border-top: 0;
}

.nw-newsletter-toc a {
    display: flex;
    gap: var(--nw-space-3);
    padding: var(--nw-space-2) 0;
    color: var(--nw-text-heading);
    font-size: var(--nw-fs-body-sm);
    font-weight: var(--nw-fw-semibold);
    line-height: var(--nw-lh-compact);
    text-decoration: none;
}

.nw-newsletter-toc a::before {
    content: counter(nw-toc, decimal-leading-zero);
    flex: none;
    color: var(--nw-brand-primary);
}

.nw-newsletter-toc a:hover {
    color: var(--nw-brand-primary);
}

.nw-newsletter-issue-cols {
    gap: var(--nw-space-14);
}

.nw-newsletter-issue .nw-p {
    font-size: var(--nw-fs-intro);
    line-height: var(--nw-lh-loose);
}

.nw-newsletter-issue .nw-p a {
    color: var(--nw-brand-primary);
}

.nw-newsletter-aside {
    position: sticky;
    top: var(--nw-scroll-offset);
    z-index: var(--nw-z-base);
}

.nw-newsletter-topic {
    margin-top: var(--nw-space-12);
    padding-top: var(--nw-space-12);
    border-top: var(--nw-border-width) solid var(--nw-border);
}

.nw-newsletter-topic .nw-h2 {
    font-size: calc(var(--nw-fs-h2) * .75);
    line-height: var(--nw-lh-heading);
}

.nw-newsletter-topic .wp-block-buttons {
    gap: var(--nw-space-3);
    margin-top: var(--nw-space-6);
}

.nw-newsletter-callout {
    padding: var(--nw-card-pad);
    background: var(--nw-bg-blue);
    border: var(--nw-border-width) solid var(--nw-border-blue);
    border-radius: var(--nw-radius-md);
}

.nw-newsletter-callout .nw-eyebrow {
    color: var(--nw-brand-primary);
}

.nw-newsletter-callout + .nw-newsletter-topic {
    border-top: 0;
}

.nw-newsletter-signoff {
    margin-top: var(--nw-space-12);
}

.nw-newsletter-author {
    margin: 0 0 var(--nw-space-14);
    padding: var(--nw-card-pad);
    background: var(--nw-bg-white);
    border: var(--nw-border-width) solid var(--nw-border);
    border-radius: var(--nw-radius-md);
}

.nw-newsletter-author > * {
    margin-top: 0;
}

.nw-newsletter-author .nw-p {
    margin-bottom: 0;
}

/* ===== 12. Newsletter series filter ===== */

.nw-series-filter-row {
    margin-top: var(--nw-space-6);
    margin-bottom: var(--nw-space-4);
}

.nw-series-filter-row .nw-series-filter-label {
    display: flex;
    align-items: center;
    gap: var(--nw-space-2);
    margin: 0 0 var(--nw-space-3);
    color: var(--nw-text-muted);
    font-size: var(--nw-fs-label);
    font-weight: var(--nw-fw-semibold);
    letter-spacing: var(--nw-ls-eyebrow);
    text-transform: uppercase;
}

/* Row block: replace the theme blockGap with the token */
.nw-series-filter-row .nw-series-filter-pills.is-layout-flex {
    gap: var(--nw-space-2);
    margin: 0;
}

/* Tag Cloud <p> wrapper drops out so each link is its own item in the Row */
.nw-series-filter-row .nw-series-filter {
    display: contents;
}

.nw-series-filter-row .nw-series-filter-all {
    margin: 0;
}

.nw-series-filter-row :is(.nw-series-filter, .nw-series-filter-all) a {
    display: inline-block;
    margin: 0;
    padding: var(--nw-space-2) var(--nw-space-4);
    color: var(--nw-text-secondary);
    background: var(--nw-bg-white);
    border: var(--nw-border-width) solid var(--nw-border-blue);
    border-radius: var(--nw-radius-pill);
    /* !important needed: Tag Cloud prints an inline font-size on each link */
    font-size: var(--nw-fs-small) !important;
    font-weight: var(--nw-fw-semibold);
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.nw-series-filter-row :is(.nw-series-filter, .nw-series-filter-all) a:hover {
    color: var(--nw-brand-primary);
    border-color: var(--nw-brand-primary);
}

/* Current pill. Add one selector per series; slug must match Newsletters > Series. */
.nw-series--all .nw-series-filter-all a,
.nw-series--security-pulse .nw-series-filter a[href*="/security-pulse/"],
.nw-series--security-bulletin .nw-series-filter a[href*="/security-bulletin/"],
.nw-series--security-bulletin .nw-series-filter a[href*="/security-flash/"],
.nw-series--insider .nw-series-filter a[href*="/insider/"] {
    color: var(--nw-text-on-dark);
    background: var(--nw-brand-primary);
    border-color: var(--nw-brand-primary);
    pointer-events: none;
}

/* Security Flash: lightning bolt */
.nw-series-filter-row .nw-series-filter a[href*="security-flash"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E")!important;
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E")!important;
}

/* Current pill */
.nw-series--security-flash .nw-series-filter a[href*="/security-flash/"] {
    color: var(--nw-text-on-dark);
    background: var(--nw-brand-primary);
    border-color: var(--nw-brand-primary);
    pointer-events: none;
}

/* ===== 13. Floating Request Quote button ===== */

body:has(.nw-newsletter-hub) #RequestQuote,
body:has(.nw-newsletter-archive) #RequestQuote,
body.single-nw_newsletter #RequestQuote {
    display: none;
}

/* ===== 14. Responsive ===== */

@media (max-width: 1100px) {
    .nw-newsletter-list .wp-block-post-template {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 781px) {
    /* Header offset on newsletter hubs only */
    body:has(.nw-newsletter-intro) #content {
        padding-top: 100px;
    }

    .wp-block-group.nw-newsletter {
        padding-right: var(--nw-space-5);
        padding-left: var(--nw-space-5);
    }

    .nw-newsletter .nw-newsletter-subscribe {
        padding: var(--nw-space-6) var(--nw-space-5);
        border-radius: var(--nw-radius-md);
    }

    .nw-newsletter-hub .wp-block-columns,
    .nw-newsletter-band .wp-block-columns,
    .nw-newsletter-series-head,
    .nw-archive-header {
        gap: var(--nw-space-6);
    }

    .nw-newsletter-rows .nw-newsletter-item {
        gap: var(--nw-space-4);
        padding: var(--nw-space-5);
    }

    .nw-newsletter-rows .nw-newsletter-item > .wp-block-column:last-child {
        text-align: left;
    }

    .nw-newsletter-rows .nw-newsletter-pagination {
        padding: var(--nw-space-3) var(--nw-space-5);
    }

    /* Short lists on mobile don't need the extra height */
    .nw-newsletter-archive > .nt-container:not(:has(.wp-block-post:nth-child(4))) {
        min-height: 0;
    }

    .nw-newsletter-topic {
        margin-top: var(--nw-space-10);
        padding-top: var(--nw-space-10);
    }

    .nw-newsletter-issue-cols {
        gap: var(--nw-space-10);
    }

    .nw-newsletter-aside {
        position: static;
    }
}

@media (max-width: 640px) {
    .nw-newsletter-list .wp-block-post-template {
        grid-template-columns: 1fr;
    }

    .nw-newsletter .two-btn,
    .nw-newsletter-topic .wp-block-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .nw-newsletter :is(.two-btn, .nw-newsletter-topic) :is(.wp-block-button, .wp-block-button__link) {
        width: 100%;
        text-align: center;
    }

    .nw-newsletter-issue .nw-p {
        font-size: var(--nw-fs-emphasis);
    }
}

/* ===== 15. Reduced motion ===== */

@media (prefers-reduced-motion: reduce) {
    .nw-newsletter a,
    .nw-newsletter .wp-block-button__link,
    .nw-sub .nw-sub-btn,
    .nw-newsletter-list .wp-block-post,
    .nw-newsletter-pick,
    .nw-newsletter-pick::after,
    .nw-newsletter-rows .wp-block-post {
        transition: none;
    }

    .nw-newsletter .wp-block-button__link,
    .nw-newsletter-list .wp-block-post {
        transform: none !important;
    }

    /* Keep the arrow vertically centred; only drop the hover nudge */
    .nw-newsletter-pick:hover::after {
        transform: translateY(-50%);
    }
}

/* ===== 16. Pill icons, row hover and row animations (keep at the end) ===== */

/* --- Series pill icons --- */
.nw-series-filter-row .nw-series-filter-pills :is(.nw-series-filter, .nw-series-filter-all) a {
    display: inline-flex;
    align-items: center;
    gap: var(--nw-space-2);
}

.nw-series-filter-row .nw-series-filter-pills :is(.nw-series-filter, .nw-series-filter-all) a::before {
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    width: var(--nw-icon-xs);
    height: var(--nw-icon-xs);
    background-color: currentColor;
    /* Default: document icon */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* All issues: grid */
.nw-series-filter-row .nw-series-filter-pills .nw-series-filter-all a::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
}

/* Security Bulletin: shield */
.nw-series-filter-row .nw-series-filter-pills .nw-series-filter a[href*="security-bulletin"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

/* Security Pulse: pulse line */
.nw-series-filter-row .nw-series-filter-pills .nw-series-filter a[href*="security-pulse"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l3-8 4 16 3-8h4'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l3-8 4 16 3-8h4'/%3E%3C/svg%3E");
}

.nw-series-filter-row .nw-series-filter .tag-link-count {
    opacity: .7;
}

/* --- Row: load animation --- */
@keyframes nw-row-in {
    from {
        opacity: 0;
        transform: translateY(var(--nw-space-3));
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.nw-newsletter-rows .wp-block-post-template > .wp-block-post {
    position: relative;
    transition:
        background-color var(--nw-transition),
        transform .08s ease;
    /* "backwards" so the click press below can still apply transform */
    animation: nw-row-in .45s ease backwards;
}

.nw-newsletter-rows .wp-block-post-template > .wp-block-post:nth-child(2) { animation-delay: .06s; }
.nw-newsletter-rows .wp-block-post-template > .wp-block-post:nth-child(3) { animation-delay: .12s; }
.nw-newsletter-rows .wp-block-post-template > .wp-block-post:nth-child(4) { animation-delay: .18s; }
.nw-newsletter-rows .wp-block-post-template > .wp-block-post:nth-child(5) { animation-delay: .24s; }
.nw-newsletter-rows .wp-block-post-template > .wp-block-post:nth-child(n+6) { animation-delay: .3s; }

/* --- Row: hover and keyboard focus --- */

/* Accent bar */
.nw-newsletter-rows .wp-block-post-template > .wp-block-post::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: var(--nw-space-1);
    background: var(--nw-brand-primary);
    transform: scaleY(0);
    transition: transform var(--nw-transition);
    pointer-events: none;
}

.nw-newsletter-rows .wp-block-post-template > .wp-block-post:is(:hover, :focus-within) {
    background: var(--nw-bg-blue);
}

.nw-newsletter-rows .wp-block-post-template > .wp-block-post:is(:hover, :focus-within)::before {
    transform: scaleY(1);
}

/* Title keeps its colour */
.nw-newsletter-rows .wp-block-post-template > .wp-block-post:is(:hover, :focus-within) .nw-newsletter-title {
    color: var(--nw-text-heading);
}

/* Transitions for the parts that change */
.nw-newsletter-rows .nw-newsletter-issue a,
.nw-newsletter-rows .nw-icon-date,
.nw-newsletter-rows .nw-newsletter-thumb,
.nw-newsletter-rows .nw-newsletter-thumb img,
.nw-newsletter-rows .nw-newsletter-read,
.nw-newsletter-rows .nw-newsletter-read::before {
    transition:
        background-color var(--nw-transition),
        border-color var(--nw-transition),
        color var(--nw-transition),
        opacity var(--nw-transition),
        transform var(--nw-transition);
}

/* Series pill fills */
.nw-newsletter-rows .wp-block-post-template > .wp-block-post:is(:hover, :focus-within) .nw-newsletter-issue a {
    color: var(--nw-text-on-dark);
    background: var(--nw-brand-primary);
    border-color: var(--nw-brand-primary);
}

/* Date icon turns brand blue */
.nw-newsletter-rows .wp-block-post-template > .wp-block-post:is(:hover, :focus-within) .nw-icon-date {
    color: var(--nw-brand-primary);
}

/* Thumbnail border turns blue */
.nw-newsletter-rows .wp-block-post-template > .wp-block-post:is(:hover, :focus-within) .nw-newsletter-thumb {
    border-color: var(--nw-brand-primary);
}

/* Thumbnail "open" overlay */
.nw-newsletter-rows .nw-newsletter-thumb::after {
    content: "\2197";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--nw-text-on-dark);
    background: var(--nw-brand-primary);
    background: color-mix(in srgb, var(--nw-brand-primary) 70%, transparent);
    font-size: var(--nw-fs-small);
    font-weight: var(--nw-fw-bold);
    opacity: 0;
    transition: opacity var(--nw-transition);
    pointer-events: none;
}

.nw-newsletter-rows .wp-block-post-template > .wp-block-post:is(:hover, :focus-within) .nw-newsletter-thumb::after {
    opacity: 1;
}

/* "Read issue" book icon fills in */
.nw-newsletter-rows .nw-newsletter-read::before {
    opacity: .6;
}

.nw-newsletter-rows .wp-block-post-template > .wp-block-post:is(:hover, :focus-within) .nw-newsletter-read::before {
    opacity: 1;
}

/* Mouse only: thumbnail zoom and "Read issue" nudge */
.nw-newsletter-rows .wp-block-post-template > .wp-block-post:hover .nw-newsletter-thumb img {
    transform: scale(1.08);
}

.nw-newsletter-rows .wp-block-post-template > .wp-block-post:hover .nw-newsletter-read {
    color: var(--nw-brand-primary-hover);
    text-decoration: none;
    transform: translateX(var(--nw-space-1));
}

/* --- Row: click press --- */
.nw-newsletter-rows .wp-block-post-template > .wp-block-post:active {
    transform: scale(.995);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .nw-newsletter-rows .wp-block-post-template > .wp-block-post {
        animation: none;
    }

    .nw-newsletter-rows .wp-block-post-template > .wp-block-post,
    .nw-newsletter-rows .wp-block-post-template > .wp-block-post::before,
    .nw-newsletter-rows .nw-newsletter-thumb img,
    .nw-newsletter-rows .nw-newsletter-read {
        transition: none;
    }

    .nw-newsletter-rows .wp-block-post-template > .wp-block-post:active,
    .nw-newsletter-rows .wp-block-post-template > .wp-block-post:hover .nw-newsletter-thumb img,
    .nw-newsletter-rows .wp-block-post-template > .wp-block-post:hover .nw-newsletter-read {
        transform: none;
    }
}
/* ===== 17. Issue page (PHP template) ===== */

.nw-newsletter-issue-page {
    background: var(--nw-bg-white);
}

.nw-newsletter-issue-head {
    padding: var(--nw-space-12) 0 var(--nw-space-10);
    background: var(--nw-bg-blue-soft);
    border-bottom: var(--nw-border-width) solid var(--nw-border);
}

.nw-newsletter-issue-head .nw-newsletter-back {
    margin: 0 0 var(--nw-space-5);
    font-size: var(--nw-fs-small);
    font-weight: var(--nw-fw-semibold);
    color: var(--nw-text-secondary);
}

.nw-newsletter-issue-head .nw-newsletter-issue-label {
    display: flex;
    margin: 0 0 var(--nw-space-3);
}

.nw-newsletter-issue-head .nw-newsletter-issue-label a {
    padding: var(--nw-space-1) var(--nw-space-3);
    color: var(--nw-brand-primary);
    background: var(--nw-bg-white);
    border: var(--nw-border-width) solid var(--nw-border-blue);
    border-radius: var(--nw-radius-pill);
    font-size: var(--nw-fs-caption);
    font-weight: var(--nw-fw-bold);
    letter-spacing: var(--nw-ls-tag);
    text-transform: uppercase;
    text-decoration: none;
}

.nw-newsletter-issue-head .nw-newsletter-issue-label a:hover {
    color: var(--nw-text-on-dark);
    background: var(--nw-brand-primary);
    border-color: var(--nw-brand-primary);
}

.nw-newsletter-issue-title {
    max-width: var(--nw-container-text);
    margin: 0 0 var(--nw-space-4);
    color: var(--nw-text-heading);
    font-size: var(--nw-fs-h1, var(--nw-fs-h2));
    font-weight: var(--nw-fw-semibold);
    line-height: var(--nw-lh-heading);
}

.nw-newsletter-issue-head .nw-newsletter-lede {
    max-width: var(--nw-container-text);
}

.nw-newsletter-meta-row {
    display: flex;
    flex-wrap: wrap;
}

.nw-newsletter-issue-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
    align-items: start;
    padding: var(--nw-space-12) 0;
}

.nw-newsletter-issue-media {
    margin: 0 0 var(--nw-space-8);
    overflow: hidden;
    border: var(--nw-border-width) solid var(--nw-border);
    border-radius: var(--nw-radius-xl);
}

.nw-newsletter-issue-media img {
    display: block;
    width: 100%;
    height: auto;
}

.nw-newsletter-issue-body .entry-content {
    max-width: var(--nw-container-text);
    font-size: var(--nw-fs-intro);
    line-height: var(--nw-lh-loose);
}

.nw-newsletter-issue-body .entry-content h2 {
    margin: var(--nw-space-12) 0 var(--nw-space-4);
    padding-top: var(--nw-space-10);
    border-top: var(--nw-border-width) solid var(--nw-border);
    color: var(--nw-text-heading);
    font-size: calc(var(--nw-fs-h2) * .75);
    line-height: var(--nw-lh-heading);
    scroll-margin-top: var(--nw-scroll-offset);
}

.nw-newsletter-issue-body .entry-content > h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.nw-newsletter-issue-body .entry-content a {
    color: var(--nw-brand-primary);
}

.nw-newsletter-aside {
    display: grid;
    gap: var(--nw-space-6);
}

.nw-newsletter-aside .nw-newsletter-share {
    margin: 0;
}

.nw-newsletter-copy {
    padding: var(--nw-space-1) var(--nw-space-4);
    color: var(--nw-text-heading);
    background: var(--nw-bg-white);
    border: var(--nw-border-width) solid var(--nw-border);
    border-radius: var(--nw-radius-pill);
    font: inherit;
    font-size: var(--nw-fs-small);
    font-weight: var(--nw-fw-semibold);
    cursor: pointer;
    transition: color var(--nw-transition), border-color var(--nw-transition);
}

.nw-newsletter-copy:hover {
    color: var(--nw-brand-primary);
    border-color: var(--nw-brand-primary);
}

.nw-newsletter-author {
    margin: var(--nw-space-12) 0 0;
}

.nw-newsletter-author-row {
    display: flex;
    align-items: flex-start;
    gap: var(--nw-space-4);
}

.nw-newsletter-author-row img {
    flex: none;
    border-radius: var(--nw-radius-pill);
}

.nw-newsletter-author-name {
    margin: 0 0 var(--nw-space-1);
    font-weight: var(--nw-fw-bold);
}

.nw-newsletter-author-name a {
    color: var(--nw-text-heading);
    text-decoration: none;
}

.nw-newsletter-more {
    padding: var(--nw-space-12) 0;
    background: var(--nw-bg-blue-soft);
}

.nw-newsletter-more-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--nw-space-4);
    margin: 0 0 var(--nw-space-6);
}

.nw-newsletter-more-head .nw-h2,
.nw-newsletter-more-head .nw-newsletter-all {
    margin: 0;
}

.nw-newsletter-more .nw-newsletter-item {
    display: flex;
    align-items: center;
}

@media (max-width: 1024px) {
    .nw-newsletter-issue-cols {
        grid-template-columns: 1fr;
    }

    .nw-newsletter-aside {
        order: -1;
    }
}

@media (max-width: 781px) {
    .nw-newsletter-issue-head {
        padding: var(--nw-space-8) 0;
    }

    .nw-newsletter-issue-cols {
        padding: var(--nw-space-8) 0;
    }

    .nw-newsletter-more .nw-newsletter-item {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ===== 18. Issue body (editor content) =====
   Scope: the wrapper Group in the issue body,
   <div class="wp-block-group nw-newsletter nw-newsletter-content">.
   Hub and series pages are not affected (they have no .nw-newsletter-content).
   Buttons: is-style-nw-primary / is-style-nw-secondary (newsletter block styles).
   Raw-value exceptions: Threat Watch red, 44px button height, 15px button text. */

/* --- Text --- */
.nw-newsletter.nw-newsletter-content .nw-p {
    margin: 0 0 var(--nw-space-4, 16px);
    color: var(--nw-text-primary, #334155);
    font-size: var(--nw-fs-intro, 1.125rem);
    line-height: var(--nw-lh-loose, 1.75);
}

.nw-newsletter.nw-newsletter-content .nw-p strong {
    color: var(--nw-text-heading, #0f172a);
}

.nw-newsletter.nw-newsletter-content .nw-newsletter-intro-copy > .nw-p:last-child,
.nw-newsletter.nw-newsletter-content :is(.nw-newsletter-topic, .nw-newsletter-callout, .nw-newsletter-next) > .nw-p:last-of-type {
    margin-bottom: 0;
}

/* --- Section headings (the section draws the divider, not the H2) --- */
.nw-newsletter.nw-newsletter-content :is(.nw-newsletter-topic, .nw-newsletter-callout, .nw-newsletter-next) h2.nw-h2 {
    margin: 0 0 var(--nw-space-4, 16px);
    padding-top: 0;
    border-top: 0;
    color: var(--nw-text-heading, #0f172a);
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
    font-weight: var(--nw-fw-semibold, 600);
    line-height: 1.25;
    scroll-margin-top: var(--nw-scroll-offset, 96px);
}

/* --- Topic sections --- */
.nw-newsletter.nw-newsletter-content .nw-newsletter-topic {
    margin-top: var(--nw-space-12, 48px);
    padding-top: var(--nw-space-10, 40px);
    border-top: 1px solid var(--nw-border, #e2e8f0);
}

/* --- Eyebrow: topic pill + status --- */
.nw-newsletter.nw-newsletter-content p.nw-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--nw-space-2, 8px) var(--nw-space-3, 12px);
    margin: 0 0 var(--nw-space-3, 12px);
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nw-newsletter.nw-newsletter-content .nw-eyebrow__topic {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    color: var(--nw-brand-primary, #1f4ea3);
    background: var(--nw-bg-blue-soft, #eff6ff);
    border: 1px solid var(--nw-border-blue, #c7dcff);
    border-radius: 999px;
}

.nw-newsletter.nw-newsletter-content .nw-eyebrow__topic::before {
    content: "";
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

.nw-newsletter.nw-newsletter-content .nw-eyebrow__status {
    color: var(--nw-text-muted, #64748b);
    font-weight: 600;
    letter-spacing: .04em;
}

/* --- Buttons: layout, colours, hover ---
   0,7,0 beats Twenty Twenty-One's default button rule (0,6,0). */

.nw-newsletter.nw-newsletter-content .wp-block-buttons.nw-btns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nw-space-3, 12px);
    margin: var(--nw-space-6, 24px) 0 0;
}

.nw-newsletter.nw-newsletter-content .wp-block-buttons .wp-block-button:is(.is-style-nw-primary, .is-style-nw-secondary) .wp-block-button__link:not(.has-background) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--nw-space-2, 8px);
    min-height: 44px;
    margin: 0;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--nw-radius-small, 7px);
    box-shadow: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

/* Primary */
.nw-newsletter.nw-newsletter-content .wp-block-buttons .wp-block-button.is-style-nw-primary .wp-block-button__link:not(.has-background) {
    background-color: var(--nw-brand-primary, #1f4ea3);
    border-color: var(--nw-brand-primary, #1f4ea3);
}

.nw-newsletter.nw-newsletter-content .wp-block-buttons .wp-block-button.is-style-nw-primary .wp-block-button__link:not(.has-background):hover {
    background-color: var(--nw-brand-primary-hover, #0449d5);
    border-color: var(--nw-brand-primary-hover, #0449d5);
    box-shadow: var(--nw-shadow-blue, 0 6px 18px rgba(21, 90, 182, .25));
    transform: translateY(-1px);
}

/* Secondary */
.nw-newsletter.nw-newsletter-content .wp-block-buttons .wp-block-button.is-style-nw-secondary .wp-block-button__link:not(.has-background) {
    background-color: var(--nw-bg-white, #fff);
    border-color: var(--nw-border-blue, #c7dcff);
}

.nw-newsletter.nw-newsletter-content .wp-block-buttons .wp-block-button.is-style-nw-secondary .wp-block-button__link:not(.has-background):hover {
    background-color: var(--nw-bg-blue-soft, #eff6ff);
    border-color: var(--nw-brand-primary, #1f4ea3);
    transform: translateY(-1px);
}

/* External links: small arrow */
.nw-newsletter.nw-newsletter-content .wp-block-button .wp-block-button__link[target="_blank"]::after {
    content: "";
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s ease;
}

.nw-newsletter.nw-newsletter-content .wp-block-button .wp-block-button__link[target="_blank"]:hover::after {
    transform: translate(2px, -2px);
}

.nw-newsletter.nw-newsletter-content .wp-block-button__link:focus-visible {
    outline: 2px solid var(--nw-brand-primary, #1f4ea3);
    outline-offset: 2px;
}

/* --- Button text colour ---
   Beats "#NWBlog .entry-content a { color: unset !important }" from the blog CSS
   without editing it. :is(#nw-id-boost, .nw-newsletter-content) matches the class
   but scores like an ID. #nw-id-boost does not exist on the page. */

.nw-newsletter:is(#nw-id-boost, .nw-newsletter-content) .wp-block-button.is-style-nw-primary .wp-block-button__link,
.nw-newsletter:is(#nw-id-boost, .nw-newsletter-content) .wp-block-button.is-style-nw-primary .wp-block-button__link:is(:visited, :hover, :focus, :active) {
    color: #fff !important;
    text-decoration: none !important;
}

.nw-newsletter:is(#nw-id-boost, .nw-newsletter-content) .wp-block-button.is-style-nw-secondary .wp-block-button__link,
.nw-newsletter:is(#nw-id-boost, .nw-newsletter-content) .wp-block-button.is-style-nw-secondary .wp-block-button__link:is(:visited, :hover, :focus, :active) {
    color: var(--nw-brand-primary, #1f4ea3) !important;
    text-decoration: none !important;
}

/* Next-step band: white button, blue text */
.nw-newsletter:is(#nw-id-boost, .nw-newsletter-content) .nw-newsletter-next .wp-block-button.is-style-nw-primary .wp-block-button__link,
.nw-newsletter:is(#nw-id-boost, .nw-newsletter-content) .nw-newsletter-next .wp-block-button.is-style-nw-primary .wp-block-button__link:is(:visited, :hover, :focus, :active) {
    color: var(--nw-brand-primary, #1f4ea3) !important;
}

/* --- Threat Watch --- */
.nw-newsletter.nw-newsletter-content .nw-newsletter-callout--alert {
    margin-top: var(--nw-space-12, 48px);
    padding: var(--nw-space-8, 32px);
    background: #fff4f2;
    border: 1px solid #f1c4bd;
    border-left: 6px solid #b42318;
    border-radius: var(--nw-radius-md, 10px);
}

.nw-newsletter.nw-newsletter-content .nw-newsletter-callout--alert .nw-eyebrow__topic {
    color: #b42318;
    background: #fff;
    border-color: #f1c4bd;
}

.nw-newsletter.nw-newsletter-content .nw-newsletter-callout--alert + .nw-newsletter-topic {
    border-top: 0;
}

/* --- Next step band --- */
.nw-newsletter.nw-newsletter-content .nw-newsletter-next {
    margin-top: var(--nw-space-12, 48px);
    padding: var(--nw-space-10, 40px);
    color: #fff;
    background-color: var(--nw-brand-primary, #1f4ea3);
   /* background-image: var(--nw-gradient-cta, linear-gradient(135deg, #1f4ea3 0%, #1558b5 100%);*/
    scroll-margin-top: 120px;
    background-image: linear-gradient(135deg, #1f4ea3 0%, #0a2a5c 100%);
    border-radius: var(--nw-radius-xl, 16px);
}

.nw-newsletter.nw-newsletter-content .nw-newsletter-next :is(h2.nw-h2, .nw-p, .nw-p strong, .nw-newsletter-signoff, .nw-newsletter-signoff strong) {
    color: #fff;
}

.nw-newsletter.nw-newsletter-content .nw-newsletter-next .nw-p {
    opacity: .9;
}

.nw-newsletter.nw-newsletter-content .nw-newsletter-next .wp-block-buttons .wp-block-button.is-style-nw-primary .wp-block-button__link:not(.has-background) {
    background-color: #fff;
    border-color: #fff;
}

.nw-newsletter.nw-newsletter-content .nw-newsletter-next .wp-block-buttons .wp-block-button.is-style-nw-primary .wp-block-button__link:not(.has-background):hover {
    background-color: var(--nw-bg-blue-soft, #eff6ff);
    border-color: #fff;
    box-shadow: none;
}

.nw-newsletter.nw-newsletter-content .nw-newsletter-next .wp-block-button__link:focus-visible {
    outline-color: #fff;
}

.nw-newsletter.nw-newsletter-content .nw-newsletter-signoff {
    margin: var(--nw-space-8, 32px) 0 0;
    line-height: 1.6;
}

/* =========================================================
   Individual newsletter issue: compact subscribe
   Markup:
   .nw-newsletter.nw-issue-subscribe
       .nw-issue-subscribe-card
   ========================================================= */


/* ---------------------------------------------------------
   Section
   --------------------------------------------------------- */

.single-nw_newsletter .nw-newsletter.nw-issue-subscribe {
    width: 100%;
    margin: 0;
    padding: var(--nw-space-10, 40px) 0;
    box-sizing: border-box;

    border-top: var(--nw-border-width, 1px) solid
        var(--nw-border-light, #e2e8f0);
}


/* ---------------------------------------------------------
   Card
   --------------------------------------------------------- */

.single-nw_newsletter .nw-issue-subscribe-card {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: var(--nw-space-8, 32px);
    box-sizing: border-box;

    background: var(--nw-bg-blue-soft, #eef5fc);
    border: 2px solid var(--nw-border) !important;
    border-radius: var(--nw-radius-xl, 14px);
}


/* ---------------------------------------------------------
   Heading
   --------------------------------------------------------- */

.single-nw_newsletter
.nw-issue-subscribe-card > .nw-h2 {
    width: 100%;
    margin: 0 0 var(--nw-space-2, 8px);
    padding: 0;

    color: var(--nw-text-heading, #0f172a);

    border: 0;

    font-size: var(--nw-fs-h2, 2rem);
    font-weight: var(--nw-fw-semibold, 600);
    line-height: var(--nw-lh-heading, 1.2);
}


/* ---------------------------------------------------------
   Supporting copy
   --------------------------------------------------------- */

.single-nw_newsletter
.nw-issue-subscribe-card > .nw-newsletter-cadence {
    width: 100%;
    max-width: none;

    margin: 0 0 var(--nw-space-6, 24px) !important;

    color: var(--nw-text-secondary, #475569);

    font-size: var(--nw-fs-body, 16px);
    line-height: var(--nw-lh-body, 1.6);
}


/* =========================================================
   Dynamics form
   ========================================================= */


/* Form mount point */

.single-nw_newsletter
.nw-issue-subscribe-card
[data-form-id] {
    display: block;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}


/* Form */

.single-nw_newsletter
.nw-issue-subscribe-card
form.marketingForm {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}


/* Dynamics wrappers */

.single-nw_newsletter
.nw-issue-subscribe-card
form.marketingForm > div,

.single-nw_newsletter
.nw-issue-subscribe-card
form.marketingForm .wrap-section,

.single-nw_newsletter
.nw-issue-subscribe-card
form.marketingForm .emptyContainer,

.single-nw_newsletter
.nw-issue-subscribe-card
form.marketingForm .columns-equal-class,

.single-nw_newsletter
.nw-issue-subscribe-card
form.marketingForm .columnContainer {
    width: 100% !important;
    max-width: none !important;

    margin-right: 0 !important;
    margin-left: 0 !important;

    box-sizing: border-box !important;
}


/* Main Dynamics layout row */

.single-nw_newsletter
.nw-issue-subscribe-card
.wrap-section.emptyContainer.columns-equal-class {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* Main Dynamics column */

.single-nw_newsletter
.nw-issue-subscribe-card
.wrap-section.emptyContainer.columns-equal-class
> .columnContainer {
    display: block !important;

    width: 100% !important;
    max-width: none !important;
    flex: 0 0 100% !important;

    margin: 0 !important;

    padding-right: 0 !important;
    padding-left: 0 !important;

    box-sizing: border-box !important;
}


/* Dynamics editor blocks */

.single-nw_newsletter
.nw-issue-subscribe-card
[data-editorblocktype] {
    width: 100% !important;
    max-width: none !important;

    margin-right: 0 !important;
    margin-left: 0 !important;

    padding-right: 0 !important;
    padding-left: 0 !important;

    box-sizing: border-box !important;
}


/* ---------------------------------------------------------
   Hide Dynamics field label
   Placeholder remains: Work Email *
   --------------------------------------------------------- */

.single-nw_newsletter
.nw-issue-subscribe-card
form.marketingForm label {
    display: none !important;
}


/* ---------------------------------------------------------
   Email input
   --------------------------------------------------------- */

.single-nw_newsletter
.nw-issue-subscribe-card
input[type="email"] {
    display: block;

    width: 100% !important;
    max-width: none !important;
    min-height: var(--nw-input-height, 52px);

    margin: 0 !important;

    padding:
        var(--nw-space-3, 12px)
        var(--nw-space-4, 16px);

    box-sizing: border-box !important;

    color: var(--nw-input-text, #0f172a);
    background: var(--nw-input-bg, #fff);

    border:
        var(--nw-border-width, 1px)
        solid
        var(--nw-input-border, #cbd5e1);

    border-radius: var(--nw-radius-small, 6px);

    font: inherit;
    font-size: var(--nw-fs-body, 16px);
}


.single-nw_newsletter
.nw-issue-subscribe-card
input[type="email"]::placeholder {
    color: var(--nw-input-placeholder, #64748b);
}


.single-nw_newsletter
.nw-issue-subscribe-card
input[type="email"]:focus {
    border-color: var(--nw-input-border-focus, #1f4ea3);

    outline:
        var(--nw-border-width-strong, 2px)
        solid
        var(--nw-focus-ring-soft, #bfdbfe);

    outline-offset: 0;
}


/* =========================================================
   Submit
   ========================================================= */


/* Submit wrapper */

.single-nw_newsletter
.nw-issue-subscribe-card
div[data-editorblocktype="SubmitButton"] {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    padding:
        var(--nw-space-2, 8px)
        0
        0 !important;

    box-sizing: border-box !important;
}


/* Submit button */

.single-nw_newsletter
.nw-issue-subscribe-card
form.marketingForm button[type="submit"],

.single-nw_newsletter
.nw-issue-subscribe-card
form.marketingForm input[type="submit"] {
    display: block;

    width: 100% !important;
    max-width: none !important;
    min-height: var(--nw-btn-height, 52px);

    margin: 0 !important;

    padding:
        var(--nw-btn-pad-y, 12px)
        var(--nw-btn-pad-x, 20px);

    box-sizing: border-box !important;

    color: var(--nw-text-on-dark, #fff) !important;

    /*
     * !important is intentional:
     * Dynamics injects its own button background.
     */
    background: var(--nw-brand-primary, #1f4ea3) !important;
    background-image: none !important;

    border: 0 !important;
    border-radius: var(--nw-btn-radius, 7px);

    font: inherit;
    font-size: var(--nw-btn-fs, 16px);
    font-weight: var(--nw-btn-fw, 600);
    line-height: 1.25;

    text-align: center;

    cursor: pointer;

    transition:
        background-color var(--nw-transition, .2s ease),
        box-shadow var(--nw-transition, .2s ease);
}


/* Submit hover */

.single-nw_newsletter
.nw-issue-subscribe-card
form.marketingForm button[type="submit"]:hover,

.single-nw_newsletter
.nw-issue-subscribe-card
form.marketingForm input[type="submit"]:hover {
    color: var(--nw-text-on-dark, #fff) !important;

    background:
        var(--nw-brand-primary-hover, #0449d5) !important;

    background-image: none !important;
}


/* =========================================================
   Privacy
   ========================================================= */

.single-nw_newsletter
.nw-issue-subscribe-card
.nw-newsletter-privacy {
    width: 100%;

    margin:
        var(--nw-space-6, 24px)
        0
        0;

    color: var(--nw-text-muted, #64748b);

    font-size: var(--nw-fs-caption, 12px);
    line-height: var(--nw-lh-compact, 1.4);
}


.single-nw_newsletter
.nw-issue-subscribe-card
.nw-newsletter-privacy a {
    color: inherit;

    text-decoration: underline;
    text-underline-offset: 2px;
}


.single-nw_newsletter
.nw-issue-subscribe-card
.nw-newsletter-privacy a:hover {
    color: var(--nw-brand-primary, #1f4ea3);
}


/* =========================================================
   LinkedIn
   ========================================================= */

.single-nw_newsletter
.nw-issue-subscribe-card
.nw-newsletter-social {
    width: 100%;

    margin:
        var(--nw-space-5, 20px)
        0
        0;

    padding:
        var(--nw-space-5, 20px)
        0
        0;

    box-sizing: border-box;

    border-top:
        var(--nw-border-width, 1px)
        solid
        var(--nw-border, #d7e1ec);
}


.single-nw_newsletter
.nw-issue-subscribe-card
.nw-newsletter-social
.wp-social-link {
    margin: 0;
}


.single-nw_newsletter
.nw-issue-subscribe-card
.nw-newsletter-social
.wp-social-link:hover {
    transform: none;
}


.single-nw_newsletter
.nw-issue-subscribe-card
.nw-newsletter-social
.wp-block-social-link-anchor {
    display: inline-flex;

    align-items: center;

    gap: var(--nw-space-2, 8px);

    padding: 0;

    color: var(--nw-brand-primary, #1f4ea3);

    text-decoration: none;
}


.single-nw_newsletter
.nw-issue-subscribe-card
.nw-newsletter-social
svg {
    width: var(--nw-icon-sm, 18px);
    height: var(--nw-icon-sm, 18px);

    color: #0a66c2;

    fill: currentColor;
}


.single-nw_newsletter
.nw-issue-subscribe-card
.nw-newsletter-social
.wp-social-link-label {
    margin: 0;

    font-size: var(--nw-fs-small, 14px);
    font-weight: var(--nw-fw-semibold, 600);
}


.single-nw_newsletter
.nw-issue-subscribe-card
.nw-newsletter-social
.wp-block-social-link-anchor:hover
.wp-social-link-label {
    text-decoration: underline;
}


/* =========================================================
   Dynamics success state
   ========================================================= */

.single-nw_newsletter
.nw-issue-subscribe-card
.onFormSubmittedFeedback {
    width: 100% !important;
    max-width: none !important;

    height: auto !important;
    min-height: 165px;

    margin: 0 !important;

    box-sizing: border-box !important;
}


.single-nw_newsletter
.nw-issue-subscribe-card
.onFormSubmittedFeedbackInternalContainer {
    position: static !important;

    top: auto !important;

    width: 100% !important;
    max-width: none !important;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: var(--nw-space-3, 12px);

    margin: 0 !important;

    padding:
        var(--nw-space-5, 20px)
        0 !important;

    box-sizing: border-box !important;

    text-align: center;
}


.single-nw_newsletter
.nw-issue-subscribe-card
.onFormSubmittedFeedbackIcon {
    display: block;

    width: 72px;
    height: 72px;

    margin: 0;
}


.single-nw_newsletter
.nw-issue-subscribe-card
.onFormSubmittedFeedbackMessage {
    margin: 0;

    color: var(--nw-text-heading, #0f172a);

    font-size: var(--nw-fs-body, 16px);
    font-weight: var(--nw-fw-semibold, 600);
    line-height: var(--nw-lh-body, 1.5);
}


/* Hide privacy after successful submission */

.single-nw_newsletter
.nw-issue-subscribe-card:has(
    [data-submissionresponse="success"]
)
.nw-newsletter-privacy {
    display: none;
}


/* =========================================================
   Blog-template conflict fixes
   TEMPORARY: remove with dedicated newsletter template
   ========================================================= */


/* Blog template adds margin-bottom: 20px to paragraphs */

#NWBlog .entry-content
.nw-issue-subscribe-card
p.nw-newsletter-privacy {
    margin:
        var(--nw-space-6, 24px)
        0
        0 !important;
}


/* Blog template adds spacing/indentation to ul and ol */

#NWBlog .entry-content
.nw-issue-subscribe-card
ul.nw-newsletter-social {
    width: 100%;

    margin:
        var(--nw-space-5, 20px)
        0
        0 !important;

    padding:
        var(--nw-space-5, 20px)
        0
        0 !important;

    box-sizing: border-box;

    border-top:
        var(--nw-border-width, 1px)
        solid
        var(--nw-border, #d7e1ec);

    list-style: none !important;
}


#NWBlog .entry-content
.nw-issue-subscribe-card
.nw-newsletter-social li {
    margin: 0 !important;
    padding: 0 !important;
}


/* Ensure blog link CSS does not alter component text */

#NWBlog .entry-content
.nw-issue-subscribe-card
.nw-newsletter-privacy a {
    color: inherit !important;
}


/* Keep Dynamics label hidden despite blog/template CSS */

#NWBlog .entry-content
.nw-issue-subscribe-card
form.marketingForm label {
    display: none !important;
}


/* Remove any spacing associated with hidden field label */

#NWBlog .entry-content
.nw-issue-subscribe-card
div[data-editorblocktype="Field-Email"],

#NWBlog .entry-content
.nw-issue-subscribe-card
div[data-editorblocktype="Text"] {
    margin-top: 0 !important;
}


/* Controls remain flush with form */

#NWBlog .entry-content
.nw-issue-subscribe-card
input[type="email"],

#NWBlog .entry-content
.nw-issue-subscribe-card
button[type="submit"],

#NWBlog .entry-content
.nw-issue-subscribe-card
input[type="submit"] {
    margin-right: 0 !important;
    margin-left: 0 !important;
}


/* Dynamics button versus blog-template button styles */

#NWBlog .entry-content
.nw-issue-subscribe-card
form.marketingForm button[type="submit"],

#NWBlog .entry-content
.nw-issue-subscribe-card
form.marketingForm input[type="submit"] {
    color: var(--nw-text-on-dark, #fff) !important;

    background:
        var(--nw-brand-primary, #1f4ea3) !important;

    background-image: none !important;
}


#NWBlog .entry-content
.nw-issue-subscribe-card
form.marketingForm button[type="submit"]:hover,

#NWBlog .entry-content
.nw-issue-subscribe-card
form.marketingForm input[type="submit"]:hover {
    color: var(--nw-text-on-dark, #fff) !important;

    background:
        var(--nw-brand-primary-hover, #0449d5) !important;

    background-image: none !important;
}


  .single-nw_newsletter .author-bio{background: var(--nw-gradient-blue)!important;}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 781px) {

    .single-nw_newsletter
    .nw-newsletter.nw-issue-subscribe {
        padding:
            var(--nw-space-8, 32px)
            0;
    }


    .single-nw_newsletter
    .nw-issue-subscribe-card {
        padding:
            var(--nw-space-6, 24px)
            var(--nw-space-5, 20px);

        border-radius:
            var(--nw-radius-md, 10px);
    }


    .single-nw_newsletter
    .nw-issue-subscribe-card
    .onFormSubmittedFeedback {
        min-height: 150px;
    }
    .single-nw_newsletter .nw-issue-subscribe .wp-block-social-link a { line-height:normal; }
}

/* --- Responsive --- */
@media (min-width: 1024px) {
    .single-nw_newsletter #NWBlog {
        margin-top: 32px;
        padding-top: 40px;
        border-top: 2px solid var(--nw-border, #e2e8f0);
    }
} 
@media (max-width: 781px) {
    .single-nw_newsletter #InnerBanner {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .single-nw_newsletter #InnerBanner.special {
        background: var(--nw-bg-blue) !important;
        background-image: none;
    }
    .single-nw_newsletter #InnerBanner h1{
        font-size: 34px!important;
        line-height: normal;
    }
    .single-nw_newsletter #NWBlog .entry-content {
        margin-top: 40px;
    }
    .single-nw_newsletter main .holder {
        width: 85%!important;
        margin: auto;
    }
    .nw-newsletter.nw-newsletter-content .nw-newsletter-topic {
        margin-top: var(--nw-space-10, 40px);
        padding-top: var(--nw-space-8, 32px);
    }

    .nw-newsletter.nw-newsletter-content :is(.nw-newsletter-callout--alert, .nw-newsletter-next) {
        padding: var(--nw-space-6, 24px) var(--nw-space-5, 20px);
    }
    .nw-newsletter-subscribe form.marketingForm { padding: 0; 
    }
    .nw-newsletter-rows .nw-newsletter-titlebox {
        gap: var(--nw-space-3);
        border-top: 1px solid #f3f3f3;
        border-bottom: 1px solid #f3f3f3;
        padding: 12px 0;
    }
      .single-nw_newsletter .author-bio{flex-direction: column !important;}
}

@media (max-width: 640px) {
    .nw-newsletter.nw-newsletter-content .wp-block-buttons.nw-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .nw-newsletter.nw-newsletter-content .wp-block-buttons .wp-block-button,
    .nw-newsletter.nw-newsletter-content .wp-block-buttons .wp-block-button .wp-block-button__link:not(.has-background) {
        width: 100%;
    }
}


@media (prefers-reduced-motion: reduce) {
    .nw-newsletter.nw-newsletter-content .wp-block-button__link,
    .nw-newsletter.nw-newsletter-content .wp-block-button__link::after {
        transition: none;
        transform: none !important;
    }
}


