/* A compact control strip; the existing editorial rows and brand stay intact. */
[data-resource-browser] [hidden] { display: none !important; }
[data-resource-browser], [data-resource-controls], .resource-filter-form { min-width: 0; }
.resource-controls { margin: 1.35rem 0 1.15rem; }
.resource-filter-form { display: grid; gap: .9rem; }
.resource-search-field { display: flex; width: 100%; max-width: 56rem; gap: 0; }
.resource-search-field input { flex: 1 1 auto; width: 100%; min-width: 0; padding: .85rem 1rem; border: 1px solid #d5dbe5; border-radius: .6rem 0 0 .6rem; background: #fff; color: #192338; font: inherit; }
.resource-search-field button { flex: 0 0 auto; min-width: 6rem; padding: .8rem 1.2rem; border: 1px solid #25344c; border-radius: 0 .6rem .6rem 0; background: #25344c; color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.resource-filter-options { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem 1rem; }
.resource-filter-options label { display: grid; gap: .3rem; min-width: 0; max-width: 100%; color: #526079; font-size: .8rem; font-weight: 600; }
.resource-filter-options select { width: auto; max-width: 100%; min-height: 42px; padding: .55rem 2rem .55rem .7rem; border: 1px solid #d5dbe5; border-radius: .45rem; background: #fff; color: #25344c; font: inherit; font-size: .875rem; }
.resource-filter-options [data-resource-topic] { width: 17rem; }
.resource-filter-options [data-resource-clear] { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 42px; padding: .45rem .3rem; border: 0; background: transparent; color: #3b587e; text-decoration: underline; text-underline-offset: .2rem; font: inherit; font-size: .85rem; cursor: pointer; }
.resource-advanced { max-width: 56rem; min-width: 0; }
.resource-advanced > summary { width: fit-content; max-width: 100%; min-height: 42px; padding: .55rem 0; box-sizing: border-box; color: #526079; font-size: .85rem; line-height: 1.55; cursor: pointer; overflow-wrap: anywhere; }
.resource-advanced[data-resource-active="true"] > summary { color: #25344c; font-weight: 650; }
.resource-advanced > .resource-filter-options { padding: .35rem 0 .25rem; }
.resource-advanced > p { margin: .45rem 0 .15rem; color: #526079; font-size: .8rem; line-height: 1.6; }
.resource-procurement-details, .resource-deadline { color: #526079; font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.resource-deadline { margin: .3rem 0; }
.resource-procurement-details { margin: .45rem 0 .65rem; }
details.resource-procurement-details > summary { width: fit-content; max-width: 100%; padding: .25rem 0; color: #3b587e; cursor: pointer; }
details.resource-procurement-details > :not(summary) { margin: .35rem 0; }
details.resource-procurement-details > ul { padding-left: 1.25rem; }
.resource-results { margin: .95rem 0 0; color: #526079; font-size: .85rem; line-height: 1.55; }
[data-resource-empty] { padding: 1.4rem 0; color: #526079; line-height: 1.65; }
.resource-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin: 1.5rem 0 2rem; color: #526079; font-size: .875rem; }
.resource-pagination :is(a, [aria-disabled="true"], .resource-page-current) { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; min-width: 42px; padding: .55rem .8rem; box-sizing: border-box; border: 1px solid #d5dbe5; border-radius: .45rem; background: #fff; color: #25344c; font: inherit; text-decoration: none; }
.resource-pagination [aria-disabled="true"] { color: #7d899c; background: #f3f5f8; }
.resource-pagination .resource-page-current { background: #25344c; border-color: #25344c; color: #fff; }
.resource-page-numbers { display: inline-flex; align-items: center; gap: .3rem; }
.resource-page-gap { padding: .2rem; }
.resource-page-label { flex-basis: 100%; text-align: center; }
[data-resource-item], [data-resource-group] { scroll-margin-top: 110px; }
[data-resource-item] { overflow-wrap: anywhere; }
[data-resource-item]:target { outline: 2px solid #a0b3cd; outline-offset: 6px; }
[data-resource-browser] :is(input, select, button, a, summary):focus-visible,
[data-resource-item]:focus-visible { outline: 2px solid #3d689c; outline-offset: 3px; }
@media (max-width: 640px) {
  .resource-controls { margin-top: 1rem; }
  .resource-search-field button { min-width: 4.5rem; padding-inline: .7rem; }
  .resource-search-field input { padding-inline: .75rem; }
  .resource-filter-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .resource-filter-options label:has([data-resource-topic]) { grid-column: 1 / -1; }
  .resource-filter-options select,
  .resource-filter-options [data-resource-topic] { width: 100%; min-width: 0; }
  .resource-filter-options [data-resource-clear] { justify-self: start; }
  .resource-advanced .resource-filter-options { grid-template-columns: minmax(0, 1fr); }
  .resource-pagination { gap: .6rem; }
  .resource-page-numbers { order: 3; flex-basis: 100%; justify-content: center; }
  .resource-page-label { order: 4; }
}
