/* ============================================================
 * Momentum OP - Blog Page  (home.css v1.0.1)
 * Template: home.php (WordPress Posts page, /blog/)  |  Root: .mop-blog-list
 * Loaded on the Blog page only (home.php section 0, or
 * inc/base-template-assets.php when it loads home.css itself).
 * Inherits: MOP-DSM-20261015 (Avada Global Options), MOP-RCM-20261016
 * (mop-btn-arrow, mop-btn-outline, mop-eyebrow, mop-rise, mop-reveal,
 * mop-bars, --mop-ease). This file holds only Blog page layout deltas.
 *
 *  1. Page shell (full-width content area on this page only)
 *  2. Root and shared section rhythm
 *  3. Page top (heading with the image beside it)
 *  4. Latest post
 *  5. Articles heading and controls (search, sort, chips, count)
 *  6. Article cards
 *  7. No-results state and Load More
 *  8. Closing card
 *  9. Hover, focus and reduced motion
 * ============================================================ */


/* ============================================================
 * 1. PAGE SHELL
 * Avada wraps the page in #main > .fusion-row at Site Width. Each
 * section centers its own 1375px row with 32px side padding, so on this
 * page only the content row is let out to the full width (no 100vw, so
 * no sideways scroll). The selector keys on the root; the doubled #main
 * ID outranks every Avada #main rule.
 * ============================================================ */

html body:has(.mop-blog-list) #main#main {
    padding-right: 0;
    padding-left: 0;
}

html body:has(.mop-blog-list) #main#main > .fusion-row {
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

/* Avada lays #main > .fusion-row out as a wrapping flex row, so this root
 * is a flex item, and a flex item never shrinks below its widest content
 * by default. The reviews carousel (and the Compare table on /classes/)
 * have very wide content, which stretched the whole page to about 1440px
 * on phones. min-width: 0 keeps the root at the row's width; wide widgets
 * clip or scroll inside their own boxes instead. */
html body:has(.mop-blog-list) #main#main > .fusion-row > .mop-blog-list {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
}


/* ============================================================
 * 2. ROOT AND SECTION RHYTHM
 * ============================================================ */

.mop-blog-list {
    --mop-blog-list-y: clamp(112px, 14vw, 192px);
    --mop-blog-list-media: #15123a; /* DSM 15 media placeholder (local component color) */
    --mop-blog-list-ring: hsla(var(--awb-color9-h), var(--awb-color9-s), var(--awb-color9-l), .2);
    --mop-blog-list-edge: hsla(var(--awb-color9-h), var(--awb-color9-s), var(--awb-color9-l), .1);
    color: var(--awb-color8);
    line-height: normal;
}

.mop-blog-list :where(h1, h2, h3, p, ul) {
    margin: 0;
}

.mop-blog-list :where(ul) {
    padding: 0;
    list-style: none;
}

.mop-blog-list :where(li) {
    margin: 0;
}

.mop-blog-list :where(li)::before {
    content: none;
}

/* Filtered-out cards, the Latest post, the Load More row and the
   no-results state use the hidden attribute; flex and grid display rules
   must not override it. */
.mop-blog-list [hidden] {
    display: none !important;
}

.mop-blog-list__section {
    padding: 0 32px var(--mop-blog-list-y);
    scroll-margin-top: 76px;
}

.mop-blog-list__inner {
    max-width: 1375px;
    margin: 0 auto;
}

.mop-blog-list__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.mop-blog-list__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-radius: 24px;
    background: var(--mop-blog-list-media);
}

.mop-blog-list__img,
.mop-blog-list picture .mop-blog-list__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}


/* ============================================================
 * 3. PAGE TOP
 * The header floats over the page, so the top padding includes it.
 * At 1040px and wider the heading sits in the left half and the Hero
 * Image in the right half, on the same two columns as the Latest post
 * below (so the image lines up over the Latest post text). Narrower
 * screens show the heading only.
 * ============================================================ */

.mop-blog-list__top {
    padding: clamp(160px, 18vw, 220px) 32px clamp(64px, 8vw, 96px);
}

.mop-blog-list__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.mop-blog-list__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    min-width: 0;
}

.mop-blog-list .mop-blog-list__h1 {
    max-width: 1100px;
    color: var(--awb-color8);
    font-size: clamp(48px, 7vw, 104px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.mop-blog-list .mop-blog-list__lede {
    max-width: 620px;
    color: var(--awb-color11);
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.55;
    text-wrap: pretty;
}

.mop-blog-list__hero-media {
    position: relative;
    display: none;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-radius: 28px;
    background: var(--mop-blog-list-media);
}

@media (min-width: 1040px) {
    .mop-blog-list__top--media .mop-blog-list__hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mop-blog-list__hero-media {
        display: block;
    }
}


/* ============================================================
 * 4. LATEST POST
 * Image left, text right at 1040px and wider; stacked below (design:
 * auto-fit columns of at least 460px).
 * ============================================================ */

.mop-blog-list .mop-blog-list__feat {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    color: var(--awb-color9);
    text-decoration: none;
}

@media (min-width: 1040px) {
    .mop-blog-list .mop-blog-list__feat {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mop-blog-list .mop-blog-list__media--feat {
    border-radius: 28px;
}

.mop-blog-list__feat-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.mop-blog-list__cat {
    color: var(--awb-color5);
    font-size: 15px;
    font-weight: 600;
    line-height: normal;
}

.mop-blog-list .mop-blog-list__feat-title {
    color: var(--awb-color9);
    font-size: clamp(34px, 3.8vw, 52px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.035em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.mop-blog-list__feat-text {
    max-width: 520px;
    color: var(--awb-color11);
    font-size: 18px;
    line-height: 1.6;
    text-wrap: pretty;
}

.mop-blog-list__meta {
    color: var(--awb-color13);
    font-size: 14px;
    line-height: normal;
}

.mop-blog-list .mop-blog-list__meta--feat {
    font-size: 15px;
}

.mop-blog-list__feat-link {
    margin-top: 8px;
    color: var(--awb-color9);
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
}


/* ============================================================
 * 5. ARTICLES HEADING AND CONTROLS
 * Search box and the Newest / Oldest toggle share one wrapping row; the
 * category chips and the count line stack under it (design: 24px apart,
 * 48px above the cards).
 * ============================================================ */

.mop-blog-list__head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 780px;
    margin-bottom: 40px;
}

.mop-blog-list .mop-blog-list__h2 {
    color: var(--awb-color8);
    font-size: clamp(38px, 4.6vw, 64px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.mop-blog-list__controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.mop-blog-list__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mop-blog-list__search {
    display: flex;
    flex: 1 1 300px;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    max-width: 460px;
    height: 56px;
    margin: 0;
    padding: 0 8px 0 20px;
    border: 1px solid var(--mop-blog-list-edge);
    border-radius: 999px;
    background: var(--awb-color2);
    transition: border-color .3s;
}

.mop-blog-list__search-icon {
    display: block;
    flex-shrink: 0;
    color: var(--awb-color13);
}

body .mop-blog-list .mop-blog-list__search-input {
    flex: 1;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
    color: var(--awb-color9);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    -webkit-appearance: none;
            appearance: none;
}

body .mop-blog-list .mop-blog-list__search-input::placeholder {
    color: var(--awb-color13);
    opacity: 1;
}

/* The design's own clear control replaces the browser's search cancel button. */
.mop-blog-list .mop-blog-list__search-input::-webkit-search-cancel-button,
.mop-blog-list .mop-blog-list__search-input::-webkit-search-decoration {
    -webkit-appearance: none;
            appearance: none;
}

.mop-blog-list .mop-blog-list__search-clear {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--awb-color11);
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: color .3s, background-color .3s;
}

.mop-blog-list__segment {
    display: flex;
    padding: 4px;
    border: 1px solid var(--mop-blog-list-edge);
    border-radius: 999px;
    background: var(--awb-color2);
}

.mop-blog-list .mop-blog-list__seg {
    display: block;
    padding: 12px 20px;
    border-radius: 999px;
    background: transparent;
    color: var(--awb-color11);
    font-size: 15px;
    font-weight: 600;
    line-height: normal;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .3s, color .3s;
}

.mop-blog-list .mop-blog-list__seg[aria-current="true"] {
    background: var(--awb-color5);
    color: var(--awb-color9);
}

.mop-blog-list__chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mop-blog-list .mop-blog-list__chip {
    display: block;
    padding: 10px 18px;
    border: 1px solid var(--mop-blog-list-ring);
    border-radius: 999px;
    background: transparent;
    color: var(--awb-color9);
    font-size: 15px;
    font-weight: 600;
    line-height: normal;
    text-decoration: none;
    transition: background-color .3s, border-color .3s;
}

.mop-blog-list .mop-blog-list__chip[aria-current="true"] {
    border-color: var(--awb-color5);
    background: var(--awb-color5);
}

.mop-blog-list__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--awb-color11);
    font-size: 15px;
    line-height: normal;
}

.mop-blog-list .mop-blog-list__clear {
    color: var(--awb-color5);
    font-weight: 600;
    text-decoration: none;
    transition: color .3s;
}


/* ============================================================
 * 6. ARTICLE CARDS
 * Design grid: columns of at least a third of the row (220px minimum),
 * so three across on large screens, two on tablets, one on phones.
 * The whole card is one link.
 * ============================================================ */

.mop-blog-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(220px, calc(33.333% - 16px))), 1fr));
    gap: 56px 24px;
}

.mop-blog-list__item {
    min-width: 0;
}

.mop-blog-list .mop-blog-list__card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    color: var(--awb-color9);
    text-decoration: none;
}

.mop-blog-list__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 4px;
}

.mop-blog-list .mop-blog-list__title {
    color: var(--awb-color9);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.mop-blog-list__text {
    color: var(--awb-color11);
    font-size: 16px;
    line-height: 1.55;
    text-wrap: pretty;
}


/* ============================================================
 * 7. NO-RESULTS STATE AND LOAD MORE
 * Load More is the RCM outline button (mop-btn-outline) on a real link,
 * so it also works without JavaScript.
 * ============================================================ */

.mop-blog-list__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 96px 24px;
    border-radius: 28px;
    background: var(--awb-color2);
    text-align: center;
}

.mop-blog-list .mop-blog-list__empty-h {
    color: var(--awb-color8);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.mop-blog-list .mop-blog-list__empty-p {
    max-width: 420px;
    color: var(--awb-color11);
    font-size: 17px;
    line-height: 1.6;
}

.mop-blog-list .mop-blog-list__clear--empty {
    font-size: 16px;
}

.mop-blog-list__more {
    display: flex;
    justify-content: center;
    margin-top: 64px;
}


/* ============================================================
 * 8. CLOSING CARD
 * The bar graphic is the RCM mop-bars component; this card is its host
 * (relative, isolated, clipped).
 * ============================================================ */

.mop-blog-list__cta-card {
    position: relative;
    isolation: isolate;
    max-width: 1375px;
    margin: 0 auto;
    padding: clamp(48px, 6vw, 88px) clamp(28px, 6vw, 88px);
    overflow: hidden;
    border-radius: 32px;
    background: var(--awb-color5);
    color: var(--awb-color1);
}

.mop-blog-list__cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px 64px;
}

.mop-blog-list__cta-copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 640px;
}

.mop-blog-list .mop-blog-list__cta-h2 {
    color: inherit;
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.mop-blog-list .mop-blog-list__cta-text {
    max-width: 520px;
    color: var(--awb-color1);
    font-size: clamp(17px, 1.4vw, 19px);
    line-height: 1.55;
    text-wrap: pretty;
}


/* ============================================================
 * 9. HOVER, FOCUS AND REDUCED MOTION
 * Design states: the search clear button turns white on a white 8%
 * disc; Clear filters turns white; the selected toggle and chip fill
 * orange (.3s); the search box border turns orange while typing. Cards
 * have no hover change. Keyboard focus shows a visible white ring.
 * Buttons keep their RCM states.
 * ============================================================ */

.mop-blog-list .mop-blog-list__seg:is(:hover, :focus, :active, :visited):not([aria-current="true"]) {
    color: var(--awb-color11);
}

.mop-blog-list .mop-blog-list__seg[aria-current="true"]:is(:hover, :focus, :active, :visited),
.mop-blog-list .mop-blog-list__chip:is(:hover, :focus, :active, :visited),
.mop-blog-list .mop-blog-list__card:is(:hover, :focus, :active, :visited),
.mop-blog-list .mop-blog-list__feat:is(:hover, :focus, :active, :visited) {
    color: var(--awb-color9);
}

.mop-blog-list .mop-blog-list__search-clear:is(:hover, :focus-visible) {
    background: hsla(var(--awb-color9-h), var(--awb-color9-s), var(--awb-color9-l), .08);
    color: var(--awb-color9);
}

.mop-blog-list .mop-blog-list__clear:is(:hover, :focus-visible) {
    color: var(--awb-color9);
}

.mop-blog-list__search:focus-within {
    border-color: var(--awb-color5);
}

.mop-blog-list .mop-blog-list__seg:focus-visible,
.mop-blog-list .mop-blog-list__chip:focus-visible,
.mop-blog-list .mop-blog-list__search-clear:focus-visible {
    outline: 2px solid var(--awb-color9);
    outline-offset: 2px;
}

.mop-blog-list .mop-blog-list__clear:focus-visible {
    outline: 2px solid var(--awb-color9);
    outline-offset: 3px;
    border-radius: 4px;
}

.mop-blog-list .mop-blog-list__card:focus-visible,
.mop-blog-list .mop-blog-list__feat:focus-visible {
    outline: none;
}

.mop-blog-list .mop-blog-list__card:focus-visible .mop-blog-list__media,
.mop-blog-list .mop-blog-list__feat:focus-visible .mop-blog-list__media {
    outline: 2px solid var(--awb-color9);
    outline-offset: 3px;
}

.mop-blog-list .mop-blog-list__card:focus-visible .mop-blog-list__title,
.mop-blog-list .mop-blog-list__feat:focus-visible .mop-blog-list__feat-title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .mop-blog-list__search,
    .mop-blog-list .mop-blog-list__search-clear,
    .mop-blog-list .mop-blog-list__seg,
    .mop-blog-list .mop-blog-list__chip,
    .mop-blog-list .mop-blog-list__clear {
        transition: none;
    }
}
