/* /fiskeri pages (docs/FISKERIDATA.md). Built on the shared tokens and components (fc-tokens.css, fc-components.css);
   only the layout, the landing list, the chart and the map are page-local. */
.fd-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-base);
}
.fd-intro {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
    max-width: 70ch;
}
.fd-card .fc-card-h {
    margin: 0;
    color: var(--heading);
}
.fd-pad {
    padding: var(--space-base);
}
.fd-small {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}
.fd-pad > .fd-small + * {
    margin-top: var(--space-md);
}
.fd-empty {
    margin: 0;
    padding: var(--space-base);
    color: var(--text-secondary);
}
.fd-source {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.fd-grid3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-base);
}
.fd-grid2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-base);
}
@media (max-width: 900px) {
    .fd-grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .fd-grid2 { grid-template-columns: 1fr; }
    .fd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fd-tiles .fc-tile__count {
    font-variant-numeric: normal;
}
.fd-tiles .fc-tile__label,
.fd-tiles .fc-tile.tone-navy .fc-tile__label {
    white-space: normal;
    font: 600 15px/1.3 var(--font-system);
    letter-spacing: 0;
}
.fd-tiles .fc-tile__count {
    font-size: clamp(24px, 3.2vw, 34px);
}

/* Facts list (vessel page) */
.fd-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-md) var(--space-base);
    margin: 0;
    padding: var(--space-base);
}
.fd-facts dt {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}
.fd-facts dd {
    margin: 2px 0 0;
    font-size: 16px;
    color: var(--text);
}

/* Filters (landing list, top lists) */
.fd-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
}
.fd-filters select {
    min-height: 40px;
    padding: 0 var(--space-md);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    background: var(--input);
    color: var(--text);
    font-size: 15px;
    max-width: 100%;
}
.fd-filters .btn {
    min-height: 40px;
}
.fd-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Landing list */
.fd-landings {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fd-landing + .fd-landing {
    border-top: 1px solid var(--divider);
}
.fd-landing summary {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-base);
    min-height: 56px;
    cursor: pointer;
    list-style: none;
}
.fd-landing summary::-webkit-details-marker {
    display: none;
}
.fd-landing summary:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}
.fd-landing-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.fd-landing-title {
    font: 600 16px/22px var(--font-system);
    color: var(--text);
}
.fd-landing-meta {
    font-size: 13px;
    color: var(--text-secondary);
}
.fd-landing-kg {
    font: var(--type-value);
    color: var(--heading);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.fd-landing-body {
    padding: 0 var(--space-base) var(--space-base);
}
.fd-mini-h {
    margin: 0 0 var(--space-xs);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.fd-note-badge {
    margin-left: var(--space-xs);
    vertical-align: middle;
    background: var(--warning-bg);
    color: var(--warning);
}
.fd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.fd-table th,
.fd-table td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--divider);
    text-align: left;
    color: var(--text);
}
.fd-table th {
    font-weight: 600;
    color: var(--text-secondary);
}
.fd-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.fd-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-base);
    font-size: 14px;
    color: var(--text-secondary);
}

/* Chart: series colours checked with the dataviz validator (light and dark) */
.fd-chart-wrap {
    --fd-s1: #d98a1f;   /* last year */
    --fd-s2: #0267a1;   /* this year */
    position: relative;
}
html.dark-mode .fd-chart-wrap {
    --fd-s1: #c27c1e;
    --fd-s2: #2f7fb8;
}
.fd-chart {
    display: flex;
    height: 220px;
    padding-bottom: 22px;
}
.fd-yaxis {
    position: relative;
    flex: none;
    width: 52px;
    margin-right: 6px;
}
.fd-yaxis span {
    position: absolute;
    right: 0;
    transform: translateY(50%);
    font-size: 12px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.fd-plot {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    border-bottom: 1px solid var(--border);
}
.fd-gridline {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border-light);
}
.fd-col {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
}
.fd-bars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2px;
    height: 100%;
}
.fd-bar {
    flex: 0 1 18px;
    min-width: 3px;
    border-radius: 4px 4px 0 0; /* rounded data end, square at the baseline */
}
.fd-bar.s1 { background: var(--fd-s1); }
.fd-bar.s2 { background: var(--fd-s2); }
.fd-bar:hover,
.fd-bar:focus-visible {
    opacity: 0.85;
    outline: 2px solid var(--heading);
    outline-offset: 1px;
}
.fd-xlabel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}
.fd-legend {
    display: flex;
    gap: var(--space-base);
    font-size: 14px;
    color: var(--text);
    margin-bottom: var(--space-sm);
}
.fd-key {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: -1px;
}
.fd-key.s1 { background: var(--fd-s1); }
.fd-key.s2 { background: var(--fd-s2); }
.fd-tip {
    position: absolute;
    z-index: 2;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #ffffff;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
}
.fd-table-view {
    margin-top: var(--space-sm);
    font-size: 14px;
}
.fd-table-view summary {
    cursor: pointer;
    color: var(--primary);
}

/* Map */
.fd-map {
    height: 380px;
    background: var(--surface-variant);
}
@media (max-width: 720px) {
    .fd-map { height: 300px; }
}

/* Index lists (species, municipalities) */
.fd-search {
    width: 100%;
    max-width: 360px;
    min-height: 44px;
    padding: 0 var(--space-md);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    background: var(--input);
    color: var(--text);
    font-size: 16px;
}
.fd-group-h {
    margin: 0;
    padding: var(--space-md) var(--space-base) var(--space-xs);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}
.fd-index-row .fc-row-value small {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}
.fd-about h2 {
    margin: 0 0 var(--space-sm);
    font-size: 18px;
    color: var(--heading);
}
.fd-about p {
    margin: 0 0 var(--space-md);
    line-height: 1.6;
    max-width: 75ch;
}
.fd-seg {
    flex-wrap: wrap;
}
@media (max-width: 480px) {
    .fd-yaxis { width: 44px; }
    .fd-col:nth-child(even of .fd-col) .fd-xlabel { visibility: hidden; } /* every other month on phones */
}
.fd-landing-meta a,
.fd-table a,
.fd-source a,
.fd-about a {
    color: var(--primary);
}
