/* TOPHIVE Skills — item-first Examples listing. No marketing/hero sections. */
.ex-library-page{
  --ex-line:#e0e5df;
  --ex-muted:#75837a;
  --ex-green:#548569;
  background:#fafbf9;
  min-height:100vh;
}
.ex-library-page [hidden]{display:none!important}
/* Match Design Lab's .lab-index: the glass surface spans between the two
   architectural rails, while the controls align with the site's content grid.
   The negative inline margins cancel the existing .wrap inline padding only. */
.ex-library-page .ex-sticky-toolbar{
  --ex-toolbar-gutter:clamp(23px,5vw,66px);
  position:sticky;
  top:0;
  z-index:35;
  margin:22px calc(-1 * var(--ex-toolbar-gutter)) 0;
  padding:11px var(--ex-toolbar-gutter) 13px;
  border:0;
  border-radius:0;
  background:rgba(247,248,244,.76);
  -webkit-backdrop-filter:blur(18px) saturate(125%);
  backdrop-filter:blur(18px) saturate(125%);
  box-shadow:none;
}
/* Examples uses Design Lab's architectural ruler language at half the height:
   one fine divider, minor ticks every 12px, and major ticks every 48px.
   The ruler follows the grid-confined toolbar, never the full viewport. */
.ex-library-page .ex-sticky-toolbar::after{
  content:"";
  position:absolute;
  inset-inline:0;
  bottom:0;
  height:4px;
  pointer-events:none;
  background:
    linear-gradient(90deg, transparent, rgba(98,133,107,.20) 10%, rgba(98,133,107,.20) 90%, transparent) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(95,134,104,.27) 0 1px, transparent 1px 48px) left bottom / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, rgba(95,134,104,.13) 0 1px, transparent 1px 12px) left bottom / 100% 2px no-repeat;
}
@media(max-width:640px){
  .ex-library-page .ex-sticky-toolbar{
    margin-top:17px;
    padding-block:9px 12px;
    gap:9px;
  }
  .ex-library-page .ex-sticky-toolbar .ex-filter-scroll{
    flex-wrap:nowrap;
    overflow-x:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .ex-library-page .ex-sticky-toolbar .ex-filter-scroll::-webkit-scrollbar{display:none}
}
/* Keep the site's canonical .wrap (1240px) for header, listing and footer.
   Widening .wrap here broke alignment with the global canvas rails. */
.ex-library-page .site-footer{background:#fafbf9}
.ex-sort{
  margin-left:0;
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  gap:9px;
  color:#819184;
  font-size:12px;
  font-weight:650;
  white-space:nowrap;
}
.ex-sort-control{
  position:relative;
  display:inline-flex;
  align-items:center;
  width:133px;
  min-width:0;
}
.ex-sort-control::after{
  content:"";
  position:absolute;
  right:15px;
  top:50%;
  width:7px;
  height:7px;
  border-right:1.6px solid #62776a;
  border-bottom:1.6px solid #62776a;
  transform:translateY(-70%) rotate(45deg);
  pointer-events:none;
}
.ex-sort select{
  appearance:none;
  -webkit-appearance:none;
  display:block;
  width:100%;
  min-width:0;
  height:var(--site-listing-control-height,36px);
  min-height:var(--site-listing-control-height,36px);
  box-sizing:border-box;
  border:1px solid #dce4dd;
  border-radius:7px;
  background:#fff;
  padding:7px 35px 7px 12px;
  color:#33493a;
  font-family:inherit;
  font-size:12px;
  font-weight:650;
  line-height:1.4;
  cursor:pointer;
}
.ex-sort select:hover{border-color:#abc4b0;background:#fdfefd}
.ex-sort select:focus-visible{outline:2px solid #719d80;outline-offset:2px}
@media(min-width:1081px){.ex-library-page .site-listing-actions{flex-basis:440px}}
.ex-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  column-gap:clamp(15px,2vw,26px);
  row-gap:30px;
  align-items:start;
}
.ex-card{
  position:relative;
  min-width:0;
  display:flex;
  flex-direction:column;
}
.ex-card-art{
  display:block;
  position:relative;
  height:auto;
  aspect-ratio:1.6;
  padding:0;
  overflow:hidden;
  border:1px solid #dbe5dc;
  border-radius:11px;
  background:#e6eee7;
  transition:border-color .2s, box-shadow .25s,transform .25s;
}
.ex-card-art[data-ex-tone=dashboard]{background:#e9eeef}
.ex-card-screen{
  position:relative;
  display:block;
  width:100%;
  height:100%;
  overflow:hidden;
  border:0;
  border-radius:inherit;
  background:#f9faf8;
  box-shadow:0 10px 24px #183a2515;
}
.ex-card-thumb{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  transform-origin:center top;
  transition:transform .35s ease;
}
.ex-card-full{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:auto;
  display:block;
  opacity:0;
  pointer-events:none;
  transform:translate3d(0,0,0);
  will-change:auto;
}
/* The light UI studies need subtle definition at gallery scale. Keep the actual
   screenshot and hover-pan colors consistent, without changing darker studies. */
.ex-card[data-ex-name="FlowBridge"] .ex-card-thumb,
.ex-card[data-ex-name="FlowBridge"] .ex-card-full{
  filter:contrast(1.065) saturate(1.035);
}
.ex-card[data-ex-name="RoomFlow"] .ex-card-thumb,
.ex-card[data-ex-name="RoomFlow"] .ex-card-full{
  filter:contrast(1.055) saturate(1.025);
}
/* Websites retain full-page hover pan. Dashboard thumbnails stay static so their
   fixed sidebars and topbars never slide out of the preview on hover. */
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .ex-card:not([data-category="dashboards"])[data-ex-scroll-ready="true"]:hover .ex-card-full{
    opacity:1;
    will-change:transform;
    animation:ex-full-page-pan var(--ex-pan-duration,12s) linear 0s infinite alternate;
  }
}
@keyframes ex-full-page-pan{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(0,calc(-1 * var(--ex-pan-travel,0px)),0)}
}
.ex-card:hover .ex-card-art,.ex-card:focus-within .ex-card-art{
  border-color:#a8c4ad;
  box-shadow:0 14px 30px #1b39201c;
  transform:translateY(-3px);
}
/* Dashboard art is a stable application snapshot; only its focus/hover
   border treatment changes, never the image position or panel framing. */
.ex-card[data-category="dashboards"]:hover .ex-card-art,
.ex-card[data-category="dashboards"]:focus-within .ex-card-art{
  transform:none;
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .ex-card:not([data-category="dashboards"]):hover .ex-card-thumb{transform:scale(1.02)}
}
.ex-card-art:focus-visible{outline:2px solid #548569;outline-offset:3px}

.ex-card-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  min-height:64px;
  padding:11px 1px 0;
}
.ex-card-info{min-width:0}
.ex-card-info h3{
  margin:0 0 4px;
  font-size:18px;
  line-height:1.23;
  letter-spacing:-.032em;
  font-weight:700;
}
/* Extend the case-study link across the card without covering its live-preview action. */
.ex-card-info h3 a::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  border-radius:12px;
}
.ex-card-info h3 a:hover{color:#447d58}
.ex-card-info h3 a:focus-visible{outline:none}
.ex-card-info h3 a:focus-visible::after{outline:2px solid #548569;outline-offset:3px}
.ex-card-info p{
  margin:0;
  color:#7b8a7f;
  font-size:12px;
  line-height:1.5;
}
.ex-card-open{
  position:relative;
  z-index:2;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:34px;
  height:34px;
  border:1px solid #dfe8e0;
  background:#fff;
  border-radius:8px;
  color:#52725d;
  font-size:17px;
  transition:border-color .18s,background .18s;
}
.ex-card-open:hover{background:#eaf3ea;border-color:#a6c8ae}
.ex-empty{
  text-align:center;
  max-width:550px;
  padding:76px 22px;
  margin:20px auto;
}
.ex-empty-symbol{
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  margin:0 auto 19px;
  border:1px solid #d9e5d9;
  background:#edf4ed;
  border-radius:12px;
  color:#769780;
  font-size:35px;
}
.ex-empty h2{font-size:25px;letter-spacing:-.045em;margin:0 0 8px}
.ex-empty p{font-size:13px;color:#748679;margin:0 0 22px}
.ex-empty button{
  border:0;
  background:#223329;
  color:#fff;
  padding:13px 19px;
  border-radius:6px;
  font-size:12px;
  font-weight:750;
}
.ex-auto-sentinel{height:1px;pointer-events:none}
@media(max-width:1040px){
  .ex-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .ex-library-page .site-listing-actions{flex-wrap:nowrap}
  .ex-library-page .site-listing-actions .site-search{
    flex:1 1 0;
    width:auto;
    max-width:none;
  }
  .ex-sort{margin-left:0}
  .ex-sort-label{display:none}
  .ex-sort-control{width:122px}
  .ex-grid{grid-template-columns:1fr;gap:20px}
  .ex-card-art{aspect-ratio:1.5}
  .ex-card-bottom{min-height:62px}
  .ex-card-info h3{font-size:18px}
}
@media(prefers-reduced-motion:reduce){
  .ex-card-art,.ex-card-thumb,.ex-card-open{transition:none!important}
  .ex-card:hover .ex-card-art,.ex-card:focus-within .ex-card-art{transform:none}
}
