/* Homepage */

.homepage-block {
    height: 260px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    color: white;
    text-align: center;
}

.block-header {
    height: 40px;
    font-size: 1.125rem;
}

    .block-header .row, .block-header-content {
        height: 100%;
    }

    .block-header a {
        width: 100%;
        color: white;
        text-decoration: none;
    }

.block-header-content {
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.block-header-text {
    padding: 0.5rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

    .block-header-text .header-icon {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 0.625rem;
        font-size: 1.25rem;
    }

        .block-header-text .header-icon::after {
            margin: 0;
        }

.block-content {
    height: 220px;
    overflow: hidden;
}

.homepage-block.welcome-block .block-header-content, .homepage-block.video-block .block-header-content {
    background-color: var(--primary-color-dark);
}

.homepage-block.welcome-block .block-header {
    position: relative;
}

.homepage-block.welcome-block .block-content {
    /* Every row — text line, paragraph gap, and the two-row heading — is exactly one --welcome-line
       tall, so the clip can only land on a line boundary. --welcome-lines is one below
       --welcome-rows: the gap between the two paragraphs spends a row the clamp cannot count. */
    --welcome-line: 1rem;
    --welcome-rows: 9;
    --welcome-lines: 8;

    flex: 1;
    min-height: 0;
    color: var(--grey-color);
    margin: 1.375rem;
}

    .homepage-block.welcome-block .block-content h3 {
        color: var(--grey-color);
        line-height: calc(2 * var(--welcome-line));
        margin-bottom: 0;
    }

    .homepage-block.welcome-block .block-content p {
        line-height: var(--welcome-line);
        margin-bottom: var(--welcome-line);
    }

/* The resource editor decides how long this text is, so the tile has to survive any of it: the
   clamp buys the ellipsis, max-height keeps a half-cut line off the screen. It sits on the span
   because the resource HTML lands inside it — its paragraphs are too deep for a clamp on .block-content. */
.homepage-block.welcome-block .block-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--welcome-lines);
    max-height: calc(var(--welcome-rows) * var(--welcome-line));
    overflow: hidden;
}

/* Below 768px the root font drops to 14px, putting this text at 12.25 — smaller than the same
   text on desktop, in the one tile that is nothing but prose. Back to 14, grid widened to match. */
@media (max-width: 767.98px) {
    .homepage-block.welcome-block .block-content {
        --welcome-line: 1.25rem;
        --welcome-rows: 8;
        --welcome-lines: 7;
    }

        .homepage-block.welcome-block .block-content p {
            font-size: 1rem;
        }
}

.homepage-block.welcome-block img {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%) rotate(-10deg);
    height: 70px;
    width: auto;
}

.homepage-block.video-block .block-content {
    background: linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)), url(/images/video.png) center / 160% auto no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Without the shadow the white mark reads as a hole over the map's pale half. */
    .homepage-block.video-block .block-content img {
        width: 56px;
        height: 56px;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
    }

.homepage-block .info-link {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 25px;
    color: white;
    display: flex;
}

.homepage-block.shipoffers-block h2, .homepage-block.freightoffers-block h2 {
    color: white;
    font-size: 2.25rem;
    padding-bottom: 1.5rem;
}

/* An <a> to the info modal, not a div — hence the link resets. */
.homepage-block.shipoffers-block .block-content, .homepage-block.freightoffers-block .block-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    color: white;
    text-decoration: none;
}

/* The 25px icon is not the target — the whole cell is. */
.homepage-block.shipoffers-block .block-header a, .homepage-block.freightoffers-block .block-header a {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

    /* Darkening alone lands on the colour the panel above ends with, so the cell would merge
       upwards — the lit top edge is what keeps it reading as a button. Inset, not a border:
       a real border would resize the box and shift the icon off centre. */
    .homepage-block.shipoffers-block .block-header a:hover, .homepage-block.freightoffers-block .block-header a:hover {
        box-shadow: inset 0 1px 0 white;
    }

.homepage-block.shipoffers-block .block-content:focus-visible,
.homepage-block.freightoffers-block .block-content:focus-visible,
.homepage-block.shipoffers-block .block-header a:focus-visible,
.homepage-block.freightoffers-block .block-header a:focus-visible {
    outline: 2px solid white;
    outline-offset: -4px;
}

.homepage-block.shipoffers-block .block-content {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-color-dark));
}

    .homepage-block.shipoffers-block .block-content img {
        padding-top: 70px;
    }

/* Buttons carry the gradient's light end so they lift off the panel, same as the cargo block. */
.homepage-block.shipoffers-block .block-header-content {
    background-color: var(--primary-color);
}

    .homepage-block.shipoffers-block .block-header a:hover {
        background-color: var(--primary-color-dark);
    }

.homepage-block.shipoffers-block .block-header .row > div + div {
    border-left: 1px solid var(--primary-color-dark);
}

.homepage-block.freightoffers-block .block-content {
    background: linear-gradient(180deg, var(--secondary-color), var(--secondary-color-dark));
}

    .homepage-block.freightoffers-block .block-content img {
        padding-top: 25px;
    }

.homepage-block.freightoffers-block .block-header-content {
    background-color: var(--secondary-color);
}

    .homepage-block.freightoffers-block .block-header a:hover {
        background-color: var(--secondary-color-dark);
    }

.homepage-block.freightoffers-block .block-header .row > div + div {
    border-left: 1px solid var(--secondary-color-dark);
}

.homepage-block.ratio-block .block-content {
    padding: var(--spacer);
    display: flex;
    align-items: center;
}

.homepage-block.chart-block .block-content {
    padding: 0.25rem;
    display: flex;
    align-items: center;
}

/* The slide is vertically centred, so it grows downward into .block-switcher-dots — the chart is
   140px instead of 160 here to keep the two apart. */
.chart-content-slide .chart-max-hint {
    margin-top: 0.25rem;
    line-height: 1.15;
    font-size: 0.7rem;
}

.block-bar-nav {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* The inset the bar used to carry sits on the buttons instead: the chevrons stay put, but
   their box now runs to the bar's edge, so the hover reads as a target and not as the bar. */
.block-bar-nav__btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0.5rem;
    height: 100%;
    color: inherit;
    line-height: 1;
    transition: background-color 0.15s ease;
}

    .block-bar-nav__btn:hover {
        background-color: var(--primary-color-dark);
    }

    .block-bar-nav__btn:focus-visible {
        outline: 2px solid white;
        outline-offset: -4px;
    }

.radar-info {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: var(--grey-color-light);
    padding: 30px;
    margin: 50px -20px -20px -20px;
}

.bbc-block {
    box-shadow: none;
    margin-bottom: var(--spacer);
}

.company-user-block, .fleet-block, .water-level-block {
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .company-user-block:hover, .fleet-block:hover, .water-level-block:hover {
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

.company-user-block .block-header-content {
    background-color: var(--grey-color);
}

.company-user-block .block-content {
    background-image: linear-gradient(0deg, var(--grey-color) 0%, #3b3b3b 100%);
}

.fleet-block .block-header-content {
    background-color: var(--primary-color);
}

.fleet-block .block-content {
    background-image: linear-gradient(0deg, var(--primary-color) 0%, #204c44 100%);
}

.water-level-block .block-header-content {
    background-color: #e53a11;
}

.water-level-block .block-content {
    background-image: linear-gradient(0deg, #e53a11 0%, #af300a 100%);
}

/* An <a> to the panel's own page, not a div — hence the link resets. */
.service-block .block-content {
    font-size: 0.875rem;
    line-height: normal;
    display: block;
    color: white;
    text-decoration: none;
}

    .service-block .block-content:focus-visible {
        outline: 2px solid white;
        outline-offset: -4px;
    }

.service-block .block-icon-container {
    height: 100px;
    align-content: center;
}

.service-block-value {
    font-size: 1.25rem;
}

.water-level-btn {
    font-size: 0.6825rem;
    margin-top: 0.5rem;
    --bs-btn-color: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-border-color: #fff;
    --bs-btn-padding-y: 0.1rem;
}

@media (max-width: 576px) {
    .homepage-wrapper {
        padding-top: calc(var(--bs-gutter-y) - 10px);
        padding-bottom: calc(var(--bs-gutter-y) - 10px);
    }

    .service-block {
        height: auto;
    }

    .radar-info {
        margin: 0;
    }
}

/* BBC Interactive Map */

.bbc-map-container {
    position: relative;
    max-width: 100%;
}

.bbc-map-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Guest map: the figures sit behind a login. Blurred rather than replaced, so the picture
   still reads as withheld content instead of a map that failed to load. */
.bbc-map-locked {
    overflow: hidden;
}

.bbc-map-locked .bbc-map-image {
    filter: blur(5px);
    /* blur() samples past the edge and leaves it translucent — the scale pushes that soft rim
       outside the clipped box */
    transform: scale(1.03);
}

/* Not .gated-chip: that one is the offer grid's circle for an insufficient licence, and it
   lives in offer-grid.css, which this page does not load. Same language, different gate. */
.map-lock-chip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: calc(100% - 2rem);
    padding: 0.5rem 1rem;
    border: 1px solid var(--grey-color-border);
    border-radius: 999px;
    background-color: white;
    color: var(--secondary-color);
    font-size: 0.9375rem;
    text-align: center;
}

.bbc-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Country polygons — invisible, hover detection only */
.map-country {
    fill: transparent;
    cursor: pointer;
    transition: fill 0.2s ease;
}

    .map-country:hover,
    .map-country.active {
        fill: rgba(232, 239, 238, 0.5);
    }

/* Country flag icons — opacity by default, full color on hover */
.map-country-flag {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.map-country-flag.active {
    opacity: 1;
}

/* Region marker icons — hidden by default, shown on country hover */
.map-region {
    font-family: "fontello";
    font-size: 48px;
    fill: var(--primary-color);
    cursor: pointer;
    text-anchor: middle;
    dominant-baseline: central;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, fill 0.2s ease;
}

.map-region.visible {
    opacity: 0.75;
    pointer-events: auto;
}

.map-region.visible:hover {
    opacity: 1;
    fill: var(--primary-color-dark);
}
/* Tooltip */
.bbc-map-tooltip {
    position: absolute;
    z-index: 10;
    background: rgba(44, 96, 86, 0.95);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0.625rem;
    pointer-events: none;
    width: 100%;
    max-width: 260px;
    min-width: 220px;
    color: white;
}

    .bbc-map-tooltip .tooltip-name {
        margin: 0 0 0.75rem 0;
        font-size: 1rem;
        color: white;
        text-align: center;
    }

    .bbc-map-tooltip .tooltip-stats {
        display: flex;
    }

    .bbc-map-tooltip .tooltip-stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
    }

.bbc-map-tooltip .tooltip-stat-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin-bottom: 0.25rem;
}

.bbc-map-tooltip .tooltip-stat-img img {
    object-fit: contain;
}

.bbc-map-tooltip .tooltip-img-ship {
    height: 20px;
    width: auto;
}

.bbc-map-tooltip .tooltip-img-freight {
    height: 50px;
    width: auto;
}

    .bbc-map-tooltip .tooltip-img-company {
        font-size: 2.75rem !important;
    }

    .bbc-map-tooltip .tooltip-img-user {
        font-size: 2.5rem !important;
    }

    .bbc-map-tooltip .tooltip-stat span {
        font-size: 0.875rem;
        padding: 0 0.5rem;
        line-height: normal;
    }

    .bbc-map-tooltip .tooltip-stat .tooltip-count {
        font-size: 3rem;
        line-height: normal;
    }

    .bbc-map-tooltip .tooltip-divider {
        border-left: 1px solid white;
        margin: 0 0.625rem;
    }

    .bbc-map-tooltip .tooltip-close {
        --bs-btn-close-bg: none;
        display: none;
        position: absolute;
        top: 0.125rem;
        right: 0.125rem;
        width: auto;
        height: auto;
        font-size: 1.25rem;
        color: white;
        opacity: 1;
        pointer-events: auto;
    }

/* Region list — on touch devices the tap target is the whole country, so the tooltip carries
   every region of it and the markers are indicators only. Hidden until JS fills it. */
.bbc-map-tooltip .tooltip-regions {
    display: none;
    flex-direction: column;
    min-height: 0;
    margin-top: 0.625rem;
}

.bbc-map-tooltip.with-regions .tooltip-regions {
    display: flex;
}

/* Only the bottom sheet shows it otherwise, and a hoverless tablet gets neither */
.bbc-map-tooltip.with-regions .tooltip-close {
    display: block;
}

.tooltip-region-head,
.tooltip-region {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tooltip-region-head {
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.6875rem;
    line-height: 1.15;
}

.tooltip-region-list {
    overflow-y: auto;
    /* The tooltip itself stays transparent to the pointer (it must, or it steals hover from
       the map) — a scrollport inside it has to take events back, like .tooltip-close does */
    pointer-events: auto;
    /* Only for a hoverless device above the bottom-sheet breakpoint — there the tooltip is
       positioned at the tap and cannot grow with the viewport */
    max-height: 15rem;
}

.tooltip-region {
    padding: 0.3125rem 0;
    font-size: 0.875rem;
}

.tooltip-region + .tooltip-region {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tooltip-region.highlight {
    background: rgba(255, 255, 255, 0.15);
}

.tooltip-region-name {
    flex: 1;
    min-width: 0;
}

.tooltip-region-count {
    flex: none;
    width: 3.75rem;
    text-align: center;
}

.background-map {
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('/images/bbc-map-guest.png') no-repeat center center;
    background-size: 100% 100%;
}

    .background-map .bbc-map-tooltip {
        background: rgba(87, 87, 86, 0.5);
        position: static !important;
        z-index: 0;
    }

/* Ratio Bars */

.ratio-bars {
    display: flex;
    flex-direction: row;
    gap: var(--spacer);
}

.ratio-bar-widget {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ratio-bar-title {
    color: var(--grey-color);
    text-align: center;
    font-size: 1.125rem;
}

.ratio-bar {
    display: flex;
    height: 200px;
    border-radius: calc(var(--border-radius) * 2);
    overflow: hidden;
    position: relative;
}

    .ratio-bar::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient( to right, rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.2) 1px, transparent 1px );
        background-size: 5% 100%;
        pointer-events: none;
    }

.ratio-bar__segment {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.ratio-bar__segment--ship {
    background-color: var(--primary-color);
}

.ratio-bar__segment--freight {
    background-color: var(--secondary-color);
}

.ratio-bar__value {
    color: #fff;
    font-size: 1.875rem;
}

.ratio-bar-legend {
    display: flex;
    justify-content: space-evenly;
    font-size: 0.875rem;
    color: var(--grey-color-text);
    white-space: nowrap;
    flex-wrap: wrap;
}

.ratio-bar-legend__item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.ratio-bar-legend__color {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

/* Ratio Bars — Compact */

.ratio-bars--compact {
    width: 100%;
    flex-direction: column;
    position: relative;
}

    .ratio-bars--compact .ratio-bar-title {
        font-size: 0.875rem;
    }

    .ratio-bars--compact .ratio-bar-widget {
        display: none;
        gap: 0.25rem;
    }

    .ratio-bars--compact .ratio-bar-widget.active {
        display: flex;
    }

    .ratio-bars--compact .ratio-bar {
        height: 130px;
    }

    .ratio-bars--compact .ratio-bar__value {
        font-size: 1.125rem;
    }

@media (max-width: 768px) {
    .bbc-map-tooltip {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        top: auto !important;
        width: 100%;
        max-width: 100%;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        pointer-events: auto;
    }

    .bbc-map-tooltip .tooltip-close {
        display: block;
    }

    /* Sheet grows with its content until it hits the viewport; the region list takes the rest
       and scrolls on its own, so the country figures above it stay put */
    .bbc-map-tooltip.with-regions {
        display: flex;
        flex-direction: column;
        max-height: 85vh;
    }

    .bbc-map-tooltip.with-regions .tooltip-regions {
        flex: 1 1 auto;
    }

    .bbc-map-tooltip.with-regions .tooltip-region-list {
        max-height: none;
        min-height: 0;
    }

    .background-map .bbc-map-tooltip {
        width: auto;
    }

    .ratio-bars:not(.ratio-bars--compact) {
        flex-direction: column;
    }
}

/* Chart Switcher */

.chart-nav-slide {
    display: none;
}

.chart-nav-slide.active {
    display: block;
}

[data-block-switcher] > .block-content {
    position: relative;
}

/* Absolute, so adding it cannot squeeze the widget it belongs to. Built by the switcher in
   site.js — there is no markup counterpart to keep in sync. */
.block-switcher-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.3125rem;
}

    .block-switcher-dots span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: var(--grey-color-border);
        transition: background-color 0.15s ease;
    }

    .block-switcher-dots span.active {
        background-color: var(--primary-color);
    }

.chart-content-slide {
    width: 100%;
}

.chart-content-slide:not(.active) {
    position: absolute;
    visibility: hidden;
}

/* BBC Freight Chart — Compact (sidebar) */
#freightChartCompact {
    width: 100%;
}

/* Kendo grows the point on hover but rings it in white, and its MVC builder exposes no
   Highlight().Markers() to say otherwise. The ring is a presentation attribute, which CSS outranks. */
#freightChartCompact [stroke="#fff"],
#freightChartCompact [stroke="#ffffff"] {
    stroke: var(--secondary-color);
}

#shipChartCompact [stroke="#fff"],
#shipChartCompact [stroke="#ffffff"] {
    stroke: var(--primary-color);
}

/* BBC Freight Chart */
.chart-filter-container {
    border-radius: 10px;
    border: 1px solid var(--grey-color-border);
    margin-bottom: 1rem;
    overflow: hidden;
}

.chart-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background-color: #f6f6f6;
}

.chart-filter-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

.chart-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-filter-row {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--grey-color-light-border);
}

.chart-filter-item {
    flex: 1;
}

.chart-filter-item label {
    font-size: 0.85rem;
    white-space: nowrap;
}

.chart-filter-checkboxes {
    column-count: 3;
    column-gap: 1rem;
    padding: 1.25rem;
    background-color: #f6f6f6;
}

.chart-filter-checkboxes label {
    font-size: 0.85rem;
    display: flex;
    gap: 0.35rem;
    cursor: pointer;
    break-inside: avoid;
    margin-bottom: 0.4rem;
}

/* The master switch leaves the panel standing but inert — grey it, or the dead clicks read
   as a broken page. */
.chart-filter-checkboxes label:has(input:disabled),
.chart-filter-item:has(select:disabled) label {
    opacity: 0.5;
    cursor: default;
}

.chart-empty-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Holds the place of the chart area, whose height is set in bbc-chart.js. */
    height: 400px;
    text-align: center;
    color: var(--grey-color-text);
}

/* On the BBC pages the caption belongs to the chart above it, not to the buttons below. */
.chart-max-hint {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--grey-color-text);
}

.chart-period-buttons {
    display: flex;
    margin-top: 1rem;
}

.chart-period-btn {
    flex: 1;
    border-radius: 0;
    border: 1px solid var(--grey-color-border);
    background-color: #f6f6f6;
    color: var(--grey-color-text);
    font-size: 0.875rem;
}

    .chart-period-btn.active {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
        color: #fff;
    }

.chart-period-btn:hover:not(.active) {
    background-color: var(--grey-color-light-border);
}

.chart-scheme-primary .chart-period-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.chart-period-btn.no-license-trigger {
    background-color: var(--grey-color-light-border);
}

.bbc-button-link {
    color: white !important;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-color-dark));
    margin-bottom: 10px;
    font-size: 1.125rem;
}

@media (max-width: 576px) {
    .chart-filter-row {
        gap: 0.25rem;
        padding: 0.75rem;
    }

    .chart-filter-checkboxes {
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    .chart-filter-row {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .chart-filter-checkboxes {
        column-count: 1;
    }

    .chart-period-buttons {
        flex-wrap: wrap;
    }

    .chart-period-btn {
        flex: 0 0 50%;
        border-radius: 0 !important;
    }
}

/* Service */

.water-level-container {
    width: 100%;
    max-width: 710px;
    aspect-ratio: 710 / 500;
    margin: 0 auto;
    overflow: hidden;
}

.water-level-map {
    width: 710px;
    height: 550px;
    border: 0;
    transform-origin: 0 0;
}

.water-level-chart-container {
    width: 100%;
    max-width: 940px;
    aspect-ratio: 940 / 520;
    overflow: hidden;
}

.water-level-chart {
    width: 940px;
    height: 520px;
    border: 0;
    transform-origin: 0 0;
}

.water-level-map-bg {
    background: url('/images/water-level.png') no-repeat center center;
}

.big-heavy-map {
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('/images/big-heavy.png') no-repeat center center;
}

.big-heavy-consent {
    height: 480px;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('/images/big-heavy-map.jpg') center / cover;
}
