/* Tea Encyclopedia — Frontend Styles
   Inherits --tl-* CSS vars from the Пуер4You theme */

/* ═══ ARCHIVE ═══ */

.tea-enc-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(96px, 12vw, 130px) var(--tl-gutter, 1.5rem) 5rem;
}

/* Hero */
.tea-enc-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.tea-enc-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 600;
  color: var(--tl-text, #f5efe6);
  margin: .5rem 0 .75rem;
  line-height: 1.15;
}

.tea-enc-hero-sub {
  font-size: .95rem;
  color: var(--tl-text-2, rgba(245,239,230,.55));
  max-width: 480px;
  margin: 0 auto;
}

/* Section filter tabs */
.tea-enc-section-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.tea-enc-section-tab {
  padding: .4rem 1.1rem;
  border: 1px solid var(--tl-border, rgba(160,120,48,.22));
  border-radius: 20px;
  font-family: 'Manrope', sans-serif;
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--tl-text-2, rgba(245,239,230,.55));
  text-decoration: none;
  transition: border-color .25s, color .25s, background .25s;
}

.tea-enc-section-tab:hover,
.tea-enc-section-tab.active {
  border-color: var(--tl-gold-lt, #d4a843);
  color: var(--tl-gold-lt, #d4a843);
  background: rgba(212,168,67,.06);
}

/* Cards grid */
.tea-enc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.tea-enc-card {
  background: var(--tl-surface, rgba(255,255,255,.035));
  border: 1px solid var(--tl-border, rgba(160,120,48,.22));
  border-radius: var(--tl-radius, 12px);
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}

.tea-enc-card:hover {
  border-color: rgba(212,168,67,.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
}

.tea-enc-card-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.tea-enc-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.tea-enc-card:hover .tea-enc-card-thumb img {
  transform: scale(1.05);
}

.tea-enc-card-body {
  padding: 1.25rem 1.4rem 1.4rem;
}

.tea-enc-card-section {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tl-gold-lt, #d4a843);
  text-decoration: none;
  margin-bottom: .5rem;
}

.tea-enc-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 .6rem;
  line-height: 1.25;
}

.tea-enc-card-title a {
  color: var(--tl-text, #f5efe6);
  text-decoration: none;
}

.tea-enc-card-title a:hover {
  color: var(--tl-gold-lt, #d4a843);
}

.tea-enc-card-excerpt {
  font-size: .85rem;
  color: var(--tl-text-2, rgba(245,239,230,.55));
  margin: 0 0 .9rem;
  line-height: 1.55;
}

.tea-enc-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .9rem;
}

.tea-enc-read-link {
  font-family: 'Manrope', sans-serif;
  font-size: .75rem;
  letter-spacing: .12em;
  color: var(--tl-gold-lt, #d4a843);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity .2s;
}

.tea-enc-read-link:hover { opacity: .7; }

.tea-enc-empty {
  text-align: center;
  padding: 4rem var(--tl-gutter, 1.5rem);
  color: var(--tl-text-2, rgba(245,239,230,.55));
}

/* ═══ PILLS ═══ */

.tea-enc-pill {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .7rem;
  background: rgba(212,168,67,.1);
  border: 1px solid rgba(212,168,67,.3);
  border-radius: 20px;
  font-family: 'Manrope', sans-serif;
  font-size: .7rem;
  color: var(--tl-gold-lt, #d4a843);
  white-space: nowrap;
}

/* ═══ SINGLE ═══ */

.tea-enc-single {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(96px, 12vw, 130px) var(--tl-gutter, 1.5rem) 5rem;
}

/* Breadcrumb */
.tea-enc-breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  font-family: 'Manrope', sans-serif;
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--tl-text-2, rgba(245,239,230,.45));
  margin-bottom: 2rem;
}

.tea-enc-breadcrumb a {
  color: var(--tl-text-2, rgba(245,239,230,.45));
  text-decoration: none;
  transition: color .2s;
}

.tea-enc-breadcrumb a:hover { color: var(--tl-gold-lt, #d4a843); }

/* Hero */
.tea-enc-single-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tenc-single-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tea-enc-single-section {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tl-gold-lt, #d4a843);
  text-decoration: none;
  margin-bottom: .6rem;
}

.tea-enc-single-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--tl-text, #f5efe6);
  margin: 0 0 1rem;
  line-height: 1.15;
}

.tea-enc-single-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

/* Quick params bar */
.tea-enc-params-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--tl-surface, rgba(255,255,255,.035));
  border: 1px solid var(--tl-border, rgba(160,120,48,.22));
  border-radius: var(--tl-radius, 12px);
  padding: 1.1rem 1.5rem;
  margin-bottom: 2rem;
}

.tea-enc-param {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  min-width: 80px;
  flex: 1;
}

.tea-enc-param-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.tea-enc-param-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--tl-gold-lt, #d4a843);
}

.tea-enc-param-label {
  font-family: 'Manrope', sans-serif;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tl-text-2, rgba(245,239,230,.45));
}

/* Main content */
.tea-enc-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--tl-text, #f5efe6);
  margin-bottom: 3rem;
}

.tea-enc-content p { margin: 0 0 1.1rem; }

.tea-enc-content h2,
.tea-enc-content h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--tl-gold-lt, #d4a843);
  margin: 1.5rem 0 .6rem;
}

.tea-enc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .92rem;
}

.tea-enc-content th,
.tea-enc-content td {
  text-align: left;
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--tl-border, rgba(199,154,85,.15));
}

.tea-enc-content th {
  font-family: 'Manrope', sans-serif;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tl-gold-lt, #d4a843);
  border-bottom: 2px solid rgba(199,154,85,.4);
}

.tea-enc-content tbody tr:last-child td { border-bottom: none; }

/* ═══ INFUSIONS TIMELINE ═══ */

.tea-enc-timeline {
  margin-bottom: 3rem;
}

.tea-enc-section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--tl-text, #f5efe6);
  margin: 0 0 1.25rem;
}

.tea-enc-timeline-track {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  position: relative;
}

.tenc-inf-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  flex: 1;
  min-width: 70px;
  max-width: 110px;
}

.tea-enc-timeline-cup {
  width: 52px;
  height: 52px;
  border-radius: 50% 50% 45% 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform .25s;
}

.tenc-inf-btn {
  cursor: pointer;
}
.tenc-inf-btn:hover .tea-enc-timeline-cup,
.tenc-inf-btn.is-active .tea-enc-timeline-cup {
  transform: scale(1.12);
}
.tenc-inf-btn.is-active .tea-enc-timeline-cup {
  box-shadow: 0 0 0 3px rgba(199,154,85,0.5), 0 4px 16px rgba(0,0,0,.3);
}

/* Timeline detail panel */
.tenc-inf-panel { display: none; }
.tenc-inf-panel.is-active {
  display: block;
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--tl-surface, rgba(255,255,255,.035));
  border: 1px solid var(--tl-border, rgba(160,120,48,.22));
  border-radius: var(--tl-radius, 12px);
  gap: 1rem;
  align-items: flex-start;
  animation: tencPanelIn 0.3s ease;
}
@keyframes tencPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tenc-inf-panel-color {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tenc-inf-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  line-height: 1;
  pointer-events: none;
}
.tenc-inf-panel-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tenc-inf-panel-time {
  font-family: 'Manrope', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  color: var(--tl-gold-lt, #d4a843);
}
.tenc-inf-panel-taste {
  font-size: .9rem;
  color: var(--tl-text, #f5efe6);
  margin: 0;
}
.tenc-inf-panel-advice {
  font-size: .8rem;
  color: var(--tl-text-2, rgba(245,239,230,.55));
  margin: 0;
}

.tea-enc-timeline-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  text-align: center;
}

.tea-enc-timeline-time {
  font-family: 'Manrope', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  color: var(--tl-gold-lt, #d4a843);
}

.tea-enc-timeline-note {
  font-size: .65rem;
  color: var(--tl-text-2, rgba(245,239,230,.45));
  line-height: 1.3;
}

/* ═══ INFO BLOCKS ═══ */

.tea-enc-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.tea-enc-block {
  background: var(--tl-surface, rgba(255,255,255,.035));
  border: 1px solid var(--tl-border, rgba(160,120,48,.22));
  border-radius: var(--tl-radius, 12px);
  padding: 1.4rem 1.5rem;
}

.tea-enc-block--spiritual { border-color: rgba(147,130,200,.3); }
.tea-enc-block--benefits  { border-color: rgba(100,180,120,.3); }
.tea-enc-block--choosing  { border-color: rgba(212,168,67,.3);  }

.tea-enc-block-icon {
  font-size: 1.6rem;
  margin-bottom: .5rem;
  line-height: 1;
}

.tea-enc-block-title {
  font-family: 'Manrope', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tl-gold-lt, #d4a843);
  margin: 0 0 .6rem;
}

.tea-enc-block p {
  font-size: .85rem;
  color: var(--tl-text-2, rgba(245,239,230,.65));
  line-height: 1.6;
  margin: 0;
}

/* Brewing notes */
.tea-enc-brew-notes {
  background: rgba(212,168,67,.05);
  border: 1px solid rgba(212,168,67,.25);
  border-radius: var(--tl-radius, 12px);
  padding: 1.4rem 1.5rem;
  margin-bottom: 2.5rem;
}

.tea-enc-brew-notes p {
  font-size: .9rem;
  color: var(--tl-text-2, rgba(245,239,230,.7));
  line-height: 1.6;
  margin: .4rem 0 0;
}

/* ═══ RELATED ARTICLES ═══ */

.tea-enc-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--tl-border, rgba(160,120,48,.22));
}

.tea-enc-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .tea-enc-related-grid { grid-template-columns: 1fr 1fr; }
}

.tea-enc-related-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--tl-border, rgba(160,120,48,.22));
  transition: border-color .25s, transform .25s;
}

.tea-enc-related-card:hover {
  border-color: rgba(212,168,67,.45);
  transform: translateY(-2px);
}

.tea-enc-related-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.tea-enc-related-title {
  padding: .5rem .7rem .6rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tl-text, #f5efe6);
  line-height: 1.25;
}

/* ═══ SHORTCODE GRID ═══ */

.tea-enc-shortcode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.tea-enc-sc-card {
  background: var(--tl-surface, rgba(255,255,255,.035));
  border: 1px solid var(--tl-border, rgba(160,120,48,.22));
  border-radius: var(--tl-radius, 12px);
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}

.tea-enc-sc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212,168,67,.45);
}

.tea-enc-sc-thumb { display: block; }
.tea-enc-sc-img   { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

.tea-enc-sc-body {
  padding: 1rem 1.25rem 1.25rem;
}

.tea-enc-sc-section {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tl-gold-lt, #d4a843);
  margin-bottom: .4rem;
}

.tea-enc-sc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 .45rem;
}

.tea-enc-sc-title a { color: var(--tl-text, #f5efe6); text-decoration: none; }
.tea-enc-sc-title a:hover { color: var(--tl-gold-lt, #d4a843); }

.tea-enc-sc-excerpt {
  font-size: .8rem;
  color: var(--tl-text-2, rgba(245,239,230,.55));
  line-height: 1.5;
  margin: 0 0 .75rem;
}

.tea-enc-sc-link {
  font-family: 'Manrope', sans-serif;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tl-gold-lt, #d4a843);
  text-decoration: none;
}

/* ═══ LIGHT THEME OVERRIDES ═══ */

[data-theme="light"] .tea-enc-hero-title,
[data-theme="light"] .tea-enc-single-title,
[data-theme="light"] .tea-enc-section-heading,
[data-theme="light"] .tea-enc-card-title a,
[data-theme="light"] .tea-enc-block-title,
[data-theme="light"] .tea-enc-related-title,
[data-theme="light"] .tea-enc-sc-title a {
  color: #2c1f0e;
}

[data-theme="light"] .tea-enc-hero-sub,
[data-theme="light"] .tea-enc-card-excerpt,
[data-theme="light"] .tea-enc-timeline-note,
[data-theme="light"] .tea-enc-block p,
[data-theme="light"] .tea-enc-brew-notes p,
[data-theme="light"] .tea-enc-sc-excerpt {
  color: rgba(44,31,14,.6);
}

[data-theme="light"] .tea-enc-card,
[data-theme="light"] .tea-enc-block,
[data-theme="light"] .tea-enc-params-bar,
[data-theme="light"] .tea-enc-sc-card {
  background: rgba(255,255,255,.8);
  border-color: rgba(160,120,48,.15);
}

[data-theme="light"] .tea-enc-breadcrumb,
[data-theme="light"] .tea-enc-breadcrumb a {
  color: rgba(44,31,14,.5);
}

[data-theme="light"] .tea-enc-content {
  color: #2c1f0e;
}

/* ═══════════════════════════════════════════════
   ARCHIVE CARD REDESIGN — clickable, overlay meta
   (matches single.php "Навчання" blog-post style)
   ═══════════════════════════════════════════════ */

/* Card is fully clickable link */
.tenc-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--tl-surface, #1a1610);
  border: 1px solid var(--tl-border, rgba(199,154,85,0.15));
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s ease,
              border-color 0.3s,
              box-shadow 0.4s;
  cursor: pointer;
}
.tenc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199,154,85,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Image area */
.tenc-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(160deg, #1a1208, #0c0a07);
}
.tenc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.tenc-card:hover .tenc-card-img img {
  transform: scale(1.05);
}
.tenc-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #1a1208 0%,
    #2a1f0e 25%,
    rgba(199,154,85,0.12) 50%,
    #2a1f0e 75%,
    #1a1208 100%
  );
  background-size: 400% 400%;
  animation: tencPlaceholderPulse 4s ease infinite;
}
@keyframes tencPlaceholderPulse {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* Gold shimmer overlay on card image hover */
.tenc-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(199,154,85,0.15) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.tenc-card:hover .tenc-card-img::after {
  opacity: 1;
  animation: tencShimmer 1.5s ease infinite;
}
@keyframes tencShimmer {
  0%   { background-position: 200% 200%; }
  100% { background-position: -200% -200%; }
}

/* Overlay meta: date + section */
.tenc-card-meta-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.8rem 1rem;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.6) 0%,
    transparent 100%);
}
.tenc-card-date {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}
.tenc-card-section-badge {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tl-gold, #c79a55);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(199,154,85,0.3);
  border-radius: 10px;
  padding: 0.2rem 0.6rem;
  backdrop-filter: blur(4px);
}

/* Card body */
.tenc-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}
.tenc-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.3;
  color: var(--tl-text, #e8dcc8);
  font-variation-settings: 'opsz' 20;
  margin: 0;
  text-decoration: underline;
  text-decoration-color: rgba(199,154,85,0.3);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.3s;
}
.tenc-card:hover .tenc-card-title {
  text-decoration-color: var(--tl-gold, #c79a55);
}
.tenc-card-excerpt {
  font-size: 0.78rem;
  color: var(--tl-text-2, #b0a090);
  line-height: 1.6;
  margin: 0;
}
.tenc-card-params {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(199,154,85,0.2);
  border-radius: 20px;
}
.tenc-card-param {
  font-size: 0.68rem;
  color: var(--tl-smoke, #8a7a6a);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Remove old "Читати →" button */
.tenc-card-read { display: none; }

/* ═══ CARDS GRID ═══ */
.tenc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .tenc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ═══ INFINITE SCROLL ═══ */

.tenc-load-more-wrap {
  text-align: center;
  padding: 2rem 0;
}
.tenc-sentinel {
  height: 1px;
}
.tenc-spinner {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem;
}
.tenc-spinner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tl-gold, #c79a55);
  animation: tencDotPulse 1.2s ease-in-out infinite;
}
.tenc-spinner-dot:nth-child(2) { animation-delay: 0.2s; }
.tenc-spinner-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes tencDotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1;   }
}
.tenc-all-loaded {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--tl-smoke, #8a7a6a);
  text-transform: uppercase;
  padding: 1rem;
}

/* Light theme */
html[data-theme="light"] .tenc-card {
  background: var(--tl-surface, #fdf8f0);
  border-color: rgba(160,120,48,0.12);
}
html[data-theme="light"] .tenc-card:hover {
  border-color: rgba(199,154,85,0.4);
  box-shadow: 0 12px 40px rgba(160,120,48,0.1);
}

/* ═══ SINGLE: HERO IMAGE WRAP ═══ */

.tenc-single-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.tenc-single-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(
    to top,
    rgba(12,10,7,0.8),
    transparent
  );
  pointer-events: none;
}
.tenc-single-img-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.8s ease;
}
.tenc-single-img-wrap:hover img {
  transform: scale(1.04);
}

/* ═══ SINGLE: BACK LINK + POST NAVIGATION ═══ */

.tenc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tl-smoke, #8a7a6a);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.tenc-back-link:hover {
  color: var(--tl-gold-lt, #d4aa6a);
}

.tenc-post-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--tl-border, rgba(199,154,85,0.15));
}
.tenc-nav-btn {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
  padding: 1rem;
  border: 1px solid var(--tl-border, rgba(199,154,85,0.15));
  border-radius: 14px;
  transition: all 0.3s;
  color: inherit;
}
.tenc-nav-btn:hover {
  border-color: var(--tl-gold, #c79a55);
  background: rgba(199,154,85,0.05);
}
.tenc-nav-btn--right {
  text-align: right;
  align-items: flex-end;
}
.tenc-nav-arrow {
  font-size: 1.2rem;
  color: var(--tl-gold, #c79a55);
}
.tenc-nav-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tl-smoke, #8a7a6a);
}
.tenc-nav-title {
  font-size: 0.85rem;
  color: var(--tl-text, #e8dcc8);
  line-height: 1.3;
}
.tenc-nav-all {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tl-gold-lt, #d4aa6a);
  text-decoration: none;
  padding: 0.5rem;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.tenc-nav-all:hover { opacity: 0.7; }

@media (max-width: 600px) {
  .tenc-grid {
    grid-template-columns: 1fr !important;
    gap: 0.8rem;
  }
  .tenc-post-nav {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .tenc-nav-btn--right {
    align-items: center;
    text-align: center;
  }
  .tenc-nav-all { order: -1; }
}

/* ═══ AUTO TEA LINKS ═══ */
.tenc-tea-link {
  color: inherit !important;
  text-decoration: underline !important;
  text-decoration-color: var(--tl-gold, #c79a55) !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
  transition: color 0.2s, text-decoration-color 0.2s;
  font-weight: inherit;
}
.tenc-tea-link:hover {
  color: var(--tl-gold-lt, #d4aa6a) !important;
  text-decoration-color: var(--tl-gold-lt, #d4aa6a) !important;
}
