/*
Theme Name: Tenaks
Theme URI: https://tenaks-spareparts.com
Author: Tenaks
Description: Soft editorial magazine — Fraunces + Figtree, rose accent, rounded surfaces.
Version: 1.1.3
Text Domain: tenaks
*/

.tx-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx-accent);
}

.tx-seo-blocks {
  display: grid;
  gap: 1rem;
  margin: 2.25rem 0 1rem;
}

.tx-seo-block {
  background: var(--tx-surface);
  border-radius: var(--tx-radius);
  box-shadow: var(--tx-shadow);
  padding: 1.25rem 1.35rem 1.35rem;
}

.tx-seo-block h2 {
  margin: 0 0 0.65rem;
  font-family: var(--tx-font-display);
  font-size: 1.35rem;
  line-height: 1.25;
}

.tx-seo-block p {
  margin: 0 0 0.75rem;
  color: var(--tx-ink-muted);
  line-height: 1.55;
}

.tx-seo-block p:last-child {
  margin-bottom: 0;
}

.tx-recent-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tx-recent-posts li {
  margin: 0 0 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--tx-border);
}

.tx-recent-posts li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.tx-hub-list .tx-card-title {
  font-size: 1.12rem;
}

:root {
  --tx-bg: #eef1f6;
  --tx-bg-deep: #e2e7f0;
  --tx-surface: #ffffff;
  --tx-ink: #1c1917;
  --tx-ink-muted: #57534e;
  --tx-link: #0f766e;
  --tx-link-hover: #115e59;
  --tx-header: #1c1917;
  --tx-accent: #e11d48;
  --tx-accent-soft: #ffe4e6;
  --tx-score-bg: #ecfdf5;
  --tx-score-ink: #065f46;
  --tx-border: rgba(28, 25, 23, 0.1);
  --tx-radius: 14px;
  --tx-max: 1120px;
  --tx-font: "Figtree", "Segoe UI", sans-serif;
  --tx-font-display: "Fraunces", Georgia, serif;
  --tx-font-article: "Source Serif 4", Georgia, serif;
  --tx-shadow: 0 14px 40px rgba(28, 25, 23, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--tx-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--tx-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(225, 29, 72, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(15, 118, 110, 0.07), transparent 45%),
    var(--tx-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--tx-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--tx-link-hover);
}

:focus-visible {
  outline: 2px solid var(--tx-accent);
  outline-offset: 3px;
}

.screen-reader-text,
.tx-skip {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.screen-reader-text:focus,
.tx-skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  width: auto;
  height: auto;
  overflow: visible;
  background: var(--tx-surface);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: var(--tx-ink);
}

.tx-wrap {
  width: min(100% - 1.5rem, var(--tx-max));
  margin-inline: auto;
}

.tx-header {
  background: var(--tx-header);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.tx-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  padding-block: 0.65rem;
}

.tx-logo {
  font-family: var(--tx-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.tx-logo::before {
  content: "";
  width: 8px;
  height: 1.1em;
  border-radius: 999px;
  background: var(--tx-accent);
}

.tx-logo:hover {
  color: #fff;
  text-decoration: none;
}

.tx-logo__img {
  height: 30px;
  width: auto;
  max-width: 150px;
}

.tx-logo__img + .tx-logo-fallback,
.tx-logo:has(.tx-logo__img)::before {
  display: none;
}

.tx-nav-toggle {
  margin-left: auto;
  background: var(--tx-accent);
  border: 0;
  color: #fff;
  min-height: 44px;
  min-width: 44px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-family: var(--tx-font);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.tx-nav {
  display: none;
  flex-basis: 100%;
  order: 3;
}

.tx-nav.is-open {
  display: block;
}

.tx-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.85rem;
}

.tx-nav a {
  display: block;
  padding: 0.85rem 0;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.tx-nav a:hover {
  color: #fda4af;
}

.tx-search-toggle {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-family: var(--tx-font);
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  border-radius: 999px;
}

.tx-search-panel {
  display: none;
  background: #292524;
  padding: 0.85rem 0;
}

.tx-search-panel.is-open {
  display: block;
}

.tx-search-panel form,
.tx-search-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tx-search-panel input[type="search"],
.tx-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  font-size: 1rem;
  font-family: var(--tx-font);
}

.tx-search-panel button,
.tx-search-form button {
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  background: var(--tx-accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--tx-font);
  cursor: pointer;
}

.tx-toc-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: none;
  min-height: 44px;
  padding: 0.75rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--tx-accent);
  color: #fff;
  font-family: var(--tx-font);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--tx-shadow);
}

.tx-toc-fab.is-visible {
  display: inline-flex;
  align-items: center;
}

body.tx-nav-open {
  overflow: hidden;
}

.tx-main {
  padding: 1.75rem 0 3.5rem;
}

.tx-layout {
  display: grid;
  gap: 1.75rem;
}

.tx-hero {
  margin: 0 0 1.75rem;
  padding: 1.75rem 1.5rem;
  background: var(--tx-surface);
  border-radius: calc(var(--tx-radius) + 4px);
  box-shadow: var(--tx-shadow);
  position: relative;
  overflow: hidden;
}

.tx-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.18), transparent 70%);
  pointer-events: none;
}

.tx-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--tx-font-display);
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  position: relative;
}

.tx-hero p {
  margin: 0;
  max-width: 34rem;
  color: var(--tx-ink-muted);
  font-size: 1.05rem;
  position: relative;
}

.tx-section-title {
  font-family: var(--tx-font-display);
  font-size: 1.35rem;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tx-card-feature {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--tx-surface);
  border-radius: var(--tx-radius);
  box-shadow: var(--tx-shadow);
}

.tx-card-feature__img {
  background: var(--tx-bg-deep);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: calc(var(--tx-radius) - 4px);
}

.tx-card-feature__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tx-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tx-ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  letter-spacing: 0.02em;
}

.tx-card-title {
  margin: 0.15rem 0;
  font-family: var(--tx-font-display);
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tx-card-title a {
  color: var(--tx-ink);
  text-decoration: none;
}

.tx-card-title a:hover {
  color: var(--tx-accent);
}

.tx-excerpt {
  margin: 0;
  color: var(--tx-ink-muted);
  font-size: 0.96rem;
}

.tx-list-cards {
  display: grid;
  gap: 0.85rem;
}

.tx-list-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem;
  background: var(--tx-surface);
  border-radius: var(--tx-radius);
  box-shadow: 0 6px 20px rgba(28, 25, 23, 0.05);
}

.tx-list-card__img {
  width: 96px;
  height: 72px;
  background: var(--tx-bg-deep);
  overflow: hidden;
  border-radius: 10px;
}

.tx-list-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tx-list-card .tx-card-title {
  font-size: 1.05rem;
}

.tx-category-block {
  margin-bottom: 2rem;
}

.tx-category-block__grid {
  display: grid;
  gap: 1rem;
}

.tx-sidebar .tx-widget {
  background: var(--tx-surface);
  padding: 1.15rem;
  margin-bottom: 1.1rem;
  border-radius: var(--tx-radius);
  box-shadow: var(--tx-shadow);
}

.tx-widget__title {
  margin: 0 0 0.85rem;
  font-family: var(--tx-font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.tx-popular {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pop;
}

.tx-popular li {
  display: grid;
  grid-template-columns: 1.5rem 56px 1fr;
  gap: 0.55rem;
  align-items: start;
  margin-bottom: 0.85rem;
  counter-increment: pop;
}

.tx-popular li::before {
  content: counter(pop);
  font-weight: 800;
  color: var(--tx-accent);
  font-size: 0.95rem;
}

.tx-popular__thumb {
  width: 56px;
  height: 42px;
  background: var(--tx-bg-deep);
  overflow: hidden;
  border-radius: 8px;
}

.tx-side-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tx-side-links a {
  display: block;
  padding: 0.55rem 0;
  min-height: 44px;
  border-bottom: 1px solid var(--tx-border);
  color: var(--tx-ink);
  font-weight: 600;
  text-decoration: none;
}

.tx-side-links a:hover {
  color: var(--tx-accent);
}

.tx-breadcrumb {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tx-ink-muted);
  margin-bottom: 0.75rem;
}

.tx-breadcrumb a {
  color: var(--tx-ink-muted);
}

.tx-article-header h1 {
  margin: 0 0 0.75rem;
  font-family: var(--tx-font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.tx-hero-media {
  margin: 1rem 0 0;
  border-radius: var(--tx-radius);
  overflow: hidden;
  box-shadow: var(--tx-shadow);
  background: var(--tx-bg-deep);
}

.tx-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tx-disclaimer {
  background: var(--tx-accent-soft);
  border-radius: var(--tx-radius);
  padding: 0.95rem 1.1rem;
  font-size: 0.92rem;
  margin: 1rem 0 1.5rem;
}

.tx-toc {
  background: var(--tx-surface);
  padding: 1.1rem 1.2rem;
  margin: 1.25rem 0;
  border-radius: var(--tx-radius);
  box-shadow: var(--tx-shadow);
}

.tx-toc,
.tx-model[id],
.tx-content h2,
.tx-content h3 {
  scroll-margin-top: 5.5rem;
}

.tx-toc strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--tx-font-display);
  font-size: 1.05rem;
}

.tx-toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.tx-toc a {
  display: block;
  padding: 0.55rem 0;
  min-height: 44px;
  font-weight: 600;
}

.tx-content {
  font-family: var(--tx-font-article);
  font-size: clamp(1.125rem, 0.4vw + 1.05rem, 1.2rem);
  line-height: 1.75;
  max-width: 40.5rem;
}

.tx-content h2,
.tx-content h3,
.tx-content .tx-toc,
.tx-content .tx-table-wrap,
.tx-content .tx-pros-cons,
.tx-content .tx-disclaimer,
.tx-content .tx-specs,
.tx-content .tx-price-line {
  font-family: var(--tx-font);
}

.tx-content h2 {
  margin: 2.35rem 0 0.9rem;
  font-family: var(--tx-font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tx-content h3 {
  margin: 1.85rem 0 0.7rem;
  font-family: var(--tx-font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.tx-content p,
.tx-content ul,
.tx-content ol {
  margin: 0 0 1rem;
}

.tx-model {
  padding: 0.35rem 0 1.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--tx-border);
}

.tx-model:last-of-type {
  border-bottom: 0;
}

.tx-specs {
  font-size: 1rem;
  color: var(--tx-ink);
  background: var(--tx-bg-deep);
  padding: 0.8rem 1rem;
  border-radius: 12px;
}

.tx-score {
  display: inline-block;
  font-family: var(--tx-font);
  font-weight: 800;
  color: var(--tx-score-ink);
  background: var(--tx-score-bg);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-size: 0.9em;
}

.tx-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border-radius: var(--tx-radius);
  box-shadow: var(--tx-shadow);
  background:
    linear-gradient(90deg, var(--tx-surface) 85%, transparent),
    linear-gradient(270deg, var(--tx-surface) 85%, transparent),
    var(--tx-surface);
  background-repeat: no-repeat;
  background-size: 1.25rem 100%, 1.25rem 100%, 100% 100%;
  background-position: left center, right center, center;
  background-attachment: local, local, local;
  -webkit-overflow-scrolling: touch;
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--tx-font);
  font-size: 0.88rem;
}

.tx-table th,
.tx-table td {
  border-bottom: 1px solid var(--tx-border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.tx-table th {
  background: var(--tx-bg-deep);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tx-pros-cons {
  display: grid;
  gap: 0.75rem;
  margin: 0.75rem 0 1.25rem;
}

.tx-pros,
.tx-cons {
  padding: 0.9rem 1rem;
  font-size: 1rem;
  border-radius: 12px;
}

.tx-pros {
  background: #ecfdf5;
}

.tx-cons {
  background: #fff1f2;
}

.tx-pros ul,
.tx-cons ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.tx-price-line {
  font-size: 0.98rem;
  margin: 0.35rem 0 0.85rem;
  padding: 0.55rem 0.85rem;
  background: var(--tx-surface);
  border-radius: 12px;
  border-left: 4px solid var(--tx-accent);
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.04);
}

.tx-stub-note {
  background: var(--tx-surface);
  border-radius: var(--tx-radius);
  padding: 1.1rem;
  margin: 1rem 0;
  box-shadow: var(--tx-shadow);
}

.tx-footer {
  background: var(--tx-header);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 2rem;
  font-size: 0.92rem;
}

.tx-footer a {
  color: #fff;
}

.tx-footer__grid {
  display: grid;
  gap: 1.25rem;
}

.tx-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-top: 0.75rem;
}

.tx-footer__nav a {
  font-weight: 700;
  text-decoration: none;
}

.tx-footer__nav a:hover {
  color: #fda4af;
}

.tx-footer__legal {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.tx-footer__legal a {
  display: inline-block;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 767px) {
  .tx-table th:nth-child(1),
  .tx-table td:nth-child(1),
  .tx-table th:nth-child(2),
  .tx-table td:nth-child(2) {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--tx-surface);
  }

  .tx-table th:nth-child(1),
  .tx-table th:nth-child(2) {
    background: var(--tx-bg-deep);
    z-index: 2;
  }

  .tx-table th:nth-child(2),
  .tx-table td:nth-child(2) {
    left: 2rem;
    min-width: 7.5rem;
  }
}

@media (min-width: 768px) {
  .tx-header__inner {
    flex-wrap: nowrap;
  }

  .tx-nav-toggle {
    display: none;
  }

  .tx-nav {
    display: block !important;
    flex: 1;
    order: 0;
    margin-left: 1.75rem;
  }

  .tx-nav ul {
    display: flex;
    gap: 1.35rem;
    padding: 0;
  }

  .tx-nav a {
    border: 0;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    min-height: 0;
  }

  .tx-search-toggle {
    margin-left: auto;
  }

  .tx-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }

  .tx-category-block__grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .tx-pros-cons {
    grid-template-columns: 1fr 1fr;
  }

  .tx-footer__grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (min-width: 1024px) {
  .tx-card-feature {
    grid-template-columns: 1.1fr 1fr;
    gap: 1.25rem;
    align-items: center;
  }
}
