
.lm-wrap{
    margin-bottom: 50px;
}


/*COUNTRY LIST*/

.lm-country-list { display: grid; gap: 14px; }

.lm-country-card { border: 1px solid #e1e1e1; border-radius: 4px; background: #fff; padding: 14px 20px; }
.lm-country-card a { text-decoration: none!important;}
.lm-country-card__top { display: grid; grid-template-columns: 100px 1fr auto; gap: 15px; align-items: center }

.lm-country-card__flag { width: 100px; height: 60px; display:flex; align-items:center; justify-content:center; }
.lm-country-card__flag a { width: 100%; height: 100%; }
.lm-country-card__flag img { width: 100%; height: 100%; display:block; border:1px solid #e5e7eb; border-radius: 4px; margin-right: 2px; opacity: 75%; }
.lm-flag-placeholder { color: #fff; font-weight: 700; }

.lm-country-card__title a { text-decoration: none; }
.lm-country-card__desc { margin-top: 6px; font-size: 12px; line-height: 1.45; opacity: .8; }

.lm-country-card__actions { display:flex; gap: 12px; justify-content:flex-end; align-self: start }
.lm-pill { display:inline-block;  font-size: 14px; text-decoration:none; }

.lm-country-card__kpis { display:flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 14px; }

@media (max-width: 900px) {
    .lm-country-card__top { grid-template-columns: 1fr; }
    .lm-country-card__actions { justify-content:flex-start; }
}

/*COUNTRY DETAIL*/

.lm-topgrid { display:grid; align-items: center; grid-template-columns: 2fr 1fr; gap: 18px; margin-top: 30px; margin-bottom: 30px; }
.lm-grid { display:grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-top: 25px; margin-bottom: 25px; }

.lm-card { background:#fff; margin-top: 20px }
.lm-subtitle { margin-top:6px; color:#5b6777; }

.lm-block { margin-top: 40px; }
.lm-body { margin-top: 6px; font-size: 15px;}
.lm-muted { color:#111; opacity:.75; }

.lm-flag-box { display:flex; border-radius: 6px; justify-content: right }
.lm-flag-img { width: 150px; height: auto; border:1px solid #e5e7eb; border-radius: 4px; background:#fff; opacity: 75% }
.lm-flag-placeholder { color:#fff; font-weight:600; }

.lm-overview-body { padding: 10px 4px 0; }
.lm-row { display:flex; justify-content:space-between; gap: 10px; padding: 8px 0; border-bottom:1px solid #eef2f7; }
.lm-k { font-size: 15px; color:#4b5563; }
.lm-v { font-size: 15px; font-weight:700; text-align:right; }
.lm-source { font-size: 13px; font-weight:400; opacity:.7; }

.lm-badges-row { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lm-badge-card-title { font-weight:700; margin-bottom: 6px; }
.lm-badge-grid { display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.lm-badge { border:1px solid #e5e7eb; border-radius: 2px; padding: 8px; }
.lm-badge .t { font-size: 15px; }
.lm-badge .b { margin-top: 6px; font-size: 15px; font-weight:700; min-height: 14px; }

.lm-table-wrap { overflow:auto; border-radius: 6px; margin-top: 15px; }
.lm-table { width:100%; border-collapse: collapse; min-width: 1100px; }
.lm-table th { font-size: 13px; text-align:left; padding: 8px; color: white }
.lm-table th a { color: white; text-decoration: underline; }

.lm-table tr { border-color: #f4f4f5;}
.lm-table td { font-size: 13px; padding: 8px;border-color: #f4f4f5; }
.lm-strong a { font-weight:700; text-decoration:none; }
.lm-empty-row { height: 28px; }

.lm-literature{
    font-size: 13px!important;
}

.lm-literature a{
    text-decoration: underline;
}

.lm-links { white-space: nowrap; text-align: center; }
.lm-ext { margin-right: 6px; }
.lm-ext:last-child { margin-right: 0; }


@media (max-width: 980px) {
    .lm-topgrid { grid-template-columns: 1fr; }
    .lm-table { min-width: 900px; }
    .lm-flag-box {justify-content: left;}
}


/*LANGUAGE LIST*/

 .lm-language-list { display: grid; gap: 14px; }

.lm-language-card { border: 1px solid #e1e1e1; border-radius: 4px; background: #fff; padding: 14px 20px; }
.lm-language-card a { text-decoration: none!important; }

.lm-language-card__top { display:flex; gap: 15px; align-items: center }
.lm-language-card__top img { max-width: 75px; border-radius: 4px; }
.lm-language-card__title a { text-decoration: none; }

.lm-language-card__actions { display:flex; justify-content:flex-end; }

.lm-language-card__kpis { display:flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; font-size: 14px; }

.lm-language-card__desc { margin-top: 10px; font-size: 12px; line-height: 1.45; opacity: .8; }

@media (max-width: 900px) {
    .lm-language-card__top { flex-direction: column; }
    .lm-language-card__actions { justify-content:flex-start; }
}



/*LANGUAGE DETAIL*/

.lm-hero img { width: 100%; max-height: 250px; object-fit: cover; }

.lm-h1 { margin:0; }
.lm-subtitle { margin: 0; padding: 0; color:#5b6777; }

.lm-block-title { font-weight:700; margin-bottom: 6px; }
.lm-muted { color:#111; opacity:.75; }

.lm-eu-emoji { font-size: 30px; margin-right: 5px; }
.lm-eu-caption { margin-top: 10px; font-size: 15px; opacity: 0.8; display: inline-flex; align-items: center }

.lm-overview-head { font-weight:700; }
.lm-overview-body { padding: 10px 4px 0; }
.lm-row { display:flex; justify-content:space-between; gap: 10px; padding: 8px 0; border-bottom:1px solid #eef2f7; }

.lm-wikitongue-link { float: right; margin-top: 20px; }
.lm-eurobaro-link { float: right; margin-top: 20px; }

.lm-report-links { float: right; margin-top: 10px; gap: 10px; }

.lm-parent-lang{ margin-top: 20px; color: #5b6777; }
.lm-sub-lang{ margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; color: #5b6777; }
.lm-sub-lang a { border: 1px solid #EBB55E; border-radius: 4px; padding: 0 4px; color: #5b6777 }

.lm-lastcell-th{ border-right-width: 3px !important; border-right-color: white!important; border-top-right-radius: 10px;}
.lm-firstcell-th{     background-color: #177b73 !important; border-top-left-radius: 20px;}
.lm-lastcell{ border-right-width: 3px !important;}

.lm-table-country .lm-lastcell {border-right-color: #177b73 !important;}
.lm-table-lang .lm-lastcell {border-right-color: rgba(235, 181, 94, 0.5) !important;}

.lm-empty-row { height: 28px; opacity: .5; }

.lm-flag-grid { display:grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 12px; }
.lm-flag-tile { display:block; text-decoration:none; color:inherit; }
.lm-flag-imgwrap,
.lm-flag-fallback {
    width: 100%;
    height: 60px;
    border-radius: 2px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:#fff;
}
.lm-flag-imgwrap img {
    border: 1px solid #e5e7eb;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    filter: opacity(50%) }
.lm-flag-imgwrap img:hover { width: 100%; height: 100%; filter: opacity(75%) }
.lm-flag-fallback { font-size: 12px; opacity: .7; }
.lm-flag-caption { margin-top: 6px; text-align:center; opacity: .8; }

@media (max-width: 1100px) {
    .lm-flag-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .lm-topgrid {
        grid-template-columns: 1fr;
    }

    .lm-table {
        min-width: 650px;
    }

    .lm-flag-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .lm-flag-fallback {
        height: 75px;
    }

    .lm-flag-caption {
        font-size: 11px;
    }

}
@media (max-width: 520px) {
    .lm-topgrid {
        grid-template-columns: 1fr;
    }

    .lm-table {
        min-width: 650px;
    }

    .lm-flag-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lm-flag-fallback {
        height: 80px;
    }

    .lm-flag-caption {
        font-size: 10px;
    }

}

/* MAP */
#lm-map{
    height: 750px;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
}

.lm-map-wrap .leaflet-control-zoom a {
    border-bottom: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}
.lm-map-wrap .leaflet-control-zoom a:focus {
    outline: none !important;
}

.lm-map-wrap .leaflet-interactive:focus {
    outline: none !important;
}




/* FILTER */

.lm-layout{
    display:grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items:start;
}

.lm-filters{
    /*position: sticky;*/
    top: 16px;
    background: #fff;
}

.lm-filter-group{
    margin-bottom: 16px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 16px;
}

.lm-filter-group label{

}

.lm-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 14px;
}

.lm-label{ display:block; font-weight:600; margin-bottom: 10px; }
.lm-sub-label{ display:block; font-weight:600; margin-bottom: 10px; font-size: smaller }
.lm-filter-na{ font-size: smaller; color: #9b9b9b;}
.lm-hr-muted{ background-color: #e1e1e1;}

@media (max-width: 900px){
    .lm-layout{ grid-template-columns: 1fr; }
    .lm-filters{ position: static; }
}




/* tooltip */
.lm-tt{
    min-width: 200px;
}

.lm-tt-flag{
    width: 50px; height: auto; border:1px solid #e5e7eb; border-radius: 4px; background:#fff; margin-bottom: 10px;
}
.lm-tt-name{
    font-size: large; margin-bottom: 10px;
}




/* status badges */
.lm-badge-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.lm-badge{
    border: 1.5px solid #656565;
    border-radius: 2px;
    background: #fff;
    overflow: hidden;
}

.lm-badge .t{
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 6px 8px;
    color: #ffffff;
}

.lm-badge .b{
    padding: 10px 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #000;
    text-align: center;
}



.lm-badge--yes .t{
    background: #1e968c;
}

.lm-badge--ratified .t{
    background: #38b5ad;
}

.lm-badge--inforce .t{
    background: #40b697;
}

.lm-badge--pending .t{
    background: #9b9b9b;
}

.lm-badge--no .t{
    background: #9b9b9b;
}

.lm-badge--unknown .t{
    background: #9b9b9b;
}





@media (max-width: 980px){
    .lm-grid{
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lm-card--left,
    .lm-card--right{
        width: 100%;
        min-width: 0;
    }

    .lm-flag-box{
        justify-content: left;
    }
}

@media (max-width: 920px){
    .lm-badges-row{
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .lm-badge-grid{
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .lm-badge{
        min-width: 0;
    }

    .lm-badge .t{
        font-size: 0.7rem;
        padding: 6px 6px;
        text-align: center;
        white-space: nowrap;
    }

    .lm-badge .b{
        padding: 10px 6px;
        text-align: center;
        font-size: 0.95rem;
    }
}

@media (max-width: 420px){
    .lm-badge-grid{
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}


.lm-table-lang th{
    background-color: #EBB55E;
}

.lm-table-country th{
    background-color: #1e968c;
}


.lm-pagination { display:flex; gap:.5rem; align-items:center; justify-content:center; margin:1rem 0; flex-wrap:wrap; }
.lm-pagination button { padding:.35rem .6rem; border:1px solid #ddd; background:#fff; cursor:pointer; }
.lm-pagination button[disabled] { opacity:.5; cursor:not-allowed; }
.lm-pagination .is-active { font-weight:700; border-color:#999; }
.lm-pagination .lm-pageinfo { margin:0 .5rem; opacity:.8; }


.lm-pills { display:flex; flex-wrap:wrap; gap:.5rem; }
.lm-pillbtn {
    display:inline-flex; align-items:center; gap:.35rem;
    padding:.25rem .5rem; border:1px solid #ddd; border-radius:999px;
    background:#fff; cursor:pointer; font-size:.9em;
}
.lm-pillbtn .x { font-weight:700; opacity:.7; }
.lm-pillbtn:hover .x { opacity:1; }
.lm-pillbtn--reset { width: 100%; background-color: #1e968c; color: white; justify-content: center; }

.lm-activefilter-label{ width: 100%;}

.lm-search{
    border-radius: 3px!important;
    margin-bottom: 16px!important;
}


.lm-pill-status{
    border: 2px solid white;
    border-radius: 5px;
    padding: 0 4px;
}

.lm-pill--signed{
    border-color: #1e968c;
}

.lm-pill--ratified{
    border-color: #38b5ad;
}

.lm-pill--in{
    border-color: #40b697;
}

.lm-pill--unsigned{
    border-color: #9b9b9b;
}



.lm-language-label{
    margin-top: 20px;
}

.lm-language-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    margin-top: 5px;

    background: #f8fafc;
    border-radius: 6px;
}

.lm-lang-btn {
    appearance: none;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;

    padding: 4px 8px;
    border-radius: 6px;

    line-height: 1.2;
    white-space: nowrap;

    cursor: pointer;
    transition:
            background-color .15s ease,
            border-color .15s ease,
            color .15s ease;
}

.lm-lang-btn:disabled{
    color: lightgrey;
    cursor: unset;
    transition: none;
}

.lm-lang-btn:disabled:hover{
    border-color: #cbd5e1;
    color: lightgrey;
}

.lm-lang-btn:hover {
    border-color: #1e968c;
    color: #1e968c;
}

.lm-lang-btn.is-active {
    background: #1e968c;
    border-color: #1e968c;
    color: #ffffff;
}

.lm-lang-btn.is-active:hover {
    color: #ffffff;
}

.lm-lang-btn svg {
    fill: currentColor;
}

.lm-ext-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: normal;
}



.lm-country-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding:10px;
    background: #f8fafc;
}

.lm-country-btn{
    background:#f1f5f9;
    border:1px solid #cbd5e1;
    padding:4px 10px;
    border-radius:4px;
    cursor:pointer;
    font-size:0.85rem;
}

.lm-country-btn:hover{
    background:#1e968c;
    color:white;
    border-color:#1e968c;
}

.lm-country-label{
    margin-top: 15px;
}



/* === IonRangeSlider === */

.irs--round .irs-bar {
    background-color: #1e968c;
}

.irs--round .irs-handle {
    border: 2px solid #1e968c;
    background-color: #ffffff;
}

.irs--round .irs-handle:hover {
    background-color: #1e968c;
}

.irs--round .irs-from,
.irs--round .irs-to {
    background-color: #ffffff;
    color: #1e968c;
    border: 1px solid #1e968c;
}

.irs--round .irs-line {
    background-color: #e6f5f3;
}

.irs--round .irs-single {
    background-color: #1e968c;
    font-size: 12px;
}

.irs--round .irs-min, .irs--round .irs-max{
    display: none;
}

.irs--round .irs-from, .irs--round .irs-to, .irs--round .irs-min, .irs--round .irs-max{
    font-size: 13px;
}

.irs--round .irs-from:before, .irs--round .irs-to:before{
    border-top-color: #1e968c;
}




/* COMMENTS */
.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 14px;
    border: 1px solid #1e968c;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-author .says {
    display: none;
}

.comment-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.comment-content {
    line-height: 1.6;
    font-size: 1rem;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 999px;
    background: #eef2f7;
    color: #374151;
    transition: all .15s ease;
}

.comment-reply-link:hover {
    background: #1e968c;
    color: #fff;
}

