/*
Theme Name: ConceptMath Child
Theme URI: https://conceptmathacademy.com.np/
Description: Custom child theme for TutorStarter, built for ConceptMath Academy.
Author: ConceptMath Academy
Author URI: https://conceptmathacademy.com.np/
Template: tutorstarter
Version: 1.0.2
Text Domain: conceptmath-child
*/

/* Add ConceptMath Academy custom styles below. */

/* ConceptMath Academy - Header Tagline */

.site-branding .site-description,
.site-branding .site-description p,
.site-header .site-description {
    font-size: 9px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    width: max-content !important;
    max-width: none !important;
    display: block !important;
    margin: 2px 0 0 !important;
}


/* ConceptMath Academy - Desktop Tagline Fix */
@media (min-width: 992px) {
    body header.header-default .navbar-brand {
        flex: 0 0 390px !important;
    }

    body header.header-default .navbar-brand::after {
        content: "ConceptMath Academy | Pioneering the Math Lab Movement in Nepal." !important;
        max-width: none !important;
        white-space: nowrap !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
    }
}


/* ConceptMath Digital Library — scoped landing-page styles */
.cma-digital-library {
    --cma-navy: #173B7A;
    --cma-blue: #2457A6;
    --cma-red: #D92D20;
    --cma-yellow: #F4C430;
    --cma-white: #FFFFFF;
    --cma-bg: #F4F7FB;
    color: var(--cma-navy);
    background: var(--cma-bg);
    font-family: inherit;
    line-height: 1.6;
}
.cma-digital-library *,
.cma-digital-library *::before,
.cma-digital-library *::after { box-sizing: border-box; }
.cma-dl-container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.cma-dl-hero { position: relative; overflow: hidden; padding: clamp(54px, 8vw, 96px) 0; color: var(--cma-white); background: var(--cma-navy); }
.cma-dl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); align-items: center; gap: 48px; }
.cma-dl-hero-copy { position: relative; z-index: 1; max-width: 690px; }
.cma-digital-library .cma-dl-eyebrow,
.cma-digital-library .cma-dl-kicker { margin: 0 0 12px; color: var(--cma-red); font-size: 12px; font-weight: 800; letter-spacing: .12em; line-height: 1.4; }
.cma-dl-hero .cma-dl-eyebrow { color: var(--cma-yellow); }
.cma-digital-library h1,
.cma-digital-library h2,
.cma-digital-library h3 { color: inherit; font-family: inherit; line-height: 1.2; }
.cma-dl-hero h1 { max-width: 680px; margin: 0 0 18px; color: var(--cma-white); font-size: clamp(36px, 5vw, 58px); font-weight: 800; letter-spacing: -.03em; }
.cma-dl-lead { max-width: 630px; margin: 0 0 24px; color: rgba(255,255,255,.88); font-size: clamp(17px, 2vw, 20px); }
.cma-dl-search { display: flex; width: min(650px, 100%); gap: 8px; padding: 7px; border-radius: 12px; background: var(--cma-white); box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.cma-dl-search input[type="search"] { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 10px 14px; border: 0; border-radius: 8px; color: #18304f; font: inherit; outline-offset: 2px; }
.cma-dl-search button,
.cma-dl-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 18px; border: 0; border-radius: 8px; background: var(--cma-red); color: var(--cma-white); font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; transition: background-color .18s ease, transform .18s ease; }
.cma-dl-search button:hover,
.cma-dl-search button:focus { background: #b92218; color: var(--cma-white); }
.cma-dl-search-note { max-width: 650px; margin: 10px 0 18px; color: rgba(255,255,255,.72); font-size: 13px; }
.cma-dl-button-light { min-height: 42px; background: transparent; border: 1px solid rgba(255,255,255,.55); color: var(--cma-white); }
.cma-dl-button-light:hover,
.cma-dl-button-light:focus { background: rgba(255,255,255,.12); color: var(--cma-white); }
.cma-dl-hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 330px; }
.cma-dl-book { position: absolute; width: 150px; height: 214px; border: 7px solid rgba(255,255,255,.78); border-left-width: 15px; border-radius: 7px 13px 13px 7px; box-shadow: 10px 16px 24px rgba(4,22,52,.27); }
.cma-dl-book span,
.cma-dl-book i,
.cma-dl-book b { position: absolute; left: 22px; display: block; width: 65%; height: 3px; border-radius: 3px; background: rgba(255,255,255,.72); }
.cma-dl-book span { top: 46px; height: 8px; }
.cma-dl-book i { top: 68px; }
.cma-dl-book b { top: 82px; width: 46%; }
.cma-dl-book-one { z-index: 2; transform: translate(-45px, 5px) rotate(-13deg); background: var(--cma-blue); }
.cma-dl-book-two { z-index: 1; transform: translate(48px, 8px) rotate(11deg); background: #D92D20; }
.cma-dl-book-three { transform: translate(0, -24px) rotate(1deg); background: #F4C430; }
.cma-dl-orbit { position: absolute; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; }
.cma-dl-orbit-one { width: 340px; height: 230px; transform: rotate(-26deg); }
.cma-dl-orbit-two { width: 280px; height: 340px; transform: rotate(30deg); }
.cma-dl-section { padding: clamp(46px, 6vw, 76px) 0; }
.cma-dl-white { background: var(--cma-white); }
.cma-dl-section-heading { max-width: 720px; margin: 0 0 30px; }
.cma-dl-section-heading h2,
.cma-dl-feature-band h2,
.cma-dl-special-card h2 { margin: 0 0 12px; color: var(--cma-navy); font-size: clamp(27px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.cma-dl-section-heading p:not(.cma-dl-kicker),
.cma-dl-feature-band p:not(.cma-dl-kicker),
.cma-dl-special-card > p:not(.cma-dl-kicker) { margin: 0; color: #52647d; font-size: 16px; }
.cma-dl-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cma-dl-category-card { display: flex; min-height: 128px; align-items: flex-start; gap: 13px; padding: 18px 15px; border: 1px solid #E2E9F2; border-radius: 12px; background: var(--cma-white); color: var(--cma-navy); text-decoration: none; box-shadow: 0 5px 16px rgba(23,59,122,.04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.cma-dl-category-card:hover,
.cma-dl-category-card:focus { transform: translateY(-3px); border-color: #B8CAE5; color: var(--cma-navy); box-shadow: 0 12px 25px rgba(23,59,122,.1); }
.cma-dl-category-mark { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 10px; background: #EAF0FA; color: var(--cma-blue); font-size: 11px; font-weight: 850; letter-spacing: -.02em; }
.cma-dl-category-copy { display: grid; gap: 6px; }
.cma-dl-category-copy strong { color: var(--cma-navy); font-size: 15px; line-height: 1.35; }
.cma-dl-category-copy > span { color: #66758b; font-size: 13px; line-height: 1.45; }
.cma-dl-card-arrow { margin-left: auto; color: var(--cma-red); font-size: 17px; line-height: 1; }
.cma-dl-catalog-note { margin: 20px 0 0; color: #66758b; font-size: 13px; }
.cma-dl-catalog { background: var(--cma-bg); }
.cma-dl-empty-state { display: grid; justify-items: center; padding: clamp(28px, 5vw, 54px) 22px; border: 1px dashed #C6D4E7; border-radius: 16px; background: var(--cma-white); text-align: center; }
.cma-dl-empty-icon { display: grid; width: 58px; height: 58px; margin-bottom: 12px; place-items: center; border-radius: 16px; background: #EAF0FA; color: var(--cma-blue); font-size: 28px; }
.cma-dl-empty-state h3 { margin: 0 0 8px; color: var(--cma-navy); font-size: 21px; }
.cma-dl-empty-state p { max-width: 600px; margin: 0; color: #66758b; }
.cma-dl-collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cma-dl-collection-card { position: relative; min-height: 190px; padding: 23px; overflow: hidden; border: 1px solid #E2E9F2; border-radius: 14px; background: var(--cma-white); }
.cma-dl-collection-number { display: inline-grid; width: 38px; height: 38px; margin-bottom: 16px; place-items: center; border-radius: 50%; background: #FFF5D5; color: #6B5200; font-size: 12px; font-weight: 800; }
.cma-dl-collection-card h3 { margin: 0 0 8px; color: var(--cma-navy); font-size: 18px; }
.cma-dl-collection-card p { margin: 0 0 16px; color: #66758b; font-size: 14px; }
.cma-dl-coming-soon { display: inline-flex; padding: 4px 9px; border-radius: 20px; background: #F0F4F9; color: #52647d; font-size: 11px; font-weight: 700; }
.cma-dl-free { background: var(--cma-navy); }
.cma-dl-feature-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cma-dl-feature-band h2 { color: var(--cma-white); }
.cma-dl-feature-band p:not(.cma-dl-kicker) { max-width: 640px; color: rgba(255,255,255,.78); }
.cma-dl-feature-band .cma-dl-kicker { color: var(--cma-yellow); }
.cma-dl-band-status { flex: 0 0 auto; padding: 12px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 30px; color: var(--cma-white); font-size: 13px; font-weight: 700; }
.cma-dl-band-status span { margin-right: 6px; color: var(--cma-yellow); }
.cma-dl-inline-empty { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 12px; background: var(--cma-bg); color: #52647d; }
.cma-dl-inline-empty span { color: var(--cma-blue); font-size: 22px; }
.cma-dl-inline-empty p { margin: 0; }
.cma-dl-special { background: #EAF0FA; }
.cma-dl-special-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cma-dl-special-card { position: relative; min-height: 290px; padding: clamp(24px, 4vw, 38px); border-radius: 16px; background: var(--cma-white); box-shadow: 0 10px 28px rgba(23,59,122,.07); }
.cma-dl-special-mark { display: grid; width: 46px; height: 46px; margin-bottom: 20px; place-items: center; border-radius: 13px; background: #FFF5D5; color: var(--cma-navy); font-size: 20px; font-weight: 850; }
.cma-dl-special-card a { display: inline-flex; gap: 8px; margin-top: 20px; color: var(--cma-blue); font-weight: 750; text-decoration: none; }
.cma-dl-special-card a:hover,
.cma-dl-special-card a:focus { color: var(--cma-red); text-decoration: underline; }
.cma-dl-special-card small { display: block; margin-top: 12px; color: #7A8798; }
.cma-digital-library a:focus-visible,
.cma-digital-library button:focus-visible,
.cma-digital-library input:focus-visible { outline: 3px solid var(--cma-yellow); outline-offset: 3px; }
@media (max-width: 960px) {
    .cma-dl-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr); gap: 24px; }
    .cma-dl-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cma-dl-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .cma-dl-container { width: min(100% - 30px, 560px); }
    .cma-dl-hero { padding: 48px 0; }
    .cma-dl-hero-grid { grid-template-columns: 1fr; }
    .cma-dl-hero-art { min-height: 210px; }
    .cma-dl-book { width: 112px; height: 160px; }
    .cma-dl-orbit-one { width: 255px; height: 180px; }
    .cma-dl-orbit-two { width: 210px; height: 260px; }
    .cma-dl-search { flex-direction: column; }
    .cma-dl-search button { width: 100%; }
    .cma-dl-feature-band { align-items: flex-start; flex-direction: column; }
    .cma-dl-special-grid { grid-template-columns: 1fr; }
    .cma-dl-special-card { min-height: 0; }
}
@media (max-width: 440px) {
    .cma-dl-category-grid,
    .cma-dl-collection-grid { grid-template-columns: 1fr; }
    .cma-dl-category-card { min-height: 0; }
    .cma-dl-section { padding: 42px 0; }
}
@media (prefers-reduced-motion: reduce) {
    .cma-dl-category-card,
    .cma-dl-button,
    .cma-dl-search button { transition: none; }
}


/* Digital Library bookstore and resource detail views */
.cma-digital-library.cma-dl-store,
.cma-digital-library.cma-dl-resource-detail {
    --cma-navy: #173B7A;
    --cma-blue: #2457A6;
    --cma-red: #D92D20;
    --cma-yellow: #F4C430;
    --cma-white: #FFFFFF;
    --cma-bg: #F4F7FB;
    color: #24364f;
    background: var(--cma-bg);
    line-height: 1.6;
}
.cma-digital-library.cma-dl-store *,
.cma-digital-library.cma-dl-resource-detail *,
.cma-digital-library.cma-dl-store *::before,
.cma-digital-library.cma-dl-store *::after,
.cma-digital-library.cma-dl-resource-detail *::before,
.cma-digital-library.cma-dl-resource-detail *::after { box-sizing: border-box; }
.cma-dl-store .cma-dl-container,
.cma-dl-resource-detail .cma-dl-container { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.cma-dl-store-hero { padding: clamp(30px, 5vw, 56px) 0 32px; background: var(--cma-navy); color: var(--cma-white); }
.cma-dl-store-hero .cma-dl-eyebrow { margin: 0 0 8px; color: var(--cma-yellow); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.cma-dl-store-hero h1 { max-width: 800px; margin: 0 0 10px; color: var(--cma-white); font-size: clamp(28px, 4vw, 44px); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
.cma-dl-store-hero .cma-dl-lead { max-width: 760px; margin: 0; color: rgba(255,255,255,.82); font-size: clamp(15px, 1.7vw, 18px); }
.cma-dl-store-search { padding: 22px 0 24px; background: var(--cma-white); border-bottom: 1px solid #e5ebf3; }
.cma-dl-store-form { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(150px, 1.2fr) repeat(3, minmax(130px, 1fr)); align-items: end; gap: 12px; }
.cma-dl-search-field { min-width: 0; }
.cma-dl-search-field label { display: block; margin: 0 0 5px; color: var(--cma-navy); font-size: 12px; font-weight: 750; }
.cma-dl-search-field input,
.cma-dl-search-field select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #cbd6e4; border-radius: 8px; background: #fff; color: #26384e; font: inherit; font-size: 14px; }
.cma-dl-store-actions { display: flex; align-items: center; gap: 12px; grid-column: 1 / -1; margin-top: 2px; }
.cma-dl-store-actions button,
.cma-dl-action-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 16px; border: 0; border-radius: 8px; background: var(--cma-red); color: #fff; font: inherit; font-size: 14px; font-weight: 750; text-decoration: none; cursor: pointer; }
.cma-dl-store-actions button:hover,
.cma-dl-action-primary:hover { background: #b92218; color: #fff; }
.cma-dl-store-actions > a { color: var(--cma-blue); font-size: 13px; font-weight: 700; text-decoration: underline; }
.cma-dl-store-browse { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.cma-dl-store-browse > span { margin-right: 3px; color: #66758b; font-size: 12px; font-weight: 700; }
.cma-dl-store-browse a { display: inline-flex; padding: 5px 10px; border: 1px solid #dbe3ef; border-radius: 20px; color: var(--cma-blue); background: #f8faff; font-size: 12px; font-weight: 700; text-decoration: none; }
.cma-dl-store-browse a:hover { border-color: var(--cma-blue); color: var(--cma-navy); }
.cma-dl-store-catalog { padding: 34px 0 70px; }
.cma-dl-store-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.cma-dl-store-heading .cma-dl-kicker { margin: 0 0 5px; color: var(--cma-red); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.cma-dl-store-heading h2 { margin: 0; color: var(--cma-navy); font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 800; }
.cma-dl-store-count { flex: 0 0 auto; margin: 0 0 2px; color: #69788c; font-size: 13px; }
.cma-dl-resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cma-dl-resource-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #e1e8f1; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(23,59,122,.06); }
.cma-dl-resource-cover { display: grid; width: 100%; aspect-ratio: 3 / 3.7; place-items: center; overflow: hidden; background: #edf2f8; text-decoration: none; }
.cma-dl-cover-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.cma-dl-cover-empty { display: grid; width: 100%; height: 100%; min-height: 150px; place-items: center; padding: 18px; color: #75849a; background: #edf2f8; font-size: 13px; text-align: center; }
.cma-dl-resource-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 15px; }
.cma-dl-resource-terms { margin: 0 0 6px; color: var(--cma-blue); font-size: 11px; font-weight: 750; }
.cma-dl-resource-body h3 { margin: 0 0 6px; color: var(--cma-navy); font-size: 17px; line-height: 1.35; font-weight: 750; }
.cma-dl-resource-body h3 a { color: inherit; text-decoration: none; }
.cma-dl-resource-body h3 a:hover { color: var(--cma-red); }
.cma-dl-resource-author { margin: 0 0 8px; color: #69788c; font-size: 13px; }
.cma-dl-resource-excerpt { margin: 0 0 10px; color: #52647d; font-size: 13px; line-height: 1.5; }
.cma-dl-resource-price { margin: auto 0 10px; padding-top: 8px; color: var(--cma-navy); font-size: 15px; font-weight: 800; }
.cma-dl-resource-access { margin: auto 0 10px; padding-top: 8px; color: #66758b; font-size: 12px; font-weight: 700; }
.cma-dl-resource-links { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: auto; padding-top: 10px; }
.cma-dl-resource-links a { color: var(--cma-blue); font-size: 12px; font-weight: 750; text-decoration: none; }
.cma-dl-resource-links a:hover { color: var(--cma-red); text-decoration: underline; }
.cma-dl-resource-links .cma-dl-details-link { color: var(--cma-red); }
.cma-dl-store-empty { display: grid; justify-items: center; padding: clamp(30px, 6vw, 62px) 24px; border: 1px dashed #bfccdc; border-radius: 14px; background: #fff; text-align: center; }
.cma-dl-empty-symbol { display: grid; width: 48px; height: 48px; margin-bottom: 10px; place-items: center; border-radius: 50%; background: #eaf0fa; color: var(--cma-blue); font-size: 26px; }
.cma-dl-store-empty h3 { margin: 0 0 7px; color: var(--cma-navy); font-size: 20px; }
.cma-dl-store-empty p { margin: 0; color: #66758b; }
.cma-dl-store-empty a { margin-top: 12px; color: var(--cma-blue); font-size: 13px; font-weight: 700; }
.cma-dl-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; color: #66758b; font-size: 13px; }
.cma-dl-pagination a { color: var(--cma-blue); font-weight: 700; }
.cma-dl-resource-detail { padding: 28px 0 64px; }
.cma-dl-detail-back { margin: 0 0 18px; font-size: 13px; font-weight: 700; }
.cma-dl-detail-back a { color: var(--cma-blue); text-decoration: none; }
.cma-dl-detail-card { padding: clamp(20px, 4vw, 38px); border: 1px solid #e1e8f1; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(23,59,122,.06); }
.cma-dl-detail-main { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); align-items: start; gap: clamp(22px, 4vw, 44px); }
.cma-dl-detail-cover { overflow: hidden; aspect-ratio: 3 / 3.7; border-radius: 8px; background: #edf2f8; }
.cma-dl-detail-copy .cma-dl-kicker { margin: 0 0 8px; color: var(--cma-red); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.cma-dl-detail-copy h1 { margin: 0 0 10px; color: var(--cma-navy); font-size: clamp(26px, 4vw, 40px); line-height: 1.15; font-weight: 800; }
.cma-dl-detail-author { margin: 0 0 14px; color: #66758b; font-size: 15px; }
.cma-dl-detail-taxonomies { display: grid; gap: 6px; margin: 0 0 18px; color: #52647d; font-size: 13px; }
.cma-dl-detail-taxonomies a { color: var(--cma-blue); }
.cma-dl-detail-excerpt { margin: 0 0 18px; color: #52647d; font-size: 16px; }
.cma-dl-detail-price { margin: 0 0 14px; color: var(--cma-navy); font-size: 21px; font-weight: 800; }
.cma-dl-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cma-dl-action-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 14px; border: 1px solid #c8d4e4; border-radius: 8px; color: var(--cma-blue); background: #fff; font-size: 13px; font-weight: 750; text-decoration: none; }
.cma-dl-action-secondary:hover { border-color: var(--cma-blue); color: var(--cma-navy); }
.cma-dl-detail-meta { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 30px 0 0; padding: 18px 0 0; border-top: 1px solid #e5ebf3; }
.cma-dl-detail-meta div { min-width: 0; }
.cma-dl-detail-meta dt { color: #75849a; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.cma-dl-detail-meta dd { margin: 3px 0 0; color: #26384e; font-size: 14px; }
.cma-dl-detail-description { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e5ebf3; color: #34465e; }
.cma-dl-detail-description h2 { margin: 0 0 12px; color: var(--cma-navy); font-size: 22px; }
.cma-dl-store a:focus-visible,
.cma-dl-store button:focus-visible,
.cma-dl-store input:focus-visible,
.cma-dl-store select:focus-visible,
.cma-dl-resource-detail a:focus-visible { outline: 3px solid var(--cma-yellow); outline-offset: 3px; }
@media (max-width: 1050px) {
    .cma-dl-store-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cma-dl-resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .cma-dl-store .cma-dl-container,
    .cma-dl-resource-detail .cma-dl-container { width: min(100% - 28px, 600px); }
    .cma-dl-store-form { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .cma-dl-search-main { grid-column: 1 / -1; }
    .cma-dl-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .cma-dl-resource-body { padding: 12px; }
    .cma-dl-resource-body h3 { font-size: 15px; }
    .cma-dl-detail-main { grid-template-columns: minmax(0, 1fr); }
    .cma-dl-detail-cover { width: min(100%, 300px); margin: 0 auto; }
    .cma-dl-detail-meta { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 440px) {
    .cma-dl-store .cma-dl-container,
    .cma-dl-resource-detail .cma-dl-container { width: calc(100% - 24px); }
    .cma-dl-store-form { grid-template-columns: 1fr; }
    .cma-dl-search-main { grid-column: auto; }
    .cma-dl-store-actions { align-items: flex-start; flex-direction: column; }
    .cma-dl-store-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
    .cma-dl-resource-grid { grid-template-columns: 1fr; }
    .cma-dl-resource-cover { aspect-ratio: 3 / 2.4; }
    .cma-dl-detail-meta { grid-template-columns: 1fr; }
}
