/*
 Theme Name: TecZap Child
 Template: generatepress
 Version: 2.0.0
 Description: World-class editorial redesign for TecZap.pt
*/

/* ===== GOOGLE FONTS LOADED VIA functions.php =====
   Playfair Display — dramatic serif for headlines
   DM Sans — refined geometric sans for body/UI
   JetBrains Mono — monospace accents
   ================================================= */

:root {
  /* Core palette — ink & paper with electric accent */
  --ink: #0a0a0a;
  --ink-80: #2a2a2a;
  --ink-60: #555;
  --ink-40: #888;
  --ink-20: #bbb;
  --ink-10: #ddd;
  --paper: #fafaf8;
  --paper-warm: #f5f4f0;
  --white: #fff;
  --accent: #0055ff;
  --accent-hover: #0044cc;
  --accent-glow: rgba(0, 85, 255, 0.08);

  /* Category signature colours */
  --cat-ia: #ff2d2d;
  --cat-novidades: #0055ff;
  --cat-negocios: #00a86b;
  --cat-seguranca: #8b5cf6;
  --cat-cloud: #0891b2;
  --cat-blockchain: #f59e0b;
  --cat-inovacao: #ec4899;
  --cat-fallback: #888;

  /* Typography scale (modular — ratio 1.25) */
  --text-xs: 0.694rem;
  --text-sm: 0.833rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-4xl: 3.052rem;
  --text-5xl: 3.815rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Layout */
  --content-width: 680px;
  --feed-width: 760px;
  --site-width: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.4s;
  --duration-fast: 0.2s;
}

/* ===== KILL GP DEFAULTS ===== */
/* Override ALL GeneratePress default styling that leaks through */

.inside-header,
.main-navigation,
#site-navigation,
#mobile-menu-control-wrapper,
.site-logo,
.site-branding,
.gp-icon,
.menu-toggle,
.menu-bar-items,
.inside-navigation,
#primary-menu,
.gp-search,
.gp-modal,
.gp-modal-overlay,
.site-info,
.footer-widgets,
.generate-back-to-top {
  display: none !important;
}

/* Remove GP's grid-container wrapper that breaks our layout */
.site.grid-container {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove GP's page/content wrappers */
#page {
  max-width: none !important;
  padding: 0 !important;
}

#content {
  padding: 0 !important;
}

.one-container .site-content {
  padding: 0 !important;
}

.inside-article {
  padding: 0 !important;
  margin: 0 !important;
}

/* ===== RESET & BASE ===== */

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

body,
body.wp-theme-generatepress,
body.wp-child-theme-teczap-child {
  font-family: 'DM Sans', -apple-system, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.6;
  color: var(--ink) !important;
  background: var(--paper) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

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

/* Kill all GP heading transforms */
h1, h2, h3, h4, h5, h6 {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

/* ===== LAYOUT ===== */

.site-content {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0;
}

#right-sidebar,
#left-sidebar,
.sidebar {
  display: none !important;
}

.content-area {
  width: 100% !important;
}

/* ===== HEADER — THE SIGNATURE ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
  transition: all var(--duration) var(--ease-out);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-10), transparent);
}

.site-header.scrolled {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.site-header.scrolled::after {
  left: 0;
  right: 0;
  background: var(--ink-10);
}

.teczap-header {
  max-width: var(--site-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-xl);
  height: 72px;
}

/* Logo — typographic mark */
.teczap-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
  position: relative;
}

.teczap-logo:hover {
  text-decoration: none;
  color: var(--ink);
}

.teczap-logo .dot {
  color: var(--accent);
  font-size: 2.2rem;
  line-height: 0;
  position: relative;
  top: 2px;
}

/* Navigation — refined, airy */
.teczap-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.teczap-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-40);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}

.teczap-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width var(--duration) var(--ease-out);
  border-radius: 1px;
}

.teczap-nav a:hover,
.teczap-nav a.active {
  color: var(--ink);
  text-decoration: none;
}

.teczap-nav a:hover::after,
.teczap-nav a.active::after {
  width: 100%;
}

/* Category-specific active colours */
.teczap-nav a[data-cat="ia"].active { color: var(--cat-ia); }
.teczap-nav a[data-cat="novidades"].active { color: var(--cat-novidades); }
.teczap-nav a[data-cat="negocios"].active { color: var(--cat-negocios); }
.teczap-nav a[data-cat="seguranca"].active { color: var(--cat-seguranca); }
.teczap-nav a[data-cat="blockchain"].active { color: var(--cat-blockchain); }
.teczap-nav a[data-cat="cloud"].active { color: var(--cat-cloud); }
.teczap-nav a[data-cat="inovacao"].active { color: var(--cat-inovacao); }

/* Search button */
.teczap-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink-40);
  transition: all var(--duration-fast) var(--ease-out);
  border-radius: 50%;
}

.teczap-search-toggle:hover {
  color: var(--ink);
  background: var(--accent-glow);
}

.teczap-search-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke-width: 1.5;
}

/* ===== SEARCH OVERLAY — CINEMATIC ===== */

.teczap-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: searchFadeIn 0.3s var(--ease-out);
}

@keyframes searchFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.teczap-search-overlay.active {
  display: flex;
}

.teczap-search-form {
  width: 100%;
  max-width: 640px;
  padding: 0 var(--space-xl);
  animation: searchSlideUp 0.4s var(--ease-out) 0.1s both;
}

@keyframes searchSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.teczap-search-form input[type="search"] {
  width: 100%;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-3xl);
  font-weight: 400;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  padding: 16px 0;
  background: transparent;
  color: #fff;
  outline: none;
  transition: border-color var(--duration) var(--ease-out);
  caret-color: var(--accent);
}

.teczap-search-form input[type="search"]:focus {
  border-bottom-color: var(--accent);
}

.teczap-search-form input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.teczap-search-close {
  position: absolute;
  top: 28px;
  right: 32px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out);
}

.teczap-search-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ===== HERO — CINEMATIC OPENER ===== */

.tz-hero {
  position: relative;
  margin-bottom: var(--space-3xl);
}

.tz-hero-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  min-height: 480px;
}

.tz-hero-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.tz-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.tz-hero:hover .tz-hero-image img {
  transform: scale(1.03);
}

.tz-hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.03), transparent);
  pointer-events: none;
}

.tz-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  pointer-events: none;
}

.tz-hero-content {
  padding: var(--space-xl) 0;
}

.tz-hero-content .teczap-article-cat {
  margin-bottom: var(--space-lg);
}

.tz-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-4xl);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  color: var(--ink);
}

.tz-hero-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

.tz-hero:hover .tz-hero-title a {
  color: var(--accent);
}

.tz-hero-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--ink-60);
  margin-bottom: var(--space-lg);
  max-width: 440px;
}

.tz-hero-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: var(--ink-20);
  letter-spacing: 0.02em;
}

.tz-hero-meta .sep {
  margin: 0 6px;
  color: var(--ink-10);
}

/* Hero entrance animation */
.tz-hero-image {
  animation: heroImageIn 1s var(--ease-out) 0.1s both;
}

.tz-hero-content {
  animation: fadeUp 0.8s var(--ease-out) 0.3s both;
}

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateX(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

/* ===== SECTION LABELS — EDITORIAL DIVIDERS ===== */

.tz-section-label {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  max-width: var(--feed-width);
  margin: 0 auto var(--space-xl);
  padding: 0 var(--space-xl);
}

.tz-label-line {
  flex: 1;
  height: 1px;
  background: var(--ink-10);
}

.tz-label-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-40);
  white-space: nowrap;
}

/* ===== FEATURED GRID — 3 CARDS ===== */

.tz-featured {
  max-width: var(--site-width);
  margin: 0 auto var(--space-3xl);
  padding: 0;
}

.tz-featured-grid {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.tz-featured-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--ink-10);
  transition: all var(--duration) var(--ease-out);
  animation: fadeUp 0.6s var(--ease-out) both;
}

.tz-featured-card:nth-child(1) { animation-delay: 0.1s; }
.tz-featured-card:nth-child(2) { animation-delay: 0.2s; }
.tz-featured-card:nth-child(3) { animation-delay: 0.3s; }

.tz-featured-card:hover {
  text-decoration: none;
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  border-color: transparent;
}

.tz-featured-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.tz-featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.tz-featured-card:hover .tz-featured-card-image img {
  transform: scale(1.06);
}

.tz-featured-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.tz-featured-card-body .teczap-article-cat {
  align-self: flex-start;
}

.tz-featured-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex: 1;
  transition: color var(--duration-fast) var(--ease-out);
}

.tz-featured-card:hover .tz-featured-card-title {
  color: var(--accent);
}

.tz-featured-card-body .teczap-article-meta {
  margin-top: auto;
}

/* ===== FEED SECTION WRAPPER ===== */

.tz-feed-section {
  max-width: var(--site-width);
  margin: 0 auto;
}

/* ===== FEED — EDITORIAL RHYTHM ===== */

.teczap-feed {
  max-width: var(--feed-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-xl) var(--space-3xl);
}

/* Individual article card */
.teczap-article {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--ink-10);
  position: relative;
  transition: transform var(--duration) var(--ease-out);
}

.teczap-article:first-child {
  padding-top: 0;
}

.teczap-article:last-child {
  border-bottom: none;
}

/* Hover lift — subtle elegance */
.teczap-article:hover {
  transform: translateX(4px);
}

.teczap-article-text {
  min-width: 0;
}

/* Category label — accented pill */
.teczap-article-cat {
  font-family: 'JetBrains Mono', 'DM Sans', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
  display: inline-block;
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 3px;
  background: currentColor;
  position: relative;
}

.teczap-article-cat::before {
  content: attr(data-label);
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}

/* Override the text color with the background approach */
.teczap-article-cat {
  color: transparent;
  overflow: hidden;
}

/* Category colour classes — used as background via currentColor trick */
.cat-color-ia { color: var(--cat-ia) !important; }
.cat-color-novidades { color: var(--cat-novidades) !important; }
.cat-color-negocios { color: var(--cat-negocios) !important; }
.cat-color-seguranca { color: var(--cat-seguranca) !important; }
.cat-color-cloud { color: var(--cat-cloud) !important; }
.cat-color-blockchain { color: var(--cat-blockchain) !important; }
.cat-color-inovacao { color: var(--cat-inovacao) !important; }
.cat-color-fallback { color: var(--cat-fallback) !important; }

/* Actually, let's simplify — use proper background classes */
.teczap-article-cat {
  color: var(--white) !important;
  background: var(--cat-fallback);
}

.teczap-article-cat.cat-color-ia { background: var(--cat-ia) !important; color: #fff !important; }
.teczap-article-cat.cat-color-novidades { background: var(--cat-novidades) !important; color: #fff !important; }
.teczap-article-cat.cat-color-negocios { background: var(--cat-negocios) !important; color: #fff !important; }
.teczap-article-cat.cat-color-seguranca { background: var(--cat-seguranca) !important; color: #fff !important; }
.teczap-article-cat.cat-color-cloud { background: var(--cat-cloud) !important; color: #fff !important; }
.teczap-article-cat.cat-color-blockchain { background: var(--cat-blockchain) !important; color: #fff !important; }
.teczap-article-cat.cat-color-inovacao { background: var(--cat-inovacao) !important; color: #fff !important; }
.teczap-article-cat.cat-color-fallback { background: var(--cat-fallback) !important; color: #fff !important; }

.teczap-article-cat:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* Article title */
.teczap-article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.teczap-article-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.teczap-article:hover .teczap-article-title a {
  color: var(--accent);
}

/* Excerpt */
.teczap-article-excerpt {
  font-size: var(--text-sm);
  color: var(--ink-60);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta */
.teczap-article-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: var(--ink-20);
  letter-spacing: 0.02em;
}

/* Thumbnail */
.teczap-article-thumb {
  width: 140px;
  height: 105px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--paper-warm);
  position: relative;
}

.teczap-article-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.teczap-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration) var(--ease-out);
}

.teczap-article:hover .teczap-article-thumb img {
  transform: scale(1.05);
}

/* (Hero treatment now in .tz-hero section above) */

/* ===== PAGINATION ===== */

.teczap-pagination {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-2xl);
}

.teczap-pagination .nav-links {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.teczap-pagination .nav-links a,
.teczap-pagination .nav-links span {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--ink-10);
  border-radius: 6px;
  color: var(--ink-60);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.teczap-pagination .nav-links a:hover {
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.teczap-pagination .nav-links .current {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* ===== SINGLE POST — IMMERSIVE READING ===== */

.teczap-single {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

.teczap-single .entry-header {
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.teczap-single .entry-header .teczap-article-cat {
  margin-bottom: var(--space-lg);
}

.teczap-single .entry-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-4xl);
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 var(--space-lg);
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.teczap-single .entry-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: var(--ink-40);
  letter-spacing: 0.03em;
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.teczap-single .entry-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.teczap-single .featured-image {
  margin: 0 calc(-1 * var(--space-xl)) var(--space-2xl);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.teczap-single .featured-image img {
  width: 100%;
  border-radius: 12px;
  height: auto;
}

/* Article body — beautiful reading experience */
.teczap-single .entry-content {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: var(--text-md);
  line-height: 1.8;
  color: var(--ink-80);
}

.teczap-single .entry-content p {
  margin-bottom: 1.75em;
}

.teczap-single .entry-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 3em 0 1em;
  color: var(--ink);
  letter-spacing: -0.02em;
  position: relative;
  padding-top: var(--space-xl);
}

.teczap-single .entry-content h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.teczap-single .entry-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 2.5em 0 0.8em;
  color: var(--ink);
}

.teczap-single .entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
  background: var(--accent-glow);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--ink-60);
  font-size: var(--text-base);
  line-height: 1.7;
}

.teczap-single .entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.teczap-single .entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: all var(--duration-fast) var(--ease-out);
}

.teczap-single .entry-content a:hover {
  text-decoration-thickness: 2px;
  color: var(--accent-hover);
}

.teczap-single .entry-content img {
  border-radius: 10px;
  margin: var(--space-xl) 0;
}

.teczap-single .entry-content figure {
  margin: var(--space-xl) 0;
}

.teczap-single .entry-content figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: var(--ink-40);
  margin-top: var(--space-sm);
  text-align: center;
}

/* Blockquote category-specific border colours */
.single-cat-ia .teczap-single .entry-content blockquote { border-left-color: var(--cat-ia); background: rgba(255,45,45,0.05); }
.single-cat-novidades .teczap-single .entry-content blockquote { border-left-color: var(--cat-novidades); background: var(--accent-glow); }
.single-cat-negocios .teczap-single .entry-content blockquote { border-left-color: var(--cat-negocios); background: rgba(0,168,107,0.05); }
.single-cat-seguranca .teczap-single .entry-content blockquote { border-left-color: var(--cat-seguranca); background: rgba(139,92,246,0.05); }
.single-cat-cloud .teczap-single .entry-content blockquote { border-left-color: var(--cat-cloud); }
.single-cat-blockchain .teczap-single .entry-content blockquote { border-left-color: var(--cat-blockchain); }
.single-cat-inovacao .teczap-single .entry-content blockquote { border-left-color: var(--cat-inovacao); }

/* Tags */
.teczap-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--ink-10);
}

.teczap-tags a {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  background: var(--paper-warm);
  color: var(--ink-60);
  padding: 5px 14px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all var(--duration-fast) var(--ease-out);
}

.teczap-tags a:hover {
  border-color: var(--ink-10);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Related articles */
.teczap-related {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--ink-10);
}

.teczap-related h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-40);
  margin-bottom: var(--space-xl);
}

.teczap-related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.teczap-related-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.teczap-related-item .thumb {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-warm);
  position: relative;
}

.teczap-related-item .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.teczap-related-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration) var(--ease-out);
}

.teczap-related-item:hover .thumb img {
  transform: scale(1.05);
}

.teczap-related-item .info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.teczap-related-item .info .teczap-article-cat {
  font-size: 0.6rem;
  margin-bottom: 2px;
  align-self: flex-start;
}

.teczap-related-item .info .title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.teczap-related-item .info .title a {
  color: inherit;
  text-decoration: none;
}

.teczap-related-item:hover .info .title a {
  color: var(--accent);
}

/* ===== FOOTER — REFINED ===== */

.teczap-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.5);
  padding: var(--space-3xl) var(--space-xl) var(--space-xl);
  margin-top: var(--space-3xl);
  position: relative;
}

.teczap-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.teczap-footer-grid {
  max-width: var(--feed-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: var(--space-2xl);
}

.teczap-footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: var(--space-lg);
}

.teczap-footer p {
  font-size: var(--text-sm);
  line-height: 1.6;
}

.teczap-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.teczap-footer li {
  padding: 4px 0;
}

.teczap-footer li a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.teczap-footer li a:hover {
  color: #fff;
}

.teczap-newsletter {
  display: flex;
  gap: 8px;
  margin-top: var(--space-md);
}

.teczap-newsletter input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: var(--text-sm);
  font-family: 'DM Sans', sans-serif;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.teczap-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.teczap-newsletter input:focus {
  outline: none;
  border-color: var(--accent);
}

.teczap-newsletter button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--duration-fast) var(--ease-out);
}

.teczap-newsletter button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 85, 255, 0.3);
}

/* FluentForms in footer */
.teczap-footer-newsletter .fluentform {
  margin-top: var(--space-md);
}

.teczap-footer-newsletter .ff-el-group {
  margin-bottom: 0 !important;
}

.teczap-footer-newsletter .ff-el-input--label {
  display: none !important;
}

.teczap-footer-newsletter .ff-el-form--top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.teczap-footer-newsletter .ff-el-input--content {
  flex: 1;
  min-width: 0;
}

.teczap-footer-newsletter input[type="email"] {
  width: 100% !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  font-size: var(--text-sm) !important;
  font-family: 'DM Sans', sans-serif !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  transition: border-color var(--duration-fast) var(--ease-out) !important;
}

.teczap-footer-newsletter input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
}

.teczap-footer-newsletter input[type="email"]:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: none !important;
}

.teczap-footer-newsletter .ff_submit_btn_wrapper {
  margin-top: 0 !important;
}

.teczap-footer-newsletter button[type="submit"],
.teczap-footer-newsletter .ff-btn-submit {
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 10px 20px !important;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  font-family: 'DM Sans', sans-serif !important;
  transition: all var(--duration-fast) var(--ease-out) !important;
  white-space: nowrap;
}

.teczap-footer-newsletter button[type="submit"]:hover,
.teczap-footer-newsletter .ff-btn-submit:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 85, 255, 0.3);
}

/* Success message styling */
.teczap-footer-newsletter .ff-message-success {
  color: #22c55e !important;
  font-size: var(--text-sm) !important;
  padding: var(--space-sm) 0 !important;
  background: none !important;
  border: none !important;
}

/* Error message styling */
.teczap-footer-newsletter .error.text-danger {
  color: #ef4444 !important;
  font-size: var(--text-xs) !important;
  margin-top: 4px;
}

.teczap-footer-bottom {
  max-width: var(--feed-width);
  margin: var(--space-2xl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.05em;
}

/* ===== CATEGORY ARCHIVE HEADER ===== */

.teczap-cat-header {
  max-width: var(--feed-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl) 0;
  text-align: center;
}

.teczap-cat-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-4xl);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.teczap-cat-header .description {
  font-size: var(--text-base);
  color: var(--ink-40);
  margin-top: var(--space-sm);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Category-specific title colours */
.teczap-cat-header h1.cat-color-ia { color: var(--cat-ia) !important; }
.teczap-cat-header h1.cat-color-novidades { color: var(--cat-novidades) !important; }
.teczap-cat-header h1.cat-color-negocios { color: var(--cat-negocios) !important; }
.teczap-cat-header h1.cat-color-seguranca { color: var(--cat-seguranca) !important; }
.teczap-cat-header h1.cat-color-cloud { color: var(--cat-cloud) !important; }
.teczap-cat-header h1.cat-color-blockchain { color: var(--cat-blockchain) !important; }
.teczap-cat-header h1.cat-color-inovacao { color: var(--cat-inovacao) !important; }

/* ===== SEARCH RESULTS ===== */

.teczap-search-header {
  max-width: var(--feed-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl) 0;
  text-align: center;
}

.teczap-search-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-3xl);
  font-weight: 700;
}

/* ===== ENTRANCE ANIMATIONS ===== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.teczap-article {
  animation: fadeUp 0.6s var(--ease-out) both;
}

.teczap-article:nth-child(1) { animation-delay: 0s; }
.teczap-article:nth-child(2) { animation-delay: 0.06s; }
.teczap-article:nth-child(3) { animation-delay: 0.12s; }
.teczap-article:nth-child(4) { animation-delay: 0.18s; }
.teczap-article:nth-child(5) { animation-delay: 0.24s; }
.teczap-article:nth-child(6) { animation-delay: 0.3s; }
.teczap-article:nth-child(7) { animation-delay: 0.36s; }
.teczap-article:nth-child(8) { animation-delay: 0.42s; }
.teczap-article:nth-child(n+9) { animation-delay: 0.48s; }

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  :root {
    --text-3xl: 2rem;
    --text-4xl: 2.4rem;
    --text-5xl: 2.8rem;
  }

  .teczap-header {
    padding: 0 var(--space-md);
    height: 60px;
  }

  .teczap-nav {
    display: none;
  }

  .teczap-feed {
    padding: var(--space-lg) var(--space-md) var(--space-2xl);
  }

  /* Hero mobile */
  .tz-hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    min-height: auto;
    padding: var(--space-md);
  }

  .tz-hero-image {
    aspect-ratio: 16/9;
  }

  .tz-hero-title {
    font-size: var(--text-2xl);
  }

  .tz-hero-content {
    padding: 0;
  }

  /* Featured grid mobile */
  .tz-featured-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: 0 var(--space-md);
  }

  .tz-featured-card {
    flex-direction: row;
    border-radius: 10px;
  }

  .tz-featured-card-image {
    width: 120px;
    aspect-ratio: 1;
    flex-shrink: 0;
  }

  .tz-featured-card-body {
    padding: var(--space-md);
  }

  .tz-featured-card-title {
    font-size: var(--text-base);
  }

  /* Feed mobile */
  .teczap-article {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .teczap-article .teczap-article-thumb {
    display: none;
  }

  .teczap-single {
    padding: var(--space-xl) var(--space-md);
  }

  .teczap-single .entry-title {
    font-size: var(--text-2xl);
  }

  .teczap-single .featured-image {
    margin: 0 calc(-1 * var(--space-md)) var(--space-xl);
  }

  .teczap-footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .teczap-related-list {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .teczap-search-form input[type="search"] {
    font-size: var(--text-xl);
  }
}

@media (max-width: 480px) {
  .teczap-single .entry-header {
    text-align: left;
  }

  .teczap-single .entry-meta {
    justify-content: flex-start;
  }

  .teczap-cat-header,
  .teczap-search-header {
    text-align: left;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

/* ===== SUBTLE GRAIN TEXTURE ===== */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.015;
  pointer-events: none;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ===== SELECTION ===== */

::selection {
  background: var(--accent);
  color: #fff;
}

::-moz-selection {
  background: var(--accent);
  color: #fff;
}

/* ===== SCROLLBAR ===== */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--ink-20);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ink-40);
}

/* ===== HEADER ACTIONS ===== */

.teczap-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== HAMBURGER MENU ===== */

.teczap-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background var(--duration-fast) var(--ease-out);
}

.teczap-menu-toggle:hover {
  background: var(--accent-glow);
}

.teczap-menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: all var(--duration) var(--ease-out);
  transform-origin: center;
}

.teczap-menu-toggle span:nth-child(1) { width: 20px; }
.teczap-menu-toggle span:nth-child(2) { width: 16px; }
.teczap-menu-toggle span:nth-child(3) { width: 12px; }

.teczap-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
  width: 20px;
}
.teczap-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}
.teczap-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
  width: 20px;
}

/* ===== MOBILE NAV DRAWER ===== */

.teczap-mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  z-index: 999;
  flex-direction: column;
  padding: var(--space-2xl) var(--space-xl);
  gap: 0;
  transform: translateY(-10px);
  opacity: 0;
  transition: all var(--duration) var(--ease-out);
  pointer-events: none;
}

.teczap-mobile-nav.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.teczap-mobile-nav a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--ink-10);
  transition: all var(--duration-fast) var(--ease-out);
}

.teczap-mobile-nav a:last-child {
  border-bottom: none;
}

.teczap-mobile-nav a:hover {
  text-decoration: none;
  padding-left: var(--space-md);
}

.teczap-mobile-nav a[data-cat="ia"]:hover { color: var(--cat-ia); }
.teczap-mobile-nav a[data-cat="novidades"]:hover { color: var(--cat-novidades); }
.teczap-mobile-nav a[data-cat="negocios"]:hover { color: var(--cat-negocios); }
.teczap-mobile-nav a[data-cat="seguranca"]:hover { color: var(--cat-seguranca); }
.teczap-mobile-nav a[data-cat="blockchain"]:hover { color: var(--cat-blockchain); }
.teczap-mobile-nav a[data-cat="cloud"]:hover { color: var(--cat-cloud); }
.teczap-mobile-nav a[data-cat="inovacao"]:hover { color: var(--cat-inovacao); }

/* ===== SEARCH OVERLAY ENHANCEMENTS ===== */

.teczap-search-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: var(--space-lg);
}

.teczap-search-hint {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.2);
  margin-top: var(--space-lg);
  letter-spacing: 0.03em;
}

/* ===== META SEPARATORS ===== */

.teczap-article-meta .sep {
  color: var(--ink-10);
  margin: 0 2px;
}

.teczap-single .entry-meta .meta-sep {
  color: var(--ink-20);
  margin: 0 4px;
}

/* ===== FEED ARTICLE THUMB ORDER ===== */
/* Thumb comes before text in HTML, text should be first visually */

.teczap-article .teczap-article-thumb {
  order: 1;
}

.teczap-article .teczap-article-text {
  order: 0;
}

/* ===== PAGE TEMPLATE ===== */

.teczap-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

.teczap-page .entry-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-4xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.teczap-page .entry-content {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-md);
  line-height: 1.8;
  color: var(--ink-80);
}

.teczap-page .entry-content p {
  margin-bottom: 1.75em;
}

.teczap-page .entry-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-2xl);
  margin: 2.5em 0 1em;
}

.teczap-page .entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== RESPONSIVE MOBILE ===== */

@media (max-width: 768px) {
  .teczap-menu-toggle {
    display: flex;
  }

  .teczap-article:first-child .teczap-article-title {
    font-size: var(--text-2xl);
  }

  .teczap-article:first-child .teczap-article-thumb {
    height: 220px;
  }

  .teczap-single .entry-header {
    text-align: left;
  }

  .teczap-single .entry-meta {
    justify-content: flex-start;
  }

  .teczap-single .entry-title {
    font-size: var(--text-2xl);
  }

  .teczap-page .entry-title {
    font-size: var(--text-2xl);
    text-align: left;
  }
}

/* ===== ADSENSE AUTO ADS STYLING ===== */
/*
 * Google Auto Ads injects containers dynamically.
 * These styles ensure injected ads integrate with the editorial design
 * without breaking layout or causing CLS.
 */

/* AdSense containers — blend with editorial spacing */
.adsbygoogle {
  display: block;
  max-width: 100%;
}

/* In-article ads (Google injects these inside .entry-content) */
.teczap-single .entry-content ins.adsbygoogle {
  margin: var(--space-xl) calc(-1 * var(--space-md));
  padding: var(--space-md) 0;
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
}

/* In-feed ads (Google injects between article elements) */
.teczap-feed ins.adsbygoogle,
.teczap-feed .adsbygoogle-noablate {
  margin: var(--space-md) 0;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
}

/* Anchor ads (sticky bottom) — don't overlap footer */
div[id^="google_ads_iframe"][style*="bottom"] {
  z-index: 99 !important;
}

/* Vignette/interstitial — no style override needed, Google handles it */

/* Prevent ads from breaking the hero section */
.tz-hero ins.adsbygoogle,
.tz-hero .adsbygoogle-noablate {
  display: none !important;
}

/* Prevent ads in header/footer */
.site-header ins.adsbygoogle,
.teczap-footer ins.adsbygoogle,
.teczap-header ins.adsbygoogle {
  display: none !important;
}

/* Ensure ad containers don't break grid layouts */
.tz-featured-grid ins.adsbygoogle,
.tz-featured-grid .adsbygoogle-noablate {
  display: none !important;
}

/* Auto ads responsive sizing */
@media (max-width: 768px) {
  .teczap-single .entry-content ins.adsbygoogle {
    margin-left: calc(-1 * var(--space-sm));
    margin-right: calc(-1 * var(--space-sm));
  }
}

/* ===== READING PROGRESS BAR ===== */

.tz-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 1001;
  transition: transform 0.15s linear;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 85, 255, 0.4);
}

/* ===== SCROLL REVEAL ===== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger reveals */
.reveal-on-scroll:nth-child(2) { transition-delay: 0.05s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.1s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.15s; }
.reveal-on-scroll:nth-child(5) { transition-delay: 0.2s; }

/* ===== LINK HOVER UNDERLINE ANIMATION ===== */

.teczap-single .entry-content a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  text-decoration: none;
  transition: background-size var(--duration) var(--ease-out), color var(--duration-fast);
}

.teczap-single .entry-content a:hover {
  background-size: 100% 2px;
  text-decoration: none;
}

/* ===== PRINT ===== */

@media print {
  .site-header,
  .teczap-footer,
  .teczap-search-overlay,
  .teczap-tags,
  .teczap-related,
  .teczap-pagination {
    display: none !important;
  }

  body::before {
    display: none;
  }
}
