/* The network page (templates/frontend/network/network.html).
   The home page's gallery, list and map in the Wilder style: the live page's
   strip of species cards, a quiet grouped table, and the live page's map of
   the Netherlands (its rules come from dashboard.css under .partner-live).
   Loaded after wil-tokens.css and dashboard.css, and nothing else: no
   Bootstrap, so the few helpers it would have given are here. */
body.wil-network {
    margin: 0;
    background: var(--wil-bg);
    color: var(--wil-text);
    font-family: var(--wil-font-sans);
    -webkit-font-smoothing: antialiased;
}
.wil-network main,
.nw-header,
.nw-footer { max-width: 1320px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.wil-network *, .wil-network *::before, .wil-network *::after { box-sizing: border-box; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.nw-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding-top: 16px;
    padding-bottom: 12px;
}
/* The page's title and counts, in the header rather than above the gallery:
   the gallery, the list and the map are the page, so they start at the top. */
.nw-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex-wrap: wrap; justify-content: center; }
.nw-title h1 { font: 600 20px/1.2 var(--wil-font-sans); letter-spacing: -0.01em; margin: 0; }
.nw-counts { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--wil-text-2); }
.nw-header-right { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }

/* The way back to the portal, for the signed-in. */
.nw-menu { position: relative; }
.nw-menu-toggle {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border: 1px solid var(--wil-border); border-radius: 999px; color: var(--wil-text);
    background: #fff;
}
.nw-menu-toggle::-webkit-details-marker { display: none; }
.nw-menu[open] .nw-menu-toggle, .nw-menu-toggle:hover { border-color: var(--wil-primary); color: var(--wil-primary); }
.nw-menu-toggle:focus-visible { outline: 2px solid var(--wil-sage); outline-offset: 2px; }
.nw-menu-list {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 210px;
    background: #fff; border: 1px solid var(--wil-border); border-radius: 12px;
    box-shadow: 0 6px 22px rgba(28, 35, 30, .1); padding: 6px; display: flex; flex-direction: column;
}
.nw-menu-who { font-size: 10.5px; letter-spacing: .06em; color: var(--wil-text-2); padding: 8px 12px 6px; border-bottom: 1px solid var(--wil-border); margin-bottom: 4px; }
.nw-menu-list a {
    display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 8px;
    font-size: 14px; color: var(--wil-text); text-decoration: none;
}
.nw-menu-list a:hover { background: rgba(123, 160, 152, .14); color: var(--wil-primary); }
.nw-brand { display: inline-flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--wil-text-2); }
.nw-brand-label { font: 500 10px var(--wil-font-mono); letter-spacing: .12em; text-transform: uppercase; }
.nw-brand img { width: 150px; height: auto; display: block; }
.nw-brand:hover img { opacity: .8; }
.nw-lang { display: inline-flex; border: 1px solid var(--wil-border); border-radius: 999px; padding: 2px; margin: 0; }
.nw-lang-btn {
    font: 600 11.5px var(--wil-font-mono); letter-spacing: .06em; color: var(--wil-text-2);
    background: none; border: 0; border-radius: 999px; padding: 6px 11px; min-height: 32px; cursor: pointer;
}
.nw-lang-btn.is-on { background: var(--wil-primary); color: #F4EFE3; }
.nw-footer {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    padding-top: 28px; padding-bottom: 36px; font-size: 13px; color: var(--wil-text-2);
}
.nw-footer p { margin: 0; max-width: 60ch; }
.nw-footer a { color: var(--wil-primary); font-weight: 600; }

.wl-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--wil-sage);
    margin-right: 7px;
    vertical-align: middle;
    animation: wl-live 1.6s ease-in-out infinite;
}
@keyframes wl-live { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .wl-live-dot { animation: none; } }

.wl-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.wl-search { position: relative; flex: 1 1 240px; margin: 0; }
.wl-search .wl-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--wil-text-2); pointer-events: none; }
.wl-search input,
.wl-select select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--wil-border);
    border-radius: 10px;
    background: #fff;
    font: 500 14px var(--wil-font-sans);
    color: var(--wil-text);
    padding: 0 14px;
}
.wl-search input { padding-left: 36px; }
.wl-select { flex: 0 1 210px; margin: 0; }
.wl-search input:focus,
.wl-select select:focus { outline: 2px solid var(--wil-sage); outline-offset: 1px; border-color: var(--wil-sage); }

#wl-list.is-loading { opacity: .55; transition: opacity .15s ease; }
.wl-table-head { margin-bottom: 10px; }
.wl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wl-table th { text-align: left; font-weight: inherit; }
.wl-table thead th {
    font: 500 10.5px var(--wil-font-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--wil-text-2);
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid var(--wil-border);
}
.wl-table td { padding: 8px; border-bottom: 1px solid var(--wil-hairline, rgba(0,0,0,.05)); vertical-align: middle; }
.wl-partner-row th, .wl-partner-row td { padding: 16px 8px 8px; border-bottom: 1px solid var(--wil-border); }
.wl-group:first-of-type .wl-partner-row th, .wl-group:first-of-type .wl-partner-row td { padding-top: 10px; }
.wl-partner {
    font-weight: 600;
    font-size: 15px;
    color: var(--wil-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.wl-partner .wl-focus-icon { color: var(--wil-text-2); opacity: .5; transition: opacity .15s, color .15s; }
a.wl-partner:hover .wl-focus-icon, .wl-group.is-focus .wl-focus-icon { opacity: 1; color: var(--wil-primary); }
a.wl-partner:hover { color: var(--wil-primary); }
.wl-partner.is-none { color: var(--wil-text-2); font-weight: 500; }
.wl-group.is-focus .wl-partner-row th { box-shadow: inset 3px 0 0 var(--wil-primary); padding-left: 12px; }
.wl-group.is-focus .wl-partner { color: var(--wil-primary); }
.wl-count { font-size: 11px; color: var(--wil-text-2); margin-left: 8px; }
.wl-row:hover td { background: rgba(123, 160, 152, .08); }
.wl-loc { color: var(--wil-text); text-decoration: none; display: inline-flex; align-items: center; min-height: 30px; }
.wl-loc:hover { color: var(--wil-primary); text-decoration: underline; }
/* A name that opens a live page carries the live dot, so the link says where
   it goes without a second button beside it. */
.wl-loc.is-live .wl-live-dot { width: 6px; height: 6px; margin-right: 9px; flex: none; }
.wl-prov { color: var(--wil-text-2); font-size: 13px; white-space: nowrap; }
.wl-col-live { text-align: right; white-space: nowrap; width: 1%; }
.wl-live {
    display: inline-flex;
    align-items: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--wil-primary);
    text-decoration: none;
    border: 1px solid var(--wil-border);
    border-radius: 999px;
    padding: 3px 10px;
    min-height: 30px;
}
.wl-live:hover { border-color: var(--wil-primary); }
.wl-live .wl-live-dot { width: 6px; height: 6px; margin-right: 6px; }
.wl-empty { color: var(--wil-text-2); padding: 24px 0; margin: 0; }

@media (max-width: 575px) {
    .wil-network main, .nw-header, .nw-footer { padding-left: 16px; padding-right: 16px; }
    .nw-live .nw-list-card { padding: 14px; }
    .wl-prov { display: none; }
    .wl-table thead th:nth-child(2) { display: none; }
    .wl-partner-row th { white-space: normal; }
}

/* What is narrowing the list, each a way to drop it. */
.wl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.wl-chip-filter {
    display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 8px 4px 12px;
    border-radius: 999px; background: rgba(123, 160, 152, .16); color: var(--wil-primary);
    font-size: 13px; font-weight: 600; text-decoration: none;
}
.wl-chip-filter span[aria-hidden] {
    display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
    border-radius: 50%; background: rgba(255, 255, 255, .7); font-size: 14px; line-height: 1;
}
.wl-chip-filter:hover span[aria-hidden] { background: #fff; }
.wl-clear { font-size: 12.5px; color: var(--wil-text-2); }
.wl-continued { font-size: 10px; letter-spacing: .06em; color: var(--wil-text-2); margin-left: 8px; }

.wl-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.wl-pager-btn {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--wil-border); background: #fff; color: var(--wil-primary);
    font: 600 13px var(--wil-font-sans); text-decoration: none; cursor: pointer;
}
.wl-pager-btn:hover { border-color: var(--wil-primary); }
.wl-pager-btn.is-off { color: var(--wil-text-2); opacity: .45; cursor: default; }
.wl-pager-pos { font-size: 11px; letter-spacing: .08em; color: var(--wil-text-2); }

@media (max-width: 767px) {
    .nw-header { grid-template-columns: auto auto; }
    .nw-title { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}

/* ---- Laid out as a partner's live page -----------------------------------
   The hero, the strip, the map card and the deep panel are the live page's own
   (dashboard.css, under .partner-live). What differs is that this page scrolls:
   the list is long, so the map card gets a height of its own and stays beside
   the list instead of stretching down the whole of it. */
.wil-network main.nw-live { max-width: 1440px; }
.nw-live {
    --pin: var(--wil-primary);
    --map-land: #eff2ed;
    --map-land-sensor: #dde7df;
}
.nw-live .pl-hero, .nw-live .pl-main { padding-left: 0; padding-right: 0; }
.nw-live .pl-hero { padding-top: 4px; padding-bottom: 16px; }
.nw-live a.pl-chip { text-decoration: none; color: inherit; }
.nw-live a.pl-chip:hover .pl-chip-photo { border-color: var(--wil-sage); }
.nw-live .pl-hero-meta a { color: inherit; }
.nw-live .pl-main { align-items: flex-start; padding-bottom: 8px; }
.nw-live .pl-map-card {
    flex: 0 0 40%;
    position: sticky;
    top: 12px;
    height: min(calc(100vh - 24px), 720px);
    min-height: 460px;
    padding: 16px 18px;
}
.nw-live .pl-right { margin-left: 18px; }
.nw-live .nw-list-card { margin-top: 14px; padding: 18px 20px; overflow: visible; }

@media (max-aspect-ratio: 1/1), (max-width: 900px) {
    .nw-live .pl-map-card { position: static; height: 62vh; min-height: 360px; flex: 0 0 auto; width: 100%; }
    .nw-live .pl-right { margin: 14px 0 0; width: 100%; }
}
