/* Website examples: /services/website-examples and one page per example.
   Loaded only by those two templates. Colors come from the site tokens in
   template-ui.css so both themes follow without separate rules. */

.tts-public .wx-page { padding-bottom: 82px; }
.tts-public .wx-group { padding: 54px 0 0; }
.tts-public .wx-cta { margin-top: 72px; }

/* This site, first: the demonstration video beside a short description. */
.tts-public .wx-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}
.tts-public .wx-featured__video video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--tts-line);
  border-radius: var(--tts-radius-lg);
  background: #000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}
.tts-public .wx-featured__copy h2 { margin: 10px 0 12px; }
.tts-public .wx-featured__copy p { margin: 0 0 18px; color: var(--tts-muted); font-size: 17px; line-height: 1.65; }

.tts-public .wx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.tts-public .wx-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
}
.tts-public .wx-card__shot { display: block; background: var(--tts-surface-2); }
.tts-public .wx-card__shot img { display: block; width: 100%; height: auto; }
.tts-public .wx-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px 26px 28px; }
.tts-public .wx-card__title { margin: 10px 0 8px; }
.tts-public .wx-card__sub { margin: 0 0 14px; color: var(--tts-muted); }
.tts-public .wx-card__views {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.tts-public .wx-card__views li {
  padding: 4px 9px;
  border: 1px solid var(--tts-line);
  border-radius: 999px;
  color: var(--tts-subtle);
  font-size: 12px;
}
.tts-public .wx-card__link { margin-top: auto; }

/* Browser-window dressing around every preview. */
.tts-public .wx-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 9px 12px;
  background: var(--tts-surface-2);
  border-bottom: 1px solid var(--tts-line);
}
.tts-public .wx-chrome i {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tts-subtle);
  opacity: 0.55;
}
.tts-public .wx-chrome--bar { padding: 11px 14px; }
.tts-public .wx-chrome--bar span {
  margin-left: 10px;
  overflow: hidden;
  color: var(--tts-muted);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tts-public .wx-head {
  width: min(calc(100% - 48px), 920px);
  margin: 0 auto;
  padding: 40px 0 24px;
  text-align: center;
}
.tts-public .wx-head h1 { margin: 12px 0 14px; font-size: clamp(32px, 3.6vw, 44px); }
.tts-public .wx-head__lead { max-width: 68ch; margin: 0 auto; color: var(--tts-muted); font-size: 17px; line-height: 1.65; }
.tts-public .wx-note { max-width: 68ch; margin: 12px auto 0; color: var(--tts-subtle); font-size: 15px; }
.tts-public .wx-crumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--tts-subtle);
  font-size: 14px;
}
.tts-public .wx-crumbs a { display: inline-block; padding: 6px 2px; color: var(--tts-cyan-bright); }

/* The viewer: view buttons, the web or mobile switch, then one view. */
.tts-public .wx-app { width: min(calc(100% - 48px), var(--tts-max)); margin: 0 auto; }
.tts-public .wx-bar { display: none; }
.tts-public .wx-app--ready .wx-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.tts-public .wx-tabs,
.tts-public .wx-devices { display: flex; flex-wrap: wrap; gap: 8px; }
.tts-public .wx-devices[hidden] { display: none; }
.tts-public .wx-tab {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--tts-line);
  border-radius: 999px;
  background: transparent;
  color: var(--tts-text);
  font: 600 14px/1.2 var(--font-family, inherit);
  white-space: nowrap;
  cursor: pointer;
}
.tts-public .wx-tab:hover { border-color: var(--tts-cyan-bright); }
.tts-public .wx-tab[aria-pressed='true'] {
  border-color: var(--tts-cyan);
  background: var(--tts-cyan);
  color: #04121d;
}
[data-theme='light'] .tts-public .wx-tab[aria-pressed='true'] { color: #fff; }
.tts-public .wx-tab:focus-visible { outline: 3px solid var(--tts-cyan-bright); outline-offset: 2px; }

.tts-public .wx-viewer { margin: 0 0 34px; }
.tts-public .wx-viewer[hidden] { display: none; }
.tts-public .wx-viewer__head { margin-bottom: 14px; }
.tts-public .wx-viewer__head h2 { margin: 0 0 6px; font-size: 22px; }
.tts-public .wx-viewer__head p { max-width: 76ch; margin: 0; color: var(--tts-muted); }
.tts-public .wx-frame {
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--tts-line);
  border-radius: var(--tts-radius-lg);
  background: var(--tts-surface);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}
.tts-public .wx-frame__scroll {
  max-height: 80vh;
  max-height: min(80svh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}
.tts-public .wx-frame__scroll:focus-visible { outline: 3px solid var(--tts-cyan-bright); outline-offset: -3px; }
.tts-public .wx-frame img { width: 100%; height: auto; vertical-align: top; }
.tts-public .wx-video { width: 100%; height: auto; max-height: 80vh; vertical-align: top; background: #000; }

/* Web or mobile. Before the script runs, the screen width decides. These are
   the only rules that set display on the two versions of a picture or video. */
.tts-public .wx-app .wx-dev--desktop { display: inline-block; }
.tts-public .wx-app .wx-dev--phone { display: none; }
@media (max-width: 640px) {
  .tts-public .wx-app:not([data-device]) .wx-dev--desktop { display: none; }
  .tts-public .wx-app:not([data-device]) .wx-dev--phone { display: inline-block; }
}
.tts-public .wx-app[data-device='phone'] .wx-dev--desktop { display: none; }
.tts-public .wx-app[data-device='phone'] .wx-dev--phone { display: inline-block; }
.tts-public .wx-app[data-device='phone'] .wx-viewer--page .wx-frame,
.tts-public .wx-app[data-device='phone'] .wx-frame--video:not(.wx-frame--one-device) { max-width: 392px; }
/* A video made in one shape only stays visible on either setting. */
.tts-public .wx-app[data-device] .wx-frame--one-device .wx-dev--desktop,
.tts-public .wx-app:not([data-device]) .wx-frame--one-device .wx-dev--desktop { display: inline-block; }

.tts-public .wx-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.tts-public .wx-more { padding: 44px 0 0; }
.tts-public .wx-more__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tts-public .wx-more__item {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--tts-line);
  border-radius: var(--tts-radius-md);
  background: var(--tts-surface);
  color: var(--tts-text);
  text-decoration: none;
}
.tts-public .wx-more__item:hover { border-color: var(--tts-cyan-bright); }
.tts-public .wx-more__item img { display: block; width: 100%; height: auto; }
.tts-public .wx-more__label,
.tts-public .wx-more__name { display: block; padding: 0 14px; }
.tts-public .wx-more__label { padding-top: 12px; color: var(--tts-subtle); font-size: 12px; }
.tts-public .wx-more__name { padding-bottom: 14px; font-weight: 600; }

@media (max-width: 1120px) {
  .tts-public .wx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tts-public .wx-more__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tts-public .wx-featured,
  .tts-public .wx-grid,
  .tts-public .wx-compare { grid-template-columns: minmax(0, 1fr); }
  .tts-public .wx-more__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tts-public .wx-head,
  .tts-public .wx-app { width: min(calc(100% - 28px), var(--tts-max)); }
  .tts-public .wx-head { padding-top: 26px; }
  .tts-public .wx-frame__scroll { max-height: 76vh; max-height: 76svh; }
}
