/* Samoa News page — light editorial theme matching CaseBase/TenderBase. */
.nw-page {
    --nw-surface: rgba(255, 255, 255, 0.78);
    --nw-surface-strong: rgba(255, 255, 255, 0.92);
    --nw-border: rgba(21, 32, 50, 0.08);
    --nw-border-strong: rgba(21, 32, 50, 0.14);
    --nw-text: #172031;
    --nw-muted: #667384;
    --nw-subtle: #8d97a4;
    --nw-accent: #3158e0;
    --nw-accent-soft: rgba(49, 88, 224, 0.1);
    --nw-secondary: #1a7c69;
    --nw-secondary-soft: rgba(26, 124, 105, 0.12);
    --nw-shadow-soft: 0 18px 42px rgba(22, 31, 49, 0.08);
    --nw-radius-panel: 24px;
    --nw-radius-card: 16px;
    --nw-radius-control: 14px;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(49, 88, 224, 0.14), transparent 34%),
        radial-gradient(circle at top right, rgba(26, 124, 105, 0.1), transparent 28%),
        linear-gradient(180deg, #fbfaf6 0%, #f3ede4 52%, #ece4d7 100%);
    color: var(--nw-text);
}

.nw-page,
.nw-page button,
.nw-page input,
.nw-page select {
    font-family: 'Manrope', sans-serif;
}

.nw-page--with-public-nav {
    padding-top: calc(96px + var(--news-ticker-h, 0px));
}

.nw-page *,
.nw-page *::before,
.nw-page *::after {
    box-sizing: border-box;
}

.nw-page [hidden] {
    display: none !important;
}

.nw-atmosphere {
    position: absolute;
    border-radius: 999px;
    filter: blur(34px);
    opacity: 0.72;
    pointer-events: none;
}

.nw-atmosphere-one {
    top: 72px;
    left: -96px;
    width: 320px;
    height: 320px;
    background: rgba(49, 88, 224, 0.16);
}

.nw-atmosphere-two {
    right: -88px;
    top: 180px;
    width: 280px;
    height: 280px;
    background: rgba(26, 124, 105, 0.14);
}

.nw-main {
    position: relative;
    z-index: 2;
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 28px 20px 56px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ---------- Header ---------- */

.nw-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px 28px;
    border: 1px solid var(--nw-border-strong);
    border-radius: var(--nw-radius-panel);
    background: var(--nw-surface-strong);
    box-shadow: var(--nw-shadow-soft);
}

.nw-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--nw-accent);
}

.nw-header h1 {
    margin: 6px 0 8px;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nw-header-copy p {
    max-width: 720px;
    color: var(--nw-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.nw-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nw-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--nw-border);
    border-radius: 999px;
    background: var(--nw-surface);
    color: var(--nw-muted);
    font-size: 12.5px;
}

.nw-meta-chip strong {
    color: var(--nw-text);
    font-weight: 700;
}

/* ---------- Controls ---------- */

.nw-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--nw-border-strong);
    border-radius: var(--nw-radius-card);
    background: var(--nw-surface-strong);
    box-shadow: var(--nw-shadow-soft);
}

.nw-search-shell {
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    min-height: 44px;
    border: 1px solid var(--nw-border-strong);
    border-radius: var(--nw-radius-control);
    background: #ffffff;
    color: var(--nw-subtle);
}

.nw-search-shell:focus-within {
    border-color: rgba(49, 88, 224, 0.5);
    box-shadow: 0 0 0 3px var(--nw-accent-soft);
    color: var(--nw-accent);
}

.nw-search-shell input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--nw-text);
    font-size: 14px;
}

.nw-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.nw-select-shell select {
    min-height: 44px;
    padding: 0 36px 0 14px;
    border: 1px solid var(--nw-border-strong);
    border-radius: var(--nw-radius-control);
    background: #ffffff;
    color: var(--nw-text);
    font-size: 13.5px;
    cursor: pointer;
}

.nw-select-shell select:focus-visible {
    outline: none;
    border-color: rgba(49, 88, 224, 0.5);
    box-shadow: 0 0 0 3px var(--nw-accent-soft);
}

.nw-windows {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    border: 1px solid var(--nw-border-strong);
    border-radius: var(--nw-radius-control);
    background: rgba(255, 255, 255, 0.7);
}

.nw-window {
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--nw-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.nw-window:hover {
    color: var(--nw-text);
    background: rgba(49, 88, 224, 0.08);
}

.nw-window.is-active {
    background: var(--nw-accent);
    color: #ffffff;
}

/* ---------- Results ---------- */

.nw-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 120px;
}

.nw-results.is-busy {
    opacity: 0.55;
}

.nw-item {
    display: block;
    padding: 16px 20px;
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius-card);
    background: var(--nw-surface);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.nw-item:hover {
    transform: translateY(-1px);
    border-color: rgba(49, 88, 224, 0.35);
    box-shadow: var(--nw-shadow-soft);
}

.nw-item:focus-visible {
    outline: none;
    border-color: rgba(49, 88, 224, 0.55);
    box-shadow: 0 0 0 3px var(--nw-accent-soft);
}

.nw-item-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
}

.nw-source {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--nw-accent-soft);
    color: var(--nw-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nw-category {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--nw-secondary-soft);
    color: var(--nw-secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nw-time {
    margin-left: auto;
    color: var(--nw-subtle);
    font-size: 12px;
    white-space: nowrap;
}

.nw-title {
    margin: 0;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.nw-empty {
    padding: 26px 22px;
    border: 1px dashed var(--nw-border-strong);
    border-radius: var(--nw-radius-card);
    background: var(--nw-surface);
    color: var(--nw-muted);
    font-size: 14px;
    text-align: center;
}

/* ---------- Actions + disclaimer ---------- */

.nw-actions {
    display: flex;
    justify-content: center;
}

.nw-load-more {
    min-height: 44px;
    padding: 0 26px;
    border: 1px solid rgba(49, 88, 224, 0.4);
    border-radius: var(--nw-radius-control);
    background: #ffffff;
    color: var(--nw-accent);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.nw-load-more:hover {
    background: var(--nw-accent);
    color: #ffffff;
}

.nw-load-more:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--nw-accent-soft);
}

.nw-disclaimer {
    padding: 16px 20px;
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius-card);
    background: rgba(255, 255, 255, 0.55);
}

.nw-disclaimer p {
    margin: 0;
    color: var(--nw-subtle);
    font-size: 12.5px;
    line-height: 1.6;
}

.nw-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
    .nw-page--with-public-nav {
        padding-top: calc(88px + var(--news-ticker-h, 0px));
    }
}

@media (max-width: 768px) {
    .nw-main {
        padding: 18px 12px 44px;
        gap: 16px;
    }

    .nw-header {
        padding: 20px 18px;
    }

    .nw-controls {
        padding: 12px;
    }

    .nw-search-shell {
        flex: 1 1 100%;
    }

    .nw-filters {
        width: 100%;
    }

    .nw-select-shell,
    .nw-select-shell select {
        width: 100%;
    }

    .nw-windows {
        width: 100%;
        justify-content: space-between;
    }

    .nw-window {
        flex: 1;
        padding: 0 8px;
    }

    .nw-item {
        padding: 14px 16px;
    }

    .nw-time {
        margin-left: 0;
    }
}
