/* Template gallery and viewer (WRG-154), from the canvas board "Wix-style templates". */
.ttl {
  text-align: center;
  padding: 52px 0 18px;
}
.ttl h1 {
  margin: 0;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
  margin: 28px auto 0;
  border-bottom: 1px solid #111;
  padding: 8px 4px;
}
.search svg {
  width: 16px;
  height: 16px;
  flex: none;
}
/* The input draws no outline of its own, so the search bar shows where focus is (WRG-166). */
.search:focus-within {
  outline: 2px solid #111;
  outline-offset: 6px;
  border-radius: 2px;
}
.search input {
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 16px;
  width: 100%;
  background: transparent;
  min-height: 32px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0 16px;
  flex-wrap: wrap;
}
.dd {
  position: relative;
}
.dd summary {
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}
.dd summary::-webkit-details-marker {
  display: none;
}
.dd summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 4px;
}
.ddp {
  position: absolute;
  top: 44px;
  left: 0;
  z-index: 10;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
  padding: 14px;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ddp label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}
.ddp label:hover {
  background: var(--soft);
}
.ddp input {
  width: 18px;
  height: 18px;
}
.ddp small {
  margin-left: auto;
  color: #767676;
}
.ddp .pill {
  margin-top: 8px;
  padding: 9px 16px;
  min-height: 40px;
  font-size: 14px;
}
.rlinks {
  margin-left: auto;
  display: flex;
  align-items: center;
  font-size: 16px;
  flex-wrap: wrap;
}
.rlinks a {
  padding: 6px 20px;
  border-left: 1px solid #ddd;
  text-decoration: none;
}
.rlinks a:first-child {
  border-left: 0;
}
.rlinks a[aria-current='page'] {
  color: #2f4bd1;
}
.band {
  background: var(--soft);
  padding: 34px 0 80px;
}
.band h2 {
  margin: 0 0 26px;
  font-weight: 500;
  font-size: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 48px;
}
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 28px;
  }
}
@media (max-width: 640px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.card .dots {
  display: flex;
  gap: 4px;
  margin: 0 0 6px 6px;
}
.card .dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a99cf0;
}
.thumb {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.ovl {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.84);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.15s;
}
.thumb:hover .ovl,
.thumb:focus-within .ovl {
  opacity: 1;
}
@media (hover: none) {
  .ovl {
    position: static;
    opacity: 1;
    background: none;
    flex-direction: row;
    padding: 12px 0 0;
    justify-content: flex-start;
  }
}
.ovl .pill {
  width: 130px;
  padding: 10px 0;
  font-size: 15px;
}
.info {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 6;
}
.info summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  padding: 4px 8px;
}
.info summary::-webkit-details-marker {
  display: none;
}
.info div {
  position: absolute;
  right: 0;
  bottom: 34px;
  width: 280px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.info b {
  display: block;
  font-size: 13px;
  margin-top: 6px;
}
.cmeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 12px;
}
.cmeta a {
  font-size: 17px;
  text-decoration: none;
}
.badge {
  font-size: 12.5px;
  font-weight: 700;
  background: #e6f7a8;
  border-radius: 4px;
  padding: 6px 9px;
  white-space: nowrap;
}
.none {
  font-size: 16px;
}
.intro {
  max-width: 880px;
  margin: 64px auto 0;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}
.intro h3 {
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 10px;
  color: #111;
}

/* viewer */
.vbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 24px;
  flex-wrap: wrap;
}
.vbar .logo i {
  width: 28px;
  height: 28px;
}
.dev {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
}
.dev button {
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #767676;
}
.dev button[aria-pressed='true'] {
  color: #111;
  background: var(--soft);
}
.dev svg {
  width: 20px;
  height: 20px;
}
.vform {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.seg {
  display: flex;
  background: var(--soft);
  border-radius: 999px;
  padding: 4px;
  border: 0;
  margin: 0;
}
.seg legend {
  position: absolute;
  left: -9999px;
}
.seg label {
  position: relative;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 14px;
}
.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.seg label:has(input:checked) {
  background: #111;
  color: #fff;
}
.seg label:has(input:focus-visible) {
  outline: 2px solid #111;
  outline-offset: 2px;
}
.vback {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 15px;
}
.stage {
  background: #e9e9e9;
  min-height: 900px;
  padding-bottom: 60px;
}
/* The viewer's h1 (WRG-166): the house and who it is good for, set as the small line it was. */
.vname {
  margin: 0;
  padding: 18px 24px 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #555;
}
.desk .site {
  max-width: 1440px;
  margin: 18px auto 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}
.site {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--bf);
}
.hwrap {
  position: relative;
}
.hwrap .ms {
  aspect-ratio: auto;
  height: min(760px, 70vw);
}
.achip {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 6px;
  background: rgba(17, 17, 17, 0.8);
  border-radius: 999px;
  padding: 6px;
  color: #fff;
  font-size: 13px;
  font-family: var(--sans);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 92%;
}
.achip span {
  padding: 7px 12px;
  border-radius: 999px;
  opacity: 0.8;
}
.achip span:first-child {
  background: #fff;
  color: #111;
  opacity: 1;
}
.achip[hidden] {
  display: none;
}
.svc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 70px 6%;
}
@media (max-width: 760px) {
  .svc {
    grid-template-columns: minmax(0, 1fr);
  }
}
.svc div {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 26px;
  background: #fff;
  color: #111;
}
.svc h3 {
  margin: 0 0 8px;
  font-family: var(--hf);
  font-weight: var(--hw);
  font-size: 24px;
}
.svc p {
  margin: 0;
  font-size: 15px;
  color: #555;
  line-height: 1.5;
}
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 50px;
  padding: 20px 6% 80px;
}
@media (max-width: 760px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
  }
}
.about .im {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
}
.about h3 {
  margin: 0 0 14px;
  font-family: var(--hf);
  font-weight: var(--hw);
  font-size: 40px;
  line-height: 1.05;
}
.about p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.85;
}
.about em,
.scta em {
  font-style: normal;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
  background: var(--acc);
  color: var(--accInk);
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
}
.scta {
  background: color-mix(in srgb, var(--ink) 92%, #fff);
  color: #fff;
  text-align: center;
  padding: 70px 6%;
}
.scta h3 {
  margin: 0 0 20px;
  font-family: var(--hf);
  font-weight: var(--hw);
  font-size: 38px;
}
.phonev {
  width: 390px;
  max-width: 92vw;
  margin: 40px auto;
  background: #0b0f13;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}
.phonev .mp {
  height: 780px;
  border-radius: 36px;
}
.phonev[hidden],
.desk[hidden] {
  display: none;
}

/* Tap targets (WRG-185): every control here was 18 to 41px tall. The checkbox's target is its whole
   label row, and each animation radio fills its pill. */
.search input,
.dd summary,
.ddp .pill,
.ddp label,
.vbar .logo {
  min-height: 44px;
}
.rlinks a,
.cmeta a,
.vback,
.info summary,
.seg label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.info summary {
  padding: 0 12px;
}
.dev button {
  width: 44px;
  height: 44px;
}
.vbar .logo {
  min-width: 44px;
}

/* The unlisted motion preview (WRG-259): a row of every house and every way it can move, and the
   chosen one playing in the stage. Only /templates/<house>?preview=<key> renders any of this. */
.pbar {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  padding: 10px 24px;
  background: #111;
  color: #fff;
}
.ptag {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2a60a;
}
.pgroup {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  border-radius: 24px;
  background: #2a2926;
}
.pgroup a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: #e9e6df;
  font-size: 14px;
  text-decoration: none;
}
.pgroup a:hover {
  background: #3c3a35;
}
.pgroup a[aria-current] {
  background: #fff;
  color: #111;
}
.pgroup a:focus-visible {
  outline: 2px solid #f2a60a;
  outline-offset: 2px;
}
.pdesk {
  max-width: 1440px;
  margin: 18px auto 0;
  padding: 0 24px;
}
.pdesk iframe {
  display: block;
  width: 100%;
  height: calc(100vh - 150px);
  min-height: 640px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.pphone iframe {
  display: block;
  width: 100%;
  height: 780px;
  border: 0;
  border-radius: 36px;
  background: #fff;
}
.pdesk[hidden] {
  display: none;
}
@media (max-width: 760px) {
  .pbar {
    padding: 10px 12px;
  }
  .pdesk {
    padding: 0 8px;
  }
}
