/****** FILE: vendor/groundnation/groundnation-composer/client/styles/carousel.css *****/
/*
 * Structural and accessible module defaults belong to the components layer.
 * Project Design Option utilities and unlayered composer.scss mappings win.
 */
@layer components {
:where(.groundnation-composer) {
  --gn-carousel-control-gap: 0.75rem;
  --gn-carousel-control-margin: 1rem 0 0;
  --gn-carousel-side-control-gap: clamp(0.5rem, 1.2vw, 1rem);
  --gn-carousel-top-controls-gap: 1rem;
  --gn-carousel-disabled-arrow-opacity: 0.18;
  --gn-carousel-section-controls-offset: 0px;
  --gn-carousel-anchored-controls-gap: 1rem;
  --gn-carousel-fade-duration: 0.35s;
  --gn-carousel-slide-duration: 600ms;
  --gn-carousel-control-colour: currentColor;
  --gn-carousel-arrow-colour: var(--gn-carousel-control-colour);
  --gn-carousel-pagination-colour: var(--gn-carousel-control-colour);
  --gn-carousel-pagination-gap: 0.45rem;
  --gn-carousel-pagination-size: 0.55rem;
  --gn-carousel-pagination-radius: 999px;
  --gn-carousel-pagination-inactive-opacity: 0.4;
  --gn-carousel-single-card-ratio: 0.72;
  --gn-carousel-dark: currentColor;
  --gn-carousel-light: Canvas;
  --gn-carousel-constant-dark: #000;
  --gn-carousel-constant-light: #fff;
}

.groundnation-carousel,
.groundnation-carousel__track,
[data-carousel-item] {
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

.groundnation-carousel__track {
  margin: 0;
  padding: 0;
  list-style: none;
}

.groundnation-carousel[data-carousel-edge="viewport"] .groundnation-carousel__track {
  inline-size: calc(100% + var(--gn-carousel-edge-end, 0px));
  max-inline-size: none;
  margin-inline-end: calc(-1 * var(--gn-carousel-edge-end, 0px));
  padding-inline-end: var(--gn-carousel-terminal-gap, 0px);
}

.groundnation-carousel [data-carousel-clone="leading"] {
  visibility: hidden;
}

.groundnation-carousel[data-carousel-loop-boundary="previous"] [data-carousel-clone="leading"] {
  visibility: visible;
}

:is([data-carousel-mode-base="grid"], [data-carousel-mode-base="editorial"]) .groundnation-carousel__track {
  display: grid;
  grid-template-columns: repeat(var(--gn-carousel-per-view-base, 1), minmax(0, 1fr));
  overflow: visible;
  overscroll-behavior-inline: auto;
  scroll-behavior: auto;
  scroll-snap-type: none;
  scrollbar-width: auto;
  -webkit-overflow-scrolling: auto;
}

:is([data-carousel-mode-base="grid"], [data-carousel-mode-base="editorial"]) [data-carousel-item] { flex: initial; scroll-snap-align: none; scroll-snap-stop: normal; }

[data-carousel-mode-base="carousel"] .groundnation-carousel__track {
  display: flex;
  grid-template-columns: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: auto;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

[data-carousel-mode-base="carousel"] [data-carousel-item] {
  flex: 0 0 var(--gn-carousel-item-basis, calc(100% / var(--gn-carousel-per-view-base, 1)));
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* A kinetic touch swipe must settle on the first loop replica. This prevents
   mobile momentum from crossing the replica runway and exposing a real end. */
.groundnation-carousel [data-carousel-item][data-carousel-clone] {
  scroll-snap-stop: always;
}

.groundnation-carousel__track::-webkit-scrollbar { display: none; }

.groundnation-carousel__controls,
.groundnation-carousel__controls[hidden] { display: none; }

[data-carousel-enhanced="true"][data-carousel-active="true"] .groundnation-carousel__controls:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gn-carousel-control-gap);
  margin: var(--gn-carousel-control-margin);
  color: var(--gn-carousel-arrow-colour);
}

.groundnation-carousel__controls > button {
  flex: 0 0 auto;
  cursor: pointer;
}

.groundnation-carousel__controls > button:disabled {
  cursor: not-allowed;
  opacity: var(--gn-carousel-disabled-arrow-opacity);
}
.groundnation-carousel__autoplay {
  flex: 0 0 auto;
  color: inherit;
}
.groundnation-carousel__pagination {
  display: flex;
  align-items: center;
  gap: var(--gn-carousel-pagination-gap);
  color: var(--gn-carousel-pagination-colour);
}
.groundnation-carousel__pagination button {
  display: grid;
  place-items: center;
  width: max(1.5rem, var(--gn-carousel-pagination-size));
  height: max(1.5rem, var(--gn-carousel-pagination-size));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--gn-carousel-pagination-radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0;
  opacity: var(--gn-carousel-pagination-inactive-opacity);
}
.groundnation-carousel__pagination button::before {
  width: var(--gn-carousel-pagination-size);
  height: var(--gn-carousel-pagination-size);
  border-radius: var(--gn-carousel-pagination-radius);
  background: currentColor;
  content: '';
}
.groundnation-carousel__pagination button[aria-current="true"] { opacity: 1; }
.groundnation-carousel__count {
  margin: 0;
  color: var(--gn-carousel-pagination-colour);
  font-variant-numeric: tabular-nums;
}
.groundnation-carousel__pagination button:focus-visible,
.groundnation-carousel__autoplay:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Reserve a column for each arrow so artwork stays outside the card track.
   Auto-sized gutters follow the configured icons, including on small screens. */
.groundnation-carousel[data-carousel-arrow-position="sides"][data-carousel-enhanced="true"][data-carousel-active="true"]:has(> [data-carousel-controls]:not([hidden])) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: var(--gn-carousel-side-control-gap);
}

[data-carousel-arrow-position="sides"][data-carousel-enhanced="true"][data-carousel-active="true"] > .groundnation-carousel__track {
  grid-area: 1 / 2;
}

[data-carousel-arrow-position="sides"][data-carousel-enhanced="true"][data-carousel-active="true"] > .groundnation-carousel__controls:not([hidden]) {
  display: contents;
}

[data-carousel-arrow-position="sides"] :is([data-carousel-previous], [data-carousel-next]) {
  grid-row: 1;
  align-self: center;
}

[data-carousel-arrow-position="sides"] [data-carousel-previous] { grid-column: 1; }
[data-carousel-arrow-position="sides"] [data-carousel-next] { grid-column: 3; }
[data-carousel-arrow-position="sides"] :is([data-carousel-autoplay-toggle], .groundnation-carousel__pagination-controls) {
  grid-column: 2;
}
[data-carousel-arrow-position="sides"] [data-carousel-autoplay-toggle]:not([hidden]) {
  justify-self: center;
  margin-block-start: var(--gn-carousel-control-gap);
}

.groundnation-carousel[data-carousel-arrow-position="top-right"],
.groundnation-carousel[data-carousel-arrow-position="section-top-right"],
.groundnation-carousel[data-carousel-arrow-position="bottom-right"] {
  position: relative;
}

[data-carousel-arrow-position="top-right"][data-carousel-enhanced="true"][data-carousel-active="true"] .groundnation-carousel__controls:not([hidden]),
[data-carousel-arrow-position="section-top-right"][data-carousel-enhanced="true"][data-carousel-active="true"] .groundnation-carousel__controls:not([hidden]) {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  z-index: 1;
  inline-size: max-content;
  max-inline-size: 100%;
  justify-content: flex-start;
  margin: 0;
}

[data-carousel-arrow-position="top-right"][data-carousel-enhanced="true"][data-carousel-active="true"] .groundnation-carousel__controls:not([hidden]) {
  transform: translateY(calc(-100% - var(--gn-carousel-top-controls-gap)));
}

[data-carousel-arrow-position="section-top-right"][data-carousel-enhanced="true"][data-carousel-active="true"] .groundnation-carousel__controls:not([hidden]) {
  transform: translateY(calc(0px - var(--gn-carousel-section-controls-offset)));
}

[data-carousel-arrow-position="bottom-right"][data-carousel-enhanced="true"][data-carousel-active="true"] .groundnation-carousel__controls:not([hidden]) {
  inline-size: max-content;
  max-inline-size: 100%;
  justify-content: flex-start;
  margin-inline-start: auto;
}

[data-carousel-arrow-position="bottom-right"][data-carousel-controls-anchored="true"][data-carousel-enhanced="true"][data-carousel-active="true"] .groundnation-carousel__controls:not([hidden]) {
  position: absolute;
  inset-block-start: var(--gn-carousel-card-controls-offset);
  inset-inline-end: var(--gn-carousel-card-controls-inline-offset, 0px);
  z-index: 1;
  margin: 0;
  transform: translateY(-50%);
}

[data-carousel-arrow-position="bottom-right"][data-carousel-controls-anchored="true"] [data-carousel-controls-anchor] {
  box-sizing: border-box;
  padding-inline-end: calc(var(--gn-carousel-card-controls-width) + var(--gn-carousel-anchored-controls-gap));
}

:is([data-carousel-arrow-position="top-right"], [data-carousel-arrow-position="section-top-right"], [data-carousel-arrow-position="bottom-right"]) .groundnation-carousel__pagination { order: 1; }
:is([data-carousel-arrow-position="top-right"], [data-carousel-arrow-position="section-top-right"], [data-carousel-arrow-position="bottom-right"]) .groundnation-carousel__count { order: 2; }
:is([data-carousel-arrow-position="top-right"], [data-carousel-arrow-position="section-top-right"], [data-carousel-arrow-position="bottom-right"]) .groundnation-carousel__autoplay { order: 3; }
:is([data-carousel-arrow-position="top-right"], [data-carousel-arrow-position="section-top-right"], [data-carousel-arrow-position="bottom-right"]) [data-carousel-previous] {
  order: 4;
  margin-inline-start: auto;
}
:is([data-carousel-arrow-position="top-right"], [data-carousel-arrow-position="section-top-right"], [data-carousel-arrow-position="bottom-right"]) [data-carousel-next] { order: 5; }

.groundnation-carousel[data-carousel-arrow-colour="black"] { --gn-carousel-arrow-colour: var(--gn-carousel-dark); }
.groundnation-carousel[data-carousel-arrow-colour="white"] { --gn-carousel-arrow-colour: var(--gn-carousel-light); }
.groundnation-carousel[data-carousel-arrow-colour="constant-black"] { --gn-carousel-arrow-colour: var(--gn-carousel-constant-dark); }
.groundnation-carousel[data-carousel-arrow-colour="constant-white"] { --gn-carousel-arrow-colour: var(--gn-carousel-constant-light); }
.groundnation-carousel[data-carousel-pagination-colour="black"] { --gn-carousel-pagination-colour: var(--gn-carousel-dark); }
.groundnation-carousel[data-carousel-pagination-colour="white"] { --gn-carousel-pagination-colour: var(--gn-carousel-light); }
.groundnation-carousel[data-carousel-pagination-colour="constant-black"] { --gn-carousel-pagination-colour: var(--gn-carousel-constant-dark); }
.groundnation-carousel[data-carousel-pagination-colour="constant-white"] { --gn-carousel-pagination-colour: var(--gn-carousel-constant-light); }
.groundnation-carousel__instructions {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 640px) {
  :is([data-carousel-mode-sm="grid"], [data-carousel-mode-sm="editorial"]) .groundnation-carousel__track {
    display: grid;
    grid-template-columns: repeat(var(--gn-carousel-per-view-sm, 2), minmax(0, 1fr));
    overflow: visible;
    overscroll-behavior-inline: auto;
    scroll-behavior: auto;
    scroll-snap-type: none;
    scrollbar-width: auto;
    -webkit-overflow-scrolling: auto;
  }
  :is([data-carousel-mode-sm="grid"], [data-carousel-mode-sm="editorial"]) [data-carousel-item] { flex: initial; scroll-snap-align: none; scroll-snap-stop: normal; }
  [data-carousel-mode-sm="carousel"] .groundnation-carousel__track { display: flex; grid-template-columns: none; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scroll-behavior: auto; scroll-snap-type: inline mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  [data-carousel-mode-sm="carousel"] [data-carousel-item] { flex: 0 0 var(--gn-carousel-item-basis, calc(100% / var(--gn-carousel-per-view-sm, 2))); scroll-snap-align: start; scroll-snap-stop: normal; }
}

@media (min-width: 960px) {
  :is([data-carousel-mode-md="grid"], [data-carousel-mode-md="editorial"]) .groundnation-carousel__track {
    display: grid;
    grid-template-columns: repeat(var(--gn-carousel-per-view-md, 3), minmax(0, 1fr));
    overflow: visible;
    overscroll-behavior-inline: auto;
    scroll-behavior: auto;
    scroll-snap-type: none;
    scrollbar-width: auto;
    -webkit-overflow-scrolling: auto;
  }
  :is([data-carousel-mode-md="grid"], [data-carousel-mode-md="editorial"]) [data-carousel-item] { flex: initial; scroll-snap-align: none; scroll-snap-stop: normal; }
  [data-carousel-mode-md="carousel"] .groundnation-carousel__track { display: flex; grid-template-columns: none; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scroll-behavior: auto; scroll-snap-type: inline mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  [data-carousel-mode-md="carousel"] [data-carousel-item] { flex: 0 0 var(--gn-carousel-item-basis, calc(100% / var(--gn-carousel-per-view-md, 3))); scroll-snap-align: start; scroll-snap-stop: normal; }
}

@media (min-width: 1200px) {
  :is([data-carousel-mode-lg="grid"], [data-carousel-mode-lg="editorial"]) .groundnation-carousel__track {
    display: grid;
    grid-template-columns: repeat(var(--gn-carousel-per-view-lg, 4), minmax(0, 1fr));
    overflow: visible;
    overscroll-behavior-inline: auto;
    scroll-behavior: auto;
    scroll-snap-type: none;
    scrollbar-width: auto;
    -webkit-overflow-scrolling: auto;
  }
  :is([data-carousel-mode-lg="grid"], [data-carousel-mode-lg="editorial"]) [data-carousel-item] { flex: initial; scroll-snap-align: none; scroll-snap-stop: normal; }
  [data-carousel-mode-lg="carousel"] .groundnation-carousel__track { display: flex; grid-template-columns: none; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scroll-behavior: auto; scroll-snap-type: inline mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  [data-carousel-mode-lg="carousel"] [data-carousel-item] { flex: 0 0 var(--gn-carousel-item-basis, calc(100% / var(--gn-carousel-per-view-lg, 4))); scroll-snap-align: start; scroll-snap-stop: normal; }
}

@media (min-width: 1600px) {
  :is([data-carousel-mode-xl="grid"], [data-carousel-mode-xl="editorial"]) .groundnation-carousel__track {
    display: grid;
    grid-template-columns: repeat(var(--gn-carousel-per-view-xl, 4), minmax(0, 1fr));
    overflow: visible;
    overscroll-behavior-inline: auto;
    scroll-behavior: auto;
    scroll-snap-type: none;
    scrollbar-width: auto;
    -webkit-overflow-scrolling: auto;
  }
  :is([data-carousel-mode-xl="grid"], [data-carousel-mode-xl="editorial"]) [data-carousel-item] { flex: initial; scroll-snap-align: none; scroll-snap-stop: normal; }
  [data-carousel-mode-xl="carousel"] .groundnation-carousel__track { display: flex; grid-template-columns: none; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scroll-behavior: auto; scroll-snap-type: inline mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  [data-carousel-mode-xl="carousel"] [data-carousel-item] { flex: 0 0 var(--gn-carousel-item-basis, calc(100% / var(--gn-carousel-per-view-xl, 4))); scroll-snap-align: start; scroll-snap-stop: normal; }
}

.groundnation-carousel[data-carousel-transition="fade"][data-carousel-active="true"] .groundnation-carousel__track {
  display: grid;
  grid-template-columns: repeat(var(--gn-carousel-per-view-current, 1), minmax(0, 1fr));
  overflow: hidden;
  overscroll-behavior-inline: auto;
  scroll-behavior: auto;
  scroll-snap-type: none;
  scrollbar-width: auto;
  -webkit-overflow-scrolling: auto;
}

.groundnation-carousel[data-carousel-transition="fade"][data-carousel-active="true"] [data-carousel-item] {
  grid-row: 1;
  grid-column: var(--gn-carousel-fade-slot, 1);
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--gn-carousel-fade-duration) ease;
}

.groundnation-carousel[data-carousel-transition="fade"][data-carousel-active="true"] [data-carousel-item][data-carousel-visible="true"] {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

[data-carousel-moving="true"] .groundnation-carousel__track {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

[data-carousel-editor-paused] .groundnation-carousel__track {
  overflow-x: hidden;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

@media (prefers-reduced-motion: reduce) {
  .groundnation-carousel__track { scroll-behavior: auto; }
  .groundnation-carousel[data-carousel-transition="fade"] [data-carousel-item] { transition: none; }
}

.groundnation-carousel[data-carousel-edge-resistance="true"] [data-carousel-track] > [data-carousel-item] {
  translate: var(--gn-carousel-edge-drag, 0px) 0;
}

.groundnation-carousel[data-carousel-drag-enabled="true"] [data-carousel-track] {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.groundnation-carousel[data-carousel-drag-enabled="true"] [data-carousel-track] a {
  cursor: grab;
}

.groundnation-carousel[data-carousel-dragging="true"] [data-carousel-track],
.groundnation-carousel[data-carousel-dragging="true"] [data-carousel-track] a {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
}

/* Pagination fills the space between controls; arrow placement stays independent. */
.groundnation-carousel[data-carousel-pagination-alignment] .groundnation-carousel__pagination {
  flex: 1 1 auto;
  justify-content: flex-start;
}
.groundnation-carousel[data-carousel-pagination-alignment] .groundnation-carousel__count {
  flex: 1 1 auto;
  text-align: left;
}
.groundnation-carousel[data-carousel-pagination-alignment="center"] .groundnation-carousel__pagination { justify-content: center; }
.groundnation-carousel[data-carousel-pagination-alignment="right"] .groundnation-carousel__pagination { justify-content: flex-end; }
.groundnation-carousel[data-carousel-pagination-alignment="center"] .groundnation-carousel__count { text-align: center; }
.groundnation-carousel[data-carousel-pagination-alignment="right"] .groundnation-carousel__count { text-align: right; }

.groundnation-carousel__pagination[hidden],
.groundnation-carousel__count[hidden] { display: none; }

/* Pagination occupies its own full-width row, independent of arrow placement. */
.groundnation-carousel__pagination-controls { display: flex; margin: var(--gn-carousel-control-margin); }
.groundnation-carousel__pagination-controls[hidden] { display: none; }
.groundnation-carousel__pagination-controls .groundnation-carousel__pagination { width: 100%; }

/****** FILE: vendor/groundnation/groundnation-composer/client/styles/page-filters.css *****/
/*
 * Structural defaults only. Project themes own the typography, spacing detail,
 * colour, hover treatment and the visual treatment of `.is-active`.
 */
@layer components {
:where(.groundnation-composer) {
  --gn-page-filter-gap: var(--gn-composer-space-section, 1.5rem);
  --gn-page-filter-option-gap: 0.75rem 1.5rem;
  --gn-page-filter-group-gap: var(--gn-page-filter-option-gap);
  --gn-page-filter-secondary-offset: 0.5rem;
  --gn-page-filter-secondary-indent: 0.75rem;
  --gn-page-filter-secondary-justify: flex-start;
  /*
   * Project theme control: override this one property in composer.scss.
   * Example: .groundnation-composer { --gn-page-filter-sidebar-width: 16rem; }
   */
  --gn-page-filter-sidebar-width: 14rem;
  --gn-page-filter-sidebar-gap: var(--gn-composer-space-section, 1.5rem);
  --gn-page-filter-sticky-offset: 1rem;
  --gn-page-filter-scroll-offset: var(--gn-page-filter-sticky-offset);
  /* Structural accessibility floor; the project theme owns visual treatment. */
  --gn-page-filter-control-min-height: 44px;
}

.groundnation-composer__page-collection-shell {
  display: flow-root;
  min-width: 0;
  scroll-margin-block-start: var(--gn-page-filter-scroll-offset, 1rem);
}

.groundnation-composer__page-collection-content {
  min-width: 0;
}

.groundnation-composer__section[data-page-card-filter-scroll-target="true"],
[data-page-card-filter-scroll-target="true"] {
  scroll-margin-block-start: var(--gn-page-filter-scroll-offset, 1rem);
}

/*
 * View controls own only the collection's structural mode. Card typography
 * and any richer list treatment remain project-theme concerns.
 */
.groundnation-composer__page-collection-shell[data-page-collection-view="list"]
  .groundnation-composer__page-collection-content
  .groundnation-carousel
  > .groundnation-carousel__track {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: visible;
  scroll-snap-type: none;
}

.groundnation-composer__page-collection-shell[data-page-collection-view="list"]
  .groundnation-composer__page-collection-content
  [data-carousel-item] {
  width: 100%;
  min-width: 0;
  flex: initial;
  scroll-snap-align: none;
}

.groundnation-composer__page-collection-shell[data-page-collection-view="list"]
  .groundnation-composer__page-collection-content
  .groundnation-carousel[data-carousel-enhanced="true"][data-carousel-active="true"]
  .groundnation-carousel__controls {
  display: none;
}

.groundnation-composer__page-filters {
  min-width: 0;
  margin: 0 0 var(--gn-page-filter-gap);
}

.groundnation-composer__page-collection-controls,
.groundnation-composer__page-view-controls,
.groundnation-composer__page-filter-actions,
.groundnation-composer__page-filter-search {
  display: flex;
  align-items: center;
}

.groundnation-composer__page-collection-controls {
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  margin-block-end: var(--gn-page-filter-gap);
}

.groundnation-composer__page-view-controls,
.groundnation-composer__page-filter-actions {
  gap: 0.5rem;
}

.groundnation-composer__page-view-control,
.groundnation-composer__page-filter-reset,
.groundnation-composer__page-filter-search-toggle {
  display: inline-grid;
  width: var(--gn-page-filter-control-min-height);
  min-width: var(--gn-page-filter-control-min-height);
  height: var(--gn-page-filter-control-min-height);
  padding: 0.625rem;
  place-items: center;
  border: 0;
  color: inherit;
  background: transparent;
}

.groundnation-composer__page-view-control svg,
.groundnation-composer__page-filter-reset svg,
.groundnation-composer__page-filter-search-toggle svg {
  display: block;
  width: 100%;
  height: 100%;
}

.groundnation-composer__page-view-control[aria-pressed="false"],
.groundnation-composer__page-filter-reset[aria-disabled="true"] {
  opacity: 0.35;
}

.groundnation-composer__page-filter-reset[aria-disabled="true"] {
  pointer-events: none;
}

.groundnation-composer__page-filter-search label {
  min-width: 0;
}

.groundnation-composer__page-filter-search input {
  min-width: 0;
  max-width: min(18rem, 55vw);
}

.groundnation-composer__page-collection-controls[data-page-filter-search-open="false"]
  .groundnation-composer__page-filter-search label {
  display: none;
}

.groundnation-composer__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.groundnation-composer__page-filter-groups {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--gn-page-filter-group-gap);
  min-width: 0;
  margin: 0;
  padding: 0;
}

.groundnation-composer__page-filters[data-page-filter-alignment="center"]
  .groundnation-composer__page-filter-groups {
  justify-content: center;
}

.groundnation-composer__page-filters[data-page-filter-alignment="center"] {
  --gn-page-filter-secondary-justify: center;
}

.groundnation-composer__page-filters[data-page-filter-alignment="right"]
  .groundnation-composer__page-filter-groups {
  justify-content: flex-end;
}

.groundnation-composer__page-filters[data-page-filter-alignment="right"] {
  --gn-page-filter-secondary-justify: flex-end;
}

.groundnation-composer__page-filter-group,
.groundnation-composer__page-filter-options {
  display: contents;
}

.groundnation-composer__page-filter-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.groundnation-composer__page-filter-group > legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.groundnation-composer__page-filter-options,
.groundnation-composer__page-filter-options > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.groundnation-composer__page-filter-options > li::before {
  content: none;
}

/*
 * Level-two values stack beneath their parent on small screens.
 * The visible treatment remains entirely project-owned.
 */
.groundnation-composer__page-filter-options[data-page-filter-level="primary"]
  > .groundnation-composer__page-filter-option--parent
  > .groundnation-composer__page-filter-secondary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: var(--gn-page-filter-secondary-justify);
  gap: 0;
  min-width: 0;
  padding-block-start: var(--gn-page-filter-secondary-offset);
  padding-inline-start: var(--gn-page-filter-secondary-indent);
}

.groundnation-composer__page-filter-secondary[hidden] {
  display: none;
}

.groundnation-composer__page-filter-group[hidden],
.groundnation-composer__page-filter-option[hidden] {
  display: none;
}

.groundnation-composer__page-filter-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--gn-page-filter-control-min-height);
}

.groundnation-composer__page-filter-options input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
}

.groundnation-composer__page-filter-options input:focus-visible + span,
.groundnation-composer__page-filter-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.25rem;
}

.groundnation-composer__page-filter-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.groundnation-composer__page-filter-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  min-width: 0;
  margin-block-end: var(--gn-page-filter-gap);
}

.groundnation-composer__page-filter-summary[hidden] {
  display: none;
}

.groundnation-composer__page-filter-summary [data-page-filter-summary-label] {
  min-width: 0;
}

.groundnation-composer__page-filter-summary [data-page-filter-summary-clear] {
  display: inline-flex;
  align-items: center;
  min-height: var(--gn-page-filter-control-min-height);
}

.groundnation-composer__page-collection-results {
  min-width: 0;
  scroll-margin-block-start: var(--gn-page-filter-results-scroll-offset, var(--gn-page-filter-scroll-offset, 1rem));
}

/* Above-card filters may use a compact horizontal child row on larger screens. */
@media (min-width: 48rem) {
  .groundnation-composer__page-collection-shell[data-page-filter-placement="above"]
    .groundnation-composer__page-filter-options[data-page-filter-level="primary"]
    > .groundnation-composer__page-filter-option--parent
    > .groundnation-composer__page-filter-secondary {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    flex-flow: row nowrap;
    align-items: center;
    gap: var(--gn-page-filter-option-gap);
    padding-inline-start: 0;
    overflow-x: auto;
  }

  .groundnation-composer__page-collection-shell[data-page-filter-placement="above"]
    .groundnation-composer__page-filter-groups:has(
      .groundnation-composer__page-filter-option--parent[data-page-filter-expanded="true"]
      > .groundnation-composer__page-filter-secondary:not([hidden])
    ) {
    padding-block-end: calc(1.5em + var(--gn-page-filter-secondary-offset));
  }
}

/* Sidebars begin at desktop width; below this filters return above the cards. */
@media (min-width: 64rem) {
  .groundnation-composer__page-collection-shell:is(
      [data-page-filter-placement="sidebar-left"],
      [data-page-filter-placement="sidebar-right"]
    ) {
    display: grid;
    align-items: start;
    column-gap: var(--gn-page-filter-sidebar-gap);
  }

  .groundnation-composer__page-collection-shell[data-page-filter-placement="sidebar-left"] {
    grid-template-columns: minmax(0, var(--gn-page-filter-sidebar-width)) minmax(0, 1fr);
  }

  .groundnation-composer__page-collection-shell[data-page-filter-placement="sidebar-right"] {
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--gn-page-filter-sidebar-width));
  }

  .groundnation-composer__page-collection-shell[data-page-filter-placement="sidebar-left"]
    > .groundnation-composer__page-filters {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .groundnation-composer__page-collection-shell[data-page-filter-placement="sidebar-left"]
    > .groundnation-composer__page-collection-controls {
    grid-column: 2;
    grid-row: 1;
  }

  .groundnation-composer__page-collection-shell[data-page-filter-placement="sidebar-left"]
    > .groundnation-composer__page-collection-content {
    grid-column: 2;
    grid-row: 2;
  }

  .groundnation-composer__page-collection-shell[data-page-filter-placement="sidebar-right"]
    > .groundnation-composer__page-filters {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .groundnation-composer__page-collection-shell[data-page-filter-placement="sidebar-right"]
    > .groundnation-composer__page-collection-controls {
    grid-column: 1;
    grid-row: 1;
  }

  .groundnation-composer__page-collection-shell[data-page-filter-placement="sidebar-right"]
    > .groundnation-composer__page-collection-content {
    grid-column: 1;
    grid-row: 2;
  }

  .groundnation-composer__page-collection-shell:is(
      [data-page-filter-placement="sidebar-left"],
      [data-page-filter-placement="sidebar-right"]
    ) > .groundnation-composer__page-filters {
    min-width: 0;
    margin: 0;
  }

  .groundnation-composer__page-collection-shell[data-page-filter-sticky="true"]
    > .groundnation-composer__page-filters {
    position: sticky;
    top: var(--gn-page-filter-sticky-offset);
    align-self: start;
    max-height: calc(100vh - (2 * var(--gn-page-filter-sticky-offset)));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .groundnation-composer__page-collection-shell:is(
      [data-page-filter-placement="sidebar-left"],
      [data-page-filter-placement="sidebar-right"]
    ) .groundnation-composer__page-filter-groups {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
  }

  /*
   * Sidebar options are rows, not tiny text-only targets. This remains purely
   * structural: projects still own every visual hover and active treatment.
   */
  .groundnation-composer__page-collection-shell:is(
      [data-page-filter-placement="sidebar-left"],
      [data-page-filter-placement="sidebar-right"]
    ) :is(
      .groundnation-composer__page-filter-option,
      .groundnation-composer__page-filter-link
    ) {
    width: 100%;
  }

  .groundnation-composer__page-collection-shell:is(
      [data-page-filter-placement="sidebar-left"],
      [data-page-filter-placement="sidebar-right"]
    ) .groundnation-composer__page-filters[data-page-filter-alignment="center"]
    .groundnation-composer__page-filter-link {
    justify-content: center;
    width: 100%;
  }

  .groundnation-composer__page-collection-shell:is(
      [data-page-filter-placement="sidebar-left"],
      [data-page-filter-placement="sidebar-right"]
    ) .groundnation-composer__page-filters[data-page-filter-alignment="right"]
    .groundnation-composer__page-filter-link {
    justify-content: flex-end;
    width: 100%;
  }

  .groundnation-composer__page-collection-shell:is(
      [data-page-filter-placement="sidebar-left"],
      [data-page-filter-placement="sidebar-right"]
    ) .groundnation-composer__page-filter-group {
    display: grid;
    width: 100%;
    gap: var(--gn-page-filter-option-gap);
  }

  .groundnation-composer__page-collection-shell:is(
      [data-page-filter-placement="sidebar-left"],
      [data-page-filter-placement="sidebar-right"]
    ) .groundnation-composer__page-filter-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .groundnation-composer__page-collection-shell:is(
      [data-page-filter-placement="sidebar-left"],
      [data-page-filter-placement="sidebar-right"]
    ) .groundnation-composer__page-filter-options[data-page-filter-level="primary"]
    > .groundnation-composer__page-filter-option--parent
    > .groundnation-composer__page-filter-secondary {
    position: static;
    padding-block-start: 0;
    padding-inline-start: var(--gn-page-filter-secondary-indent);
    transform: none;
  }

  .groundnation-composer__page-collection-shell:is(
      [data-page-filter-placement="sidebar-left"],
      [data-page-filter-placement="sidebar-right"]
    ) .groundnation-composer__page-filter-groups:has(
      .groundnation-composer__page-filter-secondary
    ) {
    padding-block-end: 0;
  }
}

/* Keep the native hidden state authoritative over the sidebar flex layout. */
.groundnation-composer__page-filter-options[data-page-filter-level="primary"]
  > .groundnation-composer__page-filter-option--parent
  > .groundnation-composer__page-filter-secondary[hidden] {
  display: none;
}

}

