/* The articles listing's refine panel (6 Nov 2026, Owen: "the different selections seem to blur into each other and are
   surrounded by a full stroke"). Every option is its own rounded pill, spaced apart, like the menu pills and the type
   chips above the list: no outline round a group, no shared borders. Chosen = filled blue with a tick; keyboard focus =
   a red ring, as on the type chips. Loaded on /articles/ only (inc/articles.php), after style.css, so it wins there.
   The panel itself is a white card with the cards' rounded corners and no stroke. */

.skp-refine { position: static; }                /* a tall panel must scroll with the page, not stick and hide its foot */
.skp-refine .skp-filter-toggle { border-radius: 9px 9px 0 0; }
.skp-refine .skp-filter-panel { border: 0; border-radius: 0 0 9px 9px; padding: 16px 16px 6px; background: #fff; }

/* Count of filters on, in the header */
.skp-refine-on { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 8px;
  border-radius: 11px; background: #fff; color: var(--skp-blue); font-size: 12px; letter-spacing: 0; vertical-align: 1px; }

/* Reset */
.skp-refine-top { margin: -4px 0 10px; text-align: right; }
.skp-refine-reset { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--skp-red); text-decoration: none; }
.skp-refine-reset:hover { color: var(--skp-blue); text-decoration: underline; }
.skp-refine-reset:focus-visible { outline: 2px solid var(--skp-red); outline-offset: 3px; border-radius: 4px; }

/* Search */
.skp-refine .skp-fsearch { border: 0; background: #F1F3F7; border-radius: 9px; margin-bottom: 18px; }
.skp-refine .skp-fsearch:focus-within { outline: 2px solid var(--skp-blue); outline-offset: 0; border-radius: 9px; }

/* Groups */
.skp-fgroup { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.skp-fgroup .skp-flabel { display: block; padding: 0; margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--skp-blue); font-weight: 600; }
.skp-opts { display: flex; flex-wrap: wrap; gap: 6px; }

/* One option: its own pill */
.skp-opt { position: relative; display: inline-flex; cursor: pointer; max-width: 100%; }
.skp-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.skp-opt > span { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 12px; border-radius: 9px; background: #F1F3F7;
  color: var(--skp-blue); font-size: 14px; line-height: 1.25; transition: background-color .15s, color .15s; }
.skp-opt .n { font-weight: 400; font-size: 12px; color: #5A6270; }
.skp-opt:hover > span { background: #FCE8EA; color: var(--skp-red); }
.skp-opt input:checked + span { background: var(--skp-blue); color: #fff; font-weight: 600; }
.skp-opt input:checked + span .n { color: #fff; opacity: .8; }
.skp-opt input[type=checkbox]:checked + span::before { content: ""; width: 10px; height: 6px; margin: -3px 1px 0 0; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); flex: 0 0 auto; }
.skp-opt input:focus-visible + span { outline: 2px solid var(--skp-red); outline-offset: 2px; }

/* Boats or gear: one choice of three, a radio pill in the same row style (no tick, the fill is the mark) */
.skp-fgroup.is-seg .skp-opt > span { font-weight: 600; }

/* Price (6 Nov, Owen: "a two-way slider, with a lower and an upper limit"): two native range inputs laid over one track,
   the chosen part filled red, red thumbs with a white ring. Each thumb is a 44px target drawn as a 22px dot (a radial
   gradient), so the track sits 22px in from each end, where the thumbs' centres stop. Only the thumbs take the pointer;
   a press on the bare track moves the nearer thumb (main.js). Keyboard focus = a blue ring round the thumb. Under the
   track, the two pound boxes (any amount), in the search box's grey. The track needs main.js, so it shows with is-js only. */
.skp-prange { --lo: 0%; --hi: 100%; }
.skp-prange-slider { position: relative; height: 44px; margin: -4px -8px 6px; touch-action: pan-y; }
.skp-prange:not(.is-js) .skp-prange-slider { display: none; }
.skp-prange-track { position: absolute; left: 22px; right: 22px; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: #DDE2EA; cursor: pointer; }
.skp-prange-fill { position: absolute; top: 0; bottom: 0; left: var(--lo); right: calc(100% - var(--hi)); border-radius: 3px; background: var(--skp-red); }
.skp-prange-in { position: absolute; left: 0; top: 0; width: 100%; height: 44px; margin: 0; padding: 0; background: none; border: 0;
  -webkit-appearance: none; appearance: none; pointer-events: none; z-index: 1; }
.skp-prange-in.is-top { z-index: 2; }
.skp-prange-in:focus { outline: none; }
.skp-prange-in::-webkit-slider-runnable-track { height: 44px; background: none; border: 0; }
.skp-prange-in::-moz-range-track { height: 44px; background: none; border: 0; }
.skp-prange-in::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 44px; height: 44px; border: 0; border-radius: 50%; pointer-events: auto; cursor: grab;
  background: radial-gradient(circle closest-side, var(--skp-red) 0 8px, #fff 8.5px 11px, rgba(19, 45, 72, .28) 11.5px 12.5px, transparent 13px); }
.skp-prange-in::-moz-range-thumb { width: 44px; height: 44px; border: 0; border-radius: 50%; pointer-events: auto; cursor: grab;
  background: radial-gradient(circle closest-side, var(--skp-red) 0 8px, #fff 8.5px 11px, rgba(19, 45, 72, .28) 11.5px 12.5px, transparent 13px); }
.skp-prange-in:active::-webkit-slider-thumb { cursor: grabbing; }
.skp-prange-in:hover::-webkit-slider-thumb { background: radial-gradient(circle closest-side, var(--skp-red) 0 9px, #fff 9.5px 12px, rgba(19, 45, 72, .3) 12.5px 13.5px, transparent 14px); }
.skp-prange-in:focus-visible::-webkit-slider-thumb { background: radial-gradient(circle closest-side, var(--skp-red) 0 8px, #fff 8.5px 11px, var(--skp-blue) 11.5px 14px, transparent 14.5px); }
.skp-prange-in:focus-visible::-moz-range-thumb { background: radial-gradient(circle closest-side, var(--skp-red) 0 8px, #fff 8.5px 11px, var(--skp-blue) 11.5px 14px, transparent 14.5px); }
.skp-prange-vals { display: flex; align-items: center; gap: 8px; }
.skp-prange-val { display: flex; flex: 1 1 0; min-width: 0; align-items: center; gap: 2px; min-height: 40px; padding: 0 10px; border-radius: 9px; background: #F1F3F7; color: var(--skp-blue); cursor: text; }
.skp-prange-val:focus-within { outline: 2px solid var(--skp-blue); outline-offset: 0; }
.skp-prange-gbp { font-size: 15px; font-weight: 600; }
.skp-prange-val input { width: 100%; min-width: 0; padding: 8px 0; border: 0; background: transparent; color: var(--skp-blue); font: inherit; font-size: 15px; -moz-appearance: textfield; appearance: textfield; }
.skp-prange-val input:focus { outline: none; }
.skp-prange-val input::-webkit-inner-spin-button, .skp-prange-val input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.skp-prange-to { font-size: 13px; color: #5A6270; }
@media (max-width: 900px) { .skp-prange-val { min-height: 44px; } .skp-prange-val input { font-size: 16px; } } /* 16px: no zoom on focus in iOS */

/* More brands */
.skp-more { width: 100%; margin-top: 2px; }
.skp-more summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--skp-blue); list-style: none; border-radius: 6px; }
.skp-more summary::-webkit-details-marker { display: none; }
.skp-more summary::after { content: "+"; font-size: 16px; line-height: 1; color: var(--skp-red); }
.skp-more[open] summary::after { content: "\2212"; }
.skp-more summary .n { font-weight: 400; font-size: 12px; color: #5A6270; }
.skp-more summary:hover { color: var(--skp-red); }
.skp-more summary:focus-visible { outline: 2px solid var(--skp-red); outline-offset: 2px; }
.skp-more .skp-opts { margin-top: 6px; }

/* "Show N articles": phones only, folds the panel and goes to the results */
.skp-refine-done, .skp-refine-done[hidden] { display: none !important; }

@media (max-width: 900px) {
  .skp-refine .skp-filter-toggle { border-radius: 9px; }
  .skp-refine .skp-filter-toggle.open { border-radius: 9px 9px 0 0; }
  .skp-refine { margin-bottom: 6px; }
  .skp-refine-done:not([hidden]) { display: block !important; }
  .skp-refine-done { width: 100%; margin: 4px 0 12px; padding: 12px; border: 0; border-radius: 9px; background: var(--skp-red-2); color: #fff;
    font: inherit; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
  .skp-refine-done:hover { background: #B5142A; }
  .skp-refine-done:focus-visible { outline: 2px solid var(--skp-blue); outline-offset: 2px; }
  .skp-opt > span { min-height: 38px; }               /* a comfortable tap */
}

/* Type chips with nothing under the current filters (6 Nov): shown 0 and disabled, same pill, faded, not a link */
.skp-types .is-empty { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px; background: #fff; color: var(--skp-blue);
  font-size: 15px; text-transform: uppercase; opacity: .45; cursor: default; }
.skp-types .is-empty .n { font-weight: 400; font-size: 12px; opacity: .6; }
@media (max-width: 767px) { .skp-types .is-empty { display: flex; justify-content: space-between; padding: 9px 12px; font-size: 14px; } }

/* Page links (6 Nov, Owen: "Previous, 1, 2 stack vertically in a white box"): one centred row of rounded pills, like the
   type chips; the current page filled blue; Previous and Next at either end, faded when there is nowhere to go. Wraps on
   a phone. The old .page-numbers rules in style.css no longer match anything here. */
.skp-articles .skp-pagination { margin: 28px 0 8px; }
.skp-articles .skp-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.skp-articles .skp-pagination li { margin: 0; padding: 0; }
.skp-page { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 9px;
  background: #fff; color: var(--skp-blue); font-size: 15px; font-weight: 600; text-decoration: none; line-height: 1; transition: background-color .15s, color .15s; }
a.skp-page:hover { background: #FCE8EA; color: var(--skp-red); }
a.skp-page:focus-visible { outline: 2px solid var(--skp-red); outline-offset: 2px; }
.skp-page.is-current { background: var(--skp-blue); color: #fff; }
.skp-page.is-prev, .skp-page.is-next { text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.skp-page.is-off { opacity: .45; cursor: default; }
.skp-page.is-gap { background: transparent; min-width: 20px; padding: 0 2px; }
@media (max-width: 480px) {
  .skp-page { min-width: 40px; height: 40px; padding: 0 12px; }
}
