/**
 * SMM Modern Section styles
 *
 * Shared layout + visual styles for every section that adopts the modern
 * showcase look (Weekend Study Session, Strategy Session, Live Training
 * Session, ...). Loaded inside the main theme (get_header/get_footer) and
 * enqueued at wp_head priority 99 so it overrides legacy quadro/nayma styles.
 *
 * Class names retain the historical `.smm-wss-*` prefix; "WSS" here reads as
 * "the modern showcase pattern" rather than literally the Weekend Study
 * Session feature. Markup that's genuinely WSS-only (the
 * `.smm-wss-thisweek*` rail) is grouped together near the bottom of the file
 * and flagged in a comment.
 *
 * Specificity & !important are used liberally on elements where the legacy
 * theme would otherwise win (page title, paragraph color, links, etc.).
 * Pattern mirrors page-products-modern.css.
 */

/* ===== Theme-level resets for modern section pages =====
   Drop the legacy `.single-post .site-main { padding-top: 40px; border-top:
   1px solid #dedede }` so the hero butts up against the brand nav. Scoped
   under our own `smm-modern-page` body class (added by smm_modern_body_class
   in inc/modern-section.php) so nothing else is affected. */
body.smm-modern-page .site-main,
body.smm-modern-page #main.site-main,
body.smm-modern-page #main,
body.smm-modern-page #primary,
body.smm-modern-page #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: 0 !important;
}

/* ===== Full-bleed breakout =====
   The theme wraps content inside #main.site-main with a reserved sidebar
   gutter (body class onsingle-*). We escape that wrapper so the WSS hero +
   layout span the full viewport, then re-constrain inner content with a
   centered container. */
.smm-wss {
    margin-top: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 0 !important;

    /* Design tokens — anchors sourced from modern-tokens.css so the showcase
       gradient + palette + elevation + radii stay in sync across every
       section we roll the modern look out to. Local var names kept for
       backwards-compatibility within this file. */
    --wss-font:        var(--smm-modern-font);
    --wss-ink:         var(--smm-modern-ink);
    --wss-ink-soft:    var(--smm-modern-ink-soft);
    --wss-muted:       var(--smm-modern-muted);
    --wss-accent:      var(--smm-modern-accent);
    --wss-accent-dark: var(--smm-modern-accent-dark);
    --wss-bg-soft:     var(--smm-modern-bg-soft);
    --wss-bg-hero:     var(--smm-modern-bg-hero);
    --wss-border:      var(--smm-modern-border);
    --wss-shadow:      var(--smm-modern-shadow);
    --wss-shadow-lg:   var(--smm-modern-shadow-lg);
    --wss-radius:      var(--smm-modern-radius);
    --wss-radius-sm:   var(--smm-modern-radius-sm);
    /* Brand-overridable accent colors used by individual elements. */
    --wss-hero-eyebrow:    #9fc8ef;
    --wss-card-placeholder: var(--smm-modern-card-placeholder);

    font-family: var(--wss-font) !important;
    color: var(--wss-ink) !important;
    line-height: 1.55 !important;
    background: #fff;
    text-align: left;
}

.smm-wss,
.smm-wss *,
.smm-wss *::before,
.smm-wss *::after {
    box-sizing: border-box;
}

/* ===== Brand variants =====
   The shared layout uses `var(--wss-*)` throughout. Adding a brand modifier
   class on the wrapper re-points the local variables to brand-specific
   tokens — no per-rule duplication, every section that opts into a brand
   inherits the new palette wherever the existing rules reference it. */

.smm-wss.smm-wss--omm {
    --wss-bg-hero:         var(--smm-modern-bg-hero-omm);
    --wss-accent:          var(--smm-modern-accent-omm);
    --wss-accent-dark:     var(--smm-modern-accent-dark-omm);
    --wss-hero-eyebrow:    var(--smm-modern-hero-eyebrow-omm);
    --wss-card-placeholder: var(--smm-modern-card-placeholder-omm);
}

.smm-wss p,
.smm-wss li,
.smm-wss span,
.smm-wss a,
.smm-wss strong,
.smm-wss em,
.smm-wss b,
.smm-wss small,
.smm-wss button,
.smm-wss input,
.smm-wss h1,
.smm-wss h2,
.smm-wss h3,
.smm-wss h4,
.smm-wss h5,
.smm-wss h6 {
    font-family: var(--wss-font) !important;
}

.smm-wss img {
    max-width: 100%;
    height: auto;
}

/* ===== Container ===== */

.smm-wss-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.smm-wss-main {
    padding: 0 0 80px;
    background: #fff;
}

/* ===== Hero ===== */

.smm-wss-hero {
    background: var(--wss-bg-hero);
    color: #fff;
    padding: 32px 0 36px;
    position: relative;
    overflow: hidden;
}

.smm-wss-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 38%;
    height: 200%;
    background: var(--smm-modern-hero-overlay);
    transform: rotate(15deg);
    pointer-events: none;
}


.smm-wss-hero__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.smm-wss-breadcrumbs {
    font-size: 13px;
    margin-bottom: 14px;
    opacity: 0.9;
    color: #fff !important;
}

.smm-wss-breadcrumbs a {
    color: #fff !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.smm-wss-breadcrumbs a:hover {
    border-bottom-color: #fff;
}

.smm-wss-breadcrumbs span {
    margin: 0 8px;
    opacity: 0.6;
    color: #fff !important;
}

.smm-wss-hero__eyebrow {
    text-transform: uppercase !important;
    letter-spacing: 0.18em !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    margin: 0 0 10px !important;
    color: var(--wss-hero-eyebrow) !important;
}

/* Title — needs heavy specificity to beat the legacy .entry-title rules */
.smm-wss .smm-wss-hero__title,
body .smm-wss .smm-wss-hero__title,
.smm-wss h1.smm-wss-hero__title {
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: clamp(26px, 3.6vw, 40px) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: #ffffff !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
    letter-spacing: -0.01em;
    background: none !important;
    border: 0 !important;
}

.smm-wss-hero__meta {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.92) !important;
    margin: 0 !important;
}

.smm-wss-hero__mentor {
    font-weight: 600 !important;
    color: #fff !important;
}

.smm-wss-hero__sep {
    margin: 0 10px;
    opacity: 0.6;
}

/* Video utility row: transcript + print, tight to the video, right-aligned. */
.smm-wss-video__utils {
    max-width: 980px;
    width: calc(100% - 48px);
    margin: 10px auto 16px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 22px;
    font-size: 13px;
    line-height: 1.2;
}

.smm-wss-video__util {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: var(--wss-muted) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.smm-wss-video__util--transcript {
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-color: rgba(91, 107, 123, 0.4) !important;
}

.smm-wss-video__util:hover,
.smm-wss-video__util--transcript:hover {
    color: var(--wss-accent) !important;
    text-decoration-color: var(--wss-accent) !important;
}

/* Tame the Print Post and Page plugin's button so it sits cleanly in the row. */
.smm-wss-video__utils .h5ab-print-button-container {
    float: none !important;
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
}

.smm-wss-video__utils .h5ab-print-button {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--wss-muted) !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    border: 0 !important;
    transition: color 0.15s ease;
}

.smm-wss-video__utils .h5ab-print-button:hover {
    color: var(--wss-accent) !important;
}

.smm-wss-video__utils .h5ab-print-button .fa,
.smm-wss-video__utils .h5ab-print-button .fa-print {
    color: inherit !important;
    font-size: 14px !important;
    margin-right: 2px;
}

/* ===== Video ===== */

.smm-wss-video {
    margin: 44px auto 0;
    max-width: 980px;
    width: calc(100% - 48px);
    position: relative;
    z-index: 2;
}

.smm-wss-video__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--wss-radius);
    overflow: hidden;
    box-shadow: var(--wss-shadow-lg);
}

.smm-wss-video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== Article content ===== */

.smm-wss-content {
    max-width: 960px;
    margin: 0 auto 48px;
    font-size: 17px !important;
    color: var(--wss-ink-soft) !important;
    line-height: 1.7 !important;
}

/* When the video + utility row are hidden (e.g. members-only post viewed by a
   non-member, where the FitzMember gate replaces the_content), the content
   area would otherwise butt right up against the hero. :first-child only
   triggers when there's no video block above. */
.smm-wss-container > .smm-wss-content:first-child {
    margin-top: 32px;
}

.smm-wss-content h2,
.smm-wss-content h3,
.smm-wss-content h4 {
    color: var(--wss-ink) !important;
    font-weight: 700 !important;
    margin: 1.6em 0 0.55em !important;
    line-height: 1.25 !important;
    letter-spacing: -0.005em;
    background: none !important;
    padding: 0 !important;
    border: 0 !important;
}

.smm-wss-content h2 { font-size: 28px !important; }
.smm-wss-content h3 { font-size: 22px !important; }
.smm-wss-content h4 { font-size: 18px !important; }

.smm-wss-content p,
.smm-wss-content ul,
.smm-wss-content ol {
    margin: 0 0 1.15em !important;
    color: var(--wss-ink-soft) !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
}

.smm-wss-content ul,
.smm-wss-content ol {
    padding-left: 1.3em !important;
}

.smm-wss-content li {
    margin-bottom: 0.45em !important;
    color: var(--wss-ink-soft) !important;
}

.smm-wss-content a {
    color: var(--wss-accent) !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.smm-wss-content a:hover {
    color: var(--wss-accent-dark) !important;
}

.smm-wss-content strong,
.smm-wss-content b {
    color: var(--wss-ink) !important;
    font-weight: 700 !important;
}

.smm-wss-content blockquote {
    border-left: 4px solid var(--wss-accent);
    background: var(--wss-bg-soft);
    padding: 14px 20px !important;
    margin: 1.4em 0 !important;
    border-radius: 0 var(--wss-radius-sm) var(--wss-radius-sm) 0;
    color: var(--wss-ink-soft) !important;
}

.smm-wss-content iframe,
.smm-wss-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--wss-radius-sm);
    margin: 1em 0;
}

/* ===== CTA banner ===== */

.smm-wss-cta-banner {
    max-width: 1080px;
    margin: 40px auto !important;
    border-radius: var(--wss-radius);
    color: #fff !important;
    overflow: hidden;
    box-shadow: var(--wss-shadow);
    list-style: none;
    padding: 0;
}

.smm-wss-cta-banner__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: center;
    padding: 30px 36px;
}

.smm-wss-cta-banner__copy {
    min-width: 0;
}

.smm-wss-cta-banner__eyebrow {
    text-transform: uppercase !important;
    letter-spacing: 0.16em !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    opacity: 0.88 !important;
    margin: 0 0 6px !important;
    color: #fff !important;
}

/* Banner headline — heavy specificity, beats theme h3 rules */
.smm-wss .smm-wss-cta-banner__headline,
.smm-wss h3.smm-wss-cta-banner__headline,
body .smm-wss .smm-wss-cta-banner__headline {
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
    background: none !important;
    border: 0 !important;
}

.smm-wss-cta-banner__subtitle {
    margin: 0 0 8px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em;
}

.smm-wss-cta-banner__description {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.smm-wss-cta-banner__action {
    text-align: right;
}

/* Subtle gradients on the form CTAs so they feel polished, not flat. */
.smm-wss-cta-banner--fitz-in-five {
    background: linear-gradient(135deg, #1A3E75 0%, #122d56 100%) !important;
}

.smm-wss-cta-banner--newsletter {
    background: linear-gradient(135deg, #3468B1 0%, #285390 100%) !important;
}

.smm-wss-cta-banner__button {
    display: inline-block !important;
    background: #fff !important;
    color: var(--wss-ink) !important;
    text-decoration: none !important;
    padding: 12px 24px !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border: none !important;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.smm-wss-cta-banner__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    color: var(--wss-ink) !important;
}

/* Form CTA variants (fitz-in-five, newsletter) — stacked layout inside the
   right column: name+email row, then green submit, then privacy line. */
.smm-wss-cta-form {
    display: block;
    margin: 0 !important;
    width: 100%;
    max-width: 380px;
    margin-left: auto !important;
}

.smm-wss-cta-form__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

/* Visually-hidden labels — present in the DOM for screen readers / voice
   input but invisible to sighted users (placeholders already convey the
   field purpose). Standard a11y "sr-only" pattern. */
.smm-wss-cta-form__sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.smm-wss-cta-form input[type="text"],
.smm-wss-cta-form input[type="email"] {
    width: 100%;
    min-width: 0;
    padding: 11px 14px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--wss-ink) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.smm-wss-cta-form input[type="text"]::placeholder,
.smm-wss-cta-form input[type="email"]::placeholder {
    color: #94a3b8 !important;
    font-weight: 400;
}

.smm-wss-cta-form input[type="text"]:focus,
.smm-wss-cta-form input[type="email"]:focus {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 1px;
    background: #fff !important;
}

/* Vibrant green submit, full width below the fields. */
.smm-wss-cta-form__submit {
    display: block !important;
    width: 100%;
    padding: 12px 18px !important;
    border: none !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-position 0.15s ease;
}

.smm-wss-cta-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.45);
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%) !important;
    color: #fff !important;
}

.smm-wss-cta-form__privacy {
    margin: 10px 0 0 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 12px !important;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ===== "This week from {Mentor}" ===== */

.smm-wss-thisweek {
    max-width: 1080px;
    margin: 56px auto 0 !important;
    padding: 0 24px;
}

.smm-wss-thisweek__header {
    border-top: 1px solid var(--wss-border);
    padding-top: 36px;
    margin-bottom: 28px;
}

/* Section title — heavy specificity */
.smm-wss .smm-wss-thisweek__title,
.smm-wss h2.smm-wss-thisweek__title,
body .smm-wss .smm-wss-thisweek__title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: var(--wss-ink) !important;
    background: none !important;
    border: 0 !important;
    letter-spacing: -0.01em;
}

.smm-wss-thisweek__empty {
    color: var(--wss-muted) !important;
    font-style: italic;
    background: var(--wss-bg-soft);
    border-radius: var(--wss-radius);
    padding: 28px !important;
    text-align: center;
    margin: 0 !important;
}

.smm-wss-thisweek__group + .smm-wss-thisweek__group {
    margin-top: 40px;
}

/* Group label — eyebrow style */
.smm-wss .smm-wss-thisweek__group-title,
.smm-wss h3.smm-wss-thisweek__group-title,
body .smm-wss .smm-wss-thisweek__group-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.16em !important;
    color: var(--wss-muted) !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    line-height: 1.3 !important;
}

.smm-wss-card-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.smm-wss-card-grid > li {
    list-style: none !important;
    margin: 0 !important;
}

.smm-wss-card {
    background: #fff;
    border: 1px solid var(--wss-border);
    border-radius: var(--wss-radius);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.smm-wss-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--wss-shadow);
    border-color: #cfdbe8;
}

.smm-wss-card__link {
    display: block !important;
    color: inherit !important;
    text-decoration: none !important;
}

.smm-wss-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    background-color: var(--wss-bg-soft);
    background-size: cover;
    background-position: center;
}

.smm-wss-card__image--placeholder {
    background: var(--wss-card-placeholder);
}

.smm-wss-card__body {
    display: block;
    padding: 14px 16px 18px;
}

.smm-wss-card__date {
    display: block;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--wss-accent) !important;
    margin-bottom: 6px;
    line-height: 1.3;
}

.smm-wss-card__title {
    display: block;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--wss-ink) !important;
}

/* ===== Marketing-hero (conversion-led landings, e.g. /free-chart-videos/) =====

   Sits between the standard hero and the main grid. Full-bleed (inherits the
   parent's breakout) with a contrasting mid-tone gradient that bridges the
   dark hero above and the white grid below. Inside, a centered white card
   carries the lead copy + signup form so the conversion target is prominent
   but visually anchored.

   Only renders for non-members via the shared landing template's gating. */

.smm-wss-marketing-hero {
    background: linear-gradient(180deg, var(--smm-modern-bg-soft) 0%, #ffffff 100%);
    padding: 36px 24px 44px;
    position: relative;
}

.smm-wss-marketing-hero__inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.smm-wss-marketing-hero__intro {
    margin: 0 auto 22px;
}

.smm-wss-marketing-hero__eyebrow {
    text-transform: uppercase !important;
    letter-spacing: 0.18em !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    color: var(--wss-accent) !important;
    margin: 0 0 8px !important;
}

.smm-wss .smm-wss-marketing-hero__headline,
.smm-wss h2.smm-wss-marketing-hero__headline,
body .smm-wss .smm-wss-marketing-hero__headline {
    font-size: clamp(22px, 3vw, 30px) !important;
    font-weight: 700 !important;
    line-height: 1.18 !important;
    color: var(--wss-ink) !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    letter-spacing: -0.01em;
}

.smm-wss-marketing-hero__description {
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: var(--wss-ink-soft) !important;
    margin: 0 auto !important;
    max-width: 580px;
}

.smm-wss-marketing-hero__form-card {
    background: #fff;
    border-radius: var(--smm-modern-radius);
    box-shadow: var(--smm-modern-shadow-lg);
    padding: 22px 22px 20px;
    max-width: 540px;
    margin: 0 auto;
    border: 1px solid var(--wss-border);
}

.smm-wss-marketing-hero__lead {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--wss-ink-soft) !important;
    margin: 0 0 14px !important;
    text-align: center;
}

/* Promote the embedded form from compact banner style to centered
   full-width-stacked. The form structure is already from
   smm_modern_render_cta_form() — we override layout in this context. */

.smm-wss-marketing-hero .smm-wss-cta-form {
    max-width: none !important;
    margin: 0 !important;
}

.smm-wss-marketing-hero .smm-wss-cta-form__fields {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.smm-wss-marketing-hero .smm-wss-cta-form input[type="text"],
.smm-wss-marketing-hero .smm-wss-cta-form input[type="email"] {
    background: var(--wss-bg-soft) !important;
    border: 1px solid var(--wss-border) !important;
    color: var(--wss-ink) !important;
    padding: 11px 14px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
}

.smm-wss-marketing-hero .smm-wss-cta-form input[type="text"]::placeholder,
.smm-wss-marketing-hero .smm-wss-cta-form input[type="email"]::placeholder {
    color: #8a96a4 !important;
}

.smm-wss-marketing-hero .smm-wss-cta-form input[type="text"]:focus,
.smm-wss-marketing-hero .smm-wss-cta-form input[type="email"]:focus {
    outline: 2px solid var(--wss-accent) !important;
    outline-offset: 0;
    background: #fff !important;
}

.smm-wss-marketing-hero .smm-wss-cta-form__submit {
    padding: 12px 22px !important;
    font-size: 15px !important;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4) !important;
}

.smm-wss-marketing-hero .smm-wss-cta-form__privacy {
    color: var(--wss-muted) !important;
    margin-top: 10px !important;
    font-size: 12px !important;
}

@media (max-width: 520px) {
    .smm-wss-marketing-hero {
        padding: 28px 20px 36px;
    }
    .smm-wss-marketing-hero__form-card {
        padding: 18px 16px 16px;
    }
    .smm-wss-marketing-hero .smm-wss-cta-form__fields {
        grid-template-columns: 1fr;
    }
}

/* ===== Responsive ===== */

@media (max-width: 1080px) {
    .smm-wss-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .smm-wss-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .smm-wss-cta-banner__inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px 22px;
    }
    .smm-wss-cta-banner__action,
    .smm-wss-cta-form {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .smm-wss-hero {
        padding: 36px 0 56px;
    }
    .smm-wss-video {
        margin-top: -24px;
    }
    .smm-wss-card-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Landing page (/weekend-study-session/) ===== */

.smm-wss-landing__hero-tagline {
    margin: 4px 0 0 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
    max-width: 640px;
}

.smm-wss-landing__main {
    padding: 40px 0 80px;
}

/* Featured-latest card: large horizontal card. */
.smm-wss-landing__featured {
    max-width: 960px;
    margin: 0 auto 56px;
    border-radius: var(--wss-radius);
    overflow: hidden;
    box-shadow: var(--wss-shadow-lg);
    background: #fff;
    border: 1px solid var(--wss-border);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.smm-wss-landing__featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(10, 30, 60, 0.22);
}

.smm-wss-landing__featured-link {
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 0;
    text-decoration: none !important;
    color: inherit !important;
    min-height: 320px;
}

.smm-wss-landing__featured-image {
    display: block;
    background-color: var(--wss-bg-soft);
    background-size: cover;
    background-position: center;
    min-height: 240px;
}

.smm-wss-landing__featured-image--placeholder {
    background: var(--wss-card-placeholder);
}

.smm-wss-landing__featured-body {
    display: flex !important;
    flex-direction: column;
    padding: 32px 36px;
    gap: 10px;
}

.smm-wss-landing__featured-eyebrow {
    text-transform: uppercase !important;
    letter-spacing: 0.18em !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    color: var(--wss-accent) !important;
}

.smm-wss .smm-wss-landing__featured-title,
.smm-wss span.smm-wss-landing__featured-title {
    display: block !important;
    font-size: clamp(22px, 2.6vw, 30px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: var(--wss-ink) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    letter-spacing: -0.005em;
}

.smm-wss-landing__featured-meta {
    display: block;
    color: var(--wss-muted) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.smm-wss-landing__featured-mentor {
    color: var(--wss-ink-soft) !important;
    font-weight: 600 !important;
}

.smm-wss-landing__featured-sep {
    margin: 0 8px;
    opacity: 0.5;
}

.smm-wss-landing__featured-excerpt {
    display: block;
    color: var(--wss-ink-soft) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-top: 2px;
}

.smm-wss-landing__featured-cta {
    display: inline-block;
    color: var(--wss-accent) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-top: 6px;
}

.smm-wss-landing__featured-link:hover .smm-wss-landing__featured-cta {
    color: var(--wss-accent-dark) !important;
}

/* Previous weeks section. */
.smm-wss-landing__prior {
    max-width: 1080px;
    margin: 0 auto;
}

.smm-wss .smm-wss-landing__prior-title-section,
.smm-wss h2.smm-wss-landing__prior-title-section,
body .smm-wss .smm-wss-landing__prior-title-section {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--wss-ink) !important;
    margin: 0 0 24px !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid var(--wss-border);
    background: none !important;
    line-height: 1.2 !important;
    letter-spacing: -0.005em;
}

.smm-wss-landing__prior-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.smm-wss-landing__prior-item {
    list-style: none !important;
    margin: 0 !important;
}

.smm-wss-landing__prior-card {
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
    background: #fff;
    border: 1px solid var(--wss-border);
    border-radius: var(--wss-radius);
    overflow: hidden;
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.smm-wss-landing__prior-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--wss-shadow);
    border-color: #cfdbe8;
}

.smm-wss-landing__prior-image {
    display: block;
    aspect-ratio: 16 / 9;
    background-color: var(--wss-bg-soft);
    background-size: cover;
    background-position: center;
}

.smm-wss-landing__prior-image--placeholder {
    background: var(--wss-card-placeholder);
}

.smm-wss-landing__prior-body {
    display: block;
    padding: 16px 18px 20px;
}

.smm-wss-landing__prior-date {
    display: block;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--wss-accent) !important;
    margin-bottom: 6px;
}

.smm-wss-landing__prior-title {
    display: block;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: var(--wss-ink) !important;
    margin-bottom: 6px;
}

.smm-wss-landing__prior-mentor {
    display: block;
    font-size: 13px !important;
    color: var(--wss-muted) !important;
    font-weight: 500 !important;
}

/* Pagination. */
.smm-wss-landing__pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.smm-wss-landing__pagination ul {
    display: flex !important;
    flex-wrap: wrap;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 6px;
}

.smm-wss-landing__pagination li {
    list-style: none !important;
    margin: 0 !important;
}

.smm-wss-landing__pagination a,
.smm-wss-landing__pagination span {
    display: inline-flex !important;
    align-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--wss-border);
    background: #fff;
    color: var(--wss-ink-soft) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.smm-wss-landing__pagination a:hover {
    background: var(--wss-bg-soft);
    border-color: #cfdbe8;
    color: var(--wss-accent) !important;
}

.smm-wss-landing__pagination .current {
    background: var(--wss-accent) !important;
    border-color: var(--wss-accent) !important;
    color: #fff !important;
}

/* Empty state. */
.smm-wss-landing__empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--wss-muted) !important;
    font-style: italic;
}

/* Responsive. */
@media (max-width: 820px) {
    .smm-wss-landing__featured-link {
        grid-template-columns: 1fr;
    }
    .smm-wss-landing__featured-image {
        min-height: 200px;
        aspect-ratio: 16 / 9;
    }
    .smm-wss-landing__prior-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .smm-wss-landing__featured-body {
        padding: 24px;
    }
    .smm-wss-landing__prior-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
 * Member home pages (SMM / OMM / DUAL)
 *
 * The 3 member home pages render via the modern member-home renderer
 * (template-parts/member-home/home.php). Same `quadro_mod_temp_modules`
 * composition as the legacy template, modern adapters for canvas (full-bleed
 * banner) and recents (3-col brand-tinted grid) module types.
 *
 * Brand-divider band runs full-width to break up the DUAL composition into
 * clearly attributed SMM / OMM / CMM runs.
 * ========================================================================== */

body.smm-member-home-page #main,
body.smm-member-home-page #main.site-main,
body.smm-member-home-page #content,
body.smm-member-home-page #primary,
body.smm-member-home-page .site-content,
body.smm-member-home-page .site-main {
    padding-top: 0 !important;
    border-top: 0 !important;
}

body.smm-member-home-page .page-header,
body.smm-member-home-page .modular-wrapper,
body.smm-member-home-page #content.modular-modules {
    display: none;
}

.smm-member-home {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--smm-modern-ink);
    --mh-accent: var(--smm-modern-accent);
    --mh-accent-dark: var(--smm-modern-accent-dark);
    --mh-bg-soft: var(--smm-modern-bg-soft, #E7F0FA);
    --mh-card-radius: 16px;
    --mh-card-shadow: 0 6px 20px rgba(15, 35, 64, 0.08);
    --mh-card-shadow-hover: 0 14px 36px rgba(15, 35, 64, 0.14);
}

.smm-member-home,
.smm-member-home *,
.smm-member-home *::before,
.smm-member-home *::after {
    box-sizing: border-box;
}

.smm-member-home__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- Canvas modules (banners) ------------------------------------------- */

.smm-member-home__module--canvas {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}
.smm-member-home__module--canvas > * {
    width: 100%;
}

/* Banner module's own inline CSS handles internal styling; the wrapper just
   gives it a full-width breakout. Some banners style themselves against the
   legacy `.quadro-mod` wrapper class — preserve that selector for
   compatibility when the banner renders inside the modern path. */
.smm-member-home__module--canvas.quadro-mod,
.smm-member-home__module--canvas .quadro-mod {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

/* ----- Brand-divider band ------------------------------------------------- */

.smm-member-home__brand-divider {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    padding: 36px 0 28px;
    margin-top: 48px;
    margin-bottom: 0;
    background: var(--smm-modern-bg-hero);
    color: #fff;
    text-align: center;
    border-top: 4px solid var(--mh-accent);
    overflow: hidden;
}

/* Two-tone slash overlay — mirrors `.smm-wss-hero::before` so the brand
   band reads like an extension of the section-hero look rather than a
   flat gradient. Same overlay token, same 15° rotation. */
.smm-member-home__brand-divider::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 38%;
    height: 200%;
    background: var(--smm-modern-hero-overlay);
    transform: rotate(15deg);
    pointer-events: none;
    z-index: 0;
}
.smm-member-home__brand-divider .smm-member-home__inner {
    position: relative;
    z-index: 1;
}
.smm-member-home__brand-divider--smm {
    background: var(--smm-modern-bg-hero);
    border-top-color: var(--smm-modern-accent);
}
.smm-member-home__brand-divider--omm {
    background: var(--smm-modern-bg-hero-omm);
    border-top-color: var(--smm-modern-accent-omm);
}
.smm-member-home__brand-divider--cmm {
    background: var(--smm-modern-bg-hero-cmm);
    border-top-color: var(--smm-modern-accent-cmm);
}
.smm-member-home__brand-divider .smm-member-home__inner {
    max-width: 1180px;
}
/* The theme's style.css enforces `h2 { color: #10283A !important; }` site-
   wide — defeat it on the divider band and section titles with explicit
   `!important`, scoped to our wrapper so we don't touch anything else. */
.smm-member-home .smm-member-home__brand-eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.95;
    color: #fff !important;
}
.smm-member-home .smm-member-home__brand-divider--smm .smm-member-home__brand-eyebrow {
    color: var(--smm-modern-hero-eyebrow) !important;
}
.smm-member-home .smm-member-home__brand-divider--omm .smm-member-home__brand-eyebrow {
    color: var(--smm-modern-hero-eyebrow-omm) !important;
}
.smm-member-home .smm-member-home__brand-divider--cmm .smm-member-home__brand-eyebrow {
    color: var(--smm-modern-hero-eyebrow-cmm) !important;
}
.smm-member-home .smm-member-home__brand-title {
    margin: 0;
    font-size: clamp(28px, 3.4vw, 40px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    line-height: 1.1 !important;
    color: #fff !important;
}

/* ----- Recents module (3-col grid) --------------------------------------- */

.smm-member-home__module--recents {
    padding: 48px 0;
}
.smm-member-home__module--recents.smm-member-home__module--smm {
    --mh-accent: var(--smm-modern-accent);
    --mh-accent-dark: var(--smm-modern-accent-dark);
}
.smm-member-home__module--recents.smm-member-home__module--omm {
    --mh-accent: var(--smm-modern-accent-omm);
    --mh-accent-dark: var(--smm-modern-accent-dark-omm);
}
.smm-member-home__module--recents.smm-member-home__module--cmm {
    --mh-accent: var(--smm-modern-accent-cmm);
    --mh-accent-dark: var(--smm-modern-accent-dark-cmm);
}

.smm-member-home__section-header {
    margin-bottom: 28px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}
.smm-member-home .smm-member-home__section-title {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 30px) !important;
    font-weight: 700 !important;
    color: var(--smm-modern-ink) !important;
    letter-spacing: -0.01em;
    line-height: 1.2 !important;
    position: relative;
    padding-left: 14px;
}
.smm-member-home__section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 2px;
    background: var(--mh-accent);
}

/* Brand-divider band immediately precedes its first recents module — pull
   it tight up against the band so it reads as one chapter, not two. */
.smm-member-home__brand-divider + .smm-member-home__module--recents {
    padding-top: 32px;
}

.smm-member-home__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.smm-member-home__card {
    margin: 0;
    padding: 0;
    list-style: none;
}
.smm-member-home__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: var(--mh-card-radius);
    overflow: hidden;
    box-shadow: var(--mh-card-shadow);
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.smm-member-home__card-link:hover,
.smm-member-home__card-link:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--mh-card-shadow-hover);
}
.smm-member-home__card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--mh-bg-soft);
    background-size: cover;
    background-position: center;
}
.smm-member-home__card-image--placeholder {
    background: var(--smm-modern-card-placeholder);
}
.smm-member-home__module--omm .smm-member-home__card-image--placeholder {
    background: var(--smm-modern-card-placeholder-omm);
}
.smm-member-home__module--cmm .smm-member-home__card-image--placeholder {
    background: var(--smm-modern-card-placeholder-cmm);
}
.smm-member-home__card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px 24px;
    flex: 1;
}
.smm-member-home__card-date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mh-accent-dark);
}
.smm-member-home .smm-member-home__card-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--smm-modern-ink);
}
.smm-member-home .smm-member-home__card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--smm-modern-muted);
}

/* ----- Gate (non-members) ------------------------------------------------ */

.smm-member-home__gate {
    max-width: 720px;
    margin: 80px auto;
    padding: 32px;
    text-align: center;
    border-radius: var(--mh-card-radius);
    background: #fff;
    box-shadow: var(--mh-card-shadow);
}
.smm-member-home__gate h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
}
.smm-member-home__gate a {
    color: var(--mh-accent-dark);
    font-weight: 600;
}

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

@media (max-width: 960px) {
    .smm-member-home__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .smm-member-home__grid {
        grid-template-columns: 1fr;
    }
    .smm-member-home__module--recents {
        padding: 32px 0;
    }
    .smm-member-home__brand-divider {
        padding: 28px 0 22px;
        margin-top: 32px;
    }
}

/* ----- WSS spotlight (single hero-ish featured card) ---------------------
 * Sits between the SMM brand divider and the SMM Videos rail on SMM/DUAL
 * Home. Same horizontal-split silhouette as the section landing's
 * featured-latest card, namespaced under member-home so the two layers
 * stay independent.
 */
.smm-member-home__spotlight {
    padding: 32px 0 0;
}
.smm-member-home__spotlight-card {
    max-width: 1080px;
    margin: 0 auto;
    border-radius: var(--mh-card-radius);
    overflow: hidden;
    box-shadow: var(--smm-modern-shadow-lg);
    background: #fff;
    border: 1px solid var(--smm-modern-border);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.smm-member-home__spotlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(10, 30, 60, 0.22);
}
.smm-member-home__spotlight-link {
    display: grid !important;
    /* Image cell sized to fit the standard WSS/SS/FiF cover artwork
       (~768x568, ~4:3) without cropping the top logo or the bottom date
       badge. Image cell gets the wider column. */
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 0;
    text-decoration: none !important;
    color: inherit !important;
    min-height: 400px;
}
.smm-member-home__spotlight-image {
    display: block;
    /* Match the artwork's deep-navy background so any letterboxing blends
       in with the image rather than showing a soft-gray sliver. Brand
       text-dark from the SMM palette (p.34). */
    background-color: var(--smm-modern-ink-deep);
    background-size: cover;
    background-position: center;
    min-height: 360px;
}
.smm-member-home__spotlight-image--placeholder {
    background: var(--smm-modern-card-placeholder);
}
.smm-member-home__spotlight-body {
    display: flex !important;
    flex-direction: column;
    padding: 28px 32px;
    gap: 10px;
}
.smm-member-home .smm-member-home__spotlight-eyebrow {
    text-transform: uppercase !important;
    letter-spacing: 0.18em !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    color: var(--smm-modern-accent) !important;
}
.smm-member-home .smm-member-home__spotlight-title {
    display: block !important;
    font-size: clamp(22px, 2.6vw, 30px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: var(--smm-modern-ink) !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: -0.005em;
}
.smm-member-home .smm-member-home__spotlight-meta {
    display: block;
    color: var(--smm-modern-muted) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}
.smm-member-home .smm-member-home__spotlight-mentor {
    color: var(--smm-modern-ink-soft) !important;
    font-weight: 600 !important;
}
.smm-member-home__spotlight-sep {
    margin: 0 8px;
    opacity: 0.5;
}
.smm-member-home .smm-member-home__spotlight-excerpt {
    display: block;
    color: var(--smm-modern-ink-soft) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-top: 2px;
}
.smm-member-home .smm-member-home__spotlight-cta {
    display: inline-block;
    color: var(--smm-modern-accent) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-top: auto;
    padding-top: 12px;
}
.smm-member-home__spotlight-link:hover .smm-member-home__spotlight-cta {
    color: var(--smm-modern-accent-dark) !important;
}

/* When the spotlight is the immediate sibling after a brand divider, the
   divider's bottom padding already covers the gap — pull the spotlight up
   slightly so it reads as the "anchor" beneath the divider. */
.smm-member-home__brand-divider + .smm-member-home__spotlight {
    padding-top: 24px;
}
/* And tighten the gap between the spotlight and the first recents rail
   that follows it (otherwise the rail's own padding-top doubles up). */
.smm-member-home__spotlight + .smm-member-home__module--recents {
    padding-top: 24px;
}

@media (max-width: 720px) {
    .smm-member-home__spotlight-link {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .smm-member-home__spotlight-image {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }
    .smm-member-home__spotlight-body {
        padding: 24px;
    }
}
