/*
Theme Name: Тамплиер дайджест
Theme URI: https://tamplier.su/
Author: Tamplier
Description: Modern Russian editorial theme for an IT digest.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 5.6
Text Domain: tamplier-digest
*/

:root {
  --td-ink: #111827;
  --td-muted: #667085;
  --td-soft: #f5f8fc;
  --td-surface: #ffffff;
  --td-line: #d9e2ec;
  --td-accent: #0b63ce;
  --td-cyan: #00a7a7;
  --td-green: #78b82a;
  --td-coral: #e85d4f;
  --td-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f7f9fc;
  color: var(--td-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.td-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(217, 226, 236, 0.9);
  background: rgba(247, 249, 252, 0.94);
  backdrop-filter: blur(16px);
}

.admin-bar .td-site-header {
  top: 32px;
}

.td-header-inner {
  min-height: 72px;
  gap: 24px;
}

.td-brand {
  flex: 0 0 auto;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.td-brand a {
  align-items: center;
  color: var(--td-ink);
  display: inline-flex;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.td-brand a::before {
  background:
    linear-gradient(135deg, var(--td-accent) 0 48%, var(--td-cyan) 48% 100%);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  content: "";
  display: inline-block;
  height: 32px;
  width: 32px;
}

.td-nav .wp-block-navigation__container {
  gap: 6px 10px;
}

.td-nav a {
  border-radius: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 650;
  padding: 10px 12px;
  text-decoration: none;
}

.td-nav a:hover,
.td-nav a:focus {
  background: #eaf3ff;
  color: var(--td-accent);
}

.td-main {
  padding-bottom: 56px;
}

.td-hero {
  border-bottom: 1px solid var(--td-line);
  padding: 54px 0 44px;
}

.td-hero-grid {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
}

.td-kicker {
  align-items: center;
  color: var(--td-accent);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.td-kicker::before {
  background: var(--td-cyan);
  border-radius: 99px;
  content: "";
  display: inline-block;
  height: 8px;
  width: 8px;
}

.td-hero h1 {
  font-size: 56px;
  line-height: 1;
  margin: 0;
  max-width: 780px;
}

.td-hero-copy {
  color: #475467;
  font-size: 18px;
  line-height: 1.65;
  margin-top: 18px;
  max-width: 680px;
}

.td-search {
  background: #ffffff;
  border: 1px solid var(--td-line);
  border-radius: 8px;
  box-shadow: var(--td-shadow);
  padding: 8px;
}

.td-search input[type="search"] {
  border: 0;
  border-radius: 6px;
  min-height: 44px;
}

.td-search button {
  border-radius: 6px;
  min-height: 44px;
}

.td-section {
  padding: 48px 0 0;
}

.td-section-head {
  align-items: end;
  border-bottom: 1px solid var(--td-line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
}

.td-section-head h2,
.td-section-head h1 {
  margin: 0;
}

.td-section-head p {
  color: var(--td-muted);
  margin: 0;
  max-width: 560px;
}

.td-featured-query .wp-block-post-template,
.td-latest-query .wp-block-post-template,
.td-archive-query .wp-block-post-template,
.td-search-query .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
}

.td-featured-card {
  background: var(--td-surface);
  border: 1px solid var(--td-line);
  border-radius: 8px;
  box-shadow: var(--td-shadow);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  overflow: hidden;
}

.td-featured-media {
  background: #dce8f8;
  min-height: 360px;
}

.td-featured-media,
.td-card-media,
.td-single-cover {
  margin: 0;
}

.td-featured-media a,
.td-card-media a {
  display: block;
  height: 100%;
  width: 100%;
}

.td-featured-media img,
.td-card-media img,
.td-single-cover img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.td-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
}

.td-terms {
  color: var(--td-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.td-terms a {
  color: inherit;
  text-decoration: none;
}

.td-meta {
  color: var(--td-muted);
  font-size: 13px;
  font-weight: 600;
  margin-top: 20px;
}

.td-featured-body h2 {
  font-size: 34px;
  line-height: 1.12;
  margin: 0;
}

.td-featured-body h2 a,
.td-card h2 a,
.td-list-card h2 a {
  color: var(--td-ink);
  text-decoration: none;
}

.td-featured-body h2 a:hover,
.td-card h2 a:hover,
.td-list-card h2 a:hover {
  color: var(--td-accent);
}

.td-excerpt {
  color: #475467;
  line-height: 1.65;
  margin-top: 16px;
}

.td-latest-query .wp-block-post-template {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.td-card {
  background: var(--td-surface);
  border: 1px solid var(--td-line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.td-card-media {
  aspect-ratio: 16 / 9;
  background: #e8eef7;
}

.td-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.td-card h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.td-card .td-excerpt {
  font-size: 15px;
}

.td-card .td-meta {
  margin-top: auto;
  padding-top: 18px;
}

.td-rubrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.td-rubric {
  background: #ffffff;
  border: 1px solid var(--td-line);
  border-radius: 8px;
  color: var(--td-ink);
  display: block;
  font-weight: 800;
  min-height: 94px;
  padding: 18px;
  position: relative;
  text-decoration: none;
}

.td-rubric::after {
  background: var(--td-accent);
  border-radius: 99px;
  bottom: 16px;
  content: "";
  height: 8px;
  left: 18px;
  position: absolute;
  width: 34px;
}

.td-rubric:nth-child(2)::after { background: var(--td-cyan); }
.td-rubric:nth-child(3)::after { background: var(--td-green); }
.td-rubric:nth-child(4)::after { background: var(--td-coral); }
.td-rubric:nth-child(5)::after { background: #7c3aed; }
.td-rubric:nth-child(6)::after { background: #f59e0b; }

.td-rubric:hover,
.td-rubric:focus {
  border-color: #9cc9ff;
  box-shadow: 0 12px 30px rgba(11, 99, 206, 0.12);
  color: var(--td-accent);
}

.td-highlight {
  align-items: center;
  background: #101828;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  overflow: hidden;
  padding: 34px;
}

.td-highlight strong {
  color: #86efec;
}

.td-highlight p {
  color: #d0d5dd;
}

.td-highlight .wp-block-button__link {
  background: #ffffff;
  border-radius: 8px;
  color: #101828;
}

.td-signal-panel {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    #16223a;
  background-size: 34px 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  min-height: 220px;
  position: relative;
}

.td-signal-panel::before,
.td-signal-panel::after {
  border-radius: 8px;
  content: "";
  position: absolute;
}

.td-signal-panel::before {
  background: #00a7a7;
  height: 48px;
  left: 34px;
  top: 42px;
  width: 52%;
}

.td-signal-panel::after {
  background: #e85d4f;
  bottom: 42px;
  height: 48px;
  right: 34px;
  width: 38%;
}

.td-newsletter {
  align-items: center;
  background: #eaf3ff;
  border: 1px solid #c8dcf7;
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 28px;
}

.td-newsletter p {
  color: #344054;
  margin: 0;
}

.td-newsletter .wp-block-button__link {
  border-radius: 8px;
}

.td-content-shell {
  padding-top: 48px;
}

.td-archive-query .wp-block-post-template,
.td-search-query .wp-block-post-template {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.td-list-card {
  background: #ffffff;
  border: 1px solid var(--td-line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
}

.td-list-card .td-card-media {
  min-height: 100%;
}

.td-list-card .td-card-body {
  padding: 20px 20px 20px 0;
}

.td-single-header {
  padding: 48px 0 26px;
}

.td-single-header h1 {
  font-size: 52px;
  line-height: 1.08;
  margin-bottom: 18px;
  max-width: 900px;
}

.td-single-cover {
  border-radius: 8px;
  margin-bottom: 34px;
  max-height: 560px;
  overflow: hidden;
}

.td-post-content {
  font-size: 18px;
  line-height: 1.75;
  max-width: 760px;
}

.td-post-content h2,
.td-post-content h3 {
  line-height: 1.2;
  margin-top: 1.7em;
}

.td-post-content p {
  margin-bottom: 1.2em;
}

.td-post-content ul,
.td-post-content ol {
  padding-left: 1.2em;
}

.td-post-nav {
  border-top: 1px solid var(--td-line);
  margin-top: 42px;
  padding-top: 26px;
}

.td-page-title {
  padding: 50px 0 22px;
}

.td-page-title h1 {
  font-size: 46px;
  line-height: 1.08;
  margin: 0;
}

.td-site-footer {
  background: #111827;
  color: #ffffff;
  margin-top: 48px;
  padding: 44px 0;
}

.td-footer-inner {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
}

.td-footer-inner a {
  color: #eaf3ff;
}

.td-footer-brand {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
}

.td-footer-copy {
  color: #cbd5e1;
  max-width: 560px;
}

.td-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
}

.td-footer-links a {
  color: #ffffff;
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 960px) {
  .td-hero-grid,
  .td-featured-card,
  .td-highlight,
  .td-newsletter,
  .td-footer-inner {
    grid-template-columns: 1fr;
  }

  .td-hero h1,
  .td-single-header h1 {
    font-size: 42px;
  }

  .td-latest-query .wp-block-post-template,
  .td-rubrics,
  .td-archive-query .wp-block-post-template,
  .td-search-query .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .td-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .admin-bar .td-site-header {
    top: 46px;
  }

  .td-header-inner {
    align-items: flex-start;
    min-height: 64px;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .td-hero {
    padding: 34px 0 30px;
  }

  .td-hero h1,
  .td-single-header h1,
  .td-page-title h1 {
    font-size: 34px;
  }

  .td-hero-copy,
  .td-post-content {
    font-size: 16px;
  }

  .td-featured-body {
    padding: 24px;
  }

  .td-featured-body h2 {
    font-size: 28px;
  }

  .td-latest-query .wp-block-post-template,
  .td-rubrics,
  .td-archive-query .wp-block-post-template,
  .td-search-query .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .td-list-card {
    grid-template-columns: 1fr;
  }

  .td-list-card .td-card-body {
    padding: 20px;
  }

  .td-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .td-newsletter {
    padding: 22px;
  }
}

/* 2026 visual refresh */
:root {
  --td-ink: #07111f;
  --td-muted: #5d6b82;
  --td-soft: #eef5ff;
  --td-surface: #ffffff;
  --td-line: #d4dfed;
  --td-accent: #2457ff;
  --td-cyan: #00b8d9;
  --td-green: #9be22d;
  --td-coral: #ff4d7d;
  --td-violet: #7b61ff;
  --td-shadow: 0 24px 70px rgba(7, 17, 31, 0.12);
}

body {
  background:
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 44%, #fbfdff 100%);
}

body::before {
  background:
    linear-gradient(90deg, rgba(36, 87, 255, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 184, 217, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(180deg, #000 0, transparent 640px);
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.td-site-header {
  background: rgba(248, 251, 255, 0.84);
  box-shadow: 0 12px 34px rgba(7, 17, 31, 0.06);
}

.td-header-inner {
  min-height: 76px;
  flex-wrap: nowrap !important;
}

.td-header-actions {
  flex: 1 1 auto;
  gap: 12px;
  width: auto !important;
}

.td-brand a::before {
  background:
    linear-gradient(135deg, #2457ff 0 46%, #00b8d9 46% 72%, #9be22d 72% 100%);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(36, 87, 255, 0.22);
  transform: rotate(-1deg);
}

.td-nav a {
  color: #172033;
  font-weight: 760;
}

.td-header-search {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(36, 87, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(7, 17, 31, 0.06);
  display: flex;
  min-width: 210px;
  padding: 4px;
}

.td-header-search .wp-block-search__inside-wrapper {
  align-items: center;
  border: 0;
  display: flex;
  gap: 4px;
  width: 100%;
}

.td-header-search input[type="search"] {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--td-ink);
  font-size: 14px;
  min-height: 38px;
  padding: 8px 10px;
}

.td-header-search button {
  background: #07111f;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  min-height: 36px;
  padding: 0 12px;
}

.td-hero {
  background:
    linear-gradient(135deg, rgba(36, 87, 255, 0.24), transparent 34%),
    linear-gradient(155deg, #07111f 0%, #10243f 57%, #0a1628 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(7, 17, 31, 0.22);
  color: #ffffff;
  margin-top: 24px;
  overflow: hidden;
  padding: 68px 0 58px;
  position: relative;
}

.td-hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
  position: absolute;
}

.td-hero-grid {
  align-items: center;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.62fr);
  position: relative;
}

.td-hero h1 {
  color: #ffffff;
  font-size: 64px;
  letter-spacing: 0;
  max-width: 840px;
}

.td-hero-copy {
  color: #c7d4e8;
  max-width: 720px;
}

.td-kicker {
  color: #9be22d;
}

.td-kicker::before {
  background: #00d5ff;
  box-shadow: 0 0 20px rgba(0, 213, 255, 0.74);
}

.td-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.td-hero-badges span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #e9f2ff;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.td-hero-visual {
  aspect-ratio: 1 / 0.86;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.td-hero-visual::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  inset: 0;
  position: absolute;
}

.td-dashboard-card {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
  position: absolute;
}

.td-dashboard-main {
  bottom: 42px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  left: 36px;
  padding: 18px;
  width: 54%;
}

.td-dashboard-main span {
  background: linear-gradient(135deg, #2457ff, #00b8d9);
  border-radius: 8px;
  display: block;
  min-height: 66px;
}

.td-dashboard-main span:nth-child(2) {
  background: linear-gradient(135deg, #9be22d, #00b8d9);
}

.td-dashboard-main span:nth-child(3) {
  background: linear-gradient(135deg, #ff4d7d, #7b61ff);
}

.td-dashboard-side {
  padding: 22px;
  right: 32px;
  top: 34px;
  width: 34%;
}

.td-dashboard-side strong {
  color: #9be22d;
  display: block;
  font-size: 44px;
  line-height: 1;
}

.td-dashboard-side small {
  color: #e9f2ff;
  display: block;
  font-weight: 800;
  margin-top: 10px;
  text-transform: uppercase;
}

.td-hero-radar {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  bottom: 42px;
  height: 118px;
  position: absolute;
  right: 34px;
  width: 118px;
}

.td-hero-radar i {
  background: #00d5ff;
  border-radius: 99px;
  display: block;
  height: 10px;
  position: absolute;
  width: 10px;
}

.td-hero-radar i:nth-child(1) { left: 28px; top: 28px; }
.td-hero-radar i:nth-child(2) { right: 24px; top: 48px; }
.td-hero-radar i:nth-child(3) { bottom: 28px; left: 50px; }

.td-topic-rail {
  border-bottom: 1px solid rgba(36, 87, 255, 0.12);
  border-top: 1px solid rgba(36, 87, 255, 0.12);
  margin-top: 18px;
  overflow: hidden;
  padding: 12px 0;
}

.td-topic-track {
  display: flex;
  gap: 12px;
  width: max-content;
}

.td-topic-track span {
  background: #ffffff;
  border: 1px solid var(--td-line);
  border-radius: 8px;
  color: #172033;
  font-size: 13px;
  font-weight: 850;
  padding: 9px 13px;
  text-transform: uppercase;
}

.td-section {
  padding-top: 58px;
}

.td-section-head {
  border-bottom-color: rgba(36, 87, 255, 0.13);
}

.td-section-head h2,
.td-section-head h1 {
  font-size: 32px;
}

.td-featured-card,
.td-card,
.td-list-card,
.td-rubric,
.td-newsletter {
  border-color: rgba(36, 87, 255, 0.13);
  box-shadow: 0 18px 50px rgba(7, 17, 31, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.td-featured-card:hover,
.td-card:hover,
.td-list-card:hover,
.td-rubric:hover {
  border-color: rgba(36, 87, 255, 0.32);
  box-shadow: 0 28px 80px rgba(7, 17, 31, 0.14);
  transform: translateY(-4px);
}

.td-card-media,
.td-featured-media {
  overflow: hidden;
}

.td-card-media img,
.td-featured-media img {
  transition: transform 360ms ease;
}

.td-card:hover .td-card-media img,
.td-featured-card:hover .td-featured-media img,
.td-list-card:hover .td-card-media img {
  transform: scale(1.045);
}

.td-featured-card {
  background: #ffffff;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
}

.td-featured-body {
  background:
    linear-gradient(135deg, rgba(36, 87, 255, 0.08), transparent 40%),
    #ffffff;
}

.td-terms {
  color: #2457ff;
}

.td-meta {
  color: #66728a;
}

.td-metrics,
.td-reactions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.td-metric,
.td-like-button,
.td-reaction-stat {
  align-items: center;
  background: #f5f8ff;
  border: 1px solid rgba(36, 87, 255, 0.13);
  border-radius: 8px;
  color: #172033;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
  line-height: 1;
  min-height: 32px;
  padding: 8px 10px;
  text-decoration: none;
}

.td-like-button {
  cursor: pointer;
  font-family: inherit;
}

.td-like-button:hover,
.td-like-button:focus,
.td-like-button.is-liked {
  background: #07111f;
  border-color: #07111f;
  color: #ffffff;
}

.td-like-button.is-loading {
  opacity: 0.72;
}

.td-metric-icon {
  border: 2px solid currentColor;
  display: inline-block;
  height: 13px;
  position: relative;
  width: 13px;
}

.td-icon-like {
  border-radius: 4px;
  transform: rotate(45deg);
}

.td-icon-view {
  border-radius: 99px;
  width: 18px;
}

.td-icon-view::after {
  background: currentColor;
  border-radius: 99px;
  content: "";
  height: 4px;
  left: 5px;
  position: absolute;
  top: 3px;
  width: 4px;
}

.td-icon-comment {
  border-radius: 4px;
}

.td-icon-comment::after {
  border-left: 4px solid currentColor;
  border-top: 4px solid transparent;
  bottom: -5px;
  content: "";
  height: 0;
  left: 2px;
  position: absolute;
  width: 0;
}

.td-reactions {
  margin-top: 24px;
}

.td-like-button-large,
.td-reaction-stat {
  min-height: 48px;
  padding: 12px 16px;
}

.td-reaction-stat strong,
.td-like-button-large strong {
  font-size: 16px;
}

.td-highlight {
  background:
    linear-gradient(135deg, rgba(36, 87, 255, 0.24), transparent 42%),
    #07111f;
  box-shadow: 0 30px 80px rgba(7, 17, 31, 0.2);
}

.td-newsletter {
  background:
    linear-gradient(135deg, rgba(36, 87, 255, 0.12), transparent 45%),
    #ffffff;
}

.td-single-header {
  padding-top: 62px;
}

.td-single-header h1 {
  font-size: 58px;
  max-width: 960px;
}

.td-single-cover {
  box-shadow: 0 28px 80px rgba(7, 17, 31, 0.14);
}

.td-comments {
  background: #ffffff;
  border: 1px solid rgba(36, 87, 255, 0.13);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(7, 17, 31, 0.07);
  margin: 48px auto 0;
  max-width: 760px;
  padding: 28px;
}

.td-comment {
  border-top: 1px solid var(--td-line);
  padding: 20px 0;
}

.td-comment-meta {
  color: var(--td-muted);
  font-size: 13px;
  font-weight: 800;
  gap: 12px;
}

.td-comments input:not([type="submit"]),
.td-comments textarea {
  border: 1px solid var(--td-line);
  border-radius: 8px;
  padding: 12px;
}

.td-comments input[type="submit"] {
  background: #2457ff;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
  padding: 12px 18px;
}

.td-site-footer {
  background:
    linear-gradient(135deg, rgba(36, 87, 255, 0.2), transparent 46%),
    #07111f;
}

@media (prefers-reduced-motion: no-preference) {
  .td-dashboard-main span {
    animation: tdPulse 2.8s ease-in-out infinite;
  }

  .td-dashboard-main span:nth-child(2) {
    animation-delay: 220ms;
  }

  .td-dashboard-main span:nth-child(3) {
    animation-delay: 420ms;
  }

  .td-dashboard-side {
    animation: tdFloat 4.2s ease-in-out infinite;
  }

  .td-hero-radar i {
    animation: tdBlink 1.8s ease-in-out infinite;
  }

  .td-topic-track {
    animation: tdRail 28s linear infinite;
  }

  .td-reveal {
    opacity: 0;
    transform: translateY(18px);
  }

  .td-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 500ms ease, transform 500ms ease;
  }
}

@keyframes tdPulse {
  0%, 100% { opacity: 0.72; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
}

@keyframes tdFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes tdBlink {
  0%, 100% { opacity: 0.42; transform: scale(0.84); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes tdRail {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
  .td-header-search {
    min-width: 168px;
  }

  .td-nav a {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 960px) {
  .td-header-inner {
    flex-wrap: wrap !important;
  }

  .td-hero-grid {
    grid-template-columns: 1fr;
  }

  .td-hero h1,
  .td-single-header h1 {
    font-size: 44px;
  }

  .td-hero-visual {
    max-width: 560px;
  }

  .td-header-actions {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .td-header-actions {
    align-items: stretch;
  }

  .td-header-search {
    min-width: 100%;
    width: 100%;
  }

  .td-hero {
    margin-top: 10px;
    padding: 38px 0 34px;
  }

  .td-hero h1,
  .td-single-header h1,
  .td-page-title h1 {
    font-size: 36px;
  }

  .td-hero-visual {
    aspect-ratio: 1 / 0.9;
  }

  .td-dashboard-main {
    left: 18px;
    width: 58%;
  }

  .td-dashboard-side {
    right: 16px;
    width: 38%;
  }

  .td-dashboard-side strong {
    font-size: 30px;
  }

  .td-metrics,
  .td-reactions {
    gap: 6px;
  }

  .td-reaction-stat,
  .td-like-button-large {
    width: 100%;
  }
}

/* 2026 editorial redesign */
:root {
  --td-ink: #0b1020;
  --td-muted: #647084;
  --td-soft: #eef4fb;
  --td-surface: #ffffff;
  --td-line: #dce5ef;
  --td-accent: #155eef;
  --td-cyan: #00a7b5;
  --td-green: #9bdc28;
  --td-coral: #ff5370;
  --td-paper: #f8fafc;
  --td-paper-warm: #fbfaf7;
  --td-shadow: 0 22px 64px rgba(11, 16, 32, 0.1);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(248, 250, 252, 0.7)),
    linear-gradient(90deg, rgba(21, 94, 239, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 167, 181, 0.04) 1px, transparent 1px),
    var(--td-paper);
  background-size: auto, 56px 56px, 56px 56px, auto;
  color: var(--td-ink);
}

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

.wp-site-blocks {
  overflow-x: hidden;
}

.td-site-header {
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid rgba(11, 16, 32, 0.09);
  box-shadow: none;
}

.td-header-inner {
  gap: 24px;
  min-height: 82px;
}

.td-brand {
  font-size: 19px;
  letter-spacing: 0;
}

.td-brand a::before {
  background:
    linear-gradient(135deg, #0b1020 0 48%, #155eef 48% 72%, #00a7b5 72% 100%);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(21, 94, 239, 0.2);
  height: 34px;
  transform: none;
  width: 34px;
}

.td-header-actions {
  flex: 1 1 auto;
  flex-wrap: nowrap !important;
  gap: 14px;
  justify-content: flex-end;
  min-width: 0;
}

.td-nav {
  flex: 0 1 auto;
  min-width: 0;
}

.td-nav .wp-block-navigation__container {
  flex-wrap: nowrap !important;
  gap: 2px;
}

.td-nav .wp-block-navigation-item {
  white-space: nowrap;
}

.td-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: #273244;
  font-size: 14px;
  font-weight: 720;
  padding: 9px 10px;
}

.td-nav a:hover,
.td-nav a:focus {
  background: #ffffff;
  border-color: rgba(21, 94, 239, 0.18);
  color: var(--td-accent);
}

.td-header-search {
  background: #ffffff;
  border: 1px solid rgba(11, 16, 32, 0.11);
  border-radius: 8px;
  box-shadow: none;
  flex: 0 0 200px;
  min-width: 0;
  max-width: 100%;
  padding: 3px;
}

.td-header-search input[type="search"] {
  background: transparent;
  border: 0;
  color: var(--td-ink);
  flex: 1 1 auto;
  font-size: 14px;
  min-height: 38px;
  min-width: 0;
  padding: 8px 10px;
  width: auto;
}

.td-header-search .wp-block-search__inside-wrapper {
  min-width: 0;
}

.td-header-search button {
  background: #0b1020;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  flex: 0 0 38px;
  font-size: 0;
  min-height: 38px;
  padding: 0;
  position: relative;
  width: 38px;
}

.td-header-search button::before,
.td-header-search button::after {
  content: "";
  position: absolute;
}

.td-header-search button::before {
  border: 2px solid currentColor;
  border-radius: 99px;
  height: 12px;
  left: 11px;
  top: 10px;
  width: 12px;
}

.td-header-search button::after {
  background: currentColor;
  border-radius: 99px;
  height: 8px;
  left: 24px;
  top: 23px;
  transform: rotate(45deg);
  transform-origin: top center;
  width: 2px;
}

.td-home {
  padding-bottom: 72px;
}

.td-masthead {
  border-bottom: 1px solid rgba(11, 16, 32, 0.1);
  padding: 68px 0 28px;
}

.td-masthead .td-kicker {
  color: var(--td-accent);
  margin-bottom: 16px;
}

.td-masthead h1 {
  color: #070b15;
  font-size: 92px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
  max-width: 1060px;
}

.td-masthead-bottom {
  border-top: 1px solid rgba(11, 16, 32, 0.1);
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
}

.td-masthead .td-hero-copy {
  color: #3d4858;
  flex: 1 1 560px;
  font-size: 20px;
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
  min-width: 0;
  overflow-wrap: break-word;
}

.td-masthead-bottom > *,
.td-section-head > * {
  min-width: 0;
}

.td-issue {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(11, 16, 32, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  min-width: 138px;
  padding: 14px 16px;
}

.td-issue span {
  color: var(--td-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.td-issue strong {
  color: var(--td-ink);
  font-size: 30px;
  line-height: 1;
}

.td-category-strip {
  border-bottom: 1px solid rgba(11, 16, 32, 0.1);
  display: flex;
  gap: 8px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
  width: min(1320px, calc(100% - 48px));
}

.td-category-strip::-webkit-scrollbar {
  display: none;
}

.td-category-strip a {
  background: #ffffff;
  border: 1px solid rgba(11, 16, 32, 0.1);
  border-radius: 8px;
  color: #273244;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.td-category-strip a:hover,
.td-category-strip a:focus {
  background: #0b1020;
  border-color: #0b1020;
  color: #ffffff;
}

.td-section {
  padding-top: 58px;
}

.td-section-head {
  border-bottom: 0;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 0;
}

.td-section-head h1,
.td-section-head h2 {
  color: #070b15;
  font-size: 34px;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.05;
}

.td-section-head p,
.td-section-head .taxonomy-description {
  color: var(--td-muted);
  font-size: 16px;
  line-height: 1.55;
}

.td-featured-card,
.td-card,
.td-list-card,
.td-rubric,
.td-newsletter,
.td-comments {
  border-color: rgba(11, 16, 32, 0.1);
  border-radius: 8px;
}

.td-featured-card {
  background: #0b1020;
  box-shadow: var(--td-shadow);
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  overflow: hidden;
}

.td-featured-card.wp-block-group-is-layout-flow > *,
.td-card.wp-block-group-is-layout-flow > *,
.td-list-card.wp-block-group-is-layout-flow > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none;
}

.td-featured-body.wp-block-group-is-layout-flow > *,
.td-card-body.wp-block-group-is-layout-flow > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none;
}

.td-featured-body.wp-block-group-is-layout-flow > * + *,
.td-card-body.wp-block-group-is-layout-flow > * + * {
  margin-block-start: 0;
}

.td-featured-body {
  background:
    linear-gradient(135deg, rgba(21, 94, 239, 0.22), transparent 48%),
    #0b1020;
  min-height: 460px;
  min-width: 0;
  padding: 44px;
}

.td-featured-media {
  aspect-ratio: auto !important;
  height: 100%;
  min-width: 0;
}

.td-featured-body h2 {
  font-size: 36px;
  letter-spacing: 0;
  line-height: 1.08;
}

.td-featured-body h2 a {
  color: #ffffff;
}

.td-featured-body h2 a:hover,
.td-featured-body h2 a:focus {
  color: #9df2eb;
}

.td-featured-body .td-excerpt {
  color: #dbe4f2;
  font-size: 17px;
}

.td-featured-card .td-terms {
  color: #9df2eb;
}

.td-featured-card .td-meta {
  color: #c7d2e3;
}

.td-featured-card .td-metric,
.td-featured-card .td-like-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.td-featured-card .td-like-button:hover,
.td-featured-card .td-like-button:focus,
.td-featured-card .td-like-button.is-liked {
  background: #ffffff;
  border-color: #ffffff;
  color: #0b1020;
}

.td-featured-media {
  background: #dbe6f3;
  min-height: 460px;
}

.td-featured-media img,
.td-card-media img,
.td-single-cover img {
  filter: saturate(1.04) contrast(1.02);
}

.td-latest-query .wp-block-post-template {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.td-latest-query .wp-block-post-template > li {
  grid-column: span 1;
}

.td-latest-query .wp-block-post-template > li:first-child {
  grid-column: span 1;
}

.td-latest-query .wp-block-post-template > li:first-child .td-card {
  display: flex;
  flex-direction: column;
}

.td-latest-query .wp-block-post-template > li:first-child .td-card-media {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.td-latest-query .wp-block-post-template > li:first-child .td-card-body {
  padding: 22px;
}

.td-latest-query .wp-block-post-template > li:first-child .td-card h2 {
  font-size: 21px;
  line-height: 1.18;
}

.td-card,
.td-list-card,
.td-rubric {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.td-card {
  min-height: 100%;
}

.td-card-body {
  padding: 22px;
}

.td-card h2,
.td-list-card h2 {
  font-size: 21px;
  letter-spacing: 0;
  line-height: 1.18;
}

.td-card .td-excerpt,
.td-list-card .td-excerpt {
  color: #526071;
}

.td-card .td-meta,
.td-list-card .td-meta {
  margin-top: auto;
}

.td-card:hover,
.td-list-card:hover,
.td-rubric:hover,
.td-featured-card:hover {
  box-shadow: 0 24px 70px rgba(11, 16, 32, 0.12);
  transform: translateY(-3px);
}

.td-terms {
  color: var(--td-accent);
  font-size: 12px;
  font-weight: 850;
}

.td-meta {
  align-items: center;
  color: var(--td-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 10px 12px;
}

.td-metrics,
.td-reactions {
  gap: 8px;
  margin-top: 0;
}

.td-metric,
.td-like-button,
.td-reaction-stat {
  background: #f2f6fb;
  border-color: rgba(11, 16, 32, 0.09);
  color: #273244;
  font-weight: 800;
}

.td-metric-icon {
  height: 12px;
  width: 12px;
}

.td-icon-view {
  width: 17px;
}

.td-rubrics {
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.td-rubric {
  color: var(--td-ink);
  min-height: 128px;
  padding: 22px;
}

.td-rubric::before {
  bottom: 18px;
  color: var(--td-muted);
  content: "Смотреть";
  font-size: 13px;
  font-weight: 780;
  left: 22px;
  position: absolute;
}

.td-rubric::after {
  bottom: 22px;
  height: 2px;
  left: auto;
  right: 22px;
  width: 42px;
}

.td-highlight {
  background:
    linear-gradient(135deg, rgba(0, 167, 181, 0.2), transparent 48%),
    #0b1020;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--td-shadow);
  padding: 42px;
}

.td-highlight h2 {
  color: #ffffff;
  font-size: 38px;
  letter-spacing: 0;
  line-height: 1.08;
}

.td-highlight .td-kicker {
  color: #9df2eb;
}

.td-highlight .td-kicker::before {
  background: #9bdc28;
  box-shadow: none;
}

.td-signal-panel {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    #111a2d;
  background-size: 32px 32px;
  min-height: 260px;
  overflow: hidden;
}

.td-signal-panel::before {
  background: linear-gradient(90deg, #9bdc28, #00a7b5);
  border-radius: 8px;
  height: 44px;
  left: 32px;
  top: 44px;
  width: 58%;
}

.td-signal-panel::after {
  background: linear-gradient(90deg, #155eef, #ff5370);
  border-radius: 8px;
  bottom: 48px;
  height: 44px;
  right: 32px;
  width: 42%;
}

.td-newsletter {
  background:
    linear-gradient(135deg, rgba(21, 94, 239, 0.09), transparent 42%),
    #ffffff;
  box-shadow: 0 16px 48px rgba(11, 16, 32, 0.07);
  padding: 32px;
}

.td-newsletter h2 {
  font-size: 30px;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0 0 8px;
}

.wp-block-button__link,
.td-comments input[type="submit"] {
  border-radius: 8px;
  font-weight: 820;
}

.td-content-shell {
  padding-top: 58px;
}

.td-archive-query .wp-block-post-template,
.td-search-query .wp-block-post-template {
  gap: 18px;
}

.td-list-card {
  grid-template-columns: 210px minmax(0, 1fr);
}

.td-list-card .td-card-body {
  padding: 22px 22px 22px 0;
}

.td-single-header {
  padding: 70px 0 28px;
}

.td-single-header h1 {
  color: #070b15;
  font-size: 62px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
  max-width: 980px;
}

.td-single-header .td-meta {
  margin-top: 18px;
}

.td-reactions {
  margin-top: 22px;
}

.td-like-button-large,
.td-reaction-stat {
  min-height: 46px;
}

.td-single-cover {
  border: 1px solid rgba(11, 16, 32, 0.1);
  box-shadow: var(--td-shadow);
}

.td-post-content {
  color: #1e293b;
  font-size: 19px;
  line-height: 1.78;
}

.td-post-content > * {
  max-width: 760px;
}

.td-post-content h2,
.td-post-content h3 {
  color: #07101f;
  letter-spacing: 0;
}

.td-post-content a {
  color: var(--td-accent);
  font-weight: 720;
}

.td-comments {
  box-shadow: 0 16px 48px rgba(11, 16, 32, 0.07);
}

.td-comments h2 {
  font-size: 28px;
  letter-spacing: 0;
}

.td-page-title {
  padding: 64px 0 24px;
}

.td-page-title h1 {
  color: #070b15;
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 0;
}

.td-site-footer {
  background: #0b1020;
  margin-top: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .td-card,
  .td-list-card,
  .td-rubric,
  .td-featured-card,
  .td-category-strip a,
  .td-header-search button {
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
  }

  .td-signal-panel::before {
    animation: tdSignalOne 4.8s ease-in-out infinite;
  }

  .td-signal-panel::after {
    animation: tdSignalTwo 5.2s ease-in-out infinite;
  }
}

@keyframes tdSignalOne {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(18px); }
}

@keyframes tdSignalTwo {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-18px); }
}

@media (max-width: 1180px) {
  .td-header-search {
    flex-basis: 168px;
  }

  .td-nav a {
    font-size: 13px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .td-masthead h1 {
    font-size: 76px;
  }
}

@media (max-width: 960px) {
  .td-header-inner,
  .td-header-actions {
    flex-wrap: wrap !important;
  }

  .td-header-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .td-header-search {
    flex: 1 1 260px;
  }

  .td-masthead {
    padding-top: 48px;
  }

  .td-masthead h1 {
    font-size: 58px;
  }

  .td-masthead .td-hero-copy {
    font-size: 18px;
  }

  .td-featured-card,
  .td-highlight,
  .td-newsletter {
    grid-template-columns: 1fr;
  }

  .td-featured-body,
  .td-featured-media {
    min-height: 0;
  }

  .td-featured-media {
    aspect-ratio: 16 / 10 !important;
    height: auto;
  }

  .td-latest-query .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .td-latest-query .wp-block-post-template > li,
  .td-latest-query .wp-block-post-template > li:first-child {
    grid-column: span 1;
  }

  .td-latest-query .wp-block-post-template > li:first-child .td-card {
    display: flex;
  }

  .td-latest-query .wp-block-post-template > li:first-child .td-card-media {
    aspect-ratio: 16 / 9;
  }

  .td-rubrics,
  .td-archive-query .wp-block-post-template,
  .td-search-query .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .td-single-header h1 {
    font-size: 46px;
  }

  .td-page-title h1 {
    font-size: 44px;
  }
}

@media (max-width: 680px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .td-header-inner {
    gap: 12px;
    min-height: 64px;
  }

  .td-header-actions {
    align-items: stretch;
    gap: 10px;
  }

  .td-header-search {
    flex-basis: 100%;
    max-width: calc(100vw - 48px);
    width: 100%;
  }

  .td-masthead {
    padding: 36px 0 22px;
    max-width: calc(100vw - 48px) !important;
    width: calc(100vw - 48px) !important;
  }

  .td-masthead h1 {
    font-size: 34px;
    line-height: 1;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .td-masthead-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .td-masthead .td-hero-copy {
    flex: 0 1 auto;
    font-size: 16px;
    max-width: calc(100vw - 48px);
    width: 100%;
  }

  .td-category-strip {
    max-width: calc(100vw - 48px);
    width: calc(100vw - 48px);
  }

  .td-section,
  .td-content-shell,
  .td-page-title,
  .td-single-header {
    max-width: calc(100vw - 48px) !important;
    width: calc(100vw - 48px) !important;
  }

  .td-section {
    padding-top: 42px;
  }

  .td-section-head h1,
  .td-section-head h2 {
    font-size: 28px;
  }

  .td-featured-body {
    padding: 24px;
  }

  .td-featured-body h2,
  .td-highlight h2 {
    font-size: 30px;
  }

  .td-latest-query .wp-block-post-template,
  .td-rubrics,
  .td-archive-query .wp-block-post-template,
  .td-search-query .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .td-card-body,
  .td-latest-query .wp-block-post-template > li:first-child .td-card-body,
  .td-list-card .td-card-body {
    padding: 20px;
  }

  .td-list-card {
    grid-template-columns: 1fr;
  }

  .td-list-card .td-card-media {
    min-height: 0;
  }

  .td-highlight,
  .td-newsletter,
  .td-comments {
    padding: 22px;
  }

  .td-signal-panel {
    min-height: 210px;
  }

  .td-single-header {
    padding-top: 42px;
  }

  .td-single-header h1,
  .td-page-title h1 {
    font-size: 36px;
  }

  .td-post-content {
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  .td-nav .wp-block-navigation__responsive-container-open {
    align-items: center;
    background: transparent;
    color: #07111f;
    display: inline-flex !important;
    height: 40px;
    justify-content: center;
    padding: 0;
    width: 40px;
  }

  .td-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }

  .td-nav .wp-block-navigation__container {
    flex-wrap: wrap !important;
  }

  .td-header-actions {
    justify-content: flex-start;
  }
}

/* Bitrix24 corporate blog layer */
:root {
  --td-ink: #07111f;
  --td-muted: #58687d;
  --td-line: #d8e3ef;
  --td-accent: #1c75ff;
  --td-cyan: #13bdd7;
  --td-green: #70d44b;
  --td-amber: #ffb02e;
  --td-berry: #ff5b7a;
  --td-paper: #f6f9fc;
  --td-shadow: 0 22px 70px rgba(7, 17, 31, 0.12);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 249, 252, 0.94)),
    linear-gradient(90deg, rgba(28, 117, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(19, 189, 215, 0.045) 1px, transparent 1px),
    var(--td-paper);
  background-size: auto, 48px 48px, 48px 48px, auto;
}

.td-site-header {
  background: rgba(246, 249, 252, 0.94);
}

.td-brand a::before {
  background:
    linear-gradient(135deg, #07111f 0 36%, #1c75ff 36% 64%, #13bdd7 64% 82%, #70d44b 82% 100%);
}

.td-nav a:hover,
.td-nav a:focus {
  background: #edf7ff;
  border-color: rgba(28, 117, 255, 0.22);
}

.td-masthead {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, rgba(28, 117, 255, 0.34), transparent 42%),
    #07111f;
  background-size: 34px 34px, 34px 34px, auto, auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 32px 90px rgba(7, 17, 31, 0.22);
  color: #ffffff;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.96fr) minmax(370px, 0.64fr);
  margin-top: 28px;
  overflow: hidden;
  padding: 54px;
  position: relative;
}

.td-masthead::after {
  background: linear-gradient(90deg, var(--td-green), var(--td-cyan), var(--td-accent), var(--td-amber));
  bottom: 0;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
}

.td-masthead-copy {
  min-width: 0;
}

.td-masthead .td-kicker {
  color: #9be8ff;
}

.td-masthead .td-kicker::before {
  background: var(--td-green);
  box-shadow: 0 0 18px rgba(112, 212, 75, 0.58);
}

.td-masthead h1 {
  color: #ffffff;
  font-size: 72px;
  font-weight: 920;
  line-height: 0.98;
  margin: 0;
  max-width: 820px;
}

.td-masthead .td-hero-copy {
  color: #d5e3f4;
  flex: none;
  font-size: 20px;
  line-height: 1.62;
  margin: 24px 0 0;
  max-width: 720px;
}

.td-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.td-hero-tags span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 820;
  padding: 10px 12px;
}

.td-hero-system {
  align-self: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.td-hero-system::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.td-system-topline,
.td-system-flow,
.td-system-grid {
  position: relative;
  z-index: 1;
}

.td-system-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.td-system-topline span {
  color: #bcd0e8;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.td-system-topline strong {
  background: #ffffff;
  border-radius: 8px;
  color: #07111f;
  font-size: 13px;
  padding: 8px 10px;
}

.td-system-flow {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 46px 0;
}

.td-system-flow span {
  background: #ffffff;
  border-radius: 8px;
  color: #07111f;
  font-size: 13px;
  font-weight: 880;
  min-height: 72px;
  padding: 14px 12px;
  position: relative;
}

.td-system-flow span::after {
  background: var(--td-cyan);
  border-radius: 99px;
  bottom: 12px;
  content: "";
  height: 6px;
  left: 12px;
  position: absolute;
  width: 34px;
}

.td-system-flow span:nth-child(2)::after { background: var(--td-accent); }
.td-system-flow span:nth-child(3)::after { background: var(--td-green); }
.td-system-flow span:nth-child(4)::after { background: var(--td-amber); }

.td-system-flow span + span::before {
  background: rgba(255, 255, 255, 0.62);
  content: "";
  height: 2px;
  left: -14px;
  position: absolute;
  top: 50%;
  width: 14px;
}

.td-system-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.td-system-grid div {
  background: rgba(7, 17, 31, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px;
}

.td-system-grid span {
  color: #ffffff;
  display: block;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.td-system-grid small {
  color: #bcd0e8;
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 8px;
}

.td-category-strip {
  background: #ffffff;
  border: 1px solid rgba(7, 17, 31, 0.09);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(7, 17, 31, 0.06);
  margin-top: 18px;
  padding: 10px;
}

.td-category-strip a {
  border-color: transparent;
}

.td-category-strip a:hover,
.td-category-strip a:focus {
  background: #07111f;
  color: #ffffff;
}

.td-proof-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px auto 0;
  width: min(1320px, calc(100% - 48px));
}

.td-proof-strip div {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(7, 17, 31, 0.09);
  border-radius: 8px;
  min-height: 150px;
  padding: 18px;
  position: relative;
}

.td-proof-strip div::after {
  background: linear-gradient(90deg, var(--td-accent), var(--td-cyan));
  border-radius: 99px;
  bottom: 18px;
  content: "";
  height: 4px;
  left: 18px;
  position: absolute;
  width: 58px;
}

.td-proof-strip div:nth-child(2)::after { background: linear-gradient(90deg, var(--td-cyan), var(--td-green)); }
.td-proof-strip div:nth-child(3)::after { background: linear-gradient(90deg, var(--td-green), var(--td-amber)); }
.td-proof-strip div:nth-child(4)::after { background: linear-gradient(90deg, var(--td-amber), var(--td-berry)); }

.td-proof-strip span {
  color: var(--td-accent);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 18px;
}

.td-proof-strip strong {
  color: #07111f;
  display: block;
  font-size: 18px;
  line-height: 1.18;
}

.td-proof-strip p {
  color: var(--td-muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 10px 0 22px;
}

.td-featured-card {
  background: #07111f;
  border-color: rgba(7, 17, 31, 0.18);
}

.td-featured-body {
  background:
    linear-gradient(135deg, rgba(28, 117, 255, 0.28), transparent 46%),
    linear-gradient(25deg, rgba(112, 212, 75, 0.16), transparent 34%),
    #07111f;
}

.td-card {
  position: relative;
}

.td-card::before {
  background: linear-gradient(90deg, var(--td-accent), var(--td-cyan), var(--td-green));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.td-card:nth-child(3n + 2)::before {
  background: linear-gradient(90deg, var(--td-cyan), var(--td-green));
}

.td-card:nth-child(3n)::before {
  background: linear-gradient(90deg, var(--td-amber), var(--td-berry));
}

.td-rubric {
  overflow: hidden;
}

.td-rubric span,
.td-rubric small {
  display: block;
  position: relative;
  z-index: 1;
}

.td-rubric span {
  font-size: 20px;
  line-height: 1.15;
}

.td-rubric small {
  color: var(--td-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  margin-top: 10px;
}

.td-rubric::before {
  content: "Открыть";
}

.td-rubric::after {
  height: 5px;
}

.td-highlight {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, rgba(28, 117, 255, 0.26), transparent 44%),
    #07111f;
  background-size: 32px 32px, 32px 32px, auto, auto;
}

.td-newsletter {
  background:
    linear-gradient(135deg, rgba(19, 189, 215, 0.15), transparent 42%),
    linear-gradient(25deg, rgba(112, 212, 75, 0.12), transparent 34%),
    #ffffff;
}

@media (prefers-reduced-motion: no-preference) {
  .td-system-flow span {
    animation: tdNodeLift 4.8s ease-in-out infinite;
  }

  .td-system-flow span:nth-child(2) { animation-delay: 160ms; }
  .td-system-flow span:nth-child(3) { animation-delay: 320ms; }
  .td-system-flow span:nth-child(4) { animation-delay: 480ms; }
}

@keyframes tdNodeLift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 1180px) {
  .td-masthead {
    grid-template-columns: minmax(0, 1fr);
  }

  .td-masthead h1 {
    font-size: 58px;
  }
}

@media (max-width: 960px) {
  .td-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .td-masthead {
    gap: 24px;
    margin-top: 14px;
    max-width: calc(100vw - 48px) !important;
    padding: 28px 20px 34px;
    width: calc(100vw - 48px) !important;
  }

  .td-masthead h1 {
    font-size: 36px;
    line-height: 1.02;
  }

  .td-masthead .td-hero-copy {
    font-size: 16px;
    max-width: none;
  }

  .td-hero-tags {
    gap: 8px;
  }

  .td-hero-tags span {
    font-size: 12px;
    padding: 8px 10px;
  }

  .td-hero-system {
    min-height: 0;
    padding: 18px;
  }

  .td-system-flow,
  .td-system-grid {
    grid-template-columns: 1fr;
  }

  .td-system-flow {
    gap: 10px;
    margin: 24px 0;
  }

  .td-system-flow span {
    min-height: 58px;
  }

  .td-system-flow span + span::before {
    display: none;
  }

  .td-proof-strip {
    grid-template-columns: 1fr;
    max-width: calc(100vw - 48px);
    width: calc(100vw - 48px);
  }

  .td-proof-strip div {
    min-height: 126px;
  }
}

/* Immersive tech-company interaction layer */
:root {
  --td-tech-ink: #060b16;
  --td-tech-panel: #0a1220;
  --td-tech-blue: #1f7aff;
  --td-tech-cyan: #16d4e6;
  --td-tech-lime: #75e04f;
  --td-tech-amber: #ffb545;
  --td-tech-pink: #ff5f87;
  --td-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
  background: #f6f9fc;
}

body {
  background:
    linear-gradient(115deg, rgba(31, 122, 255, 0.06), transparent 28%),
    linear-gradient(245deg, rgba(117, 224, 79, 0.05), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8fc 52%, #ffffff 100%);
}

body::before {
  background:
    linear-gradient(90deg, rgba(31, 122, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(22, 212, 230, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  inset: 0;
  opacity: 0.68;
  pointer-events: none;
  position: fixed;
  transform: translateZ(0);
  z-index: -2;
}

body::after {
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(31, 122, 255, 0.07) 42%, transparent 48%),
    linear-gradient(120deg, transparent 0 60%, rgba(22, 212, 230, 0.06) 64%, transparent 70%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.td-js body,
.td-js .wp-site-blocks {
  opacity: 0;
}

.td-js.td-page-ready body,
.td-js.td-page-ready .wp-site-blocks {
  opacity: 1;
  transition: opacity 380ms var(--td-ease);
}

.td-js.td-page-leaving .wp-site-blocks {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.td-site-header {
  backdrop-filter: blur(18px) saturate(1.18);
  border-bottom-color: rgba(6, 11, 22, 0.08);
}

.td-header-inner {
  animation: tdHeaderDrop 520ms var(--td-ease) both;
}

.td-brand a::before {
  transition: box-shadow 240ms var(--td-ease), transform 240ms var(--td-ease);
}

.td-brand a:hover::before {
  box-shadow: 0 16px 34px rgba(31, 122, 255, 0.28);
  transform: translateY(-1px) rotate(-3deg);
}

.td-nav a,
.td-header-search,
.td-header-search button,
.td-category-strip a,
.td-rubric,
.td-card,
.td-list-card,
.td-featured-card,
.td-like-button,
.td-reaction-stat,
.wp-block-button__link {
  will-change: transform;
}

.td-nav a {
  position: relative;
  transition: background-color 180ms var(--td-ease), border-color 180ms var(--td-ease), color 180ms var(--td-ease), transform 180ms var(--td-ease);
}

.td-nav a:hover,
.td-nav a:focus {
  transform: translateY(-1px);
}

.td-header-search {
  transition: border-color 200ms var(--td-ease), box-shadow 200ms var(--td-ease), transform 200ms var(--td-ease);
}

.td-header-search:focus-within {
  border-color: rgba(31, 122, 255, 0.46);
  box-shadow: 0 16px 42px rgba(31, 122, 255, 0.13);
  transform: translateY(-1px);
}

.td-masthead {
  --td-pointer-x: 50%;
  --td-pointer-y: 45%;
  --td-tilt-x: 0deg;
  --td-tilt-y: 0deg;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, rgba(31, 122, 255, 0.34), transparent 44%),
    linear-gradient(35deg, rgba(117, 224, 79, 0.17), transparent 38%),
    var(--td-tech-panel);
  background-position:
    0 0,
    0 0,
    var(--td-pointer-x) var(--td-pointer-y),
    100% 100%,
    0 0;
  box-shadow: 0 38px 110px rgba(6, 11, 22, 0.26);
  isolation: isolate;
}

.td-masthead::before {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 255, 255, 0.05) 43px 44px, transparent 45px 88px);
  content: "";
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
  transform: translateX(-30%);
  z-index: -1;
}

.td-masthead-copy {
  animation: tdHeroCopyIn 680ms var(--td-ease) both;
}

.td-hero-system {
  transform: perspective(900px) rotateX(var(--td-tilt-x)) rotateY(var(--td-tilt-y));
  transform-style: preserve-3d;
  transition: transform 220ms var(--td-ease), box-shadow 220ms var(--td-ease), border-color 220ms var(--td-ease);
}

.td-masthead:hover .td-hero-system {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 34px 84px rgba(0, 0, 0, 0.3);
}

.td-system-flow span {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  transition: transform 220ms var(--td-ease), box-shadow 220ms var(--td-ease);
}

.td-system-flow span:hover {
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
  transform: translateY(-7px);
}

.td-system-grid div,
.td-proof-strip div,
.td-card,
.td-featured-card,
.td-rubric,
.td-newsletter,
.td-comments {
  transition: border-color 220ms var(--td-ease), box-shadow 220ms var(--td-ease), transform 220ms var(--td-ease), background-color 220ms var(--td-ease);
}

.td-proof-strip div:hover,
.td-rubric:hover,
.td-rubric:focus {
  box-shadow: 0 24px 64px rgba(31, 122, 255, 0.12);
  transform: translateY(-4px);
}

.td-card,
.td-list-card,
.td-featured-card {
  overflow: hidden;
}

.td-card::after,
.td-list-card::after,
.td-featured-card::after {
  background: linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.34) 48%, transparent 60%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-55%);
  transition: opacity 220ms var(--td-ease), transform 620ms var(--td-ease);
}

.td-card:hover::after,
.td-list-card:hover::after,
.td-featured-card:hover::after {
  opacity: 0.75;
  transform: translateX(58%);
}

.td-card:hover,
.td-list-card:hover,
.td-featured-card:hover {
  border-color: rgba(31, 122, 255, 0.32);
  box-shadow: 0 28px 82px rgba(6, 11, 22, 0.15);
  transform: translateY(-6px);
}

.td-card-media img,
.td-featured-media img,
.td-single-cover img {
  transition: filter 260ms var(--td-ease), transform 680ms var(--td-ease);
}

.td-card:hover .td-card-media img,
.td-list-card:hover .td-card-media img,
.td-featured-card:hover .td-featured-media img {
  filter: saturate(1.16) contrast(1.05);
  transform: scale(1.055);
}

.td-card h2 a,
.td-featured-body h2 a,
.td-list-card h2 a {
  background-image: linear-gradient(90deg, currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 220ms var(--td-ease), color 220ms var(--td-ease);
}

.td-card:hover h2 a,
.td-featured-card:hover h2 a,
.td-list-card:hover h2 a {
  background-size: 100% 2px;
}

.td-metric,
.td-like-button,
.td-reaction-stat,
.td-category-strip a,
.td-rubric,
.wp-block-button__link,
.td-header-search button {
  overflow: hidden;
  position: relative;
}

.td-ripple::after {
  animation: tdRipple 520ms var(--td-ease);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  content: "";
  height: 12px;
  left: var(--td-ripple-x, 50%);
  pointer-events: none;
  position: absolute;
  top: var(--td-ripple-y, 50%);
  transform: translate(-50%, -50%) scale(1);
  width: 12px;
  z-index: 3;
}

.td-like-button:hover,
.td-like-button:focus,
.td-like-button.is-liked,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  transform: translateY(-2px);
}

.td-single-header {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, rgba(31, 122, 255, 0.28), transparent 42%),
    linear-gradient(25deg, rgba(117, 224, 79, 0.15), transparent 36%),
    var(--td-tech-panel);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 32px 92px rgba(6, 11, 22, 0.18);
  color: #ffffff;
  margin-top: 34px;
  padding: 48px;
}

.td-single-header h1,
.td-single-header .td-terms,
.td-single-header .td-terms a {
  color: #ffffff;
}

.td-single-header .td-meta,
.td-single-header .td-meta a {
  color: #c9d7e9;
}

.td-single-header .td-reaction-stat,
.td-single-header .td-like-button-large {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.td-single-cover {
  transform-origin: center top;
}

.td-post-content {
  animation: tdContentIn 640ms var(--td-ease) 120ms both;
}

.td-post-content p,
.td-post-content li {
  color: #273244;
}

.td-post-content h2 {
  position: relative;
}

.td-post-content h2::before {
  background: linear-gradient(180deg, var(--td-tech-blue), var(--td-tech-cyan));
  border-radius: 999px;
  content: "";
  height: 100%;
  left: -20px;
  position: absolute;
  top: 0;
  width: 4px;
}

.td-read-progress {
  background: rgba(6, 11, 22, 0.08);
  height: 3px;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100000;
}

.td-read-progress::before {
  background: linear-gradient(90deg, var(--td-tech-blue), var(--td-tech-cyan), var(--td-tech-lime));
  content: "";
  display: block;
  height: 100%;
  transform: scaleX(var(--td-progress, 0));
  transform-origin: left center;
  transition: transform 80ms linear;
  width: 100%;
}

.admin-bar .td-read-progress {
  top: 32px;
}

@keyframes tdHeaderDrop {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes tdRipple {
  from { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(34); }
}

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation: tdGridDrift 18s linear infinite;
  }

  .td-masthead::before {
    animation: tdScan 7s linear infinite;
  }

  .td-single-header {
    animation: tdContentIn 540ms var(--td-ease) both;
  }

  .td-single-cover {
    animation: tdContentIn 600ms var(--td-ease) 80ms both;
  }
}

@keyframes tdGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 64px 64px, 64px 64px; }
}

@keyframes tdScan {
  0% { transform: translateX(-48%); opacity: 0; }
  12% { opacity: 0.52; }
  55% { opacity: 0.36; }
  100% { transform: translateX(48%); opacity: 0; }
}

@media (max-width: 1280px) {
  .td-masthead {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
    padding: 44px;
  }

  .td-masthead h1 {
    font-size: 60px;
  }
}

@media (max-width: 1024px) {
  .td-masthead {
    grid-template-columns: 1fr;
  }

  .td-hero-system {
    transform: none !important;
  }

  .td-single-header {
    padding: 38px;
  }
}

@media (max-width: 820px) {
  .td-latest-query .wp-block-post-template,
  .td-rubrics,
  .td-proof-strip,
  .td-archive-query .wp-block-post-template,
  .td-search-query .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .td-featured-card,
  .td-list-card {
    grid-template-columns: 1fr;
  }

  .td-list-card .td-card-body {
    padding: 20px;
  }
}

@media (max-width: 680px) {
  body {
    background-size: auto, auto, auto;
  }

  body::before,
  body::after {
    opacity: 0.48;
  }

  .td-header-inner {
    padding-left: 0;
    padding-right: 0;
  }

  .td-masthead,
  .td-single-header {
    border-radius: 8px;
    padding: 26px 20px 30px;
  }

  .td-masthead h1,
  .td-single-header h1 {
    font-size: 34px;
    line-height: 1.05;
  }

  .td-system-grid span {
    font-size: 22px;
  }

  .td-category-strip,
  .td-proof-strip,
  .td-section,
  .td-content-shell,
  .td-page-title,
  .td-single-header {
    max-width: calc(100vw - 48px) !important;
    width: calc(100vw - 48px) !important;
  }

  .td-post-content h2::before {
    left: -12px;
    width: 3px;
  }

  .admin-bar .td-read-progress {
    top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Final homepage width system */
.td-home {
  max-width: none !important;
  padding-bottom: 72px;
  width: 100% !important;
}

.td-home > .td-masthead {
  border-left: 0 !important;
  border-radius: 0 0 var(--td-home-radius) var(--td-home-radius) !important;
  border-right: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  max-width: none !important;
  min-height: 620px;
  padding: 72px 48px;
  width: 100vw !important;
}

.td-home > .td-masthead h1 {
  font-size: 72px !important;
  max-width: 960px !important;
}

.td-home > .td-masthead .td-hero-copy {
  max-width: 820px !important;
}

.td-home > .td-masthead .td-command-center {
  max-width: none !important;
}

.td-home > .td-category-strip,
.td-home > .td-executive-nav,
.td-home > .td-problem-map,
.td-home > .td-proof-strip,
.td-home > .td-intel-strip,
.td-home > .td-method-strip,
.td-home > .td-section {
  margin-left: calc(50% - 50vw + var(--td-home-edge)) !important;
  margin-right: calc(50% - 50vw + var(--td-home-edge)) !important;
  max-width: none !important;
  width: calc(100vw - (var(--td-home-edge) * 2)) !important;
}

.td-home > .td-category-strip,
.td-home > .td-executive-nav,
.td-home > .td-problem-map,
.td-home > .td-proof-strip,
.td-home > .td-intel-strip,
.td-home > .td-method-strip,
.td-home > .td-section {
  margin-top: var(--td-home-gap) !important;
}

.td-home > .td-category-strip {
  transform: none !important;
}

.td-home > .td-section {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(5, 8, 20, 0.08);
  border-radius: var(--td-home-radius) !important;
  box-shadow: 0 18px 58px rgba(5, 8, 20, 0.06);
  padding: 34px;
}

.td-home > .td-section.wp-block-group-is-layout-constrained > *,
.td-home > .td-section > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.td-home .td-section-head {
  border-top: 0 !important;
  padding-top: 0 !important;
}

.td-home .td-masthead,
.td-home .td-category-strip,
.td-home .td-executive-head,
.td-home .td-exec-card,
.td-home .td-problem-map,
.td-home .td-map-title,
.td-home .td-problem-row,
.td-home .td-proof-strip div,
.td-home .td-intel-card,
.td-home .td-method-strip,
.td-home .td-method-step,
.td-home .td-featured-card,
.td-home .td-card,
.td-home .td-list-card,
.td-home .td-rubric,
.td-home .td-highlight,
.td-home .td-newsletter,
.td-home .td-signal-panel {
  border-radius: var(--td-home-radius) !important;
}

.td-home > .td-masthead {
  border-radius: 0 0 var(--td-home-radius) var(--td-home-radius) !important;
}

.td-home .td-executive-nav {
  grid-template-columns: minmax(340px, 0.58fr) minmax(0, 1.42fr) !important;
}

.td-home .td-exec-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.td-home .td-problem-map {
  grid-template-columns: minmax(330px, 0.32fr) minmax(0, 1fr) !important;
  padding: 24px;
}

.td-home .td-problem-list {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.td-home .td-problem-row {
  align-items: start;
  grid-template-columns: 1fr !important;
  min-height: 168px;
  padding: 22px;
}

.td-home .td-proof-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.td-home .td-intel-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.td-home .td-method-strip {
  grid-template-columns: minmax(360px, 0.42fr) minmax(0, 1fr) !important;
  padding: 38px;
}

.td-home .td-latest-query .wp-block-post-template {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.td-home .td-latest-query .wp-block-post-template > li:first-child {
  grid-column: span 2 !important;
}

.td-home .td-rubrics {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

@media (max-width: 1280px) {
  .td-home > .td-masthead {
    grid-template-columns: 1fr !important;
    padding: 58px 40px;
  }

  .td-home > .td-masthead h1 {
    font-size: 60px !important;
  }

  .td-home .td-executive-nav,
  .td-home .td-problem-map,
  .td-home .td-method-strip {
    grid-template-columns: 1fr !important;
  }

  .td-home .td-exec-grid,
  .td-home .td-problem-list,
  .td-home .td-method-steps,
  .td-home .td-latest-query .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .td-home .td-rubrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .td-home > .td-masthead {
    min-height: 0;
    padding: 34px 28px;
    width: 100vw !important;
  }

  .td-home > .td-masthead .td-masthead-copy,
  .td-home > .td-masthead .td-hero-system {
    min-width: 0;
    width: 100%;
  }

  .td-home > .td-masthead h1 {
    font-size: 32px !important;
    line-height: 1.04;
    max-width: 100% !important;
    overflow-wrap: break-word;
  }

  .td-home > .td-masthead .td-hero-copy {
    max-width: 100% !important;
    overflow-wrap: break-word;
  }

  .td-home > .td-category-strip,
  .td-home > .td-executive-nav,
  .td-home > .td-problem-map,
  .td-home > .td-proof-strip,
  .td-home > .td-intel-strip,
  .td-home > .td-method-strip,
  .td-home > .td-section {
    margin-left: calc(50% - 50vw + var(--td-home-edge-mobile)) !important;
    margin-right: calc(50% - 50vw + var(--td-home-edge-mobile)) !important;
    width: calc(100vw - (var(--td-home-edge-mobile) * 2)) !important;
  }

  .td-home > .td-section,
  .td-home .td-problem-map,
  .td-home .td-method-strip {
    padding: 20px;
  }

  .td-home .td-exec-grid,
  .td-home .td-problem-list,
  .td-home .td-proof-strip,
  .td-home .td-intel-strip,
  .td-home .td-method-steps,
  .td-home .td-latest-query .wp-block-post-template,
  .td-home .td-rubrics {
    grid-template-columns: 1fr !important;
  }

  .td-home .td-latest-query .wp-block-post-template > li:first-child {
    grid-column: span 1 !important;
  }

  .td-home .td-exec-card,
  .td-home .td-problem-row {
    min-height: 0;
  }
}

/* Final homepage width system */
.td-home {
  max-width: none !important;
  padding-bottom: 72px;
  width: 100% !important;
}

.td-home > .td-masthead {
  border-left: 0 !important;
  border-radius: 0 0 var(--td-home-radius) var(--td-home-radius) !important;
  border-right: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  max-width: none !important;
  min-height: 620px;
  padding: 72px 48px;
  width: 100vw !important;
}

.td-home > .td-masthead h1 {
  font-size: 72px;
  max-width: 960px;
}

.td-home > .td-masthead .td-hero-copy {
  max-width: 820px;
}

.td-home > .td-masthead .td-command-center {
  max-width: none !important;
}

.td-home > .td-category-strip,
.td-home > .td-executive-nav,
.td-home > .td-problem-map,
.td-home > .td-proof-strip,
.td-home > .td-intel-strip,
.td-home > .td-method-strip,
.td-home > .td-section {
  margin-left: calc(50% - 50vw + var(--td-home-edge)) !important;
  margin-right: calc(50% - 50vw + var(--td-home-edge)) !important;
  max-width: none !important;
  width: calc(100vw - (var(--td-home-edge) * 2)) !important;
}

.td-home > .td-category-strip,
.td-home > .td-executive-nav,
.td-home > .td-problem-map,
.td-home > .td-proof-strip,
.td-home > .td-intel-strip,
.td-home > .td-method-strip,
.td-home > .td-section {
  margin-top: var(--td-home-gap) !important;
}

.td-home > .td-category-strip {
  transform: none !important;
}

.td-home > .td-section {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(5, 8, 20, 0.08);
  border-radius: var(--td-home-radius);
  box-shadow: 0 18px 58px rgba(5, 8, 20, 0.06);
  padding: 34px;
}

.td-home > .td-section.wp-block-group-is-layout-constrained > *,
.td-home > .td-section > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.td-home .td-section-head {
  border-top: 0 !important;
  padding-top: 0 !important;
}

.td-home .td-masthead,
.td-home .td-category-strip,
.td-home .td-executive-head,
.td-home .td-exec-card,
.td-home .td-problem-map,
.td-home .td-map-title,
.td-home .td-problem-row,
.td-home .td-proof-strip div,
.td-home .td-intel-card,
.td-home .td-method-strip,
.td-home .td-method-step,
.td-home .td-featured-card,
.td-home .td-card,
.td-home .td-list-card,
.td-home .td-rubric,
.td-home .td-highlight,
.td-home .td-newsletter,
.td-home .td-signal-panel {
  border-radius: var(--td-home-radius) !important;
}

.td-home > .td-masthead {
  border-radius: 0 0 var(--td-home-radius) var(--td-home-radius) !important;
}

.td-home .td-executive-nav {
  grid-template-columns: minmax(340px, 0.58fr) minmax(0, 1.42fr) !important;
}

.td-home .td-exec-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.td-home .td-problem-map {
  grid-template-columns: minmax(330px, 0.32fr) minmax(0, 1fr) !important;
  padding: 24px;
}

.td-home .td-problem-list {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.td-home .td-problem-row {
  align-items: start;
  grid-template-columns: 1fr !important;
  min-height: 168px;
  padding: 22px;
}

.td-home .td-proof-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.td-home .td-intel-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.td-home .td-method-strip {
  grid-template-columns: minmax(360px, 0.42fr) minmax(0, 1fr) !important;
  padding: 38px;
}

.td-home .td-latest-query .wp-block-post-template {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.td-home .td-latest-query .wp-block-post-template > li:first-child {
  grid-column: span 2 !important;
}

.td-home .td-rubrics {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

@media (max-width: 1280px) {
  .td-home > .td-masthead {
    grid-template-columns: 1fr !important;
    padding: 58px 40px;
  }

  .td-home > .td-masthead h1 {
    font-size: 60px;
  }

  .td-home .td-executive-nav,
  .td-home .td-problem-map,
  .td-home .td-method-strip {
    grid-template-columns: 1fr !important;
  }

  .td-home .td-exec-grid,
  .td-home .td-problem-list,
  .td-home .td-method-steps,
  .td-home .td-latest-query .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .td-home .td-rubrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .td-home > .td-masthead {
    min-height: 0;
    padding: 34px 20px;
    width: 100vw !important;
  }

  .td-home > .td-masthead h1 {
    font-size: 32px;
    line-height: 1.04;
  }

  .td-home > .td-category-strip,
  .td-home > .td-executive-nav,
  .td-home > .td-problem-map,
  .td-home > .td-proof-strip,
  .td-home > .td-intel-strip,
  .td-home > .td-method-strip,
  .td-home > .td-section {
    margin-left: calc(50% - 50vw + var(--td-home-edge-mobile)) !important;
    margin-right: calc(50% - 50vw + var(--td-home-edge-mobile)) !important;
    width: calc(100vw - (var(--td-home-edge-mobile) * 2)) !important;
  }

  .td-home > .td-section,
  .td-home .td-problem-map,
  .td-home .td-method-strip {
    padding: 20px;
  }

  .td-home .td-exec-grid,
  .td-home .td-problem-list,
  .td-home .td-proof-strip,
  .td-home .td-intel-strip,
  .td-home .td-method-steps,
  .td-home .td-latest-query .wp-block-post-template,
  .td-home .td-rubrics {
    grid-template-columns: 1fr !important;
  }

  .td-home .td-latest-query .wp-block-post-template > li:first-child {
    grid-column: span 1 !important;
  }

  .td-home .td-exec-card,
  .td-home .td-problem-row {
    min-height: 0;
  }
}

/* Full-width header and article lead */
.td-site-header {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: none !important;
  width: 100vw !important;
}

.td-site-header > .td-header-inner {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: none !important;
  width: calc(100vw - 48px) !important;
}

.td-main > .td-single-header {
  margin-left: calc(50% - 50vw + 24px) !important;
  margin-right: calc(50% - 50vw + 24px) !important;
  max-width: none !important;
  width: calc(100vw - 48px) !important;
}

.td-single-header.wp-block-group-is-layout-constrained > * {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: min(1360px, calc(100% - 96px)) !important;
}

.td-single-header h1 {
  max-width: 1120px !important;
}

@media (max-width: 760px) {
  .td-site-header > .td-header-inner {
    width: calc(100vw - 32px) !important;
  }

  .td-main > .td-single-header {
    width: calc(100vw - 32px) !important;
  }

  .td-main > .td-single-header {
    margin-left: calc(50% - 50vw + 16px) !important;
    margin-right: calc(50% - 50vw + 16px) !important;
  }

  .td-single-header.wp-block-group-is-layout-constrained > * {
    max-width: calc(100% - 32px) !important;
  }
}

/* Reading time and article CTA buttons */
.td-icon-time {
  border-radius: 99px;
}

.td-icon-time::before {
  background: currentColor;
  border-radius: 99px;
  content: "";
  height: 5px;
  left: 5px;
  position: absolute;
  top: 2px;
  width: 2px;
}

.td-icon-time::after {
  background: currentColor;
  border-radius: 99px;
  content: "";
  height: 2px;
  left: 5px;
  position: absolute;
  top: 6px;
  width: 5px;
}

.td-article-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.td-article-button {
  --td-button-color: #145dff;
  align-items: center;
  background: var(--td-button-color);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(5, 8, 20, 0.18);
  color: #ffffff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 880;
  justify-content: center;
  min-height: 46px;
  overflow: hidden;
  padding: 12px 16px;
  position: relative;
  text-decoration: none;
  transition: border-color 220ms var(--td-f500-ease), box-shadow 220ms var(--td-f500-ease), filter 220ms var(--td-f500-ease), transform 220ms var(--td-f500-ease);
}

.td-article-button::before {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 58%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 220ms var(--td-f500-ease);
}

.td-article-button span {
  position: relative;
  z-index: 1;
}

.td-article-button:hover,
.td-article-button:focus {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 22px 58px rgba(5, 8, 20, 0.24);
  color: #ffffff;
  filter: saturate(1.08) brightness(1.04);
  transform: translateY(-2px);
}

.td-article-button:hover::before,
.td-article-button:focus::before {
  opacity: 1;
}

@media (max-width: 680px) {
  .td-article-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .td-article-button {
    width: 100%;
  }
}

/* Unified wide homepage layout */
:root {
  --td-home-edge: 24px;
  --td-home-edge-mobile: 16px;
  --td-home-radius: 8px;
  --td-home-gap: 24px;
}

.td-home {
  max-width: none !important;
  padding-bottom: 72px;
  width: 100% !important;
}

.td-home > .td-masthead {
  border-left: 0;
  border-radius: 0 0 var(--td-home-radius) var(--td-home-radius);
  border-right: 0;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  max-width: none !important;
  min-height: 620px;
  padding: 72px 48px;
  width: 100vw !important;
}

.td-home > .td-masthead h1 {
  font-size: 72px;
  max-width: 960px;
}

.td-home > .td-masthead .td-hero-copy {
  max-width: 820px;
}

.td-home > .td-masthead .td-command-center {
  max-width: none;
}

.td-home > .td-category-strip,
.td-home > .td-executive-nav,
.td-home > .td-problem-map,
.td-home > .td-proof-strip,
.td-home > .td-intel-strip,
.td-home > .td-method-strip,
.td-home > .td-section {
  margin-left: calc(50% - 50vw + var(--td-home-edge)) !important;
  margin-right: calc(50% - 50vw + var(--td-home-edge)) !important;
  max-width: none !important;
  width: calc(100vw - (var(--td-home-edge) * 2)) !important;
}

.td-home > .td-category-strip {
  border-radius: var(--td-home-radius);
  margin-top: var(--td-home-gap) !important;
  transform: none;
}

.td-home > .td-executive-nav,
.td-home > .td-problem-map,
.td-home > .td-proof-strip,
.td-home > .td-intel-strip,
.td-home > .td-method-strip,
.td-home > .td-section {
  margin-top: var(--td-home-gap) !important;
}

.td-home > .td-section {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(5, 8, 20, 0.08);
  border-radius: var(--td-home-radius);
  box-shadow: 0 18px 58px rgba(5, 8, 20, 0.06);
  padding: 34px;
}

.td-home > .td-section.wp-block-group-is-layout-constrained > *,
.td-home > .td-section > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.td-home .td-section-head {
  border-top: 0;
  padding-top: 0;
}

.td-home .td-section-head h2 {
  font-size: 40px;
}

.td-home .td-featured-card,
.td-home .td-card,
.td-home .td-list-card,
.td-home .td-rubric,
.td-home .td-highlight,
.td-home .td-newsletter,
.td-home .td-signal-panel,
.td-home .td-executive-head,
.td-home .td-exec-card,
.td-home .td-problem-map,
.td-home .td-map-title,
.td-home .td-problem-row,
.td-home .td-proof-strip div,
.td-home .td-intel-card,
.td-home .td-method-strip,
.td-home .td-method-step,
.td-home .td-category-strip {
  border-radius: var(--td-home-radius);
}

.td-home .td-executive-nav {
  grid-template-columns: minmax(340px, 0.58fr) minmax(0, 1.42fr);
}

.td-home .td-exec-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.td-home .td-exec-card {
  min-height: 260px;
}

.td-home .td-problem-map {
  grid-template-columns: minmax(330px, 0.32fr) minmax(0, 1fr);
  padding: 24px;
}

.td-home .td-problem-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.td-home .td-problem-row {
  align-items: start;
  grid-template-columns: 1fr;
  min-height: 168px;
  padding: 22px;
}

.td-home .td-proof-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.td-home .td-intel-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.td-home .td-method-strip {
  grid-template-columns: minmax(360px, 0.42fr) minmax(0, 1fr);
  padding: 38px;
}

.td-home .td-latest-query .wp-block-post-template {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.td-home .td-latest-query .wp-block-post-template > li:first-child {
  grid-column: span 2;
}

.td-home .td-rubrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1280px) {
  .td-home > .td-masthead {
    grid-template-columns: 1fr;
    padding: 58px 40px;
  }

  .td-home > .td-masthead h1 {
    font-size: 60px;
  }

  .td-home .td-executive-nav,
  .td-home .td-problem-map,
  .td-home .td-method-strip {
    grid-template-columns: 1fr;
  }

  .td-home .td-exec-grid,
  .td-home .td-problem-list,
  .td-home .td-method-steps,
  .td-home .td-latest-query .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .td-home .td-rubrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .td-home > .td-masthead {
    border-radius: 0 0 var(--td-home-radius) var(--td-home-radius);
    min-height: 0;
    padding: 34px 20px;
    width: 100vw !important;
  }

  .td-home > .td-masthead h1 {
    font-size: 32px;
    line-height: 1.04;
  }

  .td-home > .td-category-strip,
  .td-home > .td-executive-nav,
  .td-home > .td-problem-map,
  .td-home > .td-proof-strip,
  .td-home > .td-intel-strip,
  .td-home > .td-method-strip,
  .td-home > .td-section {
    margin-left: calc(50% - 50vw + var(--td-home-edge-mobile)) !important;
    margin-right: calc(50% - 50vw + var(--td-home-edge-mobile)) !important;
    width: calc(100vw - (var(--td-home-edge-mobile) * 2)) !important;
  }

  .td-home > .td-section,
  .td-home .td-problem-map,
  .td-home .td-method-strip {
    padding: 20px;
  }

  .td-home .td-exec-grid,
  .td-home .td-problem-list,
  .td-home .td-proof-strip,
  .td-home .td-intel-strip,
  .td-home .td-method-steps,
  .td-home .td-latest-query .wp-block-post-template,
  .td-home .td-rubrics {
    grid-template-columns: 1fr;
  }

  .td-home .td-latest-query .wp-block-post-template > li:first-child {
    grid-column: span 1;
  }

  .td-home .td-exec-card,
  .td-home .td-problem-row {
    min-height: 0;
  }

  .td-home .td-section-head h2 {
    font-size: 30px;
  }
}

/* Executive knowledge hub layer */
:root {
  --td-exec-ink: #050814;
  --td-exec-panel: #070c18;
  --td-exec-muted: #637186;
  --td-exec-line: rgba(5, 8, 20, 0.1);
  --td-exec-blue: #145dff;
  --td-exec-cyan: #16cce5;
  --td-exec-lime: #86df3f;
  --td-exec-amber: #ffb13d;
  --td-exec-rose: #ff5078;
}

.td-masthead h1 {
  max-width: 850px;
}

.td-executive-nav,
.td-problem-map,
.td-method-strip {
  width: min(1320px, calc(100% - 48px));
}

.td-executive-nav {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  margin: 34px auto 0;
}

.td-executive-head {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, rgba(20, 93, 255, 0.28), transparent 44%),
    var(--td-exec-panel);
  background-size: 34px 34px, 34px 34px, auto, auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 30px 86px rgba(5, 8, 20, 0.18);
  color: #ffffff;
  min-height: 100%;
  overflow: hidden;
  padding: 32px;
  position: relative;
}

.td-executive-head::after {
  background:
    linear-gradient(90deg, var(--td-exec-lime), var(--td-exec-cyan)) 0 0 / 52% 12px no-repeat,
    linear-gradient(90deg, var(--td-exec-blue), var(--td-exec-cyan)) 0 32px / 74% 12px no-repeat,
    linear-gradient(90deg, var(--td-exec-amber), var(--td-exec-rose)) 0 64px / 42% 12px no-repeat;
  bottom: 32px;
  content: "";
  height: 76px;
  left: 32px;
  opacity: 0.9;
  position: absolute;
  right: 32px;
}

.td-executive-head .td-kicker {
  color: #a9f2ff;
}

.td-executive-head h2 {
  color: #ffffff;
  font-size: 42px;
  font-weight: 920;
  line-height: 1.02;
  margin: 0;
  max-width: 420px;
}

.td-executive-head p:not(.td-kicker) {
  color: #d4e1f1;
  font-size: 16px;
  line-height: 1.55;
  margin: 18px 0 110px;
  max-width: 460px;
}

.td-exec-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.td-exec-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--td-exec-line);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(5, 8, 20, 0.075);
  color: var(--td-exec-ink);
  min-height: 210px;
  overflow: hidden;
  padding: 24px;
  position: relative;
  text-decoration: none;
  transition: background-color 240ms var(--td-f500-ease), border-color 240ms var(--td-f500-ease), box-shadow 240ms var(--td-f500-ease), color 240ms var(--td-f500-ease), transform 240ms var(--td-f500-ease);
}

.td-exec-card::before {
  background: linear-gradient(90deg, var(--td-exec-blue), var(--td-exec-cyan), var(--td-exec-lime));
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.td-exec-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--td-exec-cyan), var(--td-exec-lime));
}

.td-exec-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--td-exec-lime), var(--td-exec-amber));
}

.td-exec-card:nth-child(4)::before {
  background: linear-gradient(90deg, var(--td-exec-blue), var(--td-exec-rose));
}

.td-exec-card span {
  color: var(--td-exec-blue);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 26px;
  text-transform: uppercase;
}

.td-exec-card strong {
  display: block;
  font-size: 25px;
  line-height: 1.08;
  max-width: 390px;
}

.td-exec-card small {
  color: var(--td-exec-muted);
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.42;
  margin-top: 16px;
}

.td-exec-card::after {
  bottom: 22px;
  color: currentColor;
  content: "Открыть";
  font-size: 13px;
  font-weight: 850;
  opacity: 0.72;
  position: absolute;
  right: 24px;
}

.td-exec-card:hover,
.td-exec-card:focus {
  background: var(--td-exec-panel);
  border-color: rgba(5, 8, 20, 0.44);
  box-shadow: 0 34px 94px rgba(5, 8, 20, 0.17);
  color: #ffffff;
  transform: translateY(-6px);
}

.td-exec-card:hover span,
.td-exec-card:focus span,
.td-exec-card:hover small,
.td-exec-card:focus small {
  color: #cbd8e8;
}

.td-problem-map {
  background: #ffffff;
  border: 1px solid var(--td-exec-line);
  border-radius: 8px;
  box-shadow: 0 18px 58px rgba(5, 8, 20, 0.07);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  margin: 18px auto 0;
  padding: 18px;
}

.td-map-title {
  background:
    linear-gradient(135deg, rgba(20, 93, 255, 0.1), transparent 52%),
    #f6f9fd;
  border: 1px solid rgba(5, 8, 20, 0.08);
  border-radius: 8px;
  padding: 22px;
}

.td-map-title span {
  color: var(--td-exec-blue);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.td-map-title strong {
  color: var(--td-exec-ink);
  display: block;
  font-size: 27px;
  line-height: 1.08;
}

.td-problem-list {
  display: grid;
  gap: 10px;
}

.td-problem-row {
  align-items: center;
  background: #f8fbff;
  border: 1px solid rgba(5, 8, 20, 0.08);
  border-radius: 8px;
  color: var(--td-exec-ink);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 64px;
  overflow: hidden;
  padding: 14px 18px;
  position: relative;
  text-decoration: none;
  transition: background-color 220ms var(--td-f500-ease), border-color 220ms var(--td-f500-ease), box-shadow 220ms var(--td-f500-ease), transform 220ms var(--td-f500-ease);
}

.td-problem-row::before {
  background: linear-gradient(180deg, var(--td-exec-blue), var(--td-exec-cyan));
  bottom: 12px;
  content: "";
  left: 0;
  position: absolute;
  top: 12px;
  width: 4px;
}

.td-problem-row span {
  font-size: 17px;
  font-weight: 850;
  line-height: 1.15;
}

.td-problem-row small {
  color: var(--td-exec-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.td-problem-row:hover,
.td-problem-row:focus {
  background: var(--td-exec-panel);
  border-color: rgba(5, 8, 20, 0.34);
  box-shadow: 0 22px 64px rgba(5, 8, 20, 0.14);
  color: #ffffff;
  transform: translateX(4px);
}

.td-problem-row:hover small,
.td-problem-row:focus small {
  color: #cbd8e8;
}

.td-method-strip {
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, rgba(20, 93, 255, 0.24), transparent 44%),
    var(--td-exec-panel);
  background-size: 34px 34px, 34px 34px, auto, auto;
  border-radius: 8px;
  box-shadow: 0 34px 104px rgba(5, 8, 20, 0.2);
  color: #ffffff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1fr);
  margin: 32px auto 0;
  overflow: hidden;
  padding: 34px;
}

.td-method-copy .td-kicker {
  color: #a9f2ff;
}

.td-method-copy h2 {
  color: #ffffff;
  font-size: 42px;
  font-weight: 920;
  line-height: 1.02;
  margin: 0;
  max-width: 470px;
}

.td-method-copy p:not(.td-kicker) {
  color: #d5e1f0;
  font-size: 16px;
  line-height: 1.58;
  max-width: 520px;
}

.td-method-steps {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.td-method-step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  min-height: 238px;
  padding: 20px;
  position: relative;
  transition: background-color 220ms var(--td-f500-ease), border-color 220ms var(--td-f500-ease), box-shadow 220ms var(--td-f500-ease), transform 220ms var(--td-f500-ease);
}

.td-method-step span {
  color: var(--td-exec-lime);
  display: block;
  font-size: 13px;
  font-weight: 920;
  margin-bottom: 54px;
}

.td-method-step strong {
  color: #ffffff;
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.td-method-step small {
  color: #cbd8e8;
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.42;
  margin-top: 12px;
}

.td-method-step::after {
  background: linear-gradient(90deg, var(--td-exec-blue), var(--td-exec-cyan));
  bottom: 20px;
  content: "";
  height: 4px;
  left: 20px;
  position: absolute;
  width: 52px;
}

.td-method-step:nth-child(2)::after {
  background: linear-gradient(90deg, var(--td-exec-cyan), var(--td-exec-lime));
}

.td-method-step:nth-child(3)::after {
  background: linear-gradient(90deg, var(--td-exec-lime), var(--td-exec-amber));
}

.td-method-step:nth-child(4)::after {
  background: linear-gradient(90deg, var(--td-exec-amber), var(--td-exec-rose));
}

.td-method-step:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  transform: translateY(-6px);
}

.td-article-layout {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: 290px minmax(0, 1fr);
  margin-top: 44px;
  width: min(1180px, calc(100% - 48px));
}

.td-article-aside {
  align-self: start;
  display: grid;
  gap: 14px;
  position: sticky;
  top: 112px;
}

.admin-bar .td-article-aside {
  top: 144px;
}

.td-aside-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--td-exec-line);
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(5, 8, 20, 0.065);
  padding: 20px;
}

.td-aside-card span {
  color: var(--td-exec-blue);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.td-aside-card p {
  color: var(--td-exec-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.td-article-toc {
  display: grid;
  gap: 6px;
}

.td-article-toc a {
  border-left: 3px solid transparent;
  color: #273244;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
  padding: 7px 0 7px 10px;
  text-decoration: none;
  transition: border-color 180ms var(--td-f500-ease), color 180ms var(--td-f500-ease), transform 180ms var(--td-f500-ease);
}

.td-article-toc a.is-sub {
  color: var(--td-exec-muted);
  font-size: 13px;
  padding-left: 18px;
}

.td-article-toc a:hover,
.td-article-toc a:focus,
.td-article-toc a.is-active {
  border-left-color: var(--td-exec-blue);
  color: var(--td-exec-blue);
  transform: translateX(2px);
}

.td-article-main {
  min-width: 0;
}

.td-article-main .td-post-content,
.td-article-main .td-comments,
.td-article-main .td-post-nav {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.td-post-content h2,
.td-post-content h3 {
  scroll-margin-top: 120px;
}

@media (prefers-reduced-motion: no-preference) {
  .td-executive-head::after,
  .td-method-step::after,
  .td-problem-row::before {
    animation: tdExecutiveSweep 6s linear infinite;
    background-size: 190% 100%;
  }
}

@keyframes tdExecutiveSweep {
  from { background-position: 0 0; }
  to { background-position: 190% 0; }
}

@media (max-width: 1180px) {
  .td-executive-nav,
  .td-method-strip,
  .td-article-layout {
    grid-template-columns: 1fr;
  }

  .td-executive-head p:not(.td-kicker) {
    margin-bottom: 92px;
  }

  .td-method-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .td-article-aside {
    position: static;
  }

  .td-article-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .td-exec-grid,
  .td-intel-strip,
  .td-problem-map,
  .td-method-steps,
  .td-article-aside {
    grid-template-columns: 1fr;
  }

  .td-problem-row {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .td-executive-head h2,
  .td-method-copy h2 {
    font-size: 32px;
  }

  .td-exec-card,
  .td-method-step {
    min-height: 0;
  }

  .td-method-step span {
    margin-bottom: 34px;
  }
}

@media (max-width: 680px) {
  .td-executive-nav,
  .td-problem-map,
  .td-method-strip,
  .td-article-layout {
    max-width: calc(100vw - 48px) !important;
    width: calc(100vw - 48px) !important;
  }

  .td-masthead h1 {
    font-size: 31px;
    line-height: 1.04;
  }

  .td-executive-head,
  .td-method-strip {
    padding: 22px;
  }

  .td-executive-head::after {
    bottom: 22px;
    left: 22px;
    right: 22px;
  }

  .td-executive-head p:not(.td-kicker) {
    margin-bottom: 100px;
  }

  .td-exec-card strong,
  .td-intel-card strong {
    font-size: 22px;
  }

  .td-map-title strong {
    font-size: 24px;
  }

  .td-article-layout {
    gap: 24px;
    margin-top: 26px;
  }

  .td-article-aside {
    display: none;
  }
}

/* Fortune 500 inspired enterprise content hub layer */
:root {
  --td-f500-ink: #050814;
  --td-f500-panel: #070c18;
  --td-f500-surface: rgba(255, 255, 255, 0.92);
  --td-f500-blue: #1463ff;
  --td-f500-cyan: #18d1e8;
  --td-f500-lime: #82df3f;
  --td-f500-amber: #ffb13d;
  --td-f500-rose: #ff5078;
  --td-f500-line: rgba(5, 8, 20, 0.1);
  --td-f500-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background:
    linear-gradient(117deg, rgba(20, 99, 255, 0.08), transparent 31%),
    linear-gradient(242deg, rgba(24, 209, 232, 0.06), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f2f7fb 48%, #ffffff 100%);
  color: var(--td-f500-ink);
}

body::before {
  background:
    linear-gradient(90deg, rgba(20, 99, 255, 0.075) 1px, transparent 1px),
    linear-gradient(0deg, rgba(24, 209, 232, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
}

body::after {
  background:
    linear-gradient(118deg, transparent 0 40%, rgba(20, 99, 255, 0.06) 44%, transparent 52%),
    linear-gradient(118deg, transparent 0 63%, rgba(130, 223, 63, 0.045) 67%, transparent 74%);
}

.td-site-header {
  background: rgba(251, 253, 255, 0.82);
  border-bottom-color: rgba(5, 8, 20, 0.07);
}

.td-header-inner {
  min-height: 80px;
}

.td-nav a {
  border-radius: 8px;
}

.td-header-search {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(5, 8, 20, 0.09);
  box-shadow: 0 18px 46px rgba(5, 8, 20, 0.06);
}

.td-masthead {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(138deg, rgba(20, 99, 255, 0.36), transparent 42%),
    linear-gradient(35deg, rgba(130, 223, 63, 0.18), transparent 36%),
    linear-gradient(160deg, rgba(24, 209, 232, 0.16), transparent 46%),
    var(--td-f500-panel);
  background-size: 36px 36px, 36px 36px, auto, auto, auto, auto;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 42px 120px rgba(5, 8, 20, 0.3);
  grid-template-columns: minmax(0, 0.94fr) minmax(390px, 0.66fr);
  min-height: 590px;
  padding: 58px;
}

.td-masthead::before {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, 0.055) 47px 48px, transparent 49px 94px);
}

.td-masthead::after {
  background: linear-gradient(90deg, var(--td-f500-lime), var(--td-f500-cyan), var(--td-f500-blue), var(--td-f500-amber), var(--td-f500-rose));
  height: 7px;
}

.td-masthead .td-kicker {
  color: #a9f2ff;
}

.td-masthead .td-kicker::before {
  background: var(--td-f500-lime);
  box-shadow: 0 0 22px rgba(130, 223, 63, 0.7);
}

.td-masthead h1 {
  font-size: 66px;
  font-weight: 940;
  hyphens: none;
  line-height: 0.96;
  max-width: 900px;
  overflow-wrap: normal;
  word-break: normal;
}

.td-masthead .td-hero-copy {
  color: #d7e5f6;
  font-size: 21px;
  line-height: 1.58;
  max-width: 760px;
}

.td-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.td-hero-actions a {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--td-f500-ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 860;
  min-height: 44px;
  overflow: hidden;
  padding: 11px 15px;
  position: relative;
  text-decoration: none;
  transition: background-color 220ms var(--td-f500-ease), border-color 220ms var(--td-f500-ease), color 220ms var(--td-f500-ease), transform 220ms var(--td-f500-ease);
}

.td-hero-actions a + a {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.td-hero-actions a:hover,
.td-hero-actions a:focus {
  background: var(--td-f500-lime);
  border-color: var(--td-f500-lime);
  color: var(--td-f500-ink);
  transform: translateY(-2px);
}

.td-hero-tags {
  margin-top: 20px;
}

.td-hero-tags span {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.td-command-center {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.065)),
    rgba(255, 255, 255, 0.08);
  min-height: 455px;
  padding: 24px;
}

.td-command-center::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  content: "";
  height: 1px;
  left: 24px;
  position: absolute;
  right: 24px;
  top: 66px;
  z-index: 1;
}

.td-command-map {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    rgba(5, 8, 20, 0.32);
  background-size: 30px 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  flex: 1 1 auto;
  margin: 26px 0 18px;
  min-height: 260px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.td-command-line {
  background: linear-gradient(90deg, transparent, rgba(24, 209, 232, 0.9), transparent);
  height: 2px;
  left: 14%;
  position: absolute;
  right: 14%;
  top: 50%;
  transform-origin: center;
}

.td-command-line-a {
  transform: rotate(0deg);
}

.td-command-line-b {
  transform: rotate(34deg);
}

.td-command-line-c {
  transform: rotate(-28deg);
}

.td-command-node {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  color: var(--td-f500-ink);
  min-width: 96px;
  padding: 13px 14px;
  position: absolute;
}

.td-command-node small {
  color: var(--td-f500-blue);
  display: block;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.td-command-node strong {
  display: block;
  font-size: 15px;
  line-height: 1;
}

.td-node-a {
  left: 8%;
  top: 18%;
}

.td-node-b {
  left: 38%;
  top: 38%;
}

.td-node-c {
  right: 9%;
  top: 16%;
}

.td-node-d {
  bottom: 14%;
  right: 25%;
}

.td-system-grid {
  gap: 12px;
}

.td-system-grid div {
  background: rgba(5, 8, 20, 0.58);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.td-system-grid span {
  font-size: 28px;
}

.td-category-strip {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 54px rgba(5, 8, 20, 0.08);
  transform: translateY(-10px);
}

.td-proof-strip {
  margin-top: 8px;
}

.td-proof-strip div,
.td-intel-card,
.td-card,
.td-list-card,
.td-rubric,
.td-newsletter,
.td-comments {
  background: var(--td-f500-surface);
  border-color: var(--td-f500-line);
  box-shadow: 0 18px 52px rgba(5, 8, 20, 0.065);
}

.td-proof-strip div {
  min-height: 162px;
}

.td-intel-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px auto 0;
  width: min(1320px, calc(100% - 48px));
}

.td-intel-card {
  border: 1px solid var(--td-f500-line);
  border-radius: 8px;
  min-height: 190px;
  overflow: hidden;
  padding: 22px;
  position: relative;
  transition: background-color 220ms var(--td-f500-ease), border-color 220ms var(--td-f500-ease), box-shadow 220ms var(--td-f500-ease), color 220ms var(--td-f500-ease), transform 220ms var(--td-f500-ease);
}

.td-intel-card::before {
  background: linear-gradient(90deg, var(--td-f500-blue), var(--td-f500-cyan), var(--td-f500-lime));
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.td-intel-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--td-f500-cyan), var(--td-f500-lime), var(--td-f500-amber));
}

.td-intel-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--td-f500-lime), var(--td-f500-amber), var(--td-f500-rose));
}

.td-intel-card span {
  color: var(--td-f500-blue);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.td-intel-card strong {
  color: var(--td-f500-ink);
  display: block;
  font-size: 23px;
  line-height: 1.1;
  max-width: 330px;
}

.td-intel-card p {
  color: var(--td-muted);
  font-size: 15px;
  line-height: 1.52;
  margin: 14px 0 0;
}

.td-intel-card:hover,
.td-intel-card:focus {
  background: var(--td-f500-panel);
  border-color: rgba(5, 8, 20, 0.4);
  box-shadow: 0 28px 82px rgba(5, 8, 20, 0.16);
  color: #ffffff;
  transform: translateY(-5px);
}

.td-intel-card:hover span,
.td-intel-card:hover strong,
.td-intel-card:focus span,
.td-intel-card:focus strong {
  color: #ffffff;
}

.td-intel-card:hover p,
.td-intel-card:focus p {
  color: #cdd9ea;
}

.td-section {
  padding-top: 66px;
}

.td-section-head {
  align-items: flex-end;
  border-top: 1px solid rgba(5, 8, 20, 0.08);
  padding-top: 24px;
}

.td-section-head h2,
.td-section-head h1 {
  font-size: 38px;
  line-height: 1;
}

.td-featured-card {
  border-color: rgba(5, 8, 20, 0.18);
  box-shadow: 0 34px 96px rgba(5, 8, 20, 0.16);
}

.td-featured-body {
  min-height: 500px;
  padding: 50px;
}

.td-featured-body h2 {
  font-size: 42px;
  line-height: 1.04;
}

.td-latest-query .wp-block-post-template {
  gap: 20px;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.94fr) minmax(0, 0.94fr);
}

.td-latest-query .wp-block-post-template > li:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.td-latest-query .wp-block-post-template > li:first-child .td-card {
  background:
    linear-gradient(135deg, rgba(20, 99, 255, 0.22), transparent 46%),
    linear-gradient(28deg, rgba(24, 209, 232, 0.16), transparent 35%),
    var(--td-f500-panel);
  color: #ffffff;
}

.td-latest-query .wp-block-post-template > li:first-child .td-card::before {
  height: 6px;
}

.td-latest-query .wp-block-post-template > li:first-child .td-card-media {
  aspect-ratio: 16 / 8.2;
}

.td-latest-query .wp-block-post-template > li:first-child .td-card-body {
  padding: 30px;
}

.td-latest-query .wp-block-post-template > li:first-child .td-card h2 {
  font-size: 36px;
  line-height: 1.05;
}

.td-latest-query .wp-block-post-template > li:first-child .td-card h2 a,
.td-latest-query .wp-block-post-template > li:first-child .td-terms,
.td-latest-query .wp-block-post-template > li:first-child .td-terms a {
  color: #ffffff;
}

.td-latest-query .wp-block-post-template > li:first-child .td-excerpt,
.td-latest-query .wp-block-post-template > li:first-child .td-meta,
.td-latest-query .wp-block-post-template > li:first-child .td-meta a {
  color: #cdd9ea;
}

.td-latest-query .wp-block-post-template > li:first-child .td-metric,
.td-latest-query .wp-block-post-template > li:first-child .td-like-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.td-card,
.td-list-card,
.td-rubric,
.td-featured-card {
  transition-duration: 260ms;
  transition-timing-function: var(--td-f500-ease);
}

.td-card:hover,
.td-list-card:hover,
.td-featured-card:hover,
.td-rubric:hover,
.td-proof-strip div:hover {
  box-shadow: 0 34px 96px rgba(5, 8, 20, 0.16);
  transform: translateY(-7px);
}

.td-card-media,
.td-featured-media,
.td-single-cover {
  background:
    linear-gradient(135deg, rgba(20, 99, 255, 0.18), transparent 44%),
    linear-gradient(45deg, rgba(24, 209, 232, 0.13), transparent 40%),
    #e7eef8;
}

.td-card h2,
.td-list-card h2 {
  font-size: 22px;
  line-height: 1.12;
}

.td-metric,
.td-like-button,
.td-reaction-stat {
  background: #f5f8fc;
  border-color: rgba(5, 8, 20, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.td-rubrics {
  gap: 18px;
}

.td-rubric {
  min-height: 154px;
  padding: 24px;
}

.td-rubric span {
  font-size: 24px;
}

.td-rubric::after {
  background: linear-gradient(90deg, var(--td-f500-blue), var(--td-f500-cyan));
  width: 56px;
}

.td-highlight {
  box-shadow: 0 34px 104px rgba(5, 8, 20, 0.22);
  min-height: 380px;
}

.td-highlight h2 {
  font-size: 44px;
  line-height: 1.02;
}

.td-signal-panel {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.td-newsletter {
  align-items: center;
  background:
    linear-gradient(130deg, rgba(20, 99, 255, 0.1), transparent 42%),
    linear-gradient(32deg, rgba(130, 223, 63, 0.11), transparent 36%),
    #ffffff;
  min-height: 190px;
}

.td-single-header {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(160deg, rgba(24, 209, 232, 0.16), transparent 46%),
    linear-gradient(137deg, rgba(20, 99, 255, 0.34), transparent 42%),
    linear-gradient(30deg, rgba(130, 223, 63, 0.16), transparent 36%),
    var(--td-f500-panel);
  background-size: 38px 38px, 38px 38px, auto, auto, auto, auto;
  box-shadow: 0 40px 112px rgba(5, 8, 20, 0.22);
}

.td-single-header h1 {
  font-size: 64px;
  line-height: 1;
}

.td-post-content {
  font-size: 19px;
}

@media (prefers-reduced-motion: no-preference) {
  .td-command-line {
    animation: tdEnterpriseLine 3.8s linear infinite;
    background-size: 220% 100%;
  }

  .td-command-line-b {
    animation-delay: 420ms;
  }

  .td-command-line-c {
    animation-delay: 840ms;
  }

  .td-command-node {
    animation: tdEnterpriseNode 4.6s var(--td-f500-ease) infinite;
  }

  .td-node-b {
    animation-delay: 180ms;
  }

  .td-node-c {
    animation-delay: 360ms;
  }

  .td-node-d {
    animation-delay: 540ms;
  }

  .td-intel-card::before,
  .td-card::before {
    animation: tdEnterpriseAccent 5.6s linear infinite;
    background-size: 180% 100%;
  }
}

@keyframes tdEnterpriseLine {
  from { background-position: 0 0; opacity: 0.62; }
  50% { opacity: 1; }
  to { background-position: 220% 0; opacity: 0.62; }
}

@keyframes tdEnterpriseNode {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes tdEnterpriseAccent {
  from { background-position: 0 0; }
  to { background-position: 180% 0; }
}

@media (max-width: 1280px) {
  .td-masthead {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .td-masthead h1 {
    font-size: 62px;
  }

  .td-command-center {
    max-width: 720px;
  }
}

@media (max-width: 980px) {
  .td-intel-strip,
  .td-proof-strip {
    grid-template-columns: 1fr 1fr;
  }

  .td-latest-query .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .td-latest-query .wp-block-post-template > li:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .td-featured-body h2,
  .td-latest-query .wp-block-post-template > li:first-child .td-card h2,
  .td-highlight h2 {
    font-size: 34px;
  }
}

@media (max-width: 760px) {
  .td-masthead {
    gap: 24px;
    padding: 28px 20px 34px;
  }

  .td-masthead h1 {
    font-size: 32px;
    overflow-wrap: normal;
    word-break: normal;
  }

  .td-masthead .td-hero-copy {
    font-size: 16px;
  }

  .td-hero-actions {
    flex-direction: column;
  }

  .td-hero-actions a {
    justify-content: center;
    width: 100%;
  }

  .td-command-map {
    min-height: 300px;
  }

  .td-command-node {
    min-width: 88px;
  }

  .td-node-a {
    left: 8%;
    top: 10%;
  }

  .td-node-b {
    left: auto;
    right: 8%;
    top: 30%;
  }

  .td-node-c {
    left: 8%;
    right: auto;
    top: 52%;
  }

  .td-node-d {
    bottom: 8%;
    right: 8%;
  }

  .td-system-grid {
    grid-template-columns: 1fr;
  }

  .td-intel-strip,
  .td-proof-strip,
  .td-latest-query .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .td-latest-query .wp-block-post-template > li:first-child {
    grid-column: span 1;
  }

  .td-featured-body,
  .td-latest-query .wp-block-post-template > li:first-child .td-card-body {
    padding: 24px;
  }

  .td-featured-body h2,
  .td-latest-query .wp-block-post-template > li:first-child .td-card h2,
  .td-highlight h2 {
    font-size: 30px;
  }

  .td-single-header h1 {
    font-size: 34px;
  }
}

@media (max-width: 520px) {
  .td-command-center {
    padding: 18px;
  }

  .td-command-center::after {
    left: 18px;
    right: 18px;
  }

  .td-command-node strong {
    font-size: 14px;
  }

  .td-command-line {
    left: 8%;
    right: 8%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Homepage cleanup hardening */
.td-home > .td-masthead,
.td-home > .td-masthead * {
  box-sizing: border-box;
}

.td-home > .td-masthead .td-masthead-copy,
.td-home > .td-masthead .td-hero-system {
  max-width: 100%;
  min-width: 0;
}

.td-home > .td-masthead h1,
.td-home > .td-masthead .td-hero-copy {
  max-width: 100% !important;
  overflow-wrap: break-word;
}

@media (max-width: 760px) {
  .td-home > .td-masthead {
    padding-left: 34px !important;
    padding-right: 24px !important;
  }

  .td-home > .td-masthead h1 {
    font-size: 32px !important;
    line-height: 1.06;
  }
}

@media (max-width: 420px) {
  .td-home > .td-masthead {
    padding-left: 28px !important;
    padding-right: 18px !important;
  }

  .td-home > .td-masthead h1 {
    font-size: 30px !important;
  }
}

/* Executive hub and article board refresh */
.td-home {
  --td-home-radius: 22px;
  --td-card-radius: 18px;
}

.td-home > .td-executive-hub {
  background:
    radial-gradient(circle at 18% 12%, rgba(24, 209, 232, 0.24), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(130, 223, 63, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(20, 99, 255, 0.24), transparent 42%),
    #070c18;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--td-home-radius) !important;
  box-shadow: 0 38px 120px rgba(5, 8, 20, 0.22);
  color: #ffffff;
  display: grid !important;
  gap: 18px;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr) !important;
  overflow: hidden;
  padding: clamp(22px, 2.5vw, 36px);
  position: relative;
}

.td-home > .td-executive-hub::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  opacity: 0.52;
  pointer-events: none;
  position: absolute;
}

.td-home > .td-executive-hub > * {
  position: relative;
  z-index: 1;
}

.td-home .td-executive-head {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: calc(var(--td-card-radius) + 2px) !important;
  box-shadow: none;
  min-height: 0;
  padding: clamp(22px, 2.2vw, 32px);
}

.td-home .td-executive-head::after {
  display: none;
}

.td-home .td-executive-head h2 {
  font-size: clamp(34px, 3.2vw, 58px);
  letter-spacing: 0;
  max-width: 620px;
}

.td-home .td-executive-head p:not(.td-kicker) {
  color: #d8e5f5;
  font-size: 17px;
  margin: 18px 0 28px;
  max-width: 620px;
}

.td-exec-proof {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.td-exec-proof span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #d7e4f4;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  text-transform: uppercase;
}

.td-exec-proof strong {
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.td-home .td-exec-grid {
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.td-home .td-exec-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--td-card-radius) !important;
  box-shadow: 0 22px 66px rgba(0, 0, 0, 0.13);
  color: #050814;
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 22px;
  transform: translateY(0);
}

.td-home .td-exec-card::before {
  border-radius: 99px;
  height: 4px;
  left: 22px;
  right: auto;
  top: 20px;
  width: 54px;
}

.td-home .td-exec-card::after {
  align-items: center;
  background: #050814;
  border-radius: 999px;
  bottom: 20px;
  color: #ffffff;
  content: ">";
  display: inline-flex;
  font-size: 16px;
  height: 34px;
  justify-content: center;
  opacity: 1;
  right: 20px;
  transition: background-color 220ms var(--td-f500-ease), color 220ms var(--td-f500-ease), transform 220ms var(--td-f500-ease);
  width: 34px;
}

.td-home .td-exec-card em {
  color: var(--td-f500-blue);
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  margin: 28px 0 18px;
}

.td-home .td-exec-card span {
  color: #657389;
  font-size: 12px;
  margin: 0 0 12px;
}

.td-home .td-exec-card strong {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.04;
  max-width: 520px;
}

.td-home .td-exec-card small {
  color: #637186;
  font-size: 14px;
  margin-top: 16px;
  padding-right: 48px;
}

.td-home .td-exec-card:hover,
.td-home .td-exec-card:focus {
  background: #ffffff;
  border-color: rgba(130, 223, 63, 0.7);
  box-shadow: 0 32px 92px rgba(5, 8, 20, 0.2);
  color: #050814;
  transform: translateY(-8px);
}

.td-home .td-exec-card:hover::after,
.td-home .td-exec-card:focus::after {
  background: var(--td-f500-lime);
  color: #050814;
  transform: translateX(3px);
}

.td-home .td-article-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.74)),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(5, 8, 20, 0.08);
  border-radius: var(--td-home-radius) !important;
  box-shadow: 0 28px 92px rgba(5, 8, 20, 0.09);
  padding: clamp(20px, 2.4vw, 34px) !important;
}

.td-home .td-article-section .td-section-head {
  align-items: end;
  border-top: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.7fr) minmax(260px, 0.3fr);
  margin-bottom: 22px;
  padding-top: 0;
}

.td-home .td-article-section .td-section-head h2 {
  font-size: clamp(32px, 3vw, 48px);
}

.td-home .td-article-section .td-section-head p {
  color: #637186;
  font-size: 16px;
  justify-self: end;
  line-height: 1.48;
  margin: 0;
  max-width: 420px;
}

.td-home .td-featured-card,
.td-home .td-card {
  border: 1px solid rgba(5, 8, 20, 0.1);
  border-radius: var(--td-card-radius) !important;
  box-shadow: 0 18px 58px rgba(5, 8, 20, 0.075);
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.td-home .td-featured-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 0.55fr);
  min-height: 0;
}

.td-home .td-featured-media {
  aspect-ratio: 16 / 10 !important;
  height: 100%;
  min-height: 280px;
}

.td-home .td-featured-body {
  display: flex;
  flex-direction: column;
  min-height: 0 !important;
  padding: clamp(24px, 2.6vw, 42px) !important;
}

.td-home .td-featured-body h2 {
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.04;
}

.td-home .td-latest-query .wp-block-post-template {
  gap: 16px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.td-home .td-latest-query .wp-block-post-template > li:first-child {
  grid-column: auto !important;
  grid-row: auto !important;
}

.td-home .td-latest-query .wp-block-post-template > li:first-child .td-card {
  background: var(--td-f500-surface);
  color: #050814;
}

.td-home .td-latest-query .wp-block-post-template > li:first-child .td-card h2 a,
.td-home .td-latest-query .wp-block-post-template > li:first-child .td-terms,
.td-home .td-latest-query .wp-block-post-template > li:first-child .td-terms a {
  color: #050814;
}

.td-home .td-latest-query .wp-block-post-template > li:first-child .td-excerpt,
.td-home .td-latest-query .wp-block-post-template > li:first-child .td-meta,
.td-home .td-latest-query .wp-block-post-template > li:first-child .td-meta a {
  color: #637186;
}

.td-home .td-latest-query .wp-block-post-template > li:first-child .td-card-footer .td-metric,
.td-home .td-latest-query .wp-block-post-template > li:first-child .td-card-footer .td-like-button {
  background: #ffffff !important;
  border-color: rgba(5, 8, 20, 0.08) !important;
  color: #273244 !important;
}

.td-home .td-latest-query .wp-block-post-template > li:first-child .td-card-footer .td-like-button:hover,
.td-home .td-latest-query .wp-block-post-template > li:first-child .td-card-footer .td-like-button:focus,
.td-home .td-latest-query .wp-block-post-template > li:first-child .td-card-footer .td-like-button.is-liked {
  background: #050814 !important;
  border-color: #050814 !important;
  color: #ffffff !important;
}

.td-home .td-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.td-home .td-card::before,
.td-home .td-featured-card::before {
  background: linear-gradient(90deg, var(--td-f500-blue), var(--td-f500-cyan), var(--td-f500-lime));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.td-home .td-card::after,
.td-home .td-featured-card::after {
  background: linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.42) 45%, transparent 58%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-45%);
  transition: opacity 220ms var(--td-f500-ease), transform 720ms var(--td-f500-ease);
  z-index: 2;
}

.td-home .td-card-media {
  aspect-ratio: 16 / 7.4 !important;
  max-height: 162px;
}

.td-home .td-latest-query .wp-block-post-template > li:first-child .td-card-media {
  aspect-ratio: 16 / 7.4 !important;
}

.td-home .td-card-media img,
.td-home .td-featured-media img {
  height: 100%;
  object-fit: cover;
  transition: filter 360ms var(--td-f500-ease), transform 760ms var(--td-f500-ease);
  width: 100%;
}

.td-home .td-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 20px !important;
}

.td-home .td-card h2 {
  font-size: clamp(20px, 1.6vw, 25px) !important;
  line-height: 1.1;
}

.td-home .td-latest-query .wp-block-post-template > li:first-child .td-card h2 {
  font-size: clamp(20px, 1.6vw, 25px) !important;
}

.td-home .td-card .td-excerpt,
.td-home .td-featured-body .td-excerpt {
  color: #657389;
  display: -webkit-box;
  line-height: 1.48;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.td-home .td-card .td-excerpt {
  -webkit-line-clamp: 2;
}

.td-home .td-featured-body .td-excerpt {
  -webkit-line-clamp: 3;
}

.td-home .td-card-top {
  align-items: center;
  display: grid !important;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 0 18px !important;
  width: 100%;
}

.td-home .td-card-top > * {
  margin: 0 !important;
}

.td-home .td-card-top .td-terms {
  min-width: 0;
}

.td-home .td-card-top .td-card-date {
  align-items: center;
  background: #f6f9fd;
  border: 1px solid rgba(5, 8, 20, 0.08);
  border-radius: 999px;
  color: #637186;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  justify-self: end;
  letter-spacing: 0;
  line-height: 1;
  min-height: 30px;
  padding: 7px 10px;
  white-space: nowrap;
}

.td-home .td-card-top .td-card-date::before {
  background:
    linear-gradient(currentColor, currentColor) 4px 1px / 2px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 10px 1px / 2px 4px no-repeat;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-sizing: border-box;
  content: "";
  flex: 0 0 auto;
  height: 15px;
  width: 15px;
}

.td-home .td-card-footer {
  align-items: center;
  background: rgba(246, 249, 253, 0.82);
  border: 1px solid rgba(5, 8, 20, 0.07);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  margin-top: auto !important;
  padding: 12px;
}

.td-home .td-card-footer > * {
  margin: 0 !important;
}

.td-home .td-card-footer .td-meta {
  color: #637186;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.td-home .td-card-footer .td-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
  margin: 0 !important;
}

.td-home .td-card-footer .td-metric,
.td-home .td-card-footer .td-like-button {
  background: #ffffff;
  border: 1px solid rgba(5, 8, 20, 0.08);
  border-radius: 999px;
  box-shadow: none;
  color: #273244;
  font-size: 12px;
  font-weight: 850;
  gap: 6px;
  min-height: 30px;
  padding: 7px 10px;
}

.td-home .td-card-footer .td-like-button:hover,
.td-home .td-card-footer .td-like-button:focus,
.td-home .td-card-footer .td-like-button.is-liked {
  background: #050814;
  border-color: #050814;
  color: #ffffff;
}

.td-home .td-read-more {
  align-items: center;
  background: #050814;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 34px;
  padding: 9px 13px;
  text-decoration: none;
  transition: background-color 220ms var(--td-f500-ease), color 220ms var(--td-f500-ease), transform 220ms var(--td-f500-ease);
}

.td-home .td-read-more::after {
  content: ">";
}

.td-home .td-card:hover,
.td-home .td-featured-card:hover {
  border-color: rgba(20, 99, 255, 0.26);
  box-shadow: 0 30px 92px rgba(5, 8, 20, 0.16);
  transform: translateY(-8px);
}

.td-home .td-card:hover::after,
.td-home .td-featured-card:hover::after {
  opacity: 1;
  transform: translateX(45%);
}

.td-home .td-card:hover .td-card-media img,
.td-home .td-featured-card:hover .td-featured-media img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.045);
}

.td-home .td-card:hover .td-read-more,
.td-home .td-featured-card:hover .td-read-more {
  background: var(--td-f500-lime);
  color: #050814;
  transform: translateX(2px);
}

@media (max-width: 1180px) {
  .td-home > .td-executive-hub,
  .td-home .td-featured-card,
  .td-home .td-article-section .td-section-head {
    grid-template-columns: 1fr !important;
  }

  .td-home .td-article-section .td-section-head p {
    justify-self: start;
  }

  .td-home .td-latest-query .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .td-home {
    --td-home-radius: 18px;
    --td-card-radius: 16px;
  }

  .td-home .td-featured-media {
    max-height: 210px;
    min-height: 180px;
  }

  .td-exec-proof,
  .td-home .td-exec-grid,
  .td-home .td-latest-query .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }

  .td-home .td-exec-card {
    min-height: 0;
  }

  .td-home .td-read-more {
    width: auto;
  }
}

/* Compact one-line article meta row */
.td-home .td-card-footer {
  align-items: center;
  box-sizing: border-box;
  display: flex !important;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: space-between;
  max-width: 100% !important;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 10px;
  scrollbar-width: none;
  white-space: nowrap;
  width: 100% !important;
}

.td-home .td-card-footer::-webkit-scrollbar {
  display: none;
}

.td-home .td-card-footer > * {
  flex: 0 0 auto;
}

.td-home .td-card-footer .td-meta {
  display: none;
}

.td-home .td-card-footer .td-metrics {
  display: contents !important;
}

.td-home .td-card-footer .td-metric,
.td-home .td-card-footer .td-like-button {
  border-radius: 999px;
  flex: 0 1 auto;
  font-size: 12px;
  line-height: 1;
  max-width: none;
  min-height: 31px;
  padding: 7px 10px;
  white-space: nowrap;
}

.td-home .td-read-more {
  flex: 0 0 auto;
  min-height: 31px;
  padding: 8px 12px;
  white-space: nowrap;
}

/* Custom metric icons */
.td-metric-icon {
  border: 0 !important;
  box-sizing: border-box;
  display: inline-block;
  flex: 0 0 auto;
  height: 16px;
  position: relative;
  transform: none !important;
  width: 16px !important;
}

.td-metric-icon::before,
.td-metric-icon::after {
  box-sizing: border-box;
  content: "";
  position: absolute;
}

.td-icon-like::before {
  border: 2px solid currentColor;
  border-radius: 5px;
  height: 10px;
  left: 3px;
  top: 3px;
  transform: rotate(45deg);
  width: 10px;
}

.td-icon-like::after {
  background: currentColor;
  border-radius: 99px;
  height: 4px;
  left: 6px;
  top: 6px;
  width: 4px;
}

.td-icon-view::before {
  border: 2px solid currentColor;
  border-radius: 50% 55%;
  height: 10px;
  left: 1px;
  top: 3px;
  transform: rotate(-7deg);
  width: 14px;
}

.td-icon-view::after {
  background: currentColor;
  border-radius: 99px;
  height: 4px;
  left: 6px;
  top: 6px;
  width: 4px;
}

.td-icon-time::before {
  border: 2px solid currentColor;
  border-radius: 99px;
  height: 14px;
  left: 1px;
  top: 1px;
  width: 14px;
}

.td-icon-time::after {
  background:
    linear-gradient(currentColor, currentColor) 7px 4px / 2px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 7px 8px / 5px 2px no-repeat;
  height: 16px;
  inset: 0;
  width: 16px;
}

.td-icon-comment::before {
  border: 2px solid currentColor;
  border-radius: 5px;
  height: 12px;
  left: 1px;
  top: 1px;
  width: 14px;
}

.td-icon-comment::after {
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  height: 5px;
  left: 4px;
  top: 11px;
  width: 6px;
}

@media (max-width: 760px) {
  .td-home .td-card-footer {
    gap: 4px;
    padding: 8px;
  }

  .td-home .td-card-footer .td-meta,
  .td-home .td-card-footer .td-metric,
  .td-home .td-card-footer .td-like-button {
    font-size: 11px;
    gap: 4px;
    min-height: 28px;
    padding: 6px 7px;
  }

  .td-home .td-card-footer .td-meta::before {
    transform: scale(0.86);
  }

  .td-home .td-card-footer .td-metric-icon {
    margin: -1px;
    transform: scale(0.84) !important;
  }

  .td-home .td-read-more {
    font-size: 11px;
    min-height: 28px;
    padding: 7px 8px;
  }

  .td-home .td-card-top {
    gap: 8px;
  }

  .td-home .td-card-top .td-card-date {
    font-size: 11px;
    gap: 4px;
    min-height: 28px;
    padding: 6px 8px;
  }

  .td-home .td-card-top .td-card-date::before {
    transform: scale(0.86);
  }
}

@media (max-width: 420px) {
  .td-home .td-read-more {
    font-size: 0;
    gap: 0;
    min-width: 30px;
    padding: 7px 8px;
    width: 30px;
  }

  .td-home .td-read-more::after {
    content: ">";
    font-size: 12px;
    line-height: 1;
  }
}

/* =========================================================
   Editorial article redesign — Bitrix24 journal style
   ========================================================= */

/* Clean white background for article pages */
body.single-post,
body.wp-singular {
  background: #f8fafc !important;
}

body.single-post::before,
body.single-post::after,
body.wp-singular::before,
body.wp-singular::after {
  display: none !important;
}

/* Full-width clean article wrapper */
body.single-post .td-main,
body.wp-singular .td-main {
  background: transparent;
}

/* ---- Article header: editorial clean style ---- */
body.single-post .td-single-header,
body.wp-singular .td-single-header {
  animation: none !important;
  background: #ffffff !important;
  border: none !important;
  border-bottom: 1px solid #e8edf4 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #0c1122 !important;
  margin-top: 0 !important;
  padding: 48px 0 36px !important;
}

/* Category tags as editorial pills */
body.single-post .td-single-header .td-terms,
body.wp-singular .td-single-header .td-terms {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

body.single-post .td-single-header .td-terms a,
body.wp-singular .td-single-header .td-terms a {
  background: #eef4ff !important;
  border-radius: 999px !important;
  color: #1a56db !important;
  display: inline-block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  padding: 5px 14px !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  transition: background 160ms ease, color 160ms ease !important;
}

body.single-post .td-single-header .td-terms a:hover,
body.wp-singular .td-single-header .td-terms a:hover {
  background: #1a56db !important;
  color: #ffffff !important;
}

body.single-post .td-single-header .wp-block-post-terms__separator,
body.wp-singular .td-single-header .wp-block-post-terms__separator {
  display: none !important;
}

/* Article H1: large, bold, dark */
body.single-post .td-single-header h1,
body.wp-singular .td-single-header h1 {
  color: #0c1122 !important;
  font-size: 48px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.12 !important;
  margin: 0 0 24px !important;
  max-width: 820px !important;
}

/* Meta: date, author */
body.single-post .td-single-header .td-meta,
body.wp-singular .td-single-header .td-meta {
  align-items: center;
  color: #64748b !important;
  display: flex !important;
  flex-wrap: wrap;
  font-size: 14px !important;
  gap: 16px;
  margin-top: 0 !important;
}

body.single-post .td-single-header .td-meta a,
body.wp-singular .td-single-header .td-meta a {
  color: #64748b !important;
}

body.single-post .td-single-header .wp-block-post-date,
body.wp-singular .td-single-header .wp-block-post-date {
  color: #64748b;
  font-size: 14px;
}

body.single-post .td-single-header .wp-block-post-author-name,
body.wp-singular .td-single-header .wp-block-post-author-name {
  color: #64748b;
  font-size: 14px;
}

/* Reactions bar: light style on article header */
body.single-post .td-single-header .td-reactions,
body.wp-singular .td-single-header .td-reactions {
  margin-top: 28px;
}

body.single-post .td-single-header .td-reaction-stat,
body.single-post .td-single-header .td-like-button-large,
body.wp-singular .td-single-header .td-reaction-stat,
body.wp-singular .td-single-header .td-like-button-large {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

body.single-post .td-single-header .td-like-button-large:hover,
body.wp-singular .td-single-header .td-like-button-large:hover {
  background: #eef4ff !important;
  border-color: #1a56db !important;
  color: #1a56db !important;
}

/* ---- Featured image ---- */
body.single-post .td-single-cover,
body.wp-singular .td-single-cover {
  animation: none !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 28px rgba(12, 17, 34, 0.09) !important;
  margin-bottom: 0 !important;
  margin-top: 32px !important;
  overflow: hidden;
}

/* ---- Article layout: white content card ---- */
body.single-post .td-article-layout,
body.wp-singular .td-article-layout {
  margin-top: 32px !important;
}

/* Sidebar card: clean */
body.single-post .td-aside-card,
body.wp-singular .td-aside-card {
  background: #ffffff !important;
  border: 1px solid #e8edf4 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 12px rgba(12, 17, 34, 0.05) !important;
}

body.single-post .td-aside-card span,
body.wp-singular .td-aside-card span {
  color: #1a56db !important;
}

/* TOC links */
body.single-post .td-article-toc a,
body.wp-singular .td-article-toc a {
  color: #334155 !important;
}

body.single-post .td-article-toc a.is-active,
body.single-post .td-article-toc a:hover,
body.wp-singular .td-article-toc a.is-active,
body.wp-singular .td-article-toc a:hover {
  border-left-color: #1a56db !important;
  color: #1a56db !important;
}

/* ---- Post content: clean editorial typography ---- */
body.single-post .td-post-content,
body.wp-singular .td-post-content {
  animation: none !important;
  color: #1e293b !important;
  font-size: 18px !important;
  line-height: 1.82 !important;
}

body.single-post .td-post-content p,
body.single-post .td-post-content li,
body.wp-singular .td-post-content p,
body.wp-singular .td-post-content li {
  color: #1e293b !important;
}

/* H2 in content: remove left colored border, clean style */
body.single-post .td-post-content h2,
body.wp-singular .td-post-content h2 {
  border-bottom: 2px solid #e8edf4;
  color: #0c1122 !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  margin-top: 2.2em !important;
  padding-bottom: 10px;
  padding-left: 0 !important;
  position: relative;
}

body.single-post .td-post-content h2::before,
body.wp-singular .td-post-content h2::before {
  display: none !important;
}

body.single-post .td-post-content h3,
body.wp-singular .td-post-content h3 {
  color: #0f172a !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-top: 1.6em !important;
}

body.single-post .td-post-content a,
body.wp-singular .td-post-content a {
  color: #1a56db !important;
}

body.single-post .td-post-content blockquote,
body.wp-singular .td-post-content blockquote {
  background: #f0f6ff;
  border-left: 4px solid #1a56db;
  border-radius: 0 8px 8px 0;
  margin: 2em 0;
  padding: 18px 24px;
}

body.single-post .td-post-content blockquote p,
body.wp-singular .td-post-content blockquote p {
  color: #1e40af !important;
  font-style: italic;
  margin: 0;
}

/* ---- Comments section ---- */
body.single-post .td-comments,
body.wp-singular .td-comments {
  background: #ffffff !important;
  border: 1px solid #e8edf4 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(12, 17, 34, 0.05) !important;
  margin-top: 40px;
  padding: 32px !important;
}

/* ---- Post navigation ---- */
body.single-post .td-post-nav,
body.wp-singular .td-post-nav {
  border-top-color: #e8edf4 !important;
}

body.single-post .td-post-nav .post-navigation-link-previous a,
body.single-post .td-post-nav .post-navigation-link-next a,
body.wp-singular .td-post-nav .post-navigation-link-previous a,
body.wp-singular .td-post-nav .post-navigation-link-next a {
  color: #1a56db !important;
  font-weight: 650 !important;
}

/* ---- Reading progress bar: brand gradient ---- */
body.single-post .td-read-progress,
body.wp-singular .td-read-progress {
  background: rgba(12, 17, 34, 0.06) !important;
}

body.single-post .td-read-progress::before,
body.wp-singular .td-read-progress::before {
  background: linear-gradient(90deg, #1a56db, #06b6d4) !important;
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
  body.single-post .td-single-header h1,
  body.wp-singular .td-single-header h1 {
    font-size: 36px !important;
  }
}

@media (max-width: 680px) {
  body.single-post .td-single-header h1,
  body.wp-singular .td-single-header h1 {
    font-size: 28px !important;
    letter-spacing: -0.01em !important;
  }

  body.single-post .td-single-header,
  body.wp-singular .td-single-header {
    padding: 28px 0 24px !important;
  }
}

/* =========================================================
   CTA-block: per-article promo banner
   ========================================================= */

.td-cta-block {
  --td-cta-bg: #6d28d9;
  --td-cta-btn: #a3e635;
  --td-cta-btn-txt: #1a1a1a;
  --td-cta-text: #ffffff;
  background: var(--td-cta-bg) !important;
  border-radius: 16px;
  margin: 44px 0 0;
  padding: 52px 40px;
  text-align: center;
}

.td-cta-inner {
  margin: 0 auto;
  max-width: 620px;
}

/* High-specificity overrides — beat body.single-post .td-post-content h2/p/a rules */
body .td-post-content .td-cta-block .td-cta-title,
.td-cta-title {
  border: none !important;
  border-bottom: none !important;
  color: var(--td-cta-text, #ffffff) !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
  margin: 0 0 14px !important;
  margin-top: 0 !important;
  padding: 0 !important;
}

body .td-post-content .td-cta-block .td-cta-title::before,
body .td-post-content .td-cta-block .td-cta-title::after,
.td-cta-title::before,
.td-cta-title::after {
  display: none !important;
}

body .td-post-content .td-cta-block .td-cta-desc,
.td-cta-desc {
  color: var(--td-cta-text, #ffffff) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  margin: 0 0 28px !important;
  opacity: 0.88;
}

body .td-post-content .td-cta-block .td-cta-button,
.td-cta-button {
  background: var(--td-cta-btn, #a3e635) !important;
  border-radius: 8px;
  color: var(--td-cta-btn-txt, #1a1a1a) !important;
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 15px 34px;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.td-cta-button:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  filter: brightness(1.12);
  transform: translateY(-2px);
}

@media (max-width: 680px) {
  .td-cta-block {
    border-radius: 12px;
    padding: 36px 24px;
  }

  .td-cta-title {
    font-size: 24px !important;
  }
}

/* =========================================================
   Article sidebar: focus first, sticky navigation after it
   ========================================================= */

body.single-post .td-article-aside,
body.wp-singular .td-article-aside {
  align-content: start !important;
  align-self: stretch !important;
  position: relative !important;
  top: auto !important;
}

body.single-post .td-focus-card,
body.wp-singular .td-focus-card {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(26, 86, 219, 0.24), rgba(6, 182, 212, 0.2), rgba(128, 221, 50, 0.22)) border-box !important;
  border-color: transparent !important;
}

body.single-post .td-toc-card,
body.wp-singular .td-toc-card {
  position: sticky !important;
  top: 112px;
  z-index: 6;
}

body.admin-bar.single-post .td-toc-card,
body.admin-bar.wp-singular .td-toc-card {
  top: 144px;
}

body.single-post .wp-site-blocks,
body.wp-singular .wp-site-blocks {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

@media (max-width: 1180px) {
  body.single-post .td-article-aside,
  body.wp-singular .td-article-aside {
    align-self: start !important;
  }

  body.single-post .td-toc-card,
  body.wp-singular .td-toc-card {
    position: static !important;
    top: auto !important;
  }
}

/* =========================================================
   Comments: modern discussion and form UI
   ========================================================= */

body.single-post .td-comments,
body.wp-singular .td-comments {
  background:
    radial-gradient(circle at 12% 0, rgba(26, 86, 219, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.26) !important;
  border-radius: 26px !important;
  box-shadow: 0 26px 80px rgba(12, 17, 34, 0.08) !important;
  margin-top: 56px !important;
  max-width: 100% !important;
  overflow: hidden;
  padding: 28px !important;
  position: relative;
}

body.single-post .td-comments::before,
body.wp-singular .td-comments::before {
  background: linear-gradient(90deg, #1a56db, #06b6d4, #80dd32);
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.td-comments-header {
  align-items: start;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.td-comments-title-block {
  min-width: 0;
}

.td-comments-kicker {
  color: #1a56db;
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

body.single-post .td-comments .td-comments-header h2,
body.wp-singular .td-comments .td-comments-header h2 {
  color: #0c1122 !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.08 !important;
  margin: 0 !important;
}

.td-comments-title-block p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.55;
  margin: 10px 0 0;
  max-width: 520px;
}

.td-comments-side {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 10px;
  white-space: nowrap;
}

.td-comments-count,
.td-comments-action {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  gap: 8px;
  min-height: 38px;
  padding: 9px 13px;
}

.td-comments-count {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.td-comments-count-dot {
  background: #80dd32;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(128, 221, 50, 0.14);
  height: 8px;
  width: 8px;
}

.td-comments-action {
  background: #0c1122;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.td-comments-action:hover,
.td-comments-action:focus {
  background: #1a56db;
  box-shadow: 0 14px 34px rgba(26, 86, 219, 0.22);
  transform: translateY(-2px);
}

.td-comments-action.is-disabled {
  background: #e2e8f0;
  color: #64748b !important;
}

.td-comments-action-icon {
  border: 2px solid currentColor;
  border-radius: 7px;
  height: 15px;
  position: relative;
  width: 15px;
}

.td-comments-action-icon::before,
.td-comments-action-icon::after {
  background: currentColor;
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.td-comments-action-icon::before {
  height: 2px;
  width: 7px;
}

.td-comments-action-icon::after {
  height: 7px;
  width: 2px;
}

.td-comments .wp-block-comment-template {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0 0 24px !important;
  padding: 0 !important;
}

body.single-post .td-comment,
body.wp-singular .td-comment {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid #e3ebf5 !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 34px rgba(12, 17, 34, 0.045);
  display: grid !important;
  gap: 14px;
  grid-template-columns: 44px minmax(0, 1fr);
  margin: 0 !important;
  padding: 18px !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.single-post .td-comment:hover,
body.wp-singular .td-comment:hover {
  border-color: rgba(26, 86, 219, 0.22) !important;
  box-shadow: 0 20px 52px rgba(12, 17, 34, 0.075);
  transform: translateY(-2px);
}

.td-comment.wp-block-group-is-layout-constrained > *,
.td-comment-body.wp-block-group-is-layout-flow > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.td-comment-avatar {
  margin: 0 !important;
}

.td-comment-avatar img,
.td-comment-avatar .avatar {
  border: 1px solid rgba(26, 86, 219, 0.16);
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(12, 17, 34, 0.12);
  display: block;
  height: 44px !important;
  width: 44px !important;
}

body.single-post .td-comment-meta,
body.wp-singular .td-comment-meta {
  align-items: center;
  color: #64748b !important;
  display: flex !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  gap: 10px;
  margin: 0 0 10px !important;
}

.td-comment-meta .wp-block-comment-author-name,
.td-comment-meta .wp-block-comment-author-name a {
  color: #0c1122 !important;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none !important;
}

.td-comment-meta .wp-block-comment-date,
.td-comment-meta .wp-block-comment-date a {
  color: #64748b !important;
  font-size: 13px;
  text-decoration: none !important;
}

.td-comment-meta .wp-block-comment-date::before {
  background: #cbd5e1;
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 5px;
  margin: 0 8px 2px 0;
  width: 5px;
}

.td-comment .wp-block-comment-content {
  margin: 0 !important;
}

.td-comment .wp-block-comment-content p {
  color: #1e293b !important;
  font-size: 16px !important;
  line-height: 1.66 !important;
  margin: 0 0 12px !important;
}

.td-comment .wp-block-comment-content p:last-child {
  margin-bottom: 0 !important;
}

.td-comment .wp-block-comment-reply-link {
  margin-top: 14px !important;
}

.td-comment .wp-block-comment-reply-link a,
.td-comment .comment-reply-link {
  align-items: center;
  background: #eef4ff;
  border: 1px solid rgba(26, 86, 219, 0.13);
  border-radius: 999px;
  color: #1a56db !important;
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  min-height: 34px;
  padding: 8px 12px;
  text-decoration: none !important;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.td-comment .wp-block-comment-reply-link a:hover,
.td-comment .comment-reply-link:hover {
  background: #e5efff;
  border-color: rgba(26, 86, 219, 0.28);
  transform: translateY(-1px);
}

.td-comment-form,
.td-comments .comment-respond {
  background:
    linear-gradient(135deg, rgba(26, 86, 219, 0.055), transparent 42%),
    #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  margin-top: 24px !important;
  padding: 22px;
}

.td-comments .comment-respond {
  margin: 0 !important;
}

body.single-post .td-comment-form-title,
body.wp-singular .td-comment-form-title {
  color: #0c1122 !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1.18 !important;
  margin: 0 0 10px !important;
}

.td-comment-notes,
.td-logged-in-as {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px !important;
}

.td-logged-in-as {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 11px 12px;
}

.td-logged-in-as strong {
  color: #0c1122;
}

.td-logged-in-as a {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #1a56db !important;
  font-size: 13px;
  font-weight: 850;
  padding: 6px 10px;
  text-decoration: none !important;
}

.td-comments .comment-form {
  display: grid;
  gap: 14px;
  margin: 0;
}

.td-comments .comment-form p {
  margin: 0;
}

.td-comments .comment-form label {
  color: #0f172a;
  display: block;
  font-size: 14px;
  font-weight: 850;
  margin-bottom: 8px;
}

.td-comments .required {
  color: #1a56db;
}

.td-comments input:not([type="submit"]):not([type="checkbox"]),
.td-comments textarea {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #dbe5f0 !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #0f172a;
  font: inherit;
  outline: none;
  padding: 14px 15px !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  width: 100%;
}

.td-comments textarea {
  min-height: 170px;
  resize: vertical;
}

.td-comments input:not([type="submit"]):not([type="checkbox"]):focus,
.td-comments textarea:focus {
  background: #ffffff !important;
  border-color: rgba(26, 86, 219, 0.62) !important;
  box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.11);
}

.td-comments .comment-form-cookies-consent {
  align-items: flex-start;
  color: #64748b;
  display: flex;
  gap: 10px;
  line-height: 1.45;
}

.td-comments .comment-form-cookies-consent label {
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  margin: 0;
}

.td-comments .comment-form-cookies-consent input {
  accent-color: #1a56db;
  margin-top: 3px;
}

.td-comments .form-submit {
  margin-top: 4px !important;
}

.td-comments input[type="submit"],
.td-comments button[type="submit"] {
  align-items: center;
  background: #0c1122 !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 16px 36px rgba(12, 17, 34, 0.16);
  color: #ffffff !important;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  gap: 10px;
  min-height: 50px;
  padding: 14px 22px !important;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.td-comments input[type="submit"]:hover,
.td-comments input[type="submit"]:focus,
.td-comments button[type="submit"]:hover,
.td-comments button[type="submit"]:focus {
  background: #1a56db !important;
  box-shadow: 0 18px 44px rgba(26, 86, 219, 0.22);
  transform: translateY(-2px);
}

.td-comments button[type="submit"] span::after {
  content: ">";
  display: inline-block;
  margin-left: 10px;
  transition: transform 160ms ease;
}

.td-comments button[type="submit"]:hover span::after {
  transform: translateX(3px);
}

.td-comments #cancel-comment-reply-link {
  color: #64748b !important;
  font-size: 14px;
  font-weight: 750;
  margin-left: 10px;
  text-decoration: none !important;
}

.td-comments .comment-awaiting-moderation {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  color: #9a3412;
  font-size: 14px;
  font-weight: 750;
  margin: 10px 0 0;
  padding: 10px 12px;
}

.td-comments .wp-block-comments-pagination {
  margin: 18px 0 24px !important;
}

.td-comments .wp-block-comments-pagination a,
.td-comments .wp-block-comments-pagination span {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  padding: 8px 12px;
}

@media (min-width: 760px) {
  .td-comments .comment-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .td-comments .comment-notes,
  .td-comments .logged-in-as,
  .td-comments .comment-form-comment,
  .td-comments .comment-form-cookies-consent,
  .td-comments .form-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body.single-post .td-comments,
  body.wp-singular .td-comments {
    border-radius: 20px !important;
    margin-top: 40px !important;
    padding: 20px !important;
  }

  .td-comments-header {
    display: grid;
    gap: 16px;
  }

  .td-comments-side {
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
    white-space: normal;
  }

  body.single-post .td-comments .td-comments-header h2,
  body.wp-singular .td-comments .td-comments-header h2 {
    font-size: 28px !important;
  }

  body.single-post .td-comment,
  body.wp-singular .td-comment {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 15px !important;
  }

  .td-comment-avatar img,
  .td-comment-avatar .avatar {
    border-radius: 12px !important;
    height: 38px !important;
    width: 38px !important;
  }

  .td-comment-form,
  .td-comments .comment-respond {
    border-radius: 18px;
    padding: 18px;
  }
}

/* =========================================================
   Adjacent posts: clickable preview cards
   ========================================================= */

body.single-post .td-post-nav,
body.wp-singular .td-post-nav {
  border-top: 0 !important;
  margin-top: 46px !important;
  max-width: 100% !important;
  padding-top: 0 !important;
  width: 100% !important;
}

.td-post-nav.wp-block-group-is-layout-constrained > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
}

.td-post-nav-modern {
  border-top: 1px solid #e6edf5;
  padding-top: 30px;
}

.td-post-nav-head {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.td-post-nav-head h2 {
  color: #0c1122;
  display: block;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
}

.td-post-nav-head p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  max-width: 360px;
  text-align: right;
}

.td-post-nav-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.td-post-nav-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.td-post-nav-card {
  background:
    linear-gradient(135deg, rgba(26, 86, 219, 0.05), transparent 42%),
    #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(12, 17, 34, 0.065);
  color: #0c1122 !important;
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  min-height: 174px;
  overflow: hidden;
  position: relative;
  text-decoration: none !important;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.td-post-nav-card:hover,
.td-post-nav-card:focus {
  border-color: rgba(26, 86, 219, 0.34);
  box-shadow: 0 26px 72px rgba(12, 17, 34, 0.12);
  transform: translateY(-4px);
}

.td-post-nav-card:focus-visible {
  outline: 4px solid rgba(26, 86, 219, 0.16);
  outline-offset: 3px;
}

.td-post-nav-media {
  background: #0c1122;
  display: block;
  min-height: 174px;
  overflow: hidden;
  position: relative;
}

.td-post-nav-thumb {
  display: block;
  height: 100% !important;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: filter 420ms ease, transform 620ms ease;
  width: 100% !important;
}

.td-post-nav-card:hover .td-post-nav-thumb,
.td-post-nav-card:focus .td-post-nav-thumb {
  filter: saturate(1.1) contrast(1.04);
  transform: scale(1.055);
}

.td-post-nav-media::after {
  background:
    linear-gradient(180deg, transparent 36%, rgba(12, 17, 34, 0.22)),
    linear-gradient(90deg, rgba(26, 86, 219, 0.22), transparent 62%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.td-post-nav-media-glow {
  background: linear-gradient(90deg, #1a56db, #06b6d4, #80dd32);
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
  z-index: 2;
}

.td-post-nav-placeholder {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(26, 86, 219, 0.9), rgba(6, 182, 212, 0.74)),
    #0c1122;
  color: #ffffff;
  display: flex;
  font-size: 34px;
  font-weight: 950;
  height: 100%;
  justify-content: center;
  letter-spacing: -0.02em;
  min-height: 174px;
  width: 100%;
}

.td-post-nav-body {
  align-content: center;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 22px;
}

.td-post-nav-kicker {
  align-items: center;
  color: #1a56db;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.td-post-nav-icon {
  align-items: center;
  background: #eef4ff;
  border-radius: 999px;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.td-post-nav-icon::before {
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  content: "";
  height: 7px;
  transform: rotate(45deg);
  transition: transform 180ms ease;
  width: 7px;
}

.td-post-nav-card--previous .td-post-nav-icon::before {
  transform: rotate(-135deg);
}

.td-post-nav-card--next:hover .td-post-nav-icon::before,
.td-post-nav-card--next:focus .td-post-nav-icon::before {
  transform: translateX(2px) rotate(45deg);
}

.td-post-nav-card--previous:hover .td-post-nav-icon::before,
.td-post-nav-card--previous:focus .td-post-nav-icon::before {
  transform: translateX(-2px) rotate(-135deg);
}

.td-post-nav-card-title {
  color: #0c1122;
  display: block;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.td-post-nav-meta {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 750;
  gap: 8px;
}

.td-post-nav-meta span {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  display: inline-flex;
  min-height: 30px;
  padding: 6px 10px;
}

@media (max-width: 980px) {
  .td-post-nav-grid {
    grid-template-columns: 1fr;
  }

  .td-post-nav-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .td-post-nav-head {
    align-items: start;
    display: grid;
  }

  .td-post-nav-head p {
    max-width: none;
    text-align: left;
  }

  .td-post-nav-card {
    border-radius: 20px;
    grid-template-columns: 1fr;
  }

  .td-post-nav-media {
    min-height: 190px;
  }

  .td-post-nav-body {
    padding: 20px;
  }

  .td-post-nav-card-title {
    font-size: 20px;
  }
}

/* Wide adjacent-posts section lives below the article grid, not inside the content column */
body.single-post .td-post-nav-wide,
body.wp-singular .td-post-nav-wide {
  margin-left: calc(50% - 50vw + 28px) !important;
  margin-right: calc(50% - 50vw + 28px) !important;
  margin-top: 58px !important;
  max-width: none !important;
  width: calc(100vw - 56px) !important;
}

.td-post-nav-wide .td-post-nav-modern {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1460px !important;
  width: 100% !important;
}

.td-post-nav-wide .td-post-nav-grid {
  gap: 22px;
}

@media (min-width: 1181px) {
  .td-post-nav-wide .td-post-nav-card {
    grid-template-columns: minmax(280px, 46%) minmax(0, 1fr);
    min-height: 226px;
  }

  .td-post-nav-wide .td-post-nav-media,
  .td-post-nav-wide .td-post-nav-placeholder {
    min-height: 226px;
  }

  .td-post-nav-wide .td-post-nav-body {
    padding: 28px;
  }

  .td-post-nav-wide .td-post-nav-card-title {
    font-size: 26px;
  }
}

@media (max-width: 760px) {
  body.single-post .td-post-nav-wide,
  body.wp-singular .td-post-nav-wide {
    margin-left: calc(50% - 50vw + 16px) !important;
    margin-right: calc(50% - 50vw + 16px) !important;
    margin-top: 42px !important;
    width: calc(100vw - 32px) !important;
  }
}

/* =========================================================
   Article hero: richer executive tech header
   ========================================================= */

body.single-post .td-single-header,
body.wp-singular .td-single-header {
  background:
    radial-gradient(circle at 20% 0, rgba(26, 86, 219, 0.12), transparent 34%),
    radial-gradient(circle at 86% 20%, rgba(6, 182, 212, 0.14), transparent 30%),
    #f8fafc !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.72) !important;
  overflow: hidden;
  padding: 34px 0 42px !important;
  position: relative;
}

body.single-post .td-single-header::before,
body.wp-singular .td-single-header::before {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  opacity: 0.9;
  pointer-events: none;
  position: absolute;
}

body.single-post .td-single-header::after,
body.wp-singular .td-single-header::after {
  background: linear-gradient(90deg, #1a56db, #06b6d4, #80dd32);
  content: "";
  height: 4px;
  inset: auto 0 0;
  opacity: 0.86;
  position: absolute;
}

body.single-post .td-single-header .td-single-hero-shell,
body.wp-singular .td-single-header .td-single-hero-shell {
  background:
    radial-gradient(circle at 15% 0, rgba(26, 86, 219, 0.34), transparent 36%),
    radial-gradient(circle at 86% 18%, rgba(6, 182, 212, 0.28), transparent 32%),
    linear-gradient(135deg, #080d1b 0%, #101827 52%, #0b1222 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(12, 17, 34, 0.22);
  color: #ffffff;
  display: grid !important;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.62fr);
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1460px !important;
  overflow: hidden;
  padding: 54px;
  position: relative;
  width: min(100%, calc(100vw - 56px)) !important;
  z-index: 1;
}

body.single-post .td-single-header .td-single-hero-shell::before,
body.wp-singular .td-single-header .td-single-hero-shell::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  opacity: 0.48;
  pointer-events: none;
  position: absolute;
}

body.single-post .td-single-header .td-single-hero-shell::after,
body.wp-singular .td-single-header .td-single-hero-shell::after {
  background: linear-gradient(120deg, transparent 0 44%, rgba(255, 255, 255, 0.16) 48%, transparent 54%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-56%);
}

body.single-post .td-single-hero-copy,
body.wp-singular .td-single-hero-copy {
  align-content: center;
  display: grid;
  min-width: 0;
  position: relative;
  z-index: 2;
}

body.single-post .td-single-hero-copy.wp-block-group-is-layout-flow > *,
body.wp-singular .td-single-hero-copy.wp-block-group-is-layout-flow > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.single-post .td-single-header .td-terms,
body.wp-singular .td-single-header .td-terms {
  margin-bottom: 22px !important;
}

body.single-post .td-single-header .td-terms a,
body.wp-singular .td-single-header .td-terms a {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #dbeafe !important;
  font-weight: 900 !important;
}

body.single-post .td-single-header .td-terms a:hover,
body.wp-singular .td-single-header .td-terms a:hover {
  background: #ffffff !important;
  color: #1a56db !important;
}

body.single-post .td-single-header h1,
body.wp-singular .td-single-header h1 {
  color: #ffffff !important;
  font-size: clamp(42px, 4.7vw, 76px) !important;
  line-height: 0.98 !important;
  margin-bottom: 24px !important;
  max-width: 920px !important;
  text-wrap: balance;
}

body.single-post .td-single-header .td-meta,
body.wp-singular .td-single-header .td-meta {
  color: rgba(226, 232, 240, 0.78) !important;
  font-size: 15px !important;
  font-weight: 800;
}

body.single-post .td-single-header .td-meta a,
body.single-post .td-single-header .wp-block-post-date,
body.single-post .td-single-header .wp-block-post-author-name,
body.wp-singular .td-single-header .td-meta a,
body.wp-singular .td-single-header .wp-block-post-date,
body.wp-singular .td-single-header .wp-block-post-author-name {
  color: rgba(226, 232, 240, 0.78) !important;
}

body.single-post .td-single-header .td-reactions,
body.wp-singular .td-single-header .td-reactions {
  gap: 10px;
  margin-top: 30px !important;
}

body.single-post .td-single-header .td-reaction-stat,
body.single-post .td-single-header .td-like-button-large,
body.wp-singular .td-single-header .td-reaction-stat,
body.wp-singular .td-single-header .td-like-button-large {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #f8fafc !important;
  backdrop-filter: blur(14px);
}

body.single-post .td-single-header .td-reaction-stat strong,
body.single-post .td-single-header .td-like-button-large strong,
body.wp-singular .td-single-header .td-reaction-stat strong,
body.wp-singular .td-single-header .td-like-button-large strong {
  color: #ffffff !important;
}

body.single-post .td-single-header .td-like-button-large:hover,
body.wp-singular .td-single-header .td-like-button-large:hover {
  background: #ffffff !important;
  color: #1a56db !important;
}

body.single-post .td-single-header .td-article-buttons,
body.wp-singular .td-single-header .td-article-buttons {
  margin-top: 28px;
}

body.single-post .td-single-header .td-article-button,
body.wp-singular .td-single-header .td-article-button {
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
  min-height: 54px;
  padding-left: 22px;
  padding-right: 22px;
}

.td-article-hero-panel {
  align-self: start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-rows: auto auto;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.td-hero-panel-media {
  background: #0c1122;
  height: 0;
  overflow: hidden;
  padding-bottom: 56.25%; /* 9/16 = 56.25% */
  position: relative;
}

.td-hero-panel-image {
  display: block;
  height: 100% !important;
  inset: 0;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  width: 100% !important;
}

.td-hero-panel-media::after {
  background:
    linear-gradient(180deg, transparent 34%, rgba(8, 13, 27, 0.72)),
    linear-gradient(120deg, rgba(26, 86, 219, 0.22), transparent 58%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 2;
}

.td-hero-panel-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  inset: 0;
  opacity: 0.42;
  position: absolute;
  z-index: 3;
}

.td-hero-panel-placeholder {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(26, 86, 219, 0.88), rgba(6, 182, 212, 0.68)),
    #0c1122;
  color: #ffffff;
  display: flex;
  font-size: 58px;
  font-weight: 950;
  justify-content: center;
  letter-spacing: -0.04em;
  padding-bottom: 56.25%;
  position: relative;
}

.td-hero-panel-info {
  background: rgba(8, 13, 27, 0.78);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 14px;
  padding: 24px;
}

.td-hero-panel-kicker {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.td-hero-panel-title {
  color: #ffffff;
  display: block;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}

.td-hero-panel-meta,
.td-hero-panel-stats {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.td-hero-panel-meta span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.86);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 10px;
}

.td-hero-panel-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 10px;
  padding-top: 14px;
}

.td-hero-panel-stats span {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: grid;
  flex: 1 1 96px;
  gap: 2px;
  min-width: 0;
  padding: 12px;
}

.td-hero-panel-stats b {
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.td-hero-panel-stats small {
  color: rgba(226, 232, 240, 0.62);
  font-size: 11px;
  font-weight: 800;
}

@media (prefers-reduced-motion: no-preference) {
  body.single-post .td-single-header .td-single-hero-shell::after,
  body.wp-singular .td-single-header .td-single-hero-shell::after {
    animation: tdHeroSweep 8s ease-in-out infinite;
  }
}

@keyframes tdHeroSweep {
  0%, 42% { transform: translateX(-62%); opacity: 0; }
  52% { opacity: 0.65; }
  78%, 100% { transform: translateX(62%); opacity: 0; }
}

@media (max-width: 1120px) {
  body.single-post .td-single-header .td-single-hero-shell,
  body.wp-singular .td-single-header .td-single-hero-shell {
    grid-template-columns: 1fr;
    padding: 38px;
  }

  .td-article-hero-panel {
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.76fr);
    grid-template-rows: auto;
  }

  .td-hero-panel-media {
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  body.single-post .td-single-header,
  body.wp-singular .td-single-header {
    padding: 20px 0 30px !important;
  }

  body.single-post .td-single-header .td-single-hero-shell,
  body.wp-singular .td-single-header .td-single-hero-shell {
    border-radius: 22px;
    padding: 24px;
    width: calc(100vw - 32px) !important;
  }

  body.single-post .td-single-header h1,
  body.wp-singular .td-single-header h1 {
    font-size: clamp(34px, 11vw, 46px) !important;
  }

  .td-article-hero-panel {
    border-radius: 20px;
    grid-template-columns: 1fr;
  }

  .td-hero-panel-media,
  .td-hero-panel-placeholder {
    min-height: 210px;
  }

  .td-hero-panel-info {
    padding: 20px;
  }

  .td-hero-panel-title {
    font-size: 21px;
  }
}

/* Simplified article hero: one content area plus one visual, no duplicated article card */
body.single-post .td-single-header .td-single-hero-shell,
body.wp-singular .td-single-header .td-single-hero-shell {
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  padding-bottom: clamp(38px, 4.2vw, 58px);
  padding-top: clamp(38px, 4.2vw, 58px);
}

body.single-post .td-single-header h1,
body.wp-singular .td-single-header h1 {
  font-size: clamp(40px, 4.25vw, 68px) !important;
  line-height: 1.02 !important;
}

.td-article-hero-panel {
  align-self: center;
  aspect-ratio: 1.08;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  display: block;
  height: auto;
  max-height: 430px;
  min-height: 0;
  width: 100%;
}

.td-hero-panel-media {
  aspect-ratio: inherit;
  border-radius: inherit;
  height: 100%;
  min-height: 0;
}

.td-hero-panel-media::after {
  background:
    linear-gradient(180deg, transparent 40%, rgba(8, 13, 27, 0.2)),
    linear-gradient(120deg, rgba(26, 86, 219, 0.16), transparent 62%);
}

.td-hero-panel-grid {
  opacity: 0.28;
}

.td-hero-panel-info {
  display: none;
}

.td-hero-panel-placeholder {
  border-radius: inherit;
  min-height: 0;
}

@media (max-width: 1120px) {
  body.single-post .td-single-header .td-single-hero-shell,
  body.wp-singular .td-single-header .td-single-hero-shell {
    grid-template-columns: 1fr;
  }

  .td-article-hero-panel {
    justify-self: center;
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  body.single-post .td-single-header .td-single-hero-shell,
  body.wp-singular .td-single-header .td-single-hero-shell {
    gap: 22px;
    padding: 24px;
  }

  body.single-post .td-single-header h1,
  body.wp-singular .td-single-header h1 {
    font-size: clamp(34px, 10.2vw, 44px) !important;
  }

  .td-article-hero-panel {
    border-radius: 18px;
    max-height: none;
  }
}

/* =========================================================
   Header: icon-only search trigger
   ========================================================= */

.td-header-search {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-width: 0 !important;
  padding: 0 !important;
}

.td-header-search .wp-block-search__inside-wrapper {
  display: flex;
}

/* Скрываем поле и кнопку "Найти" — оставляем только trigger-кнопку */
.td-header-search input[type="search"] {
  display: none !important;
}

.td-header-search button {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #344054 !important;
  cursor: pointer;
  display: flex !important;
  font-size: 0 !important;
  height: 40px;
  justify-content: center;
  min-height: 40px !important;
  padding: 0 !important;
  position: relative;
  transition: background 160ms ease, color 160ms ease;
  width: 40px;
}

/* Иконка лупы через псевдоэлементы */
.td-header-search button::before {
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 14px;
  left: 9px;
  position: absolute;
  top: 8px;
  width: 14px;
}

.td-header-search button::after {
  background: currentColor;
  border-radius: 2px;
  bottom: 8px;
  content: "";
  height: 6px;
  position: absolute;
  right: 8px;
  transform: rotate(45deg);
  transform-origin: top center;
  width: 2px;
}

.td-header-search button:hover {
  background: rgba(36, 87, 255, 0.08) !important;
  color: #2457ff !important;
}

/* --- Nav: активный пункт --- */
.td-nav a {
  position: relative;
}

.td-nav .current-menu-item > a,
.td-nav .current-page-ancestor > a {
  color: #2457ff !important;
  font-weight: 800 !important;
}

/* =========================================================
   Search modal — macOS Spotlight style
   ========================================================= */

.td-search-modal {
  align-items: flex-start;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding-top: 14vh;
  pointer-events: none;
  position: fixed;
  transition: opacity 200ms ease;
  z-index: 99999;
}

.td-search-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.td-search-modal-backdrop {
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  background: rgba(8, 14, 30, 0.62);
  inset: 0;
  position: absolute;
}

.td-search-modal-body {
  position: relative;
  transform: scale(0.94) translateY(-12px);
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
  width: min(680px, calc(100vw - 40px));
  z-index: 1;
}

.td-search-modal.is-open .td-search-modal-body {
  transform: scale(1) translateY(0);
}

.td-search-modal-field {
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 18px;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.18);
  display: flex;
  gap: 4px;
  padding: 8px 8px 8px 22px;
}

/* Иконка внутри модалки */
.td-search-modal-field::before {
  border: 2.5px solid #9ca3af;
  border-radius: 50%;
  content: "";
  flex: 0 0 20px;
  height: 20px;
  position: relative;
  width: 20px;
}

.td-search-modal-field::after {
  background: #9ca3af;
  border-radius: 3px;
  content: "";
  flex: 0 0 2px;
  height: 9px;
  margin-left: -16px;
  margin-top: 14px;
  transform: rotate(45deg);
  width: 2.5px;
}

.td-search-modal-input {
  background: transparent;
  border: 0;
  color: #0f172a;
  flex: 1;
  font-family: inherit;
  font-size: 22px;
  font-weight: 400;
  min-width: 0;
  outline: none;
  padding: 10px 12px;
}

.td-search-modal-input::placeholder {
  color: #9ca3af;
  font-weight: 300;
}

.td-search-modal-close {
  align-items: center;
  background: #f1f3f6;
  border: 0;
  border-radius: 10px;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  height: 36px;
  justify-content: center;
  padding: 0 12px;
  transition: background 140ms ease;
  white-space: nowrap;
}

.td-search-modal-close:hover {
  background: #e5e7eb;
}

.td-search-modal-hint {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  margin-top: 12px;
  text-align: center;
}

@media (max-width: 480px) {
  .td-search-modal {
    padding-top: 8vh;
  }

  .td-search-modal-input {
    font-size: 18px;
  }
}

/* =========================================================
   Footer v2
   ========================================================= */

.td-footer-v2 {
  background: #0c1120;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-size: 14px;
  margin-top: 0;
  padding: 56px 0 0;
}

.td-footer-grid {
  display: grid;
  gap: 40px 32px;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 24px 48px;
}

/* Brand column */
.td-footer-logo {
  color: #ffffff;
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-decoration: none;
}

.td-footer-logo:hover {
  color: #7c8cf8;
}

.td-footer-tagline {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-width: 220px;
}

/* Column titles */
.td-footer-col-title {
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.td-footer-col-title--social {
  margin-top: 28px;
}

/* Nav list */
.td-footer-nav,
.td-footer-tags,
.td-footer-contacts,
.td-footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
}

.td-footer-nav li,
.td-footer-contacts li {
  margin-bottom: 10px;
}

.td-footer-nav a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 150ms ease;
}

.td-footer-nav a:hover {
  color: #ffffff;
}

/* Tags list */
.td-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.td-footer-tags a {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 12px;
  padding: 4px 10px;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.td-footer-tags a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Contacts */
.td-footer-contact-link {
  align-items: center;
  color: #94a3b8;
  display: flex;
  gap: 8px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}

.td-footer-contact-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.td-footer-contact-link svg {
  flex: 0 0 16px;
  opacity: 0.6;
}

/* Social links */
.td-footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.td-footer-social-link {
  align-items: center;
  color: #94a3b8;
  display: flex;
  gap: 10px;
  text-decoration: none;
  transition: color 150ms ease;
}

.td-footer-social-link:hover {
  color: #ffffff;
}

.td-footer-social-link svg {
  flex: 0 0 18px;
  opacity: 0.7;
}

/* Bottom bar */
.td-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 24px;
  text-align: center;
}

.td-footer-bottom p {
  color: #475569;
  font-size: 12px;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .td-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .td-footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .td-footer-grid {
    grid-template-columns: 1fr;
  }

  .td-footer-col--brand {
    grid-column: auto;
  }
}

/* =========================================================
   Header v3: stable desktop nav and compact mobile controls
   ========================================================= */

body .td-site-header {
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88)) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 14px 44px rgba(12, 17, 34, 0.055) !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  position: sticky;
  top: 0;
  width: 100vw !important;
  z-index: 1000;
}

body.admin-bar .td-site-header {
  top: 32px;
}

body .td-site-header > .td-header-inner {
  align-items: center;
  display: grid !important;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1480px !important;
  min-height: 76px;
  padding: 0;
  width: calc(100vw - 56px) !important;
}

body .td-brand {
  font-size: clamp(18px, 1.4vw, 21px);
  font-weight: 950;
  letter-spacing: -0.01em;
  min-width: 0;
}

body .td-brand a {
  color: #0c1122 !important;
  gap: 12px;
  min-height: 44px;
}

body .td-brand a::before {
  background:
    linear-gradient(135deg, #0b1020 0 34%, #155eef 34% 62%, #00b8d9 62% 78%, #80dd32 78% 100%) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 32px rgba(21, 94, 239, 0.24) !important;
  height: 38px !important;
  width: 38px !important;
}

body .td-header-logo {
  align-items: center;
  display: inline-flex;
  height: 52px;
  justify-self: start;
  line-height: 0;
  margin-left: clamp(28px, 5vw, 82px);
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  width: clamp(190px, 16vw, 260px);
}

body .td-header-logo img {
  display: block;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  width: 100%;
}

body .td-header-actions {
  align-items: center;
  display: grid !important;
  gap: 14px;
  grid-template-columns: minmax(0, auto) minmax(190px, 244px);
  justify-content: end;
  min-width: 0;
  width: auto !important;
}

body .td-nav {
  min-width: 0;
}

body .td-nav .wp-block-navigation__responsive-container-open {
  display: none !important;
}

body .td-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
  background: transparent;
  display: block;
  position: relative;
}

body .td-nav .wp-block-navigation__container {
  align-items: center;
  display: flex;
  flex-wrap: nowrap !important;
  gap: 2px;
  justify-content: flex-end;
  min-width: 0;
}

body .td-nav .wp-block-navigation-item {
  flex: 0 0 auto;
}

body .td-nav a {
  align-items: center;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: #172033 !important;
  display: inline-flex;
  font-size: 14px !important;
  font-weight: 850 !important;
  min-height: 40px;
  padding: 9px 12px !important;
  text-decoration: none !important;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

body .td-nav a:hover,
body .td-nav a:focus {
  background: #ffffff !important;
  border-color: rgba(21, 94, 239, 0.18) !important;
  color: #155eef !important;
  transform: translateY(-1px);
}

body .td-nav .current-menu-item > a,
body .td-nav .current-page-ancestor > a,
body.category-bitrix24 .td-nav a[href="/category/bitrix24/"],
body.category-crm .td-nav a[href="/category/crm/"] {
  background: #eef4ff !important;
  border-color: rgba(21, 94, 239, 0.18) !important;
  color: #155eef !important;
}

body .td-header-search {
  align-items: center;
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, 0.32) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 30px rgba(12, 17, 34, 0.055) !important;
  display: flex !important;
  max-width: 244px !important;
  min-width: 0 !important;
  padding: 4px !important;
  width: 100% !important;
}

body .td-header-search .wp-block-search__inside-wrapper {
  align-items: center;
  border: 0 !important;
  display: flex !important;
  gap: 4px;
  min-width: 0;
  padding: 0 !important;
  width: 100%;
}

body .td-header-search input[type="search"] {
  background: transparent !important;
  border: 0 !important;
  color: #0f172a !important;
  display: block !important;
  flex: 1 1 auto;
  font-size: 14px !important;
  min-height: 40px !important;
  min-width: 0;
  outline: none;
  padding: 8px 11px !important;
  width: auto !important;
}

body .td-header-search input[type="search"]::placeholder {
  color: #64748b;
}

body .td-header-search:focus-within {
  border-color: rgba(21, 94, 239, 0.42) !important;
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.1), 0 12px 30px rgba(12, 17, 34, 0.055) !important;
}

body .td-header-search button {
  align-items: center;
  background: #0c1122 !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  cursor: pointer;
  display: flex !important;
  flex: 0 0 40px;
  font-size: 0 !important;
  height: 40px;
  justify-content: center;
  min-height: 40px !important;
  padding: 0 !important;
  position: relative;
  transition: background 160ms ease, transform 160ms ease;
  width: 40px;
}

body .td-header-search button:hover,
body .td-header-search button:focus {
  background: #155eef !important;
  transform: translateY(-1px);
}

body .td-header-search button::before {
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 13px;
  left: 11px;
  position: absolute;
  top: 10px;
  width: 13px;
}

body .td-header-search button::after {
  background: currentColor;
  border-radius: 2px;
  content: "";
  height: 7px;
  position: absolute;
  right: 11px;
  top: 24px;
  transform: rotate(45deg);
  transform-origin: top center;
  width: 2px;
}

@media (max-width: 1260px) {
  body .td-site-header > .td-header-inner {
    gap: 14px;
    width: calc(100vw - 40px) !important;
  }

  body .td-header-actions {
    gap: 10px;
    grid-template-columns: minmax(0, auto) minmax(150px, 190px);
  }

  body .td-nav a {
    font-size: 13px !important;
    padding-left: 9px !important;
    padding-right: 9px !important;
  }
}

@media (max-width: 1100px) {
  body .td-site-header > .td-header-inner {
    grid-template-columns: minmax(0, auto) auto;
    min-height: 72px;
  }

  body .td-header-actions {
    display: flex !important;
    flex: 0 0 auto;
    gap: 8px;
    justify-content: flex-end;
  }

  body .td-nav {
    order: 2;
  }

  body .td-header-search {
    flex: 0 0 44px;
    max-width: 44px !important;
    order: 1;
    padding: 0 !important;
    width: 44px !important;
  }

  body .td-header-search input[type="search"] {
    display: none !important;
  }

  body .td-header-search button {
    flex-basis: 44px;
    height: 44px;
    min-height: 44px !important;
    width: 44px;
  }

  body .td-header-search button::before {
    left: 12px;
    top: 11px;
  }

  body .td-header-search button::after {
    right: 12px;
    top: 26px;
  }

  body .td-nav .wp-block-navigation__responsive-container-open {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(12, 17, 34, 0.055);
    color: #0c1122;
    display: inline-flex !important;
    height: 44px;
    justify-content: center;
    padding: 0;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
    width: 44px;
  }

  body .td-nav .wp-block-navigation__responsive-container-open svg {
    height: 22px;
    width: 22px;
  }

  body .td-nav .wp-block-navigation__responsive-container-open:hover,
  body .td-nav .wp-block-navigation__responsive-container-open:focus {
    background: #0c1122;
    color: #ffffff;
    transform: translateY(-1px);
  }

  body .td-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }

  body .td-nav .wp-block-navigation__responsive-container.is-menu-open {
    background:
      radial-gradient(circle at top left, rgba(21, 94, 239, 0.08), transparent 34%),
      linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 24px;
    box-sizing: border-box;
    box-shadow: 0 34px 92px rgba(12, 17, 34, 0.22);
    height: calc(100dvh - 24px) !important;
    inset: 12px !important;
    max-height: calc(100dvh - 24px);
    min-height: 360px;
    overflow: auto;
    padding: 20px !important;
    position: fixed !important;
    z-index: 100000;
  }

  body.admin-bar .td-nav .wp-block-navigation__responsive-container.is-menu-open {
    height: calc(100dvh - 56px) !important;
    max-height: calc(100dvh - 56px);
    top: 44px !important;
  }

  body .td-nav .wp-block-navigation__responsive-container-close {
    align-items: center;
    background: #0c1122;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    padding: 0;
    right: 20px;
    top: 20px;
    width: 44px;
  }

  body .td-nav .wp-block-navigation__responsive-container-close svg {
    height: 20px;
    width: 20px;
  }

  body .td-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    align-items: stretch;
    padding-top: 64px;
  }

  body .td-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    display: grid !important;
    gap: 8px;
    justify-content: stretch;
    width: 100%;
  }

  body .td-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    width: 100%;
  }

  body .td-nav .wp-block-navigation__responsive-container.is-menu-open a {
    background: #ffffff !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    border-radius: 16px !important;
    color: #0c1122 !important;
    display: flex;
    font-size: 18px !important;
    justify-content: space-between;
    min-height: 54px;
    padding: 14px 16px !important;
    width: 100%;
  }

  body .td-nav .wp-block-navigation__responsive-container.is-menu-open a:hover,
  body .td-nav .wp-block-navigation__responsive-container.is-menu-open a:focus {
    background: #eef4ff !important;
    color: #155eef !important;
    transform: none;
  }
}

@media (max-width: 560px) {
  body .td-site-header > .td-header-inner {
    min-height: 68px;
    width: calc(100vw - 28px) !important;
  }

  body .td-header-logo {
    height: 42px;
    margin-left: 18px;
    width: 160px;
  }

  body .td-brand {
    font-size: 18px;
  }

  body .td-brand a {
    gap: 10px;
  }

  body .td-brand a::before {
    border-radius: 10px !important;
    height: 34px !important;
    width: 34px !important;
  }
}

/* =========================================================
   Search v2: compact trigger and live macOS-like search
   ========================================================= */

html.td-search-open {
  overflow: hidden;
}

html.td-search-open body > *:not(.td-search-modal):not(#wpadminbar) {
  filter: blur(9px) saturate(0.92);
  transform: scale(0.996);
  transition: filter 180ms ease, transform 180ms ease;
}

body .td-header-actions {
  grid-template-columns: minmax(0, auto) 48px !important;
}

body .td-header-search {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  flex: 0 0 48px;
  max-width: 48px !important;
  min-width: 48px !important;
  padding: 0 !important;
  width: 48px !important;
}

body .td-header-search .wp-block-search__inside-wrapper {
  display: flex !important;
  gap: 0 !important;
  height: 48px;
  width: 48px;
}

body .td-header-search input[type="search"] {
  display: none !important;
}

body .td-header-search button {
  background:
    linear-gradient(180deg, #ffffff, #f8fbff) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  border-radius: 999px !important;
  box-shadow:
    0 14px 34px rgba(12, 17, 34, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  color: #0c1122 !important;
  flex: 0 0 48px !important;
  height: 48px !important;
  margin: 0 !important;
  min-height: 48px !important;
  width: 48px !important;
}

body .td-header-search button::before {
  border: 2.4px solid currentColor !important;
  height: 15px !important;
  left: 14px !important;
  top: 12px !important;
  width: 15px !important;
}

body .td-header-search button::after {
  height: 8px !important;
  right: 14px !important;
  top: 28px !important;
  width: 2.5px !important;
}

body .td-header-search button:hover,
body .td-header-search button:focus {
  background: #0c1122 !important;
  color: #ffffff !important;
  transform: translateY(-1px) scale(1.02);
}

.td-search-modal {
  align-items: flex-start;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: min(12vh, 112px) 18px 32px;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 100001;
}

.td-search-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.td-search-modal-backdrop {
  -webkit-backdrop-filter: blur(30px) saturate(1.35);
  backdrop-filter: blur(30px) saturate(1.35);
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.18) 30%, transparent 54%),
    rgba(9, 15, 32, 0.36);
  inset: 0;
  position: absolute;
}

.td-search-modal-body {
  position: relative;
  transform: translateY(-18px) scale(0.975);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  width: min(760px, calc(100vw - 28px));
  z-index: 1;
}

.td-search-modal.is-open .td-search-modal-body {
  transform: translateY(0) scale(1);
}

.td-search-modal-shell {
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  box-shadow:
    0 48px 130px rgba(8, 14, 30, 0.34),
    0 0 0 1px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.td-search-modal-field {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 12px;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  padding: 16px 18px 16px 20px;
}

.td-search-modal-field::before,
.td-search-modal-field::after {
  content: none !important;
  display: none !important;
}

.td-search-modal-icon {
  color: #64748b;
  display: block;
  height: 24px;
  position: relative;
  width: 24px;
}

.td-search-modal-icon::before {
  border: 2.5px solid currentColor;
  border-radius: 999px;
  content: "";
  height: 14px;
  left: 2px;
  position: absolute;
  top: 2px;
  width: 14px;
}

.td-search-modal-icon::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 9px;
  left: 16px;
  position: absolute;
  top: 16px;
  transform: rotate(-45deg);
  transform-origin: top center;
  width: 3px;
}

.td-search-modal-input {
  background: transparent;
  border: 0;
  color: #0c1122;
  font-family: inherit;
  font-size: 25px;
  font-weight: 720;
  min-width: 0;
  outline: none;
  padding: 4px 0;
}

.td-search-modal-input::placeholder {
  color: #8a95a6;
  font-weight: 520;
}

.td-search-modal-close {
  align-items: center;
  background: #eef2f7;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  letter-spacing: 0;
  padding: 0 12px;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.td-search-modal-close:hover,
.td-search-modal-close:focus {
  background: #0c1122;
  color: #ffffff;
  transform: translateY(-1px);
}

.td-search-modal-status {
  color: #64748b;
  font-size: 14px;
  font-weight: 720;
  padding: 14px 20px 10px;
}

.td-search-modal-results {
  display: grid;
  gap: 8px;
  max-height: min(52vh, 520px);
  overflow: auto;
  padding: 0 12px 12px;
}

.td-search-modal-results.is-loading::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.45)),
    #eef2f7;
  background-size: 220% 100%;
  border-radius: 18px;
  content: "";
  height: 78px;
  animation: tdSearchLoading 900ms linear infinite;
}

.td-search-modal-results.is-empty {
  min-height: 10px;
}

.td-search-result {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  color: #0c1122 !important;
  display: grid;
  gap: 14px;
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 94px;
  overflow: hidden;
  padding: 10px;
  text-decoration: none !important;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.td-search-result:hover,
.td-search-result:focus {
  background: #ffffff;
  border-color: rgba(21, 94, 239, 0.24);
  box-shadow: 0 18px 42px rgba(12, 17, 34, 0.12);
  transform: translateY(-2px);
}

.td-search-result-visual {
  background:
    linear-gradient(135deg, rgba(21, 94, 239, 0.18), rgba(0, 184, 217, 0.14)),
    #eef4ff;
  background-position: center;
  background-size: cover;
  border-radius: 14px;
  display: block;
  height: 74px;
  position: relative;
  width: 74px;
}

.td-search-result-visual.is-empty::after {
  background:
    linear-gradient(135deg, #0c1122 0 36%, #155eef 36% 62%, #00b8d9 62% 78%, #80dd32 78% 100%);
  border-radius: 8px;
  content: "";
  height: 30px;
  left: 22px;
  position: absolute;
  top: 22px;
  width: 30px;
}

.td-search-result-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.td-search-result-meta {
  align-items: center;
  color: #155eef;
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 900;
  gap: 8px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.td-search-result-title {
  color: #0c1122;
  display: -webkit-box;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.12;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.td-search-result-excerpt {
  color: #64748b;
  display: -webkit-box;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.3;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.td-search-modal-hint {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #7b8798;
  font-size: 12px;
  font-weight: 680;
  margin: 0;
  padding: 12px 20px 14px;
  text-align: center;
}

@keyframes tdSearchLoading {
  from {
    background-position: 220% 0;
  }
  to {
    background-position: -220% 0;
  }
}

@media (max-width: 1100px) {
  body .td-header-actions {
    display: flex !important;
  }

  body .td-header-search {
    flex-basis: 48px;
    order: 1;
  }
}

@media (max-width: 560px) {
  body .td-header-search,
  body .td-header-search .wp-block-search__inside-wrapper,
  body .td-header-search button {
    flex-basis: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    min-width: 44px !important;
    width: 44px !important;
  }

  body .td-header-search button::before {
    left: 12px !important;
    top: 10px !important;
  }

  body .td-header-search button::after {
    right: 12px !important;
    top: 26px !important;
  }

  .td-search-modal {
    padding: 74px 10px 18px;
  }

  .td-search-modal-shell {
    border-radius: 20px;
  }

  .td-search-modal-field {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    padding: 13px 12px 13px 14px;
  }

  .td-search-modal-input {
    font-size: 18px;
  }

  .td-search-modal-close {
    font-size: 11px;
    height: 30px;
    padding: 0 9px;
  }

  .td-search-result {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 80px;
  }

  .td-search-result-visual {
    height: 58px;
    width: 58px;
  }

  .td-search-result-title {
    font-size: 15px;
  }

  .td-search-result-excerpt {
    display: none;
  }
}

/* =========================================================
   Home v3: full-width executive technology magazine
   ========================================================= */

.td-home-v3 {
  background:
    radial-gradient(circle at 12% 8%, rgba(21, 94, 239, 0.09), transparent 26%),
    radial-gradient(circle at 88% 22%, rgba(0, 184, 217, 0.1), transparent 28%),
    #f5f7fb;
  color: #0c1122;
  margin: 0 !important;
  max-width: none !important;
  overflow: hidden;
  width: 100% !important;
}

.td-home-wide {
  box-sizing: border-box;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw !important;
  width: 100vw !important;
}

.td-home-kicker {
  align-items: center;
  color: #155eef;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  gap: 8px;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.td-home-kicker::before {
  background: linear-gradient(135deg, #155eef, #00b8d9, #80dd32);
  border-radius: 999px;
  content: "";
  height: 8px;
  width: 8px;
}

.td-home-hero {
  padding: 0;
}

.td-home-slider {
  background:
    linear-gradient(135deg, rgba(9, 15, 32, 0.96), rgba(16, 42, 72, 0.94)),
    #0c1122;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 0;
  border-radius: 0 0 clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px);
  border-right: 0;
  box-shadow: 0 42px 120px rgba(9, 15, 32, 0.28);
  min-height: clamp(540px, 68svh, 640px);
  overflow: hidden;
  position: relative;
}

.td-home-slider::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
  position: absolute;
}

.td-home-slider::after {
  background:
    radial-gradient(circle at var(--td-pointer-x, 60%) var(--td-pointer-y, 35%), rgba(0, 184, 217, 0.24), transparent 28%),
    linear-gradient(90deg, rgba(21, 94, 239, 0.24), transparent 45%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.td-home-slider-track {
  display: flex;
  min-height: inherit;
  position: relative;
  transition: transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.td-home-slide {
  align-items: center;
  box-sizing: border-box;
  display: grid;
  gap: clamp(22px, 4vw, 58px);
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  min-height: inherit;
  min-width: 100%;
  padding: clamp(26px, 4vw, 62px) clamp(28px, 5vw, 82px) clamp(92px, 7vw, 118px);
  position: relative;
}

.td-home-slide-copy {
  max-width: 760px;
  min-width: 0;
  position: relative;
  width: 100%;
  z-index: 2;
}

.td-home-slide h1 {
  color: #ffffff;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 980;
  letter-spacing: 0;
  line-height: 0.92;
  margin: 18px 0;
  max-width: 760px;
  overflow-wrap: break-word;
}

.td-home-slide-copy > p:not(.td-home-kicker) {
  color: rgba(226, 232, 240, 0.86);
  font-size: clamp(18px, 1.45vw, 24px);
  font-weight: 620;
  line-height: 1.45;
  margin: 0;
  max-width: 760px;
}

.td-home-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.td-home-slide-actions a {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  text-decoration: none !important;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.td-home-primary {
  background: #80dd32;
  box-shadow: 0 18px 46px rgba(128, 221, 50, 0.24);
  color: #07111f !important;
}

.td-home-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
}

.td-home-slide-actions a:hover,
.td-home-slide-actions a:focus {
  transform: translateY(-2px);
}

.td-home-slide-visual {
  aspect-ratio: 1 / 1;
  border-radius: 36px;
  justify-self: end;
  max-width: 500px;
  overflow: hidden;
  position: relative;
  transform: perspective(900px) rotateX(var(--td-tilt-x, 0deg)) rotateY(var(--td-tilt-y, 0deg));
  transition: transform 180ms ease;
  width: 100%;
}

.td-home-slide-visual::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(21, 94, 239, 0.16), rgba(0, 184, 217, 0.1));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.td-home-slide-visual img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  width: 100%;
}

.td-home-slide-glow {
  background: radial-gradient(circle, rgba(0, 184, 217, 0.38), transparent 62%);
  bottom: -26%;
  filter: blur(8px);
  height: 58%;
  position: absolute;
  right: -20%;
  width: 58%;
  z-index: 2;
}

.td-home-slide-metrics {
  bottom: clamp(22px, 3vw, 42px);
  display: flex;
  gap: 10px;
  left: clamp(28px, 5vw, 82px);
  max-width: calc(50% - 40px);
  position: absolute;
  z-index: 3;
}

.td-home-slide-metrics span {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.82);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  padding: 10px 13px;
}

.td-home-slide-metrics strong {
  color: #ffffff;
}

.td-home-slider-controls {
  align-items: center;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  bottom: clamp(18px, 3vw, 34px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
  display: flex;
  gap: 8px;
  height: 56px;
  left: 50%;
  padding: 8px;
  position: absolute;
  right: auto;
  transform: translateX(-50%);
  z-index: 4;
}

.td-home-slider-prev,
.td-home-slider-next,
.td-home-slider-dots button {
  border: 0;
  cursor: pointer;
}

.td-home-slider-prev,
.td-home-slider-next {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  flex: 0 0 40px;
  height: 40px;
  line-height: 1;
  min-height: 40px !important;
  padding: 0 !important;
  position: relative;
  transition: background 160ms ease, transform 160ms ease;
  width: 40px;
}

.td-home-slider-prev::before,
.td-home-slider-next::before {
  border-left: 2px solid #ffffff;
  border-top: 2px solid #ffffff;
  content: "";
  height: 9px;
  left: 16px;
  position: absolute;
  top: 15px;
  transform: rotate(-45deg);
  width: 9px;
}

.td-home-slider-next::before {
  left: 13px;
  transform: rotate(135deg);
}

.td-home-slider-prev:hover,
.td-home-slider-next:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.td-home-slider-prev:hover::before,
.td-home-slider-next:hover::before {
  border-color: #0c1122;
}

.td-home-slider-dots {
  background: transparent;
  border: 0;
  border-radius: 999px;
  display: flex;
  gap: 7px;
  height: 16px;
  line-height: 1;
  padding: 0 3px;
}

.td-home-slider-dots button {
  background: rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  height: 8px;
  min-height: 8px !important;
  padding: 0;
  transition: background 160ms ease, width 160ms ease;
  width: 8px;
}

.td-home-slider-dots button.is-active {
  background: #80dd32;
  width: 28px;
}

.td-vibe-stage {
  align-items: start;
  background:
    radial-gradient(circle at 72% 34%, rgba(0, 184, 217, 0.18), transparent 30%),
    radial-gradient(circle at 18% 60%, rgba(21, 94, 239, 0.12), transparent 26%),
    linear-gradient(180deg, #f5f7fb, #eef4ff);
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  grid-template-columns: minmax(280px, 0.78fr) minmax(340px, 1.1fr);
  min-height: 150vh;
  padding: clamp(64px, 8vw, 128px) clamp(18px, 5vw, 86px);
  position: relative;
}

.td-vibe-copy {
  align-self: start;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(12, 17, 34, 0.08);
  padding: clamp(24px, 3vw, 42px);
  position: sticky;
  top: 112px;
  z-index: 2;
}

.td-vibe-copy h2 {
  font-size: clamp(34px, 4.2vw, 68px);
  font-weight: 980;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 16px 0;
}

.td-vibe-copy p:not(.td-home-kicker) {
  color: #475569;
  font-size: 18px;
  font-weight: 620;
  line-height: 1.5;
  margin: 0;
}

.td-vibe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.td-vibe-tags span,
.td-vibe-orbit span {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: #172033;
  font-size: 13px;
  font-weight: 900;
  padding: 9px 12px;
}

.td-vibe-canvas-wrap {
  align-self: start;
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 225, 255, 0.22), transparent 36%),
    linear-gradient(145deg, #0c1122, #11243a 58%, #07111f);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 42px;
  box-shadow: 0 46px 120px rgba(12, 17, 34, 0.22);
  height: min(760px, calc(100svh - 132px));
  min-height: 560px;
  overflow: hidden;
  position: sticky;
  top: 96px;
}

.td-vibe-canvas-wrap::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  content: "";
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.td-vibe-canvas {
  display: block;
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 2;
}

.td-vibe-fallback {
  bottom: 0;
  display: block;
  height: 92%;
  left: 50%;
  object-fit: contain;
  opacity: 0.92;
  position: absolute;
  transform: translateX(-50%);
  z-index: 2;
}

.td-vibe-stage.is-webgl-ready .td-vibe-fallback {
  display: none;
}

.td-vibe-orbit {
  bottom: 12%;
  display: flex;
  gap: 10px;
  position: absolute;
  right: clamp(20px, 6vw, 110px);
  transform: translateY(calc(var(--td-vibe-progress, 0) * -40px));
  z-index: 3;
}

.td-vibe-orbit span {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(12, 17, 34, 0.08);
}

.td-pain-finder {
  padding: clamp(36px, 6vw, 96px) clamp(16px, 4vw, 64px);
}

.td-pain-shell {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.86)),
    #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: clamp(26px, 3vw, 42px);
  box-shadow: 0 32px 90px rgba(12, 17, 34, 0.08);
  display: grid;
  gap: clamp(24px, 4vw, 58px);
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  padding: clamp(24px, 4vw, 58px);
}

.td-pain-intro h2,
.td-home-section-head h2,
.td-home-final h2 {
  font-size: clamp(34px, 4.4vw, 72px);
  font-weight: 980;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 16px 0;
}

.td-pain-intro p:not(.td-home-kicker),
.td-home-section-head p,
.td-home-final p {
  color: #64748b;
  font-size: 18px;
  font-weight: 620;
  line-height: 1.48;
  margin: 0;
}

.td-pain-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.td-pain-filters button {
  background: #eef4ff;
  border: 1px solid rgba(21, 94, 239, 0.14);
  border-radius: 999px;
  color: #155eef;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  min-height: 38px;
  padding: 0 14px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.td-pain-filters button.is-active,
.td-pain-filters button:hover {
  background: #0c1122;
  color: #ffffff;
  transform: translateY(-1px);
}

.td-pain-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.td-pain-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 184, 217, 0.12), transparent 36%),
    #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 26px;
  color: #0c1122 !important;
  display: grid;
  gap: 12px;
  min-height: 240px;
  overflow: hidden;
  padding: 24px;
  position: relative;
  text-decoration: none !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.td-pain-card:hover,
.td-pain-card:focus {
  border-color: rgba(21, 94, 239, 0.34);
  box-shadow: 0 24px 62px rgba(12, 17, 34, 0.12);
  transform: translateY(-4px);
}

.td-pain-number {
  color: rgba(21, 94, 239, 0.14);
  font-size: 58px;
  font-weight: 980;
  line-height: 0.8;
  position: absolute;
  right: 18px;
  top: 18px;
}

.td-pain-role {
  color: #155eef;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.td-pain-card strong {
  font-size: 24px;
  font-weight: 950;
  line-height: 1.05;
  max-width: 92%;
}

.td-pain-card em {
  color: #64748b;
  font-size: 15px;
  font-style: normal;
  font-weight: 620;
  line-height: 1.4;
}

.td-pain-card small {
  align-self: end;
  background: #f1f5f9;
  border-radius: 999px;
  color: #0c1122;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-self: start;
  padding: 9px 12px;
}

.td-home-articles {
  padding: clamp(42px, 7vw, 112px) clamp(16px, 4vw, 64px);
}

.td-home-section-head {
  align-items: end;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.48fr);
  margin: 0 auto clamp(24px, 4vw, 54px);
  max-width: 1540px;
}

.td-home-section-head p {
  max-width: 520px;
}

.td-home-articles-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.12fr) repeat(2, minmax(0, 0.7fr));
  margin: 0 auto;
  max-width: 1540px;
}

.td-home-article {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  color: #0c1122 !important;
  display: grid;
  overflow: hidden;
  text-decoration: none !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.td-home-article:hover,
.td-home-article:focus {
  border-color: rgba(21, 94, 239, 0.32);
  box-shadow: 0 26px 72px rgba(12, 17, 34, 0.12);
  transform: translateY(-5px);
}

.td-home-article--lead {
  grid-row: span 2;
}

.td-home-article-media {
  aspect-ratio: 16 / 10;
  background: #eef4ff;
  display: block;
  overflow: hidden;
  position: relative;
}

.td-home-article-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
  width: 100%;
}

.td-home-article:hover .td-home-article-media img {
  transform: scale(1.045);
}

.td-home-article-line {
  background: linear-gradient(90deg, #155eef, #00b8d9, #80dd32);
  height: 5px;
  inset: 0 0 auto;
  position: absolute;
}

.td-home-article-placeholder {
  align-items: center;
  background:
    linear-gradient(135deg, #0c1122, #16395d),
    #0c1122;
  color: #ffffff;
  display: flex;
  font-size: 34px;
  font-weight: 980;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.td-home-article-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.td-home-article--lead .td-home-article-body {
  padding: clamp(24px, 3vw, 36px);
}

.td-home-article-top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.td-home-article-top span,
.td-home-article-top time {
  color: #155eef;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.td-home-article-top time {
  color: #64748b;
}

.td-home-article strong {
  display: -webkit-box;
  font-size: 25px;
  font-weight: 980;
  letter-spacing: 0;
  line-height: 1.04;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.td-home-article--lead strong {
  font-size: clamp(34px, 3.4vw, 56px);
  -webkit-line-clamp: 4;
}

.td-home-article em {
  color: #64748b;
  display: -webkit-box;
  font-size: 15px;
  font-style: normal;
  font-weight: 620;
  line-height: 1.42;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.td-home-article-stats {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.td-home-article-stats span {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #344054;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
}

.td-home-article-stats span::before {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 8px;
  opacity: 0.88;
  width: 8px;
}

.td-home-final {
  align-items: center;
  background:
    radial-gradient(circle at 80% 10%, rgba(128, 221, 50, 0.18), transparent 26%),
    linear-gradient(135deg, #0c1122, #12243b);
  color: #ffffff;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(42px, 6vw, 86px) clamp(20px, 8vw, 150px);
}

.td-home-final h2 {
  color: #ffffff;
  max-width: 980px;
}

.td-home-final p {
  color: rgba(226, 232, 240, 0.78);
  max-width: 820px;
}

.td-home-final a {
  align-items: center;
  background: #80dd32;
  border-radius: 999px;
  color: #07111f !important;
  display: inline-flex;
  font-size: 15px;
  font-weight: 950;
  min-height: 54px;
  padding: 0 24px;
  text-decoration: none !important;
}

@media (max-width: 1180px) {
  .td-home-slide,
  .td-vibe-stage,
  .td-pain-shell,
  .td-home-section-head {
    grid-template-columns: 1fr;
  }

  .td-home-slide-visual {
    justify-self: start;
    max-width: 440px;
  }

  .td-home-slide-metrics,
  .td-home-slider-controls {
    position: absolute;
    bottom: auto;
    left: auto;
    right: auto;
  }

  .td-home-slide-metrics {
    display: none;
  }

  .td-home-slider-controls {
    bottom: 24px;
    justify-content: flex-end;
    left: 50%;
    margin: 0;
    right: auto;
    transform: translateX(-50%);
  }

  .td-vibe-stage {
    min-height: auto;
  }

  .td-vibe-copy,
  .td-vibe-canvas-wrap {
    position: relative;
    top: auto;
  }

  .td-home-articles-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .td-home-article--lead {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .td-home-hero {
    padding: 0;
  }

  .td-home-slider {
    border-radius: 0 0 24px 24px;
    min-height: 620px;
  }

  .td-home-slide {
    align-content: center;
    gap: 14px;
    padding: 22px 18px 86px;
  }

  .td-home-slide h1 {
    font-size: clamp(34px, 10.4vw, 46px);
    line-height: 0.96;
    margin: 14px 0;
  }

  .td-home-slide-copy > p:not(.td-home-kicker) {
    font-size: 15px;
    line-height: 1.38;
  }

  .td-home-slide-actions {
    gap: 8px;
    margin-top: 22px;
  }

  .td-home-slide-actions a {
    font-size: 13px;
    min-height: 44px;
    padding: 0 16px;
  }

  .td-home-slide-visual {
    border-radius: 22px;
    max-width: 168px;
  }

  .td-home-slide-metrics {
    display: none;
  }

  .td-home-slider-controls {
    bottom: 16px;
    justify-content: center;
    margin: 0;
  }

  .td-vibe-stage,
  .td-pain-finder,
  .td-home-articles {
    padding-left: 12px;
    padding-right: 12px;
  }

  .td-vibe-copy,
  .td-pain-shell,
  .td-pain-card,
  .td-home-article,
  .td-home-final {
    border-radius: 22px;
  }

  .td-vibe-canvas-wrap {
    border-radius: 24px;
    height: 560px;
    min-height: 560px;
  }

  .td-vibe-orbit {
    display: none;
  }

  .td-pain-grid,
  .td-home-articles-layout {
    grid-template-columns: 1fr;
  }

  .td-pain-shell {
    padding: 18px;
  }

  .td-pain-card {
    min-height: 210px;
    padding: 20px;
  }

  .td-home-section-head {
    gap: 10px;
  }

  .td-home-article--lead strong {
    font-size: 31px;
  }

  .td-home-final {
    grid-template-columns: 1fr;
    padding: 36px 18px;
  }
}

/* =========================================================
   Edge-to-edge final pass
   ========================================================= */

html,
body {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  overflow-x: clip;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
}

body .wp-site-blocks {
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  overflow-x: clip !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
}

body .wp-site-blocks > *,
body .has-global-padding,
body .td-main,
body .td-content-shell,
body .td-home-v3 {
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100vw !important;
}

body .wp-site-blocks > :where(header, main, footer),
body :where(.td-site-header, .td-site-footer, .td-footer-v2) {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100vw !important;
}

body :where(.td-main, .td-content-shell, .td-home-v3).wp-block-group-is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body :where(.td-main, .td-content-shell, .td-home-v3).wp-block-group-is-layout-constrained > .alignwide {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body .td-site-header > .td-header-inner {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100vw !important;
}

body :where(.td-home-wide, .td-home-hero, .td-home-slider, .td-vibe-stage, .td-pain-finder, .td-home-articles, .td-home-final, .td-home-offers) {
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100vw !important;
}

body :where(.td-vibe-stage, .td-pain-finder, .td-home-articles, .td-home-final, .td-home-offers) {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body :where(.td-pain-shell, .td-home-section-head, .td-home-articles-layout) {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.single-post .td-single-header,
body.wp-singular .td-single-header,
body .td-main > .td-single-header {
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100vw !important;
}

body.single-post .td-single-header .td-single-hero-shell,
body.wp-singular .td-single-header .td-single-hero-shell {
  border-left: 0 !important;
  border-radius: 0 0 clamp(22px, 3vw, 36px) clamp(22px, 3vw, 36px) !important;
  border-right: 0 !important;
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100vw !important;
}

body.single-post .td-article-layout,
body.wp-singular .td-article-layout,
body.single-post .td-post-nav-wide,
body.wp-singular .td-post-nav-wide,
body .td-page-title,
body .td-section-head,
body .td-archive-query,
body .td-search-query,
body .td-highlight {
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100vw !important;
}

body.single-post .td-post-nav-wide .td-post-nav-modern,
body.wp-singular .td-post-nav-wide .td-post-nav-modern {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: none !important;
  width: 100% !important;
}

body.single-post .td-post-nav-wide,
body.wp-singular .td-post-nav-wide {
  margin-left: calc(50% - 50vw + 140px) !important;
  margin-right: calc(50% - 50vw + 140px) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: calc(100vw - 280px) !important;
}

body.single-post .td-article-layout,
body.wp-singular .td-article-layout {
  margin-left: calc(50% - 50vw + 140px) !important;
  margin-right: calc(50% - 50vw + 140px) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: calc(100vw - 280px) !important;
}

body.single-post .td-article-main .td-post-content,
body.wp-singular .td-article-main .td-post-content {
  box-sizing: border-box;
  max-width: none !important;
  width: 100% !important;
}

body.single-post .td-article-main .td-post-content > *,
body.wp-singular .td-article-main .td-post-content > * {
  max-width: none !important;
}

body.single-post .td-article-main .td-cta-block,
body.wp-singular .td-article-main .td-cta-block {
  box-sizing: border-box;
  width: 100% !important;
}

body .td-footer-grid,
body .td-footer-bottom {
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1200px !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  width: 100% !important;
}

@media (max-width: 760px) {
  body .td-site-header > .td-header-inner,
  body.single-post .td-single-header .td-single-hero-shell,
  body.wp-singular .td-single-header .td-single-hero-shell,
	  body.single-post .td-post-nav-wide,
	  body.wp-singular .td-post-nav-wide,
	  body .td-main > .td-single-header {
	    margin-left: 0 !important;
	    margin-right: 0 !important;
    max-width: none !important;
    width: 100vw !important;
	  }

  body.single-post .td-article-layout,
  body.wp-singular .td-article-layout,
  body.single-post .td-post-nav-wide,
  body.wp-singular .td-post-nav-wide {
    margin-left: calc(50% - 50vw + 16px) !important;
    margin-right: calc(50% - 50vw + 16px) !important;
    width: calc(100vw - 32px) !important;
  }
	}

/* =========================================================
   Vibe cat floating assistant
   ========================================================= */

.td-vibe-widget {
  bottom: 18px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  display: grid;
  justify-items: end;
  pointer-events: none;
  position: fixed;
  right: 18px;
  right: calc(env(safe-area-inset-right, 0px) + 18px);
  z-index: 9000;
}

.td-vibe-widget,
.td-vibe-widget * {
  box-sizing: border-box;
}

.td-vibe-widget-toggle {
  -webkit-tap-highlight-color: transparent;
  align-items: center;
  background:
    radial-gradient(circle at 42% 20%, rgba(0, 225, 255, 0.22), transparent 38%),
    linear-gradient(145deg, #0c1122, #132840);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow:
    0 22px 58px rgba(8, 13, 27, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  height: 94px;
  justify-items: center;
  overflow: visible;
  padding: 0;
  pointer-events: auto;
  position: relative;
  transform: perspective(520px) rotateX(var(--td-widget-tilt-x, 0deg)) rotateY(var(--td-widget-tilt-y, 0deg));
  transition: box-shadow 180ms ease, transform 180ms ease;
  width: 94px;
}

.td-vibe-widget-toggle::before {
  animation: tdVibeWidgetAura 7s linear infinite;
  background: conic-gradient(from 90deg, rgba(21, 94, 239, 0.1), rgba(0, 184, 217, 0.58), rgba(128, 221, 50, 0.7), rgba(21, 94, 239, 0.1));
  border-radius: 34px;
  content: "";
  filter: blur(10px);
  inset: -8px;
  opacity: 0.76;
  position: absolute;
  z-index: -1;
}

.td-vibe-widget-toggle:hover,
.td-vibe-widget-toggle:focus-visible,
.td-vibe-widget.is-open .td-vibe-widget-toggle {
  box-shadow:
    0 28px 72px rgba(8, 13, 27, 0.36),
    0 0 0 6px rgba(0, 184, 217, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  outline: none;
  transform: perspective(520px) rotateX(var(--td-widget-tilt-x, 0deg)) rotateY(var(--td-widget-tilt-y, 0deg)) translateY(-3px);
}

.td-vibe-widget-avatar {
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(0, 225, 255, 0.18), transparent 42%);
  background-size: 18px 18px, 18px 18px, auto;
  border-radius: 25px;
  height: 78px;
  inset: 8px;
  overflow: hidden;
  position: absolute;
  width: 78px;
}

.td-vibe-widget-avatar img {
  animation: tdVibeWidgetFloat 4.6s ease-in-out infinite;
  bottom: -88px;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.32));
  height: 168px;
  left: 50%;
  max-width: none;
  position: absolute;
  transform: translateX(-50%) translateY(2px) rotate(-1deg);
  transform-origin: 40% 52%;
  width: auto;
}

.td-vibe-widget-status {
  background: #80dd32;
  border: 3px solid #0c1122;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(128, 221, 50, 0.16);
  height: 16px;
  position: absolute;
  right: 9px;
  top: 9px;
  width: 16px;
  z-index: 2;
}

.td-vibe-widget-label {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  bottom: -9px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  padding: 6px 10px;
  position: absolute;
  text-transform: uppercase;
  z-index: 3;
}

.td-vibe-widget-panel {
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
  backdrop-filter: blur(20px) saturate(1.18);
  background:
    radial-gradient(circle at 100% 0, rgba(0, 184, 217, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 26px;
  bottom: 112px;
  box-shadow: 0 30px 80px rgba(8, 13, 27, 0.18);
  color: #0c1122;
  opacity: 0;
  overflow: hidden;
  padding: 20px;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translate3d(0, 14px, 0) scale(0.96);
  transform-origin: 100% 100%;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  width: min(330px, calc(100vw - 28px));
}

.td-vibe-widget-panel::before {
  background: linear-gradient(90deg, #155eef, #00b8d9, #80dd32);
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.td-vibe-widget.is-open .td-vibe-widget-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.td-vibe-widget-kicker {
  color: #155eef;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  margin: 8px 0 10px;
  text-transform: uppercase;
}

.td-vibe-widget-panel strong {
  color: #0c1122;
  display: block;
  font-size: 21px;
  font-weight: 980;
  line-height: 1.08;
  margin: 0;
}

.td-vibe-widget-panel p:not(.td-vibe-widget-kicker) {
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.48;
  margin: 10px 0 16px;
}

.td-vibe-widget-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.td-vibe-widget-actions a {
  align-items: center;
  background: #eef4ff;
  border: 1px solid rgba(21, 94, 239, 0.14);
  border-radius: 999px;
  color: #155eef !important;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  min-height: 38px;
  padding: 0 13px;
  text-decoration: none !important;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.td-vibe-widget-actions a:first-child {
  background: #0c1122;
  border-color: #0c1122;
  color: #ffffff !important;
}

.td-vibe-widget-actions a:hover,
.td-vibe-widget-actions a:focus {
  background: #155eef;
  border-color: #155eef;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.td-vibe-widget.is-waving .td-vibe-widget-avatar img {
  animation: tdVibeWidgetWave 1500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tdVibeWidgetAura {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes tdVibeWidgetFloat {
  0%, 100% { transform: translateX(-50%) translateY(3px) rotate(-1deg); }
  50% { transform: translateX(-50%) translateY(-3px) rotate(1deg); }
}

@keyframes tdVibeWidgetWave {
  0%, 100% { transform: translateX(-50%) translateY(2px) rotate(-1deg) scale(1); }
  18% { transform: translateX(-50%) translateY(-4px) rotate(-7deg) scale(1.03); }
  36% { transform: translateX(-50%) translateY(-2px) rotate(6deg) scale(1.03); }
  54% { transform: translateX(-50%) translateY(-4px) rotate(-6deg) scale(1.03); }
  72% { transform: translateX(-50%) translateY(-1px) rotate(4deg) scale(1.02); }
}

@media (max-width: 640px) {
  .td-vibe-widget {
    bottom: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    right: 12px;
    right: calc(env(safe-area-inset-right, 0px) + 12px);
  }

  .td-vibe-widget-toggle {
    border-radius: 26px;
    height: 80px;
    width: 80px;
  }

  .td-vibe-widget-avatar {
    border-radius: 21px;
    height: 66px;
    inset: 7px;
    width: 66px;
  }

  .td-vibe-widget-avatar img {
    bottom: -78px;
    height: 148px;
  }

  .td-vibe-widget-label {
    display: none;
  }

  .td-vibe-widget-panel {
    border-radius: 22px;
    bottom: 96px;
    padding: 18px;
    width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .td-vibe-widget-toggle::before,
  .td-vibe-widget-avatar img,
  .td-vibe-widget.is-waving .td-vibe-widget-avatar img {
    animation: none !important;
  }
}

/* =========================================================
   Pain finder final composition
   ========================================================= */

body .td-pain-finder {
  background:
    radial-gradient(circle at 8% 18%, rgba(21, 94, 239, 0.12), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(0, 184, 217, 0.12), transparent 26%),
    #f3f7fc;
  padding-bottom: clamp(44px, 6vw, 96px) !important;
  padding-top: clamp(38px, 6vw, 86px) !important;
}

body .td-pain-shell {
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: clamp(16px, 2vw, 30px);
  grid-template-columns: minmax(520px, 0.52fr) minmax(0, 1fr);
  overflow: visible;
  padding: 0 clamp(18px, 3vw, 56px) !important;
}

body .td-pain-intro {
  background:
    radial-gradient(circle at 0 0, rgba(21, 94, 239, 0.32), transparent 36%),
    radial-gradient(circle at 100% 10%, rgba(0, 184, 217, 0.22), transparent 32%),
    linear-gradient(145deg, #0c1122, #13233b);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: clamp(24px, 3vw, 36px);
  box-shadow: 0 32px 86px rgba(12, 17, 34, 0.2);
  min-width: 0;
  overflow: hidden;
  padding: clamp(28px, 3vw, 48px);
  position: sticky;
  top: 102px;
}

body .td-pain-intro::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  opacity: 0.58;
  pointer-events: none;
  position: absolute;
}

body .td-pain-intro > * {
  position: relative;
  z-index: 1;
}

body .td-pain-intro .td-home-kicker {
  color: #7dd3fc;
}

body .td-pain-intro h2 {
  color: #ffffff;
  font-size: clamp(36px, 3vw, 46px);
  line-height: 1.02;
  margin: 18px 0;
  max-width: 540px;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

body .td-pain-intro p:not(.td-home-kicker) {
  color: rgba(226, 232, 240, 0.82);
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 650;
  line-height: 1.52;
  max-width: 520px;
}

body .td-pain-filters {
  display: none !important;
}

.td-pain-note {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
}

.td-pain-note span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: rgba(226, 232, 240, 0.9);
  display: flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  min-height: 58px;
  padding: 12px;
  text-transform: uppercase;
}

body .td-pain-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  min-width: 0;
}

body .td-pain-card {
  --td-pain-accent: #155eef;
  align-content: start;
  background:
    radial-gradient(circle at 100% 0, rgba(21, 94, 239, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  border-color: rgba(148, 163, 184, 0.26);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(12, 17, 34, 0.055);
  gap: 11px;
  min-height: 194px;
  padding: clamp(18px, 1.75vw, 24px);
  transform: translateZ(0);
}

body .td-pain-card:nth-child(2) { --td-pain-accent: #00a7c4; }
body .td-pain-card:nth-child(3) { --td-pain-accent: #80bd2d; }
body .td-pain-card:nth-child(4) { --td-pain-accent: #4f46e5; }
body .td-pain-card:nth-child(5) { --td-pain-accent: #0f766e; }
body .td-pain-card:nth-child(6) { --td-pain-accent: #f97316; }

body .td-pain-card::before {
  background: linear-gradient(180deg, var(--td-pain-accent), rgba(0, 184, 217, 0.42));
  border-radius: 999px;
  content: "";
  inset: 20px auto 20px 0;
  position: absolute;
  width: 5px;
}

body .td-pain-card::after {
  background: radial-gradient(circle, var(--td-pain-accent), transparent 62%);
  content: "";
  height: 160px;
  opacity: 0.08;
  position: absolute;
  right: -48px;
  top: -52px;
  width: 160px;
}

body .td-pain-card:hover,
body .td-pain-card:focus {
  border-color: var(--td-pain-accent);
  box-shadow: 0 28px 76px rgba(12, 17, 34, 0.12);
}

body .td-pain-number {
  color: var(--td-pain-accent);
  font-size: clamp(34px, 2.6vw, 46px);
  opacity: 0.16;
  right: 18px;
  top: 16px;
  z-index: 1;
}

body .td-pain-role {
  color: var(--td-pain-accent);
  display: block;
  font-size: 11px;
  letter-spacing: 0.02em;
  max-width: calc(100% - 88px);
  min-height: 16px;
  position: relative;
  z-index: 2;
}

body .td-pain-card strong {
  color: #0c1122;
  font-size: clamp(21px, 1.55vw, 27px);
  line-height: 1.06;
  max-width: none;
  min-width: 0;
  padding-right: clamp(36px, 4vw, 64px);
  position: relative;
  text-wrap: balance;
  z-index: 2;
}

body .td-pain-card em {
  color: #5d6b82;
  font-size: clamp(14px, 1vw, 15px);
  line-height: 1.42;
  max-width: 94%;
  position: relative;
  z-index: 2;
}

body .td-pain-card small {
  background: #eef4ff;
  color: #0c1122;
  font-size: 12px;
  min-height: 34px;
  padding: 9px 12px;
  position: relative;
  z-index: 2;
}

body .td-pain-card:hover small,
body .td-pain-card:focus small {
  background: var(--td-pain-accent);
  color: #ffffff;
}

@media (max-width: 1180px) {
  body .td-pain-shell {
    grid-template-columns: 1fr;
  }

  body .td-pain-intro {
    position: relative;
    top: auto;
  }

  body .td-pain-intro h2 {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  body .td-pain-finder {
    padding-bottom: 36px !important;
    padding-top: 28px !important;
  }

  body .td-pain-shell {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body .td-pain-intro {
    border-radius: 24px;
    padding: 24px;
  }

  body .td-pain-intro h2 {
    font-size: clamp(32px, 9.4vw, 40px);
    max-width: none;
  }

  .td-pain-note {
    grid-template-columns: 1fr;
  }

  body .td-pain-grid {
    grid-template-columns: 1fr;
  }

  body .td-pain-card {
    border-radius: 22px;
    min-height: 0;
  }

  body .td-pain-card strong {
    font-size: 24px;
    padding-right: 56px;
  }
}

/* =========================================================
   Home articles header final layout
   ========================================================= */

body .td-home-articles {
  background:
    radial-gradient(circle at 92% 0, rgba(21, 94, 239, 0.09), transparent 30%),
    radial-gradient(circle at 8% 18%, rgba(0, 184, 217, 0.08), transparent 26%),
    #f3f7fc;
  padding-bottom: clamp(44px, 7vw, 112px) !important;
  padding-top: clamp(42px, 6vw, 92px) !important;
}

body .td-home-section-head {
  align-items: end;
  box-sizing: border-box;
  display: grid;
  gap: clamp(22px, 4vw, 72px);
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.9fr);
  margin: 0 0 clamp(24px, 4vw, 52px) !important;
  max-width: none !important;
  min-width: 0;
  padding: 0 clamp(18px, 3vw, 56px);
  width: 100% !important;
}

body .td-home-section-copy {
  align-content: end;
  display: grid;
  gap: 20px;
  max-width: 560px;
  min-width: 0;
}

body .td-home-section-head .td-home-kicker {
  margin: 0;
}

body .td-home-section-head p:not(.td-home-kicker) {
  color: #66758c;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 720;
  line-height: 1.42;
  margin: 0;
  max-width: 560px;
}

body .td-home-section-head h2 {
  color: #0c1122;
  font-size: clamp(46px, 5.2vw, 96px);
  line-height: 0.96;
  margin: 0;
  max-width: 900px;
  min-width: 0;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

body .td-home-articles-layout {
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  padding: 0 clamp(18px, 3vw, 56px);
  width: 100% !important;
}

@media (max-width: 1180px) {
  body .td-home-section-head {
    align-items: start;
    grid-template-columns: 1fr;
  }

  body .td-home-section-head h2 {
    max-width: 980px;
  }
}

@media (max-width: 760px) {
  body .td-home-articles {
    padding-top: 36px !important;
  }

  body .td-home-section-head,
  body .td-home-articles-layout {
    padding-left: 12px;
    padding-right: 12px;
  }

  body .td-home-section-head {
    gap: 16px;
  }

  body .td-home-section-head h2 {
    font-size: clamp(34px, 10.5vw, 48px);
    line-height: 1;
  }

  body .td-home-section-copy {
    gap: 12px;
  }

body .td-home-section-head p:not(.td-home-kicker) {
    font-size: 16px;
  }
}

/* =========================================================
   Home heading rhythm final
   ========================================================= */

body .td-home-v3 {
  --td-home-page-x: clamp(18px, 3vw, 56px);
  --td-home-section-title: clamp(36px, 3.15vw, 56px);
  --td-home-section-copy: clamp(16px, 1.15vw, 19px);
}

body .td-home-section-head {
  align-items: end;
  gap: clamp(18px, 3vw, 52px);
  grid-template-columns: minmax(0, 0.76fr) minmax(300px, 0.36fr);
  margin-bottom: clamp(24px, 4vw, 52px) !important;
  padding-left: var(--td-home-page-x);
  padding-right: var(--td-home-page-x);
}

body .td-pain-section-head {
  margin-bottom: clamp(20px, 3vw, 36px) !important;
}

body .td-home-section-copy {
  gap: 14px;
  max-width: 930px;
}

body .td-home-section-head h2,
body .td-pain-intro h2,
body .td-home-final h2 {
  font-size: var(--td-home-section-title);
  line-height: 1;
  margin: 0;
  max-width: 930px;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

body .td-pain-intro h2 {
  margin-top: 16px;
  max-width: 620px;
}

body .td-pain-intro-title {
  color: #ffffff;
  display: block;
  font-size: clamp(30px, 2.45vw, 42px);
  font-weight: 980;
  letter-spacing: 0;
  line-height: 1.02;
  margin-top: 16px;
  max-width: 520px;
  text-wrap: balance;
}

body .td-home-section-lead,
body .td-home-section-head p:not(.td-home-kicker),
body .td-pain-intro p:not(.td-home-kicker),
body .td-home-final p {
  font-size: var(--td-home-section-copy);
}

body .td-home-section-lead {
  justify-self: end;
  max-width: 470px;
}

body .td-home-final {
  gap: clamp(18px, 3vw, 52px);
  grid-template-columns: minmax(0, 0.76fr) minmax(210px, auto);
  padding-left: var(--td-home-page-x) !important;
  padding-right: var(--td-home-page-x) !important;
}

body .td-home-final > div {
  max-width: 930px;
}

body .td-home-final h2 {
  margin-top: 14px;
}

body .td-home-final p {
  margin-top: 16px;
  max-width: 760px;
}

@media (max-width: 1180px) {
  body .td-home-section-head,
  body .td-home-final {
    align-items: start;
    grid-template-columns: 1fr;
  }

  body .td-home-section-lead {
    justify-self: start;
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  body .td-home-v3 {
    --td-home-page-x: 12px;
    --td-home-section-title: clamp(32px, 9vw, 40px);
    --td-home-section-copy: 16px;
  }

  body .td-home-section-head h2,
  body .td-pain-intro h2,
  body .td-home-final h2 {
    line-height: 1.03;
  }

  body .td-pain-intro h2 {
    margin-top: 14px;
  }
}

/* =========================================================
   Home final offers
   ========================================================= */

body .td-home-offers {
  background:
    radial-gradient(circle at 8% 0, rgba(21, 94, 239, 0.13), transparent 28%),
    radial-gradient(circle at 92% 20%, rgba(128, 221, 50, 0.14), transparent 28%),
    linear-gradient(180deg, #f3f7fc, #eef5ff);
  padding: clamp(42px, 7vw, 112px) 0 clamp(48px, 7vw, 118px) !important;
  position: relative;
}

body .td-home-offers::before {
  background:
    linear-gradient(rgba(12, 17, 34, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 17, 34, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  inset: 0;
  opacity: 0.42;
  pointer-events: none;
  position: absolute;
}

body .td-home-offers > * {
  position: relative;
  z-index: 1;
}

body .td-home-offers-head {
  margin-bottom: clamp(22px, 4vw, 48px) !important;
}

body .td-home-offers-grid {
  box-sizing: border-box;
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 var(--td-home-page-x);
  width: 100%;
}

body .td-home-offer {
  background:
    radial-gradient(circle at 100% 0, rgba(0, 184, 217, 0.18), transparent 34%),
    linear-gradient(145deg, #ffffff, #f8fbff);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: clamp(26px, 2.4vw, 36px);
  box-shadow: 0 28px 86px rgba(12, 17, 34, 0.08);
  color: #0c1122 !important;
  display: grid;
  gap: clamp(14px, 1.6vw, 22px);
  min-height: clamp(300px, 24vw, 420px);
  overflow: hidden;
  padding: clamp(24px, 3vw, 46px);
  position: relative;
  text-decoration: none !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body .td-home-offer::before {
  background:
    linear-gradient(90deg, var(--td-offer-accent), rgba(0, 184, 217, 0.72), #80dd32);
  content: "";
  height: 7px;
  inset: 0 0 auto;
  position: absolute;
}

body .td-home-offer::after {
  background: radial-gradient(circle, var(--td-offer-accent), transparent 62%);
  content: "";
  height: 220px;
  opacity: 0.12;
  position: absolute;
  right: -70px;
  top: -80px;
  width: 220px;
}

body .td-home-offer--diagnostic {
  --td-offer-accent: #155eef;
}

body .td-home-offer--architecture {
  --td-offer-accent: #00a7c4;
  background:
    radial-gradient(circle at 100% 0, rgba(128, 221, 50, 0.18), transparent 34%),
    linear-gradient(145deg, #0c1122, #13233b);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
}

body .td-home-offer > * {
  position: relative;
  z-index: 1;
}

body .td-home-offer-label {
  align-items: center;
  color: var(--td-offer-accent);
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  gap: 8px;
  text-transform: uppercase;
}

body .td-home-offer-label::before {
  background: var(--td-offer-accent);
  border-radius: 999px;
  content: "";
  height: 9px;
  width: 9px;
}

body .td-home-offer--architecture .td-home-offer-label {
  color: #7dd3fc;
}

body .td-home-offer strong {
  display: block;
  font-size: clamp(30px, 3.1vw, 56px);
  font-weight: 980;
  letter-spacing: 0;
  line-height: 1;
  max-width: 780px;
  text-wrap: balance;
}

body .td-home-offer em {
  color: #64748b;
  display: block;
  font-size: clamp(16px, 1.25vw, 20px);
  font-style: normal;
  font-weight: 650;
  line-height: 1.44;
  max-width: 720px;
}

body .td-home-offer--architecture em {
  color: rgba(226, 232, 240, 0.78);
}

body .td-home-offer-action {
  align-self: end;
  background: #0c1122;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 950;
  justify-self: start;
  min-height: 48px;
  padding: 0 18px;
  place-items: center;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

body .td-home-offer--architecture .td-home-offer-action {
  background: #80dd32;
  color: #07111f;
}

body .td-home-offer:hover,
body .td-home-offer:focus {
  border-color: var(--td-offer-accent);
  box-shadow: 0 34px 96px rgba(12, 17, 34, 0.15);
  transform: translateY(-5px);
}

body .td-home-offer:hover .td-home-offer-action,
body .td-home-offer:focus .td-home-offer-action {
  transform: translateY(-2px);
}

@media (max-width: 920px) {
  body .td-home-offers-grid {
    grid-template-columns: 1fr;
  }

  body .td-home-offer {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  body .td-home-offers {
    padding-bottom: 42px !important;
    padding-top: 36px !important;
  }

  body .td-home-offer {
    border-radius: 24px;
    padding: 24px;
  }

  body .td-home-offer strong {
    font-size: clamp(28px, 8vw, 36px);
  }
}

/* =========================================================
   Hero slider animated backgrounds
   ========================================================= */

body .td-home-slider {
  background: #07111f;
}

body .td-home-slider::before {
  opacity: 0.26;
  z-index: 0;
}

body .td-home-slider::after {
  background:
    radial-gradient(circle at var(--td-pointer-x, 62%) var(--td-pointer-y, 36%), rgba(255, 255, 255, 0.18), transparent 22%);
  opacity: 0.72;
  z-index: 2;
}

body .td-home-slider-track {
  z-index: 1;
}

body .td-home-slide {
  isolation: isolate;
  overflow: hidden;
}

body .td-home-slide::before,
body .td-home-slide::after {
  content: "";
  inset: -18%;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

body .td-home-slide::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px);
  background-size: 54px 54px, 54px 54px, 92px 92px;
  opacity: 0.68;
}

body .td-home-slide::after {
  mix-blend-mode: screen;
  opacity: 0.74;
}

body .td-home-slide > * {
  position: relative;
  z-index: 2;
}

body .td-home-slide:nth-child(1) {
  background:
    radial-gradient(circle at 12% 22%, rgba(21, 94, 239, 0.48), transparent 30%),
    radial-gradient(circle at 74% 24%, rgba(0, 184, 217, 0.22), transparent 26%),
    radial-gradient(circle at 86% 88%, rgba(128, 221, 50, 0.16), transparent 24%),
    linear-gradient(135deg, #071025 0%, #0b1831 48%, #0b2b36 100%);
}

body .td-home-slide:nth-child(1)::before {
  animation: tdHeroGridDrift 18s linear infinite;
}

body .td-home-slide:nth-child(1)::after {
  background:
    radial-gradient(circle at var(--td-pointer-x, 62%) var(--td-pointer-y, 34%), rgba(0, 184, 217, 0.24), transparent 20%),
    conic-gradient(from 148deg at 76% 44%, transparent 0deg, rgba(21, 94, 239, 0.28) 56deg, transparent 118deg),
    repeating-linear-gradient(118deg, transparent 0 42px, rgba(128, 221, 50, 0.1) 43px 45px, transparent 46px 116px);
  animation: tdHeroAuroraOne 10s ease-in-out infinite alternate;
}

body .td-home-slide:nth-child(2) {
  background:
    radial-gradient(circle at 68% 34%, rgba(128, 221, 50, 0.2), transparent 28%),
    radial-gradient(circle at 22% 18%, rgba(0, 184, 217, 0.34), transparent 28%),
    radial-gradient(circle at 82% 84%, rgba(21, 94, 239, 0.28), transparent 26%),
    linear-gradient(132deg, #08101f 0%, #10253a 48%, #121a38 100%);
}

body .td-home-slide:nth-child(2)::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.052) 1px, transparent 1px),
    radial-gradient(circle at 18% 28%, rgba(128, 221, 50, 0.54) 0 3px, transparent 4px),
    radial-gradient(circle at 46% 62%, rgba(0, 184, 217, 0.5) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 36%, rgba(21, 94, 239, 0.56) 0 3px, transparent 4px);
  background-size: 46px 46px, 46px 46px, 280px 220px, 340px 260px, 300px 240px;
  animation: tdHeroDataFlow 16s linear infinite;
  opacity: 0.74;
}

body .td-home-slide:nth-child(2)::after {
  background:
    radial-gradient(circle at var(--td-pointer-x, 58%) var(--td-pointer-y, 36%), rgba(128, 221, 50, 0.18), transparent 20%),
    repeating-linear-gradient(90deg, transparent 0 72px, rgba(0, 184, 217, 0.12) 73px 75px, transparent 76px 150px),
    linear-gradient(115deg, transparent 12%, rgba(0, 184, 217, 0.18) 34%, transparent 56%);
  animation: tdHeroScan 9s ease-in-out infinite alternate;
}

body .td-home-slide:nth-child(3) {
  background:
    radial-gradient(circle at 74% 42%, rgba(0, 184, 217, 0.28), transparent 30%),
    radial-gradient(circle at 18% 78%, rgba(128, 221, 50, 0.2), transparent 24%),
    radial-gradient(circle at 22% 18%, rgba(21, 94, 239, 0.4), transparent 30%),
    linear-gradient(135deg, #080d1c 0%, #101a33 52%, #082d34 100%);
}

body .td-home-slide:nth-child(3)::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.048) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.048) 1px, transparent 1px),
    radial-gradient(circle at 72% 46%, transparent 0 78px, rgba(0, 184, 217, 0.2) 80px 82px, transparent 84px 154px, rgba(128, 221, 50, 0.14) 156px 158px, transparent 160px);
  background-size: 50px 50px, 50px 50px, 720px 720px;
  animation: tdHeroOrbitGrid 22s linear infinite;
}

body .td-home-slide:nth-child(3)::after {
  background:
    radial-gradient(circle at var(--td-pointer-x, 62%) var(--td-pointer-y, 38%), rgba(0, 184, 217, 0.18), transparent 21%),
    conic-gradient(from 0deg at 72% 48%, transparent 0deg, rgba(128, 221, 50, 0.22) 48deg, transparent 104deg, rgba(0, 184, 217, 0.18) 176deg, transparent 238deg),
    radial-gradient(circle at 72% 48%, rgba(255, 255, 255, 0.12), transparent 7%);
  animation: tdHeroOrbitPulse 13s ease-in-out infinite;
}

body .td-home-slide-visual {
  box-shadow:
    0 34px 84px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

@keyframes tdHeroGridDrift {
  0% {
    background-position: 0 0, 0 0, 0 0;
    transform: translate3d(0, 0, 0);
  }
  100% {
    background-position: 108px 54px, 54px 108px, 184px 92px;
    transform: translate3d(-2%, 1%, 0);
  }
}

@keyframes tdHeroAuroraOne {
  0% {
    transform: translate3d(-1%, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, -2%, 0) scale(1.04);
  }
}

@keyframes tdHeroDataFlow {
  0% {
    background-position: 0 0, 0 0, 0 0, 80px 30px, 140px 60px;
  }
  100% {
    background-position: 92px 46px, 46px 92px, 280px 220px, 420px 290px, 440px 300px;
  }
}

@keyframes tdHeroScan {
  0% {
    transform: translateX(-2%) skewX(-4deg);
  }
  100% {
    transform: translateX(3%) skewX(-4deg);
  }
}

@keyframes tdHeroOrbitGrid {
  0% {
    background-position: 0 0, 0 0, 50% 50%;
    transform: rotate(0deg) scale(1);
  }
  100% {
    background-position: 100px 50px, 50px 100px, 50% 50%;
    transform: rotate(8deg) scale(1.03);
  }
}

@keyframes tdHeroOrbitPulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(1);
  }
  50% {
    opacity: 0.86;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  body .td-home-slide::before,
  body .td-home-slide::after {
    animation: none !important;
  }
}

/* =========================================================
   Hero slider clean background
   ========================================================= */

body .td-home-slider {
  background: #111827;
  border-radius: clamp(24px, 3vw, 44px) !important;
}

body .td-home-slider::before,
body .td-home-slider::after,
body .td-home-slide::before,
body .td-home-slide::after {
  animation: none !important;
  background: transparent !important;
  opacity: 0 !important;
}

body .td-home-slide:nth-child(1) {
  background: linear-gradient(135deg, #10243f 0%, #173d4a 58%, #22394a 100%);
}

body .td-home-slide:nth-child(2) {
  background: linear-gradient(132deg, #15333d 0%, #244845 54%, #394c39 100%);
}

body .td-home-slide:nth-child(3) {
  background: linear-gradient(135deg, #222842 0%, #37415b 55%, #253f4a 100%);
}

body .td-home-slide-copy,
body .td-home-slide-visual,
body .td-home-slide-metrics {
  z-index: 3;
}

body .td-home-slide-visual {
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 32px 88px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.single-post .td-single-header .td-single-hero-shell,
body.wp-singular .td-single-header .td-single-hero-shell {
  border-radius: clamp(22px, 3vw, 36px) !important;
}

/* =========================================================
   Home articles rebuild
   ========================================================= */

body .td-home-articles {
  background:
    radial-gradient(circle at 7% 8%, rgba(21, 94, 239, 0.13), transparent 28%),
    radial-gradient(circle at 96% 18%, rgba(0, 184, 217, 0.12), transparent 30%),
    linear-gradient(180deg, #f5f8fd 0%, #eef5ff 100%);
  overflow: hidden;
  position: relative;
}

body .td-home-articles::before {
  background:
    linear-gradient(rgba(12, 17, 34, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 17, 34, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  opacity: 0.46;
  pointer-events: none;
  position: absolute;
}

body .td-home-articles > * {
  position: relative;
  z-index: 1;
}

body .td-home-articles-layout {
  display: grid !important;
  gap: 18px;
  grid-auto-flow: dense;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding-left: var(--td-home-page-x) !important;
  padding-right: var(--td-home-page-x) !important;
}

body .td-home-article {
  --td-article-accent: #155eef;
  background:
    radial-gradient(circle at 100% 0, rgba(21, 94, 239, 0.09), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 30px;
  box-shadow: 0 22px 64px rgba(12, 17, 34, 0.07);
  color: #0c1122 !important;
  display: grid;
  grid-column: span 3;
  grid-template-rows: auto 1fr;
  isolation: isolate;
  min-height: 430px;
  min-width: 0;
  overflow: hidden;
  position: relative;
  text-decoration: none !important;
  transform: translateZ(0);
  transition: border-color 180ms ease, box-shadow 220ms ease, transform 220ms ease;
}

body .td-home-article:nth-child(3n + 2) {
  --td-article-accent: #00a7c4;
}

body .td-home-article:nth-child(3n) {
  --td-article-accent: #80bd32;
}

body .td-home-article::after {
  background: linear-gradient(115deg, transparent 0 32%, rgba(255, 255, 255, 0.48) 45%, transparent 58%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-48%);
  transition: opacity 220ms ease, transform 760ms ease;
  z-index: 4;
}

body .td-home-article:hover,
body .td-home-article:focus {
  border-color: color-mix(in srgb, var(--td-article-accent) 42%, rgba(148, 163, 184, 0.34));
  box-shadow: 0 32px 92px rgba(12, 17, 34, 0.14);
  transform: translateY(-7px);
}

body .td-home-article:hover::after,
body .td-home-article:focus::after {
  opacity: 1;
  transform: translateX(46%);
}

body .td-home-article--lead {
  background:
    radial-gradient(circle at 12% 0, rgba(21, 94, 239, 0.24), transparent 34%),
    radial-gradient(circle at 100% 18%, rgba(0, 184, 217, 0.18), transparent 32%),
    linear-gradient(145deg, #0c1122, #14233a 62%, #0f2f39);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  grid-column: span 6;
  grid-row: span 2;
  min-height: 650px;
}

body .td-home-article--spotlight {
  grid-column: span 3;
  min-height: 440px;
}

body .td-home-article--tile {
  grid-column: span 3;
}

body .td-home-article-media {
  aspect-ratio: 16 / 8.8;
  background: #dbeafe;
  display: block;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

body .td-home-article--lead .td-home-article-media {
  aspect-ratio: 16 / 8.4;
  min-height: 330px;
}

body .td-home-article-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: filter 360ms ease, transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

body .td-home-article:hover .td-home-article-media img,
body .td-home-article:focus .td-home-article-media img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.055);
}

body .td-home-article-line {
  background: linear-gradient(90deg, #155eef, #00b8d9, #80dd32);
  height: 6px;
  inset: 0 0 auto;
  position: absolute;
  z-index: 2;
}

body .td-home-article-placeholder {
  align-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 184, 217, 0.24), transparent 30%),
    linear-gradient(145deg, #0c1122, #17334a);
  color: #ffffff;
  display: flex;
  font-size: 34px;
  font-weight: 980;
  height: 100%;
  justify-content: center;
  width: 100%;
}

body .td-home-article-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 24px;
}

body .td-home-article--lead .td-home-article-body {
  gap: 18px;
  padding: 32px;
}

body .td-home-article-top {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

body .td-home-article-category,
body .td-home-article-top time {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  min-height: 30px;
  padding: 0 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

body .td-home-article-category {
  background: rgba(21, 94, 239, 0.1);
  color: #155eef;
  max-width: min(260px, 64%);
  overflow: hidden;
  text-overflow: ellipsis;
}

body .td-home-article-top time {
  background: rgba(100, 116, 139, 0.08);
  color: #64748b;
  flex: 0 0 auto;
}

body .td-home-article--lead .td-home-article-category {
  background: rgba(125, 211, 252, 0.14);
  color: #7dd3fc;
}

body .td-home-article--lead .td-home-article-top time {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(226, 232, 240, 0.78);
}

body .td-home-article strong {
  color: inherit;
  display: -webkit-box;
  font-size: 25px;
  font-weight: 980;
  letter-spacing: 0;
  line-height: 1.05;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body .td-home-article--lead strong {
  font-size: 42px;
  line-height: 0.98;
  max-width: 760px;
  -webkit-line-clamp: 4;
}

body .td-home-article em {
  color: #64748b;
  display: -webkit-box;
  font-size: 15px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.44;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body .td-home-article--lead em {
  color: rgba(226, 232, 240, 0.76);
  font-size: 17px;
  max-width: 680px;
  -webkit-line-clamp: 3;
}

body .td-home-article-foot {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: auto;
  min-width: 0;
}

body .td-home-article-stats {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

body .td-home-article-stats span::before {
  content: none;
}

body .td-home-article-stats span {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
  padding: 0;
}

body .td-home-article-stats > .td-home-article-stat {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #344054;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  line-height: 1;
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

body .td-home-article--lead .td-home-article-stats > .td-home-article-stat {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.56);
  color: #1f2937;
}

body .td-home-article-stat-icon {
  box-sizing: border-box;
  color: currentColor;
  display: inline-block;
  flex: 0 0 auto;
  height: 15px;
  position: relative;
  width: 15px;
}

body .td-home-article-stat--like .td-home-article-stat-icon::before {
  border: 2px solid currentColor;
  border-radius: 4px;
  box-sizing: border-box;
  content: "";
  height: 10px;
  left: 2px;
  position: absolute;
  top: 2px;
  transform: rotate(45deg);
  width: 10px;
}

body .td-home-article-stat--view .td-home-article-stat-icon::before {
  border: 2px solid currentColor;
  border-radius: 999px / 72%;
  box-sizing: border-box;
  content: "";
  height: 10px;
  left: 1px;
  position: absolute;
  top: 3px;
  width: 13px;
}

body .td-home-article-stat--view .td-home-article-stat-icon::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 5.5px;
  position: absolute;
  top: 6px;
  width: 4px;
}

body .td-home-article-stat--time .td-home-article-stat-icon::before {
  border: 2px solid currentColor;
  border-radius: 999px;
  box-sizing: border-box;
  content: "";
  height: 13px;
  left: 1px;
  position: absolute;
  top: 1px;
  width: 13px;
}

body .td-home-article-stat--time .td-home-article-stat-icon::after {
  background:
    linear-gradient(currentColor, currentColor) 6px 3px / 2px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 6px 7px / 4px 2px no-repeat;
  content: "";
  inset: 0;
  position: absolute;
}

body .td-home-article-stat--comment .td-home-article-stat-icon::before {
  border: 2px solid currentColor;
  border-radius: 5px;
  box-sizing: border-box;
  content: "";
  height: 12px;
  left: 1px;
  position: absolute;
  top: 1px;
  width: 13px;
}

body .td-home-article-stat--comment .td-home-article-stat-icon::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  bottom: 0;
  box-sizing: border-box;
  content: "";
  height: 5px;
  left: 5px;
  position: absolute;
  transform: skew(-22deg);
  width: 5px;
}

body .td-home-article-read {
  align-items: center;
  background: #0c1122;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 950;
  gap: 8px;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

body .td-home-article-read::after {
  content: ">";
}

body .td-home-article--lead .td-home-article-read {
  background: #80dd32;
  color: #07111f;
}

body .td-home-article:hover .td-home-article-read,
body .td-home-article:focus .td-home-article-read {
  background: var(--td-article-accent);
  color: #ffffff;
  transform: translateX(2px);
}

body .td-home-article--lead:hover .td-home-article-read,
body .td-home-article--lead:focus .td-home-article-read {
  background: #ffffff;
  color: #07111f;
}

@media (max-width: 1280px) {
  body .td-home-articles-layout {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  body .td-home-article--lead {
    grid-column: span 6;
    min-height: 0;
  }

  body .td-home-article--spotlight,
  body .td-home-article--tile {
    grid-column: span 3;
  }

  body .td-home-article--lead strong {
    font-size: 38px;
  }
}

@media (max-width: 820px) {
  body .td-home-articles-layout {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  body .td-home-article,
  body .td-home-article--lead,
  body .td-home-article--spotlight,
  body .td-home-article--tile {
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
  }

  body .td-home-article,
  body .td-home-article--lead {
    border-radius: 24px;
  }

  body .td-home-article-media,
  body .td-home-article--lead .td-home-article-media {
    aspect-ratio: 16 / 9.2;
    min-height: 0;
  }

  body .td-home-article-body,
  body .td-home-article--lead .td-home-article-body {
    gap: 12px;
    padding: 20px;
  }

  body .td-home-article strong,
  body .td-home-article--lead strong {
    font-size: 25px;
    line-height: 1.06;
    -webkit-line-clamp: 3;
  }

  body .td-home-article em,
  body .td-home-article--lead em {
    font-size: 15px;
    -webkit-line-clamp: 2;
  }

  body .td-home-article-foot {
    align-items: stretch;
    flex-direction: column;
  }

  body .td-home-article-read {
    align-self: flex-start;
  }
}

@media (max-width: 460px) {
  body .td-home-article-top {
    align-items: flex-start;
    flex-direction: column;
  }

  body .td-home-article-category {
    max-width: 100%;
  }

  body .td-home-article-stat {
    font-size: 11px;
    min-height: 30px;
    padding-left: 9px;
    padding-right: 9px;
  }
}

/* Home article metrics: one-line row and clearer icons */
body .td-home-article-foot {
  align-items: center !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  justify-content: space-between;
}

body .td-home-article-stats {
  flex-wrap: nowrap !important;
  gap: 6px !important;
  overflow: hidden;
}

body .td-home-article-stats > .td-home-article-stat {
  flex: 0 0 auto;
  font-size: 12px;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
}

body .td-home-article-stat-icon {
  height: 15px;
  width: 15px;
}

body .td-home-article-stat-icon::after {
  content: none !important;
}

body .td-home-article-stat .td-home-article-stat-icon::before {
  background: currentColor;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  content: "" !important;
  height: 100% !important;
  inset: 0 !important;
  position: absolute;
  transform: none !important;
  width: 100% !important;
}

body .td-home-article-stat--like .td-home-article-stat-icon::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 21.1 10.7 20C5.9 15.7 3 13.1 3 9.8 3 7.1 5.1 5 7.8 5c1.5 0 3 .7 4 1.9C12.8 5.7 14.3 5 15.8 5 18.5 5 20.6 7.1 20.6 9.8c0 3.3-2.9 5.9-7.7 10.2L12 21.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 21.1 10.7 20C5.9 15.7 3 13.1 3 9.8 3 7.1 5.1 5 7.8 5c1.5 0 3 .7 4 1.9C12.8 5.7 14.3 5 15.8 5 18.5 5 20.6 7.1 20.6 9.8c0 3.3-2.9 5.9-7.7 10.2L12 21.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body .td-home-article-stat--view .td-home-article-stat-icon::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='white' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 12s3.4-6 9.2-6 9.2 6 9.2 6-3.4 6-9.2 6-9.2-6-9.2-6Z'/%3E%3Ccircle cx='12' cy='12' r='2.7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='white' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 12s3.4-6 9.2-6 9.2 6 9.2 6-3.4 6-9.2 6-9.2-6-9.2-6Z'/%3E%3Ccircle cx='12' cy='12' r='2.7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body .td-home-article-stat--time .td-home-article-stat-icon::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.4'/%3E%3Cpath d='M12 7.6v4.9l3.3 2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.4'/%3E%3Cpath d='M12 7.6v4.9l3.3 2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body .td-home-article-stat--comment .td-home-article-stat-icon::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M21.4 3.4 2.9 10.7c-1.1.4-1.1 1.9.1 2.2l4.6 1.4 1.8 5.6c.3 1 1.6 1.2 2.2.3l2.6-3.6 4.7 3.5c.9.7 2.1.2 2.3-.9l2.4-14.3c.2-1-.8-1.9-2.2-1.5ZM9.3 13.8l8.9-6.2-6.9 7.6-.3 3.2-1.7-4.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M21.4 3.4 2.9 10.7c-1.1.4-1.1 1.9.1 2.2l4.6 1.4 1.8 5.6c.3 1 1.6 1.2 2.2.3l2.6-3.6 4.7 3.5c.9.7 2.1.2 2.3-.9l2.4-14.3c.2-1-.8-1.9-2.2-1.5ZM9.3 13.8l8.9-6.2-6.9 7.6-.3 3.2-1.7-4.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 460px) {
  body .td-home-article-foot {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  body .td-home-article-stats {
    max-width: 100%;
  }
}

/* Article hero metrics: clearer icons and hover motion */
body.single-post .td-single-header .td-metric-icon,
body.wp-singular .td-single-header .td-metric-icon {
  height: 20px !important;
  overflow: visible;
  width: 20px !important;
}

body.single-post .td-single-header .td-metric-icon::before,
body.single-post .td-single-header .td-metric-icon::after,
body.wp-singular .td-single-header .td-metric-icon::before,
body.wp-singular .td-single-header .td-metric-icon::after {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  content: "" !important;
  inset: 0 !important;
  transform: none !important;
}

body.single-post .td-single-header .td-metric-icon::before,
body.wp-singular .td-single-header .td-metric-icon::before {
  background: currentColor;
  height: 100% !important;
  position: absolute;
  transition: transform 180ms ease, background 180ms ease;
  width: 100% !important;
}

body.single-post .td-single-header .td-metric-icon::after,
body.wp-singular .td-single-header .td-metric-icon::after {
  display: none !important;
}

body.single-post .td-single-header .td-icon-like::before,
body.wp-singular .td-single-header .td-icon-like::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 21.1 10.6 19.8C5.8 15.4 2.7 12.7 2.7 9.2 2.7 6.4 4.9 4.2 7.7 4.2c1.6 0 3.1.7 4.1 1.9 1-1.2 2.6-1.9 4.2-1.9 2.8 0 5 2.2 5 5 0 3.5-3.1 6.2-7.9 10.6L12 21.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 21.1 10.6 19.8C5.8 15.4 2.7 12.7 2.7 9.2 2.7 6.4 4.9 4.2 7.7 4.2c1.6 0 3.1.7 4.1 1.9 1-1.2 2.6-1.9 4.2-1.9 2.8 0 5 2.2 5 5 0 3.5-3.1 6.2-7.9 10.6L12 21.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.single-post .td-single-header .td-icon-view::before,
body.wp-singular .td-single-header .td-icon-view::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='white' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 12s3.4-6 9.2-6 9.2 6 9.2 6-3.4 6-9.2 6-9.2-6-9.2-6Z'/%3E%3Ccircle cx='12' cy='12' r='2.7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='white' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 12s3.4-6 9.2-6 9.2 6 9.2 6-3.4 6-9.2 6-9.2-6-9.2-6Z'/%3E%3Ccircle cx='12' cy='12' r='2.7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body.single-post .td-single-header .td-icon-time::before,
body.wp-singular .td-single-header .td-icon-time::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h10M7 20.5h10M8 3.5c0 4.6 2.1 5.9 4 8.5-1.9 2.6-4 3.9-4 8.5M16 3.5c0 4.6-2.1 5.9-4 8.5 1.9 2.6 4 3.9 4 8.5'/%3E%3Cpath d='M9.4 7.2h5.2M9.8 17.1h4.4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h10M7 20.5h10M8 3.5c0 4.6 2.1 5.9 4 8.5-1.9 2.6-4 3.9-4 8.5M16 3.5c0 4.6-2.1 5.9-4 8.5 1.9 2.6 4 3.9 4 8.5'/%3E%3Cpath d='M9.4 7.2h5.2M9.8 17.1h4.4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body.single-post .td-single-header .td-icon-comment::before,
body.wp-singular .td-single-header .td-icon-comment::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M6.2 4h11.6c2.1 0 3.7 1.6 3.7 3.6v6.2c0 2-1.6 3.6-3.7 3.6h-6.3l-4.7 3.5c-.7.5-1.7 0-1.7-.9v-2.7C3.6 16.3 2.5 14.9 2.5 13.2V7.6C2.5 5.6 4.1 4 6.2 4Zm0 2.2c-.8 0-1.5.6-1.5 1.4v5.6c0 .9.7 1.5 1.5 1.5h1.2v3.1l3.3-2.5h7.1c.8 0 1.5-.7 1.5-1.5V7.6c0-.8-.7-1.4-1.5-1.4H6.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M6.2 4h11.6c2.1 0 3.7 1.6 3.7 3.6v6.2c0 2-1.6 3.6-3.7 3.6h-6.3l-4.7 3.5c-.7.5-1.7 0-1.7-.9v-2.7C3.6 16.3 2.5 14.9 2.5 13.2V7.6C2.5 5.6 4.1 4 6.2 4Zm0 2.2c-.8 0-1.5.6-1.5 1.4v5.6c0 .9.7 1.5 1.5 1.5h1.2v3.1l3.3-2.5h7.1c.8 0 1.5-.7 1.5-1.5V7.6c0-.8-.7-1.4-1.5-1.4H6.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.single-post .td-single-header .td-like-button-large,
body.single-post .td-single-header .td-comments-link,
body.wp-singular .td-single-header .td-like-button-large,
body.wp-singular .td-single-header .td-comments-link {
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

body.single-post .td-single-header .td-like-button-large:hover,
body.single-post .td-single-header .td-like-button-large:focus,
body.wp-singular .td-single-header .td-like-button-large:hover,
body.wp-singular .td-single-header .td-like-button-large:focus {
  box-shadow: 0 16px 34px rgba(248, 113, 113, 0.2);
  color: #ef4444 !important;
  transform: translateY(-2px);
}

body.single-post .td-single-header .td-like-button-large:hover .td-icon-like,
body.single-post .td-single-header .td-like-button-large:focus .td-icon-like,
body.wp-singular .td-single-header .td-like-button-large:hover .td-icon-like,
body.wp-singular .td-single-header .td-like-button-large:focus .td-icon-like {
  animation: tdArticleHeartBeat 620ms ease;
}

body.single-post .td-single-header .td-like-button-large:hover .td-icon-like::before,
body.single-post .td-single-header .td-like-button-large:focus .td-icon-like::before,
body.wp-singular .td-single-header .td-like-button-large:hover .td-icon-like::before,
body.wp-singular .td-single-header .td-like-button-large:focus .td-icon-like::before {
  background: #ef4444;
}

body.single-post .td-single-header .td-like-button-large:hover strong,
body.single-post .td-single-header .td-like-button-large:focus strong,
body.wp-singular .td-single-header .td-like-button-large:hover strong,
body.wp-singular .td-single-header .td-like-button-large:focus strong {
  color: #ef4444 !important;
}

body.single-post .td-single-header .td-comments-link:hover,
body.single-post .td-single-header .td-comments-link:focus,
body.wp-singular .td-single-header .td-comments-link:hover,
body.wp-singular .td-single-header .td-comments-link:focus {
  background: #ffffff !important;
  box-shadow: 0 16px 34px rgba(6, 182, 212, 0.16);
  color: #06b6d4 !important;
  transform: translateY(-2px);
}

body.single-post .td-single-header .td-comments-link:hover .td-icon-comment,
body.single-post .td-single-header .td-comments-link:focus .td-icon-comment,
body.wp-singular .td-single-header .td-comments-link:hover .td-icon-comment,
body.wp-singular .td-single-header .td-comments-link:focus .td-icon-comment {
  animation: tdArticleCommentBounce 520ms ease;
}

body.single-post .td-single-header .td-comments-link:hover strong,
body.single-post .td-single-header .td-comments-link:focus strong,
body.wp-singular .td-single-header .td-comments-link:hover strong,
body.wp-singular .td-single-header .td-comments-link:focus strong {
  color: #06b6d4 !important;
}

@keyframes tdArticleHeartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.24) rotate(-5deg);
  }
  62% {
    transform: scale(0.96) rotate(3deg);
  }
}

@keyframes tdArticleCommentBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  42% {
    transform: translateY(-3px) rotate(-5deg);
  }
  72% {
    transform: translateY(1px) rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-post .td-single-header .td-like-button-large:hover .td-icon-like,
  body.single-post .td-single-header .td-comments-link:hover .td-icon-comment,
  body.wp-singular .td-single-header .td-like-button-large:hover .td-icon-like,
  body.wp-singular .td-single-header .td-comments-link:hover .td-icon-comment {
    animation: none !important;
  }
}

/* =========================================================
   About page: team section
   ========================================================= */

body .td-about-team {
  box-sizing: border-box;
  margin: clamp(28px, 5vw, 64px) auto 0 !important;
  max-width: 1200px !important;
  padding: 0 28px 32px;
  width: min(1200px, 100vw) !important;
}

body .td-about-team-head {
  display: grid;
  gap: 14px;
  margin: 0 0 clamp(28px, 4vw, 44px);
  max-width: 760px;
}

body .td-about-team-kicker {
  align-items: center;
  color: #155eef !important;
  display: inline-flex;
  font-size: 13px !important;
  font-weight: 950;
  gap: 10px;
  letter-spacing: 0.08em;
  margin: 0 !important;
  text-transform: uppercase;
}

body .td-about-team-kicker::before {
  background: linear-gradient(135deg, #155eef, #00b8d9 52%, #80dd32);
  border-radius: 999px;
  content: "";
  height: 10px;
  width: 10px;
}

body .td-about-team h2 {
  border-bottom: 0 !important;
  color: #0c1122 !important;
  font-size: clamp(36px, 5vw, 68px) !important;
  font-weight: 980;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0 !important;
  padding-bottom: 0 !important;
}

body .td-about-team-head p:not(.td-about-team-kicker) {
  color: #667085 !important;
  font-size: clamp(18px, 2vw, 22px) !important;
  font-weight: 750;
  line-height: 1.45;
  margin: 0 !important;
}

body .td-about-team-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body .td-about-team-card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(12, 17, 34, 0.08);
  margin: 0;
  overflow: hidden;
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body .td-about-team-card:hover {
  border-color: rgba(21, 94, 239, 0.28);
  box-shadow: 0 34px 90px rgba(21, 94, 239, 0.14);
  transform: translateY(-4px);
}

body .td-about-team-photo {
  aspect-ratio: 1;
  background: #0c1122;
  overflow: hidden;
}

body .td-about-team-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 420ms ease;
  width: 100%;
}

body .td-about-team-card:hover .td-about-team-photo img {
  transform: scale(1.055);
}

body .td-about-team-card h3 {
  color: #0c1122 !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 !important;
  padding: 22px 24px 26px;
}

@media (max-width: 900px) {
  body .td-about-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body .td-about-team {
    padding-left: 18px;
    padding-right: 18px;
  }

  body .td-about-team-grid {
    grid-template-columns: 1fr;
  }

  body .td-about-team-card {
    border-radius: 22px;
  }
}

/* =========================================================
   Archive, tags and search: home-style article cards
   ========================================================= */

body .td-archive-articles {
  box-sizing: border-box;
  margin: clamp(28px, 4vw, 56px) auto 0 !important;
  max-width: 1200px !important;
  padding: 0 28px clamp(46px, 6vw, 76px) !important;
  width: min(1200px, 100vw) !important;
}

body.archive .td-section-head,
body.search .td-section-head {
  box-sizing: border-box;
  align-items: flex-start !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  justify-items: start !important;
  margin: clamp(54px, 7vw, 96px) auto 0 !important;
  max-width: 1200px !important;
  padding: 0 28px !important;
  text-align: left !important;
  width: min(1200px, 100vw) !important;
}

body.archive .td-section-head h1,
body.search .td-section-head h1 {
  color: #0c1122 !important;
  font-size: clamp(42px, 5.6vw, 82px) !important;
  font-weight: 980;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 !important;
}

body .td-archive-articles::before {
  display: none;
}

body .td-archive-articles > * {
  position: relative;
  z-index: 1;
}

body .td-archive-empty {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(12, 17, 34, 0.08);
  color: #667085 !important;
  font-size: 20px;
  font-weight: 800;
  margin: 0 !important;
  padding: 34px;
}

body .td-archive-pagination {
  margin-top: clamp(28px, 4vw, 46px);
}

body .td-archive-pagination ul {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

body .td-archive-pagination li {
  margin: 0;
}

body .td-archive-pagination a,
body .td-archive-pagination span {
  align-items: center;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: #0c1122;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: 0 16px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

body .td-archive-pagination a:hover,
body .td-archive-pagination a:focus,
body .td-archive-pagination .current {
  background: #0c1122;
  border-color: #0c1122;
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  body.archive .td-section-head,
  body.search .td-section-head,
  body .td-archive-articles {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* =========================================================
   Corporate palette refresh
   ========================================================= */

:root {
  --td-corp-white: #ffffff;
  --td-corp-ink: #07303a;
  --td-corp-teal: #145c72;
  --td-corp-teal-soft: #5bb2bd;
  --td-corp-lime: #d9f000;
  --td-corp-bg: #f4fbfc;
  --td-corp-muted: #5d7580;
  --td-corp-line: rgba(20, 92, 114, 0.18);
  --td-corp-shadow: rgba(7, 48, 58, 0.16);
}

body {
  background:
    radial-gradient(circle at 9% 6%, rgba(91, 178, 189, 0.22), transparent 28%),
    linear-gradient(180deg, #f8fdfe 0%, var(--td-corp-bg) 42%, #edf7f8 100%) !important;
  color: var(--td-corp-ink) !important;
}

body a {
  color: var(--td-corp-teal);
}

body .td-site-header {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom-color: rgba(20, 92, 114, 0.16) !important;
  box-shadow: 0 14px 44px rgba(7, 48, 58, 0.08) !important;
}

body .td-nav a,
body .td-header-search input[type="search"] {
  color: var(--td-corp-ink) !important;
}

body .td-nav a:hover,
body .td-nav a:focus,
body .td-nav .current-menu-item > a,
body .td-nav .wp-block-navigation-item.current-menu-item > a,
body.category-crm .td-nav a[href*="/category/crm/"],
body.category-bitrix24 .td-nav a[href*="/category/bitrix24/"],
body.category-avtomatizatsiya .td-nav a[href*="/category/avtomatizatsiya/"],
body.category-upravlenie .td-nav a[href*="/category/upravlenie/"] {
  background: rgba(20, 92, 114, 0.1) !important;
  border-color: rgba(20, 92, 114, 0.24) !important;
  color: var(--td-corp-teal) !important;
}

body .td-header-search,
body .td-header-search .wp-block-search__inside-wrapper,
body .td-search-modal-field {
  background: #ffffff !important;
  border-color: rgba(20, 92, 114, 0.18) !important;
}

body .td-header-search button,
body .td-search-modal-close,
body .td-search-result:hover,
body .td-search-result:focus {
  background: var(--td-corp-ink) !important;
  border-color: var(--td-corp-ink) !important;
  color: #ffffff !important;
}

body .td-home-slider,
body.single-post .td-single-header .td-single-hero-shell,
body.wp-singular .td-single-header .td-single-hero-shell {
  background:
    radial-gradient(circle at 84% 16%, rgba(91, 178, 189, 0.28), transparent 28%),
    linear-gradient(135deg, #07303a 0%, #0b3f4b 48%, #145c72 100%) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 42px 120px rgba(7, 48, 58, 0.25) !important;
}

body .td-home-slider::before,
body.single-post .td-single-header .td-single-hero-shell::before,
body.wp-singular .td-single-header .td-single-hero-shell::before {
  opacity: 0.38 !important;
}

body .td-home-slider::after {
  background:
    radial-gradient(circle at var(--td-pointer-x, 68%) var(--td-pointer-y, 34%), rgba(217, 240, 0, 0.2), transparent 22%),
    linear-gradient(90deg, rgba(91, 178, 189, 0.22), transparent 46%) !important;
}

body .td-home-kicker,
body .td-about-team-kicker,
body .td-pain-role,
body .td-footer-col-title,
body .td-search-result-meta {
  color: var(--td-corp-teal) !important;
}

body .td-home-kicker::before,
body .td-about-team-kicker::before,
body .td-single-header .td-terms a,
body .td-home-article-line,
body .td-cta-block::before {
  background: linear-gradient(90deg, var(--td-corp-teal), var(--td-corp-teal-soft), var(--td-corp-lime)) !important;
}

body .td-home-slide-visual::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(20, 92, 114, 0.1), rgba(7, 48, 58, 0.04)) !important;
  pointer-events: none;
}

body .td-home-slide-visual img {
  opacity: 1 !important;
  position: relative;
  z-index: 0;
}

body.single-post .td-single-header::after,
body.wp-singular .td-single-header::after {
  background: linear-gradient(90deg, var(--td-corp-teal), var(--td-corp-teal-soft), var(--td-corp-lime)) !important;
}

body .td-home-slide-actions a:first-child,
body .td-article-buttons a:first-child,
body .td-cta-block .td-cta-button,
body .td-home-final a,
body .td-home-article--lead .td-home-article-read {
  background: var(--td-corp-lime) !important;
  border-color: var(--td-corp-lime) !important;
  color: var(--td-corp-ink) !important;
  box-shadow: 0 18px 44px rgba(217, 240, 0, 0.2) !important;
}

body .td-home-slide-actions a:first-child:hover,
body .td-article-buttons a:first-child:hover,
body .td-cta-block .td-cta-button:hover,
body .td-home-final a:hover,
body .td-home-article--lead:hover .td-home-article-read,
body .td-home-article--lead:focus .td-home-article-read {
  background: #edff35 !important;
  color: var(--td-corp-ink) !important;
}

body .td-home-slide-actions a:not(:first-child),
body .td-article-buttons a:not(:first-child),
body .td-home-slider-prev,
body .td-home-slider-next,
body .td-home-slider-dots,
body .td-single-header .td-reaction-button,
body .td-single-header .td-comments-link,
body .td-single-header .td-reading-time {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
}

body .td-home-slider-dots button.is-active,
body .td-home-slider-dots button:hover {
  background: var(--td-corp-lime) !important;
}

body .td-home-articles,
body .td-pain-finder,
body .td-home-offers,
body .td-about-team,
body .td-archive-articles {
  background: transparent !important;
}

body .td-home-article,
body .td-about-team-card,
body .td-pain-card,
body .td-offer-card,
body .td-search-result,
body .td-archive-empty {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(20, 92, 114, 0.16) !important;
  box-shadow: 0 24px 70px rgba(7, 48, 58, 0.1) !important;
}

body .td-home-article:hover,
body .td-home-article:focus,
body .td-about-team-card:hover,
body .td-pain-card:hover,
body .td-offer-card:hover {
  border-color: rgba(20, 92, 114, 0.34) !important;
  box-shadow: 0 34px 90px rgba(20, 92, 114, 0.16) !important;
}

body .td-home-article--lead,
body .td-home-article-placeholder,
body .td-vibe-widget-toggle {
  background:
    linear-gradient(145deg, var(--td-corp-ink), #0a404c 58%, var(--td-corp-teal)) !important;
}

body .td-home-article strong,
body .td-about-team-card h3,
body.archive .td-section-head h1,
body.search .td-section-head h1,
body .td-page-title h1,
body .td-post-content h2,
body .td-post-content h3,
body .td-search-result-title {
  color: var(--td-corp-ink) !important;
}

body .td-home-article--lead strong,
body .td-home-article--lead em,
body .td-home-article--lead .td-home-article-top time,
body .td-home-article--lead .td-home-article-stats > .td-home-article-stat {
  color: #ffffff !important;
}

body .td-home-article-category,
body .td-home-article-stat-icon,
body .td-archive-pagination a:hover,
body .td-archive-pagination a:focus,
body .td-archive-pagination .current {
  background: rgba(20, 92, 114, 0.1) !important;
  border-color: rgba(20, 92, 114, 0.18) !important;
  color: var(--td-corp-teal) !important;
}

body .td-home-article--lead .td-home-article-category {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

body .td-home-article-read,
body .td-archive-pagination .current,
body .td-archive-pagination a:hover,
body .td-archive-pagination a:focus {
  background: var(--td-corp-ink) !important;
  border-color: var(--td-corp-ink) !important;
  color: #ffffff !important;
}

body .td-home-article-stats > .td-home-article-stat,
body .td-home-article-top time,
body .td-post-content p,
body .td-post-content li,
body .td-search-result-excerpt,
body .td-home-section-lead,
body .td-about-team-head p:not(.td-about-team-kicker) {
  color: var(--td-corp-muted) !important;
}

body .td-cta-block {
  background:
    radial-gradient(circle at 82% 12%, rgba(217, 240, 0, 0.18), transparent 26%),
    linear-gradient(135deg, var(--td-corp-ink), var(--td-corp-teal)) !important;
}

body .td-cta-block .td-cta-title,
body .td-cta-block .td-cta-desc {
  color: #ffffff !important;
}

body .td-post-content a,
body.single-post .td-post-content a,
body.wp-singular .td-post-content a,
body .td-footer-v2 a:hover {
  color: var(--td-corp-teal-soft) !important;
}

body .td-post-content blockquote,
body.single-post .td-post-content blockquote,
body.wp-singular .td-post-content blockquote {
  background: rgba(20, 92, 114, 0.08) !important;
  border-left-color: var(--td-corp-teal) !important;
  color: var(--td-corp-ink) !important;
}

body .td-aside-card span,
body .td-focus-card span,
body.single-post .td-focus-card > span,
body.wp-singular .td-focus-card > span,
body.single-post .td-post-content h2::before,
body.wp-singular .td-post-content h2::before {
  color: var(--td-corp-teal) !important;
}

body .td-footer-v2 {
  background:
    radial-gradient(circle at 18% 0%, rgba(91, 178, 189, 0.18), transparent 24%),
    linear-gradient(180deg, #07303a 0%, #052630 100%) !important;
  color: #ffffff !important;
}

body .td-footer-logo,
body .td-footer-col-title {
  color: #ffffff !important;
}

body .td-footer-tagline,
body .td-footer-nav a,
body .td-footer-contact-link,
body .td-footer-social-link,
body .td-footer-bottom p {
  color: rgba(255, 255, 255, 0.72) !important;
}

body .td-footer-tags a {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

body .td-footer-tags a:hover {
  background: var(--td-corp-lime) !important;
  color: var(--td-corp-ink) !important;
}

body .td-vibe-widget-status {
  background: var(--td-corp-lime) !important;
  border-color: var(--td-corp-ink) !important;
}

body.single-post .td-single-header .td-like-button-large:hover strong,
body.wp-singular .td-single-header .td-like-button-large:hover strong {
  color: var(--td-corp-lime) !important;
}

body.single-post .td-single-header .td-like-button-large:hover .td-icon-like::before,
body.wp-singular .td-single-header .td-like-button-large:hover .td-icon-like::before {
  background: var(--td-corp-lime) !important;
}

/* =========================================================
   Home page strict corporate palette
   ========================================================= */

body.home::before {
  background:
    linear-gradient(90deg, rgba(20, 92, 114, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 92, 114, 0.045) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
}

body.home .td-home-v3,
body.home .td-main,
body.home .td-content-shell {
  background:
    radial-gradient(circle at 10% 0, rgba(91, 178, 189, 0.2), transparent 28%),
    linear-gradient(180deg, #f8fdfe 0%, #f4fbfc 48%, #eef8f9 100%) !important;
}

body.home .td-home-slider,
body.home .td-home-slide:nth-child(1),
body.home .td-home-slide:nth-child(2),
body.home .td-home-slide:nth-child(3) {
  background:
    radial-gradient(circle at 86% 18%, rgba(91, 178, 189, 0.24), transparent 28%),
    linear-gradient(135deg, #07303a 0%, #0a3d49 52%, #145c72 100%) !important;
}

body.home .td-home-slide::before,
body.home .td-home-slide::after {
  background: transparent !important;
  opacity: 0 !important;
}

body.home .td-home-slide-visual {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

body.home .td-home-slide-visual::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 44%),
    linear-gradient(180deg, rgba(20, 92, 114, 0.18), rgba(7, 48, 58, 0.1)) !important;
  mix-blend-mode: multiply;
}

body.home .td-home-slide-visual img {
  filter: saturate(0.82) contrast(0.98) !important;
}

body.home .td-vibe-stage,
body.home .td-pain-finder,
body.home .td-home-articles,
body.home .td-home-offers,
body.home .td-home-final {
  background:
    radial-gradient(circle at 9% 0, rgba(91, 178, 189, 0.16), transparent 26%),
    linear-gradient(180deg, #f8fdfe 0%, #eef8f9 100%) !important;
}

body.home .td-vibe-stage::before,
body.home .td-pain-finder::before,
body.home .td-home-articles::before,
body.home .td-home-offers::before {
  background:
    linear-gradient(rgba(20, 92, 114, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 92, 114, 0.04) 1px, transparent 1px) !important;
  background-size: 44px 44px !important;
  opacity: 0.38 !important;
}

body.home .td-home-kicker,
body.home .td-pain-role,
body.home .td-home-offer-label,
body.home .td-home-section-head .td-home-kicker,
body.home .td-home-section-lead {
  color: var(--td-corp-teal) !important;
}

body.home .td-home-kicker::before,
body.home .td-pain-card::before,
body.home .td-home-offer::before,
body.home .td-home-article-line {
  background: linear-gradient(90deg, var(--td-corp-teal), var(--td-corp-teal-soft), var(--td-corp-lime)) !important;
}

body.home .td-home-section-head h2,
body.home .td-pain-intro-title,
body.home .td-home-final h2 {
  color: var(--td-corp-ink) !important;
}

body.home .td-pain-intro {
  background:
    radial-gradient(circle at 92% 0, rgba(91, 178, 189, 0.2), transparent 34%),
    linear-gradient(145deg, #07303a 0%, #0a3d49 58%, #145c72 100%) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 32px 86px rgba(7, 48, 58, 0.18) !important;
}

body.home .td-pain-intro .td-home-kicker {
  color: rgba(255, 255, 255, 0.76) !important;
}

body.home .td-pain-intro-title,
body.home .td-pain-intro h2 {
  color: #ffffff !important;
}

body.home .td-pain-intro p:not(.td-home-kicker),
body.home .td-pain-note span {
  color: rgba(255, 255, 255, 0.74) !important;
}

body.home .td-pain-note span {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

body.home .td-pain-card,
body.home .td-home-offer,
body.home .td-home-article:not(.td-home-article--lead) {
  --td-pain-accent: var(--td-corp-teal) !important;
  --td-offer-accent: var(--td-corp-teal) !important;
  --td-article-accent: var(--td-corp-teal) !important;
  background:
    radial-gradient(circle at 100% 0, rgba(91, 178, 189, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(20, 92, 114, 0.16) !important;
  color: var(--td-corp-ink) !important;
}

body.home .td-pain-card:nth-child(2),
body.home .td-pain-card:nth-child(3),
body.home .td-pain-card:nth-child(4),
body.home .td-pain-card:nth-child(5),
body.home .td-pain-card:nth-child(6),
body.home .td-home-article:nth-child(3n + 2),
body.home .td-home-article:nth-child(3n),
body.home .td-home-offer--diagnostic,
body.home .td-home-offer--architecture {
  --td-pain-accent: var(--td-corp-teal) !important;
  --td-offer-accent: var(--td-corp-teal) !important;
  --td-article-accent: var(--td-corp-teal) !important;
}

body.home .td-pain-card::after,
body.home .td-home-offer::after {
  background: radial-gradient(circle, rgba(91, 178, 189, 0.52), transparent 62%) !important;
  opacity: 0.12 !important;
}

body.home .td-pain-number,
body.home .td-pain-role,
body.home .td-home-offer-label {
  color: var(--td-corp-teal) !important;
}

body.home .td-pain-card:hover,
body.home .td-pain-card:focus,
body.home .td-home-offer:hover,
body.home .td-home-offer:focus,
body.home .td-home-article:hover,
body.home .td-home-article:focus {
  border-color: rgba(20, 92, 114, 0.34) !important;
  box-shadow: 0 34px 90px rgba(7, 48, 58, 0.14) !important;
}

body.home .td-pain-card small,
body.home .td-home-article-category,
body.home .td-home-article-top time,
body.home .td-home-article-stats > .td-home-article-stat {
  background: rgba(20, 92, 114, 0.09) !important;
  border-color: rgba(20, 92, 114, 0.14) !important;
  color: var(--td-corp-teal) !important;
}

body.home .td-pain-card:hover small,
body.home .td-pain-card:focus small {
  background: var(--td-corp-teal) !important;
  color: #ffffff !important;
}

body.home .td-home-article--lead {
  background:
    radial-gradient(circle at 100% 12%, rgba(91, 178, 189, 0.16), transparent 32%),
    linear-gradient(145deg, #07303a 0%, #0a434f 58%, #145c72 100%) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

body.home .td-home-article--lead .td-home-article-category,
body.home .td-home-article--lead .td-home-article-top time,
body.home .td-home-article--lead .td-home-article-stats > .td-home-article-stat {
  background: rgba(255, 255, 255, 0.13) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

body.home .td-home-article-read,
body.home .td-home-offer-action {
  background: var(--td-corp-ink) !important;
  color: #ffffff !important;
}

body.home .td-home-slide-actions a:first-child,
body.home .td-home-article--lead .td-home-article-read,
body.home .td-home-offer--architecture .td-home-offer-action,
body.home .td-home-final a {
  background: var(--td-corp-lime) !important;
  border-color: var(--td-corp-lime) !important;
  color: var(--td-corp-ink) !important;
}

body.home .td-home-offer--architecture {
  background:
    radial-gradient(circle at 100% 0, rgba(91, 178, 189, 0.16), transparent 34%),
    linear-gradient(145deg, #07303a 0%, #0a434f 58%, #145c72 100%) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

body.home .td-home-offer--architecture .td-home-offer-label,
body.home .td-home-offer--architecture strong {
  color: #ffffff !important;
}

body.home .td-home-offer--architecture em {
  color: rgba(255, 255, 255, 0.74) !important;
}

body.home .td-vibe-widget-toggle {
  background: linear-gradient(145deg, #07303a, #145c72) !important;
}

body.home .td-vibe-widget-status {
  background: var(--td-corp-lime) !important;
}

body.home .td-home-article-media::before {
  background:
    linear-gradient(180deg, rgba(20, 92, 114, 0.16), rgba(7, 48, 58, 0.06)),
    radial-gradient(circle at 100% 0, rgba(91, 178, 189, 0.12), transparent 34%) !important;
  content: "";
  inset: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

body.home .td-home-article-media img {
  filter: saturate(0.76) contrast(0.98) !important;
}

body.home .td-home-article:hover .td-home-article-media img,
body.home .td-home-article:focus .td-home-article-media img {
  filter: saturate(0.86) contrast(1.02) !important;
}

/* =========================================================
   Header spacing and plain search icon
   ========================================================= */

body .td-site-header > .td-header-inner {
  box-sizing: border-box !important;
  padding-right: clamp(28px, 5vw, 82px) !important;
}

body .td-header-search button {
  background: var(--td-corp-ink) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

body .td-header-search button::before {
  background: transparent !important;
  border: 2.5px solid currentColor !important;
  border-radius: 999px !important;
  box-sizing: border-box;
  content: "" !important;
  height: 17px !important;
  left: 13px !important;
  top: 11px !important;
  transform: none !important;
  width: 17px !important;
}

body .td-header-search button::after {
  background: currentColor !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-sizing: border-box;
  content: "" !important;
  height: 9px !important;
  left: 29px !important;
  right: auto !important;
  top: 27px !important;
  transform: rotate(-45deg) !important;
  transform-origin: top center !important;
  width: 3px !important;
}

body .td-header-search button:hover,
body .td-header-search button:focus {
  background: var(--td-corp-teal) !important;
  color: #ffffff !important;
}

@media (max-width: 560px) {
  body .td-site-header > .td-header-inner {
    padding-right: 18px !important;
  }

  body .td-header-search button::before {
    height: 16px !important;
    left: 12px !important;
    top: 10px !important;
    width: 16px !important;
  }

  body .td-header-search button::after {
    height: 8px !important;
    left: 27px !important;
    top: 26px !important;
    width: 3px !important;
  }
}

/* =========================================================
   Sticky header lock
   ========================================================= */

body .td-site-header {
  inset-inline: 0 !important;
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 5000 !important;
}

body.admin-bar .td-site-header {
  top: 32px !important;
}

body {
  padding-top: 76px !important;
}

@media (max-width: 782px) {
  body.admin-bar .td-site-header {
    top: 46px !important;
  }
}

@media (max-width: 560px) {
  body {
    padding-top: 68px !important;
  }
}

/* =========================================================
   Search modal result hover contrast
   ========================================================= */

body .td-search-modal .td-search-result:hover,
body .td-search-modal .td-search-result:focus {
  background:
    linear-gradient(135deg, rgba(217, 240, 0, 0.22), rgba(91, 178, 189, 0.18)),
    #ffffff !important;
  border-color: rgba(20, 92, 114, 0.38) !important;
  box-shadow: 0 24px 64px rgba(20, 92, 114, 0.18) !important;
  color: var(--td-corp-ink) !important;
}

body .td-search-modal .td-search-result:hover .td-search-result-title,
body .td-search-modal .td-search-result:focus .td-search-result-title {
  color: var(--td-corp-ink) !important;
}

body .td-search-modal .td-search-result:hover .td-search-result-meta,
body .td-search-modal .td-search-result:focus .td-search-result-meta {
  color: var(--td-corp-teal) !important;
}

body .td-search-modal .td-search-result:hover .td-search-result-excerpt,
body .td-search-modal .td-search-result:focus .td-search-result-excerpt {
  color: #43626c !important;
}

/* =========================================================
   Home slider controls alignment
   ========================================================= */

body .td-home-slider-controls {
  align-items: center !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  gap: 10px !important;
  height: 58px !important;
  justify-content: center !important;
  padding: 6px !important;
}

body .td-home-slider-prev,
body .td-home-slider-next {
  align-items: center !important;
  appearance: none !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex: 0 0 46px !important;
  height: 46px !important;
  justify-content: center !important;
  margin: 0 !important;
  min-height: 46px !important;
  min-width: 46px !important;
  padding: 0 !important;
  width: 46px !important;
}

body .td-home-slider-prev::before,
body .td-home-slider-next::before {
  border-left: 3px solid currentColor !important;
  border-top: 3px solid currentColor !important;
  box-sizing: border-box !important;
  content: "" !important;
  height: 13px !important;
  left: auto !important;
  position: static !important;
  top: auto !important;
  width: 13px !important;
}

body .td-home-slider-prev::before {
  transform: translateX(2px) rotate(-45deg) !important;
}

body .td-home-slider-next::before {
  transform: translateX(-2px) rotate(135deg) !important;
}

body .td-home-slider-dots {
  align-items: center !important;
  background: rgba(7, 48, 58, 0.24) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  gap: 8px !important;
  height: 24px !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 10px !important;
}

body .td-home-slider-dots button {
  appearance: none !important;
  background: rgba(255, 255, 255, 0.42) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  display: block !important;
  flex: 0 0 auto !important;
  height: 9px !important;
  margin: 0 !important;
  min-height: 9px !important;
  min-width: 9px !important;
  padding: 0 !important;
  width: 9px !important;
}

body .td-home-slider-dots button.is-active {
  background: var(--td-corp-lime) !important;
  width: 32px !important;
}

/* =========================================================
   Pain finder intro upgrade
   ========================================================= */

body.home .td-pain-intro {
  background:
    radial-gradient(circle at 18% 16%, rgba(217, 240, 0, 0.16), transparent 18%),
    radial-gradient(circle at 92% 18%, rgba(91, 178, 189, 0.34), transparent 30%),
    linear-gradient(135deg, rgba(7, 48, 58, 0.98) 0%, #0a3f4b 48%, #145c72 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    0 36px 110px rgba(7, 48, 58, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  min-height: clamp(500px, 34vw, 620px);
  padding: clamp(34px, 4.2vw, 64px) !important;
}

body.home .td-pain-intro::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px) !important;
  background-size: 42px 42px !important;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.42));
  opacity: 0.72 !important;
}

body.home .td-pain-intro::after {
  border: 1px solid rgba(217, 240, 0, 0.34);
  border-radius: 999px;
  box-shadow:
    0 0 0 18px rgba(217, 240, 0, 0.035),
    0 0 60px rgba(217, 240, 0, 0.12);
  color: rgba(255, 255, 255, 0.075);
  content: "6";
  font-size: clamp(220px, 18vw, 320px);
  font-weight: 950;
  height: clamp(230px, 19vw, 330px);
  line-height: 0.84;
  pointer-events: none;
  position: absolute;
  right: clamp(-84px, -5vw, -34px);
  top: clamp(24px, 5vw, 82px);
  width: clamp(230px, 19vw, 330px);
  z-index: 0;
}

body.home .td-pain-intro .td-home-kicker {
  align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88) !important;
  display: inline-flex;
  gap: 10px;
  letter-spacing: 0.04em;
  margin-bottom: clamp(22px, 3vw, 42px);
  padding: 9px 14px 9px 12px;
}

body.home .td-pain-intro .td-home-kicker::before {
  box-shadow: 0 0 22px rgba(217, 240, 0, 0.42);
  height: 10px;
  width: 10px;
}

body.home .td-pain-intro-title,
body.home .td-pain-intro h2 {
  font-size: clamp(46px, 4.2vw, 68px) !important;
  letter-spacing: -0.01em;
  line-height: 0.94 !important;
  max-width: 660px;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

body.home .td-pain-intro p:not(.td-home-kicker) {
  border-left: 4px solid var(--td-corp-lime);
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: clamp(19px, 1.45vw, 24px) !important;
  line-height: 1.42 !important;
  margin-top: clamp(14px, 2vw, 24px);
  max-width: 660px;
  padding-left: clamp(18px, 2vw, 28px);
}

body.home .td-pain-note {
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  gap: 14px;
  margin-top: clamp(38px, 5vw, 64px);
  position: relative;
}

body.home .td-pain-note::before {
  background: linear-gradient(90deg, var(--td-corp-lime), rgba(91, 178, 189, 0.65), transparent);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: -1px;
  width: 42%;
}

body.home .td-pain-note span {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 22px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86) !important;
  min-height: 72px;
  padding: 16px 18px !important;
}

body.home .td-pain-note span:first-child {
  color: var(--td-corp-lime) !important;
}

@media (max-width: 760px) {
  body.home .td-pain-intro {
    min-height: 0;
    padding: 28px !important;
  }

  body.home .td-pain-intro::after {
    font-size: 180px;
    height: 190px;
    right: -74px;
    top: 54px;
    width: 190px;
  }

  body.home .td-pain-intro-title,
  body.home .td-pain-intro h2 {
    font-size: clamp(40px, 13vw, 56px) !important;
    max-width: 100%;
  }

  body.home .td-pain-intro p:not(.td-home-kicker) {
    font-size: 20px !important;
  }
}

/* =========================================================
   Pain finder intro final fit
   ========================================================= */

body.home .td-pain-shell {
  align-items: stretch !important;
  grid-template-columns: minmax(420px, 0.42fr) minmax(0, 1fr) !important;
}

body.home .td-pain-intro {
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  justify-content: space-between !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: clamp(30px, 3.3vw, 48px) !important;
  position: relative !important;
  top: auto !important;
}

body.home .td-pain-intro::after {
  border-color: rgba(217, 240, 0, 0.2) !important;
  box-shadow:
    0 0 0 14px rgba(217, 240, 0, 0.025),
    0 0 54px rgba(91, 178, 189, 0.13) !important;
  color: rgba(255, 255, 255, 0.045) !important;
  font-size: clamp(180px, 13vw, 240px) !important;
  height: clamp(190px, 14vw, 260px) !important;
  line-height: 0.84 !important;
  right: clamp(-84px, -4vw, -42px) !important;
  top: clamp(42px, 4vw, 72px) !important;
  width: clamp(190px, 14vw, 260px) !important;
}

body.home .td-pain-intro .td-home-kicker {
  margin-bottom: clamp(20px, 2.2vw, 30px) !important;
  width: max-content;
}

body.home .td-pain-intro-title,
body.home .td-pain-intro h2 {
  font-size: clamp(40px, 3vw, 54px) !important;
  line-height: 0.98 !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  padding-right: clamp(44px, 6vw, 86px);
  text-wrap: balance;
  word-break: normal;
}

body.home .td-pain-intro p:not(.td-home-kicker) {
  font-size: clamp(18px, 1.22vw, 21px) !important;
  line-height: 1.48 !important;
  margin-bottom: 0 !important;
  max-width: 100% !important;
  padding-left: clamp(16px, 1.8vw, 24px) !important;
}

body.home .td-pain-note {
  flex: 0 0 auto;
  margin-top: clamp(28px, 3.6vw, 46px) !important;
}

body.home .td-pain-note span {
  min-height: 58px !important;
  padding: 13px 14px !important;
}

@media (max-width: 1180px) {
  body.home .td-pain-shell {
    grid-template-columns: 1fr !important;
  }

  body.home .td-pain-intro {
    min-height: 0 !important;
  }

  body.home .td-pain-intro-title,
  body.home .td-pain-intro h2 {
    padding-right: 80px;
  }
}

@media (max-width: 760px) {
  body.home .td-pain-intro {
    padding: 26px !important;
  }

  body.home .td-pain-intro::after {
    font-size: 150px !important;
    height: 160px !important;
    right: -62px !important;
    top: 62px !important;
    width: 160px !important;
  }

  body.home .td-pain-intro-title,
  body.home .td-pain-intro h2 {
    font-size: clamp(34px, 10.5vw, 46px) !important;
    padding-right: 48px;
  }

  body.home .td-pain-note {
    gap: 10px !important;
  }
}

/* Remove numeric marker from the pain finder intro */
body.home .td-pain-intro::after {
  content: "" !important;
  display: none !important;
}

body.home .td-pain-note span:first-child {
  color: rgba(255, 255, 255, 0.86) !important;
}

/* =========================================================
   Home lead article same height as regular cards
   ========================================================= */

@media (min-width: 821px) {
  body.home .td-home-article--lead {
    grid-column: span 6 !important;
    grid-row: auto !important;
    grid-template-rows: 240px minmax(0, 1fr) !important;
    height: 520px !important;
    min-height: 520px !important;
    max-height: 520px !important;
  }

  body.home .td-home-article--lead .td-home-article-media {
    aspect-ratio: auto !important;
    height: 240px !important;
    min-height: 0 !important;
  }

  body.home .td-home-article--lead .td-home-article-body {
    gap: 14px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 24px !important;
  }

  body.home .td-home-article--lead strong {
    font-size: clamp(32px, 2.4vw, 42px) !important;
    line-height: 1.02 !important;
    max-width: 100% !important;
    -webkit-line-clamp: 2 !important;
  }

  body.home .td-home-article--lead em {
    font-size: 16px !important;
    line-height: 1.42 !important;
    max-width: 100% !important;
    -webkit-line-clamp: 2 !important;
  }

  body.home .td-home-article--lead .td-home-article-foot {
    margin-top: auto !important;
  }
}

/* Lead article stats contrast */
body.home .td-home-article--lead .td-home-article-stats > .td-home-article-stat {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
}

body.home .td-home-article--lead .td-home-article-stat-icon {
  color: #ffffff !important;
}

body.home .td-home-article--lead .td-home-article-stats > .td-home-article-stat span,
body.home .td-home-article--lead .td-home-article-stats > .td-home-article-stat strong {
  color: #ffffff !important;
}

/* =========================================================
   Home articles load more
   ========================================================= */

body.home .td-home-articles-more {
  display: flex;
  justify-content: center;
  padding: clamp(26px, 4vw, 46px) var(--td-home-page-x) 0;
  position: relative;
  z-index: 2;
}

body.home .td-home-load-more {
  align-items: center;
  background: var(--td-corp-ink);
  border: 1px solid rgba(7, 48, 58, 0.18);
  border-radius: 999px;
  box-shadow: 0 22px 54px rgba(7, 48, 58, 0.16);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  font-weight: 950;
  gap: 12px;
  justify-content: center;
  min-height: 54px;
  min-width: 220px;
  padding: 0 28px;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

body.home .td-home-load-more::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
}

body.home .td-home-load-more:hover,
body.home .td-home-load-more:focus {
  background: var(--td-corp-teal);
  box-shadow: 0 28px 70px rgba(20, 92, 114, 0.2);
  transform: translateY(-2px);
}

body.home .td-home-load-more.is-loading {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

body.home .td-home-load-more.is-loading::after {
  animation: tdSearchLoading 900ms linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #ffffff;
  border-radius: 999px;
  content: "";
  height: 16px;
  width: 16px;
}

/* =========================================================
   Home article image height adjustment
   ========================================================= */

@media (min-width: 821px) {
  body.home .td-home-article:not(.td-home-article--lead) .td-home-article-media {
    aspect-ratio: 16 / 9.8 !important;
  }

  body.home .td-home-article--lead {
    grid-template-rows: 270px minmax(0, 1fr) !important;
  }

  body.home .td-home-article--lead .td-home-article-media {
    height: 270px !important;
  }

  body.home .td-home-article--lead .td-home-article-body {
    padding-bottom: 22px !important;
    padding-top: 22px !important;
  }

  body.home .td-home-article--lead strong {
    font-size: clamp(30px, 2.25vw, 39px) !important;
  }
}

/* =========================================================
   Home article title preview depth
   ========================================================= */

@media (min-width: 821px) {
  body.home .td-home-article:not(.td-home-article--lead) strong {
    font-size: clamp(22px, 1.45vw, 25px) !important;
    line-height: 1.08 !important;
    -webkit-line-clamp: 4 !important;
  }

body.home .td-home-article--lead strong {
    line-height: 1.04 !important;
    -webkit-line-clamp: 3 !important;
  }
}

/* =========================================================
   Client portal — unified dashboard design
   ========================================================= */

body.td-client-portal-page .td-page-title {
  display: none !important;
}

body.td-client-portal-page .td-post-content {
  margin-block-start: 0 !important;
  max-width: none !important;
}

body .td-client-portal {
  --td-status-new: var(--td-corp-teal);
  --td-status-in_work: var(--td-accent);
  --td-status-waiting: var(--td-coral);
  --td-status-check: var(--td-cta-bg);
  --td-status-done: var(--td-green);
  --td-radius-lg: 22px;
  --td-radius-md: 16px;
  --td-radius-sm: 11px;
  color: var(--td-corp-ink);
  display: block;
  margin: 0 auto;
  max-width: 1680px;
  padding: clamp(20px, 3vw, 40px) var(--td-home-page-x, clamp(18px, 4vw, 56px)) clamp(48px, 6vw, 84px);
}

/* ---------- shared surfaces ---------- */

body .td-client-portal .td-client-sidebar,
body .td-client-portal .td-client-topbar,
body .td-client-portal .td-client-notices,
body .td-client-portal .td-analytics-kpi,
body .td-client-portal .td-analytics-card,
body .td-client-portal .td-client-form-card,
body .td-client-portal .td-ticket-column,
body .td-client-portal .td-ticket-card,
body .td-client-login-card,
body .td-client-hero {
  background: var(--td-corp-white);
  border: 1px solid var(--td-corp-line);
  border-radius: var(--td-radius-lg);
  box-shadow: 0 18px 50px var(--td-corp-shadow);
}

body .td-client-portal button,
body .td-client-portal a.td-client-topbar-button,
body .td-client-portal a.td-client-nav-link {
  font-family: inherit;
}

/* ---------- layout grid ---------- */

body[data-td-client-portal-grid] {}

body .td-client-portal[data-td-client-portal] {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 272px minmax(0, 1fr);
}

/* ---------- sidebar ---------- */

@keyframes td-nav-in {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: none; }
}

body .td-client-sidebar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  position: sticky;
  top: 24px;
}

/* brand block */

body .td-client-sidebar-brand {
  align-items: center;
  display: flex;
  gap: 11px;
  padding: 18px 16px 16px;
  position: relative;
}

body .td-client-sidebar-brand::after {
  background: linear-gradient(to right, var(--td-corp-line), transparent);
  bottom: 0;
  content: "";
  height: 1px;
  left: 16px;
  position: absolute;
  right: 16px;
}

body .td-client-sidebar-brand img,
body .td-client-sidebar-brand span {
  background: linear-gradient(135deg, var(--td-corp-teal) 0%, #1b809c 100%);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(20, 92, 114, 0.32);
  color: var(--td-corp-white);
  display: grid;
  flex: none;
  font-size: 20px;
  font-weight: 800;
  height: 48px;
  letter-spacing: -0.5px;
  object-fit: cover;
  place-items: center;
  width: 48px;
}

body .td-client-sidebar-brand div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body .td-client-sidebar-brand strong {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .td-client-sidebar-brand small {
  color: var(--td-corp-muted);
  font-size: 11.5px;
}

/* nav */

body .td-client-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
}

body .td-client-nav-link {
  align-items: center;
  border-radius: 13px;
  color: var(--td-corp-ink);
  display: flex;
  gap: 11px;
  overflow: hidden;
  padding: 10px 11px;
  position: relative;
  text-decoration: none;
  transition:
    background 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow  200ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    color       160ms ease,
    transform   200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body .td-client-nav-link:nth-child(1) { animation: td-nav-in 380ms ease both 60ms; }
body .td-client-nav-link:nth-child(2) { animation: td-nav-in 380ms ease both 110ms; }
body .td-client-nav-link:nth-child(3) { animation: td-nav-in 380ms ease both 160ms; }
body .td-client-nav-link:nth-child(4) { animation: td-nav-in 380ms ease both 210ms; }
body .td-client-nav-link:nth-child(5) { animation: td-nav-in 380ms ease both 260ms; }

body .td-client-nav-link::before {
  background: rgba(20, 92, 114, 0.05);
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 200ms ease;
}

body .td-client-nav-link:hover {
  background: rgba(20, 92, 114, 0.065);
  transform: translateX(2px);
}

body .td-client-nav-link:hover::before {
  opacity: 1;
}

body .td-client-nav-link:active {
  transform: translateX(1px) scale(0.99);
}

body .td-client-nav-link.is-active {
  background: linear-gradient(135deg, var(--td-corp-teal) 0%, #18799a 100%);
  box-shadow:
    inset 4px 0 0 var(--td-corp-lime),
    0 6px 22px rgba(20, 92, 114, 0.30);
  color: var(--td-corp-white);
  transform: none;
}

body .td-client-nav-link.is-active::before {
  display: none;
}

/* text */

body .td-client-nav-link strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  transition: letter-spacing 200ms ease;
}

body .td-client-nav-link:hover strong {
  letter-spacing: 0.015em;
}

body .td-client-nav-link.is-active strong {
  letter-spacing: 0;
}

body .td-client-nav-link small {
  color: var(--td-corp-muted);
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  transition: color 200ms ease;
}

body .td-client-nav-link.is-active small {
  color: rgba(255, 255, 255, 0.65);
}

/* icon */

body .td-client-nav-icon {
  background: rgba(20, 92, 114, 0.09);
  border-radius: 10px;
  flex: none;
  height: 34px;
  position: relative;
  transition:
    background  200ms ease,
    box-shadow  200ms ease,
    transform   220ms cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 34px;
}

body .td-client-nav-link:hover .td-client-nav-icon {
  background: rgba(20, 92, 114, 0.14);
  transform: scale(1.1) rotate(-2deg);
}

body .td-client-nav-link.is-active .td-client-nav-icon {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: none;
}

body .td-client-nav-icon::after {
  border: 2px solid currentColor;
  border-radius: 4px;
  content: "";
  height: 14px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease;
  width: 14px;
}

/* analytics: axis corner */
body .td-client-nav-icon--analytics::after {
  border-radius: 0 0 0 2px;
  border-width: 0 0 2px 2px;
  height: 10px;
  width: 13px;
}

/* profile: circle */
body .td-client-nav-icon--profile::after {
  border-radius: 50%;
  height: 12px;
  width: 12px;
}

/* company: rounded square */
body .td-client-nav-icon--company::after {
  border-radius: 3px;
}

/* create: plus sign via horizontal + vertical */
body .td-client-nav-icon--create::after {
  border: none;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  height: 12px;
  width: 2px;
}

body .td-client-nav-icon--create::before {
  background: currentColor;
  border-radius: 2px;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
}

/* tickets: list rows */
body .td-client-nav-icon--tickets::after {
  border: none;
  border-radius: 1px;
  background: currentColor;
  box-shadow:
    0 -4px 0 currentColor,
    0  4px 0 currentColor;
  height: 2px;
  width: 13px;
}

/* sidebar footer */

body .td-client-sidebar-foot {
  align-items: center;
  border-top: 1px solid var(--td-corp-line);
  display: flex;
  flex-direction: row;
  gap: 8px;
  justify-content: space-between;
  margin-top: auto;
  padding: 13px 16px;
}

body .td-client-sidebar-foot span {
  color: var(--td-corp-muted);
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .td-client-sidebar-foot a {
  background: transparent;
  border: 1.5px solid var(--td-corp-line);
  border-radius: 999px;
  color: var(--td-corp-ink);
  flex: none;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 13px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

body .td-client-sidebar-foot a:hover {
  background: rgba(232, 93, 79, 0.08);
  border-color: rgba(232, 93, 79, 0.35);
  color: var(--td-coral);
  text-decoration: none;
}

/* ---------- workspace / topbar ---------- */

body .td-client-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

body .td-client-topbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 22px 26px;
}

body .td-client-kicker {
  color: var(--td-corp-teal-soft);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

body .td-client-topbar h1 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 4px;
}

body .td-client-topbar > div > p {
  color: var(--td-corp-muted);
  font-size: 13.5px;
  margin: 0;
}

body .td-client-topbar-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

body .td-client-topbar-button,
body .td-client-form-card button[type="submit"] {
  background: var(--td-corp-teal);
  border: 1px solid var(--td-corp-teal);
  border-radius: 999px;
  color: var(--td-corp-white);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 22px;
  text-decoration: none;
  transition: background 140ms ease, transform 140ms ease;
}

body .td-client-topbar-button:hover,
body .td-client-form-card button[type="submit"]:hover {
  background: #0e4a5c;
  transform: translateY(-1px);
}

body .td-client-logout {
  border: 1px solid var(--td-corp-line);
  border-radius: 999px;
  color: var(--td-corp-ink);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  text-decoration: none;
  transition: background 140ms ease;
}

body .td-client-logout:hover {
  background: rgba(20, 92, 114, 0.07);
}

/* ---------- notices ---------- */

body .td-client-notices {
  background: rgba(217, 240, 0, 0.16);
  border: 1px solid rgba(20, 92, 114, 0.2);
  border-radius: var(--td-radius-md);
  padding: 14px 20px;
}

body .td-client-notices p {
  color: var(--td-corp-ink);
  font-size: 13.5px;
  font-weight: 600;
  margin: 0;
}

body .td-client-notices p + p {
  margin-top: 6px;
}

/* ---------- panels ---------- */

body .td-client-panel {
  display: none;
}

body .td-client-panel.is-active {
  animation: td-panel-in 220ms ease;
  display: block;
}

@keyframes td-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body .td-client-section-head {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

body .td-client-section-head h2 {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 800;
  margin: 0;
}

body .td-client-section-head > span {
  color: var(--td-corp-muted);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- analytics KPIs ---------- */

body .td-analytics-kpis {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

body .td-analytics-kpi {
  border-top: 3px solid var(--td-corp-teal);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
}

body .td-analytics-kpi--open {
  border-top-color: var(--td-accent);
}

body .td-analytics-kpi--done {
  border-top-color: var(--td-green);
}

body .td-analytics-kpi--waiting {
  border-top-color: var(--td-coral);
}

body .td-analytics-kpi span {
  color: var(--td-corp-muted);
  font-size: 12.5px;
  font-weight: 600;
}

body .td-analytics-kpi strong {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

body .td-analytics-kpi small {
  color: var(--td-corp-teal-soft);
  font-size: 11.5px;
  font-weight: 600;
}

body .td-analytics-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.2fr 1fr 1fr;
}

body .td-analytics-card {
  padding: 20px 22px;
}

body .td-analytics-card-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

body .td-analytics-card-head h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
}

body .td-analytics-card-head span,
body .td-analytics-card-head a {
  color: var(--td-corp-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

body .td-analytics-card-head a:hover {
  color: var(--td-corp-teal);
  text-decoration: underline;
}

body .td-analytics-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body .td-analytics-bar > div {
  display: flex;
  font-size: 12.5px;
  justify-content: space-between;
  margin-bottom: 6px;
}

body .td-analytics-bar span {
  color: var(--td-corp-muted);
  font-weight: 600;
}

body .td-analytics-bar strong {
  font-weight: 700;
}

body .td-analytics-bar i {
  background: rgba(20, 92, 114, 0.1);
  border-radius: 999px;
  display: block;
  height: 7px;
  overflow: hidden;
  position: relative;
}

body .td-analytics-bar i::after {
  background: var(--td-corp-teal);
  border-radius: 999px;
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: var(--td-bar-value, 0%);
}

body .td-analytics-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body .td-analytics-categories > div {
  align-items: center;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
}

body .td-analytics-categories span {
  color: var(--td-corp-ink);
}

body .td-analytics-categories strong {
  background: rgba(20, 92, 114, 0.08);
  border-radius: 999px;
  font-size: 12px;
  padding: 2px 9px;
}

body .td-analytics-categories p {
  color: var(--td-corp-muted);
  font-size: 13px;
}

body .td-analytics-feed {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body .td-analytics-feed a {
  align-items: center;
  border-radius: var(--td-radius-sm);
  color: inherit;
  display: flex;
  gap: 10px;
  padding: 9px 8px;
  text-decoration: none;
  transition: background 140ms ease;
}

body .td-analytics-feed a:hover {
  background: rgba(20, 92, 114, 0.06);
}

body .td-analytics-feed span {
  color: var(--td-corp-muted);
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
}

body .td-analytics-feed strong {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .td-analytics-feed small {
  background: rgba(91, 178, 189, 0.18);
  border-radius: 999px;
  color: var(--td-corp-teal);
  flex: none;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
}

body .td-analytics-feed p {
  color: var(--td-corp-muted);
  font-size: 13px;
}

/* ---------- form cards (profile / company / create-ticket) ---------- */

body .td-client-form-card {
  margin-inline: auto;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  padding: clamp(20px, 3vw, 30px);
}

body .td-client-profile-card,
body .td-client-company-card {
  max-width: 540px;
}

body .td-client-card-head {
  align-items: center;
  border-bottom: 1px solid var(--td-corp-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  text-align: center;
}

body .td-client-card-head img,
body .td-client-company-logo {
  border-radius: 16px;
  height: 64px;
  object-fit: cover;
  width: 64px;
}

body .td-client-card-head img {
  border-radius: 50%;
}

body .td-client-company-logo {
  align-items: center;
  background: var(--td-corp-teal);
  color: var(--td-corp-white);
  display: flex;
  font-size: 24px;
  font-weight: 700;
  justify-content: center;
}

body .td-client-card-head div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body .td-client-card-head h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

body .td-client-card-head p {
  color: var(--td-corp-muted);
  font-size: 12.5px;
  margin: 0;
}

body .td-client-form-grid {
  display: grid;
  gap: 14px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}

body .td-client-profile-card .td-client-form-grid,
body .td-client-company-card .td-client-form-grid {
  gap: 12px 14px;
}

body .td-client-profile-card button[type="submit"],
body .td-client-company-card button[type="submit"] {
  width: 100%;
}

body .td-client-form-wide {
  grid-column: 1 / -1;
}

body .td-client-form-card label {
  color: var(--td-corp-ink);
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  font-weight: 600;
  gap: 6px;
}

body .td-client-form-card input[type="text"],
body .td-client-form-card input[type="email"],
body .td-client-form-card input[type="tel"],
body .td-client-form-card input[type="password"],
body .td-client-form-card input[type="file"],
body .td-client-form-card select,
body .td-client-form-card textarea {
  background: var(--td-corp-bg);
  border: 1px solid var(--td-corp-line);
  border-radius: var(--td-radius-sm);
  color: var(--td-corp-ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 13px;
  transition: border-color 140ms ease, background 140ms ease;
  width: 100%;
}

body .td-client-form-card input:focus,
body .td-client-form-card select:focus,
body .td-client-form-card textarea:focus {
  background: var(--td-corp-white);
  border-color: var(--td-corp-teal);
  outline: none;
}

body .td-client-form-card input[readonly] {
  color: var(--td-corp-muted);
  opacity: 0.8;
}

body .td-client-form-card textarea {
  resize: vertical;
}

body .td-ticket-date-note {
  color: var(--td-corp-muted);
  font-size: 12px;
  margin: -10px 0 18px;
}

/* ---------- ticket board (kanban) ---------- */

body .td-ticket-board {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(248px, 1fr));
  overflow-x: auto;
  padding-bottom: 8px;
}

body .td-ticket-column {
  background: rgba(244, 251, 252, 0.6);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 220px);
  min-height: 200px;
}

body .td-ticket-column header {
  align-items: center;
  border-bottom: 1px solid var(--td-corp-line);
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

body .td-ticket-column header h2 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

body .td-ticket-column header span {
  background: var(--td-corp-white);
  border: 1px solid var(--td-corp-line);
  border-radius: 999px;
  color: var(--td-corp-muted);
  font-size: 11.5px;
  font-weight: 700;
  padding: 1px 9px;
}

body .td-ticket-column-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 12px;
}

body .td-ticket-column[data-ticket-status="new"] header {
  border-top: 3px solid var(--td-status-new);
}

body .td-ticket-column[data-ticket-status="in_work"] header {
  border-top: 3px solid var(--td-status-in_work);
}

body .td-ticket-column[data-ticket-status="waiting"] header {
  border-top: 3px solid var(--td-status-waiting);
}

body .td-ticket-column[data-ticket-status="check"] header {
  border-top: 3px solid var(--td-status-check);
}

body .td-ticket-column[data-ticket-status="done"] header {
  border-top: 3px solid var(--td-status-done);
}

body .td-ticket-card {
  cursor: grab;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

body .td-ticket-card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

body .td-ticket-id {
  color: var(--td-corp-muted);
  font-size: 11px;
  font-weight: 700;
}

body .td-ticket-priority {
  background: rgba(20, 92, 114, 0.08);
  border-radius: 999px;
  color: var(--td-corp-teal);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 9px;
}

body .td-ticket-card h3 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

body .td-ticket-card > p {
  color: var(--td-corp-muted);
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0;
}

body .td-ticket-meta {
  color: var(--td-corp-muted);
  display: flex;
  flex-direction: column;
  font-size: 11px;
  gap: 2px;
}

body .td-ticket-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body .td-ticket-files a {
  background: rgba(91, 178, 189, 0.16);
  border-radius: 999px;
  color: var(--td-corp-teal);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  text-decoration: none;
}

body .td-ticket-files a:hover {
  text-decoration: underline;
}

body .td-ticket-timeline {
  border-top: 1px solid var(--td-corp-line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 130px;
  overflow-y: auto;
  padding-top: 8px;
}

body .td-ticket-comment {
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
  gap: 1px;
}

body .td-ticket-comment strong {
  font-weight: 700;
}

body .td-ticket-comment span {
  color: var(--td-corp-muted);
}

body .td-ticket-comment.is-system {
  color: var(--td-corp-teal-soft);
}

body .td-ticket-comment.is-empty {
  color: var(--td-corp-muted);
  font-style: italic;
}

body .td-ticket-comment-form {
  display: flex;
  gap: 8px;
}

body .td-ticket-comment-form textarea {
  background: var(--td-corp-bg);
  border: 1px solid var(--td-corp-line);
  border-radius: var(--td-radius-sm);
  flex: 1;
  font-family: inherit;
  font-size: 12px;
  padding: 8px 10px;
  resize: vertical;
}

body .td-ticket-comment-form textarea:focus {
  border-color: var(--td-corp-teal);
  outline: none;
}

body .td-ticket-comment-form button {
  background: var(--td-corp-teal);
  border: none;
  border-radius: var(--td-radius-sm);
  color: var(--td-corp-white);
  cursor: pointer;
  flex: none;
  font-size: 12px;
  font-weight: 700;
  padding: 0 16px;
}

body .td-ticket-comment-form button:hover {
  background: #0e4a5c;
}

/* ---------- auth (login / register) ---------- */

body .td-client-login {
  align-items: center;
  display: grid;
  min-height: 72vh;
  place-items: center;
}

body .td-client-auth-shell {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1.1fr;
  max-width: 1040px;
  overflow: hidden;
  width: 100%;
}

body .td-client-auth-copy {
  background: linear-gradient(155deg, var(--td-corp-teal) 0%, #0c4759 70%, var(--td-corp-ink) 100%);
  color: var(--td-corp-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px);
}

body .td-client-auth-copy .td-client-kicker {
  color: var(--td-corp-lime);
}

body .td-client-auth-copy h1 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 14px;
}

body .td-client-auth-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 24px;
}

body .td-client-auth-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body .td-client-auth-points span {
  align-items: center;
  display: flex;
  font-size: 13.5px;
  font-weight: 600;
  gap: 10px;
}

body .td-client-auth-points span::before {
  background: var(--td-corp-lime);
  border-radius: 50%;
  content: "";
  flex: none;
  height: 7px;
  width: 7px;
}

body .td-client-auth-card {
  background: var(--td-corp-white);
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(28px, 4vw, 48px);
  position: relative;
}

body .td-client-auth-toggle {
  display: none;
}

body .td-client-auth-tabs {
  background: var(--td-corp-bg);
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
  padding: 4px;
}

body .td-client-auth-tabs label {
  border-radius: 999px;
  color: var(--td-corp-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 0;
  text-align: center;
  transition: background 160ms ease, color 160ms ease;
}

body #td-auth-login:checked ~ .td-client-auth-tabs label[for="td-auth-login"],
body #td-auth-register:checked ~ .td-client-auth-tabs label[for="td-auth-register"] {
  background: var(--td-corp-teal);
  color: var(--td-corp-white);
}

body .td-client-auth-panel {
  display: none;
}

body #td-auth-login:checked ~ .td-client-auth-panel--login,
body #td-auth-register:checked ~ .td-client-auth-panel--register {
  display: block;
}

body .td-client-auth-head {
  margin-bottom: 18px;
}

body .td-client-auth-head h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 4px 0 6px;
}

body .td-client-auth-head p {
  color: var(--td-corp-muted);
  font-size: 13px;
  margin: 0;
}

body .td-client-auth-error {
  background: rgba(232, 93, 79, 0.12);
  border: 1px solid rgba(232, 93, 79, 0.3);
  border-radius: var(--td-radius-sm);
  color: var(--td-coral);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 16px;
  padding: 10px 14px;
}

body .td-client-auth-panel form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body .td-client-auth-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

body .td-client-auth-wide {
  grid-column: 1 / -1;
}

body .td-client-auth-panel label,
body .td-client-register-form label {
  color: var(--td-corp-ink);
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  font-weight: 600;
  gap: 6px;
}

body .td-client-auth-panel input[type="text"],
body .td-client-auth-panel input[type="email"],
body .td-client-auth-panel input[type="tel"],
body .td-client-auth-panel input[type="password"] {
  background: var(--td-corp-bg);
  border: 1px solid var(--td-corp-line);
  border-radius: var(--td-radius-sm);
  font-family: inherit;
  font-size: 13.5px;
  padding: 11px 13px;
  width: 100%;
}

body .td-client-auth-panel input:focus {
  background: var(--td-corp-white);
  border-color: var(--td-corp-teal);
  outline: none;
}

body .td-client-auth-check {
  align-items: center;
  flex-direction: row !important;
  font-weight: 500 !important;
  gap: 8px !important;
}

body .td-client-auth-check input {
  height: 15px;
  width: 15px;
}

body .td-client-auth-panel button[type="submit"] {
  background: var(--td-corp-teal);
  border: none;
  border-radius: 999px;
  color: var(--td-corp-white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
  padding: 13px 0;
  transition: background 140ms ease;
}

body .td-client-auth-panel button[type="submit"]:hover {
  background: #0e4a5c;
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  body .td-analytics-layout {
    grid-template-columns: 1fr 1fr;
  }

  body .td-analytics-card--latest {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  body .td-client-portal[data-td-client-portal] {
    grid-template-columns: 1fr;
  }

  body .td-client-sidebar {
    flex-direction: column;
    overflow: hidden;
    position: static;
  }

  body .td-client-sidebar-brand::after {
    display: none;
  }

  body .td-client-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 8px;
  }

  body .td-client-nav-link {
    flex: 1 1 auto;
  }

  body .td-client-nav-link:nth-child(1),
  body .td-client-nav-link:nth-child(2),
  body .td-client-nav-link:nth-child(3),
  body .td-client-nav-link:nth-child(4),
  body .td-client-nav-link:nth-child(5) {
    animation: none;
  }

  body .td-client-sidebar-foot {
    border-top: 1px solid var(--td-corp-line);
    flex: 1 1 100%;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 8px;
  }

  body .td-analytics-kpis {
    grid-template-columns: 1fr 1fr;
  }

  body .td-client-auth-shell {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  body .td-client-auth-copy {
    display: none;
  }
}

@media (max-width: 680px) {
  body .td-client-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  body .td-client-topbar-actions {
    width: 100%;
  }

  body .td-client-topbar-button,
  body .td-client-logout {
    flex: 1;
    text-align: center;
  }

  body .td-analytics-kpis {
    grid-template-columns: 1fr;
  }

  body .td-client-form-grid {
    grid-template-columns: 1fr;
  }

  body .td-client-auth-grid {
    grid-template-columns: 1fr;
  }

  body .td-ticket-board {
    grid-auto-columns: 82vw;
    grid-template-columns: unset;
    grid-auto-flow: column;
  }
}

@media (max-width: 480px) {
  body .td-client-nav {
    flex-direction: column;
  }
}

/* ── Form-panel split layout ──────────────────────────────────────────── */

body .td-client-form-panel {
  display: none;
  grid-template-columns: 300px 1fr;
  grid-template-rows: 1fr;
  min-height: 100%;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

body .td-client-form-panel.is-active {
  display: grid !important;
}

/* Hide topbar on form pages */
body .td-client-portal[data-td-active-page="profile"] .td-client-topbar,
body .td-client-portal[data-td-active-page="company"] .td-client-topbar,
body .td-client-portal[data-td-active-page="create-ticket"] .td-client-topbar {
  display: none;
}

/* Adjust workspace when topbar hidden */
body .td-client-portal[data-td-active-page="profile"] .td-client-workspace,
body .td-client-portal[data-td-active-page="company"] .td-client-workspace,
body .td-client-portal[data-td-active-page="create-ticket"] .td-client-workspace {
  padding-top: 0;
}

/* ── Aside (teal gradient left column) ───────────────────────────────── */

body .td-client-form-aside {
  background: linear-gradient(160deg, var(--td-corp-teal) 0%, #0a3d4d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
  animation: td-aside-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

body .td-client-form-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(217,240,0,0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(91,178,189,0.12) 0%, transparent 55%);
  pointer-events: none;
}

body .td-client-form-aside::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(217,240,0,0.05);
  pointer-events: none;
}

@keyframes td-aside-in {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: none; }
}

body .td-client-form-aside-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

body .td-client-form-aside-inner .td-client-kicker {
  color: var(--td-corp-lime);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

body .td-client-form-aside-inner h2 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

body .td-client-form-aside-meta {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  margin: 0;
  max-width: 200px;
  line-height: 1.5;
}

/* Avatar / logo circle */
body .td-client-form-aside-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  flex-shrink: 0;
}

body .td-client-form-aside-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Logo (company) — square-ish */
body .td-client-form-aside-logo {
  border-radius: 16px;
}

body .td-client-form-aside-logo span {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

/* SVG icon for create-ticket aside */
body .td-client-form-aside-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  flex-shrink: 0;
}

body .td-client-form-aside-icon svg {
  width: 48px;
  height: 48px;
}

/* Chip (ticket count / INN) */
body .td-client-form-aside-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(217,240,0,0.12);
  border: 1px solid rgba(217,240,0,0.25);
  border-radius: 10px;
  padding: 8px 20px;
  margin-top: 4px;
}

body .td-client-form-aside-chip strong {
  color: var(--td-corp-lime);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

body .td-client-form-aside-chip span {
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Tips list */
body .td-client-form-aside-tips {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body .td-client-form-aside-tips li {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

body .td-client-form-aside-tips li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--td-corp-lime);
  font-weight: 700;
  font-size: 12px;
}

/* ── Form body (right column) ─────────────────────────────────────────── */

body .td-client-form-body {
  background: var(--td-corp-bg);
  overflow-y: auto;
  padding: 48px 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: td-form-body-in 0.45s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes td-form-body-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

body .td-client-form-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--td-corp-ink);
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--td-corp-line);
}

/* Form grid within form-body */
body .td-client-form-body .td-client-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  max-width: none;
  animation: none;
}

body .td-client-form-body .td-client-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--td-corp-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: td-field-in 0.4s both;
}

@keyframes td-field-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Stagger each field */
body .td-client-form-body .td-client-form-grid label:nth-child(1)  { animation-delay: 0.10s; }
body .td-client-form-body .td-client-form-grid label:nth-child(2)  { animation-delay: 0.15s; }
body .td-client-form-body .td-client-form-grid label:nth-child(3)  { animation-delay: 0.20s; }
body .td-client-form-body .td-client-form-grid label:nth-child(4)  { animation-delay: 0.25s; }
body .td-client-form-body .td-client-form-grid label:nth-child(5)  { animation-delay: 0.30s; }
body .td-client-form-body .td-client-form-grid label:nth-child(6)  { animation-delay: 0.35s; }
body .td-client-form-body .td-client-form-grid label:nth-child(7)  { animation-delay: 0.40s; }
body .td-client-form-body .td-client-form-grid label:nth-child(8)  { animation-delay: 0.45s; }

body .td-client-form-body input[type="text"],
body .td-client-form-body input[type="email"],
body .td-client-form-body input[type="tel"],
body .td-client-form-body input[type="url"],
body .td-client-form-body input[type="password"],
body .td-client-form-body input[type="file"],
body .td-client-form-body select,
body .td-client-form-body textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--td-corp-line);
  border-radius: 10px;
  background: #fff;
  color: var(--td-corp-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  box-sizing: border-box;
}

body .td-client-form-body input[type="text"]:focus,
body .td-client-form-body input[type="email"]:focus,
body .td-client-form-body input[type="tel"]:focus,
body .td-client-form-body input[type="url"]:focus,
body .td-client-form-body input[type="password"]:focus,
body .td-client-form-body select:focus,
body .td-client-form-body textarea:focus {
  border-color: var(--td-corp-teal);
  box-shadow: 0 0 0 3px rgba(20,92,114,0.12);
  background: #fff;
}

body .td-client-form-body input[type="file"] {
  padding: 8px 12px;
  cursor: pointer;
}

body .td-client-form-body select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235d7580'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

body .td-client-form-body textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

body .td-client-form-body .td-client-form-wide {
  grid-column: 1 / -1;
}

body .td-client-form-body button[type="submit"] {
  align-self: flex-start;
  padding: 12px 32px;
  border-radius: 10px;
  border: none;
  background: var(--td-corp-teal);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(20,92,114,0.28);
  animation: td-field-in 0.4s 0.50s both;
}

body .td-client-form-body button[type="submit"]:hover {
  background: #0e4a5c;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(20,92,114,0.35);
}

body .td-ticket-date-note {
  font-size: 12px;
  color: var(--td-corp-muted);
  margin: -16px 0 0;
}

/* ── Responsive: stack at 840px ──────────────────────────────────────── */

@media (max-width: 840px) {
  body .td-client-form-panel.is-active {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr;
  }

  body .td-client-form-aside {
    padding: 32px 24px;
  }

  body .td-client-form-aside-inner {
    flex-direction: row;
    text-align: left;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
  }

  body .td-client-form-aside-inner h2 {
    font-size: 18px;
  }

  body .td-client-form-aside-avatar,
  body .td-client-form-aside-logo,
  body .td-client-form-aside-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
  }

  body .td-client-form-aside-tips {
    display: none;
  }

  body .td-client-form-body {
    padding: 28px 24px 40px;
  }

  body .td-client-form-body .td-client-form-grid {
    grid-template-columns: 1fr;
  }

  /* Show topbar on mobile even for form pages */
  body .td-client-portal[data-td-active-page="profile"] .td-client-topbar,
  body .td-client-portal[data-td-active-page="company"] .td-client-topbar,
  body .td-client-portal[data-td-active-page="create-ticket"] .td-client-topbar {
    display: flex;
  }
}

/* ── Vibe Widget — enhanced animations ───────────────────────────────── */

/* Entry: slide-bounce in from below on load */
@keyframes td-vibe-entry {
  0%   { opacity: 0; transform: translateY(32px) scale(0.82); }
  60%  { opacity: 1; transform: translateY(-6px) scale(1.04); }
  80%  { transform: translateY(3px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

body .td-vibe-widget {
  animation: td-vibe-entry 0.72s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Aura: dual-layer counter-rotating conic gradients for richer glow */
@keyframes tdVibeWidgetAura {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes tdVibeWidgetAura2 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

body .td-vibe-widget-toggle::before {
  animation: tdVibeWidgetAura 6s linear infinite;
  background: conic-gradient(
    from 0deg,
    rgba(21,94,239,0.0),
    rgba(0,184,217,0.65),
    rgba(128,221,50,0.8),
    rgba(217,240,0,0.5),
    rgba(0,184,217,0.3),
    rgba(21,94,239,0.0)
  );
  filter: blur(9px);
  opacity: 0.82;
}

body .td-vibe-widget-toggle::after {
  animation: tdVibeWidgetAura2 9s linear infinite;
  background: conic-gradient(
    from 180deg,
    rgba(128,221,50,0.0),
    rgba(21,94,239,0.4),
    rgba(0,184,217,0.35),
    rgba(128,221,50,0.0)
  );
  border-radius: 34px;
  content: '';
  filter: blur(14px);
  inset: -12px;
  opacity: 0.55;
  position: absolute;
  z-index: -1;
}

/* Status dot — pulsing beacon */
@keyframes td-vibe-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(128,221,50,0.6), 0 0 0 5px rgba(128,221,50,0.16); }
  50%       { box-shadow: 0 0 0 8px rgba(128,221,50,0), 0 0 0 5px rgba(128,221,50,0.16); }
}

body .td-vibe-widget-status {
  animation: td-vibe-pulse 2.4s ease-in-out infinite;
}

/* Float: bigger, more dynamic idle sway */
@keyframes tdVibeWidgetFloat {
  0%   { transform: translateX(-50%) translateY(2px) rotate(-1.5deg); }
  25%  { transform: translateX(-50%) translateY(-4px) rotate(0.5deg); }
  50%  { transform: translateX(-50%) translateY(-5px) rotate(1.8deg); }
  75%  { transform: translateX(-50%) translateY(-2px) rotate(-0.3deg); }
  100% { transform: translateX(-50%) translateY(2px) rotate(-1.5deg); }
}

body .td-vibe-widget-avatar img {
  animation: tdVibeWidgetFloat 5.2s ease-in-out infinite;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.38)) drop-shadow(0 0 8px rgba(0,184,217,0.25));
  transition: filter 0.3s ease;
}

/* Hover — spring lift */
body .td-vibe-widget-toggle:hover,
body .td-vibe-widget-toggle:focus-visible,
body .td-vibe-widget.is-open .td-vibe-widget-toggle {
  box-shadow:
    0 30px 80px rgba(8,13,27,0.38),
    0 0 0 8px rgba(0,184,217,0.14),
    0 0 32px rgba(128,221,50,0.2),
    inset 0 1px 0 rgba(255,255,255,0.18);
  transform: perspective(520px)
    rotateX(var(--td-widget-tilt-x, 0deg))
    rotateY(var(--td-widget-tilt-y, 0deg))
    translateY(-5px) scale(1.04);
  transition: box-shadow 220ms ease, transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

body .td-vibe-widget-toggle:hover .td-vibe-widget-avatar img {
  filter: drop-shadow(0 16px 26px rgba(0,0,0,0.42)) drop-shadow(0 0 14px rgba(0,184,217,0.4));
}

/* Wave: more expressive */
@keyframes tdVibeWidgetWave {
  0%   { transform: translateX(-50%) translateY(2px) rotate(-1deg) scale(1); }
  12%  { transform: translateX(-50%) translateY(-8px) rotate(-9deg) scale(1.05); }
  28%  { transform: translateX(-50%) translateY(-6px) rotate(7deg) scale(1.05); }
  44%  { transform: translateX(-50%) translateY(-7px) rotate(-7deg) scale(1.04); }
  60%  { transform: translateX(-50%) translateY(-4px) rotate(5deg) scale(1.03); }
  76%  { transform: translateX(-50%) translateY(-2px) rotate(-3deg) scale(1.01); }
  100% { transform: translateX(-50%) translateY(2px) rotate(-1deg) scale(1); }
}

/* Panel — richer open animation */
body .td-vibe-widget-panel {
  transform: translate3d(6px, 20px, 0) scale(0.92);
  transform-origin: 98% 100%;
  transition:
    opacity 200ms ease,
    transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

body .td-vibe-widget.is-open .td-vibe-widget-panel {
  transform: translate3d(0, 0, 0) scale(1);
}

/* Panel top accent bar — animated gradient sweep */
@keyframes td-vibe-bar-sweep {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

body .td-vibe-widget-panel::before {
  background: linear-gradient(90deg, #155eef, #00b8d9, #80dd32, #d9f000, #00b8d9, #155eef);
  background-size: 300% 100%;
  animation: td-vibe-bar-sweep 4s linear infinite;
  height: 3px;
}

/* Panel items — stagger fade-in when panel opens */
@keyframes td-vibe-item-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

body .td-vibe-widget.is-open .td-vibe-widget-kicker {
  animation: td-vibe-item-in 0.3s 0.05s both;
}
body .td-vibe-widget.is-open .td-vibe-widget-panel strong {
  animation: td-vibe-item-in 0.3s 0.10s both;
}
body .td-vibe-widget.is-open .td-vibe-widget-panel p:not(.td-vibe-widget-kicker) {
  animation: td-vibe-item-in 0.3s 0.15s both;
}
body .td-vibe-widget.is-open .td-vibe-widget-actions {
  animation: td-vibe-item-in 0.3s 0.22s both;
}

/* Action buttons — spring bounce + glow on hover */
body .td-vibe-widget-actions a {
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 160ms ease;
}

body .td-vibe-widget-actions a:hover,
body .td-vibe-widget-actions a:focus {
  background: #155eef;
  border-color: #155eef;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(21,94,239,0.32);
}

body .td-vibe-widget-actions a:first-child:hover,
body .td-vibe-widget-actions a:first-child:focus {
  background: #1a2340;
  border-color: #1a2340;
  box-shadow: 0 6px 18px rgba(12,17,34,0.38);
}

/* Label chip — subtle float sync */
body .td-vibe-widget-label {
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 160ms ease;
}

body .td-vibe-widget.is-open .td-vibe-widget-label {
  opacity: 0;
  transform: translateY(4px) scale(0.9);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body .td-vibe-widget,
  body .td-vibe-widget-toggle::after,
  body .td-vibe-widget-panel::before,
  body .td-vibe-widget.is-open .td-vibe-widget-kicker,
  body .td-vibe-widget.is-open .td-vibe-widget-panel strong,
  body .td-vibe-widget.is-open .td-vibe-widget-panel p:not(.td-vibe-widget-kicker),
  body .td-vibe-widget.is-open .td-vibe-widget-actions {
    animation: none !important;
  }
  body .td-vibe-widget-status {
    animation: none !important;
    box-shadow: 0 0 0 5px rgba(128,221,50,0.16) !important;
  }
}

/* ── Tickets page tweaks ─────────────────────────────────────────────── */

/* Hide "Создать заявку" button in topbar on tickets page */
body .td-client-portal[data-td-active-page="tickets"] .td-client-topbar-button {
  display: none;
}

/* Kanban column header — flex layout for + button */
body .td-ticket-column > header {
  align-items: center;
  display: flex;
  gap: 8px;
}

body .td-ticket-column > header h2 {
  flex: 1;
}

/* "+" create button */
body .td-ticket-col-add {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(20, 92, 114, 0.08);
  border: 1.5px solid rgba(20, 92, 114, 0.18);
  color: var(--td-corp-teal);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body .td-ticket-col-add:hover {
  background: var(--td-corp-teal);
  border-color: var(--td-corp-teal);
  transform: scale(1.12);
}

/* Plus icon via pseudo-elements */
body .td-ticket-col-add-icon {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
}

body .td-ticket-col-add-icon::before,
body .td-ticket-col-add-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: background 0.18s ease;
}

body .td-ticket-col-add-icon::before {
  width: 10px;
  height: 2px;
  top: 4px;
  left: 0;
}

body .td-ticket-col-add-icon::after {
  width: 2px;
  height: 10px;
  top: 0;
  left: 4px;
}

body .td-ticket-col-add:hover .td-ticket-col-add-icon::before,
body .td-ticket-col-add:hover .td-ticket-col-add-icon::after {
  background: #fff;
}

/* Tooltip */
body .td-ticket-col-add-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  white-space: nowrap;
  background: var(--td-corp-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.94);
  transform-origin: bottom right;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body .td-ticket-col-add-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 8px;
  border: 5px solid transparent;
  border-top-color: var(--td-corp-ink);
}

body .td-ticket-col-add:hover .td-ticket-col-add-tip,
body .td-ticket-col-add:focus-visible .td-ticket-col-add-tip {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Comment form — full width, button below ─────────────────────────── */

body .td-ticket-comment-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body .td-ticket-comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border-radius: 10px 10px 0 0;
  border-bottom: none;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--td-corp-ink);
  background: #fff;
  border: 1.5px solid var(--td-corp-line);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 70px;
}

body .td-ticket-comment-form textarea:focus {
  border-color: var(--td-corp-teal);
  box-shadow: 0 0 0 3px rgba(20, 92, 114, 0.10);
}

body .td-ticket-comment-footer {
  display: flex;
  justify-content: flex-end;
  background: #f8fafb;
  border: 1.5px solid var(--td-corp-line);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 8px 10px;
}

body .td-ticket-comment-form button[type="submit"] {
  padding: 7px 18px;
  border-radius: 7px;
  border: none;
  background: var(--td-corp-teal);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

body .td-ticket-comment-form button[type="submit"]:hover {
  background: #0e4a5c;
  transform: translateY(-1px);
}
