/* A free-standing box has a rounded outline. Only connected modules use
   the four tangent quadrants shared with the Finder and listing renderers. */
:root{--control-round:8px;--small-round:4px;--panel-round:14px}
@layer blueprint{
 body.blocks :is(#pet-search,#filter-panel,#selections,.sort-count-band,#saved-tools,dialog) :is(input:not([type=checkbox]):not([type=file]),select,button),
 body.blocks :is(#load-more,#reset-empty,#view-search-hit){
  border-radius:var(--control-round)!important
 }
 body.blocks #filter-panel input[type=checkbox]{border-radius:var(--small-round)!important}
 body.blocks :is(#place-choices,#filter-panel fieldset,.facet-list){border-radius:var(--control-round)!important}
 body.blocks :is(#detail,#state-picker,#about-sheet,.info-sheet,#saved-side #filter-panel,#saved-tools,.saved-list-head){
  border-radius:var(--panel-round)!important;
  background-image:none!important
 }
 body.blocks #find #results.empty{
  /* The common module outline connects the empty message to the count above. */
  border-color:transparent!important;box-shadow:none!important;background-image:none!important;
 }
 body.blocks #saved #results.grid{position:relative;isolation:isolate}
 body.blocks #saved #results.grid[data-listing-seams]>article{
  box-shadow:none!important;background-image:none!important
 }
 body.blocks #saved #results.grid[data-listing-seams]::after{
  content:"";position:absolute;inset:-6px;pointer-events:none;z-index:2;
  background:var(--listing-seams) left top / 100% 100% no-repeat!important
 }
 /* Every tab owns the two inside quadrants of its horizontal seams. Leave
    the two already rounded outside ends of the complete stack untouched. */
 body.blocks header .nc-masthead .tab-stack > :is(a,button){
  --inside-ne:var(--bp-ne);--inside-se:var(--bp-se);
  background-image:var(--bp-nw),var(--inside-ne),var(--bp-sw),var(--inside-se)!important;
  background-position:left top,right top,left bottom,right bottom!important;
  background-repeat:no-repeat!important;background-size:var(--feed-wedge) var(--feed-wedge)!important;
 }
 body.blocks header .nc-masthead .tab-stack > :first-child{--inside-ne:none}
 body.blocks header .nc-masthead .tab-stack > :last-child{--inside-se:none}
 /* Attached edges are painted by the module drawing. The shell owns its
    corners while sticky, independently of the scrolling contents. */
 body.blocks[data-joints] #find .filter-track .finder-filter-frame::after{
  --rim-nw:var(--bp-nw);--rim-ne:var(--bp-ne);--rim-sw:var(--bp-sw);--rim-se:var(--bp-se);
  background-image:var(--rim-nw),var(--rim-ne),var(--rim-sw),var(--rim-se)!important;
  background-position:left top,right top,left bottom,right bottom!important;
  background-size:var(--feed-wedge) var(--feed-wedge)!important
 }
 body.blocks[data-joints] #find .filter-track[data-attached] .finder-filter-frame::after{--rim-nw:none;--rim-ne:none}
 body.blocks[data-joints] #find .filter-track[data-at-end] .finder-filter-frame::after{--rim-sw:none;--rim-se:none}
 body.blocks :is(.foot-links,.info-sheet,#about-sheet,.source-disclosure,#detail) a:not(.listing-link):focus-visible,
 body.blocks :is(#filter-panel,.source-disclosure) summary:focus-visible{
  border-radius:var(--small-round);outline:2px solid var(--print-blue)!important;outline-offset:1px!important
 }
 body.blocks :is(#pet-search,#filter-panel,#selections,.sort-count-band,#saved-tools,dialog) :is(button,select,input):focus-visible{
  outline:2px solid var(--print-blue)!important;outline-offset:1px!important
 }
}
/* The drawn middle seam already bounds the occupied card beside a vacancy. */
body.blocks #find #results.grid[data-vacant-column]>article.nc-ticket:last-child::before{
 border-right-width:0
}
@layer blueprint{
 /* These inset facet separators end inside the panel; they do not meet the
    perimeter. Cap their existing ends instead of adding decorative corners. */
 body.blocks #find #filter-panel details{
  position:relative;border-top-color:transparent!important
 }
 body.blocks #find #filter-panel details::before{
  content:"";position:absolute;pointer-events:none;top:calc(-1 * var(--feed-rule));
  inset-inline:0;height:var(--feed-rule);border-radius:var(--feed-rule);
  background:var(--print-blue)!important
 }
}
@layer blueprint{
 /* The static shell can paint before the measured drawing is available. Use
    the same tangents on its already outlined modules during that interval. */
 body.blocks:not([data-joints]) #find :is(.section-top,.sort-count-band>label,#result-summary){
  background-image:var(--bp-nw),var(--bp-ne),var(--bp-sw),var(--bp-se)!important;
  background-size:var(--feed-wedge) var(--feed-wedge)!important;
  background-repeat:no-repeat!important;
  background-position:left top,right top,left bottom,right bottom!important
 }
 /* Inset keyboard focus is independent of the connected, square-edged hit area. */
 body.blocks header .nc-masthead .tab-stack>:focus-visible{
  position:relative;outline:0!important
 }
 body.blocks header .nc-masthead .tab-stack>:focus-visible::after{
  content:"";position:absolute;inset:4px;border:2px solid var(--print-blue)!important;
  border-radius:var(--control-round);background:transparent!important;pointer-events:none
 }
 @media(forced-colors:active){
  body.blocks header .nc-masthead .tab-stack>:focus-visible::after{border-color:Highlight!important}
 }
}

/* Compact, keyboard-accessible alternatives below the empty-state reset. */
body.blocks #results.empty .closest-matches{
  display:grid;gap:.5rem;margin:1.25rem auto 0;max-width:30rem;text-align:start
}
body.blocks #results.empty .closest-matches h3{margin:0;font:inherit;font-weight:bold}
body.blocks #results.empty .closest-matches button{
  display:grid;gap:.2rem;align-content:center;min-height:44px;max-width:100%;margin:0;
  padding:.5rem .75rem;border:1px solid currentColor;border-radius:var(--control-round);
  font:inherit;line-height:1.2;text-align:start;white-space:normal;overflow-wrap:anywhere;cursor:pointer;
  color:inherit;background:transparent
}
body.blocks #results.empty .closest-matches button small{font-size:.85em}
body.blocks #results.empty .closest-matches button:focus-visible{outline:2px solid currentColor;outline-offset:2px}

#match-coverage,#catalog-progress{margin:.5rem 0;padding:.6rem .8rem;color:#243fb8;background:white;line-height:1.4}
#match-coverage span,#match-coverage small,.home-requirement{display:block}
#match-coverage button,#catalog-progress button{min-height:44px;font:inherit;color:inherit}
.home-requirement{padding:.5rem 0;overflow-wrap:anywhere}.home-requirement a{color:inherit;text-decoration:underline}

#find #results[data-preview]{min-height:100vh;align-content:start}
#results[data-preview] .pet-mark{display:block;aspect-ratio:1;min-width:0}
#results[data-preview] .pet-mark img{width:100%;height:100%;object-fit:contain}
