/*
Theme Name:        Tekx Child
Theme URI:         https://tekx.io
Description:       Clean, minimal child theme for Tekx — Wearable Tech, Honest Reviews. Built on GeneratePress 3.x. Outfit headings, DM Sans body.
Author:            Tekx
Author URI:        https://tekx.io
Template:          generatepress
Version:           3.0.0
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       tekx-child
*/

/* ============================================================
   TEKX — MASTER STYLESHEET v3.0
   1.  CSS Custom Properties
   2.  Base Reset & Typography
   3.  Layout
   4.  Header & Navigation
   5.  Category Badges
   6.  Post Cards & Archive
   7.  Single Post
   8.  Review Components
   9.  Sidebar & Widgets
   10. Footer
   11. Utility & Pagination
   12. Magazine Homepage
   13. Responsive
============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
============================================================ */
:root {
  /* Palette — pure black & white minimal */
  --tekx-black:     #0a0a0a;
  --tekx-off-black: #111111;
  --tekx-dark:      #1c1c1c;
  --tekx-mid:       #4a4a4a;
  --tekx-subtle:    #888888;
  --tekx-border:    #e4e4e4;
  --tekx-light:     #f6f6f6;
  --tekx-off-white: #fafafa;
  --tekx-white:     #ffffff;

  /* Typography — Outfit headings / DM Sans body */
  --font-heading: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  /* Radii */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.4s ease;

  /* Layout */
  --container: 1200px;
  --content:   760px;
}

/* ============================================================
   2. BASE RESET & TYPOGRAPHY
============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--tekx-dark);
  background: var(--tekx-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Headings — Outfit */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--tekx-black);
  margin-top: 0;
  margin-bottom: var(--sp-4);
}

h1 { font-size: clamp(2rem,    4.5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.6rem,  3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(1.3rem,  2.5vw, var(--text-3xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl);  }
h6 { font-size: var(--text-lg);  }

p {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--tekx-dark);
  margin-bottom: var(--sp-5);
}

a {
  color: var(--tekx-black);
  text-decoration: none;
  transition: opacity var(--t-fast);
}
a:hover { opacity: 0.6; }

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

ul, ol { padding-left: var(--sp-6); }
li { margin-bottom: var(--sp-2); font-size: var(--text-lg); line-height: 1.7; }

blockquote {
  border-left: 3px solid var(--tekx-black);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-8) 0;
  background: var(--tekx-light);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--tekx-off-black);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--tekx-light);
  padding: 2px 6px;
  border-radius: var(--r-sm);
}

pre {
  font-family: var(--font-mono);
  background: var(--tekx-off-black);
  color: var(--tekx-white);
  padding: var(--sp-6);
  border-radius: var(--r-md);
  overflow-x: auto;
  margin: var(--sp-8) 0;
  font-size: var(--text-sm);
  line-height: 1.6;
}

hr {
  border: none;
  border-top: 1px solid var(--tekx-border);
  margin: var(--sp-12) 0;
}

strong { font-weight: 700; color: var(--tekx-black); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-8) 0;
  font-size: var(--text-base);
}
table th {
  background: var(--tekx-black);
  color: var(--tekx-white);
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  font-weight: 600;
}
table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--tekx-border);
}
table tr:nth-child(even) td { background: var(--tekx-light); }

/* ============================================================
   3. LAYOUT
============================================================ */
.site-container,
.grid-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* Main site wrapper */
#page,
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* Main content area should grow to push footer down */
.site-content,
#content {
  flex: 1 0 auto;
  width: 100%;
}

/* ============================================================
   4. HEADER & NAVIGATION
============================================================ */
.site-header {
  background: var(--tekx-white);
  border-bottom: 1px solid var(--tekx-border);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.site-header .grid-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

/* Logo */
.main-title a,
.site-title a {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--tekx-black);
  letter-spacing: -0.04em;
}
.main-title a:hover,
.site-title a:hover { opacity: 1; }

/* Primary Nav */
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: var(--sp-1);
  padding: 0;
  margin: 0;
}
.main-navigation ul li a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--tekx-mid);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--tekx-black);
  background: var(--tekx-light);
  opacity: 1;
}

/* Dropdowns */
.main-navigation ul ul {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--tekx-white);
  border: 1px solid var(--tekx-border);
  border-radius: var(--r-md);
  padding: var(--sp-2);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 200;
}
.main-navigation ul li:hover > ul { display: flex; }
.main-navigation ul ul li a {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  white-space: nowrap;
}

/* Search toggle */
.tekx-header-extras {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.tekx-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  color: var(--tekx-mid);
  display: flex;
  align-items: center;
  transition: color var(--t-fast);
}
.tekx-search-toggle:hover { color: var(--tekx-black); }

/* ============================================================
   5. CATEGORY BADGES
============================================================ */
.tekx-cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--tekx-black);
  color: var(--tekx-white);
  line-height: 1.6;
  transition: opacity var(--t-fast);
}
.tekx-cat-badge:hover { opacity: 0.75; }

/* ============================================================
   6. POST CARDS & ARCHIVE
============================================================ */

/* 3-col grid */
.tekx-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  margin: var(--sp-12) 0;
}
.tekx-post-grid.two-col { grid-template-columns: repeat(2, 1fr); }

/* Card */
.tekx-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--tekx-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--tekx-white);
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
}
.tekx-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

.tekx-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--tekx-light);
}
.tekx-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.tekx-card:hover .tekx-card-image img { transform: scale(1.05); }

.tekx-card-body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tekx-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}

.tekx-card-date {
  font-size: var(--text-xs);
  color: var(--tekx-subtle);
  font-weight: 500;
}

.tekx-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}
.tekx-card-title a { color: var(--tekx-black); }
.tekx-card-title a:hover { opacity: 0.7; }

.tekx-card-excerpt {
  font-size: var(--text-sm);
  color: var(--tekx-subtle);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--sp-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tekx-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--tekx-border);
  margin-top: auto;
}

.tekx-read-time {
  font-size: var(--text-xs);
  color: var(--tekx-subtle);
  font-weight: 500;
}

.tekx-read-more {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--tekx-black);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  transition: gap var(--t-fast);
}
.tekx-read-more:hover { gap: var(--sp-2); opacity: 1; }
.tekx-read-more::after { content: '→'; }

/* News list */
.tekx-news-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--tekx-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tekx-news-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--tekx-border);
  align-items: flex-start;
  background: var(--tekx-white);
  transition: background var(--t-fast);
}
.tekx-news-item:last-child { border-bottom: none; }
.tekx-news-item:hover { background: var(--tekx-light); }

.tekx-news-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--tekx-light);
}
.tekx-news-thumb img { width: 100%; height: 100%; object-fit: cover; }

.tekx-news-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-1);
}
.tekx-news-title a { color: var(--tekx-black); }
.tekx-news-date { font-size: var(--text-xs); color: var(--tekx-subtle); }

/* ============================================================
   7. SINGLE POST
============================================================ */
.single-post .site-main { padding: var(--sp-12) 0 var(--sp-20); }

.tekx-post-header {
  max-width: var(--content);
  margin: 0 auto var(--sp-10);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid var(--tekx-border);
}

.tekx-post-header-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}

.tekx-post-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
  color: var(--tekx-black);
}

.tekx-post-excerpt-lede {
  font-size: var(--text-xl);
  color: var(--tekx-subtle);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

.tekx-post-date {
  font-size: var(--text-sm);
  color: var(--tekx-subtle);
  font-weight: 500;
}

.tekx-read-time-single {
  font-size: var(--text-sm);
  color: var(--tekx-subtle);
}

.tekx-meta-sep {
  color: var(--tekx-border);
}

.tekx-featured-image {
  max-width: 900px;
  margin: 0 auto var(--sp-12);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.tekx-featured-image img { width: 100%; height: 100%; object-fit: cover; }

/* TOC */
.tekx-toc {
  background: var(--tekx-light);
  border-left: 3px solid var(--tekx-black);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--sp-5) var(--sp-6);
  margin: var(--sp-8) auto;
  max-width: var(--content);
}
.tekx-toc-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tekx-mid);
  margin-bottom: var(--sp-3);
}
.tekx-toc ol { padding-left: var(--sp-5); margin: 0; }
.tekx-toc ol li { font-size: var(--text-sm); margin-bottom: var(--sp-1); }
.tekx-toc ol li a { color: var(--tekx-dark); }

/* Entry content */
.entry-content {
  max-width: var(--content);
  margin: 0 auto;
}

/* ── Links inside article body — clearly visible ── */
.entry-content a {
  color: var(--tekx-black);
  text-decoration: underline;
  text-decoration-color: var(--tekx-border);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  font-weight: 500;
  transition: text-decoration-color var(--t-fast), color var(--t-fast);
}
.entry-content a:hover {
  color: var(--tekx-black);
  text-decoration-color: var(--tekx-black);
  opacity: 1;
}

/* ── Suppress GP / plugin plain-list related posts ── */
/* Targets the "Related Articles: • link • link" pattern
   injected as a plain <ul> or <p> after the content */
.entry-content .related-posts,
.entry-content .jp-relatedposts,
.entry-content .yarpp-related,
.generate-related-posts,
.generate_related_posts,
.post-related,
[class*="related-posts"],
[class*="relatedposts"] {
  display: none !important;
}

.entry-content h2 {
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--tekx-border);
}
.entry-content h3 { margin-top: var(--sp-8); margin-bottom: var(--sp-3); }
.entry-content h4 { margin-top: var(--sp-6); margin-bottom: var(--sp-2); }

.entry-content figure { margin: var(--sp-8) 0; }
.entry-content figcaption {
  font-size: var(--text-sm);
  color: var(--tekx-subtle);
  text-align: center;
  margin-top: var(--sp-2);
  font-style: italic;
}

/* Tags */
.tekx-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--tekx-border);
  max-width: var(--content);
  margin-left: auto;
  margin-right: auto;
}
.tekx-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--tekx-border);
  border-radius: var(--r-pill);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--tekx-mid);
  transition: all var(--t-fast);
}
.tekx-tag:hover {
  background: var(--tekx-black);
  color: var(--tekx-white);
  border-color: var(--tekx-black);
  opacity: 1;
}

/* Author box */
.tekx-author-box {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
  background: var(--tekx-light);
  border: 1px solid var(--tekx-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin: var(--sp-12) auto;
  max-width: var(--content);
}
.tekx-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--tekx-border);
}
.tekx-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tekx-author-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tekx-subtle);
  margin-bottom: var(--sp-1);
}
.tekx-author-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--tekx-black);
  margin-bottom: var(--sp-2);
}
.tekx-author-bio {
  font-size: var(--text-sm);
  color: var(--tekx-subtle);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Related posts */
.tekx-related {
  margin-top: var(--sp-16);
  padding-top: var(--sp-10);
  border-top: 1px solid var(--tekx-border);
}
.tekx-related-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tekx-subtle);
  margin-bottom: var(--sp-6);
}
.tekx-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

/* ============================================================
   8. REVIEW COMPONENTS
============================================================ */

/* Score box */
.tekx-review-score-box {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  background: var(--tekx-black);
  color: var(--tekx-white);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-8);
  margin: var(--sp-8) auto;
  max-width: var(--content);
}
.tekx-score-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--tekx-white);
  flex-shrink: 0;
}
.tekx-score-divider {
  font-size: var(--text-2xl);
  color: rgba(255,255,255,0.2);
  font-weight: 300;
  flex-shrink: 0;
}
.tekx-score-details { flex: 1; }
.tekx-score-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--sp-1);
}
.tekx-score-product {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--tekx-white);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.02em;
}
.tekx-score-stars { display: flex; gap: 3px; }
.tekx-star { width: 16px; height: 16px; color: white; }
.tekx-star.empty { opacity: 0.25; }

/* Score bars */
.tekx-score-bars {
  max-width: var(--content);
  margin: 0 auto var(--sp-6);
}
.tekx-score-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 36px;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.tekx-score-bar-label { font-size: var(--text-sm); font-weight: 500; color: var(--tekx-dark); }
.tekx-score-bar-track {
  height: 4px;
  background: var(--tekx-border);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.tekx-score-bar-fill {
  height: 100%;
  background: var(--tekx-black);
  border-radius: var(--r-pill);
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.tekx-score-bar-value { font-size: var(--text-sm); font-weight: 700; color: var(--tekx-black); text-align: right; }

/* Pros & Cons */
.tekx-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin: var(--sp-8) auto;
  max-width: var(--content);
}
.tekx-pros, .tekx-cons {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--tekx-border);
}
.tekx-pros-header, .tekx-cons-header {
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.tekx-pros-header { background: var(--tekx-black); color: var(--tekx-white); }
.tekx-cons-header { background: var(--tekx-light); color: var(--tekx-mid); border-bottom: 1px solid var(--tekx-border); }

.tekx-pros-list, .tekx-cons-list { list-style: none; padding: var(--sp-4); margin: 0; }
.tekx-pros-list li, .tekx-cons-list li {
  font-size: var(--text-sm);
  line-height: 1.6;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--tekx-border);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  margin: 0;
}
.tekx-pros-list li:last-child,
.tekx-cons-list li:last-child { border-bottom: none; padding-bottom: 0; }
.tekx-pros-list li::before { content: '+'; font-weight: 800; color: var(--tekx-black); flex-shrink: 0; }
.tekx-cons-list li::before { content: '−'; font-weight: 800; color: var(--tekx-subtle); flex-shrink: 0; }

/* Verdict */
.tekx-verdict {
  background: var(--tekx-light);
  border: 1px solid var(--tekx-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-8);
  margin: var(--sp-8) auto;
  max-width: var(--content);
}
.tekx-verdict-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tekx-subtle);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.tekx-verdict-label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--tekx-black);
}
.tekx-verdict-text { font-size: var(--text-lg); line-height: 1.75; color: var(--tekx-dark); font-style: italic; margin-bottom: 0; }

/* Buy box */
.tekx-buy-box {
  border: 2px solid var(--tekx-black);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin: var(--sp-8) auto;
  max-width: var(--content);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.tekx-buy-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tekx-subtle);
  margin-bottom: var(--sp-1);
}
.tekx-buy-name { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 700; color: var(--tekx-black); margin-bottom: var(--sp-1); letter-spacing: -0.02em; }
.tekx-buy-price { font-size: var(--text-lg); font-weight: 600; color: var(--tekx-dark); }
.tekx-buy-disclaimer { font-size: var(--text-xs); color: var(--tekx-subtle); margin-top: var(--sp-1); }
.tekx-buy-actions { display: flex; flex-direction: column; gap: var(--sp-2); flex-shrink: 0; }

.tekx-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  background: var(--tekx-black);
  color: var(--tekx-white);
  border: 2px solid var(--tekx-black);
  border-radius: var(--r-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}
.tekx-btn-primary:hover { background: var(--tekx-white); color: var(--tekx-black); opacity: 1; }

.tekx-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  background: transparent;
  color: var(--tekx-black);
  border: 1px solid var(--tekx-border);
  border-radius: var(--r-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}
.tekx-btn-secondary:hover { border-color: var(--tekx-black); opacity: 1; }

/* Spec table */
.tekx-spec-table { max-width: var(--content); margin: var(--sp-8) auto; }
.tekx-spec-table-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tekx-subtle);
  margin-bottom: var(--sp-4);
}
.tekx-spec-table table { margin: 0; }
.tekx-spec-table td:first-child { font-weight: 600; color: var(--tekx-dark); width: 40%; font-size: var(--text-sm); }
.tekx-spec-table td:last-child  { color: var(--tekx-subtle); font-size: var(--text-sm); }

/* ============================================================
   9. SIDEBAR & WIDGETS
============================================================ */
.widget { margin-bottom: var(--sp-8); padding-bottom: var(--sp-8); border-bottom: 1px solid var(--tekx-border); }
.widget:last-child { border-bottom: none; }
.widget-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tekx-subtle);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--tekx-black);
  display: inline-block;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: var(--sp-3) 0; border-bottom: 1px solid var(--tekx-border); font-size: var(--text-sm); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--tekx-dark); font-weight: 500; }

/* Newsletter widget */
.tekx-newsletter-widget {
  background: var(--tekx-black);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  color: var(--tekx-white);
}
.tekx-newsletter-widget .widget-title { color: rgba(255,255,255,0.45); border-bottom-color: rgba(255,255,255,0.15); }
.tekx-newsletter-headline { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 700; color: var(--tekx-white); margin-bottom: var(--sp-2); letter-spacing: -0.02em; }
.tekx-newsletter-sub { font-size: var(--text-sm); color: rgba(255,255,255,0.55); margin-bottom: var(--sp-4); line-height: 1.5; }
.tekx-newsletter-input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.08);
  color: var(--tekx-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-2);
  outline: none;
}
.tekx-newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.tekx-newsletter-input:focus { border-color: rgba(255,255,255,0.45); }
.tekx-newsletter-btn {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--tekx-white);
  color: var(--tekx-black);
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--t-fast);
}
.tekx-newsletter-btn:hover { opacity: 0.88; }

/* ============================================================
   10. FOOTER
   Fixed architecture: renders on ALL pages consistently
   
   CRITICAL: Footer must be OUTSIDE #content wrapper to avoid
   being placed in sidebar layouts on single/archive pages.
============================================================ */

/* Content area should grow to push footer down - handled above in section 3 */

/* Home page content containers - ensure full width block layout */
.tekx-home-content {
  display: block;
  width: 100%;
}

.tekx-home-content .tekx-home-primary,
.tekx-home-content .tekx-home-main {
  display: block;
  width: 100%;
  max-width: 100%;
  float: none;
}

/* Footer styling - always full width at bottom */
.site-footer,
.site-footer.tekx-footer {
  flex-shrink: 0;
  width: 100% !important;
  max-width: none !important;
  background: var(--tekx-black) !important;
  color: var(--tekx-white) !important;
  padding: var(--sp-16) 0 var(--sp-8) !important;
  margin-top: 0 !important;
  position: relative !important;
  z-index: 10 !important;
  clear: both !important;
  display: block !important;
  float: none !important;
  box-sizing: border-box !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  /* Ensure footer is not affected by any parent grid/flex constraints */
  grid-column: 1 / -1;
}

.site-footer .grid-container {
  max-width: var(--container);
  width: 100%;
  padding-left: var(--sp-6);
  padding-right: var(--sp-6);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.tekx-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Footer brand column */
.tekx-footer-brand {
  display: flex;
  flex-direction: column;
}

.tekx-footer-logo {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--tekx-white);
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-3);
}
.tekx-footer-logo a {
  color: var(--tekx-white);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.tekx-footer-logo a:hover { opacity: 0.75; }

.tekx-footer-tagline { font-size: var(--text-sm); color: rgba(255,255,255,0.4); line-height: 1.6; margin-bottom: var(--sp-5); }

.tekx-footer-about {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.38);
  line-height: 1.65;
  margin-bottom: var(--sp-5);
}

/* Social icons */
.tekx-footer-social {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: auto;
}
.tekx-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.tekx-social-link:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--tekx-white);
  background: rgba(255,255,255,0.08);
  opacity: 1;
}

/* Footer columns */
.tekx-footer-col {
  display: flex;
  flex-direction: column;
}

.tekx-footer-col-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--sp-4);
}

.tekx-footer-links { list-style: none; padding: 0; margin: 0; }
.tekx-footer-links li { margin-bottom: var(--sp-3); }
.tekx-footer-links li a { font-size: var(--text-sm); color: rgba(255,255,255,0.6); transition: color var(--t-fast); }
.tekx-footer-links li a:hover { color: var(--tekx-white); opacity: 1; }

/* Footer bottom bar */
.tekx-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.tekx-footer-copy { font-size: var(--text-xs); color: rgba(255,255,255,0.3); }
.tekx-footer-copy a {
  color: rgba(255,255,255,0.4);
  transition: color var(--t-fast);
}
.tekx-footer-copy a:hover {
  color: rgba(255,255,255,0.75);
  opacity: 1;
}

.tekx-footer-legal { display: flex; gap: var(--sp-5); }
.tekx-footer-legal a { font-size: var(--text-xs); color: rgba(255,255,255,0.3); transition: color var(--t-fast); }
.tekx-footer-legal a:hover { color: rgba(255,255,255,0.65); opacity: 1; }

.tekx-affiliate-notice {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.25);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.05);
  line-height: 1.6;
}

/* ============================================================
   11. UTILITY & PAGINATION
============================================================ */
.tekx-section-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tekx-subtle);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.tekx-section-title::after { content: ''; flex: 1; height: 1px; background: var(--tekx-border); }

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--tekx-border);
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--tekx-border);
  border-radius: var(--r-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--tekx-dark);
  transition: all var(--t-fast);
}
.page-numbers:hover,
.page-numbers.current {
  background: var(--tekx-black);
  color: var(--tekx-white);
  border-color: var(--tekx-black);
  opacity: 1;
}

/* Breadcrumbs (RankMath) */
.rank-math-breadcrumb,
.tekx-breadcrumb {
  font-size: var(--text-xs);
  color: var(--tekx-subtle);
  margin-bottom: var(--sp-5);
  font-weight: 500;
}
.rank-math-breadcrumb a { color: var(--tekx-subtle); }
.rank-math-breadcrumb a:hover { color: var(--tekx-black); opacity: 1; }
.rank-math-breadcrumb .separator { margin: 0 var(--sp-2); }

/* Search overlay */
#tekx-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

/* ============================================================
   12. MAGAZINE HOMEPAGE LAYOUT
============================================================ */

/* Base */
.tekx-magazine { 
  background: var(--tekx-white); 
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}
.tekx-mag-container { max-width: 1240px; margin: 0 auto; padding: 0 var(--sp-6); width: 100%; box-sizing: border-box; }
.tekx-mag-dot { color: var(--tekx-border); }
.tekx-mag-date { font-size: var(--text-xs); color: var(--tekx-subtle); font-weight: 500; }
.tekx-mag-rtime { font-size: var(--text-xs); color: var(--tekx-subtle); font-weight: 500; }
.tekx-mag-img-placeholder { width: 100%; height: 100%; background: var(--tekx-light); display: flex; align-items: center; justify-content: center; font-size: 3rem; }

/* Category tag pill */
.tekx-mag-cat-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--tekx-black);
  color: var(--tekx-white);
  padding: 2px 9px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: opacity var(--t-fast);
}
.tekx-mag-cat-tag:hover { opacity: 0.75; }

/* Score badges */
.tekx-mag-score-pill {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  background: var(--tekx-black);
  color: var(--tekx-white);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--r-md);
}
.tekx-mag-score-badge {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  background: var(--tekx-black);
  color: var(--tekx-white);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-sm);
}

/* Section headers */
.tekx-mag-section { padding: var(--sp-12) 0; border-bottom: 1px solid var(--tekx-border); }
.tekx-mag-section--latest { border-bottom: none; padding-bottom: var(--sp-16); }
.tekx-mag-section-header { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-8); }
.tekx-mag-section-label { font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tekx-black); flex-shrink: 0; }
.tekx-mag-section-rule { flex: 1; height: 2px; background: var(--tekx-black); display: block; }
.tekx-mag-view-all { font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; color: var(--tekx-mid); text-decoration: none; flex-shrink: 0; transition: color var(--t-fast); }
.tekx-mag-view-all:hover { color: var(--tekx-black); opacity: 1; }

/* HERO */
.tekx-mag-hero { padding: var(--sp-8) 0 0; border-bottom: 2px solid var(--tekx-black); }
.tekx-mag-hero-grid { display: grid; grid-template-columns: 1fr 360px; min-height: 520px; border: 1px solid var(--tekx-border); border-bottom: none; }

.tekx-mag-lead { position: relative; overflow: hidden; }
.tekx-mag-lead-img-wrap { display: block; position: relative; width: 100%; height: 100%; min-height: 480px; overflow: hidden; text-decoration: none; }
.tekx-mag-lead-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.tekx-mag-lead-img-wrap:hover img { transform: scale(1.03); }
.tekx-mag-lead-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.05) 100%); }
.tekx-mag-lead-content { position: absolute; bottom: 0; left: 0; right: 0; padding: var(--sp-8); z-index: 2; }
.tekx-mag-cat-pill { display: inline-block; background: var(--tekx-white); color: var(--tekx-black); font-family: var(--font-heading); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: var(--sp-4); }
.tekx-mag-lead-title { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--tekx-white); margin-bottom: var(--sp-3); }
.tekx-mag-lead-excerpt { font-size: var(--text-base); color: rgba(255,255,255,0.72); line-height: 1.6; margin-bottom: var(--sp-3); max-width: 520px; }
.tekx-mag-lead-meta { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--text-xs); color: rgba(255,255,255,0.5); font-weight: 500; }

/* Secondary stack */
.tekx-mag-secondary { border-left: 1px solid var(--tekx-border); display: flex; flex-direction: column; background: var(--tekx-white); }
.tekx-mag-secondary-label { font-family: var(--font-heading); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tekx-subtle); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--tekx-border); background: var(--tekx-light); }
.tekx-mag-secondary-item { flex: 1; display: flex; }
.tekx-mag-secondary-item.has-border { border-bottom: 1px solid var(--tekx-border); }
.tekx-mag-secondary-link { display: flex; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); text-decoration: none; align-items: flex-start; width: 100%; transition: background var(--t-fast); }
.tekx-mag-secondary-link:hover { background: var(--tekx-light); opacity: 1; }
.tekx-mag-secondary-text { flex: 1; min-width: 0; }
.tekx-mag-secondary-cat { display: block; font-family: var(--font-heading); font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--tekx-subtle); margin-bottom: 4px; }
.tekx-mag-secondary-title { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; color: var(--tekx-black); margin-bottom: var(--sp-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tekx-mag-secondary-meta { display: flex; align-items: center; gap: var(--sp-2); font-size: 11px; color: var(--tekx-subtle); }
.tekx-mag-secondary-img { width: 80px; height: 64px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; background: var(--tekx-light); }
.tekx-mag-secondary-img img { width: 100%; height: 100%; object-fit: cover; }

/* TICKER */
.tekx-mag-ticker { display: flex; align-items: center; background: var(--tekx-black); color: var(--tekx-white); height: 42px; overflow: hidden; }
.tekx-mag-ticker-label { flex-shrink: 0; background: var(--tekx-white); color: var(--tekx-black); font-family: var(--font-heading); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 0 var(--sp-5); height: 100%; display: flex; align-items: center; }
.tekx-mag-ticker-track { flex: 1; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent); }
.tekx-mag-ticker-inner { display: flex; align-items: center; white-space: nowrap; animation: tekxTicker 40s linear infinite; }
.tekx-mag-ticker-inner:hover { animation-play-state: paused; }
@keyframes tekxTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.tekx-mag-ticker-item { font-size: var(--text-sm); color: rgba(255,255,255,0.78); text-decoration: none; padding: 0 var(--sp-5); flex-shrink: 0; transition: color var(--t-fast); }
.tekx-mag-ticker-item:hover { color: var(--tekx-white); opacity: 1; }
.tekx-mag-ticker-sep { color: rgba(255,255,255,0.18); font-size: var(--text-xs); flex-shrink: 0; padding-right: var(--sp-2); }

/* FEATURED GRID */
.tekx-mag-featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.tekx-mag-feature-card { display: flex; flex-direction: column; border: 1px solid var(--tekx-border); border-radius: var(--r-lg); overflow: hidden; background: var(--tekx-white); transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base); }
.tekx-mag-feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.tekx-mag-feature-img-wrap { display: block; position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--tekx-light); }
.tekx-mag-feature-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tekx-mag-feature-card:hover .tekx-mag-feature-img-wrap img { transform: scale(1.04); }
.tekx-mag-feature-body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.tekx-mag-feature-meta { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); flex-wrap: wrap; }
.tekx-mag-feature-title { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; color: var(--tekx-black); margin-bottom: var(--sp-3); }
.tekx-mag-feature-title a { color: inherit; }
.tekx-mag-feature-title a:hover { opacity: 0.7; }
.tekx-mag-feature-excerpt { font-size: var(--text-sm); color: var(--tekx-subtle); line-height: 1.65; flex: 1; margin-bottom: var(--sp-4); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tekx-mag-feature-footer { display: flex; align-items: center; justify-content: space-between; padding-top: var(--sp-4); border-top: 1px solid var(--tekx-border); margin-top: auto; }
.tekx-mag-read-link { font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.05em; color: var(--tekx-black); text-decoration: none; transition: letter-spacing var(--t-fast); }
.tekx-mag-read-link:hover { letter-spacing: 0.09em; opacity: 1; }

/* CATEGORY STRIPS */
.tekx-mag-cat-strips { background: var(--tekx-light); padding: var(--sp-12) 0; border-top: 1px solid var(--tekx-border); border-bottom: 1px solid var(--tekx-border); }
.tekx-mag-strip { margin-bottom: var(--sp-10); padding-bottom: var(--sp-10); border-bottom: 1px solid var(--tekx-border); }
.tekx-mag-strip:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.tekx-mag-strip-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 2px solid var(--tekx-black); }
.tekx-mag-strip-title { display: flex; align-items: center; gap: var(--sp-2); font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 800; color: var(--tekx-black); letter-spacing: -0.02em; }
.tekx-mag-strip-icon { font-size: 1.1rem; line-height: 1; }
.tekx-mag-strip-more { font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; color: var(--tekx-mid); text-decoration: none; transition: color var(--t-fast); }
.tekx-mag-strip-more:hover { color: var(--tekx-black); opacity: 1; }
.tekx-mag-strip-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-5); align-items: start; }
.tekx-mag-strip-card { background: var(--tekx-white); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--tekx-border); transition: box-shadow var(--t-base), transform var(--t-base); }
.tekx-mag-strip-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tekx-mag-strip-img { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--tekx-light); }
.tekx-mag-strip-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tekx-mag-strip-card:hover .tekx-mag-strip-img img { transform: scale(1.04); }
.tekx-mag-strip-body { padding: var(--sp-4); }
.tekx-mag-strip-card-title { font-family: var(--font-heading); font-size: var(--text-base); font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: var(--sp-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tekx-mag-strip-card-title a { color: var(--tekx-black); }
.tekx-mag-strip-card-title a:hover { opacity: 0.7; }
.tekx-mag-strip-meta { display: flex; align-items: center; gap: var(--sp-2); font-size: 11px; color: var(--tekx-subtle); }
.tekx-mag-strip-card.is-primary .tekx-mag-strip-card-title { font-size: var(--text-lg); -webkit-line-clamp: 4; }

/* LATEST + RANKED LIST */
.tekx-mag-latest-layout { 
  display: grid; 
  grid-template-columns: 1fr 300px; 
  gap: var(--sp-8); 
  align-items: start;
}
.tekx-mag-latest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.tekx-mag-latest-card { display: flex; flex-direction: column; border: 1px solid var(--tekx-border); border-radius: var(--r-md); overflow: hidden; background: var(--tekx-white); transition: box-shadow var(--t-base), transform var(--t-base); }
.tekx-mag-latest-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tekx-mag-latest-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--tekx-light); }
.tekx-mag-latest-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tekx-mag-latest-card:hover .tekx-mag-latest-img img { transform: scale(1.04); }
.tekx-mag-latest-body { padding: var(--sp-4); flex: 1; display: flex; flex-direction: column; gap: var(--sp-2); }
.tekx-mag-latest-title { font-family: var(--font-heading); font-size: var(--text-base); font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tekx-mag-latest-title a { color: var(--tekx-black); }
.tekx-mag-latest-title a:hover { opacity: 0.7; }
.tekx-mag-latest-excerpt { font-size: var(--text-xs); color: var(--tekx-subtle); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.tekx-mag-latest-meta { display: flex; align-items: center; gap: var(--sp-2); font-size: 11px; color: var(--tekx-subtle); margin-top: auto; }

/* Ranked sidebar list */
.tekx-mag-most-read { border: 1px solid var(--tekx-border); border-radius: var(--r-md); overflow: hidden; position: sticky; top: 88px; background: var(--tekx-white); }
.tekx-mag-most-read-label { font-family: var(--font-heading); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tekx-subtle); padding: var(--sp-4) var(--sp-5); border-bottom: 2px solid var(--tekx-black); background: var(--tekx-light); }
.tekx-mag-ranked-item { display: flex; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--tekx-border); text-decoration: none; transition: background var(--t-fast); }
.tekx-mag-ranked-item:last-child { border-bottom: none; }
.tekx-mag-ranked-item:hover { background: var(--tekx-light); opacity: 1; }
.tekx-mag-rank-num { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--tekx-border); line-height: 1; flex-shrink: 0; min-width: 32px; }
.tekx-mag-ranked-item:hover .tekx-mag-rank-num { color: var(--tekx-black); }
.tekx-mag-rank-content { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tekx-mag-rank-cat { font-family: var(--font-heading); font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--tekx-subtle); }
.tekx-mag-rank-title { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600; line-height: 1.4; color: var(--tekx-black); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   13. RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .tekx-post-grid { grid-template-columns: repeat(2, 1fr); }
  .tekx-footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .tekx-footer-brand { grid-column: 1 / -1; }
  .tekx-related-grid { grid-template-columns: repeat(2, 1fr); }
  .tekx-mag-hero-grid { grid-template-columns: 1fr 300px; }
  .tekx-mag-featured-grid { grid-template-columns: repeat(2, 1fr); }
  .tekx-mag-strip-grid { grid-template-columns: 1fr 1fr; }
  .tekx-mag-strip-grid > *:last-child { display: none; }
  .tekx-mag-latest-layout { grid-template-columns: 1fr; }
  .tekx-mag-most-read { position: static; }
}

@media (max-width: 768px) {
  .tekx-post-grid { grid-template-columns: 1fr; }
  .tekx-pros-cons { grid-template-columns: 1fr; }
  .tekx-review-score-box { flex-direction: column; text-align: center; padding: var(--sp-6); }
  .tekx-buy-box { flex-direction: column; text-align: center; }
  .tekx-buy-actions { width: 100%; }
  .tekx-btn-primary, .tekx-btn-secondary { width: 100%; justify-content: center; }
  .tekx-author-box { flex-direction: column; align-items: center; text-align: center; }
  .tekx-footer-grid { grid-template-columns: 1fr; }
  .tekx-footer-brand { grid-column: auto; }
  .tekx-footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .tekx-footer-legal { flex-wrap: wrap; justify-content: center; }
  .tekx-related-grid { grid-template-columns: 1fr; }
  .main-navigation { display: none; }
  .tekx-score-bar-row { grid-template-columns: 100px 1fr 30px; }
  .tekx-mag-hero-grid { grid-template-columns: 1fr; }
  .tekx-mag-secondary { border-left: none; border-top: 1px solid var(--tekx-border); }
  .tekx-mag-lead-img-wrap { min-height: 320px; }
  .tekx-mag-featured-grid { grid-template-columns: 1fr; }
  .tekx-mag-strip-grid { grid-template-columns: 1fr; }
  .tekx-mag-strip-grid > *:not(:first-child) { display: none; }
  .tekx-mag-latest-grid { grid-template-columns: 1fr; }
  .tekx-mag-ticker-label { padding: 0 var(--sp-4); font-size: 9px; }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  .site-container, .grid-container { padding: 0 var(--sp-4); }
  .tekx-mag-lead-content { padding: var(--sp-5); }
  .tekx-mag-lead-title { font-size: 1.4rem; }
}

/* ============================================================
   GP SIDEBAR LAYOUT PRESERVATION
============================================================ */
.generate-columns-container {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  gap: 0;
}

.generate-columns-container .content-area {
  flex: 1 1 0%;
  min-width: 0;
}

.generate-columns-container .widget-area {
  flex: 0 0 auto;
  width: 300px;
  min-width: 260px;
  max-width: 340px;
  position: sticky;
  top: 88px;
  align-self: flex-start;
}

.no-sidebar .generate-columns-container .content-area {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (max-width: 900px) {
  .generate-columns-container {
    flex-wrap: wrap !important;
  }
  .generate-columns-container .content-area {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .generate-columns-container .widget-area {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    position: static;
  }
}

/* Homepage standalone layout */
body.home .generate-columns-container,
body.blog .generate-columns-container {
  display: block !important;
}

/* ============================================================
   SIDEBAR LAYOUT — .tekx-with-sidebar
   Two-column grid: main content + right sidebar
   Used by single.php and category.php
============================================================ */
.tekx-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-12);
  align-items: start;
  margin-top: var(--sp-8);
}

.tekx-main-content {
  min-width: 0; /* prevent grid blowout */
}

/* Sidebar */
.tekx-sidebar {
  position: sticky;
  top: calc(66px + var(--sp-6)); /* header height + breathing room */
}

/* Remove max-width constraints from single post elements
   when inside the sidebar layout — they should fill the column */
.tekx-with-sidebar .tekx-post-header,
.tekx-with-sidebar .entry-content,
.tekx-with-sidebar .tekx-post-tags,
.tekx-with-sidebar .tekx-author-box,
.tekx-with-sidebar .tekx-related,
.tekx-with-sidebar .tekx-review-score-box,
.tekx-with-sidebar .tekx-score-bars,
.tekx-with-sidebar .tekx-pros-cons,
.tekx-with-sidebar .tekx-verdict,
.tekx-with-sidebar .tekx-buy-box,
.tekx-with-sidebar .tekx-spec-table {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Related posts grid — 2 col inside sidebar layout */
.tekx-with-sidebar .tekx-related-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* Tablet: collapse to single column */
@media (max-width: 1024px) {
  .tekx-with-sidebar {
    grid-template-columns: 1fr 260px;
    gap: var(--sp-8);
  }
}

@media (max-width: 768px) {
  .tekx-with-sidebar {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .tekx-sidebar {
    position: static;
    border-top: 1px solid var(--tekx-border);
    padding-top: var(--sp-8);
  }
  .tekx-with-sidebar .tekx-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CATEGORY ARCHIVE HEADER
   Clean heading — no "Category" label, proper spacing,
   aligned flush with the content column below it.
============================================================ */
.tekx-cat-header {
  padding: var(--sp-12) 0 var(--sp-8);
  border-bottom: 1px solid var(--tekx-border);
  margin-bottom: 0;
}

.tekx-cat-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--tekx-black);
  margin: 0 0 var(--sp-2);
}

.tekx-cat-desc {
  font-size: var(--text-lg);
  color: var(--tekx-subtle);
  line-height: 1.65;
  margin: var(--sp-3) 0 0;
  max-width: 560px;
}

/* Push the sidebar grid down from the header */
.tekx-cat-header + .tekx-with-sidebar {
  margin-top: var(--sp-10);
}

@media (max-width: 768px) {
  .tekx-cat-header {
    padding: var(--sp-8) 0 var(--sp-6);
  }
  .tekx-cat-heading {
    font-size: var(--text-4xl);
  }
}

/* ============================================================
   SINGLE POST — in-column header & image
   Everything lives inside .tekx-main-content so heading,
   image, and body text all share the same left edge.
============================================================ */

/* Top breathing room for the whole single page */
.single-post .tekx-with-sidebar {
  margin-top: var(--sp-12);
}

/* Article header — sits at the top of the content column */
.tekx-single-header {
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--tekx-border);
}

/* Meta row: badge · date · read time */
.tekx-single-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}

/* Override old post-header styles that were centering the title */
.tekx-single-header .tekx-post-title {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

/* Featured image — fills the content column, no extra indent */
.tekx-single-image {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-10);
  aspect-ratio: 16 / 9;
}

.tekx-single-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Keep entry-content and review components flush-left in the column */
.tekx-main-content .entry-content,
.tekx-main-content .tekx-post-tags,
.tekx-main-content .tekx-author-box,
.tekx-main-content .tekx-related,
.tekx-main-content .tekx-review-score-box,
.tekx-main-content .tekx-score-bars,
.tekx-main-content .tekx-pros-cons,
.tekx-main-content .tekx-verdict,
.tekx-main-content .tekx-buy-box,
.tekx-main-content .tekx-spec-table {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 768px) {
  .single-post .tekx-with-sidebar {
    margin-top: var(--sp-8);
  }
  .tekx-single-header {
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-6);
  }
}

/* ============================================================
   SIDEBAR TAG CLOUD
   Bubble layout — 3 proportional size tiers based on post count
============================================================ */
.tekx-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-top: var(--sp-1);
}

/* Base bubble */
.tekx-tag-bubble {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border: 1.5px solid var(--tekx-border);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--tekx-mid);
  background: var(--tekx-white);
  text-decoration: none;
  line-height: 1;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}

.tekx-tag-bubble:hover {
  background: var(--tekx-black);
  color: var(--tekx-white);
  border-color: var(--tekx-black);
  transform: translateY(-1px);
  opacity: 1;
}

/* Active tag (current tag archive page) */
.tekx-tag-bubble.is-active {
  background: var(--tekx-black);
  color: var(--tekx-white);
  border-color: var(--tekx-black);
}

/* Size tiers — font-size reflects tag popularity */
.tekx-tag-sm {
  font-size: 11px;
  padding: 4px 10px;
}

.tekx-tag-md {
  font-size: var(--text-xs);
  padding: 5px 13px;
}

.tekx-tag-lg {
  font-size: var(--text-sm);
  padding: 6px 15px;
  font-weight: 600;
  border-width: 2px;
}

/* ============================================================
   TAG ARCHIVE PAGE
============================================================ */

/* Tiny label above the heading ("Tag" with icon) */
.tekx-tag-archive-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tekx-subtle);
  margin-bottom: var(--sp-3);
}

.tekx-tag-archive-label svg {
  flex-shrink: 0;
  color: var(--tekx-mid);
}

/* Reuse .tekx-cat-header spacing from category page */
.tekx-cat-header + .tekx-with-sidebar {
  margin-top: var(--sp-10);
}

/* No-results state */
.tekx-tag-no-results {
  padding: var(--sp-16) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.tekx-tag-no-results p {
  font-size: var(--text-xl);
  color: var(--tekx-subtle);
  margin: 0;
}

/* ============================================================
   INLINE POST TAGS (single.php bubble style override)
   Make the per-post tags on the article page match the
   sidebar cloud bubbles visually.
============================================================ */
.tekx-post-tags .tekx-tag {
  /* Already styled above as .tekx-tag — just ensure consistency */
  border-radius: var(--r-pill);
  font-weight: 500;
}

@media (max-width: 768px) {
  .tekx-tag-cloud {
    gap: var(--sp-2);
  }
}
