/* ============================================
   STYLES PAGES CRUISE LINE (SHOW & INDEX)
   Trame : docs/seo/trame-pages-compagnies.md
   ============================================ */

/* Header */
.cruise-line-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.cruise-line-header h1 {
    margin: 0 0 0.5rem;
}

.cruise-line-logo-large {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

.cruise-line-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 2rem;
}

/* Badges for cruise line types */
.badge-luxury {
    background: #f7fafc;
    color: #a8862b;
    border: 1px solid #d4af37;
}

.badge-premium {
    background: #f7fafc;
    color: #5a67d8;
    border: 1px solid #667eea;
}

.badge-contemporary {
    background: #f7fafc;
    color: #2b6cb0;
    border: 1px solid #4299e1;
}

.badge-river {
    background: #f7fafc;
    color: #2f855a;
    border: 1px solid #48bb78;
}

.badge-expedition {
    background: #f7fafc;
    color: #c05621;
    border: 1px solid #ed8936;
}

/* Key facts */
.cl-facts dl {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin: 0 0 2rem;
}

.cl-facts dl > div {
    background: var(--cream);
    border-left: 4px solid var(--azur-blue);
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.cl-facts dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4a5568;
}

.cl-facts dd {
    margin: 0.25rem 0 0;
    font-weight: 600;
    color: var(--dark-navy);
}

.cl-facts dd small {
    font-weight: 400;
    color: #4a5568;
}

/* Table of contents */
.cl-toc {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2.5rem;
}

.cl-toc ol {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
    columns: 2;
    column-gap: 2rem;
}

.cl-toc li {
    margin-bottom: 0.25rem;
}

/* Sections */
.cl-section {
    margin-bottom: 3rem;
}

.cl-section h2 {
    margin-bottom: 1rem;
}

.cl-section h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.15rem;
}

.cl-section p {
    line-height: 1.7;
}

.cl-note {
    font-size: 0.9rem;
    color: #4a5568;
}

.cl-highlight {
    background: var(--cream);
    border-left: 4px solid var(--gold);
    padding: 1rem 1.25rem;
    border-radius: 6px;
}

/* Pros and cons */
.cl-proscons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.cl-pros,
.cl-cons {
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.cl-pros {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
}

.cl-cons {
    background: #fff5f5;
    border: 1px solid #feb2b2;
}

.cl-pros h3,
.cl-cons h3 {
    margin-top: 0;
}

.cl-pros ul,
.cl-cons ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* Audience */
.cl-profiles {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.cl-profiles li {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.cl-profiles p {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
}

.cl-fit {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}

.cl-fit-good .cl-fit {
    background: #c6f6d5;
    color: #22543d;
}

.cl-fit-average .cl-fit {
    background: #feebc8;
    color: #7b341e;
}

.cl-fit-poor .cl-fit {
    background: #fed7d7;
    color: #742a2a;
}

/* Horizontal bars (destinations) */
.cl-bars {
    list-style: none;
    padding: 0;
}

.cl-bars li {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr auto;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.cl-bar {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, var(--azur-blue) var(--ratio), #e2e8f0 var(--ratio));
}

.cl-bar-value {
    font-size: 0.85rem;
    color: #4a5568;
    white-space: nowrap;
}

/* Chips (countries) */
.cl-chips {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cl-chips a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--azur-blue);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Months */
.cl-months {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.35rem;
    align-items: end;
    height: 140px;
    max-width: 640px;
}

.cl-month {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.cl-month-bar {
    display: block;
    height: var(--ratio);
    min-height: 2px;
    background: var(--azur-blue);
    border-radius: 3px 3px 0 0;
}

.cl-month-label {
    font-size: 0.7rem;
    text-align: center;
    color: #4a5568;
    margin-top: 0.25rem;
}

/* Departure ports */
.cl-ports {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem 1.5rem;
}

.cl-ports li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    border-bottom: 1px dashed #e2e8f0;
    padding: 0.35rem 0;
}

.cl-ports span {
    font-size: 0.85rem;
    color: #4a5568;
}

.cl-port-fr {
    font-weight: 600;
}

/* Tables */
.cl-table-wrap {
    overflow-x: auto;
}

.cl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.cl-table th,
.cl-table td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.cl-table thead th {
    background: var(--deep-blue);
    color: white;
    font-weight: 600;
}

.cl-table tbody th {
    font-weight: 600;
}

.cl-compare-name {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.cl-compare-name img {
    object-fit: contain;
}

/* Cards (cabins, fares) */
.cl-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.cl-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.cl-card h3,
.cl-card h4 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.cl-card p {
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
}

.cl-card-meta {
    color: var(--azur-blue);
    font-weight: 600;
}

/* Fees */
.cl-fee {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.cl-fee h3 {
    margin-top: 0;
}

.cl-fee-status {
    display: inline-block;
    font-weight: 700;
    padding: 0.15rem 0.75rem;
    border-radius: 999px;
}

.cl-fee-included {
    background: #c6f6d5;
    color: #22543d;
}

.cl-fee-extra {
    background: #feebc8;
    color: #7b341e;
}

/* Next departures */
.cl-departures {
    list-style: none;
    padding: 0;
}

.cl-departures li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.25rem 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.cl-departure-meta {
    grid-column: 1;
    font-size: 0.9rem;
    color: #4a5568;
}

.cl-departure-price {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-weight: 700;
    color: var(--deep-blue);
    white-space: nowrap;
}

/* FAQ */
.cl-faq details {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.cl-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-navy);
}

.cl-faq details p {
    margin: 0.5rem 0 0;
}

/* Sources */
.cl-sources {
    border-top: 2px solid #e2e8f0;
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #4a5568;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    body:has(.cruise-line-header) .user-account-bar {
        top: 144px;
    }

    body:has(.cruise-line-header) .user-account-bar.sticky-scrolled {
        top: 15px;
    }

    body:has(.cruise-line-header) .share-bar {
        top: -9px;
    }

    body:has(.cruise-line-header) .share-bar.sticky-scrolled {
        top: -138px;
    }

    .cruise-line-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cruise-line-header h1 {
        font-size: 1.9rem;
    }

    .cruise-line-logo-large {
        width: 80px;
        height: 80px;
    }

    .cl-toc ol {
        columns: 1;
    }

    .cl-bars li {
        grid-template-columns: 1fr auto;
    }

    .cl-bar {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

/* ============================================
   PAGE COMPARATIF (/compagnies)
   ============================================ */

/* Neutralise the global section styles (padding, alternate white background, centered h2) */
.cl-index section {
    padding: 0;
    background: none;
    animation: none;
}

.cl-index section h2 {
    text-align: left;
}

.cl-index section h2::after {
    display: none;
}

.cl-index-header {
    max-width: 860px;
    margin: 0 auto 2rem;
    text-align: center;
}

.cl-index-header .cruise-line-lead {
    margin-bottom: 0;
}

/* Category tiles */
.cl-range-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.cl-range-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 1.25rem 0.75rem;
    background: white;
    border: 2px solid var(--dark-navy);
    border-radius: 10px;
    box-shadow: 4px 4px 0 var(--ochre);
    text-align: center;
    text-decoration: none;
    color: var(--dark-navy);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cl-range-tile:hover,
.cl-range-tile:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ochre);
}

.cl-range-tile .cl-range-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.cl-range-tile strong {
    font-size: 1.05rem;
}

.cl-range-tile span {
    font-size: 0.85rem;
    color: #4a5568;
}

.cl-range-tile .cl-range-price {
    color: var(--azur-blue);
    font-weight: 600;
}

/* Category section */
.cl-range {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.cl-range-intro {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 2rem;
    align-items: start;
    margin-bottom: 1.75rem;
}

.cl-range-intro h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--gold);
}

.cl-range-intro p {
    line-height: 1.75;
    color: #2d3748;
    margin: 0 0 0.9rem;
}

.cl-range-points {
    background: var(--deep-blue);
    color: white;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.cl-range-points h3 {
    color: var(--gold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem;
}

.cl-range-points ul {
    margin: 0;
    padding-left: 1.1rem;
}

.cl-range-points li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.cl-range-figures {
    margin: 1rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Cruise line cards */
.cl-line-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
}

.cl-line-grid > li {
    display: flex;
}

.cl-line-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: white;
    border: 2px solid var(--dark-navy);
    border-radius: 10px;
    box-shadow: 4px 4px 0 var(--ochre);
    overflow: hidden;
    text-decoration: none;
    color: var(--dark-navy);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cl-line-card:hover,
.cl-line-card:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ochre);
}

.cl-line-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #edf2f7;
}

.cl-line-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cl-line-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 1.25rem 0;
}

.cl-line-style {
    padding: 0.35rem 1.25rem 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #4a5568;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cl-line-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-top: auto;
    font-size: 0.92rem;
    font-weight: 600;
}

.cl-line-meta small {
    display: block;
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #718096;
    margin-bottom: 0.15rem;
}

.cl-line-foot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #eef4fa;
    border-top: 1px solid #d5e2ef;
    font-size: 0.88rem;
    color: #4a5568;
}

.cl-line-foot > span {
    white-space: nowrap;
}

.cl-line-foot strong {
    color: var(--deep-blue);
    font-size: 1rem;
    white-space: nowrap;
}

.cl-line-foot strong small {
    font-weight: 400;
    font-size: 0.78rem;
    color: #4a5568;
}

@media (max-width: 1024px) {
    .cl-range-nav {
        grid-template-columns: repeat(3, 1fr);
    }

    .cl-range-intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cl-range-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .cl-range-nav .cl-range-tile:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* ============================================
   FICHE COMPAGNIE (/compagnies/{slug}) : même habillage que le comparatif
   ============================================ */

/* Neutralise the global section styles (padding, alternate white background, centered h2) */
.cl-show section {
    padding: 0;
    background: none;
    animation: none;
    text-align: left;
}

.cl-show section h2 {
    display: block;
    text-align: left;
}

.cl-show section h2::after {
    display: none;
}

/* Every section is a framed card */
.cl-show .cl-section {
    background: white;
    border: 2px solid var(--dark-navy);
    border-radius: 10px;
    box-shadow: 4px 4px 0 var(--ochre);
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
    scroll-margin-top: 100px;
}

.cl-show .cl-section h2,
.cl-show .cruise-line-header h1 {
    text-align: left;
}

.cl-show .cl-section p {
    margin: 0 0 0.9rem;
}

.cl-show .cl-section h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    margin: 0 0 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--gold);
}

.cl-show .cl-section h3 {
    color: var(--deep-blue);
}

.cl-show .cl-section > p:last-child {
    margin-bottom: 0;
}

/* Key facts: four framed figures, then the identity card */
.cl-show .cl-facts {
    margin-bottom: 2rem;
}

.cl-show .cl-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin: 0 0 1.25rem;
}

.cl-show .cl-kpis > div {
    background: white;
    border: 2px solid var(--dark-navy);
    border-radius: 10px;
    box-shadow: 3px 3px 0 var(--ochre);
    padding: 0.9rem 1.1rem;
    text-align: center;
}

.cl-show .cl-kpis dd {
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--deep-blue);
}

.cl-show .cl-kpis dd small {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.8rem;
}

.cl-show .cl-identity {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
    margin: 0;
    background: white;
    border: 2px solid var(--dark-navy);
    border-radius: 10px;
    box-shadow: 4px 4px 0 var(--ochre);
    padding: 0.5rem 1.75rem;
}

.cl-show .cl-identity > div {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #edf2f7;
    background: none;
    border-left: 0;
    border-radius: 0;
}

.cl-show .cl-identity dt {
    font-size: 0.75rem;
    padding-top: 0.15rem;
}

.cl-show .cl-identity dd {
    margin: 0;
    font-weight: 600;
    line-height: 1.45;
}

.cl-show .cl-facts dt {
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
}

@media (max-width: 768px) {
    .cl-show .cl-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .cl-show .cl-identity {
        grid-template-columns: 1fr;
        padding: 0.25rem 1.1rem;
    }

    .cl-show .cl-identity > div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

/* Table of contents: navy box, like « À retenir » */
.cl-show .cl-toc {
    background: var(--deep-blue);
    color: white;
    border-radius: 10px;
    padding: 1.25rem 1.75rem;
}

.cl-show .cl-toc strong {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}

.cl-show .cl-toc a {
    color: white;
    text-decoration: none;
}

.cl-show .cl-toc a:hover,
.cl-show .cl-toc a:focus-visible {
    color: var(--gold);
    text-decoration: underline;
}

.cl-show .cl-toc li::marker {
    color: var(--gold);
}

/* Inner cards */
.cl-show .cl-card,
.cl-show .cl-profiles li {
    border: 1px solid var(--dark-navy);
    border-radius: 8px;
}

.cl-show .cl-fee {
    background: #eef4fa;
    border: 1px solid #d5e2ef;
}

.cl-show .cl-highlight {
    background: #fdf8ee;
}

/* Header */
.cl-show .cruise-line-header {
    margin-bottom: 1.25rem;
}

.cl-show .cruise-line-logo-large {
    background: white;
    border: 2px solid var(--dark-navy);
    border-radius: 10px;
    box-shadow: 3px 3px 0 var(--ochre);
    padding: 0.5rem;
}

/* Sources: a quiet footer, not a card */
.cl-show .cl-sources {
    border-top: 3px solid var(--gold);
}

@media (max-width: 768px) {
    .cl-show .cl-section {
        padding: 1.25rem 1.1rem;
    }
}

/* ============================================
   GRAPHIQUES : destinations (donut) et saisons (colonnes)
   ============================================ */
.cl-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.cl-chart {
    margin: 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid #d5e2ef;
    border-radius: 10px;
    background: #fbfdff;
    display: flex;
    flex-direction: column;
}

.cl-chart h3 {
    margin: 0 0 0.35rem !important;
}

.cl-chart-takeaway {
    margin: 0 0 1.25rem !important;
    color: #2d3748;
}

.cl-chart-note {
    margin: auto 0 0 !important;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: #718096;
}

/* Donut */
.cl-donut-wrap {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.cl-donut {
    width: 190px;
    height: 190px;
    transform: rotate(0deg);
}

.cl-donut circle {
    transition: stroke-width 0.15s ease;
}

.cl-donut circle:hover {
    stroke-width: 7;
}

.cl-donut-value {
    font-family: var(--font-display);
    font-size: 7px;
    font-weight: 800;
    fill: var(--dark-navy);
    text-anchor: middle;
}

.cl-donut-caption {
    font-size: 3px;
    fill: #4a5568;
    text-anchor: middle;
}

.cl-legend {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cl-legend li {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.92rem;
}

.cl-legend li:last-child {
    border-bottom: 0;
}

.cl-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.cl-legend-value {
    font-weight: 700;
    color: var(--dark-navy);
    white-space: nowrap;
}

.cl-legend-value small,
.cl-chips a span {
    margin-left: 0.4rem;
    font-weight: 400;
    font-size: 0.78rem;
    color: #718096;
}

/* Monthly columns */
.cl-columns {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
    align-items: end;
    height: 190px;
    padding-top: 1.1rem;
    border-bottom: 1px solid #a0aec0;
}

.cl-column {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.cl-column-bar {
    display: block;
    width: 100%;
    max-width: 26px;
    min-height: 2px;
    background: #9ec5f4;
    border-radius: 4px 4px 0 0;
}

.cl-column-high .cl-column-bar {
    background: #2a78d6;
}

.cl-column-value {
    font-size: 0.7rem;
    color: #4a5568;
    margin-bottom: 2px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.cl-column:hover .cl-column-value,
.cl-column:focus .cl-column-value,
.cl-column-peak .cl-column-value {
    opacity: 1;
}

.cl-column-peak .cl-column-value {
    font-weight: 700;
    color: var(--dark-navy);
}

.cl-column-label {
    position: absolute;
    top: 100%;
    margin-top: 0.3rem;
    font-size: 0.7rem;
    color: #4a5568;
    text-align: center;
    line-height: 1.2;
}

.cl-column-label small {
    display: block;
    font-size: 0.62rem;
    color: #a0aec0;
}

.cl-columns + .cl-chart-note {
    margin-top: 2.2rem !important;
}

.cl-chips a span {
    margin-left: 0.35rem;
}

@media (max-width: 1024px) {
    .cl-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .cl-donut-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .cl-legend {
        width: 100%;
    }

    .cl-chart {
        padding: 1rem;
    }
}

/* Country bars (single-destination lines: river) */
.cl-hbars {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cl-hbars li {
    display: grid;
    grid-template-columns: minmax(90px, 9rem) 1fr 3rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0.3rem 0;
    font-size: 0.92rem;
}

.cl-hbar-track {
    height: 12px;
    background: #edf2f7;
    border-radius: 0 4px 4px 0;
}

.cl-hbar-fill {
    display: block;
    height: 100%;
    background: #2a78d6;
    border-radius: 0 4px 4px 0;
}

.cl-hbar-value {
    text-align: right;
    font-weight: 700;
    color: var(--dark-navy);
}

/* Two-ring donut: departure countries and ports */
.cl-sunburst .cl-donut-wrap {
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

.cl-sunburst .cl-donut {
    width: 260px;
    height: 260px;
}

.cl-donut-value-sm {
    font-size: 6px;
}

.cl-legend-tree {
    columns: 2;
    column-gap: 2rem;
}

.cl-legend-tree > li {
    display: block;
    break-inside: avoid;
    padding: 0 0 0.6rem;
    border-bottom: 0;
}

.cl-legend-tree ul {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.4rem;
}

.cl-legend-row {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0;
    font-size: 0.88rem;
    border-bottom: 1px solid #edf2f7;
}

.cl-legend-tree ul li:last-child {
    border-bottom: 0;
}

.cl-legend-country {
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 2px solid #d5e2ef;
}

@media (max-width: 1024px) {
    .cl-legend-tree {
        columns: 1;
    }
}

@media (max-width: 768px) {
    .cl-sunburst .cl-donut-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .cl-sunburst .cl-donut {
        width: 220px;
        height: 220px;
    }

    .cl-legend-tree {
        width: 100%;
    }
}

.cl-legend-more {
    margin: 0.35rem 0 0 1.4rem !important;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #718096;
}

.cl-show .cl-line-grid + p {
    margin: 1.5rem 0 0;
}
