/* Templates: traced from the reference site/templates at 1440 (page 5,209 px).
   h1 56/56 at y135 (640 wide), line 16/22.4 #666 at 279, search 660x60 at 356 (8px corners, soft shadow),
   results bar at 477, filter column x40 w155 from 591, grid x273 w1127 (tiles 349x218, 1px #e7e7e7, 8px corners,
   40 gaps), banner 1127x376 after the first row, "something different" line 22/500, black FAQ (680 + 680). */
.pg-templates { font-family: var(--font); --tp-ink: rgb(14, 14, 14); --tp-grey: rgb(102, 102, 102); --tp-line: rgb(231, 231, 231); --tp-tile: rgb(249, 249, 249); }
.pg-templates .tp-top { padding: 55px 40px 55px; background: #fff; color: var(--tp-ink); }
.pg-templates h1 { max-width: 640px; margin: 0 auto; text-align: center; font: 400 56px/56px var(--font); letter-spacing: -2.24px; }
.pg-templates .tp-lead { max-width: 500px; margin: 32px auto 0; text-align: center; color: var(--tp-grey); font: 400 16px/22.4px var(--font); }
.pg-templates .tp-search { position: relative; display: flex; align-items: center; width: 660px; max-width: 100%; height: 60px; margin: 32px auto 0; padding: 0 20px 0 54px;
  border-radius: 8px; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .12), 0 0 1px rgba(0, 0, 0, .1); }
.pg-templates .tp-search svg { position: absolute; left: 22px; top: 22px; width: 16px; height: 16px; color: #000; }
.pg-templates .tp-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--tp-ink); font: 500 15px/15px var(--font); }
.pg-templates .tp-search input::placeholder { color: var(--tp-grey); }
.pg-templates .tp-search:focus-within { box-shadow: 0 6px 24px rgba(0, 0, 0, .12), 0 0 0 2px #000; }
.pg-templates .tp-results { display: flex; align-items: center; justify-content: space-between; height: 36px; margin-top: 61px; font: 500 13px/16px var(--font); }
.pg-templates .tp-results b { font-weight: 500; }
.pg-templates .tp-try { display: inline-flex; align-items: center; height: 36px; padding: 0 11px; border: 1px solid var(--tp-line); color: var(--tp-ink); text-decoration: none;
  font: 500 12px/22px var(--font); letter-spacing: .5px; text-transform: uppercase; }
.pg-templates .tp-try:hover { border-color: var(--tp-ink); }
.pg-templates .tp-bar { display: none; }

/* Filter column + grid */
.pg-templates .tp-body { display: grid; grid-template-columns: 155px 1127px; justify-content: space-between; margin-top: 78px; }
.pg-templates .tp-filters { position: sticky; top: 100px; align-self: start; }
.pg-templates .tp-skip { position: absolute; left: -9999px; }
.pg-templates .tp-skip:focus { position: static; display: inline-block; margin-bottom: 8px; font: 500 15px/31px var(--font); }
.pg-templates .tp-filters .lab { font: 500 13px/16px var(--font); color: var(--tp-ink); }
.pg-templates .tp-filters ul { list-style: none; margin: 16px 0 36px; padding: 0; display: grid; gap: 3px; }
.pg-templates .tp-filters button { display: block; width: 100%; padding: 0; border: 0; background: none; color: var(--tp-grey); text-align: left; cursor: pointer;
  font: 500 14px/24px var(--font); }
.pg-templates .tp-filters button:hover { color: #000; }
.pg-templates .tp-filters button[aria-pressed="true"] { color: #000; text-decoration: underline; text-underline-offset: 4px; }
.pg-templates .tp-grid h2 { font: 500 22px/22px var(--font); color: var(--tp-ink); }
.pg-templates .tp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 22px; }
.pg-templates .tp-tile { position: relative; margin: 0; aspect-ratio: 349 / 218; border: 1px solid var(--tp-line); border-radius: 8px; overflow: hidden; background: var(--tp-tile); }
.pg-templates .tp-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.pg-templates .tp-tile:hover img { transform: scale(1.03); }
.pg-templates .tp-name { position: absolute; left: 12px; bottom: 13px; display: inline-flex; align-items: center; height: 33px; padding: 0 12px; border-radius: 16px;
  background: rgba(0, 0, 0, .55); color: #fff; font: 500 12px/16.8px var(--font); opacity: 0; transition: opacity .2s; }
.pg-templates .tp-acts { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s; }
.pg-templates .tp-tile:hover .tp-acts, .pg-templates .tp-tile:focus-within .tp-acts,
.pg-templates .tp-tile:hover .tp-name, .pg-templates .tp-tile:focus-within .tp-name { opacity: 1; }
.pg-templates .tp-start { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 4px; background: #fff; color: #000; text-decoration: none;
  font: 500 12px/22px var(--font); letter-spacing: .5px; text-transform: uppercase; }
.pg-templates .tp-prev { color: #fff; font: 500 13px/20px var(--font); text-underline-offset: 3px; }
.pg-templates .tp-prev .hp { position: absolute; left: -9999px; }

/* Banner after the first row */
.pg-templates .tp-banner { position: relative; grid-column: 1 / -1; height: 376px; border-radius: 8px; overflow: hidden; background: #1b1714; color: #fff; }
.pg-templates .tp-banner .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.pg-templates .tp-banner .txt { position: relative; z-index: 1; padding: 44px 0 0 44px; }
.pg-templates .tp-banner .h { max-width: 350px; font: 400 26px/26px var(--font); letter-spacing: -.52px; }
.pg-templates .tp-banner .d { max-width: 390px; margin-top: 11px; font: 400 16px/22.4px var(--font); letter-spacing: -.016px; }
.pg-templates .tp-build { position: absolute; z-index: 1; left: 44px; bottom: 45px; display: inline-flex; align-items: center; height: 55px; padding: 0 22px;
  background: #fff; color: var(--tp-ink); text-decoration: none; font: 500 12px/22px var(--font); letter-spacing: .5px; text-transform: uppercase; }
.pg-templates .tp-banner .shot { position: absolute; z-index: 1; overflow: hidden; border-radius: 6px; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
.pg-templates .tp-banner .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pg-templates .tp-banner .shot.a { left: 648px; top: 44px; width: 394px; height: 246px; }
.pg-templates .tp-banner .shot.b { left: 599px; top: 168px; width: 170px; height: 106px; border: 2px solid #fff; }

.pg-templates .tp-none { margin-top: 40px; font: 400 16px/22px var(--font); color: var(--tp-grey); }
.pg-templates .tp-none button { border: 0; background: none; padding: 0; font: inherit; color: #000; text-decoration: underline; cursor: pointer; }
.pg-templates .tp-more { margin-top: 40px; color: var(--tp-grey); font: 500 22px/26.4px var(--font); }
.pg-templates .tp-more a { color: var(--tp-grey); text-underline-offset: 4px; }
.pg-templates .tp-more a:hover { color: #000; }

/* FAQ */
.pg-templates .tp-faq { display: grid; grid-template-columns: 1fr 1fr; padding: 120px 40px 88px; background: #000; color: #fff; }
.pg-templates .tp-faq h2 { font: 400 40px/40px var(--font); letter-spacing: -1.6px; }
.pg-templates .tp-qs details { border-top: 1px solid rgba(255, 255, 255, .3); }
.pg-templates .tp-qs summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 32px 0 31px; cursor: pointer; }
.pg-templates .tp-qs summary::-webkit-details-marker { display: none; }
.pg-templates .tp-qs .q { max-width: 624px; font: 500 20px/24px var(--font); letter-spacing: -.2px; }
.pg-templates .tp-qs .pl { position: relative; flex: none; width: 14px; height: 14px; }
.pg-templates .tp-qs .pl::before, .pg-templates .tp-qs .pl::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1.5px; background: currentColor; transition: transform .2s; }
.pg-templates .tp-qs .pl::after { transform: rotate(90deg); }
.pg-templates .tp-qs details[open] .pl::after { transform: rotate(0); }
.pg-templates .tp-qs details p { padding: 0 56px 28px 0; color: #c8c8c8; font: 400 15px/21px var(--font); }

@media (hover: none) {
  .pg-templates .tp-name { opacity: 1; }
  .pg-templates .tp-acts { inset: auto 12px 13px auto; flex-direction: row; background: none; opacity: 1; gap: 8px; }
  .pg-templates .tp-start { height: 33px; padding: 0 12px; border-radius: 16px; font-size: 11px; }
  .pg-templates .tp-prev { display: inline-flex; align-items: center; height: 33px; padding: 0 12px; border-radius: 16px; background: rgba(0, 0, 0, .55); text-decoration: none; font-size: 12px; }
}
@media (max-width: 1240px) {
  .pg-templates .tp-body { grid-template-columns: 155px minmax(0, 1fr); column-gap: 40px; }
  .pg-templates .tp-banner .shot { display: none; }
}
@media (max-width: 767px) {
  .pg-templates .tp-top { padding: 36px 16px 48px; }
  .pg-templates h1 { text-align: left; font-size: 40px; line-height: 42px; letter-spacing: -1.6px; }
  .pg-templates .tp-lead { margin: 16px 0 0; text-align: left; }
  .pg-templates .tp-search, .pg-templates .tp-results { display: none; }
  .pg-templates .tp-bar { display: grid; grid-template-columns: 1fr 1fr; margin: 40px -16px 0; border-bottom: 1px solid var(--tp-line); }
  .pg-templates .tp-bar > * { display: flex; align-items: center; justify-content: center; height: 56px; border: 0; background: none; color: #000; text-decoration: none;
    font: 500 12px/1 var(--font); letter-spacing: .5px; text-transform: uppercase; cursor: pointer; }
  .pg-templates .tp-bar > :first-child { border-right: 1px solid var(--tp-line); }
  .pg-templates .tp-body { display: block; margin-top: 32px; }
  .pg-templates .tp-filters { position: static; display: none; margin-bottom: 32px; }
  .pg-templates .tp-filters.open { display: block; }
  .pg-templates .tp-filters ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
  .pg-templates .tp-filters button { width: auto; padding: 4px 12px; border: 1px solid var(--tp-line); border-radius: 16px; }
  .pg-templates .tp-grid h2 { font-size: 18px; line-height: 22px; }
  .pg-templates .tp-name { opacity: 1; }
  .pg-templates .tp-tiles { grid-template-columns: 1fr; gap: 16px; }
  .pg-templates .tp-tile { aspect-ratio: auto; height: 213px; }
  .pg-templates .tp-banner { height: auto; padding-bottom: 100px; }
  .pg-templates .tp-banner .txt { padding: 28px 24px 0; }
  .pg-templates .tp-build { left: 24px; bottom: 28px; }
  .pg-templates .tp-more { font-size: 18px; line-height: 23px; }
  .pg-templates .tp-faq { grid-template-columns: 1fr; gap: 40px; padding: 80px 24px 88px; }
  .pg-templates .tp-faq h2 { font-size: 30px; line-height: 33px; }
}
@media (prefers-reduced-motion: reduce) { .pg-templates * { transition: none !important; } .pg-templates .tp-tile:hover img { transform: none; } }

/* Dark: the white page turns black with white text; the FAQ is already black */
:root[data-theme="dark"] .pg-templates { --tp-ink: #fff; --tp-grey: #a4a4a4; --tp-line: #2b2b2b; --tp-tile: #161616; }
:root[data-theme="dark"] .pg-templates .tp-top { background: #000; }
:root[data-theme="dark"] .pg-templates .tp-search { background: #161616; box-shadow: 0 0 0 1px #2b2b2b; }
:root[data-theme="dark"] .pg-templates .tp-search svg, :root[data-theme="dark"] .pg-templates .tp-filters button:hover,
:root[data-theme="dark"] .pg-templates .tp-filters button[aria-pressed="true"], :root[data-theme="dark"] .pg-templates .tp-bar > *,
:root[data-theme="dark"] .pg-templates .tp-none button, :root[data-theme="dark"] .pg-templates .tp-more a:hover { color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pg-templates { --tp-ink: #fff; --tp-grey: #a4a4a4; --tp-line: #2b2b2b; --tp-tile: #161616; }
  :root:not([data-theme="light"]) .pg-templates .tp-top { background: #000; }
  :root:not([data-theme="light"]) .pg-templates .tp-search { background: #161616; box-shadow: 0 0 0 1px #2b2b2b; }
  :root:not([data-theme="light"]) .pg-templates .tp-search svg, :root:not([data-theme="light"]) .pg-templates .tp-filters button:hover,
  :root:not([data-theme="light"]) .pg-templates .tp-filters button[aria-pressed="true"], :root:not([data-theme="light"]) .pg-templates .tp-bar > *,
  :root:not([data-theme="light"]) .pg-templates .tp-none button, :root:not([data-theme="light"]) .pg-templates .tp-more a:hover { color: #fff; }
}
