/* Approved November 9 audit fixes. Catalogue data and hidden full designs stay intact. */

/* 4. Normal-size hero copy needs stronger contrast on the lavender artwork. */
.oml-frequency .fq-hero-note { color: #241b3b; }

/* 12. Beehiiv can shrink its iframe after loading; center that actual frame. */
.oml-frequency .fq-hero-copy .fq-form iframe { margin-inline: auto; }

/* 13. Mobile text-entry and selection controls use the site's 16px form scale. */
@media (max-width: 600px) {
    .ol-filters input,
    .ol-filters select,
    .oc-filter-form input,
    .oc-filter-form select,
    .ol-region-form select,
    .oml-preview .lp-country select { font-size: 16px; }
}

/* 7. Inherit Blocksy's responsive menu scale instead of fixing Library at 23px. */
#offcanvas .mobile-menu li.oml-library-nav > a {
    font-size: var(--theme-font-size, 30px) !important;
}
/* The old drawer social row contains placeholder destinations. Real links are in the footer. */
#offcanvas .ct-header-socials[data-id="socials"] { display: none; }

/* 8. Desktop keeps the full filter bar. Small screens get a native disclosure. */
.ol-filters-enhanced .ol-filter-disclosure,
.ol-filters-enhanced .ol-filter-fields { display: contents; }
.ol-filters-enhanced .ol-filter-disclosure > summary { display: none; }
.ol-filters-enhanced .ol-filter-disclosure[hidden] { display: none !important; }
@media (max-width: 600px) {
    .ol-filters.ol-filters-enhanced { gap: 14px; }
    .ol-filters-enhanced > label { flex-basis: 100%; }
    .ol-filters-enhanced .ol-filter-disclosure {
        display: block;
        width: 100%;
        margin: 0;
        border: 0;
        border-block: 1px solid #d6dbe3;
        border-radius: 0;
        padding: 0;
        background: transparent;
    }
    .ol-filters-enhanced .ol-filter-disclosure > summary {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 48px;
        padding: 10px 0;
        font: 650 15px/1.4 Figtree, Arial, sans-serif;
        color: #26354e;
        cursor: pointer;
        list-style: none;
    }
    .ol-filter-disclosure > summary::-webkit-details-marker { display: none; }
    .ol-filters-enhanced .ol-filter-disclosure > summary::after {
        content: '';
        width: 8px;
        height: 8px;
        margin-left: auto;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        flex-shrink: 0;
    }
    .ol-filters-enhanced .ol-filter-disclosure[open] > summary::after { transform: rotate(225deg); }
    .ol-filter-selected { font-size: 12px; font-weight: 500; }
    .ol-filter-selected[hidden] { display: none; }
    .ol-filters-enhanced .ol-filter-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-bottom: 16px; }
    .ol-filters-enhanced .ol-filter-disclosure:not([open]) > .ol-filter-fields { display: none; }
    .ol-filter-disclosure > summary:focus-visible { outline: 3px solid #765398; outline-offset: 3px; }
}

/* 6. Keep the same readable minimum for book and watch carousel cards. */
.ol-rail > .ol-card { min-width: min(240px, 100%); }
@media (max-width: 540px) {
    .om-page .om-library-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .om-page .om-library-grid .ol-card-copy { padding: 18px !important; }
    .om-page .om-library-grid .ol-card h3 { font-size: 24px !important; }
    .om-page .om-library-grid .ol-card-description { font-size: 15px !important; }
    .om-page .om-library-grid .ol-book-card .ol-book-art {
        aspect-ratio: auto !important;
        height: 260px !important;
        padding: 20px;
    }
}

/* 3. Intrinsic file-input sizing must not widen the account grid. */
.om-account-grid > * { min-width: 0; }
.om-photo-card form { min-width: 0; max-width: 100%; }
.om-photo-card input[type="file"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
.om-photo-card p { overflow-wrap: anywhere; }
.om-photo-actions > * { max-width: 100%; }

/* 1. Full book collections: size columns around readable content. */
.ol-collection-grid.ol-collection-books:not(.om-library-grid) {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 24px;
}

/* 2. Give provider details room before moving their action to its own row. */
@media (max-width: 1000px) {
    .oml-preview .lp-provider {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px 14px;
        align-items: start;
    }
    .oml-preview .lp-provider > .ol-platform-logo {
        width: 72px;
        height: 50px;
    }
    .oml-preview .lp-provider > div:not(.ol-platform-logo) { min-width: 0; }
    .oml-preview .lp-provider strong { font-size: 16px; line-height: 1.4; }
    .oml-preview .lp-provider small { font-size: 13px; line-height: 1.5; }
    .oml-preview .lp-provider > .lp-btn {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 44px;
        margin-left: 0;
        justify-self: stretch;
    }
}
@media (max-width: 540px) {
    .ol-collection-grid.ol-collection-books:not(.om-library-grid) {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .ol-collection-books:not(.om-library-grid) .ol-book-art {
        aspect-ratio: auto;
        height: 260px;
        padding: 20px;
    }
    .ol-collection-books:not(.om-library-grid) .ol-book-art img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .ol-collection-books:not(.om-library-grid) .ol-card-copy { padding: 18px; }
    .ol-collection-books:not(.om-library-grid) .ol-card h3 { font-size: 24px; }
}
/* Keep the reviewed Culture poster wording on its two intentional lines. */
.ol-hero-culture .ol-culture-poster{container-type:inline-size}
.ol-hero-culture .ol-culture-poster strong{font-size:clamp(20px,21cqw,66px);white-space:nowrap}

/* One platform heading, with its regional rental, purchase, and subscription options. */
.oml-preview .lp-provider.lp-provider-grouped {
    display:grid;
    grid-template-columns:84px minmax(0,1fr);
    align-items:start;
    gap:15px;
}
.oml-preview .lp-provider-grouped[hidden],
.oml-preview .lp-provider-option[hidden] { display:none!important; }
.oml-preview .lp-provider-grouped .lp-provider-details { min-width:0; }
.oml-preview .lp-provider-option {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:10px 16px;
    padding-top:3px;
}
.oml-preview .lp-provider-option:not([hidden]) ~ .lp-provider-option:not([hidden]) { margin-top:10px; }
.oml-preview .lp-provider-option > div { min-width:0; }
.oml-preview .lp-provider-option .lp-btn { white-space:nowrap; }
@media(max-width:1000px) {
    .oml-preview .lp-provider.lp-provider-grouped { grid-template-columns:72px minmax(0,1fr);gap:12px 14px; }
    .oml-preview .lp-provider-option { grid-template-columns:minmax(0,1fr); }
    .oml-preview .lp-provider-option .lp-btn { width:100%;min-height:44px;margin:0; }
}
