/* ============================================================
   News Subscription – Public Styles
   ============================================================ */

/* ── CSS custom properties ────────────────────────────────── */
:root {
    --nsa-gold:        #F5A623;
    --nsa-gold-dark:   #D4891A;
    --nsa-gold-light:  #FEF3C7;
    --nsa-text:        #111827;
    --nsa-muted:       #6B7280;
    --nsa-border:      #E5E7EB;
    --nsa-white:       #FFFFFF;
    --nsa-radius:      10px;
    --nsa-shadow:      0 4px 24px rgba(0,0,0,.10);
    --nsa-danger:      #DC2626;
    --nsa-success:     #16A34A;
}

/* ============================================================
   CONTENT GATE  (Jeune Afrique style)
   ============================================================ */

.nsa-gate {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--nsa-white);
    border: 1px solid var(--nsa-border);
    border-radius: var(--nsa-radius);
    padding: 36px 40px;
    margin: 32px 0;
    box-shadow: var(--nsa-shadow);
    overflow: hidden;
}

.nsa-gate__body {
    flex: 1;
    min-width: 0;
}

.nsa-gate__label {
    display: inline-block;
    background: var(--nsa-gold-light);
    color: var(--nsa-gold-dark);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.nsa-gate__headline {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--nsa-text);
    margin: 0 0 10px;
}

.nsa-gate__desc {
    color: var(--nsa-muted);
    font-size: .95rem;
    line-height: 1.6;
    margin: 0 0 18px;
}

/* Perks list */
.nsa-gate__perks {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nsa-gate__perks li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    color: var(--nsa-text);
}

.nsa-gate__perk-icon {
    color: var(--nsa-gold-dark);
    flex-shrink: 0;
}

/* CTA */
.nsa-gate__actions {
    margin-bottom: 18px;
}

/* Login hint */
.nsa-gate__login-hint {
    margin: 0;
    font-size: .88rem;
    color: var(--nsa-muted);
}

.nsa-gate__login-link {
    color: var(--nsa-text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nsa-gate__login-link:hover {
    color: var(--nsa-gold-dark);
}

/* Illustration */
.nsa-gate__illustration {
    flex-shrink: 0;
    width: 220px;
}

.nsa-gate__illustration svg {
    width: 100%;
    height: auto;
}

/* Inline subscribe (when no subscribe page set) */
.nsa-gate__inline-subscribe {
    margin-top: 0;
}

/* Responsive */
@media ( max-width: 640px ) {
    .nsa-gate {
        flex-direction: column;
        padding: 28px 22px;
    }

    .nsa-gate__illustration {
        width: 160px;
        order: -1;
    }

    .nsa-gate__headline {
        font-size: 1.25rem;
    }
}

/* ============================================================
   SHARED BUTTON SYSTEM
   ============================================================ */

.nsa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 50px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition: background .18s, transform .12s, box-shadow .18s;
    white-space: nowrap;
}

/* Gold CTA (matches Jeune Afrique yellow button) */
.nsa-btn--gold {
    background: #c80910;
    color: #fff;
    border-color: #c80910;
    text-decoration: none;
}

.nsa-btn--gold:hover {
    background: #270405;
    border-color: #270405;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245,166,35,.35);
}

/* Primary blue (subscribe form submit) */
.nsa-btn--primary {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.nsa-btn--primary:hover {
    background: #005f8d;
    border-color: #005f8d;
    transform: translateY(-1px);
}

/* Outline */
.nsa-btn--outline {
    background: transparent;
    color: var(--nsa-text);
    border-color: var(--nsa-border);
}

.nsa-btn--outline:hover {
    border-color: #9CA3AF;
}

/* Dark / black (Jeune Afrique login) */
.nsa-btn--dark {
    background: #111;
    color: #fff;
    border-color: #111;
    border-radius: 8px;
}

.nsa-btn--dark:hover {
    background: #333;
    border-color: #333;
}

.nsa-btn--full {
    width: 100%;
}

.nsa-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* Flash button */
.nsa-btn--flash {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
    letter-spacing: .03em;
}

.nsa-btn--flash:hover {
    background: #e05500;
    border-color: #e05500;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255,102,0,.35);
}

/* Flash wrapper (separator + button) */
.nsa-flash-wrap {
    margin-top: 16px;
    text-align: center;
}

.nsa-flash-wrap__or {
    font-size: .85rem;
    color: var(--nsa-muted, #6B7280);
    margin: 0 0 12px;
    position: relative;
}

.nsa-flash-wrap__or::before,
.nsa-flash-wrap__or::after {
    content: '';
    display: inline-block;
    width: 40%;
    height: 1px;
    background: var(--nsa-border, #E5E7EB);
    vertical-align: middle;
    margin: 0 8px;
}

/* ============================================================
   AUTH PAGES  (login, logged-in, reset)
   ============================================================ */

.nsa-auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 16px;
}

.nsa-auth-card {
    background: var(--nsa-white);
    border: 1px solid var(--nsa-border);
    border-radius: var(--nsa-radius);
    padding: 40px 44px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--nsa-shadow);
}

/* Brand */
.nsa-auth-card__brand {
    margin-bottom: 28px;
    text-align: center;
}

.nsa-auth-card__brand img {
    max-height: 46px;
    width: auto;
}

.nsa-auth-card__site-name {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--nsa-text);
}

/* Title / subtitle */
.nsa-auth-card__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--nsa-text);
    margin: 0 0 6px;
    text-align: center;
}

.nsa-auth-card__title--left { text-align: left; font-size: 1.5rem; }

.nsa-auth-card__subtitle {
    font-size: .9rem;
    color: var(--nsa-muted);
    margin: 0 0 26px;
    text-align: center;
}

.nsa-auth-card__subtitle--left { text-align: left; }

/* Reset password link (bold, below password) */
.nsa-auth-card__reset-link {
    display: inline-block;
    font-size: .88rem;
    font-weight: 700;
    color: var(--nsa-text);
    text-decoration: none;
    margin-top: -4px;
}

.nsa-auth-card__reset-link:hover {
    text-decoration: underline;
}

/* Success icon */
.nsa-auth-card__icon {
    font-size: 2.8rem;
    text-align: center;
    display: block;
    margin-bottom: 12px;
}

.nsa-auth-card__icon--success { color: var(--nsa-success); }

/* Footer note */
.nsa-auth-card__footer {
    text-align: center;
    font-size: .85rem;
    color: var(--nsa-muted);
    margin: 20px 0 0;
}

.nsa-auth-card__footer a {
    color: var(--nsa-text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Logged-in card */
.nsa-auth-card--loggedin {
    text-align: center;
}

.nsa-loggedin-avatar {
    margin: 0 auto 16px;
}

.nsa-loggedin-avatar img {
    border-radius: 50%;
    display: block;
    margin: auto;
}

/* ── Form fields ──────────────────────────────────────────── */
.nsa-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nsa-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nsa-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nsa-field__label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--nsa-text);
}

.nsa-field__forgot {
    font-size: .8rem;
    color: var(--nsa-muted);
    text-decoration: none;
}

.nsa-field__forgot:hover {
    color: var(--nsa-gold-dark);
    text-decoration: underline;
}

.nsa-field__input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--nsa-border);
    border-radius: 8px;
    font-size: .95rem;
    color: var(--nsa-text);
    background: var(--nsa-white);
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

.nsa-field__input:focus {
    outline: none;
    border-color: var(--nsa-gold);
    box-shadow: 0 0 0 3px rgba(245,166,35,.18);
}

/* Password wrapper */
.nsa-field__password-wrap {
    position: relative;
}

.nsa-field__password-wrap .nsa-field__input {
    padding-right: 44px;
}

.nsa-field__toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nsa-muted);
    padding: 0;
    line-height: 1;
    transition: color .15s;
}

.nsa-field__toggle-pass:hover {
    color: var(--nsa-text);
}

/* Checkbox */
.nsa-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--nsa-muted);
    cursor: pointer;
}

/* Password strength */
.nsa-password-strength {
    font-size: .75rem;
    font-weight: 600;
    height: 16px;
    margin-top: 2px;
}

/* ── Floating-label fields (Jeune Afrique style) ──────────── */
.nsa-float-field {
    position: relative;
}

.nsa-float-field__input {
    width: 100%;
    padding: 18px 14px 8px;
    border: 1.5px solid var(--nsa-border);
    border-radius: 8px;
    font-size: .95rem;
    color: var(--nsa-text);
    background: var(--nsa-white);
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.nsa-float-field__input:focus {
    border-color: var(--nsa-gold);
    box-shadow: 0 0 0 2px rgba(245,166,35,.22);
}

/* Floating label */
.nsa-float-field__label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: .95rem;
    color: var(--nsa-muted);
    pointer-events: none;
    transition: top .18s, font-size .18s, color .18s;
    background: var(--nsa-white);
    padding: 0 4px;
}

/* Float up when focused or filled (placeholder-shown trick) */
.nsa-float-field__input:focus + .nsa-float-field__label,
.nsa-float-field__input:not(:placeholder-shown) + .nsa-float-field__label {
    top: 0;
    font-size: .75rem;
    font-weight: 600;
    color: var(--nsa-gold-dark);
}

.nsa-float-field__req {
    color: var(--nsa-danger);
    margin-left: 2px;
}

/* Toggle eye inside floating field */
.nsa-float-field__toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nsa-muted);
    padding: 0;
    line-height: 1;
    transition: color .15s;
}

.nsa-float-field__toggle:hover {
    color: var(--nsa-text);
}

/* Make room for the eye button */
.nsa-float-field__input[type="password"],
.nsa-float-field__input[type="text"][data-pw] {
    padding-right: 44px;
}

/* ── Alerts ───────────────────────────────────────────────── */
.nsa-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .88rem;
    line-height: 1.5;
    margin-bottom: 4px;
}

.nsa-alert--error {
    background: #FEF2F2;
    color: var(--nsa-danger);
    border: 1px solid #FECACA;
}

.nsa-alert--success {
    background: #F0FDF4;
    color: var(--nsa-success);
    border: 1px solid #BBF7D0;
}

/* Mobile */
@media ( max-width: 480px ) {
    .nsa-auth-card {
        padding: 28px 20px;
    }
}

/* ============================================================
   SUCCESS BANNER  (post-payment return)
   ============================================================ */

.news-sub-success-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX( -50% );
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #166534;
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,.22);
    z-index: 999999;
    max-width: 480px;
    width: calc(100% - 48px);
    animation: nsa-slide-up .35s ease;
}

@keyframes nsa-slide-up {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.news-sub-success-banner__icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.news-sub-success-banner__body { flex: 1; }

.news-sub-success-banner__body strong {
    display: block;
    font-size: .95rem;
    margin-bottom: 3px;
}

.news-sub-success-banner__body p {
    margin: 0;
    font-size: .85rem;
    opacity: .9;
}

.news-sub-success-banner__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
    opacity: .75;
    flex-shrink: 0;
    line-height: 1;
}

.news-sub-success-banner__close:hover { opacity: 1; }

/* ============================================================
   CONTENT TEASER  (first 40 words before gate)
   ============================================================ */

.news-sub-teaser {
    position: relative;
    overflow: hidden;
    max-height: 110px;
}

.news-sub-teaser::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: linear-gradient( to bottom, rgba(255,255,255,0), rgba(255,255,255,1) );
}

/* ============================================================
   SUBSCRIBE FORM (shortcode)
   ============================================================ */

.news-sub-form-wrap {
    max-width: 520px;
    margin: 0 auto 40px;
    background: var(--nsa-white);
    border: 1px solid var(--nsa-border);
    border-radius: var(--nsa-radius);
    padding: 30px 36px;
    box-shadow: var(--nsa-shadow);
}

.news-sub-form-title {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.35rem;
    font-weight: 800;
}

.news-sub-row { margin-bottom: 18px; }

.news-sub-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: .88rem;
    color: var(--nsa-text);
}

.news-sub-row input[type="text"],
.news-sub-row input[type="email"],
.news-sub-row input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--nsa-border);
    border-radius: 8px;
    font-size: .95rem;
    color: var(--nsa-text);
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}

.news-sub-row input:focus {
    outline: none;
    border-color: var(--nsa-gold);
    box-shadow: 0 0 0 3px rgba(245,166,35,.18);
}

/* Plan options */
.news-sub-plans {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.news-sub-plan-option {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--nsa-border);
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.news-sub-plan-option:has(input:checked) {
    border-color: var(--nsa-gold);
    background: var(--nsa-gold-light);
}

.news-sub-plan-option input { display: none; }
.news-sub-plan-label  { font-weight: 600; }
.news-sub-plan-price  { color: var(--nsa-gold-dark); font-weight: 700; margin-left: 4px; }

/* Gateway options */
.news-sub-gateways {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.news-sub-gateway-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 2px solid var(--nsa-border);
    border-radius: 8px;
    padding: 12px 18px;
    cursor: pointer;
    min-width: 90px;
    text-align: center;
    transition: border-color .15s, background .15s;
}

.news-sub-gateway-option:has(input:checked) {
    border-color: var(--nsa-gold);
    background: var(--nsa-gold-light);
}

.news-sub-gateway-option input { display: none; }

.news-sub-gateway-option img {
    height: 32px;
    object-fit: contain;
}

.news-sub-gateway-option span {
    font-size: .78rem;
    font-weight: 600;
}

/* Stripe card element */
#news-sub-stripe-card {
    border: 1.5px solid var(--nsa-border);
    border-radius: 8px;
    padding: 10px 14px;
}

.news-sub-stripe-errors {
    color: var(--nsa-danger);
    font-size: .85rem;
    margin-top: 6px;
}

/* Notices */
.news-sub-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: .9rem;
}

.news-sub-notice--success { background: #F0FDF4; color: var(--nsa-success); border: 1px solid #BBF7D0; }
.news-sub-notice--warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.news-sub-notice--error   { background: #FEF2F2; color: var(--nsa-danger); border: 1px solid #FECACA; }

.nsa-field__hint {
    font-size: .8rem;
    color: var(--nsa-muted);
    margin-top: 4px;
}

/* ============================================================
   PRICING PAGE  (plan cards + checkout)
   ============================================================ */

.nsa-pricing {
    max-width: 820px;
    margin: 0 auto 48px;
}

.nsa-pricing__header {
    text-align: center;
    margin-bottom: 36px;
}

.nsa-pricing__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--nsa-text);
    margin: 10px 0 8px;
}

.nsa-pricing__subtitle {
    font-size: 1rem;
    color: var(--nsa-muted);
    margin: 0;
}

/* Plan card grid */
.nsa-pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

/* Individual plan card */
.nsa-plan-card {
    position: relative;
    background: var(--nsa-white);
    border: 2px solid var(--nsa-border);
    border-radius: var(--nsa-radius);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, box-shadow .2s;
    cursor: pointer;
}

.nsa-plan-card:hover {
    border-color: #D1D5DB;
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

.nsa-plan-card--popular {
    border-color: var(--nsa-gold);
    box-shadow: 0 8px 28px rgba(245,166,35,.15);
}

.nsa-plan-card--selected {
    border-color: var(--nsa-gold);
    background: var(--nsa-gold-light);
    box-shadow: 0 8px 28px rgba(245,166,35,.18);
}

/* Badge */
.nsa-plan-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nsa-gold);
    color: #1a1a1a;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Name */
.nsa-plan-card__name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--nsa-text);
    margin: 0 0 16px;
}

/* Price */
.nsa-plan-card__price {
    margin-bottom: 20px;
}

.nsa-plan-card__amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--nsa-text);
    line-height: 1;
}

.nsa-plan-card__period {
    font-size: .9rem;
    color: var(--nsa-muted);
    font-weight: 500;
}

/* Perks */
.nsa-plan-card__perks {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nsa-plan-card__perks li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    color: var(--nsa-text);
}

/* CTA inside card */
.nsa-plan-card__cta {
    margin-top: auto;
}

/* ── Checkout section ─────────────────────────────────────── */
.nsa-checkout {
    max-width: 520px;
    margin: 0 auto;
    background: var(--nsa-white);
    border: 1px solid var(--nsa-border);
    border-radius: var(--nsa-radius);
    padding: 36px 40px;
    box-shadow: var(--nsa-shadow);
}

.nsa-checkout__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--nsa-text);
    margin: 0 0 24px;
    text-align: center;
}

.nsa-checkout__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Gateway options in checkout */
.nsa-checkout__gateways {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.nsa-checkout__gateway-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--nsa-border);
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    text-align: center;
}

.nsa-checkout__gateway-option:has(input:checked) {
    border-color: var(--nsa-gold);
    background: var(--nsa-gold-light);
}

.nsa-checkout__gateway-option input { display: none; }

.nsa-checkout__gateway-label {
    font-size: .85rem;
    font-weight: 600;
}

/* Warning alert */
.nsa-alert--warning {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .88rem;
    margin-bottom: 4px;
}

/* Responsive */
@media ( max-width: 900px ) {
    .nsa-pricing {
        max-width: 100%;
        padding: 0 16px;
    }

    .nsa-pricing__grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
    }

    .nsa-plan-card {
        padding: 26px 22px;
    }

    .nsa-plan-card__amount {
        font-size: 1.8rem;
    }
}

@media ( max-width: 600px ) {
    .nsa-pricing__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nsa-pricing__title {
        font-size: 1.5rem;
    }

    .nsa-pricing__subtitle {
        font-size: .9rem;
    }

    .nsa-plan-card {
        padding: 24px 20px;
    }

    .nsa-plan-card__amount {
        font-size: 2rem;
    }

    .nsa-plan-card__badge {
        font-size: .65rem;
        padding: 3px 10px;
    }

    .nsa-checkout {
        padding: 24px 20px;
    }

    .nsa-checkout__title {
        font-size: 1.1rem;
    }

    .nsa-checkout__gateways {
        grid-template-columns: 1fr;
    }
}

@media ( max-width: 380px ) {
    .nsa-pricing__header {
        margin-bottom: 24px;
    }

    .nsa-pricing__title {
        font-size: 1.25rem;
    }

    .nsa-plan-card {
        padding: 20px 16px;
    }

    .nsa-plan-card__name {
        font-size: 1rem;
    }

    .nsa-plan-card__amount {
        font-size: 1.7rem;
    }

    .nsa-checkout {
        padding: 20px 14px;
    }
}

/* ── Content teaser ───────────────────────────────────────── */
.news-sub-teaser {
    position: relative;
    overflow: hidden;
    max-height: 120px;
}

.news-sub-teaser::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient( to bottom, rgba(255,255,255,0), rgba(255,255,255,1) );
}

/* ── Login gate (restricted partial) ─────────────────────── */
.news-sub-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 28px 0;
}

.news-sub-login-gate__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.news-sub-login-gate__desc {
    margin: 0 0 14px;
    color: #555;
    font-size: .9rem;
}

/* Style WordPress's generated login form to match the plugin */
.news-sub-restricted .login-username,
.news-sub-restricted .login-password,
.news-sub-restricted .login-remember {
    margin-bottom: 12px;
}

.news-sub-restricted .login-username label,
.news-sub-restricted .login-password label {
    display: block;
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: 4px;
}

.news-sub-restricted #news-sub-login-user,
.news-sub-restricted #news-sub-login-pass {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: .95rem;
    box-sizing: border-box;
}

.news-sub-restricted .login-submit .button-primary {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    padding: 9px 20px;
    border-radius: 5px;
    font-size: .95rem;
    cursor: pointer;
}

.news-sub-login-gate__lost {
    margin-top: 10px;
    font-size: .8rem;
}

.news-sub-login-gate__lost a {
    color: #0073aa;
}

/* ── Restricted content box ───────────────────────────────── */
.news-sub-restricted {
    text-align: center;
    padding: 40px 24px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 10px;
    margin: 24px 0;
}

.news-sub-restricted__icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.news-sub-restricted__title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.news-sub-restricted__desc {
    color: #555;
    margin-bottom: 24px;
}
