.salmon-harvest-report {
    --harvest-ink: var(--c-navy, #0a2342);
    --harvest-muted: var(--c-muted, #4a5b68);
    --harvest-border: var(--c-border, #dce5ea);
    --harvest-surface: #eef5f5;

    width: min(100%, 1120px);
    margin: 0 auto 3rem;
    color: var(--harvest-ink);
}

.salmon-harvest-report__nav,
.salmon-harvest-report__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.salmon-harvest-report__nav {
    padding: 1rem 0;
}

.salmon-harvest-report__actions {
    margin-top: 0.875rem;
}

.salmon-harvest-report__hero {
    padding: clamp(1.4rem, 5vw, 3rem);
    background: var(--harvest-ink);
    color: #fff;
    border-radius: 12px;
}

.salmon-harvest-report__hero h1,
.salmon-harvest-report__section h2 {
    font-family: var(--f-display, Georgia, serif);
    line-height: 1.15;
}

.salmon-harvest-report__hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.95rem, 5vw, 3.25rem);
}

.salmon-harvest-report__hero p {
    max-width: 66ch;
    margin: 0.375rem 0;
    color: #dbe7ed;
}

.salmon-harvest-report__hero .salmon-harvest-report__issued {
    margin: 0 0 0.625rem;
    color: #bce0db;
    font-size: 0.875rem;
    font-weight: 700;
}

.salmon-harvest-report__headline {
    margin-top: 1.5rem;
    padding: 0.875rem 0 0 1rem;
    border-left: 3px solid #85c5bc;
}

.salmon-harvest-report__headline strong {
    display: block;
    color: #fff;
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-variant-numeric: tabular-nums;
}

.salmon-harvest-report__overview {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}

.salmon-harvest-report__panel {
    min-width: 0;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--harvest-border);
    border-radius: 8px;
}

.salmon-harvest-report__panel h2 {
    margin: 0 0 0.375rem;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-family: var(--f-display, Georgia, serif);
    line-height: 1.15;
}

.salmon-harvest-report__panel p {
    margin: 0 0 0.875rem;
    color: var(--harvest-muted);
    font-size: 0.875rem;
}

.salmon-harvest-report__legend,
.salmon-harvest-report__chart-months,
.salmon-harvest-report__changes {
    margin: 0;
    padding: 0;
    list-style: none;
}

.salmon-harvest-report__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 1rem;
    margin-bottom: 0.625rem;
    font-size: 0.8rem;
}

.salmon-harvest-report__swatch {
    display: inline-block;
    width: 0.85rem;
    height: 0.7rem;
    margin-inline-end: 0.35rem;
}

.salmon-harvest-report__swatch[data-series="reported"],
.salmon-harvest-report__chart-months [data-series="reported"] .salmon-harvest-report__bar {
    background: #16786f;
}

.salmon-harvest-report__swatch[data-series="estimate"],
.salmon-harvest-report__chart-months [data-series="estimate"] .salmon-harvest-report__bar {
    background: repeating-linear-gradient(135deg, #b36a0d 0 2px, #f3ca8c 2px 5px);
}

.salmon-harvest-report__swatch[data-series="chartGap"] {
    border: 1px dashed var(--harvest-muted);
}

.salmon-harvest-report__chart-scroll {
    max-width: 100%;
    overflow-x: auto;
    padding: 0.625rem 0 1.625rem;
}

.salmon-harvest-report__chart {
    --harvest-plot-height: 12rem;
    display: grid;
    grid-template-columns: 4.1rem minmax(0, 1fr);
    gap: 0.4rem;
    min-width: calc(4.5rem + var(--harvest-month-count) * 1.85rem);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    color: var(--harvest-muted);
}

.salmon-harvest-report__chart-scale {
    position: relative;
    height: var(--harvest-plot-height);
}

.salmon-harvest-report__chart-scale span {
    position: absolute;
    inset-inline-end: 0;
    transform: translateY(50%);
    white-space: nowrap;
}

.salmon-harvest-report__chart-months {
    display: grid;
    grid-template-columns: repeat(var(--harvest-month-count), minmax(0, 1fr));
    background: repeating-linear-gradient(to top, var(--harvest-border) 0 1px, transparent 1px 25%);
}

.salmon-harvest-report__chart-months li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    height: var(--harvest-plot-height);
}

.salmon-harvest-report__bar {
    display: block;
    width: 72%;
    max-width: 2rem;
    border-radius: 2px 2px 0 0;
}

.salmon-harvest-report__chart-months [data-series="chartGap"]::before {
    position: absolute;
    inset: 0 16%;
    border-inline: 1px dashed var(--harvest-border);
    content: "";
}

.salmon-harvest-report__axis-month {
    position: absolute;
    bottom: -1.25rem;
    white-space: nowrap;
}

.salmon-harvest-report__changes li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--harvest-border);
}

.salmon-harvest-report__changes small {
    color: var(--harvest-muted);
    font-weight: 500;
}

.salmon-harvest-report__changes span small {
    margin-inline-end: 0.4rem;
}

@media (max-width: 58rem) {
    .salmon-harvest-report__overview {
        grid-template-columns: minmax(0, 1fr);
    }
}

.salmon-harvest-report__section {
    margin-top: 2rem;
    scroll-margin-top: 6rem;
}

.salmon-harvest-report__section h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.salmon-harvest-report__section p {
    max-width: 80ch;
    margin: 0 0 0.75rem;
    color: var(--harvest-muted);
}

.salmon-harvest-report__edition-changes {
    margin-top: 1.25rem;
}

.salmon-harvest-report__edition-changes h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
}

.salmon-harvest-report__revision-total {
    margin: 1rem 0;
    padding: 0.875rem 1rem;
    border-radius: 6px;
    background: var(--harvest-surface);
}

.salmon-harvest-report__revision-total > strong {
    display: block;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-variant-numeric: tabular-nums;
}

.salmon-harvest-report__revision-total p:last-child,
.salmon-harvest-report__edition-changes > p:last-child {
    margin-bottom: 0;
}

.salmon-harvest-report__revision-detail {
    display: block;
    margin-top: 0.2rem;
}

.salmon-harvest-report__table {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--harvest-border);
    border-radius: 8px;
}

.salmon-harvest-report__table table {
    width: 100%;
    min-width: max-content;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.salmon-harvest-report__table thead {
    background: var(--harvest-surface);
}

.salmon-harvest-report__table th,
.salmon-harvest-report__table td {
    padding: 0.65rem 0.75rem;
    text-align: right;
}

.salmon-harvest-report__table th:first-child {
    text-align: left;
}

.salmon-harvest-report__table th span {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--harvest-muted);
}

.salmon-harvest-report__table tbody tr {
    border-top: 1px solid var(--harvest-border);
}

.salmon-harvest-report__total {
    background: #f7f9fb;
    font-weight: 700;
}

.salmon-harvest-report__area-code {
    display: inline-block;
    margin-right: 0.5rem;
    color: var(--harvest-muted);
    font-weight: 500;
}

.salmon-harvest-report__history-details {
    margin-top: 0.875rem;
}

.salmon-harvest-report__history-details summary {
    margin-bottom: 0.625rem;
    cursor: pointer;
    font-weight: 700;
}

.salmon-harvest-report__archive {
    margin: 0;
    padding: 0;
    list-style: none;
}

.salmon-harvest-report__archive li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--harvest-border);
}

.salmon-harvest-report__archive .salmon-harvest-report__actions {
    margin: 0;
}

.salmon-harvest-report__section a:not(.b2b-btn) {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.salmon-harvest-report__sources {
    padding-left: 1.25rem;
}
