.nga-wpl {
	--nga-navy: #12385b;
	--nga-blue: #0075a8;
	--nga-red: #df3339;
	--nga-ink: #182430;
	--nga-muted: #5c6975;
	--nga-line: #dce3e8;
	--nga-soft: #f3f6f8;
	position: relative;
	color: var(--nga-ink);
}

.nga-wpl__toolbar { display: flex; justify-content: flex-end; margin-bottom: 2rem; }
.nga-wpl__filter { position: relative; width: min(100%, 22rem); }
.nga-wpl__filter summary {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	min-height: 3.25rem; padding: .75rem 1rem; border: 1px solid var(--nga-line);
	border-radius: .35rem; background: #fff; cursor: pointer; list-style: none;
}
.nga-wpl__filter summary::-webkit-details-marker { display: none; }
.nga-wpl__filter summary::after { content: ''; width: .55rem; height: .55rem; border-right: 2px solid var(--nga-blue); border-bottom: 2px solid var(--nga-blue); transform: rotate(45deg) translateY(-2px); }
.nga-wpl__filter[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.nga-wpl__filter summary:focus-visible { outline: 3px solid rgba(0,117,168,.25); outline-offset: 2px; }
.nga-wpl__filter-label { font-weight: 700; }
.nga-wpl__selection { margin-left: auto; color: var(--nga-muted); font-size: .9rem; }
.nga-wpl__filter-panel { position: absolute; z-index: 20; top: calc(100% + .5rem); left: 0; right: 0; padding: .75rem; border: 1px solid var(--nga-line); border-radius: .35rem; background: #fff; box-shadow: 0 14px 40px rgba(18,56,91,.14); }
.nga-wpl__filter-panel fieldset { display: grid; gap: .15rem; margin: 0; padding: 0; border: 0; }
.nga-wpl__filter-panel label { display: flex; align-items: flex-start; gap: .7rem; padding: .55rem .45rem; border-radius: .25rem; cursor: pointer; line-height: 1.35; }
.nga-wpl__filter-panel label:hover { background: var(--nga-soft); }
.nga-wpl__filter-panel input { width: 1.1rem; height: 1.1rem; margin-top: .1rem; accent-color: var(--nga-blue); }
.nga-wpl__clear { margin: .75rem .45rem .25rem; padding: 0; border: 0; background: transparent; color: var(--nga-blue); font-weight: 700; text-decoration: underline; cursor: pointer; }
.nga-wpl__clear:disabled { color: var(--nga-muted); cursor: default; opacity: .55; }

.nga-wpl__results { transition: opacity .18s ease; }
.nga-wpl.is-loading .nga-wpl__results { opacity: .42; pointer-events: none; }
.nga-wpl__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.nga-wpl__card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--nga-line); border-radius: .4rem; background: #fff; box-shadow: 0 7px 24px rgba(18,56,91,.07); transition: transform .18s ease, box-shadow .18s ease; }
.nga-wpl__card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(18,56,91,.12); }
.nga-wpl__media { position: relative; overflow: hidden; }
.nga-wpl__image-link { display: block; width: 100%; }
.nga-wpl__image-link--empty { aspect-ratio: 1000 / 1210; background: linear-gradient(135deg, var(--nga-navy), var(--nga-blue)); }
.nga-wpl__image { display: block; width: 100%; height: auto; transition: transform .3s ease; }
.nga-wpl__card:hover .nga-wpl__image { transform: scale(1.012); }
.nga-wpl__card-body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem; }
.nga-wpl__meta { color: var(--nga-muted); font-size: .8rem; font-weight: 700; line-height: 1.45; }
.nga-wpl__date { color: var(--nga-red); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nga-wpl__meta-separator { margin: 0 .35rem; color: #9aa5ae; }
.nga-wpl__byline { color: var(--nga-muted); }
.nga-wpl__title { margin: 0 0 .75rem; color: var(--nga-navy); font-size: clamp(1.15rem, 1.3vw, 1.4rem); font-weight: 600; line-height: 1.25; }
.nga-wpl__title a { color: inherit; text-decoration: none; }
.nga-wpl__title a:hover { color: var(--nga-blue); text-decoration: underline; text-underline-offset: .16em; }
.nga-wpl__read-more { align-self: flex-start; margin-top: 1.15rem; color: var(--nga-blue); font-weight: 750; text-decoration: none; }
.nga-wpl__read-more:hover { text-decoration: underline; text-underline-offset: .16em; }
.nga-wpl__pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: 2.5rem; }
.nga-wpl__pagination button { min-width: 2.6rem; min-height: 2.6rem; padding: .35rem; border: 1px solid var(--nga-line); border-radius: .25rem; background: #fff; color: var(--nga-navy); font-weight: 700; cursor: pointer; }
.nga-wpl__pagination button:hover { border-color: var(--nga-blue); color: var(--nga-blue); }
.nga-wpl__pagination button[aria-current="page"] { border-color: var(--nga-navy); background: var(--nga-navy); color: #fff; }
.nga-wpl__pagination button:focus-visible, .nga-wpl a:focus-visible, .nga-wpl button:focus-visible { outline: 3px solid rgba(0,117,168,.28); outline-offset: 2px; }
.nga-wpl__empty { padding: 3.5rem 1.5rem; border: 1px solid var(--nga-line); border-radius: .4rem; background: var(--nga-soft); text-align: center; }
.nga-wpl__empty h2 { margin-top: 0; color: var(--nga-navy); }
.nga-wpl__notice { padding: 1rem; border-left: 4px solid var(--nga-red); background: var(--nga-soft); }

@media (max-width: 900px) { .nga-wpl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) {
	.nga-wpl__toolbar { justify-content: stretch; }
	.nga-wpl__filter { width: 100%; }
	.nga-wpl__grid { grid-template-columns: 1fr; gap: 1.25rem; }
	.nga-wpl__card-body { padding: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
	.nga-wpl__results, .nga-wpl__card, .nga-wpl__image { transition: none; }
}
