/* ═══════════════════════════════════════════════════════════
   GLP1SA Article Browser — browser.css v2.5
   CSS variables come from Appearance → Additional CSS
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Inter:wght@300;400;500&display=swap');

/* ── Typography base ─────────────────────────────────────── */

/* Headings use Montserrat SemiBold/Bold */
.glp1sa-browser .serif,
.glp1sa-card-title,
.glp1sa-modal-title,
.glp1sa-news-title,
.glp1sa-popup-inner h2,
.glp1sa-verify-msg h3,
.glp1sa-news-modal-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
}

/* Body copy uses Inter Regular */
.glp1sa-browser,
.glp1sa-card-excerpt,
.glp1sa-modal-body,
.glp1sa-news-excerpt,
.glp1sa-popup-inner p,
.glp1sa-field label,
.glp1sa-field input,
.glp1sa-select-wrap select,
.glp1sa-pill,
.glp1sa-read-btn,
.glp1sa-gate-text,
.glp1sa-gate-sub,
.glp1sa-read-time,
.glp1sa-news-source,
.glp1sa-news-date,
.glp1sa-modal-byline,
.glp1sa-news-modal-byline {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400;
}

/* ── FILTER PILLS ─────────────────────────────────────── */

.glp1sa-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;

    /* Sticky behaviour */
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--cream, #faf8f5);
    padding: 14px 0;
    margin-left: -4px;  /* compensate for pill border bleed */
    margin-right: -4px;

    /* Subtle shadow when it sticks — appears via JS class below */
    transition: box-shadow 0.2s;
}

/* Shadow appears once the bar has left its original position */
.glp1sa-filter.is-stuck {
    box-shadow: 0 4px 16px rgba(13, 31, 45, 0.08);
}

.glp1sa-pill {
    padding: 8px 18px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid var(--border, rgba(0,0,0,0.1));
    background: var(--white, #ffffff);
    color: var(--mid, #4a5568);
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.glp1sa-pill:hover,
.glp1sa-pill.active {
    background: var(--navy, #0d1f2d);
    color: var(--white, #ffffff);
    border-color: var(--navy, #0d1f2d);
}

/* ── ARTICLE GRID ──────────────────────────────────────── */

.glp1sa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.glp1sa-card.hidden { display: none; }

.glp1sa-card {
    background: var(--white, #ffffff);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--border, rgba(0,0,0,0.1));
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.glp1sa-card.unlocked {
    cursor: pointer;
}

.glp1sa-card.unlocked:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.glp1sa-card.unlocked:focus {
    outline: 2px solid var(--teal-mid, #1a6b6b);
    outline-offset: 2px;
}

/* ── CARD IMAGE ────────────────────────────────────────── */

.glp1sa-card-img {
    height: 180px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Category card backgrounds — all set via PHP on wp_head (see plugin) */

.glp1sa-cat-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0;
    border-radius: 0;
    background: none;
    color: rgba(255,255,255,0.85);
    font-family: 'Inter', sans-serif;
}

.glp1sa-lock-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.4);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
}
.glp1sa-lock-icon svg { width: 14px; height: 14px; }

/* ── CARD BODY ─────────────────────────────────────────── */

.glp1sa-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.glp1sa-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--ink, #1a1a1a);
    font-weight: 400;
}

.glp1sa-card-excerpt {
    font-size: 13px;
    color: var(--mid, #4a5568);
    line-height: 1.65;
    margin-bottom: 16px;
    flex: 1;
}

.glp1sa-card-excerpt.blurred {
    /* No fade — excerpt shows in full on locked cards */
}

.glp1sa-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
}

.glp1sa-read-time {
    font-size: 11px;
    color: var(--muted, #8a97a8);
    font-family: 'Inter', sans-serif;
}

.glp1sa-read-btn {
    font-size: 12px;
    font-weight: 500;
    color: var(--teal-mid, #1a6b6b);
    transition: color 0.2s;
    font-family: 'Inter', sans-serif;
}

.glp1sa-card.unlocked:hover .glp1sa-read-btn {
    color: var(--amber, #c97d20);
}

/* ── GATE (locked cards) ───────────────────────────────── */

.glp1sa-gate-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.glp1sa-gate-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.glp1sa-gate-text strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink, #1a1a1a);
    display: block;
}

.glp1sa-gate-sub {
    font-size: 11px;
    color: var(--muted, #8a97a8);
    display: block;
}

.glp1sa-unlock-btn {
    font-size: 11px;
    font-weight: 500;
    color: var(--amber, #c97d20);
    background: none;
    border: 1px solid var(--amber, #c97d20);
    cursor: pointer;
    white-space: nowrap;
    padding: 4px 10px;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s, color 0.2s;
    border-radius: 0;
    align-self: flex-end;
    margin-left: auto;
    flex-shrink: 0;
}
.glp1sa-unlock-btn:hover {
    background: #c97d20 !important;
    color: #ffffff !important;
    border-color: #c97d20;
}

.glp1sa-gate-overlay {
    display: none; /* Overlay removed — excerpt shows fully on locked cards */
}

.glp1sa-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    color: var(--mid, #4a5568);
    font-size: 15px;
}


/* ═══════════════════════════════════════════════════════════
   SHARED POPUP BACKDROP
═══════════════════════════════════════════════════════════ */

.glp1sa-popup-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13,31,45,0.78);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}
.glp1sa-popup-bg.open { display: flex; }

/* Prevent flash of popup before JS initialises.
   The .glp1sa-js-ready class is added to #glp1sa-browser
   by JS immediately on DOMContentLoaded. Until then,
   popups are invisible even if .open is somehow set. */
#glp1sa-browser:not(.glp1sa-js-ready) .glp1sa-popup-bg {
    visibility: hidden !important;
    opacity: 0 !important;
}

.glp1sa-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--mid, #4a5568);
    line-height: 1;
    padding: 4px 8px;
    border-radius: 0;
    transition: background 0.15s;
    z-index: 1;
}
.glp1sa-popup-close:hover { background: rgba(0,0,0,0.07); }


/* ═══════════════════════════════════════════════════════════
   ARTICLE POPUP — wide reading modal
═══════════════════════════════════════════════════════════ */

.glp1sa-article-modal {
    background: var(--white, #ffffff);
    border-radius: 0;
    width: 100%;
    max-width: 740px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ── Loading spinner ── */
.glp1sa-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    min-height: 200px;
}

.glp1sa-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--teal-light, #e0f2f2);
    border-top-color: var(--teal-mid, #1a6b6b);
    border-radius: 0;
    animation: glp1sa-spin 0.7s linear infinite;
}

@keyframes glp1sa-spin {
    to { transform: rotate(360deg); }
}

/* ── Modal header (category + title + byline) ── */
.glp1sa-modal-header {
    padding: 36px 40px 0;
}

.glp1sa-modal-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 0;
    margin-bottom: 14px;
    font-family: 'Inter', sans-serif;
    background: var(--teal-light, #e0f2f2);
    color: var(--teal-mid, #1a6b6b);
}

/* Per-category badge colours matching card gradients */
.glp1sa-modal-cat.science       { background: #e0f2f2; color: #0e4d4d; }
.glp1sa-modal-cat.access        { background: #fde8e8; color: #8B1a1a; }
.glp1sa-modal-cat.nutrition     { background: #e8f5e8; color: #1a4a1a; }
.glp1sa-modal-cat.mental        { background: #ede8f8; color: #2d1a5e; }
.glp1sa-modal-cat.stopping      { background: #e0eaf5; color: #0d1f2d; }
.glp1sa-modal-cat.exercise      { background: #fdf3e3; color: #4a2000; }
.glp1sa-modal-cat.side-effects  { background: #fde8e8; color: #7a2020; }

.glp1sa-modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(22px, 4vw, 30px);
    line-height: 1.2;
    color: var(--ink, #1a1a1a);
    margin-bottom: 10px;
    font-weight: 400;
}

.glp1sa-modal-byline {
    font-size: 13px;
    color: var(--muted, #8a97a8);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border, rgba(0,0,0,0.1));
    font-family: 'Inter', sans-serif;
}

/* ── Modal body (article content) ── */
.glp1sa-modal-body {
    padding: 24px 40px 44px;
    font-size: 15px;
    color: var(--ink, #1a1a1a);
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
}

.glp1sa-modal-body p    { margin-bottom: 18px; }
.glp1sa-modal-body h2,
.glp1sa-modal-body h3   { font-family: 'Montserrat', sans-serif; margin: 28px 0 12px; color: var(--navy, #0d1f2d); }
.glp1sa-modal-body strong { font-weight: 500; color: var(--navy, #0d1f2d); }
.glp1sa-modal-body a    { color: var(--teal-mid, #1a6b6b); }
.glp1sa-modal-body a:hover { color: var(--amber, #c97d20); }

.glp1sa-modal-body ol,
.glp1sa-modal-body ul   { padding-left: 20px; margin-bottom: 18px; }
.glp1sa-modal-body li   { margin-bottom: 6px; font-size: 13px; color: var(--mid, #4a5568); line-height: 1.6; }

/* Sources section at the bottom */
.glp1sa-modal-body h3:last-of-type {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted, #8a97a8);
    border-top: 1px solid var(--border, rgba(0,0,0,0.1));
    padding-top: 20px;
    margin-top: 32px;
}


/* ═══════════════════════════════════════════════════════════
   REGISTRATION POPUP — narrow centred card
═══════════════════════════════════════════════════════════ */

.glp1sa-popup-inner {
    background: var(--white, #ffffff);
    border-radius: 0;
    max-width: 480px;
    width: 100%;
    padding: 44px 40px;
    text-align: center;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.glp1sa-popup-icon {
    width: 56px;
    height: 56px;
    background: var(--teal-light, #e0f2f2);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--teal-mid, #1a6b6b);
}
.glp1sa-popup-icon svg { width: 24px; height: 24px; }

.glp1sa-popup-inner h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--ink, #1a1a1a);
    font-weight: 400;
}
.glp1sa-popup-inner > p {
    font-size: 14px;
    color: var(--mid, #4a5568);
    line-height: 1.65;
    margin-bottom: 28px;
    font-family: 'Inter', sans-serif;
}

.glp1sa-btn-submit {
    display: block;
    width: 100%;
    background: #c97d20 !important;
    color: #ffffff !important;
    padding: 13px;
    border-radius: 0 !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    text-align: center;
    border: none !important;
    box-shadow: none !important;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
}
.glp1sa-btn-submit:hover {
    background: #b06b15 !important;
    color: #ffffff !important;
}

.glp1sa-popup-switch {
    font-size: 13px;
    color: var(--mid, #4a5568);
    margin-top: 16px;
    font-family: 'Inter', sans-serif;
}
.glp1sa-popup-switch a { color: var(--amber, #c97d20); font-weight: 500; text-decoration: none; }

/* Toggle between register and login panels — plain text only */
.glp1sa-switch-btn {
    all: unset !important;
    color: #c97d20 !important;
    font-weight: 500 !important;
    font-size: inherit !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    text-decoration-color: transparent !important;
    transition: text-decoration-color 0.2s !important;
    display: inline !important;
    line-height: inherit !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
.glp1sa-switch-btn:hover {
    text-decoration-color: #c97d20 !important;
    background: none !important;
    color: #c97d20 !important;
}

/* Warning notice when UM form not yet configured */
.glp1sa-form-notice {
    background: #fff8ec;
    border: 1px solid #f0d080;
    border-radius: 0;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--mid, #4a5568);
    text-align: left;
    margin-bottom: 20px;
}

/* ── UM form inside registration popup ── */
.glp1sa-popup-inner .um-form { text-align: left; }

.glp1sa-popup-inner .um-field-label label {
    font-size: 12px; font-weight: 500;
    color: var(--ink, #1a1a1a);
    font-family: 'Inter', sans-serif;
}

.glp1sa-popup-inner .um-field input[type="text"],
.glp1sa-popup-inner .um-field input[type="email"],
.glp1sa-popup-inner .um-field input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border, rgba(0,0,0,0.1));
    border-radius: 0;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--ink, #1a1a1a);
    transition: border-color 0.2s;
}
.glp1sa-popup-inner .um-field input:focus {
    outline: none;
    border-color: var(--teal-mid, #1a6b6b);
}

.glp1sa-popup-inner .um-button,
.glp1sa-popup-inner input[type="submit"] {
    width: 100% !important;
    background: var(--navy, #0d1f2d) !important;
    color: var(--white, #ffffff) !important;
    padding: 13px !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: none !important;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}
.glp1sa-popup-inner .um-button:hover,
.glp1sa-popup-inner input[type="submit"]:hover {
    background: var(--teal, #0e4d4d) !important;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   MOBILE — comprehensive fixes
   Breakpoint: 640px
═══════════════════════════════════════════════════════════ */

/* ── Mobile category dropdown — hidden on desktop ─────── */

.glp1sa-filter-mobile {
    display: none;
    margin-bottom: 28px;
}

.glp1sa-filter-mobile .glp1sa-select-wrap select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1.5px solid var(--border, rgba(0,0,0,0.12));
    border-radius: 0 !important;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--ink, #1a1a1a);
    background: var(--white, #ffffff);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
}

@media (max-width: 640px) {

    /* ── Article grid — single column ── */
    .glp1sa-grid { grid-template-columns: 1fr; }

    /* ── Category filter — swap pills for dropdown ── */
    .glp1sa-filter        { display: none !important; }
    .glp1sa-filter-mobile { display: block; }

    /* ── Article popup — full width, scroll from top ── */
    .glp1sa-popup-bg {
        align-items: flex-start !important;
        padding: 0 !important;
    }

    .glp1sa-article-modal {
        border-radius: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        max-height: 100vh !important;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .glp1sa-modal-header { padding: 52px 18px 0; }
    .glp1sa-modal-body   { padding: 18px 18px 40px; }

    /* ── Registration / login popup — full width ── */
    .glp1sa-popup-inner {
        max-width: 100% !important;
        width: 100% !important;
        min-height: 100vh;
        border-radius: 0 !important;
        padding: 52px 20px 40px;
        box-sizing: border-box;
        overflow-y: auto;
    }

    /* ── Auth form — single column ── */
    .glp1sa-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* ── Subscribe widget — stack vertically ── */
    .glp1sa-subscribe-wrap {
        width: 100%;
        box-sizing: border-box;
    }

    .glp1sa-sub-row {
        flex-direction: column;
        gap: 0;
    }

    .glp1sa-sub-email {
        width: 100% !important;
        box-sizing: border-box;
        border-bottom: none;
    }

    .glp1sa-sub-btn {
        width: 100% !important;
        text-align: center;
    }

    /* ── News grid — single column ── */
    .glp1sa-news-grid          { grid-template-columns: 1fr; }
    .glp1sa-news-card.lead     { grid-column: span 1; }

    /* ── General overflow guard ── */
    .glp1sa-browser { overflow-x: hidden; }
    .glp1sa-ticker-wrap { padding: 10px 14px; }

    /* ── Gate inline — stack ── */
    .glp1sa-gate-inline { flex-direction: column; align-items: flex-start; gap: 6px; }
}


/* ═══════════════════════════════════════════════════════════
   CUSTOM AUTH FORMS (v2.0 — no UM)
═══════════════════════════════════════════════════════════ */

/* ── Form layout ─────────────────────────────────────── */

.glp1sa-form {
    text-align: left;
    margin-bottom: 8px;
}

.glp1sa-field {
    margin-bottom: 16px;
}

.glp1sa-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.glp1sa-field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink, #1a1a1a);
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
}

.glp1sa-label-hint {
    font-weight: 400;
    color: var(--muted, #8a97a8);
}

.glp1sa-field input[type="text"],
.glp1sa-field input[type="email"],
.glp1sa-field input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border, rgba(0,0,0,0.12));
    border-radius: 0;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--ink, #1a1a1a);
    background: var(--white, #ffffff);
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.glp1sa-field input:focus {
    outline: none;
    border-color: var(--teal-mid, #1a6b6b);
    box-shadow: 0 0 0 3px rgba(26,107,107,0.12);
}

.glp1sa-field input::placeholder {
    color: var(--muted, #8a97a8);
}

/* ── Province select ──────────────────────────────────── */

.glp1sa-select-wrap {
    position: relative;
}

.glp1sa-select-wrap select {
    width: 100%;
    padding: 11px 40px 11px 14px;
    border: 1.5px solid var(--border, rgba(0,0,0,0.12));
    border-radius: 0;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--ink, #1a1a1a);
    background: var(--white, #ffffff);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.glp1sa-select-wrap select:focus {
    outline: none;
    border-color: var(--teal-mid, #1a6b6b);
    box-shadow: 0 0 0 3px rgba(26,107,107,0.12);
}

.glp1sa-select-wrap select option[value=""] { color: var(--muted, #8a97a8); }

.glp1sa-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--muted, #8a97a8);
    pointer-events: none;
}

/* ── Password show/hide ───────────────────────────────── */

.glp1sa-input-wrap {
    position: relative;
}

.glp1sa-input-wrap input {
    padding-right: 44px !important;
    /* Suppress browser's own password reveal button */
    -webkit-text-security: inherit;
}

/* Hide browser-native password eye icons */
.glp1sa-input-wrap input[type="password"]::-ms-reveal,
.glp1sa-input-wrap input[type="password"]::-ms-clear,
.glp1sa-input-wrap input[type="password"]::-webkit-credentials-auto-fill-button,
.glp1sa-input-wrap input[type="password"]::-webkit-strong-password-auto-fill-button {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

.glp1sa-toggle-pw {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    color: #c97d20 !important;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
    z-index: 2;
    border-radius: 0 !important;
}

.glp1sa-toggle-pw:hover { color: #b06b15 !important; }
.glp1sa-toggle-pw svg   { width: 16px; height: 16px; display: block; }

/* ── Centred submit buttons (both panels) ─────────────── */

.glp1sa-submit-wrap {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.glp1sa-submit-wrap .glp1sa-btn-submit {
    width: auto;
    min-width: 220px;
    padding-left: 28px;
    padding-right: 28px;
}

/* Login panel submit — same centred treatment */
#glp1sa-login-form .glp1sa-btn-submit {
    display: block;
    width: auto;
    min-width: 160px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* ── Remember me ──────────────────────────────────────── */

.glp1sa-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--mid, #4a5568);
    cursor: pointer;
    margin-bottom: 18px;
    font-family: 'Inter', sans-serif;
}

.glp1sa-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--teal-mid, #1a6b6b);
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Submit button ────────────────────────────────────── */

.glp1sa-btn-submit {
    display: block;
    width: 100%;
    background: #c97d20 !important;
    color: #ffffff !important;
    padding: 13px;
    border-radius: 0 !important;
    font-size: 14px;
    font-weight: 500;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none !important;
}

.glp1sa-btn-submit:hover:not(:disabled) {
    background: #b06b15 !important;
    color: #ffffff !important;
}
.glp1sa-btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }

/* ── Error message ────────────────────────────────────── */

.glp1sa-form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0;
    padding: 11px 14px;
    font-size: 13px;
    color: #b91c1c;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

/* Inline resend link inside error */
.glp1sa-inline-link {
    background: none;
    border: none;
    padding: 0;
    color: #b91c1c;
    font-weight: 600;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
}

/* ── Verify / check inbox message ─────────────────────── */

.glp1sa-verify-msg {
    text-align: center;
    padding: 8px 0 12px;
}

.glp1sa-verify-icon {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1;
}

.glp1sa-verify-msg h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: var(--ink, #1a1a1a);
    margin-bottom: 10px;
    font-weight: 400;
}

.glp1sa-verify-msg p {
    font-size: 14px;
    color: var(--mid, #4a5568);
    line-height: 1.65;
    margin-bottom: 20px;
}

.glp1sa-resend-btn {
    background: none;
    border: 1.5px solid var(--border, rgba(0,0,0,0.12));
    border-radius: 0;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mid, #4a5568);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, color 0.2s;
}

.glp1sa-resend-btn:hover  { border-color: var(--teal-mid, #1a6b6b); color: var(--teal-mid, #1a6b6b); }
.glp1sa-resend-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.glp1sa-resend-confirm {
    font-size: 13px;
    color: var(--teal-mid, #1a6b6b);
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
}

/* ── Verification banner (top of articles page) ───────── */

.glp1sa-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 0;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 24px;
}

.glp1sa-banner.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.glp1sa-banner.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.glp1sa-banner-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}
.glp1sa-banner-close:hover { opacity: 1; }

/* ── Responsive tweaks for auth forms ────────────────── */

@media (max-width: 480px) {
    .glp1sa-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


/* ═══════════════════════════════════════════════════════════
   MAILCHIMP SUBSCRIBE WIDGET  [glp1sa_subscribe]
═══════════════════════════════════════════════════════════ */

.glp1sa-subscribe-wrap {
    width: 100%;
}

.glp1sa-sub-name {
    width: 100%;
    padding: 13px 18px;
    border: none;
    border-radius: 0;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--ink, #1a1a1a);
    background: var(--white, #ffffff);
    margin-bottom: 10px;
    box-sizing: border-box;
}

.glp1sa-sub-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.glp1sa-sub-email {
    flex: 1;
    padding: 13px 18px;
    border: none;
    border-radius: 0 !important;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--ink, #1a1a1a);
    background: var(--white, #ffffff);
    min-width: 0;
    box-sizing: border-box;
}

.glp1sa-sub-email:focus,
.glp1sa-sub-name:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.glp1sa-sub-email::placeholder,
.glp1sa-sub-name::placeholder {
    color: var(--muted, #8a97a8);
}

.glp1sa-sub-btn {
    padding: 13px 24px;
    background: #c97d20 !important;
    color: #ffffff !important;
    border: 2px solid #c97d20 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.glp1sa-sub-btn:hover:not(:disabled) {
    background: transparent !important;
    color: #c97d20 !important;
    border-color: #c97d20 !important;
}

.glp1sa-sub-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.glp1sa-sub-msg {
    margin-top: 10px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    padding: 10px 14px;
    border-radius: 0;
}

.glp1sa-sub-msg.success {
    background: rgba(255,255,255,0.15);
    color: var(--white, #ffffff);
}

.glp1sa-sub-msg.error {
    background: rgba(192,57,43,0.15);
    color: #ffd5d0;
}

@media (max-width: 480px) {
    .glp1sa-sub-row    { flex-direction: column; }
    .glp1sa-sub-btn    { width: 100%; }
}


/* ═══════════════════════════════════════════════════════════
   NEWS TICKER  [glp1sa_ticker]
═══════════════════════════════════════════════════════════ */

.glp1sa-ticker-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    background: var(--amber, #c97d20);
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
}

.glp1sa-ticker-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white, #ffffff);
    background: rgba(0,0,0,0.25);
    padding: 4px 10px;
    border-radius: 0;
    margin-right: 20px;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.glp1sa-ticker-outer {
    flex: 1;
    overflow: hidden;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.glp1sa-ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: glp1sa-ticker-scroll linear infinite;
    will-change: transform;
}

/* Pause on hover */
.glp1sa-ticker-wrap:hover .glp1sa-ticker-track {
    animation-play-state: paused;
}

@keyframes glp1sa-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.glp1sa-ticker-item {
    font-size: 13px;
    color: var(--white, #ffffff);
    font-family: 'Inter', sans-serif;
    padding-right: 4px;
}

.glp1sa-ticker-link {
    color: var(--white, #ffffff);
    text-decoration: none;
    transition: opacity 0.15s;
}

.glp1sa-ticker-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.glp1sa-ticker-sep {
    color: rgba(255,255,255,0.4);
    padding: 0 20px;
    font-size: 14px;
}

/* Reduce motion — stop animation for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .glp1sa-ticker-track {
        animation: none;
    }
    .glp1sa-ticker-outer {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}


/* ═══════════════════════════════════════════════════════════
   NEWS SECTION  [glp1sa_news]
═══════════════════════════════════════════════════════════ */

.glp1sa-news-section {
    width: 100%;
}

.glp1sa-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── News card ───────────────────────────────────────────── */

.glp1sa-news-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
    padding: 22px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.glp1sa-news-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.glp1sa-news-card:focus {
    outline: 2px solid rgba(56,189,248,0.5);
    outline-offset: 2px;
}

/* Lead story spans full width and gets larger padding */
.glp1sa-news-card.lead {
    grid-column: span 2;
    padding: 28px;
}

/* ── Card meta row (badge + date) ────────────────────────── */

.glp1sa-news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.glp1sa-news-card-badge,
.glp1sa-news-cat-badge,
.glp1sa-news-card-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0;
    border-radius: 0;
    border: none !important;
    background: none !important;
    color: #c97d20 !important;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.glp1sa-news-date {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

/* ── Card title ──────────────────────────────────────────── */

.glp1sa-news-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--white, #ffffff);
    line-height: 1.25;
    margin-bottom: 12px;
    font-weight: 400;
}

.glp1sa-news-card.lead .glp1sa-news-title {
    font-size: clamp(20px, 3vw, 26px);
}

.glp1sa-news-card:not(.lead) .glp1sa-news-title {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 10px;
}

/* ── Card excerpt ────────────────────────────────────────── */

.glp1sa-news-excerpt {
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
    font-family: 'Inter', sans-serif;
}

.glp1sa-news-card.lead .glp1sa-news-excerpt {
    font-size: 14px;
}

.glp1sa-news-card:not(.lead) .glp1sa-news-excerpt {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.65;
    margin-bottom: 14px;
}

/* ── Card footer (source + read more) ───────────────────── */

.glp1sa-news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 12px;
}

.glp1sa-news-source {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    font-family: 'Inter', sans-serif;
    flex: 1;
}

.glp1sa-news-read-more {
    font-size: 12px;
    color: #38BDF8;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Empty state ─────────────────────────────────────────── */

.glp1sa-news-empty {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    text-align: center;
    padding: 40px;
}

/* ── News popup overrides ────────────────────────────────── */

/* News popup byline — dark text on white modal background */
.glp1sa-news-modal-byline {
    color: var(--mid, #4a5568) !important;
    font-size: 13px;
    line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 640px) {
    .glp1sa-news-grid {
        grid-template-columns: 1fr;
    }
    .glp1sa-news-card.lead {
        grid-column: span 1;
    }
}

/* ── Forgot password — uses .glp1sa-switch-btn styles ─── */

.glp1sa-forgot-wrap {
    text-align: left;
    margin: 6px 0 14px;
    font-family: 'Inter', sans-serif;
}


/* ═══════════════════════════════════════════════════════════
   ARTICLE SHARE BAR
═══════════════════════════════════════════════════════════ */

.glp1sa-share-bar {
    padding: 20px 40px 32px;
    border-top: 1px solid var(--border, rgba(0,0,0,0.1));
    margin-top: 8px;
}

.glp1sa-share-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted, #8a97a8);
    font-family: 'Inter', sans-serif;
    margin-bottom: 12px;
}

.glp1sa-share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.glp1sa-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border, rgba(0,0,0,0.12));
    background: var(--white, #ffffff);
    color: var(--mid, #4a5568) !important;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none !important;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    border-radius: 0;
    box-shadow: none;
    line-height: 1;
}

.glp1sa-share-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.glp1sa-share-btn:hover {
    border-color: var(--navy, #0d1f2d);
    color: var(--navy, #0d1f2d) !important;
    background: var(--white, #ffffff);
}

/* WhatsApp green on hover */
#glp1sa-share-whatsapp:hover { border-color: #25D366; color: #25D366 !important; }
/* Facebook blue on hover */
#glp1sa-share-facebook:hover { border-color: #1877F2; color: #1877F2 !important; }
/* X/Twitter black on hover */
#glp1sa-share-twitter:hover  { border-color: #000000; color: #000000 !important; }
/* Copy link amber on hover */
#glp1sa-share-copy:hover     { border-color: var(--amber, #c97d20); color: var(--amber, #c97d20) !important; }

.glp1sa-share-copied {
    font-size: 12px;
    color: var(--teal-mid, #1a6b6b);
    font-family: 'Inter', sans-serif;
    margin-top: 10px;
    font-weight: 500;
}

@media (max-width: 640px) {
    .glp1sa-share-bar    { padding: 18px 18px 28px; }
    .glp1sa-share-btn span { display: none; }  /* icon only on mobile */
    .glp1sa-share-btn    { padding: 10px 12px; }
}


/* ═══════════════════════════════════════════════════════════
   NEWS ARCHIVE  [glp1sa_news_archive]
═══════════════════════════════════════════════════════════ */

/* ── Filter bar ─────────────────────────────────────────── */

.glp1sa-archive-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.glp1sa-archive-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.glp1sa-archive-search-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--muted, #8a97a8);
    pointer-events: none;
}

.glp1sa-archive-search {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--border, rgba(0,0,0,0.12));
    border-radius: 0;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--ink, #1a1a1a);
    box-sizing: border-box;
}

.glp1sa-archive-search:focus {
    outline: none;
    border-color: var(--navy, #0d1f2d);
}

.glp1sa-archive-cat-wrap select {
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--border, rgba(0,0,0,0.12));
    border-radius: 0;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--ink, #1a1a1a);
    background: white;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    min-width: 160px;
}

.glp1sa-archive-search-btn {
    padding: 10px 20px;
    background: var(--navy, #0d1f2d);
    color: white;
    border: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s;
}

.glp1sa-archive-search-btn:hover { background: #c97d20; }

.glp1sa-archive-clear {
    font-size: 13px;
    color: var(--muted, #8a97a8);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.glp1sa-archive-clear:hover { color: var(--amber, #c97d20); }

/* ── Result count ───────────────────────────────────────── */

.glp1sa-archive-count {
    font-size: 13px;
    color: var(--muted, #8a97a8);
    font-family: 'Inter', sans-serif;
    margin-bottom: 20px;
}

.glp1sa-archive-count strong { color: var(--ink, #1a1a1a); }

/* ── Archive list ───────────────────────────────────────── */

.glp1sa-archive-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border, rgba(0,0,0,0.1));
}

.glp1sa-archive-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border, rgba(0,0,0,0.08));
    cursor: pointer;
    transition: background 0.15s;
}

.glp1sa-archive-item:hover {
    background: rgba(0,0,0,0.02);
    padding-left: 8px;
}

.glp1sa-archive-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.glp1sa-archive-cat-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    font-family: 'Inter', sans-serif;
}

.glp1sa-archive-date {
    font-size: 12px;
    color: var(--muted, #8a97a8);
    font-family: 'Inter', sans-serif;
}

.glp1sa-archive-source {
    font-size: 12px;
    color: var(--muted, #8a97a8);
    font-family: 'Inter', sans-serif;
}

.glp1sa-archive-source::before { content: '· '; }

.glp1sa-archive-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--navy, #0d1f2d);
    margin: 0 0 6px;
    line-height: 1.3;
    transition: color 0.15s;
}

.glp1sa-archive-item:hover .glp1sa-archive-title {
    color: var(--amber, #c97d20);
}

.glp1sa-archive-excerpt {
    font-size: 13px;
    color: var(--mid, #4a5568);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
}

/* ── Pagination ─────────────────────────────────────────── */

.glp1sa-archive-pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 32px;
    align-items: center;
}

.glp1sa-archive-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border, rgba(0,0,0,0.12));
    color: var(--ink, #1a1a1a);
    text-decoration: none;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s;
}

.glp1sa-archive-page-btn:hover,
.glp1sa-archive-page-btn.active {
    background: var(--navy, #0d1f2d);
    color: white;
    border-color: var(--navy, #0d1f2d);
}

/* ── Empty state ─────────────────────────────────────────── */

.glp1sa-archive-empty {
    font-size: 14px;
    color: var(--muted, #8a97a8);
    font-family: 'Inter', sans-serif;
    padding: 40px 0;
    text-align: center;
}

/* ── Mobile ─────────────────────────────────────────────── */

@media (max-width: 640px) {
    .glp1sa-archive-filters { gap: 8px; }
    .glp1sa-archive-search-wrap { min-width: 100%; }
    .glp1sa-archive-cat-wrap select { width: 100%; }
    .glp1sa-archive-search-btn { width: 100%; }
    .glp1sa-archive-title { font-size: 15px; }
}
