/* Templates marketplace. Scoped to keep the existing products intact. */
.tf-marketplace {
  --tf-ink: #192b29;
  --tf-muted: #6c7875;
  --tf-line: #dde4df;
  --tf-paper: #f7f8f4;
  --tf-accent: #087b67;
  color: var(--tf-ink);
  background: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
}
.tf-marketplace * {
  box-sizing: border-box;
}
.tf-marketplace a {
  color: inherit;
}
.tf-marketplace h1,
.tf-marketplace h2,
.tf-marketplace h3 {
  color: var(--tf-ink);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: -0.045em;
}
.tf-marketplace p {
  color: var(--tf-muted);
  line-height: 1.8;
}
.tf-marketplace .container {
  max-width: 1320px;
  padding-inline: 28px;
}
.tf-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 166px;
  padding-bottom: 76px;
}
.tf-kicker {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: var(--tf-accent);
  text-transform: uppercase;
}
.tf-hero .tf-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
}
.tf-hero .tf-kicker > span {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--tf-accent);
  box-shadow: 0 0 0 5px #e3f4ed;
}
.tf-hero h1 {
  font-size: clamp(40px, 4.5vw, 66px);
  font-weight: 650;
  line-height: 1.08;
  margin: 25px 0 22px;
  letter-spacing: -0.065em;
}
.tf-hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.055em;
  color: #087b67;
}
.tf-hero p {
  max-width: 480px;
  font-size: 16px;
}
.tf-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 30px;
}
.tf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font:
    600 12px Inter,
    Arial,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s,
    background 0.18s;
  white-space: normal;
  text-align: center;
}
.tf-btn:hover {
  transform: translateY(-2px);
}
.tf-btn-dark,
.tf-marketplace .tf-btn-dark {
  background: #173b32;
  color: #fff;
}
.tf-btn-dark:hover {
  background: #096c58;
  color: #fff;
}
.tf-btn-outline {
  border-color: var(--tf-line, #d9e2dc);
  background: #fff;
  color: #1b3530;
}
.tf-text-link {
  font-weight: 650;
  font-size: 12px;
}
.tf-text-link i {
  margin-left: 10px;
}
.tf-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 34px;
  font-size: 10px;
  color: #74807a;
}
.tf-proof span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.tf-proof i {
  color: #25806b;
}
.tf-hero-art {
  position: relative;
  padding: 30px 0 30px 25px;
  background: radial-gradient(ellipse, #e3e9df, transparent 72%);
  min-width: 0;
}
.tf-hero-window {
  display: block;
  overflow: hidden;
  border: 1px solid #e0e6dc;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 75px #243e2b21;
  transform: rotate(-2deg);
  transition: transform 0.3s;
}
.tf-hero-window:hover {
  transform: rotate(0);
}
.tf-window-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  color: #8b9690;
  font-size: 9px;
  background: #fcfdfb;
  border-bottom: 1px solid #e9ede7;
}
.tf-window-bar > span {
  letter-spacing: 2px;
  color: #bdc8bd;
}
.tf-window-bar small {
  font-size: 8px;
  letter-spacing: 0.1em;
}
.tf-hero-window > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.44;
  object-fit: cover;
  object-position: top;
}
.tf-art-caption {
  display: grid;
  gap: 5px;
  padding: 18px 22px;
  background: #173b32;
  color: #c1d5ca;
}
.tf-art-caption span {
  font-size: 9px;
  letter-spacing: 0.04em;
}
.tf-art-caption strong {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.03em;
}
.tf-launch-card {
  padding: 50px;
  background: #eff3eb;
  border: 1px solid var(--tf-line);
  border-radius: 20px;
}
.tf-launch-card > i {
  display: block;
  font-size: 40px;
  margin-bottom: 35px;
}
.tf-launch-card > span {
  font-size: 9px;
  letter-spacing: 0.1em;
}
.tf-launch-card h2 {
  font-size: 34px;
  margin-top: 15px;
}
.tf-value-strip {
  padding: 25px 0;
  border-block: 1px solid var(--tf-line);
  background: var(--tf-paper);
}
.tf-value-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.tf-value-strip span:first-child {
  font-size: 9px;
  letter-spacing: 0.12em;
  font-weight: 750;
}
.tf-value-strip strong {
  font-size: 15px;
  letter-spacing: -0.025em;
}
.tf-value-strip span:last-child {
  max-width: 260px;
  font-size: 11px;
  color: var(--tf-muted);
  line-height: 1.7;
}
.tf-collection {
  padding-top: 68px;
  padding-bottom: 80px;
  scroll-margin-top: 110px;
}
.tf-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}
.tf-section-head h2 {
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 600;
  margin: 12px 0 0;
}
.tf-section-head > p {
  font-size: 12px;
  margin: 0;
}
.tf-catalog-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 34px;
}
.tf-filters {
  min-width: 0;
}
.tf-advanced-filters > summary {
  display: none;
}
.tf-filter-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 11px;
}
.tf-filter-heading a {
  font-size: 10px;
  color: var(--tf-muted);
}
.tf-filters label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin: 17px 0 7px;
}
.tf-filters input,
.tf-filters select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--tf-line);
  border-radius: 6px;
  background: #fff;
  padding: 9px;
  color: var(--tf-ink);
  font:
    11px Inter,
    Arial,
    sans-serif;
}
.tf-search {
  position: relative;
}
.tf-search input {
  padding-left: 31px;
}
.tf-search i {
  position: absolute;
  left: 11px;
  top: 12px;
  color: var(--tf-muted);
  font-size: 12px;
}
.tf-filters .tf-btn {
  width: 100%;
  margin-top: 20px;
}
.tf-filter-note {
  margin-top: 25px;
  padding: 21px 17px;
  border: 1px solid var(--tf-line);
  background: #f8faf6;
  border-radius: 8px;
}
.tf-filter-note > i {
  display: block;
  color: #087b67;
  font-size: 23px;
  margin-bottom: 12px;
}
.tf-filter-note strong {
  font-size: 12px;
}
.tf-filter-note p {
  font-size: 11px;
  margin: 7px 0 0;
}
.tf-results {
  min-width: 0;
}
.tf-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tf-line);
}
.tf-type-links {
  display: flex;
  gap: 6px;
}
.tf-type-links > a {
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 650;
  color: #7d8883;
  border-radius: 5px;
  white-space: nowrap;
}
.tf-type-links > a.active {
  color: #173b32;
  background: #eaf2ed;
}
.tf-type-links span {
  padding-left: 5px;
  font-size: 9px;
  opacity: 0.55;
}
.tf-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--tf-muted);
}
.tf-sort select {
  background: none;
  border: none;
  padding: 6px;
  color: var(--tf-ink);
  font-size: 11px;
  max-width: 135px;
}
.tf-result-count {
  margin: 17px 0;
  font-size: 10px;
}
.tf-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 22px;
}
.tf-card {
  min-width: 0;
  border: 1px solid var(--tf-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}
.tf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px #173b3210;
}
.tf-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e9eee7;
  aspect-ratio: 1.5;
}
.tf-card-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.tf-card:hover img {
  transform: scale(1.025);
}
.tf-type,
.tf-free {
  position: absolute;
  top: 12px;
  padding: 6px 9px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 750;
  background: #fffffff0;
  box-shadow: 0 3px 9px #00000008;
}
.tf-type {
  left: 12px;
}
.tf-free {
  right: 12px;
  color: #14654c;
}
.tf-card-body {
  padding: 20px;
}
.tf-card-eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #78847d;
  font-size: 9px;
}
.tf-card-eyebrow > span {
  color: #9ca49f;
}
.tf-card h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 23px;
  font-weight: 600;
  margin: 10px 0;
}
.tf-card h3 > i {
  font-size: 14px;
  color: #74847a;
}
.tf-card-body > p {
  font-size: 11px;
  margin-bottom: 15px;
  min-height: 38px;
}
.tf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tf-tags > span,
.tf-tags > a {
  padding: 5px 7px;
  border: 1px solid #e5eae4;
  border-radius: 4px;
  color: #69776e;
  font-size: 9px;
  font-weight: 500;
}
.tf-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #ebeee8;
  font-size: 10px;
  color: #8b958f;
}
.tf-card footer > a {
  font-weight: 650;
  color: #245847;
}
.tf-empty {
  padding: 65px 25px;
  text-align: center;
  border: 1px dashed var(--tf-line);
  border-radius: 12px;
}
.tf-empty > i {
  font-size: 32px;
  display: block;
  margin-bottom: 20px;
}
.tf-empty h3 {
  font-size: 25px;
}
.tf-empty p {
  font-size: 12px;
}
.tf-how {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 40px;
  padding-top: 55px;
  padding-bottom: 90px;
  border-top: 1px solid var(--tf-line);
}
.tf-how h2 {
  font-size: 32px;
  line-height: 1.2;
  margin-top: 15px;
}
.tf-how article > span {
  color: #729183;
  font-family: Georgia, serif;
  font-size: 24px;
}
.tf-how article > h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 15px 0 12px;
}
.tf-how article p {
  font-size: 12px;
}
.tf-detail-hero {
  padding-top: 135px;
  padding-bottom: 50px;
}
.tf-back {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #708276 !important;
  font-size: 11px;
  margin-bottom: 34px;
}
.tf-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}
.tf-detail-heading h1 {
  font-size: clamp(35px, 4vw, 56px);
  font-weight: 600;
  margin: 15px 0 18px;
}
.tf-free-inline {
  vertical-align: middle;
  font-size: 9px;
  letter-spacing: 0.05em;
  background: #e7f3eb;
  color: #1a684e;
  padding: 6px 9px;
  border: 1px solid #cce3d6;
  border-radius: 4px;
  margin-left: 15px;
}
.tf-detail-heading p {
  max-width: 650px;
  font-size: 15px;
}
.tf-detail-actions {
  display: grid;
  gap: 9px;
  min-width: 240px;
}
.tf-detail-actions .tf-btn {
  width: 100%;
}
.tf-detail-actions > small {
  font-size: 9px;
  color: var(--tf-muted);
  text-align: center;
}
.tf-detail-actions > small > a {
  text-decoration: underline;
}
.tf-detail-cover {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 36px;
  border: 1px solid var(--tf-line);
  background: #f2f4ef;
}
.tf-detail-cover > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.5;
  object-fit: cover;
}
.tf-detail-cover > span {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  background: #fff;
  border: 1px solid #dce3da;
  border-radius: 8px;
  box-shadow: 0 8px 25px #0000000d;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.tf-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 70px;
  align-items: start;
  padding-bottom: 60px;
}
.tf-content-block {
  padding-block: 35px;
  border-bottom: 1px solid var(--tf-line);
}
.tf-content-block h2 {
  font-size: 31px;
  font-weight: 600;
  margin: 12px 0 20px;
}
.tf-content-block p {
  font-size: 13px;
}
.tf-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 25px 0;
}
.tf-feature-grid > span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.tf-feature-grid i {
  color: #0f8063;
}
.tf-integration-list > a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid #ebeee8;
}
.tf-integration-list > a > div {
  flex: 1;
}
.tf-integration-list strong,
.tf-integration-list small {
  display: block;
}
.tf-integration-list strong {
  font-size: 13px;
  font-weight: 600;
}
.tf-integration-list small {
  font-size: 10px;
  color: #8a958e;
  margin-top: 4px;
}
.tf-api-icon {
  display: grid;
  place-items: center;
  height: 42px;
  width: 42px;
  background: #edf4ef;
  border: 1px solid #dfe9df;
  border-radius: 10px;
  color: #238164;
  font-size: 18px;
}
.tf-honest-note {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 18px;
  background: #f7f8f3;
  border: 1px solid #e5e8dd;
  border-radius: 8px;
  margin-top: 25px;
  font-size: 11px;
  line-height: 1.8;
  color: #728071;
}
.tf-honest-note p {
  margin: 0;
  font-size: 11px;
}
.tf-honest-note > i {
  margin-top: 4px;
  color: #758e6e;
}
.tf-page-groups details {
  border: 1px solid var(--tf-line);
  border-radius: 7px;
  margin: 9px 0;
  overflow: hidden;
}
.tf-page-groups summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.tf-page-groups summary > span {
  font-size: 10px;
  font-weight: 400;
  color: var(--tf-muted);
}
.tf-page-groups ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 18px;
  list-style: none;
  padding: 10px 16px 18px;
  margin: 0;
}
.tf-page-groups li a {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  font-size: 10px;
  color: #65796c;
}
.tf-spec-card {
  position: sticky;
  top: 120px;
  border: 1px solid var(--tf-line);
  border-radius: 10px;
  padding: 26px;
  background: #fbfcf9;
  margin-top: 35px;
}
.tf-spec-card h3 {
  font-size: 24px;
  margin-top: 13px;
}
.tf-spec-card dl {
  margin: 25px 0;
}
.tf-spec-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e8ece4;
  padding: 11px 0;
  font-size: 11px;
}
.tf-spec-card dt {
  color: #7c897e;
  font-weight: 400;
}
.tf-spec-card dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.tf-spec-card .tf-btn {
  width: 100%;
}
.tf-spec-card > p {
  font-size: 10px;
  margin: 18px 0 0;
}
.tf-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tf-gallery > a {
  border: 1px solid var(--tf-line);
  border-radius: 8px;
  overflow: hidden;
}
.tf-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top;
  display: block;
  background: #f0f3ec;
}
.tf-gallery span {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 12px;
  font-size: 9px;
}
.tf-related {
  padding-top: 20px;
  padding-bottom: 80px;
}
.tf-related .tf-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tf-account {
  padding-top: 30px;
  padding-bottom: 80px;
}
.tf-library {
  display: grid;
  gap: 15px;
  margin-bottom: 55px;
}
.tf-library article {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px;
  border: 1px solid var(--tf-line);
  border-radius: 10px;
  overflow: hidden;
  padding: 15px;
}
.tf-library img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  border-radius: 6px;
}
.tf-library h3 {
  font-size: 24px;
  margin: 7px 0;
}
.tf-library p {
  font-size: 11px;
  margin: 8px 0;
}
.tf-library form small {
  display: block;
  text-align: center;
  font-size: 9px;
  margin-top: 9px;
  color: var(--tf-muted);
}
.tf-account-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tf-account-services article {
  padding: 25px;
  border: 1px solid var(--tf-line);
  border-radius: 10px;
}
.tf-account-services h3 {
  font-size: 20px;
  margin: 12px 0;
}
.tf-account-services article > small {
  color: var(--tf-muted);
  font-size: 10px;
}
.tf-account-services article > div {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  font-size: 11px;
}
.tf-preview-body {
  margin: 0;
  background: #e9ede7;
  color: #1b3029;
  font-family: Inter, Arial, sans-serif;
  height: 100dvh;
  overflow: hidden;
}
.tf-preview-toolbar {
  height: 70px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border-bottom: 1px solid #dce4da;
  box-sizing: border-box;
}
.tf-preview-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1b3029;
  text-decoration: none;
  font-size: 13px;
  min-width: 0;
}
.tf-preview-brand > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #123d31;
  color: #fff;
  font-size: 14px;
}
.tf-preview-brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}
.tf-device-switch {
  display: flex;
  padding: 3px;
  border: 1px solid #dce4da;
  border-radius: 7px;
  background: #f6f8f4;
}
.tf-device-switch button {
  padding: 8px 13px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #718071;
  font-size: 11px;
  cursor: pointer;
}
.tf-device-switch button[aria-pressed="true"] {
  background: #fff;
  color: #173b32;
  box-shadow: 0 1px 4px #00000012;
}
.tf-preview-stage {
  height: calc(100dvh - 70px);
  width: 100%;
  overflow: auto;
  display: flex;
  justify-content: center;
}
.tf-preview-stage iframe {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  background: #fff;
  transition: width 0.25s;
}
.tf-preview-stage iframe[data-device="tablet"] {
  width: 768px;
}
.tf-preview-stage iframe[data-device="mobile"] {
  width: 390px;
}
.tf-marketplace :focus-visible,
.tf-preview-body :focus-visible {
  outline: 3px solid #2a8c73;
  outline-offset: 4px;
}
@media (max-width: 1100px) {
  .tf-hero {
    gap: 35px;
  }
  .tf-catalog-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 24px;
  }
  .tf-card-body {
    padding: 16px;
  }
  .tf-card h3 {
    font-size: 20px;
  }
  .tf-detail-layout {
    gap: 35px;
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .tf-how {
    gap: 25px;
  }
  .tf-account-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .tf-hero {
    grid-template-columns: 1fr;
    padding-top: 130px;
    gap: 25px;
  }
  .tf-hero-art {
    padding: 15px 20px;
    max-width: 680px;
    width: 100%;
    margin: auto;
  }
  .tf-hero-copy {
    max-width: 650px;
  }
  .tf-hero h1 {
    font-size: 54px;
  }
  .tf-value-strip .container {
    flex-wrap: wrap;
  }
  .tf-value-strip span:last-child {
    max-width: none;
  }
  .tf-catalog-layout {
    grid-template-columns: 1fr;
  }
  .tf-filters form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }
  .tf-filter-heading {
    grid-column: 1/-1;
    margin-bottom: 5px;
  }
  .tf-advanced-filters {
    grid-column: 1/-1;
    min-width: 0;
  }
  .tf-advanced-filters > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid var(--tf-line);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    background: var(--tf-paper);
  }
  .tf-advanced-filters > summary > span {
    margin-left: auto;
    font-size: 10px;
    color: var(--tf-muted);
  }
  .tf-filter-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding-top: 10px;
  }
  .tf-filters form > .tf-btn {
    grid-column: 1/-1;
  }
  .tf-filters label {
    display: none;
  }
  .tf-filters .tf-btn {
    margin: 0;
    min-height: 40px;
    padding: 9px;
  }
  .tf-filter-note {
    display: none;
  }
  .tf-search {
    grid-column: 1/-1;
  }
  .tf-how {
    grid-template-columns: 1fr 1fr;
  }
  .tf-detail-heading {
    align-items: start;
    gap: 25px;
  }
  .tf-detail-actions {
    min-width: 200px;
  }
  .tf-detail-layout {
    grid-template-columns: 1fr;
  }
  .tf-spec-card {
    position: static;
    margin-top: 0;
  }
  .tf-related .tf-card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tf-preview-brand strong {
    max-width: 160px;
  }
  .tf-library article {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .tf-library form {
    grid-column: 2;
  }
  .tf-collection {
    padding-top: 45px;
  }
}
@media (max-width: 600px) {
  .tf-marketplace .container {
    padding-inline: 18px;
  }
  .tf-hero {
    padding-top: 115px;
    padding-bottom: 44px;
  }
  .tf-hero h1 {
    font-size: 41px;
  }
  .tf-hero p {
    font-size: 14px;
  }
  .tf-kicker {
    font-size: 8px;
  }
  .tf-hero-actions {
    gap: 18px;
  }
  .tf-proof {
    gap: 9px;
    font-size: 9px;
  }
  .tf-value-strip .container {
    gap: 10px;
  }
  .tf-section-head {
    display: block;
    margin-bottom: 24px;
  }
  .tf-section-head > p {
    margin-top: 15px;
    font-size: 11px;
  }
  .tf-section-head h2 {
    font-size: 29px;
  }
  .tf-filters form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tf-results-bar {
    align-items: start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .tf-type-links > a {
    font-size: 10px;
    padding: 8px 10px;
  }
  .tf-sort {
    margin-left: auto;
  }
  .tf-card-grid,
  .tf-related .tf-card-grid {
    grid-template-columns: 1fr;
  }
  .tf-card h3 {
    font-size: 25px;
  }
  .tf-card-body {
    padding: 20px;
  }
  .tf-card-body > p {
    min-height: 0;
    font-size: 12px;
  }
  .tf-how {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 35px;
    padding-bottom: 50px;
  }
  .tf-how article {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 0 15px;
  }
  .tf-how article h3 {
    margin: 3px 0 10px;
  }
  .tf-how article p {
    grid-column: 2;
  }
  .tf-detail-hero {
    padding-top: 115px;
  }
  .tf-detail-heading {
    display: block;
  }
  .tf-detail-heading h1 {
    font-size: 38px;
  }
  .tf-detail-actions {
    margin-top: 24px;
  }
  .tf-detail-cover > img {
    aspect-ratio: 1.5;
  }
  .tf-detail-cover > span {
    font-size: 9px;
    padding: 10px 14px;
    bottom: 12px;
  }
  .tf-content-block h2 {
    font-size: 27px;
  }
  .tf-feature-grid {
    grid-template-columns: 1fr;
  }
  .tf-page-groups ul {
    grid-template-columns: 1fr;
  }
  .tf-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .tf-gallery > a:last-child {
    grid-column: 1/-1;
  }
  .tf-preview-toolbar {
    height: auto;
    min-height: 95px;
    gap: 9px;
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .tf-preview-brand {
    font-size: 11px;
    max-width: 52%;
  }
  .tf-preview-brand strong {
    max-width: 130px;
  }
  .tf-preview-toolbar > .tf-btn {
    font-size: 9px;
    padding: 9px;
    min-height: 34px;
  }
  .tf-device-switch {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .tf-preview-stage {
    height: calc(100dvh - 107px);
  }
  .tf-device-switch button {
    padding: 5px 13px;
    font-size: 10px;
  }
  .tf-library article {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .tf-library img {
    max-height: 200px;
  }
  .tf-library form {
    grid-column: auto;
  }
  .tf-library .tf-btn {
    width: 100%;
  }
  .tf-account-services {
    grid-template-columns: 1fr;
  }
  .tf-hero-art {
    padding: 15px 5px;
  }
  .tf-window-bar small {
    font-size: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tf-marketplace *,
  .tf-preview-body * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.tf-marketplace .tf-pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.tf-marketplace .tf-pagination .tf-btn {
  min-width: 44px;
  justify-content: center;
}
