/*
styles_refactor.CSS - SAILTHRU NEWSLETTER TEMPLATE STYLESHEET
====================================================

Author: Donald Armstrong
Date: 07JUL2026

FILE STRUCTURE & ORGANIZATION:

1. Reset & Global Styles - HTML/body resets and base newsletter styles
2. Typography & Headings - All font-related styles
3. Navigation - Header and navigation bar styles
4. Layout & Wrapper - Container and grid layouts
5. Featured Newsletter Section - Featured card styles and badge handling
6. Newsletter Listing Styles - Regular newsletter cards
7. Button Styles - All button variants (featured, listing, submit, unsubscribe)
8. Form & Input Styles - Form elements and inputs
9. Animated Footer Tray - Footer animation container and elements
10. Browse Topics/Anchor Navigation - Topic filtering buttons
11. States & Interactions - Focus states, checked states, hover effects
12. Utility & Helper Styles - Utility classes
13. Responsive Design - Mobile-first approach with breakpoints:
    - 13a. Tablet (600px+)
    - 13b. Desktop (768px+)
    - 13c. Mobile (599px and below) - Overrides
    - 13d. Opt-Out Page Responsive Design
14. Custom Preference Page Styles - Styles for Sailthru custom preference pages
15. Opt-Out & Redirect Pages - Styles for Sailthru opt-out, confirmation, and redirect pages:
    - 15a. Opt-Out Page Layouts (card, wrapper)
    - 15b. Opt-Out Page Header & Content (logo, content, notes)
    - 15c. Opt-Out Page Links, Forms & Labels
    - 15d. Opt-Out Page Button System

====================================================
*/

/* ========================================
   1. RESET & GLOBAL STYLES
   ======================================== */

html,
body {
    overflow-x: hidden;
}

.newsletterlist {
    margin: 0;
    padding: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: #fff;
    color: #2a2a2a;
    line-height: 1.29;
}

/* ========================================
   2. TYPOGRAPHY & HEADINGS
   ======================================== */

h1 {
    margin: 0 0 16px 0;
    padding: 0;
    font-family: "Noto Serif";
}

.newsletterlist__subscriber-exclusive {
    font-family: "Noto Serif";
    font-size: 28px;
    font-weight: 700;
    line-height: 34px;
    text-align: left;
    margin: 0 0 8px;
}

.newsletterlist-eyebrow {
    color: #444;
    font-family: "Inter";
    font-size: 20px;
    font-weight: 600;
    line-height: 26px;
    text-align: left;
    padding: 0;
    margin: 16px 0 32px 0;
}

.newsletterlist-header {
    font-family: "Noto Serif";
    font-size: 28px;
    font-weight: 700;
    line-height: 34px;
    margin: 16px 0 8px 0;
    text-align: left;
}

.newsletterlist-description {
    color: #2a2a2a;
    font-family: "Inter";
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    text-align: left;
    margin: 0 0 24px 0;
    padding: 0;
}

/* ========================================
   3. NAVIGATION
   ======================================== */

.newsletterlist__nav {
    width: 100%;
    border-bottom: 1px solid #BBBBBB;
    background: #fff;
    display: grid;
    grid-template-columns: 77px auto;
    height: 64px;
    position: relative;
    z-index: 101;
}

.newsletterlist__nav--logo {
    margin: 0;
    text-align: center;
    width: 100%;
    height: 64px;
}

.newsletterlist__nav--logo img {
    width: auto;
    height: 45px;
    margin-top: 8.5px;
}

.newsletterlist__nav-subscribe {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.newsletterlist__nav-subscribe-cta {
    display: inline-flex;
    padding: 8px 16px;
    background-color: white;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: #2A2A2A;
    text-decoration: none;
    font-size: 14px;
    line-height: 21px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.newsletterlist__nav-subscribe a:hover {
    opacity: .8;
}

@media (min-width: 768px) {
    .newsletterlist__nav {
        display: block;
        position: relative;
    }

    .newsletterlist__nav-subscribe {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 16px;
    }
}

/* ========================================
   4. LAYOUT & WRAPPER
   ======================================== */

.newsletterlist__wrapper {
    max-width: 994px;
    margin: 24px auto;
}

.newsletterlist__wrapper > h1 {
    text-align: center;
    font-family: 'Noto Serif', serif;
    font-size: 31px;
    line-height: 40px;
    letter-spacing: 0.8px;
    color: #2A2A2A;
    margin-top: 50px;
    margin-bottom: 24px;
}

.newsletterlist__listings {
    background-color: #fff;
    margin-top: 40px;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    padding-bottom: 134px;
}

.newsletterlist__listings--container {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 64px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    gap: 48px;
}

/* .js-all-listings uses display toggling via JavaScript */

.newsletterlist__wrapper .newsletterlist__listings--all.js-all-listings {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px 16px;
    overflow: hidden;
    padding: 0 2px 220px 0;
}

.newsletterlist__wrapper .newsletterlist__listings--all.js-all-listings > * {
    min-width: 0px;
}

/* ========================================
   5. FEATURED NEWSLETTER SECTION
   ======================================== */

.newsletterlist__featured--section {
    background-color: #F8F8F8;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletterlist__featured--badge {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #666;
    padding: 0;
    margin: 0 0 4px 0;
    white-space: nowrap;
    text-align: left;
}

.newsletterlist__featured--listing h3 {
    min-height: 48px;
    height: 48px;
}

h3.no-badge {
    height: 66px;
}

h3.no-badge::before {
    content: '';
    display: block;
    height: 18px;
}

h3.no-badge .newsletterlist__featured--listing-checkbox-wrapper {
    margin-top: 0;
}

.featured-content-wrapper:has(> h3.no-badge) {
    margin-top: -20px;
    min-height: 170px;
}

.featured-content-wrapper {
    min-height: 150px;
}

.newsletterlist__featured--section-label {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 22px;
    font-weight: 600;
    text-transform: uppercase;
    color: #2A2A2A;
    margin-top: 24px;
    margin-bottom: 4px;
    width: 343px;
    text-align: left;
}

.newsletterlist__featured--section-sublabel {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    color: #2A2A2A;
    margin-top: 0;
    margin-bottom: 24px;
    width: 343px;
    text-align: left;
}

.featured-content-wrapper:not(:has(> h3.no-badge)) .newsletterlist__featured--section-sublabel {
    margin-top: 16px;
}

.newsletterlist__featured--listing {
    display: flex;
    flex-direction: column;
    width: 350px;
    box-sizing: border-box;
    background-color: #fff;
    border: 1px solid #E1E1E1;
    border-radius: 4px;
    margin-bottom: 40px;
    box-shadow: 2px 2px 2px 0px rgba(225,225,225,0.7);
    position: relative;
    overflow: visible;
}

.newsletterlist__featured--listing img {
    width: 100%;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    display: block;
    position: relative;
}

.newsletterlist__featured--listing-content {
    padding: 16px 16px 24px 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
}

.newsletterlist__featured--listing-checkbox-wrapper {
    display: block;
    width: unset;
    padding: unset;
    font-family: 'Noto Serif', serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: 0.3px;
    color: #2A2A2A;
    margin: 0 0 4px 0;
}

.newsletterlist__featured--listing-schedule {
    display: block;
    font-family: Inter, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    line-height: 16px;
    font-weight: normal;
    color: #666666;
    padding: unset;
}

.featured-content-wrapper:not(:has(> h3.no-badge)) .newsletterlist__featured--listing-schedule {
    padding-bottom: 8px;
}

.newsletterlist__featured--listing-checkbox {
    margin: 0;
    visibility: hidden;
}

label.newsletterlist__featured--listing-checkbox-label {
    height: 28px;
    width: -webkit-fill-available;
    position: static;
    margin-top: auto;
    display: flex;
    align-items: flex-end;
}

.newsletterlist__featured--listing-description {
    padding-top: 12px;
}

.featured-content-wrapper:not(:has(> h3.no-badge)) .newsletterlist__featured--listing-description {
    padding-top: 20px;
}

.newsletterlist__wrapper .newsletterlist__featured--listing-description p {
    position: relative;
    bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0px;
    color: #666666;
    margin: unset;
}

/* ========================================
   6. NEWSLETTER LISTING STYLES
   ======================================== */

.newsletterlist__wrapper .newsletterlist__listings--listing {
    width: unset;
    margin: unset;
    float: unset;
    min-height: unset;
    padding: 16px;
    border: 1px solid #E1E1E1;
    border-radius: 4px;
    display: grid;
    grid-template-columns: 72px repeat(3, minmax(0, 1fr));
    grid-template-rows: max-content;
    grid-column-gap: 12px;
    grid-row-gap: 16px;
    align-items: center;
    box-shadow: 2px 2px 2px 0px rgba(225,225,225,0.7);
    position: relative;
    overflow: visible;
}

.newsletterlist__wrapper .newsletterlist__listings--listing h3 {
    margin: 0;
    grid-area: 1 / 2 / 2 / 5;
}

.newsletterlist__wrapper .newsletterlist__listings--listing img {
    width: 72px;
    grid-area: 1 / 1 / 2 / 2;
    align-items: center;
}

.newsletterlist__wrapper .newsletterlist__listings--listing-description {
    display: block;
    margin: unset;
    grid-area: 2 / 1 / 3 / 5;
}

.newsletterlist__wrapper .newsletterlist__listings--listing-description p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0px;
    color: #444444;
    margin: unset;
}

.newsletterlist__wrapper .newsletterlist__listings--listing-checkbox {
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    top: unset;
    visibility: hidden;
}

.newsletterlist__listings--listing-checkbox-wrapper {
    display: block;
    width: unset;
    padding: unset;
    font-family: 'Noto Serif', serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 0.3px;
    color: #2A2A2A;
    margin-bottom: 6px;
}

.newsletterlist__listings--listing-schedule {
    color: #666;
    font-family: "Inter";
    font-size: 12px;
    font-weight: 400;
    line-height: 16px; 
    text-transform: uppercase;
}

/* ========================================
   7. BUTTON STYLES
   ======================================== */

/* Featured Button */
input[type=checkbox] + div.featured-button {
    position: static;
    border: 1px solid #2A2A2A;
    padding: 8px 16px 8px 12px;
    width: fit-content;
    height: auto;
    border-radius: 999px;
    cursor: pointer;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #2A2A2A;
    margin: 0;
}

input[type=checkbox] + div.featured-button:hover {
    background-color: #f5f5f5;
}

input[type=checkbox] + div.featured-button > span.button-icon:before {
    font-family: 'Material Icons';
    content: 'add';
    font-size: 16px;
    color: #2A2A2A;
}

input[type=checkbox] + div.featured-button > span.button-text:before {
    font-family: 'Inter', sans-serif;
    content: 'Sign Up';
    font-size: 16px;
    font-weight: 600;
    color: #2A2A2A;
}

input[type=checkbox]:checked + div.featured-button {
    position: static;
    border: 1px solid #2A2A2A;
    width: fit-content;
    height: auto;
    border-radius: 999px;
    cursor: pointer;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #2A2A2A;
    margin: 0;
    padding: 8px 16px 8px 12px;
}

input[type=checkbox]:checked + div.featured-button > span.button-icon:before {
    font-family: 'Material Icons';
    content: 'check';
    font-size: 16px;
    color: #2A2A2A;
}

input[type=checkbox]:checked + div.featured-button > span.button-text:before {
    font-family: 'Inter', sans-serif;
    content: 'Selected';
    font-size: 16px;
    font-weight: 600;
    color: #2A2A2A;
}

input[type=checkbox]:checked + div.featured-button:hover {
    background-color: #F8F8F8;
}

input.subscribed[type=checkbox]:checked + div.featured-button {
    position: static;
    border: 1px solid #1E7F01;
    width: fit-content;
    height: auto;
    border-radius: 32px;
    cursor: pointer;
    background-color: #1E7F01;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    margin: 0;
    padding: 8px 16px;
}

input.subscribed[type=checkbox]:checked + div.featured-button > span.button-icon:before {
    font-family: 'Material Icons';
    content: 'check';
    font-size: 20px;
    color: #fff;
    margin-left: 14px;
}

input.subscribed[type=checkbox]:checked + div.featured-button > span.button-text:before {
    font-family: 'Inter', sans-serif;
    content: 'Signed Up';
    font-size: 14px;
    font-weight: 600;
    margin: auto 16px auto 4px;
    color: #fff;
}

input.subscribed[type=checkbox]:checked + div.featured-button:hover {
    background-color: #134C13;
}

/* Listing Button */
input[type=checkbox] + div.listing-button {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    top: unset;
    border: 1px solid #2A2A2A;
    width: 48px;
    height: 48px;
    margin: auto;
    border-radius: 30px;
    cursor: pointer;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2A2A2A;
}

input[type=checkbox] + div.listing-button:hover,
input[type=checkbox]:checked + div.listing-button:hover {
    background-color: #F8F8F8;
}

input[type=checkbox] + div.listing-button > span.button-icon:before {
    font-family: 'Material Icons';
    content: 'add';
    font-size: 20px;
    color: #2A2A2A;
}

input[type=checkbox]:checked + div.listing-button {
    position: absolute;
    bottom: -14px;
    left: 0;
    right: 0;
    top: unset;
    border: 1px solid #2A2A2A;
    padding: 8px 16px 8px 12px;
    width: 93px;
    height: 16px;
    margin: auto;
    border-radius: 999px;
    cursor: pointer;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #2A2A2A;
}

input[type=checkbox]:checked + div.listing-button > span.button-icon:before {
    font-family: 'Material Icons';
    content: 'check';
    font-size: 16px;
    color: #2A2A2A;
}

input[type=checkbox]:checked + div.listing-button > span.button-text:before {
    font-family: 'Inter', sans-serif;
    content: 'Selected';
    font-size: 16px;
    font-weight: 600;
    color: #2A2A2A;
}

input.subscribed[type=checkbox]:checked + div.listing-button {
    position: absolute;
    bottom: -14px;
    left: 0;
    right: 0;
    top: unset;
    border: 1px solid #1E7F01;
    width: max-content;
    height: 28px;
    margin: auto;
    border-radius: 32px;
    cursor: pointer;
    background-color: #1E7F01;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

input.subscribed[type=checkbox]:checked + div.listing-button > span.button-icon:before {
    font-family: 'Material Icons';
    content: 'check';
    font-size: 20px;
    color: #fff;
    margin-left: 14px;
}

input.subscribed[type=checkbox]:checked + div.listing-button > span.button-text:before {
    font-family: 'Inter', sans-serif;
    content: 'Signed Up';
    font-size: 14px;
    font-weight: 600;
    margin: auto 16px auto 4px;
    color: #fff;
}

input.subscribed[type=checkbox]:checked + div.listing-button:hover {
    background-color: #134C13;
}

/* Email Submit Button */
.newsletterlist__email-submit input[type="submit"] {
    cursor: pointer;
    max-width: 340px;
    border-radius: 32px;
    color: #fff;
    background-color: #2a2a2a;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    padding: 0;
    -webkit-appearance: none;
    border: none;
}

input#form-submit:hover {
    background-color: #444444;
}

/* Unsubscribe Button */
a.newsletterlist__unsubscribe-all {
    cursor: pointer;
    border-radius: 32px;
    border: 1px solid #2a2a2a;
    color: #000;
    background-color: #fff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    padding: 14px 0;
    -webkit-appearance: none;
    text-decoration: none;
    width: 340px;
}

a.newsletterlist__unsubscribe-all:hover {
    background-color: #f8f8f8;
}

/* ========================================
   8. FORM & INPUT STYLES
   ======================================== */

.newsletterlist__listings--email-input {
    padding: 13px 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0px;
    max-width: 340px;
    border-radius: 0;
    border: 1px #E1E1E1 solid;
    margin: 0 0 16px;
}

input#zipcode {
    max-width: 340px;
}

.newsletterlist__email-submit form {
    margin-block-end: 0;
}

.newsletterlist__email-submit.unsubscribe {
    position: fixed;
    width: 100%;
    background: #fff;
    bottom: 0;
    text-align: center;
    height: auto;
    padding: 24px 0;
    border-top: 1px solid #C8C8C8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.newsletterlist__email-submit.unsubscribe input[type="submit"] {
    width: 340px;
}

p.newsletterlist__listings--email {
    display: flex;
    flex-direction: column;
    align-items: center;
}

label.newsletterlist__listings--email-label {
    display: none;
}

.newsletterlist__listings--disclaimer {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666666;
    letter-spacing: 0.4px;
    padding: 0 8px;
}

.newsletterlist__listings--disclaimer a {
    color: #666666;
}

/* ========================================
   9. ANIMATED FOOTER TRAY
   ======================================== */

.animated-footer-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    visibility: visible;
    pointer-events: none;
}

.animated-footer-scrim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 500ms cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.animated-footer-overlay.is-active .animated-footer-scrim {
    opacity: 0;
    pointer-events: none;
}

.animated-footer-container {
    position: relative;
    background-color: #2a2a2a;
    width: 100%;
    height: 168px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 500ms cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: auto;
}

.animated-footer-overlay.is-active .animated-footer-container {
    transform: translateY(0);
}

.animated-footer-body {
    display: flex;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 0 20px 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    text-align: center;
}

.animated-footer-heading {
    font-family: "Inter";
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    text-align: center;
    font-style: normal;
    line-height: 100%;
}

.animated-footer-form {
    display: flex;
    gap: 8px;
    margin: 16px 0px 16px 0px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 280px;
    flex-direction: column;
}

.animated-footer-form-group {
    flex: 0 1 auto;
    min-width: 280px;
    width: 100%;
    margin: 0 auto;
}

.animated-footer-email-input {
    width: 100%;
    padding: 12px 8px;
    font-size: 16px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    background-color: #ffffff;
    color: #2a2a2a;
    font-family: inherit;
    height: 43px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    margin: 0 auto;
}

.animated-footer-email-input::placeholder {
    color: #999999;
}

.animated-footer-email-input:focus {
    outline: none;
    border-color: #2a2a2a;
}

.animated-footer-btn-signup {
    padding: 16px 24px;
    background-color: #ffffff;
    color: #2a2a2a;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    width: 100%;
    max-width: 280px;
    flex-shrink: 0;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    gap: 8px;
    display: flex;
    height: auto;
    box-sizing: border-box;
    min-height: 40px;
    line-height: 1;
}

.animated-footer-btn-signup:hover {
    background-color: #f0f0f0;
}

.animated-footer-btn-signup:active {
    background-color: #e0e0e0;
}

.animated-footer-legal-text {
    font-family: "Inter";
    font-size: 12px;
    font-style: normal;
    line-height: 20px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
}

.animated-footer-legal-link {
    color: #ffffff;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.animated-footer-legal-link:hover {
    opacity: 0.8;
}

/* ========================================
   10. BROWSE TOPICS / ANCHOR NAVIGATION
   ======================================== */

.anchor-holder-wrapper {
    padding-top: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e1e1e1;
    max-width: 994px;
    box-sizing: border-box;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    margin: 0 auto;
}

.browse-topics-heading {
    color: #666;
    text-align: center;
    font-family: "Inter";
    font-size: 18px;
    font-weight: 600;
    line-height: 25px;
    margin-top: 0;
    margin-bottom: 4px;
}

.browse-topics-subtitle {
    color: #666;
    text-align: center;
    font-family: "Inter";
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    margin: 0;
}

.anchor-buttons-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.anchor-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 8px;
    justify-content: center;
    align-items: center;
    width: 100%;
    row-gap: 12px;
}

.anchor-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #2A2A2A;
    background-color: #FFF;
    font-size: 16px;
    font-weight: 600;
    color: #2a2a2a;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    height: auto;
    cursor: pointer;
}

.anchor-buttons a:hover {
    background-color: #f5f5f5;
    border-color: #2a2a2a;
}

.anchor-buttons a:active {
    background-color: #e8e8e8;
}

/* ========================================
   11. STATES & INTERACTIONS
   ======================================== */

.newsletterlist__listings--listing:has(input[type=checkbox]:checked),
.newsletterlist__featured--listing:has(input[type=checkbox]:checked) {
    border-color: #1E7F01;
}

*:focus {
    outline-color: #7BA6E5;
    outline-offset: 0;
    outline-width: 2px;
    outline-style: solid;
}

input:focus:not(#form-submit) {
    outline-offset: -3px;
}

/* ========================================
   12. UTILITY & HELPER STYLES
   ======================================== */

.newsletterlist__honey {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

.newsletterlist-section {
    border-top: 1px solid #E1E1E1;
    margin: 24px 0;
}

.newsletterlist-section--subscriber-exclusive {
    margin-top: 40px;
    border-top: none;
}

/* ========================================
   13. RESPONSIVE DESIGN
   ======================================== */

/* -------- 13a. TABLET (600px and up) -------- */

@media only screen and (min-width: 600px) {
    .newsletterlist__wrapper {
        margin: 40px auto;
    }

    .newsletterlist__wrapper > h1 {
        text-align: center;
        font-size: 44px;
        line-height: 54px;
    }

    .anchor-holder-wrapper {
        width: auto;
    }

    .newsletterlist__featured--section {
        margin: 0 16px;  
    }

    .newsletterlist__listings--container {
        grid-template-columns: repeat(2, 1fr);
        gap: 56px 16px;
    }

    .newsletterlist__wrapper .newsletterlist__listings--all.js-all-listings {
        gap: 56px 16px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .animated-footer-overlay.is-active .animated-footer-container {
        padding-bottom: 64px;
    }

    .animated-footer-form {
        flex-direction: row;
        max-width: 100%;
        gap: 4px;
        width: auto;
    }

    .animated-footer-form-group {
        flex: 0 0 280px;
        min-width: auto;
        max-width: none;
    }

    .animated-footer-email-input {
        width: 100%;
    }

    .animated-footer-btn-signup {
        width: auto;
        height: auto;
        padding: 8px 16px;
        flex-shrink: 0;
        margin: 0;
        min-width: 280px;
    }

    .newsletterlist__email-submit {
        flex-direction: row;
        padding: 24px 0 24px;
    }

    .newsletterlist__email-submit.unsubscribe {
        flex-direction: row;
    }

    .newsletterlist__email-submit.unsubscribe input[type="submit"] {
        width: 216px;
    }

    a.newsletterlist__unsubscribe-all {
        width: 216px;
    }

    .newsletterlist__listings--email-input {
        margin: 0 8px 0 0;
        max-width: 340px;
        width: 280px;
    }

    p.newsletterlist__listings--email {
        flex-direction: row;
        justify-content: center;
    }
}

/* -------- 13b. DESKTOP (768px and up) -------- */

@media only screen and (min-width: 768px) {
    .animated-footer-overlay.is-active .animated-footer-container {
        padding-bottom: 8px;
    }

    .newsletterlist__wrapper {
        width: 100%;
        box-sizing: border-box;
    }

    .anchor-holder-wrapper {
        width: 100%;
    }

    .newsletterlist__email-submit.unsubscribe {
        padding: 24px 0 24px;
    }

    input#zipcode {
        max-width: 150px;
    }

    .newsletterlist__listings--email-input {
        margin: 0 8px 0 0;
        max-width: 340px;
        width: 280px;
    }

    .newsletterlist__wrapper .newsletterlist__listings--listing .newsletterlist__listings--listing-description p {
        margin: unset;
        font-size: 14px;
    }

    /* Featured Button - positioned at bottom of content */
    input[type=checkbox] + div.featured-button {
        position: static;
        margin: 0;
    }

    input[type=checkbox]:checked + div.featured-button {
        position: static;
        margin: 0;
    }

    input.subscribed[type=checkbox]:checked + div.featured-button {
        position: static;
        margin: 0;
    }

    .newsletterlist__featured--section-label {
        margin-top: 40px;
        width: 750px;
        max-width: 750px;  
    }

    .newsletterlist__featured--section-sublabel {
        width: 750px;
        max-width: 750px;  
    }

    .newsletterlist__featured--listing {
        display: grid;
        grid-template-columns: 350px 1fr;
        width: 750px;
        max-width: 750px;
        align-items: start;
        margin-bottom: 50px;
    }

    .newsletterlist__featured--listing img {
        width: 350px;
        height: 100%;
        border-top-left-radius: 4px;
        border-top-right-radius: 0;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 0;
        grid-row: 1 / -1;
        object-fit: cover;
    }

    .newsletterlist__featured--listing-content {
        padding: 16px 24px 24px 24px;
        grid-column: 2;
        grid-row: 1;
    }

    .newsletterlist__listings--container {
        grid-template-columns: repeat(3, 1fr);
        display: grid;
    }

    .newsletterlist__wrapper .newsletterlist__listings--all.js-all-listings {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    }

    .newsletterlist__listings--listing {
        width: auto;
        max-width: 100%;
        float: none;
        margin: 0;
        min-height: auto;
        grid-column: auto;
        grid-row: auto;
    }

    .newsletterlist__wrapper .newsletterlist__listings--listing {
        width: auto;
        max-width: 100%;
        float: none;
        margin: 0;
        min-height: auto;
    }

    .newsletterlist__email-submit input[type="submit"] {
        width: 216px;
    }
}

/* -------- 13c. MOBILE (599px and below) -------- */

@media only screen and (max-width: 599px) {
    .animated-footer-overlay.is-active .animated-footer-container {
        padding-bottom: 124px;
    }

    .animated-footer-form {
        max-width: 92%;
        padding: 0 16px;
    }

    .animated-footer-form-group {
        min-width: auto;
    }

    .animated-footer-email-input {
        width: 100%;
        padding: 12px 16px;
    }

    .animated-footer-btn-signup {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 16px;
        min-height: 40px !important;
        line-height: 1 !important;
    }

    .anchor-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .anchor-buttons a {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        box-sizing: border-box !important;
        line-height: 1.5 !important;
        min-height: 40px !important;
    }

    input[type=checkbox] + div.featured-button,
    input[type=checkbox]:checked + div.featured-button,
    input.subscribed[type=checkbox]:checked + div.featured-button {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .newsletterlist__listings {
        padding-bottom: 262px;
    }

    #animatedFooterOverlay > div.animated-footer-container > div > p.animated-footer-legal-text {
        max-width: 90%;
    }
}

/* ========================================
   14. CUSTOM PREFERENCE PAGE STYLES
   Author: Donald Armstrong
   Date: 17JUL2026
   ======================================== */

/* Hide page until fully loaded */
body.custom-pref-page-loading {
    opacity: 0;
    pointer-events: none;
}

/* Override form layout for custom-pref */
.animated-footer-container-custompref .animated-footer-form {
    flex-direction: row !important;
    max-width: none !important;
    width: 100% !important;
    gap: 16px !important;
}

/* Override form-group layout for custom-pref to display buttons side-by-side */
.animated-footer-container-custompref .animated-footer-form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    min-width: auto !important;
    flex: none !important;
}

/* Custom-pref form-group on tablet and up */
@media only screen and (min-width: 600px) {
    .animated-footer-container-custompref .animated-footer-form-group {
        flex-direction: row !important;
        gap: 8px !important;
        justify-content: center !important;
    }
}

/* Make custom-pref buttons keep their defined widths */
.animated-footer-container-custompref .animated-footer-btn-save,
.animated-footer-container-custompref .animated-footer-btn-unsubscribe {
    flex: none !important;
}

/* Animated Footer Button Styles - Base class for common properties */
.animated-footer-btn,
.animated-footer-btn-save,
.animated-footer-btn-unsubscribe {
    cursor: pointer;
    border-radius: 999px;
    border: 1px solid #2a2a2a;
    color: #2a2a2a;
    background-color: #fff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    padding: 8px 16px;
    -webkit-appearance: none;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    width: 100%;
    max-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    box-sizing: border-box;
}

/* Variant-specific: unsubscribe is an anchor link */
.animated-footer-btn-unsubscribe {
    text-decoration: none;
}

/* Hover states */
.animated-footer-btn:hover,
.animated-footer-btn-save:hover,
.animated-footer-btn-unsubscribe:hover {
    background-color: #f5f5f5;
    border-color: #2a2a2a;
}

@media only screen and (min-width: 600px) {
    .animated-footer-btn,
    .animated-footer-btn-save,
    .animated-footer-btn-unsubscribe {
        width: auto;
        min-width: 280px;
    }
}

/* Custom Footer Container Override for Custom Pref */
.animated-footer-container-custompref {
    height: 112px;
    min-height: auto;
}

/* Mobile (default) - Custom Footer Container */
@media only screen and (max-width: 599px) {
    .animated-footer-container-custompref {
        height: 188px;
    }

    .animated-footer-overlay.is-active .animated-footer-container-custompref {
        padding-bottom: 0px;
    }

    .animated-footer-container-custompref .animated-footer-form {
        max-width: 92% !important;
        padding: 0 16px !important;
    }

    .animated-footer-btn,
    .animated-footer-btn-save,
    .animated-footer-btn-unsubscribe {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-height: 40px !important;
        flex: none !important;
    }

    .animated-footer-container-custompref .animated-footer-form-group {
        padding: 0 16px !important;
    }
}

/* Tablet (600px and up) - Custom Footer Container */
@media only screen and (min-width: 600px) {
    .animated-footer-container-custompref {
        height: 130px;
    }

    .animated-footer-overlay.is-active .animated-footer-container-custompref {
        padding-bottom: 0px;
    }
}

/* Desktop (768px and up) - Custom Footer Container */
@media only screen and (min-width: 768px) {
    .animated-footer-container-custompref {
        height: 140px;
    }

    .animated-footer-overlay.is-active .animated-footer-container-custompref {
        padding-bottom: 0px;
    }
}

/* Override Signed Up button height to match anchor buttons */
input.subscribed[type=checkbox]:checked + div.featured-button {
    padding: 8px 16px !important;
}

input.subscribed[type=checkbox]:checked + div.listing-button {
    padding: 8px 16px !important;
    height: auto !important;
    bottom: -16px !important;
}

/* DUAL SUBSCRIBED-STATE SYSTEMS
   ========================================
   Two parallel implementation patterns support subscribed button states:
   
   1. Checkbox-driven (Section 7): input.subscribed[type=checkbox]:checked + div.listing-button
      - Used when button is rendered adjacent to a hidden checkbox input
      - Relies on sibling combinator for state coupling
   
   2. Class-driven (below): div.listing-button.subscribed / div.featured-button.subscribed
      - Used when button is rendered independently (e.g., custom-pref page)
      - Subscribed state applied via JavaScript or server-side class assignment
      - No adjacent checkbox required
   
   IMPORTANT: Both systems must remain in sync with identical visual styling.
   Update both patterns when subscribed state appearance changes.
   ======================================== */

/* Force Signed Up state for subscribed buttons */
div.listing-button.subscribed {
    border: 1px solid #1E7F01 !important;
    background-color: #1E7F01 !important;
    width: fit-content !important;
    min-width: 140px !important;
    padding: 8px 16px !important;
    height: auto !important;
    bottom: -16px !important;
    border-radius: 32px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    line-height: 1 !important;
}

div.listing-button.subscribed span.button-icon:before {
    content: 'check' !important;
    color: #fff !important;
    font-size: 20px !important;
    margin-left: 14px !important;
}

div.listing-button.subscribed span.button-text:before {
    content: 'Signed Up' !important;
    color: #fff !important;
    font-size: 14px !important;
    margin: auto 16px auto 4px !important;
}

div.featured-button.subscribed {
    border: 1px solid #1E7F01 !important;
    background-color: #1E7F01 !important;
    width: fit-content !important;
    min-width: 140px !important;
    padding: 8px 16px !important;
    border-radius: 32px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    line-height: 1 !important;
}

div.featured-button.subscribed span.button-icon:before {
    content: 'check' !important;
    color: #fff !important;
    font-size: 20px !important;
    margin-left: 16px !important;
}

div.featured-button.subscribed span.button-text:before {
    content: 'Signed Up' !important;
    color: #fff !important;
    font-size: 14px !important;
    margin: auto 16px auto 4px !important;
}

/* ========================================
   15. OPT-OUT & REDIRECT PAGES
   Styles for Sailthru opt-out, confirmation, and redirect pages
   ======================================== */

/* Body styling for opt-out and redirect pages - sets font, color, background */
body.page-confirm,
body.page-redirect {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    color: {fontColor};
    background-color: #f5f5f5;
    padding: 10px;
}

/* ========================================
   15a. OPT-OUT PAGE LAYOUTS
   Container and layout styles for redirect pages
   ======================================== */

/* Opt-out page wrapper - main container */
#wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Main card container with flexbox layout and subtle shadow */
.card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #E1E1E1;
    border-radius: 4px;
    box-shadow: 2px 2px 2px 0px rgba(225, 225, 225, 0.7);
    padding: 40px 120px;
    margin: 10px 0;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

/* ========================================
   15b. OPT-OUT PAGE HEADER & CONTENT
   Logo, content, and text styling for redirect pages
   Note: Uses Sailthru template variables {fontColor}, {border_thickness}, {border_style}, {borderColor}
   ======================================== */

/* Logo container with customizable border (template variables process at render time) */
#logo {
    color: {fontColor};
    border-bottom: {border_thickness} {border_style} {borderColor};
    text-align: center;
    margin-bottom: 1rem;
}

/* Logo image sizing */
.logo {
    width: 15%;
    max-width: none;
}

/* Content container for opt-out pages */
#content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    margin: 0 auto 1rem auto;
    text-align: center;
    margin-bottom: 0 !important;
}

#content > div {
    margin-bottom: 0 !important;
}

#content > div p:last-child {
    margin-bottom: 0 !important;
}

/* Heading styles for redirect pages */
#content h1 {
    margin-bottom: 1.6rem;
}

#content h2 {
    margin: 16px 0 16px 0 !important;
}

/* Note/info text styling */
p.note {
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

/* ========================================
   15c. OPT-OUT PAGE LINKS, FORMS & LABELS
   ======================================== */

/* Global link styles for opt-out pages */
a {
    color: #4989F1;
    text-decoration: none;
    border: none;
}

/* Remove styling from linked images */
a img {
    text-decoration: none;
    border: none;
    outline: none;
}

/* Label styling for opt-out page forms */
label {
    cursor: pointer;
}

/* Form layout - centered flexbox column for opt-out pages */
form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    margin-top: 1.6rem;
    width: 100%;
}

/* ========================================
   15d. OPT-OUT PAGE BUTTON SYSTEM
   Button styles specifically for opt-out and redirect pages
   These are distinct from .animated-footer-btn and .featured-button used in newsletter listings
   ======================================== */

/* Primary button styling for both input and anchor elements on opt-out pages */
input.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #2A2A2A;
    background-color: #FFF;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #2a2a2a;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    -webkit-appearance: none;
    outline: none;
    position: relative;
    height: auto;
    box-sizing: border-box;
    line-height: 1;
    min-height: 40px;
}

/* Button hover state */
input.btn:hover,
a.btn:hover {
    background-color: #f5f5f5;
    border-color: #2a2a2a;
}

/* Button active/pressed state */
input.btn:active,
a.btn:active {
    background-color: #e8e8e8;
}

/* Button container - flexbox wrapper for multiple buttons */
p:has(a.btn) {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
    row-gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 1rem auto 0;
    padding: 0;
}

/* Individual button sizing for links with .btn class */
a.btn {
    width: auto;
    display: inline-flex;
    min-height: 40px;
}

/* Input button variant - ensures submit buttons match anchor button dimensions */
input.btn {
    width: auto;
    display: inline-flex;
    min-height: 40px;
}

/* Input button inside form - expands to fill form width on mobile */
form input.btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Tablet and desktop - form inputs inline with other buttons */
@media only screen and (min-width: 600px) {
    form input.btn {
        width: auto !important;
        max-width: none !important;
    }
}

/* ========================================
   13d. OPT-OUT PAGE RESPONSIVE DESIGN
   Mobile-first breakpoints for opt-out and redirect pages
   - Mobile: default (under 600px)
   - Desktop: 600px+ with max-width: 820px constraint
   ======================================== */

/* Mobile - default styles (under 600px) */
/* Base .card and .btn styles already defined above */

/* Desktop (600px+) - horizontal button layout, max-width constraint */
@media only screen and (min-width: 600px) {
    #wrapper {
        width: 90%;
        max-width: 820px;
        margin: 0 auto;
    }

    .card {
        padding-bottom: 40px;
    }

    #content {
        width: 100%;
        margin: 0 auto 1rem auto;
        text-wrap: balance;
    }

    #content p {
        width: 100% !important;
        text-wrap: balance !important;
    }

    div[style*="line-height: 1.6"] p {
        width: 100% !important;
        text-wrap: balance !important;
    }

    form {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: flex-start;
    }

    p:has(a.btn) {
        flex-direction: row !important;
        width: auto !important;
        margin: 0 !important;
        flex: 1;
    }

    input.btn,
    a.btn {
        display: flex;
        padding: 8px 16px;
        min-height: 40px;
        line-height: 1;
        box-sizing: border-box;
    }

    ul {
        margin: 0% 10% 0% 10%;
    }

    p.note {
        width: 100% !important;
        max-width: none !important;
        text-wrap: balance;
    }
}

/* Mobile (max-width: 599px) - full-width buttons on phones */
@media only screen and (max-width: 599px) {
    #wrapper {
        width: 100%;
        max-width: none;
    }

    .card {
        padding: 40px 15px;
    }

    .logo {
        width: 25%;
    }

    #content {
        margin: 0;
    }

    #content h1 {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    p:has(a.btn) {
        flex-direction: column !important;
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 1rem !important;
        margin-bottom: 0 !important;
    }

    input.btn,
    a.btn {
        display: flex !important;
        width: 100% !important;
        max-width: 92% !important;
        flex: none !important;
        box-sizing: border-box !important;
        min-height: 40px !important;
    }

    form input.btn {
        width: 100% !important;
        max-width: 92% !important;
    }
}
