/* UW3D Scans v0.1.95 — Featured UI polish. Scoped to the new homepage. */
/* Both view-all links share the same default dimensions and typography. The
   editable per-button CSS custom properties still control individual choices. */
.uw3d192-home #featured-sites .uw3d193-button,
.uw3d192-home #featured-scans .uw3d193-button {
  min-height:39px;min-width:151px;
  font-family:Quantico,'Arial Narrow',system-ui,sans-serif!important;
  font-size:var(--uw193-font-desktop,12px);
  font-weight:var(--uw193-weight,800);
  line-height:var(--uw193-line-height,1.25);
  text-align:center;white-space:nowrap;
  gap:9px;align-items:center;justify-content:center;
}
/* Wider panels and an image-friendly composition for cards originally designed
   for the vertical archive listing. Keep native icons and editor-provided data. */
.uw3d192-home .uw3d192-showcase.uw3d2-shell {
  width:min(calc(100% - 34px),1890px)!important;max-width:1890px!important;
  grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;
}
.uw3d192-home .uw3d192-showcase__panel{padding:16px 17px 18px;min-width:0}
.uw3d192-home .uw3d192-showcase .uw3d193-collection__grid {
  grid-template-columns:minmax(0,.97fr) minmax(0,1.13fr)!important;
  grid-template-rows:repeat(2,minmax(266px,auto))!important;
}
.uw3d192-home .uw3d193-collection__grid>article:nth-child(2),
.uw3d192-home .uw3d193-collection__grid>article:nth-child(3){
  grid-template-columns:minmax(0,47%) minmax(0,53%)!important;
  min-width:0;min-height:0;
}
/* Fit the complete horizontal model within the left half instead of stretching
   a thumbnail through the full height of a portrait-like viewport. */
.uw3d192-home .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__media,
.uw3d192-home .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__image{
  position:relative;background:radial-gradient(ellipse at 48% 48%,#0b3947 0%,#041823 78%);
}
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__media img,
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__media-link img,
.uw3d192-home #featured-sites .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__image img {
  display:block!important;width:100%!important;height:72%!important;
  position:absolute!important;top:50%!important;left:0!important;
  transform:translateY(-50%) scale(var(--uw3d2-site-zoom,1))!important;
  max-height:none;object-fit:contain!important;object-position:center center!important;
}
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card:hover img,
.uw3d192-home #featured-sites .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card:hover img{
  transform:translateY(-50%) scale(var(--uw3d2-site-zoom,1))!important;
}
/* Keep custom information prominent without cutting buttons or long values. */
.uw3d192-home #featured-sites .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__stat,
.uw3d192-home #featured-sites .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__stat small,
.uw3d192-home #featured-sites .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__stat-text{
  font-size:max(11px,var(--uw-card-label-size,11px))!important;line-height:1.43!important;
}
.uw3d192-home #featured-sites .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__stats {gap:5px!important}
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__metric small {
  font-size:max(11px,var(--uw-card-label-size,11px))!important;line-height:1.38!important;
}
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__metric b {
  font-size:max(12px,var(--uw-card-value-size,12px))!important;line-height:1.4!important;
}
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:first-child .uw3d2-card__metric small {
  font-size:max(11px,var(--uw-card-label-size,11px))!important;
}
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:first-child .uw3d2-card__metric b {
  font-size:max(14px,var(--uw-card-value-size,14px))!important;
}
.uw3d192-home .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__body,
.uw3d192-home .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__body{
  padding:13px 12px!important;
}
/* Crisp header dice: no random data or SVG resources loaded externally. */
.uw3d192-home #featured-scans .uw3d193-collection__header{gap:12px}
.uw3d192-home .uw3d195-dice {
  margin-left:auto;margin-right:auto;display:inline-flex;align-items:center;justify-content:center;
  gap:9px;flex:none;min-width:0;background:transparent;border:1px solid transparent;
  border-radius:7px;padding:4px 8px;color:#18e9f6;cursor:pointer;
  font:800 11px/1.2 Quantico,'Arial Narrow',system-ui,sans-serif;
  letter-spacing:.5px;text-transform:uppercase;
  transition:background .2s,border-color .2s,color .2s;
}
.uw3d192-home .uw3d195-dice__shape{height:37px;width:37px;flex:none;overflow:visible;transition:transform .32s ease,filter .3s ease;filter:drop-shadow(0 0 4px #00dded50)}
.uw3d192-home .uw3d195-dice__shape path{stroke:#00d6f2;stroke-width:1.5;stroke-linejoin:round}
.uw3d192-home .uw3d195-dice__top{fill:#09627a}
.uw3d192-home .uw3d195-dice__left{fill:#053448}
.uw3d192-home .uw3d195-dice__right{fill:#075267}
.uw3d192-home .uw3d195-dice__shape circle{fill:#ff730c;stroke:none}
.uw3d192-home .uw3d195-dice:hover,.uw3d192-home .uw3d195-dice:focus-visible{background:#032f3eab;border-color:#00bddd;color:#fff;outline-offset:2px}
.uw3d192-home .uw3d195-dice:hover .uw3d195-dice__shape,
.uw3d192-home .uw3d195-dice:focus-visible .uw3d195-dice__shape{transform:rotate(-14deg) translateY(-3px) scale(1.1);filter:drop-shadow(0 0 9px #00f1fec4)}
.uw3d192-home .uw3d195-dice:disabled{opacity:.7;cursor:progress}
.uw3d192-home .uw3d195-dice--rolling .uw3d195-dice__shape{animation:uw3d195-roll .72s cubic-bezier(.18,.7,.4,1)}
@keyframes uw3d195-roll{0%{transform:rotate(0) scale(1)}45%{transform:rotate(90deg) scale(1.2)}100%{transform:rotate(360deg) scale(1)}}
/* Flash-free initial random selection. Old WordPress fallback is not shown
   and then replaced; instead it is revealed only when AJAX fails. */
.uw3d195-js .uw3d192-home #featured-scans[data-uw3d194-remote="1"]:not([data-uw3d195-ready="1"]) .uw3d193-collection__grid{visibility:hidden!important}
.uw3d195-js .uw3d192-home #featured-scans[data-uw3d194-remote="1"]:not([data-uw3d195-ready="1"]) .uw3d193-collection__viewport::after{
  content:'LOADING SCANS…';display:block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  font:700 12px/1.4 Quantico,system-ui,sans-serif;letter-spacing:1.5px;color:#5bb8c4;
}
.uw3d192-home #featured-scans .uw3d193-collection__viewport{position:relative}
@media(max-width:1450px){
  .uw3d192-home .uw3d192-showcase.uw3d2-shell{grid-template-columns:1fr;max-width:940px!important}
}
@media(max-width:760px){
  .uw3d192-home .uw3d192-showcase .uw3d193-collection__grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:repeat(2,minmax(255px,auto))!important}
  .uw3d192-home .uw3d193-collection__grid>article:nth-child(2),.uw3d192-home .uw3d193-collection__grid>article:nth-child(3){grid-template-columns:minmax(0,42%) minmax(0,58%)!important}
  .uw3d192-home .uw3d195-dice__text{font-size:10px}
}
@media(max-width:640px){
  .uw3d192-home .uw3d192-showcase .uw3d193-collection__grid{grid-template-columns:1fr!important;grid-template-rows:auto!important}
  .uw3d192-home .uw3d193-collection__grid>article:nth-child(2),.uw3d192-home .uw3d193-collection__grid>article:nth-child(3){grid-column:1!important;grid-row:auto!important;grid-template-columns:minmax(0,41%) minmax(0,59%)!important;min-height:245px}
  .uw3d192-home #featured-scans .uw3d193-collection__header{flex-wrap:wrap}
  .uw3d192-home #featured-scans .uw3d195-dice{order:3;width:100%;margin:0;justify-content:center}
}
@media(prefers-reduced-motion:reduce){
  .uw3d192-home .uw3d195-dice__shape,.uw3d192-home .uw3d195-dice{transition:none!important;animation:none!important}
}
