/* FILE: public/css/moreof_side.css — FULL FILE
   Left list for the “More Of” rail (namespace: .moreof-side*).
   • Fixed column width: 300px next to a 600px large tile.
   • Hidden below 1150px (rail becomes tiles-only there).
*/

/* Rail placement + column sizing (pairs with feed_moreof.css grid) */
.moreof-feed-section .moreof-feed-grid {
    grid-template-columns: 280px 600px 1fr;
}

.moreof-side {
    grid-column: 1;
    width: 280px;
    max-width: 280px;
    margin-top: 8px;
}

/* Heading */
.moreof-side__title {
    margin: 0 0 1.5rem 0;
    font-family: var(--identity-font);
    font-weight: 700;
    font-size: var(--font-size-16px);
    color: var(--grey-color-2, #9aa4af);
    letter-spacing: -.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.moreof-side__title::before {
    content: '';
    width: var(--font-size-18px);
    height: var(--font-size-18px);
    border-radius: 3px;
    background: var(--card-color, var(--site-color));
}

/* List */
.moreof-side__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.moreof-side__item {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--section-medium-background-color);
}

.moreof-side__item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    /* optional, so spacing isn’t awkward */
    padding-bottom: 0;
    /* optional, matches the removed border */
}

.moreof-side__tag {
    font-size: var(--font-size-11px);
}

.moreof-side__link {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    align-items: center;
    text-decoration: none;
}

.moreof-side__thumb {
    width: 100px;
    height: 64px;
    border-radius: 4px;
    object-fit: cover;
    background: var(--section-darkest-background-color);
    border: 1px solid var(--section-medium-background-color);
    display: block;
}

.moreof-side__thumb {
  box-sizing: border-box; 
}

.moreof-side__thumb[style*="contain"] {
  padding: 8px 16px; 
}

.moreof-side__meta {
    display: grid;
    gap: 4px;
    min-width: 0;
    align-self: flex-start;
    justify-self: start;
}

.moreof-side__title-text {
    color: var(--white-color-1, #e6edf3);
    font-size: var(--font-size-14px, .9rem);
    font-family: var(--identity-font);
    font-weight: 700;
    letter-spacing: -.25px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.moreof-side__link:hover .moreof-side__title-text,
.moreof-side__link:focus .moreof-side__title-text,
.moreof-side__link:focus-visible .moreof-side__title-text {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: from-font;
    text-decoration-skip-ink: auto;
}

/* Hide the side list below 1150px (tiles-only layouts kick in there) */
@media (max-width: 1150px) {
    .moreof-side {
        display: none !important;
    }
}

























/* FILE: public/css/feed_moreof.css — ADD THIS BLOCK (appends safely)
   Right‑rail ad state for ≤3 items: make the grid [ STAGE | 300px RAIL ] with 30px gap.
*/
.moreof-hf__grid[data-ad-rail="right"] {
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

.moreof-rail-ad {
    width: 300px;
    max-width: 300px;
}

@media (max-width: 1150px) {
    .moreof-hf__grid[data-ad-rail="right"] {
        grid-template-columns: 1fr;
    }

    .moreof-rail-ad {
        display: none !important;
        /* mirror left-rail hide behavior on smaller viewports */
    }
}