/*
Theme Name: _TECHDOGMA Editorial
Author: _TECHDOGMA
Description: A minimalist editorial WordPress theme for essays about technology, philosophy, values, privacy, software freedom, and digital culture.
Version: 2.0.38
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techdogma
Tags: blog, one-column, custom-logo, custom-menu, editor-style, featured-images, translation-ready, wide-blocks
*/

@font-face {
  font-family: "Fira Sans Condensed";
  src: url("assets/fonts/FiraSansCondensed-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans Condensed";
  src: url("assets/fonts/FiraSansCondensed-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans Condensed";
  src: url("assets/fonts/FiraSansCondensed-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans Condensed";
  src: url("assets/fonts/FiraSansCondensed-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans Condensed";
  src: url("assets/fonts/FiraSansCondensed-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans Condensed";
  src: url("assets/fonts/FiraSansCondensed-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans Condensed";
  src: url("assets/fonts/FiraSansCondensed-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans Condensed";
  src: url("assets/fonts/FiraSansCondensed-SemiBoldItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans Extra Condensed";
  src: url("assets/fonts/FiraSansExtraCondensed-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans Extra Condensed";
  src: url("assets/fonts/FiraSansExtraCondensed-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans Extra Condensed";
  src: url("assets/fonts/FiraSansExtraCondensed-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --td-bg: #e8e7e7;
  --td-bg-soft: #f0efef;
  --td-ink: #353535;
  --td-ink-dark: #181921;
  --td-red: #e35151;
  --td-muted: #686868;
  --td-line: rgba(53, 53, 53, 0.55);
  --td-hover: rgba(255, 255, 255, 0.3);
  --td-panel: #e8e7e7;
  --td-shadow: rgba(24, 25, 33, 0.08);
  --td-container: 1100px;
  --td-reading: 760px;
  --td-gutter: clamp(1.25rem, 4vw, 3.5rem);
  --td-display: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  --td-sans: "Fira Sans Condensed", "Arial Narrow", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--td-bg);
  color: var(--td-ink);
  font-family: var(--td-sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--td-red);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--td-red);
  outline-offset: 4px;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  position: fixed;
  z-index: 100000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  background: var(--td-ink-dark);
  color: #fff;
  font-weight: 800;
}

.td-container {
  width: min(var(--td-container), calc(100% - (2 * var(--td-gutter))));
  margin-inline: auto;
}

.site {
  min-height: calc(100vh - 176px);
}

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--td-bg);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--td-container), calc(100% - (2 * var(--td-gutter))));
  min-height: 88px;
  margin-inline: auto;
  gap: 2rem;
}

.site-branding {
  flex: 0 0 auto;
}

.custom-logo-link {
  display: block;
}

.custom-logo {
  width: auto;
  max-height: 56px;
}

.td-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--td-ink-dark);
  font-family: var(--td-display);
  font-size: var(--td-wordmark-size, 44px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.td-wordmark__mark,
.td-wordmark__dogma {
  color: var(--td-ink-dark);
}

.td-wordmark__tech {
  color: #e35151;
}

.td-wordmark:hover,
.td-wordmark:focus {
  color: var(--td-ink-dark);
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu a {
  position: relative;
  display: block;
  padding: 1.75rem 0 1.2rem;
  color: var(--td-ink);
  font-family: var(--td-display);
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-menu a::after {
  position: absolute;
  right: 0;
  bottom: 0.85rem;
  left: 0;
  height: 2px;
  background: var(--td-red);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  color: var(--td-red);
}

.primary-menu a:hover::after,
.primary-menu a:focus::after,
.primary-menu .current-menu-item > a::after,
.primary-menu .current_page_item > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.td-social-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.td-social-links--header {
  padding-left: 0.8rem;
  border-left: 1px solid rgba(53, 53, 53, 0.35);
}

.td-social-links a {
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--td-ink);
  place-items: center;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.td-social-links a:hover,
.td-social-links a:focus {
  background: var(--td-hover);
  color: var(--td-red);
}

.td-social-links svg {
  width: 19px;
  height: 19px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.td-social-links .td-social-icon__dot {
  fill: currentColor;
  stroke: none;
}

.td-social-links .td-social-icon--x {
  fill: currentColor;
  stroke: none;
}

.td-social-links .td-social-icon--kofi {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: none;
}

.td-search-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--td-ink);
  cursor: pointer;
  place-items: center;
}

.td-search-toggle:hover,
.td-search-toggle:focus,
.td-search-toggle[aria-expanded="true"] {
  background: var(--td-hover);
  color: var(--td-red);
}

.td-search-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.9;
}

.td-search-panel {
  position: absolute;
  z-index: 101;
  top: 100%;
  right: 0;
  left: 0;
  padding: 1.1rem var(--td-gutter);
  border-top: 1px solid rgba(53, 53, 53, 0.18);
  border-bottom: 1px solid var(--td-line);
  background: var(--td-panel);
  box-shadow: 0 18px 30px var(--td-shadow);
}

.td-search-panel[hidden] {
  display: none;
}

.td-search-panel__inner {
  display: flex;
  align-items: center;
  width: min(var(--td-container), 100%);
  margin-inline: auto;
  gap: 0.75rem;
}

.td-search-panel__form {
  display: flex;
  flex: 1;
  gap: 0.65rem;
}

.td-search-panel__field {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--td-line);
  border-radius: 0;
  background: var(--td-bg-soft);
  color: var(--td-ink-dark);
  font-weight: 600;
}

.td-search-panel__submit {
  min-height: 52px;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--td-red);
  background: var(--td-red);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
}

.td-search-panel__close {
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--td-ink-dark);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  place-items: center;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--td-ink);
  cursor: pointer;
}

.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after {
  display: block;
  width: 28px;
  height: 3px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle__lines {
  position: relative;
}

.menu-toggle__lines::before,
.menu-toggle__lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle__lines::before {
  top: -8px;
}

.menu-toggle__lines::after {
  top: 8px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Front page */
.front-main {
  overflow: hidden;
}

.td-hero {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  width: min(var(--td-container), calc(100% - (2 * var(--td-gutter))));
  min-height: 38.5rem;
  padding: clamp(2.5rem, 5vw, 4.25rem);
  margin: 0.75rem auto 0;
}

.td-hero__inner {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: min(760px, 100%);
  margin-left: auto;
  text-align: right;
}

.td-hero-featured {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 100%;
  max-width: 390px;
}

.td-hero-featured__label {
  padding-bottom: 0.75rem;
  margin: 0;
  border-bottom: 2px solid var(--td-red);
  color: var(--td-red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.td-hero-featured__list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.td-hero-featured__item {
  margin: 0;
  border-bottom: 1px solid var(--td-line);
}

.td-hero-featured__item a {
  display: block;
  padding: 0.78rem 0 0.82rem;
  color: var(--td-ink);
  text-decoration: none;
}

.td-hero-featured__item--with-image a {
  display: grid;
  grid-template-columns: clamp(68px, 5.8vw, 88px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.7rem, 1.2vw, 0.95rem);
}

.td-hero-featured__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(53, 53, 53, 0.06);
}

.td-hero-featured__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.48) contrast(0.92);
  opacity: 0.7;
  transition: filter 180ms ease, opacity 180ms ease, transform 220ms ease;
}

.td-hero-featured__item a:hover .td-hero-featured__image img,
.td-hero-featured__item a:focus-visible .td-hero-featured__image img {
  filter: saturate(0.72) contrast(0.98);
  opacity: 0.9;
  transform: scale(1.025);
}

.td-hero-featured__copy {
  display: block;
  min-width: 0;
}

.td-hero-featured__category {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--td-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.td-hero-featured__title {
  display: block;
  font-family: var(--td-display);
  font-size: clamp(1.08rem, 1.45vw, 1.38rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
}

.td-hero-featured__item a:hover .td-hero-featured__title,
.td-hero-featured__item a:focus-visible .td-hero-featured__title {
  color: var(--td-red);
}

.td-hero__title {
  display: flex;
  width: 100%;
  align-items: flex-end;
  flex-direction: column;
  padding: 0;
  margin: 0;
  color: var(--td-ink);
  font-family: var(--td-display);
  font-size: clamp(4.25rem, 8vw, 7.5rem);
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.86;
  text-align: right !important;
  text-transform: uppercase;
}

.td-hero__title span {
  display: block;
  width: 100%;
  text-align: right;
}

.td-hero__intro {
  width: min(580px, 100%);
  margin: 2.25rem 0 0 auto;
  color: var(--td-ink);
  font-size: clamp(1.1rem, 1.7vw, 1.38rem);
  font-weight: 700;
  line-height: 1.35;
}

.td-latest {
  width: min(var(--td-container), calc(100% - (2 * var(--td-gutter))));
  margin: clamp(2.5rem, 4.5vw, 4.25rem) auto 0;
  scroll-margin-top: 2rem;
}

.td-section-title {
  margin: 0 0 2rem;
  color: var(--td-ink);
  font-family: var(--td-display);
  font-size: clamp(2.35rem, 4.2vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 0.95;
  text-transform: uppercase;
}

.essay-list {
  border-bottom: 1px solid var(--td-line);
}

.essay-row {
  margin: 0;
  border-top: 1px solid var(--td-line);
}

.essay-row__link,
.essay-row__static {
  display: block;
  padding: 1.7rem 0 1.55rem;
  color: var(--td-ink);
  text-decoration: none;
}

.essay-row__link {
  transition: padding-left 180ms ease, color 180ms ease;
}

.essay-row__link:hover,
.essay-row__link:focus {
  padding-left: 0.65rem;
  color: var(--td-ink);
}

.essay-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.2rem;
  margin-bottom: 0.65rem;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.essay-row__topic {
  color: var(--td-red);
  font-weight: 800;
}

.essay-row__title {
  max-width: 1000px;
  margin: 0;
  color: inherit;
  font-family: var(--td-display);
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1;
}

.td-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
  color: var(--td-red);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
  text-transform: uppercase;
}

.td-text-link__arrow {
  font-size: 1.4em;
  transition: transform 180ms ease;
}

.td-text-link:hover .td-text-link__arrow,
.td-text-link:focus .td-text-link__arrow {
  transform: translateX(0.35rem);
}

.td-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 9vw, 8rem);
  width: min(var(--td-container), calc(100% - (2 * var(--td-gutter))));
  margin: clamp(5.5rem, 10vw, 9rem) auto 0;
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.td-lower__panel {
  align-self: start;
  scroll-margin-top: 2rem;
}

.td-lower__title {
  margin: 0 0 1.25rem;
  font-family: var(--td-display);
  font-size: clamp(2.15rem, 3.7vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

.td-lower__copy {
  max-width: 440px;
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.38;
}

.td-lower__rule {
  width: 68px;
  height: 4px;
  margin-top: 1.5rem;
  background: var(--td-red);
}

.td-kofi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.7rem 1.05rem;
  margin-top: 1.5rem;
  border: 2px solid var(--td-red);
  border-radius: 2px;
  background: var(--td-red);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.td-kofi-button:hover,
.td-kofi-button:focus {
  background: transparent;
  color: var(--td-red);
}

.td-kofi-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Footer */
.site-footer {
  padding: 0 var(--td-gutter);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(var(--td-container), 100%);
  min-height: 108px;
  margin-inline: auto;
  border-top: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.techdogma-front-page .site-footer__inner {
  border-top: 1px solid var(--td-line);
}

.site-footer__copy {
  margin: 0;
}

.footer-menu {
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-menu a {
  font-weight: 800;
  text-decoration: none;
}

/* Back to top */
.td-back-to-top {
  position: fixed;
  z-index: 110;
  right: var(--td-gutter);
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--td-ink);
  border-radius: 0;
  background: var(--td-paper);
  box-shadow: 0 8px 24px rgba(24, 25, 33, 0.12);
  color: var(--td-ink);
  font-family: var(--td-body);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  text-transform: uppercase;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.td-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.td-back-to-top:hover,
.td-back-to-top:focus-visible {
  border-color: var(--td-red);
  background: var(--td-red);
  color: #fff;
}

.td-back-to-top svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Discreet first-visit cookie notice */
.td-cookie-notice {
  position: fixed;
  z-index: 120;
  right: var(--td-gutter);
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(680px, calc(100% - (2 * var(--td-gutter))));
  padding: 0.85rem 0.95rem 0.85rem 1.1rem;
  background: var(--td-ink-dark);
  box-shadow: 0 12px 34px rgba(24, 25, 33, 0.2);
  color: #fff;
}

.td-cookie-notice[hidden] {
  display: none;
}

.td-cookie-notice p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.td-cookie-notice strong {
  color: var(--td-red);
  font-weight: 900;
}

.td-cookie-notice a {
  margin-left: 0.25rem;
  font-weight: 800;
}

.td-cookie-notice button {
  flex: 0 0 auto;
  min-width: 50px;
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.06em;
}

.td-cookie-notice button:hover,
.td-cookie-notice button:focus {
  border-color: var(--td-red);
  background: var(--td-red);
}

/* Archive, search and utility pages */
.td-page-main {
  width: min(var(--td-container), calc(100% - (2 * var(--td-gutter))));
  margin: 4rem auto 0;
  padding-bottom: 6rem;
}

.td-page-hero {
  width: min(780px, 100%);
  margin: 0 0 clamp(4rem, 8vw, 7rem) auto;
  text-align: right;
}

.td-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--td-red);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.td-page-title {
  margin: 0;
  font-family: var(--td-display);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.85;
  text-transform: uppercase;
}

.td-page-description {
  max-width: 560px;
  margin: 1.5rem 0 0 auto;
  font-size: 1.15rem;
  line-height: 1.45;
}

.td-blog-main,
.td-directory-main {
  width: min(var(--td-container), calc(100% - (2 * var(--td-gutter))));
  margin: 4rem auto 0;
  padding-bottom: 7rem;
}

.td-blog-main {
  margin-top: 2.5rem;
}

.td-blog-hero,
.td-directory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 8rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--td-line);
}

.td-blog-hero {
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 0;
}

.td-blog-hero__title,
.td-directory-hero__title {
  margin: 0;
  font-family: var(--td-display);
  font-size: clamp(6rem, 14vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.72;
  text-transform: uppercase;
}

.td-directory-hero__title {
  max-width: 1050px;
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  line-height: 0.8;
}

.td-directory-hero {
  display: block;
  max-width: 1120px;
  margin-bottom: 0;
}

.td-blog-hero__intro {
  padding-bottom: 0.3rem;
}

.td-directory-hero__intro {
  max-width: 790px;
  padding-bottom: 0;
  margin-top: 2rem;
}

.td-blog-hero__intro p {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.48;
}

.td-directory-hero__intro p {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
}

.td-blog-hero__intro .td-text-link,
.td-directory-hero__intro .td-text-link {
  margin-top: 1.5rem;
}

.td-blog-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  min-height: 580px;
  border-bottom: 1px solid var(--td-line);
}

.td-blog-feature--no-image {
  grid-template-columns: 1fr;
}

.td-blog-feature--no-image .td-blog-feature__content {
  max-width: 900px;
}

.td-blog-feature__content {
  display: flex;
  padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 4.5rem) clamp(2rem, 5vw, 4rem) 0;
  flex-direction: column;
  justify-content: center;
}

.td-blog-kicker {
  margin: 0 0 1rem;
  color: var(--td-red);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.td-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.2rem;
  color: var(--td-muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.td-blog-meta span:first-child {
  color: var(--td-red);
}

.td-blog-feature__title {
  max-width: 760px;
  margin: 1.25rem 0 0;
  font-family: var(--td-display);
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.88;
  text-wrap: balance;
}

.td-blog-feature__title a,
.td-blog-card__title a,
.td-directory-card__title a {
  color: inherit;
  text-decoration: none;
}

.td-blog-feature__title a:hover,
.td-blog-feature__title a:focus,
.td-blog-card__title a:hover,
.td-blog-card__title a:focus,
.td-directory-card__title a:hover,
.td-directory-card__title a:focus {
  color: var(--td-red);
}

.td-blog-feature__excerpt {
  max-width: 640px;
  margin: 1.6rem 0 0;
  font-size: 1.2rem;
  line-height: 1.5;
}

.td-blog-read-link,
.td-directory-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  margin-top: 2rem;
  color: var(--td-red);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
}

.td-blog-feature__visual {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: var(--td-ink-dark);
  color: #fff;
  text-decoration: none;
}

.td-blog-feature__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.td-blog-feature__visual:hover img {
  transform: scale(1.025);
}

.td-blog-latest {
  padding-top: clamp(0.9rem, 1.5vw, 1.25rem);
}

.td-blog-latest__heading {
  margin: 0 0 1.25rem;
  color: var(--td-red);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.td-blog-latest__list {
  border-top: 0;
}

.td-blog-latest-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 18vw, 280px);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.5rem, 2.5vw, 2.25rem) 0;
  border-bottom: 1px solid var(--td-line);
}

.td-blog-latest-row--no-image {
  grid-template-columns: 1fr;
}

.td-blog-latest-row__content {
  align-self: center;
}

.td-blog-latest-row__title {
  max-width: 920px;
  margin: 1rem 0 0;
  font-family: var(--td-display);
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.92;
  text-wrap: balance;
}

.td-blog-latest-row__title a {
  color: inherit;
  text-decoration: none;
}

.td-blog-latest-row__title a:hover,
.td-blog-latest-row__title a:focus {
  color: var(--td-red);
}

.td-blog-latest-row__excerpt {
  max-width: 680px;
  margin: 1.25rem 0 0;
  color: var(--td-muted);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
}

.td-blog-latest-row .td-blog-read-link {
  margin-top: 1.35rem;
}

.td-blog-latest-row__image {
  display: block;
  align-self: center;
  width: 100%;
  min-height: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--td-bg-soft);
}

.td-blog-latest-row__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.td-blog-latest-row__image:hover img {
  transform: scale(1.025);
}

.td-directory {
  display: grid;
  grid-template-columns: minmax(240px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(3rem, 8vw, 8rem);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.td-blog-listing {
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

.td-blog-listing__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.4rem;
}

.td-blog-listing__header h2 {
  margin: 0;
  font-family: var(--td-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.9;
  text-transform: uppercase;
}

.td-blog-listing__header p {
  margin: 0;
  color: var(--td-muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

.td-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--td-line);
  border-left: 1px solid var(--td-line);
}

.td-blog-card {
  display: flex;
  min-height: 420px;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border-right: 1px solid var(--td-line);
  border-bottom: 1px solid var(--td-line);
  flex-direction: column;
  transition: background-color 180ms ease;
}

.td-blog-card:hover {
  background: rgba(255, 255, 255, 0.22);
}

.td-blog-card__image {
  display: block;
  margin-bottom: 1.6rem;
  overflow: hidden;
  background: var(--td-bg-soft);
}

.td-blog-card__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 300ms ease;
}

.td-blog-card__image:hover img {
  transform: scale(1.025);
}

.td-blog-card__title {
  margin: 1.25rem 0 0;
  font-family: var(--td-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.94;
  text-wrap: balance;
}

.td-blog-card__excerpt {
  max-width: 510px;
  margin: 1.4rem 0 2rem;
  color: var(--td-muted);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.5;
}

.td-blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  color: var(--td-muted);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.td-blog-card__footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--td-line);
  color: var(--td-red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.td-blog-card__footer a:hover,
.td-blog-card__footer a:focus {
  border-color: var(--td-red);
  background: var(--td-red);
  color: #fff;
}

.td-directory-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.55fr);
  column-gap: clamp(2rem, 5vw, 4rem);
  min-height: 0;
  padding: clamp(2rem, 4vw, 3.25rem) 0;
  border-bottom: 1px solid var(--td-line);
}

.td-directory__header {
  align-self: start;
}

.td-directory__header h2 {
  margin: 0;
  font-family: var(--td-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.9;
  text-transform: uppercase;
}

.td-directory__header p {
  margin: 1.4rem 0 0;
  color: var(--td-muted);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.td-directory__header .td-directory__guide {
  max-width: 310px;
  color: var(--td-ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.td-directory-grid {
  border-top: 1px solid var(--td-line);
}

.td-directory-card__top {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.td-directory-card__index {
  color: var(--td-red);
  font-family: var(--td-display);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 0.8;
}

.td-directory-card__count {
  color: var(--td-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.td-directory-card__title {
  grid-column: 1;
  margin: 1.75rem 0 0;
  font-family: var(--td-display);
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.88;
  text-transform: uppercase;
  text-wrap: balance;
}

.td-directory-card__description {
  grid-column: 1;
  max-width: 520px;
  margin: 1.4rem 0 0;
  color: var(--td-muted);
  line-height: 1.48;
}

.td-directory-card__recent {
  grid-column: 2;
  grid-row: 2 / span 3;
  align-self: start;
  padding-top: 1.25rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--td-line);
}

.td-directory-card__recent > span {
  color: var(--td-red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.td-directory-card__recent ul {
  padding: 0;
  margin: 0.75rem 0 0;
  list-style: none;
}

.td-directory-card__recent li + li {
  margin-top: 0.55rem;
}

.td-directory-card__recent a {
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.td-directory-card__link {
  grid-column: 1;
  margin-top: 1.6rem;
  padding-top: 0;
}

.td-directory-empty {
  grid-column: 1 / -1;
  padding: clamp(2.5rem, 6vw, 5rem);
  border-right: 1px solid var(--td-line);
  border-bottom: 1px solid var(--td-line);
}

.td-directory-empty h2 {
  margin: 0;
  font-family: var(--td-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.td-directory-empty p {
  max-width: 600px;
  margin: 1rem 0 0;
  color: var(--td-muted);
}

/* Contact page */
.td-contact-main {
  width: min(var(--td-container), calc(100% - (2 * var(--td-gutter))));
  margin: 4rem auto 0;
  padding-bottom: 7rem;
}

.td-contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: end;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--td-line);
}

.td-contact-hero__title {
  max-width: 760px;
  margin: 0;
  font-family: var(--td-display);
  font-size: clamp(4.8rem, 7.4vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.82;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.td-contact-hero__intro {
  padding-bottom: 0.25rem;
}

.td-contact-hero__intro p {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  font-weight: 700;
  line-height: 1.5;
}

.td-contact-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.td-contact-topics li {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--td-line);
  color: var(--td-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.td-contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 0;
  border-bottom: 0;
}

.td-contact-aside {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem) 0;
  border-right: 1px solid var(--td-line);
}

.td-contact-aside h2 {
  margin: 0;
  font-family: var(--td-display);
  max-width: none;
  font-size: clamp(2.45rem, 3.5vw, 3.45rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.94;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.td-contact-aside h2 span {
  display: block;
  white-space: nowrap;
}

.td-contact-aside p {
  margin: 1.4rem 0 0;
  color: var(--td-muted);
  line-height: 1.55;
}

.td-contact-aside__rule {
  width: 54px;
  height: 4px;
  margin-top: 2rem;
  background: var(--td-red);
}

.td-contact-form-wrap {
  padding: clamp(2rem, 5vw, 4rem);
}

.td-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.td-contact-field {
  margin: 0;
}

.td-contact-field--full,
.td-contact-actions,
.td-contact-notice {
  grid-column: 1 / -1;
}

.td-contact-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.td-contact-field input,
.td-contact-field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--td-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.28);
  color: var(--td-ink);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.td-contact-field input {
  min-height: 52px;
}

.td-contact-field textarea {
  min-height: 210px;
  resize: vertical;
}

.td-contact-field input:focus,
.td-contact-field textarea:focus {
  border-color: var(--td-red);
  background: rgba(255, 255, 255, 0.48);
  outline: 0;
}

.td-contact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.td-contact-actions p {
  max-width: 420px;
  margin: 0;
  color: var(--td-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.td-contact-submit {
  min-height: 52px;
  padding: 0.8rem 1.35rem;
  border: 2px solid var(--td-red);
  border-radius: 0;
  background: var(--td-red);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.td-contact-submit:hover,
.td-contact-submit:focus {
  background: transparent;
  color: var(--td-red);
}

.td-contact-notice {
  padding: 1rem 1.1rem;
  margin: 0;
  border-left: 4px solid var(--td-red);
  background: rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

.td-contact-notice--success {
  border-left-color: var(--td-ink-dark);
}

.td-contact-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* About page and shared support panel */
.td-about-main {
  width: min(var(--td-container), calc(100% - (2 * var(--td-gutter))));
  margin: 4rem auto 0;
  padding-bottom: 7rem;
}

.td-about-hero {
  max-width: 1120px;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--td-line);
}

.td-about-hero__title {
  max-width: 1050px;
  margin: 0;
  font-family: var(--td-display);
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.8;
  text-transform: uppercase;
}

.td-about-hero__intro {
  max-width: 780px;
  margin: 2rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
}

.td-about-story {
  display: grid;
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(3rem, 8vw, 8rem);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.td-about-story__lead h2,
.td-about-story__body h2,
.td-support-panel h2 {
  margin: 0;
  font-family: var(--td-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.9;
  text-transform: uppercase;
}

.td-about-story__body {
  max-width: 760px;
}

.td-about-story__body p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.65;
}

.td-about-main .td-support-panel__content p {
  font-weight: 700;
}

/* Privacy policy */
.td-privacy-body {
  max-width: 760px;
}

.td-privacy-updated {
  margin: 1.25rem 0 0;
  color: var(--td-muted);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.td-privacy-body h2 {
  margin: 2.6rem 0 0.85rem;
  font-family: var(--td-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1;
  text-transform: uppercase;
}

.td-privacy-body h2:first-child {
  margin-top: 0;
}

.td-privacy-body p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.65;
}

.td-privacy-body p + p {
  margin-top: 1.15rem;
}

.td-privacy-body a {
  color: var(--td-red);
  font-weight: 700;
}

.td-about-story__body p + p {
  margin-top: 1.35rem;
}

.td-about-story__body h2 {
  margin-top: 3.5rem;
}

.td-about-story__body h2 + p {
  margin-top: 1.4rem;
}

.td-support-panel {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--td-line);
  border-bottom: 1px solid var(--td-line);
}

.td-support-panel__content {
  align-self: end;
}

.td-support-panel__content p {
  max-width: 670px;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
}

.td-contact-support {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

/* Support page */
.td-support-main {
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.td-support-hero__title {
  max-width: 1120px;
  font-size: clamp(4.25rem, 8.5vw, 7.8rem);
  text-wrap: balance;
}

.td-support-direct,
.td-support-other {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 8rem);
  margin-top: clamp(3.75rem, 7vw, 6rem);
}

.td-support-direct h2,
.td-support-outcomes h2,
.td-support-other h2,
.td-support-partner h2 {
  margin: 0;
  font-family: var(--td-display);
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}

.td-support-direct__content {
  align-self: end;
  max-width: 690px;
}

.td-support-direct__content > p:first-child,
.td-support-other__content > p,
.td-support-partner__content > p {
  margin: 0;
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  font-weight: 700;
  line-height: 1.55;
}

.td-support-direct__note {
  margin: 1rem 0 0;
  color: var(--td-muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.td-support-outcomes {
  padding: clamp(3rem, 6vw, 5rem);
  margin-top: clamp(4.5rem, 8vw, 7rem);
  background: rgba(255, 255, 255, 0.28);
}

.td-support-outcomes__header {
  max-width: 930px;
}

.td-support-outcomes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.75rem, 5vw, 4.5rem);
  border-top: 1px solid var(--td-line);
}

.td-support-outcomes__grid article {
  padding: 2.25rem clamp(1.25rem, 3vw, 2.5rem) 0;
  border-left: 1px solid var(--td-line);
}

.td-support-outcomes__grid article:first-child {
  padding-left: 0;
  border-left: 0;
}

.td-support-outcomes__grid article:last-child {
  padding-right: 0;
}

.td-support-outcomes__grid span {
  display: block;
  color: rgba(53, 53, 53, 0.2);
  font-family: var(--td-display);
  font-size: clamp(3.25rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 0.8;
}

.td-support-outcomes__grid h3 {
  margin: 1.5rem 0 0;
  font-family: var(--td-display);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 0.95;
  text-transform: uppercase;
}

.td-support-outcomes__grid p {
  margin: 1rem 0 0;
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.55;
}

.td-support-other {
  padding-bottom: clamp(3.75rem, 7vw, 6rem);
  border-bottom: 1px solid var(--td-line);
}

.td-support-other__content {
  align-self: end;
  max-width: 690px;
}

.td-support-links {
  display: grid;
  margin-top: 2rem;
  border-top: 1px solid var(--td-line);
}

.td-support-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--td-line);
  color: var(--td-ink-dark);
  font-family: var(--td-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  text-decoration: none;
  text-transform: uppercase;
}

.td-support-links a:hover,
.td-support-links a:focus {
  color: var(--td-red);
}

.td-support-partner {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(3rem, 6vw, 5rem);
  margin-top: clamp(4rem, 7vw, 6rem);
  background: var(--td-ink-dark);
  color: #fff;
}

.td-support-partner .td-eyebrow {
  color: var(--td-red);
}

.td-support-partner__content {
  align-self: end;
  max-width: 690px;
}

.td-text-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  margin-top: 1.75rem;
  border: 2px solid var(--td-red);
  background: var(--td-red);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.td-text-button:hover,
.td-text-button:focus {
  background: transparent;
  color: var(--td-red);
}

.td-support-disclosure {
  max-width: 850px;
  padding-left: 1rem;
  margin: 1.5rem 0 0 auto;
  border-left: 3px solid var(--td-red);
  color: var(--td-muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.navigation.pagination {
  margin-top: 2.5rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.page-numbers {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--td-line);
  color: var(--td-ink);
  font-weight: 700;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus {
  border-color: var(--td-red);
  background: var(--td-red);
  color: #fff;
}

.td-empty {
  max-width: 700px;
  padding: 2.25rem 0;
  border-top: 1px solid var(--td-line);
  border-bottom: 1px solid var(--td-line);
}

.td-empty h2 {
  margin-top: 0;
  font-family: var(--td-display);
  font-size: 2.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.search-form {
  display: flex;
  gap: 0.6rem;
  max-width: 620px;
  margin-top: 1.5rem;
}

.search-form label {
  flex: 1;
}

.search-field,
.td-content input[type="text"],
.td-content input[type="email"],
.td-content input[type="url"],
.td-content textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--td-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.25);
  color: var(--td-ink);
}

.search-submit,
.td-button,
.td-content input[type="submit"] {
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 2px solid var(--td-red);
  border-radius: 0;
  background: var(--td-red);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
}

/* Single post and pages */
.td-article {
  padding-bottom: 6rem;
}

.td-article__header {
  width: min(var(--td-container), calc(100% - (2 * var(--td-gutter))));
  margin: 4rem auto clamp(4rem, 8vw, 7rem);
}

.td-article__header-inner {
  width: min(980px, 100%);
  margin-left: auto;
}

.td-breadcrumb {
  margin-bottom: 1.25rem;
  color: var(--td-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.td-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.td-breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.td-breadcrumb li:not(:last-child)::after {
  margin: 0 0.55rem;
  color: var(--td-red);
  content: "/";
}

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

.td-breadcrumb a:hover,
.td-breadcrumb a:focus-visible {
  color: var(--td-red);
}

.td-breadcrumb [aria-current="page"] span {
  max-width: min(34rem, 58vw);
  overflow: hidden;
  color: var(--td-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-article__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem 1.4rem;
  margin-bottom: 1rem;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.td-article__category {
  color: var(--td-red);
}

.td-article__title {
  margin: 0;
  font-family: var(--td-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.88;
  text-align: right;
  text-wrap: balance;
}

.td-article__excerpt {
  width: min(620px, 100%);
  margin: 2rem 0 0 auto;
  font-size: 1.25rem;
  line-height: 1.45;
}

.td-featured-image {
  width: min(var(--td-reading), calc(100% - (2 * var(--td-gutter))));
  margin: -2rem auto 4rem;
}

.td-featured-image img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
}

.td-content {
  width: min(var(--td-reading), calc(100% - (2 * var(--td-gutter))));
  margin-inline: auto;
  font-size: clamp(1.16rem, 1.8vw, 1.3rem);
  line-height: 1.75;
}

.single-post .td-content {
  font-size: clamp(1.28rem, 2.05vw, 1.46rem);
  line-height: 1.78;
}

.single-post .td-content > p:first-of-type:not(.has-drop-cap)::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--td-ink);
  font-family: var(--td-display);
  font-size: 4.65em;
  font-weight: 900;
  line-height: 0.76;
  text-transform: uppercase;
}

.td-content > *:first-child {
  margin-top: 0;
}

.td-content p,
.td-content ul,
.td-content ol,
.td-content blockquote,
.td-content pre,
.td-content figure,
.td-content table {
  margin-top: 0;
  margin-bottom: 1.55em;
}

.td-content h2,
.td-content h3,
.td-content h4 {
  margin: 1.7em 0 0.65em;
  font-family: var(--td-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  text-wrap: balance;
}

.td-content h2 {
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.single-post .td-content h2 {
  margin-top: 1.2em;
  scroll-margin-top: 2rem;
}

.td-article-toc {
  padding: 1.5rem 1.6rem;
  margin: 0 0 2.4rem;
  border-top: 1px solid var(--td-line);
  border-bottom: 1px solid var(--td-line);
  background: rgba(255, 255, 255, 0.14);
}

.td-article-toc__title {
  margin: 0 0 0.8rem;
  color: var(--td-red);
  font-family: var(--td-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.td-article-toc ol {
  display: grid;
  gap: 0.42rem;
  padding-left: 1.35rem;
  margin: 0;
}

.td-article-toc a {
  color: var(--td-ink);
  font-weight: 700;
  text-decoration: none;
}

.td-article-toc a:hover,
.td-article-toc a:focus {
  color: var(--td-red);
}

.td-content h3 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.td-content h4 {
  font-size: 1.75rem;
}

.td-content a {
  color: var(--td-red);
  font-weight: 600;
}

.td-content blockquote {
  padding: 0.1rem 0 0.1rem 1.5rem;
  border-left: 5px solid var(--td-red);
  font-family: var(--td-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
}

.td-content code,
.td-content pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.td-content code {
  padding: 0.1em 0.3em;
  background: rgba(255, 255, 255, 0.35);
  font-size: 0.9em;
}

.td-content pre {
  max-width: 100%;
  padding: 1.25rem;
  overflow-x: auto;
  background: var(--td-ink-dark);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.55;
}

.td-content pre code {
  padding: 0;
  background: transparent;
}

.td-content table {
  width: 100%;
  border-collapse: collapse;
}

.td-content th,
.td-content td {
  padding: 0.75rem;
  border: 1px solid var(--td-line);
  text-align: left;
}

.td-content figcaption {
  margin-top: 0.65rem;
  color: var(--td-muted);
  font-size: 0.9rem;
  text-align: center;
}

.alignwide {
  width: min(var(--td-container), calc(100vw - (2 * var(--td-gutter))));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.wp-caption,
.gallery-caption {
  max-width: 100%;
}

.sticky {
  position: relative;
}

.bypostauthor {
  display: block;
}

.td-article-footer {
  width: min(var(--td-reading), calc(100% - (2 * var(--td-gutter))));
  margin: 3.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--td-line);
}

.td-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.td-tags a {
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--td-line);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.post-navigation {
  width: min(var(--td-container), calc(100% - (2 * var(--td-gutter))));
  margin: 5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--td-line);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.post-navigation a {
  display: block;
  font-family: var(--td-display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
}

.post-navigation .nav-next {
  text-align: right;
}

.nav-subtitle {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--td-red);
  font-family: var(--td-sans);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.td-related {
  width: min(var(--td-container), calc(100% - (2 * var(--td-gutter))));
  padding-top: 0;
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
  border-top: 0;
}

.td-related .td-blog-listing__header {
  margin-bottom: 0;
}

.td-related__heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1.55fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.3rem;
}

.td-related__heading p {
  margin: 0;
}

.td-related__heading h2 {
  margin: 0;
  font-family: var(--td-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: uppercase;
}

/* WordPress embeds and utilities */
.wp-block-embed,
.wp-block-image,
.wp-block-gallery {
  margin-bottom: 1.55em;
}

.wp-block-button__link {
  border-radius: 2px;
  background: var(--td-red);
  color: #fff;
  font-weight: 800;
}

.wp-block-separator {
  border-color: var(--td-line);
}

@media (min-width: 721px) and (max-width: 1180px) {
  .site-header__inner {
    gap: 1rem;
  }

  .td-wordmark {
    font-size: min(var(--td-wordmark-size, 44px), 38px);
  }

  .site-navigation {
    gap: 0.35rem;
  }

  .primary-menu {
    gap: 0.65rem;
  }

  .primary-menu a {
    font-size: 1.05rem;
  }

  .td-social-links--header {
    display: none;
  }
}

@media (max-width: 900px) {
  .td-hero {
    grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr);
    gap: 2.75rem;
    min-height: 35rem;
    padding: 2.75rem;
    margin-top: 0.75rem;
  }

  .td-blog-hero,
  .td-blog-feature,
  .td-blog-latest-row,
  .td-about-story,
  .td-directory,
  .td-support-panel,
  .td-contact-hero,
  .td-contact-layout {
    grid-template-columns: 1fr;
  }

  .td-related__heading {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .td-blog-hero {
    gap: 2rem;
  }

  .td-blog-feature__content {
    padding-right: 0;
  }

  .td-blog-feature__visual {
    min-height: 360px;
  }

  .td-blog-latest-row__image {
    justify-self: start;
    width: min(260px, 100%);
    min-height: 0;
  }

  .td-contact-hero {
    gap: 2rem;
  }

  .td-about-story,
  .td-support-panel {
    gap: 2.5rem;
  }

  .td-support-direct,
  .td-support-other,
  .td-support-partner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .td-support-outcomes__grid article,
  .td-support-outcomes__grid article:first-child,
  .td-support-outcomes__grid article:last-child {
    padding: 2rem 0;
    border-bottom: 1px solid var(--td-line);
    border-left: 0;
  }

  .td-support-outcomes__grid article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .td-contact-aside {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--td-line);
  }

  .td-contact-aside h2 {
    max-width: none;
  }

  .td-lower {
    gap: 3.5rem;
  }

  .td-article__title {
    font-size: clamp(3.7rem, 9vw, 6rem);
  }
}

@media (max-width: 720px) {
  :root {
    --td-gutter: 1.25rem;
  }

  body {
    font-size: 1.04rem;
  }

  .site-header__inner {
    min-height: 76px;
  }

  .td-wordmark {
    font-size: clamp(1.8rem, calc(var(--td-wordmark-size, 44px) * 0.78), 2.75rem);
  }

  .menu-toggle {
    position: relative;
    z-index: 102;
    display: block;
  }

  .site-navigation {
    position: fixed;
    z-index: 101;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 6rem 2rem 2rem;
    background-color: #e8e7e7;
    box-shadow: 0 0 0 100vmax #e8e7e7;
    opacity: 1;
    pointer-events: none;
    transform: translateY(-1rem);
    transition: transform 180ms ease, visibility 0s linear 180ms;
    visibility: hidden;
    clip-path: inset(0 -100vmax);
    isolation: isolate;
  }

  .td-search-toggle {
    width: 46px;
    height: 46px;
    margin-top: 0.4rem;
  }

  .td-search-panel {
    z-index: 103;
    padding: 1rem 1.25rem;
  }

  .td-search-panel__form {
    flex-direction: column;
  }

  .td-social-links--header {
    align-self: start;
    padding: 1.1rem 0 0;
    margin-top: 0.9rem;
    border-top: 1px solid rgba(53, 53, 53, 0.35);
    border-left: 0;
  }

  .td-social-links a {
    width: 46px;
    height: 46px;
  }

  .site-navigation.is-open {
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
    visibility: visible;
  }

  .primary-menu {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }

  .primary-menu a {
    padding: 0.45rem 0;
    font-family: var(--td-display);
    font-size: clamp(2.7rem, 13vw, 4.4rem);
    font-weight: 900;
    line-height: 1;
  }

  .primary-menu a::after {
    bottom: 0;
  }

  .td-article-toc {
    padding: 1.25rem;
    margin-bottom: 2rem;
  }

  .td-hero {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    min-height: 34rem;
    padding: 2rem 1.25rem;
    margin-top: 1rem;
  }

  .td-hero__inner {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    text-align: right;
  }

  .td-hero-featured {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
  }

  .td-hero__title {
    font-size: clamp(3.45rem, 15vw, 5rem);
    line-height: 0.88;
    text-align: right;
  }

  .td-hero__intro {
    width: 92%;
    margin-top: 1.75rem;
    font-size: 1.08rem;
  }

  .td-hero-featured__title {
    font-size: clamp(1.22rem, 2.7vw, 1.55rem);
  }

  .single-post .td-content > p:first-of-type:not(.has-drop-cap)::first-letter {
    font-size: 4.15em;
  }

  .td-latest {
    margin-top: 3rem;
  }

  .td-directory-main {
    margin-top: 3rem;
  }

  .td-blog-main {
    margin-top: 2rem;
  }

  .td-about-main {
    margin-top: 2.5rem;
  }

  .td-directory-hero {
    margin-bottom: 0;
  }

  .td-blog-hero {
    margin-bottom: 0;
  }

  .td-blog-hero__title {
    font-size: clamp(5.5rem, 27vw, 8rem);
  }

  .td-directory-hero__title {
    font-size: clamp(4.2rem, 20vw, 6.5rem);
  }

  .td-about-hero__title {
    font-size: clamp(3.8rem, 18vw, 6rem);
  }

  .td-support-hero__title {
    font-size: clamp(3.35rem, 15vw, 5.4rem);
  }

  .td-support-outcomes,
  .td-support-partner {
    padding: 2.25rem 1.5rem;
  }

  .td-blog-feature__visual {
    min-height: 300px;
  }

  .td-blog-feature__title {
    font-size: clamp(3.1rem, 14vw, 4.6rem);
  }

  .td-blog-listing__header,
  .td-directory__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .td-blog-grid,
  .td-directory-grid {
    grid-template-columns: 1fr;
  }

  .td-blog-card {
    min-height: 360px;
  }

  .td-directory-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .td-directory-card__recent {
    grid-column: 1;
    grid-row: auto;
  }

  .td-directory__header .td-directory__guide {
    max-width: 620px;
  }

  .td-contact-main {
    margin-top: 3rem;
  }

  .td-contact-hero__title {
    font-size: clamp(3.65rem, 16vw, 5.75rem);
  }

  .td-contact-aside h2 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

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

  .td-contact-field {
    grid-column: 1 / -1;
  }

  .td-contact-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .td-section-title {
    margin-bottom: 1.5rem;
  }

  .essay-row__link,
  .essay-row__static {
    padding: 1.35rem 0;
  }

  .essay-row__title {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .essay-row__link:hover,
  .essay-row__link:focus {
    padding-left: 0;
  }

  .td-lower {
    grid-template-columns: 1fr;
    gap: 4.25rem;
    margin-top: 6rem;
  }

  .td-lower__copy {
    max-width: 520px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    min-height: 130px;
  }

  .td-cookie-notice {
    right: var(--td-gutter);
    bottom: 0.75rem;
    align-items: flex-start;
  }

  .td-page-main,
  .td-article__header {
    margin-top: 3rem;
  }

  .td-page-hero,
  .td-article__header-inner {
    text-align: left;
  }

  .td-page-title {
    font-size: clamp(4rem, 20vw, 6rem);
    text-align: left;
  }

  .td-page-description {
    margin-left: 0;
  }

  .td-article__meta {
    justify-content: flex-start;
  }

  .td-breadcrumb ol {
    justify-content: flex-start;
  }

  .td-breadcrumb [aria-current="page"] span {
    max-width: 72vw;
  }

  .td-article__title {
    font-size: clamp(3.4rem, 16vw, 5rem);
    text-align: left;
  }

  .td-article__excerpt {
    margin-left: 0;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-next {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .td-hero__title {
    font-size: clamp(3rem, 14.7vw, 4rem);
  }

  .search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-menu {
    gap: 1.25rem;
  }

  .td-back-to-top span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .td-back-to-top {
    width: 44px;
    padding-inline: 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* More from _TECHDOGMA: two compact lists inspired by homepage Featured Articles. */
.td-blog-more-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.td-blog-more-column {
  min-width: 0;
  border-top: 2px solid var(--td-red);
}

.td-blog-more-row {
  margin: 0;
  border-bottom: 1px solid var(--td-line);
}

.td-blog-more-row:last-child {
  border-bottom: 0;
}

.td-blog-more-row__link {
  display: block;
  padding: clamp(0.85rem, 1.35vw, 1.05rem) 0 clamp(0.9rem, 1.4vw, 1.1rem);
  color: var(--td-ink);
  text-decoration: none;
}

.td-blog-more-row--with-image .td-blog-more-row__link {
  display: grid;
  grid-template-columns: clamp(72px, 6.4vw, 96px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.75rem, 1.3vw, 1rem);
}

.td-blog-more-row__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: transparent;
}

.td-blog-more-row__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.48) contrast(0.92);
  opacity: 0.7;
  transition: filter 180ms ease, opacity 180ms ease, transform 220ms ease;
}

.td-blog-more-row__link:hover .td-blog-more-row__image img,
.td-blog-more-row__link:focus-visible .td-blog-more-row__image img {
  filter: saturate(0.72) contrast(0.98);
  opacity: 0.9;
  transform: scale(1.025);
}

.td-blog-more-row__content {
  min-width: 0;
}

.td-blog-more-row__category {
  display: block;
  margin-bottom: 0.32rem;
  color: var(--td-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.td-blog-more-row__title {
  margin: 0;
  font-family: var(--td-display);
  font-size: clamp(1.25rem, 1.75vw, 1.62rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.06;
  text-wrap: balance;
}

.td-blog-more-row__link:hover .td-blog-more-row__title,
.td-blog-more-row__link:focus .td-blog-more-row__title {
  color: var(--td-red);
}

.td-blog-more-actions {
  display: flex;
  justify-content: center;
  padding-top: clamp(1.5rem, 3vw, 2.4rem);
}

.td-blog-more-button {
  appearance: none;
  min-width: 11rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--td-ink);
  background: transparent;
  color: var(--td-ink);
  cursor: pointer;
  font-family: var(--td-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.td-blog-more-button:hover,
.td-blog-more-button:focus-visible {
  border-color: var(--td-red);
  background: var(--td-red);
  color: #fff;
}

@media (max-width: 760px) {
  .td-blog-more-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .td-blog-more-column + .td-blog-more-column {
    border-top: 0;
  }

  .td-blog-more-row__title {
    font-size: clamp(1.28rem, 5.6vw, 1.7rem);
  }

  .td-blog-more-row--with-image .td-blog-more-row__link {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}

/* Compact article sharing at the beginning and end of every post. */
.td-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: 100%;
  padding: 0;
  background: transparent;
}

.td-share--top {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.td-share--bottom {
  margin-top: clamp(2.25rem, 4.5vw, 3.5rem);
}

.td-share__label {
  flex-basis: 100%;
  margin: 0 0 0.15rem;
  color: var(--td-red);
  font-family: var(--td-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.td-share__link,
.td-share__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  min-height: 2.05rem;
  padding: 0.36rem 0.58rem;
  border: 1px solid var(--td-line);
  background: transparent;
  color: var(--td-ink);
  cursor: pointer;
  font-family: var(--td-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
}

.td-share__link:hover,
.td-share__link:focus-visible,
.td-share__button:hover,
.td-share__button:focus-visible {
  border-color: var(--td-red);
  background: var(--td-red);
  color: #fff;
}

.td-share__status {
  color: var(--td-red);
  font-size: 0.72rem;
  font-weight: 700;
}

html[data-theme="dark"] .td-share__link,
html[data-theme="dark"] .td-share__button {
  border-color: rgba(198, 206, 216, 0.28);
}

html[data-theme="dark"] .td-share__link:hover,
html[data-theme="dark"] .td-share__link:focus-visible,
html[data-theme="dark"] .td-share__button:hover,
html[data-theme="dark"] .td-share__button:focus-visible {
  border-color: var(--td-red);
  background: var(--td-red);
  color: #fff !important;
}

@media (max-width: 520px) {
  .td-share {
    gap: 0.4rem;
  }

  .td-share__link,
  .td-share__button {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
    text-align: center;
  }
}

html[data-theme="dark"] .td-blog-more-button {
  border-color: var(--td-ink);
  color: var(--td-ink);
}

html[data-theme="dark"] .td-blog-more-button:hover,
html[data-theme="dark"] .td-blog-more-button:focus-visible {
  border-color: var(--td-red);
  background: var(--td-red);
  color: #fff !important;
}


/* Subtle site-wide motion for editorial “Read more” links. */
.td-blog-read-link,
.td-blog-card__footer a {
  position: relative;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.td-blog-read-link span[aria-hidden="true"],
.td-blog-card__footer a span[aria-hidden="true"] {
  display: inline-block;
  transition: transform 180ms ease;
}

.td-blog-read-link:hover,
.td-blog-read-link:focus-visible,
.td-blog-card__footer a:hover,
.td-blog-card__footer a:focus-visible {
  transform: translateY(-1px);
}

.td-blog-read-link:hover span[aria-hidden="true"],
.td-blog-read-link:focus-visible span[aria-hidden="true"],
.td-blog-card__footer a:hover span[aria-hidden="true"],
.td-blog-card__footer a:focus-visible span[aria-hidden="true"] {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .td-blog-read-link,
  .td-blog-card__footer a,
  .td-blog-read-link span[aria-hidden="true"],
  .td-blog-card__footer a span[aria-hidden="true"] {
    transition: none;
    transform: none;
  }
}

/* Refined editorial search panel. */
.td-search-panel {
  padding-block: 1.35rem;
  background: rgba(232, 231, 231, 0.98);
  box-shadow: 0 16px 34px rgba(24, 25, 33, 0.07);
}

.td-search-panel__inner {
  gap: 0.9rem;
}

.td-search-panel__form {
  overflow: hidden;
  gap: 0;
  border: 1px solid rgba(53, 53, 53, 0.24);
  border-radius: 4px;
  background: var(--td-bg-soft);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.td-search-panel__form:focus-within {
  border-color: rgba(227, 81, 81, 0.72);
  box-shadow: 0 0 0 3px rgba(227, 81, 81, 0.08);
}

.td-search-panel__field {
  min-height: 54px;
  padding: 0.8rem 1.15rem;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.td-search-panel__field::placeholder {
  color: rgba(53, 53, 53, 0.58);
  opacity: 1;
}

.td-search-panel__submit {
  min-height: 54px;
  padding: 0.8rem 1.45rem;
  border: 0;
  border-left: 1px solid rgba(53, 53, 53, 0.16);
  background: transparent;
  color: var(--td-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  transition: background-color 180ms ease, color 180ms ease;
}

.td-search-panel__submit:hover,
.td-search-panel__submit:focus-visible {
  background: var(--td-red);
  color: #fff;
  outline: 0;
}

.td-search-panel__close {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.65rem;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.td-search-panel__close:hover,
.td-search-panel__close:focus-visible {
  background: rgba(53, 53, 53, 0.07);
  color: var(--td-red);
  outline: 0;
  transform: rotate(4deg);
}

@media (max-width: 760px) {
  .td-search-panel__form {
    overflow: visible;
    gap: 0.55rem;
    border: 0;
    background: transparent;
  }

  .td-search-panel__form:focus-within {
    box-shadow: none;
  }

  .td-search-panel__field {
    min-height: 52px;
    border: 1px solid rgba(53, 53, 53, 0.24);
    border-radius: 4px;
    background: var(--td-bg-soft);
  }

  .td-search-panel__field:focus {
    border-color: rgba(227, 81, 81, 0.72);
    box-shadow: 0 0 0 3px rgba(227, 81, 81, 0.08);
  }

  .td-search-panel__submit {
    min-height: 48px;
    border: 1px solid var(--td-red);
    border-radius: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .td-search-panel__form,
  .td-search-panel__submit,
  .td-search-panel__close {
    transition: none;
  }
  .td-search-panel__close:hover,
  .td-search-panel__close:focus-visible {
    transform: none;
  }
}


/* -------------------------------------------------------------
   Light / dark color theme
   ------------------------------------------------------------- */
html {
  background: var(--td-bg);
}

html[data-theme="dark"] {
  --td-bg: #031933;
  --td-bg-soft: #172536;
  --td-ink: #E8EDF3;
  --td-ink-dark: #F7F9FC;
  --td-muted: #AEB9C7;
  --td-line: rgba(232, 237, 243, 0.22);
  --td-hover: rgba(255, 255, 255, 0.055);
  --td-panel: #031933;
  --td-shadow: rgba(3, 9, 20, 0.30);
  color-scheme: dark;
}

body,
.site,
.site-header,
.site-footer,
.td-search-panel,
.site-navigation {
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .site,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer {
  background-color: #031933;
  color: var(--td-ink);
}

/* Compact action-style toggle: moon means “go dark”, sun means “go light”. */
.td-theme-toggle {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(53, 53, 53, 0.22);
  border-radius: 50%;
  background: transparent;
  color: var(--td-ink);
  cursor: pointer;
  place-items: center;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.td-theme-toggle:hover,
.td-theme-toggle:focus-visible {
  border-color: var(--td-red);
  background: rgba(227, 81, 81, 0.06);
  color: var(--td-red);
  outline: 0;
}

.td-theme-toggle:active {
  transform: scale(0.94);
}

.td-theme-icon {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  transition: opacity 140ms ease, transform 180ms ease;
}

/* In light mode show moon (the action available); in dark mode show sun. */
.td-theme-icon--sun {
  opacity: 0;
  transform: rotate(-18deg) scale(.78);
}

.td-theme-icon--moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

html[data-theme="dark"] .td-theme-icon--sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

html[data-theme="dark"] .td-theme-icon--moon {
  opacity: 0;
  transform: rotate(18deg) scale(.78);
}

html[data-theme="dark"] .td-theme-toggle {
  border-color: rgba(237, 241, 247, 0.30);
  color: #f4f6fa;
}

html[data-theme="dark"] .td-theme-toggle:hover,
html[data-theme="dark"] .td-theme-toggle:focus-visible {
  border-color: var(--td-red);
  color: var(--td-red);
  background: rgba(227, 81, 81, 0.09);
}

/* Make the entire interface follow dark mode, including components with
   intentionally translucent light-mode surfaces. */
html[data-theme="dark"] .td-blog-card:hover,
html[data-theme="dark"] .td-support-outcomes,
html[data-theme="dark"] .td-contact-notice,
html[data-theme="dark"] .td-article-toc,
html[data-theme="dark"] .td-content code,
html[data-theme="dark"] .td-contact-field input,
html[data-theme="dark"] .td-contact-field textarea,
html[data-theme="dark"] .search-field,
html[data-theme="dark"] .td-content input[type="text"],
html[data-theme="dark"] .td-content input[type="email"],
html[data-theme="dark"] .td-content input[type="url"],
html[data-theme="dark"] .td-content textarea {
  background-color: rgba(255, 255, 255, 0.055);
  color: var(--td-ink);
}

html[data-theme="dark"] .td-contact-field input:focus,
html[data-theme="dark"] .td-contact-field textarea:focus {
  background-color: rgba(255, 255, 255, 0.085);
}

html[data-theme="dark"] .td-hero-featured__image,
html[data-theme="dark"] .td-blog-card__image {
  background-color: #172536;
}

html[data-theme="dark"] .td-search-panel {
  background: rgba(17, 28, 41, 0.985);
  border-top-color: rgba(237, 241, 247, 0.14);
  box-shadow: 0 16px 34px rgba(3, 9, 20, 0.24);
}

html[data-theme="dark"] .td-search-panel__form {
  border-color: rgba(237, 241, 247, 0.25);
  background: #172536;
}

html[data-theme="dark"] .td-search-panel__field,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  color: var(--td-ink);
}

html[data-theme="dark"] .td-search-panel__field::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #9eabba;
  opacity: 1;
}

html[data-theme="dark"] .td-search-panel__submit {
  border-left-color: rgba(237, 241, 247, 0.18);
}

html[data-theme="dark"] .td-search-panel__close:hover,
html[data-theme="dark"] .td-search-panel__close:focus-visible {
  background: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .td-social-links--header {
  border-left-color: rgba(237, 241, 247, 0.22);
}

html[data-theme="dark"] img {
  opacity: 0.94;
}

@media (max-width: 760px) {
  html[data-theme="dark"] .site-navigation {
    background-color: #031933;
    box-shadow: 0 0 0 100vmax #031933;
  }

  html[data-theme="dark"] .td-search-panel__field {
    background: #172536;
    border-color: rgba(237, 241, 247, 0.25);
  }
}

/* Dark-theme contrast refinements for components that use fixed light-mode colors. */
html[data-theme="dark"] a:not(.td-button):not(.button):not(.wp-element-button) {
  text-decoration-color: rgba(232, 237, 243, 0.38);
}

html[data-theme="dark"] .site-navigation,
html[data-theme="dark"] .td-search-toggle,
html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .td-search-panel__close,
html[data-theme="dark"] .td-social-links a {
  color: var(--td-ink);
}

html[data-theme="dark"] .site-navigation a:hover,
html[data-theme="dark"] .site-navigation a:focus-visible,
html[data-theme="dark"] .td-search-toggle:hover,
html[data-theme="dark"] .td-search-toggle:focus-visible,
html[data-theme="dark"] .td-social-links a:hover,
html[data-theme="dark"] .td-social-links a:focus-visible {
  color: var(--td-red);
}

html[data-theme="dark"] hr,
html[data-theme="dark"] table,
html[data-theme="dark"] th,
html[data-theme="dark"] td,
html[data-theme="dark"] blockquote,
html[data-theme="dark"] .td-blog-card,
html[data-theme="dark"] .td-article-toc,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .site-header {
  border-color: var(--td-line);
}

html[data-theme="dark"] .td-content blockquote {
  color: #D5DDE7;
}

html[data-theme="dark"] .td-content pre {
  background: #0C1520;
  color: #E8EDF3;
  border-color: var(--td-line);
}

html[data-theme="dark"] ::selection {
  background: rgba(227, 81, 81, 0.34);
  color: #FFFFFF;
}

@media (prefers-reduced-motion: reduce) {
  html,
  body,
  .site,
  .site-header,
  .site-footer,
  .td-search-panel,
  .site-navigation,
  .td-theme-toggle,
  .td-theme-icon {
    transition: none;
  }
}


/* 1.8.30 — stronger header contrast in dark mode. */
html[data-theme="dark"] .site-header {
  color: #F7F9FC;
}

html[data-theme="dark"] .site-header .td-wordmark,
html[data-theme="dark"] .site-header .td-wordmark__mark,
html[data-theme="dark"] .site-header .td-wordmark__dogma,
html[data-theme="dark"] .site-header .site-navigation,
html[data-theme="dark"] .site-header .site-navigation a,
html[data-theme="dark"] .site-header .primary-menu a,
html[data-theme="dark"] .site-header .td-search-toggle,
html[data-theme="dark"] .site-header .menu-toggle,
html[data-theme="dark"] .site-header .td-social-links a {
  color: #F7F9FC;
}

html[data-theme="dark"] .site-header .td-wordmark__tech {
  color: #E35151;
}

html[data-theme="dark"] .site-header .site-navigation a:hover,
html[data-theme="dark"] .site-header .site-navigation a:focus-visible,
html[data-theme="dark"] .site-header .primary-menu a:hover,
html[data-theme="dark"] .site-header .primary-menu a:focus-visible,
html[data-theme="dark"] .site-header .td-search-toggle:hover,
html[data-theme="dark"] .site-header .td-search-toggle:focus-visible,
html[data-theme="dark"] .site-header .td-social-links a:hover,
html[data-theme="dark"] .site-header .td-social-links a:focus-visible {
  color: #E35151;
}

/* 1.8.31 — dark theme base changed to #031933. */


/* 1.8.32 — brighter H1/H2 hierarchy in dark mode. */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] .entry-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .td-content h1,
html[data-theme="dark"] .td-content h2 {
  color: #F1F4F8;
}

/* 1.8.33 — enforce visible H1/H2/title contrast across all custom templates in dark mode. */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h1 a,
html[data-theme="dark"] h2 a,
html[data-theme="dark"] .td-hero__title,
html[data-theme="dark"] .td-section-title,
html[data-theme="dark"] .td-lower__title,
html[data-theme="dark"] .td-page-title,
html[data-theme="dark"] .td-blog-hero__title,
html[data-theme="dark"] .td-directory-hero__title,
html[data-theme="dark"] .td-blog-feature__title,
html[data-theme="dark"] .td-blog-feature__title a,
html[data-theme="dark"] .td-blog-latest__heading,
html[data-theme="dark"] .td-blog-latest-row__title,
html[data-theme="dark"] .td-blog-latest-row__title a,
html[data-theme="dark"] .td-blog-card__title,
html[data-theme="dark"] .td-blog-card__title a,
html[data-theme="dark"] .td-blog-more-row__title,
html[data-theme="dark"] .td-directory-card__title,
html[data-theme="dark"] .td-directory-card__title a,
html[data-theme="dark"] .td-contact-hero__title,
html[data-theme="dark"] .td-about-hero__title,
html[data-theme="dark"] .td-support-hero__title,
html[data-theme="dark"] .td-article__title,
html[data-theme="dark"] .td-related__heading h2,
html[data-theme="dark"] .entry-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .td-content h1,
html[data-theme="dark"] .td-content h2 {
  color: #F1F4F8 !important;
}


/* 1.8.34 — unified dark palette and homepage contrast. */
html[data-theme="dark"] {
  --td-bg: #031933;
  --td-panel: #031933;
  --td-ink: #DCE4EE;
  --td-ink-dark: #F1F4F8;
  --td-muted: #AEBBCD;
  --td-line: rgba(241, 244, 248, 0.18);
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] #page,
html[data-theme="dark"] .site,
html[data-theme="dark"] .site-main,
html[data-theme="dark"] main,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .td-hero,
html[data-theme="dark"] .td-latest,
html[data-theme="dark"] .td-lower,
html[data-theme="dark"] .td-home-about,
html[data-theme="dark"] .td-home-support,
html[data-theme="dark"] .td-blog-hero,
html[data-theme="dark"] .td-blog-latest,
html[data-theme="dark"] .td-blog-more,
html[data-theme="dark"] .td-directory-hero,
html[data-theme="dark"] .td-content,
html[data-theme="dark"] article,
html[data-theme="dark"] section {
  background-color: #031933;
}

html[data-theme="dark"] body,
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] .td-content,
html[data-theme="dark"] .td-hero__intro,
html[data-theme="dark"] .td-home-about__text,
html[data-theme="dark"] .td-home-support__text {
  color: #DCE4EE;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h1 a,
html[data-theme="dark"] h2 a,
html[data-theme="dark"] .td-hero__title,
html[data-theme="dark"] .td-section-title,
html[data-theme="dark"] .td-lower__title,
html[data-theme="dark"] .td-page-title,
html[data-theme="dark"] .td-blog-hero__title,
html[data-theme="dark"] .td-directory-hero__title,
html[data-theme="dark"] .td-blog-feature__title,
html[data-theme="dark"] .td-blog-feature__title a,
html[data-theme="dark"] .td-blog-latest__heading,
html[data-theme="dark"] .td-blog-latest-row__title,
html[data-theme="dark"] .td-blog-latest-row__title a,
html[data-theme="dark"] .td-blog-card__title,
html[data-theme="dark"] .td-blog-card__title a,
html[data-theme="dark"] .td-blog-more-row__title,
html[data-theme="dark"] .td-directory-card__title,
html[data-theme="dark"] .td-directory-card__title a,
html[data-theme="dark"] .td-article__title,
html[data-theme="dark"] .entry-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .td-content h1,
html[data-theme="dark"] .td-content h2 {
  color: #F1F4F8 !important;
}

html[data-theme="dark"] .td-hero-featured__title,
html[data-theme="dark"] .td-hero-featured__title a,
html[data-theme="dark"] .td-latest-row__title,
html[data-theme="dark"] .td-latest-row__title a,
html[data-theme="dark"] h3,
html[data-theme="dark"] h3 a {
  color: #EDF2F7 !important;
}

html[data-theme="dark"] .td-kicker,
html[data-theme="dark"] .td-meta,
html[data-theme="dark"] .td-category,
html[data-theme="dark"] .td-latest-row__meta,
html[data-theme="dark"] .td-hero-featured__meta {
  color: #AEBBCD;
}


/* 1.8.35 — deeper navy dark mode and refined contrast hierarchy. */
html[data-theme="dark"] {
  --td-bg: #02152B;
  --td-panel: #02152B;
  --td-bg-soft: #0A213A;
  --td-ink: #D8E0EA;
  --td-ink-dark: #F1F4F8;
  --td-muted: #AAB8C8;
  --td-line: rgba(183, 202, 224, 0.18);
  --td-hover: rgba(255, 255, 255, 0.055);
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] #page,
html[data-theme="dark"] .site,
html[data-theme="dark"] .site-main,
html[data-theme="dark"] main,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .td-search-panel,
html[data-theme="dark"] .td-hero,
html[data-theme="dark"] .td-latest,
html[data-theme="dark"] .td-lower,
html[data-theme="dark"] .td-home-about,
html[data-theme="dark"] .td-home-support,
html[data-theme="dark"] .td-blog-hero,
html[data-theme="dark"] .td-blog-latest,
html[data-theme="dark"] .td-blog-more,
html[data-theme="dark"] .td-directory-hero,
html[data-theme="dark"] article,
html[data-theme="dark"] section {
  background-color: #02152B;
}

html[data-theme="dark"] body,
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] .td-content,
html[data-theme="dark"] .td-hero__intro,
html[data-theme="dark"] .td-home-about__text,
html[data-theme="dark"] .td-home-support__text {
  color: #D8E0EA;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h1 a,
html[data-theme="dark"] h2 a,
html[data-theme="dark"] .td-hero__title,
html[data-theme="dark"] .td-section-title,
html[data-theme="dark"] .td-lower__title,
html[data-theme="dark"] .td-page-title,
html[data-theme="dark"] .td-blog-hero__title,
html[data-theme="dark"] .td-directory-hero__title,
html[data-theme="dark"] .td-article__title,
html[data-theme="dark"] .entry-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .td-content h1,
html[data-theme="dark"] .td-content h2 {
  color: #F1F4F8 !important;
}

html[data-theme="dark"] h3,
html[data-theme="dark"] h3 a,
html[data-theme="dark"] .td-hero-featured__title,
html[data-theme="dark"] .td-hero-featured__title a,
html[data-theme="dark"] .td-latest-row__title,
html[data-theme="dark"] .td-latest-row__title a,
html[data-theme="dark"] .td-blog-card__title,
html[data-theme="dark"] .td-blog-card__title a,
html[data-theme="dark"] .td-blog-more-row__title {
  color: #E8EEF5 !important;
}

html[data-theme="dark"] .td-kicker,
html[data-theme="dark"] .td-meta,
html[data-theme="dark"] .td-category,
html[data-theme="dark"] .td-latest-row__meta,
html[data-theme="dark"] .td-hero-featured__meta,
html[data-theme="dark"] .td-blog-latest-row__meta {
  color: #AAB8C8;
}

html[data-theme="dark"] hr,
html[data-theme="dark"] table,
html[data-theme="dark"] th,
html[data-theme="dark"] td,
html[data-theme="dark"] blockquote,
html[data-theme="dark"] .td-blog-card,
html[data-theme="dark"] .td-article-toc,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .site-header {
  border-color: rgba(183, 202, 224, 0.18);
}

@media (max-width: 760px) {
  html[data-theme="dark"] .site-navigation {
    background-color: #02152B;
    box-shadow: 0 0 0 100vmax #02152B;
  }
  html[data-theme="dark"] .td-search-panel__field {
    background: #0A213A;
  }
}

/* 1.8.36 — deeper dark mode with softer, less luminous typography. */
html[data-theme="dark"] {
  --td-bg: #00050f;
  --td-panel: #00050f;
  --td-ink: #C6CED8;
  --td-ink-dark: #D7DDE5;
  --td-muted: #929EAD;
  --td-line: rgba(166, 181, 199, .18);
  color-scheme: dark;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .site,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .site-main {
  background-color: #00050f;
  color: #C6CED8;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] .entry-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .latest-title,
html[data-theme="dark"] .featured-title {
  color: #D7DDE5 !important;
}

html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .post-title,
html[data-theme="dark"] .card-title {
  color: #CFD6DF !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] .entry-content,
html[data-theme="dark"] .entry-content p {
  color: #C6CED8;
}

html[data-theme="dark"] .entry-meta,
html[data-theme="dark"] .post-meta,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .meta,
html[data-theme="dark"] .muted {
  color: #929EAD;
}


/* 1.8.37 — unified dark surface pass.
   Keep every page surface on the same deep navy; component hierarchy comes
   from borders, typography and subtle translucent states rather than lighter
   section backgrounds. This block intentionally comes last in the cascade. */
html[data-theme="dark"] {
  --td-bg: #00050f;
  --td-bg-soft: #071A2B;
  --td-panel: #00050f;
  --td-ink: #C6CED8;
  --td-ink-dark: #D7DDE5;
  --td-muted: #929EAD;
  --td-line: rgba(166, 181, 199, .17);
  --td-hover: rgba(198, 206, 216, .045);
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] #page,
html[data-theme="dark"] .site,
html[data-theme="dark"] .site-main,
html[data-theme="dark"] main,
html[data-theme="dark"] article,
html[data-theme="dark"] section,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .td-hero,
html[data-theme="dark"] .td-latest,
html[data-theme="dark"] .td-lower,
html[data-theme="dark"] .td-home-about,
html[data-theme="dark"] .td-home-support,
html[data-theme="dark"] .td-blog-main,
html[data-theme="dark"] .td-blog-hero,
html[data-theme="dark"] .td-blog-latest,
html[data-theme="dark"] .td-blog-listing,
html[data-theme="dark"] .td-blog-more,
html[data-theme="dark"] .td-blog-more-list,
html[data-theme="dark"] .td-directory,
html[data-theme="dark"] .td-directory-hero,
html[data-theme="dark"] .td-related,
html[data-theme="dark"] .td-article-footer,
html[data-theme="dark"] .post-navigation {
  background: #00050f !important;
  background-color: #00050f !important;
}

/* Keep actual controls/panels distinguishable without turning whole sections blue. */
html[data-theme="dark"] .td-search-panel {
  background: rgba(1, 16, 31, .985) !important;
}
html[data-theme="dark"] .td-search-panel__form,
html[data-theme="dark"] .td-search-panel__field,
html[data-theme="dark"] .td-contact-field input,
html[data-theme="dark"] .td-contact-field textarea,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .td-content code,
html[data-theme="dark"] .td-article-toc,
html[data-theme="dark"] .td-contact-notice,
html[data-theme="dark"] .td-support-outcomes {
  background-color: #071A2B !important;
  color: #C6CED8;
}

html[data-theme="dark"] .td-blog-card:hover,
html[data-theme="dark"] .td-blog-more-row__link:hover,
html[data-theme="dark"] .td-blog-more-row__link:focus-visible {
  background-color: rgba(198, 206, 216, .04) !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h1 a,
html[data-theme="dark"] h2 a,
html[data-theme="dark"] .td-blog-hero__title,
html[data-theme="dark"] .td-blog-latest__heading,
html[data-theme="dark"] .td-blog-listing__header h2,
html[data-theme="dark"] .td-article__title,
html[data-theme="dark"] .entry-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .td-related__heading h2 {
  color: #D7DDE5 !important;
}

html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] .td-blog-latest-row__title,
html[data-theme="dark"] .td-blog-latest-row__title a,
html[data-theme="dark"] .td-blog-card__title,
html[data-theme="dark"] .td-blog-card__title a,
html[data-theme="dark"] .td-blog-more-row__title,
html[data-theme="dark"] .td-blog-more-row__title a {
  color: #CFD6DF !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] .td-blog-hero__intro,
html[data-theme="dark"] .td-content,
html[data-theme="dark"] .entry-content {
  color: #C6CED8;
}

html[data-theme="dark"] .td-blog-latest-row__meta,
html[data-theme="dark"] .td-blog-more-row__meta,
html[data-theme="dark"] .td-meta,
html[data-theme="dark"] .entry-meta,
html[data-theme="dark"] .post-meta,
html[data-theme="dark"] .td-kicker,
html[data-theme="dark"] .td-category,
html[data-theme="dark"] .muted {
  color: #929EAD !important;
}

html[data-theme="dark"] .td-blog-latest-row,
html[data-theme="dark"] .td-blog-more-row,
html[data-theme="dark"] .td-blog-listing__header,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .post-navigation,
html[data-theme="dark"] .td-related,
html[data-theme="dark"] .td-article-footer {
  border-color: rgba(166, 181, 199, .17) !important;
}

@media (max-width: 760px) {
  html[data-theme="dark"] .site-navigation {
    background: #00050f !important;
    background-color: #00050f !important;
    box-shadow: 0 0 0 100vmax #00050f;
  }
}

/* 1.8.38 — single article dark-mode surface fix.
   Single posts use one continuous dark canvas. No lighter TOC/content/header panels. */
html[data-theme="dark"] .td-article,
html[data-theme="dark"] .td-article > article,
html[data-theme="dark"] .td-article__header,
html[data-theme="dark"] .td-article__header-inner,
html[data-theme="dark"] .td-featured-image,
html[data-theme="dark"] .td-content,
html[data-theme="dark"] .td-article-toc,
html[data-theme="dark"] .td-article-footer,
html[data-theme="dark"] .post-navigation,
html[data-theme="dark"] .td-related,
html[data-theme="dark"] .td-related__heading,
html[data-theme="dark"] .td-related__list {
  background: #00050f !important;
  background-color: #00050f !important;
}

html[data-theme="dark"] .td-article-toc {
  border-top-color: rgba(166, 181, 199, .17) !important;
  border-bottom-color: rgba(166, 181, 199, .17) !important;
}

html[data-theme="dark"] .td-article__title,
html[data-theme="dark"] .td-content h2 {
  color: #D7DDE5 !important;
}

html[data-theme="dark"] .td-content h3,
html[data-theme="dark"] .td-content h4,
html[data-theme="dark"] .post-navigation .nav-title,
html[data-theme="dark"] .td-related h3,
html[data-theme="dark"] .td-related h3 a {
  color: #CFD6DF !important;
}

html[data-theme="dark"] .td-article__excerpt,
html[data-theme="dark"] .td-content p,
html[data-theme="dark"] .td-content li,
html[data-theme="dark"] .td-content blockquote {
  color: #C6CED8 !important;
}

html[data-theme="dark"] .td-breadcrumb,
html[data-theme="dark"] .td-article__meta,
html[data-theme="dark"] .post-navigation .nav-subtitle,
html[data-theme="dark"] .td-content figcaption {
  color: #929EAD !important;
}

/* 1.8.39 — unified dark-mode primary text tone */
html[data-theme="dark"] {
  --td-ink: #CFD6DF;
  --td-ink-dark: #CFD6DF;
}

html[data-theme="dark"] body,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] h1 a,
html[data-theme="dark"] h2 a,
html[data-theme="dark"] h3 a,
html[data-theme="dark"] h4 a,
html[data-theme="dark"] .entry-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .td-article__title,
html[data-theme="dark"] .td-blog-hero__title,
html[data-theme="dark"] .td-blog-latest__heading,
html[data-theme="dark"] .td-blog-listing__header h2,
html[data-theme="dark"] .td-blog-latest-row__title,
html[data-theme="dark"] .td-blog-latest-row__title a,
html[data-theme="dark"] .td-blog-card__title,
html[data-theme="dark"] .td-blog-card__title a,
html[data-theme="dark"] .td-blog-more-row__title,
html[data-theme="dark"] .td-blog-more-row__title a,
html[data-theme="dark"] .td-related__heading h2,
html[data-theme="dark"] .site-header a,
html[data-theme="dark"] .site-navigation a,
html[data-theme="dark"] .main-navigation a,
html[data-theme="dark"] .td-header-actions button,
html[data-theme="dark"] .td-header-actions a,
html[data-theme="dark"] .post-navigation .nav-title {
  color: #CFD6DF !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] .td-content,
html[data-theme="dark"] .entry-content {
  color: #CFD6DF;
}


/* 1.8.40 — refined dark reading palette */
html[data-theme="dark"] {
  --td-bg: #00050f;
  --td-panel: #00050f;
  --td-ink: #BFC5CC;
  --td-ink-dark: #acb6bf;
  --td-muted: #8995A3;
  --td-line: #263746;
}
html[data-theme="dark"] body { color: #BFC5CC !important; }
html[data-theme="dark"] h1,
html[data-theme="dark"] .entry-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .td-article__title,
html[data-theme="dark"] .td-blog-hero__title { color: #acb6bf !important; }
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] h2 a,
html[data-theme="dark"] h3 a,
html[data-theme="dark"] h4 a,
html[data-theme="dark"] .td-blog-latest__heading,
html[data-theme="dark"] .td-blog-listing__header h2,
html[data-theme="dark"] .td-blog-latest-row__title,
html[data-theme="dark"] .td-blog-latest-row__title a,
html[data-theme="dark"] .td-blog-card__title,
html[data-theme="dark"] .td-blog-card__title a,
html[data-theme="dark"] .td-blog-more-row__title,
html[data-theme="dark"] .td-blog-more-row__title a,
html[data-theme="dark"] .td-related__heading h2,
html[data-theme="dark"] .post-navigation .nav-title { color: #C8CDD3 !important; }
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] .td-content,
html[data-theme="dark"] .entry-content,
html[data-theme="dark"] .td-article__excerpt,
html[data-theme="dark"] .td-content p,
html[data-theme="dark"] .td-content li,
html[data-theme="dark"] .td-content blockquote { color: #BFC5CC !important; }
html[data-theme="dark"] .td-blog-latest-row__excerpt,
html[data-theme="dark"] .td-blog-card__excerpt,
html[data-theme="dark"] .td-blog-hero__copy { color: #AAB2BC !important; }
html[data-theme="dark"] .td-breadcrumb,
html[data-theme="dark"] .td-article__meta,
html[data-theme="dark"] .post-navigation .nav-subtitle,
html[data-theme="dark"] .td-content figcaption,
html[data-theme="dark"] .td-blog-latest-row__meta,
html[data-theme="dark"] .td-blog-card__meta,
html[data-theme="dark"] .td-blog-more-row__meta { color: #8995A3 !important; }
html[data-theme="dark"] .site-header a,
html[data-theme="dark"] .site-navigation a,
html[data-theme="dark"] .main-navigation a,
html[data-theme="dark"] .td-header-actions button,
html[data-theme="dark"] .td-header-actions a { color: #C8CDD3 !important; }
html[data-theme="dark"] hr,
html[data-theme="dark"] .td-article-toc,
html[data-theme="dark"] .td-blog-latest-row,
html[data-theme="dark"] .td-blog-more-row { border-color: #263746 !important; }


/* 1.8.41 — unify all primary light text in dark mode to the exact single-post H1 tone. */
html[data-theme="dark"] {
  --td-primary-text: #acb6bf;
}

/* Brand wordmark: preserve TECH red, unify the light parts. */
html[data-theme="dark"] .td-wordmark,
html[data-theme="dark"] .td-wordmark__mark,
html[data-theme="dark"] .td-wordmark__dogma {
  color: var(--td-primary-text) !important;
}
html[data-theme="dark"] .td-wordmark__tech {
  color: #E35151 !important;
}

/* Header navigation, search/theme controls and social icons. */
html[data-theme="dark"] .site-header .site-navigation a,
html[data-theme="dark"] .site-header .primary-menu a,
html[data-theme="dark"] .site-header .td-search-toggle,
html[data-theme="dark"] .site-header .td-theme-toggle,
html[data-theme="dark"] .site-header .menu-toggle,
html[data-theme="dark"] .site-header .td-social-links a,
html[data-theme="dark"] .td-search-panel__close {
  color: var(--td-primary-text) !important;
}
html[data-theme="dark"] .site-header svg,
html[data-theme="dark"] .td-theme-toggle svg,
html[data-theme="dark"] .td-search-toggle svg,
html[data-theme="dark"] .td-social-links svg {
  stroke: currentColor;
}
html[data-theme="dark"] .td-social-icon--x,
html[data-theme="dark"] .td-social-icon--kofi {
  fill: currentColor;
}

/* All principal headings across home, blog, archives, pages and posts. */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] h1 a,
html[data-theme="dark"] h2 a,
html[data-theme="dark"] h3 a,
html[data-theme="dark"] h4 a,
html[data-theme="dark"] h5 a,
html[data-theme="dark"] h6 a,
html[data-theme="dark"] .entry-title,
html[data-theme="dark"] .entry-title a,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .td-hero__title,
html[data-theme="dark"] .td-section-title,
html[data-theme="dark"] .td-lower__title,
html[data-theme="dark"] .td-page-title,
html[data-theme="dark"] .td-hero-featured__title,
html[data-theme="dark"] .td-hero-featured__title a,
html[data-theme="dark"] .td-latest-row__title,
html[data-theme="dark"] .td-latest-row__title a,
html[data-theme="dark"] .td-blog-hero__title,
html[data-theme="dark"] .td-blog-latest__heading,
html[data-theme="dark"] .td-blog-listing__header h2,
html[data-theme="dark"] .td-blog-feature__title,
html[data-theme="dark"] .td-blog-feature__title a,
html[data-theme="dark"] .td-blog-latest-row__title,
html[data-theme="dark"] .td-blog-latest-row__title a,
html[data-theme="dark"] .td-blog-card__title,
html[data-theme="dark"] .td-blog-card__title a,
html[data-theme="dark"] .td-blog-more-row__title,
html[data-theme="dark"] .td-blog-more-row__title a,
html[data-theme="dark"] .td-directory-hero__title,
html[data-theme="dark"] .td-directory-card__title,
html[data-theme="dark"] .td-directory-card__title a,
html[data-theme="dark"] .td-contact-hero__title,
html[data-theme="dark"] .td-about-hero__title,
html[data-theme="dark"] .td-support-hero__title,
html[data-theme="dark"] .td-article__title,
html[data-theme="dark"] .td-content h1,
html[data-theme="dark"] .td-content h2,
html[data-theme="dark"] .td-content h3,
html[data-theme="dark"] .td-content h4,
html[data-theme="dark"] .td-related__heading h2,
html[data-theme="dark"] .td-related h3,
html[data-theme="dark"] .td-related h3 a,
html[data-theme="dark"] .post-navigation .nav-title,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .featured-title,
html[data-theme="dark"] .latest-title,
html[data-theme="dark"] .post-title,
html[data-theme="dark"] .post-title a,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .card-title a {
  color: var(--td-primary-text) !important;
}

/* Keep red interaction accent intact. */
html[data-theme="dark"] a:hover,
html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] .site-header .site-navigation a:hover,
html[data-theme="dark"] .site-header .site-navigation a:focus-visible,
html[data-theme="dark"] .site-header .primary-menu a:hover,
html[data-theme="dark"] .site-header .primary-menu a:focus-visible,
html[data-theme="dark"] .site-header .td-search-toggle:hover,
html[data-theme="dark"] .site-header .td-search-toggle:focus-visible,
html[data-theme="dark"] .site-header .td-theme-toggle:hover,
html[data-theme="dark"] .site-header .td-theme-toggle:focus-visible,
html[data-theme="dark"] .site-header .td-social-links a:hover,
html[data-theme="dark"] .site-header .td-social-links a:focus-visible {
  color: #E35151;
}


/* 1.8.44 — dark-mode post-title hover uses the brand accent consistently. */
html[data-theme="dark"] .td-hero-featured__item a:hover .td-hero-featured__title,
html[data-theme="dark"] .td-hero-featured__item a:focus-visible .td-hero-featured__title,
html[data-theme="dark"] .td-latest-row__title a:hover,
html[data-theme="dark"] .td-latest-row__title a:focus-visible,
html[data-theme="dark"] .td-blog-feature__title a:hover,
html[data-theme="dark"] .td-blog-feature__title a:focus-visible,
html[data-theme="dark"] .td-blog-latest-row__title a:hover,
html[data-theme="dark"] .td-blog-latest-row__title a:focus-visible,
html[data-theme="dark"] .td-blog-card__title a:hover,
html[data-theme="dark"] .td-blog-card__title a:focus-visible,
html[data-theme="dark"] .td-blog-more-row__link:hover .td-blog-more-row__title,
html[data-theme="dark"] .td-blog-more-row__link:focus-visible .td-blog-more-row__title,
html[data-theme="dark"] .td-directory-card__title a:hover,
html[data-theme="dark"] .td-directory-card__title a:focus-visible,
html[data-theme="dark"] .post-navigation a:hover .post-title,
html[data-theme="dark"] .post-navigation a:focus-visible .post-title {
  color: #E35151 !important;
}

/* 1.8.45 — default dark palette: #00050f background, #acb6bf primary text. */

/* 1.8.46 — Customizer dark colors are emitted dynamically after the stylesheet and intentionally override legacy dark palette declarations. */


/* 1.8.47 — Customizer dark text color is the single source of truth for all non-accent text in dark mode. */

/* 1.8.48 — subtle previous/next article interaction. */
.post-navigation a {
  transition: transform 180ms ease, opacity 180ms ease;
}
.post-navigation .nav-title {
  display: inline-block;
  transition: color 180ms ease, transform 180ms ease;
}
.post-navigation .nav-previous a:hover,
.post-navigation .nav-previous a:focus-visible {
  transform: translateX(-4px);
}
.post-navigation .nav-next a:hover,
.post-navigation .nav-next a:focus-visible {
  transform: translateX(4px);
}
.post-navigation a:hover .nav-title,
.post-navigation a:focus-visible .nav-title {
  color: var(--td-red);
}
html[data-theme="dark"] .post-navigation a:hover .nav-title,
html[data-theme="dark"] .post-navigation a:focus-visible .nav-title {
  color: #E35151 !important;
}
@media (prefers-reduced-motion: reduce) {
  .post-navigation a,
  .post-navigation .nav-title {
    transition: none;
  }
  .post-navigation .nav-previous a:hover,
  .post-navigation .nav-previous a:focus-visible,
  .post-navigation .nav-next a:hover,
  .post-navigation .nav-next a:focus-visible {
    transform: none;
  }
}


/* 1.8.49 — Support page follows the global dark-theme palette completely. */
html[data-theme="dark"] .td-support-main,
html[data-theme="dark"] .td-support-hero,
html[data-theme="dark"] .td-support-direct,
html[data-theme="dark"] .td-support-outcomes,
html[data-theme="dark"] .td-support-outcomes__grid,
html[data-theme="dark"] .td-support-outcomes__grid article,
html[data-theme="dark"] .td-support-other,
html[data-theme="dark"] .td-support-partner,
html[data-theme="dark"] .td-support-disclosure {
  background: var(--td-bg) !important;
  background-color: var(--td-bg) !important;
}

html[data-theme="dark"] .td-support-main,
html[data-theme="dark"] .td-support-main p,
html[data-theme="dark"] .td-support-main h1,
html[data-theme="dark"] .td-support-main h2,
html[data-theme="dark"] .td-support-main h3,
html[data-theme="dark"] .td-support-main .td-eyebrow,
html[data-theme="dark"] .td-support-main .td-support-direct__note,
html[data-theme="dark"] .td-support-main .td-support-disclosure,
html[data-theme="dark"] .td-support-main .td-support-links a,
html[data-theme="dark"] .td-support-main .td-support-outcomes__grid span {
  color: var(--td-primary-text) !important;
}

html[data-theme="dark"] .td-support-main .td-support-outcomes__grid,
html[data-theme="dark"] .td-support-main .td-support-outcomes__grid article,
html[data-theme="dark"] .td-support-main .td-support-other,
html[data-theme="dark"] .td-support-main .td-support-links,
html[data-theme="dark"] .td-support-main .td-support-links a {
  border-color: color-mix(in srgb, var(--td-primary-text) 24%, transparent) !important;
}

html[data-theme="dark"] .td-support-main .td-wordmark__tech,
html[data-theme="dark"] .td-support-main .td-accent,
html[data-theme="dark"] .td-support-main .td-category,
html[data-theme="dark"] .td-support-main .td-support-partner .td-eyebrow,
html[data-theme="dark"] .td-support-main .td-support-links a:hover,
html[data-theme="dark"] .td-support-main .td-support-links a:focus-visible {
  color: var(--td-red) !important;
}

html[data-theme="dark"] .td-support-main .td-text-button,
html[data-theme="dark"] .td-support-main .td-kofi-button {
  color: var(--td-primary-text) !important;
}

html[data-theme="dark"] .td-support-main .td-text-button:hover,
html[data-theme="dark"] .td-support-main .td-text-button:focus-visible,
html[data-theme="dark"] .td-support-main .td-kofi-button:hover,
html[data-theme="dark"] .td-support-main .td-kofi-button:focus-visible {
  color: var(--td-red) !important;
}


/* 1.8.50 — dark-mode social and Ko-fi hover always use the brand accent. */
html[data-theme="dark"] .td-social-links a:hover,
html[data-theme="dark"] .td-social-links a:focus-visible,
html[data-theme="dark"] .td-kofi-button:hover,
html[data-theme="dark"] .td-kofi-button:focus-visible {
  color: var(--td-red) !important;
}
html[data-theme="dark"] .td-social-links a:hover svg,
html[data-theme="dark"] .td-social-links a:focus-visible svg {
  color: var(--td-red) !important;
}

/* 1.8.51 — social/Ko-fi hover: propagate accent through SVG descendants.
   The Customizer dark-text rule colors every SVG child directly, so changing
   only the link/SVG color is not enough for paths that use currentColor. */
html[data-theme="dark"] .td-social-links a:hover,
html[data-theme="dark"] .td-social-links a:focus-visible,
html[data-theme="dark"] .td-social-links a:hover svg,
html[data-theme="dark"] .td-social-links a:focus-visible svg,
html[data-theme="dark"] .td-social-links a:hover svg *,
html[data-theme="dark"] .td-social-links a:focus-visible svg *,
html[data-theme="dark"] .td-kofi-button:hover,
html[data-theme="dark"] .td-kofi-button:focus-visible,
html[data-theme="dark"] .td-kofi-button:hover svg,
html[data-theme="dark"] .td-kofi-button:focus-visible svg,
html[data-theme="dark"] .td-kofi-button:hover svg *,
html[data-theme="dark"] .td-kofi-button:focus-visible svg * {
  color: #E35151 !important;
}

html[data-theme="dark"] .td-social-links a:hover .td-social-icon--x,
html[data-theme="dark"] .td-social-links a:focus-visible .td-social-icon--x,
html[data-theme="dark"] .td-social-links a:hover .td-social-icon--kofi,
html[data-theme="dark"] .td-social-links a:focus-visible .td-social-icon--kofi,
html[data-theme="dark"] .td-social-links a:hover .td-social-icon__dot,
html[data-theme="dark"] .td-social-links a:focus-visible .td-social-icon__dot {
  fill: #E35151 !important;
  stroke: none !important;
}

html[data-theme="dark"] .td-social-links a:hover svg:not(.td-social-icon--x):not(.td-social-icon--kofi) rect,
html[data-theme="dark"] .td-social-links a:hover svg:not(.td-social-icon--x):not(.td-social-icon--kofi) circle:not(.td-social-icon__dot),
html[data-theme="dark"] .td-social-links a:focus-visible svg:not(.td-social-icon--x):not(.td-social-icon--kofi) rect,
html[data-theme="dark"] .td-social-links a:focus-visible svg:not(.td-social-icon--x):not(.td-social-icon--kofi) circle:not(.td-social-icon__dot) {
  fill: none !important;
  stroke: #E35151 !important;
}


/* 1.8.54 — automatic sticky links panel for single articles, right-aligned and truly sticky. */
.td-article-body {
  width: min(var(--td-container), calc(100% - (2 * var(--td-gutter))));
  margin-inline: auto;
}

.td-article-body--with-links {
  display: grid;
  grid-template-columns: minmax(0, var(--td-reading)) minmax(0, 210px);
  justify-content: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.td-article-body .td-content {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  margin-inline: 0;
}

.td-article-links {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: clamp(5.5rem, 9vh, 7rem);
  align-self: start;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.td-article-links__sticky {
  position: static;
  padding-top: 0.85rem;
  border-top: 1px solid var(--td-line);
}

.td-article-links__title {
  margin: 0 0 1rem;
  color: var(--td-muted);
  font-family: var(--td-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.td-article-links__list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.td-article-links__list li {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--td-line) 55%, transparent);
}

.td-article-links__list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.62rem 0;
  color: var(--td-ink);
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.td-article-links__list a span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.td-article-links__arrow {
  color: var(--td-muted);
  font-size: 0.9em;
  transition: color 160ms ease, transform 160ms ease;
}

.td-article-links__list a:hover,
.td-article-links__list a:focus-visible,
.td-article-links__list a:hover .td-article-links__arrow,
.td-article-links__list a:focus-visible .td-article-links__arrow,
.td-article-links__more:hover,
.td-article-links__more:focus-visible {
  color: var(--td-red);
}

.td-article-links__list a:hover .td-article-links__arrow,
.td-article-links__list a:focus-visible .td-article-links__arrow {
  transform: translateX(2px);
}

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

.td-article-links.is-expanded .td-article-links__extra {
  display: list-item;
}

.td-article-links__more {
  padding: 0.75rem 0 0;
  border: 0;
  background: transparent;
  color: var(--td-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-transform: uppercase;
}

html[data-theme="dark"] .td-article-links,
html[data-theme="dark"] .td-article-links__sticky {
  background: var(--td-bg) !important;
}

html[data-theme="dark"] .td-article-links__list a,
html[data-theme="dark"] .td-article-links__title,
html[data-theme="dark"] .td-article-links__arrow,
html[data-theme="dark"] .td-article-links__more {
  color: var(--td-primary-text) !important;
}

html[data-theme="dark"] .td-article-links__list a:hover,
html[data-theme="dark"] .td-article-links__list a:focus-visible,
html[data-theme="dark"] .td-article-links__list a:hover .td-article-links__arrow,
html[data-theme="dark"] .td-article-links__list a:focus-visible .td-article-links__arrow,
html[data-theme="dark"] .td-article-links__more:hover,
html[data-theme="dark"] .td-article-links__more:focus-visible {
  color: #E35151 !important;
}

@media (max-width: 980px) {
  .td-article-body--with-links {
    grid-template-columns: minmax(0, var(--td-reading));
    gap: 2.25rem;
  }

  .td-article-body .td-content {
    grid-column: 1;
    grid-row: 2;
  }

  .td-article-links {
    grid-column: 1;
    grid-row: 1;
    position: static;
    width: 100%;
  }

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

  .td-article-links__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
  }
}

@media (max-width: 620px) {
  .td-article-body--with-links {
    gap: 1.8rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .td-article-links__list a,
  .td-article-links__arrow {
    transition: none;
  }

  .td-article-links__list a:hover .td-article-links__arrow,
  .td-article-links__list a:focus-visible .td-article-links__arrow {
    transform: none;
  }
}


/* Article link jump targets */
.td-article-link-target { scroll-margin-top: 7rem; border-radius: 0.18em; transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease; }
.td-article-link-target--highlight { color: var(--td-red) !important; background-color: color-mix(in srgb, var(--td-red) 10%, transparent); box-shadow: 0 0 0 0.22em color-mix(in srgb, var(--td-red) 10%, transparent); }
@media (prefers-reduced-motion: reduce) { .td-article-link-target { transition: none; } }


/* Ensure article-link jump highlight remains visible in dark mode. */
html[data-theme="dark"] .td-content a.td-article-link-target.td-article-link-target--highlight,
html[data-theme="dark"] body .td-content a.td-article-link-target.td-article-link-target--highlight {
  color: #E35151 !important;
  background-color: color-mix(in srgb, #E35151 18%, transparent) !important;
  box-shadow: 0 0 0 0.24em color-mix(in srgb, #E35151 16%, transparent) !important;
  text-decoration-color: #E35151 !important;
}


/* 2.0.2 — definitive dark-mode surface cleanup.
   The dark background is one continuous canvas (#00050f by default).
   Transparent media wrappers stay transparent so alpha PNGs blend into it. */
html[data-theme="dark"] {
  --td-bg: #00050f;
  --td-bg-soft: #00050f;
  --td-panel: #00050f;
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] #page,
html[data-theme="dark"] .site,
html[data-theme="dark"] .site-main,
html[data-theme="dark"] main,
html[data-theme="dark"] article,
html[data-theme="dark"] section,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .site-navigation,
html[data-theme="dark"] .td-search-panel,
html[data-theme="dark"] .td-search-panel__form,
html[data-theme="dark"] .td-search-panel__field,
html[data-theme="dark"] .td-hero,
html[data-theme="dark"] .td-latest,
html[data-theme="dark"] .td-lower,
html[data-theme="dark"] .td-home-about,
html[data-theme="dark"] .td-home-support,
html[data-theme="dark"] .td-blog-main,
html[data-theme="dark"] .td-blog-hero,
html[data-theme="dark"] .td-blog-latest,
html[data-theme="dark"] .td-blog-listing,
html[data-theme="dark"] .td-blog-more,
html[data-theme="dark"] .td-blog-more-list,
html[data-theme="dark"] .td-directory,
html[data-theme="dark"] .td-directory-hero,
html[data-theme="dark"] .td-article,
html[data-theme="dark"] .td-article > article,
html[data-theme="dark"] .td-article__header,
html[data-theme="dark"] .td-article__header-inner,
html[data-theme="dark"] .td-content,
html[data-theme="dark"] .td-article-toc,
html[data-theme="dark"] .td-article-footer,
html[data-theme="dark"] .td-related,
html[data-theme="dark"] .td-related__heading,
html[data-theme="dark"] .td-related__list,
html[data-theme="dark"] .post-navigation,
html[data-theme="dark"] .td-support-outcomes,
html[data-theme="dark"] .td-contact-notice,
html[data-theme="dark"] .td-contact-field input,
html[data-theme="dark"] .td-contact-field textarea,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .search-field,
html[data-theme="dark"] .td-content code,
html[data-theme="dark"] .td-content pre {
  background: #00050f !important;
  background-color: #00050f !important;
}

/* Alpha featured artwork must reveal the page canvas, not a card colour. */
html[data-theme="dark"] .td-hero-featured__image,
html[data-theme="dark"] .td-blog-latest-row__image,
html[data-theme="dark"] .td-blog-card__image,
html[data-theme="dark"] .td-blog-more-row__image,
html[data-theme="dark"] .td-featured-image,
.td-hero-featured__image,
.td-blog-latest-row__image,
.td-blog-card__image,
.td-blog-more-row__image,
.td-featured-image {
  background: transparent !important;
  background-color: transparent !important;
}

html[data-theme="dark"] .td-blog-card:hover,
html[data-theme="dark"] .td-blog-more-row__link:hover,
html[data-theme="dark"] .td-blog-more-row__link:focus-visible {
  background-color: transparent !important;
}

@media (max-width: 760px) {
  html[data-theme="dark"] .site-navigation,
  html[data-theme="dark"] .td-search-panel__field {
    background: #00050f !important;
    background-color: #00050f !important;
  }
  html[data-theme="dark"] .site-navigation {
    box-shadow: 0 0 0 100vmax #00050f;
  }
}

/* 2.0.4 — Keep every transparent editorial image on the actual page canvas. */
html:not([data-theme="dark"]) .td-blog-card,
html:not([data-theme="dark"]) .td-blog-card:hover,
html:not([data-theme="dark"]) .td-blog-card:focus-within,
html:not([data-theme="dark"]) .td-blog-card__image,
html:not([data-theme="dark"]) .td-hero-featured__image,
html:not([data-theme="dark"]) .td-blog-latest-row__image,
html:not([data-theme="dark"]) .td-blog-more-row__image,
html:not([data-theme="dark"]) .td-featured-image {
  background: transparent !important;
  background-color: transparent !important;
}

/* 2.0.15 — Front-page Latest Articles: compact artwork on the left only. */
#latest-articles .essay-row--with-image .essay-row__link {
  display: grid;
  grid-template-columns: clamp(72px, 6vw, 94px) minmax(0, 1fr);
  gap: clamp(0.9rem, 1.8vw, 1.35rem);
  align-items: center;
}

#latest-articles .essay-row__image {
  display: block;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: transparent !important;
}

#latest-articles .essay-row__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .72;
  transition: opacity 180ms ease, transform 220ms ease;
}

#latest-articles .essay-row__copy {
  display: block;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

#latest-articles .essay-row__link:hover .essay-row__image img,
#latest-articles .essay-row__link:focus-visible .essay-row__image img {
  opacity: .92;
  transform: scale(1.025);
}

@media (max-width: 640px) {
  #latest-articles .essay-row--with-image .essay-row__link {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: .9rem;
  }
}


/* 2.0.19 — actual SVG social share controls */
.td-share__link,
.td-share__button {
	width: 42px;
	height: 42px;
	min-width: 42px;
	min-height: 42px;
	padding: 0;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.td-share__icon {
	width: 18px;
	height: 18px;
	display: block;
	fill: currentColor;
	flex: 0 0 auto;
	transition: transform .18s ease;
}
.td-share__link:hover .td-share__icon,
.td-share__link:focus-visible .td-share__icon,
.td-share__button:hover .td-share__icon,
.td-share__button:focus-visible .td-share__icon {
	transform: scale(1.08);
}
@media (max-width: 640px) {
	.td-share__link,
	.td-share__button {
		width: 40px;
		height: 40px;
		min-width: 40px;
		min-height: 40px;
	}
}


/* 2.0.20 — share icons follow the theme/H1 text color */
.td-share__link,
.td-share__button {
	color: var(--td-ink);
}
.td-share__link:visited {
	color: var(--td-ink);
}
.td-share__icon {
	fill: currentColor;
}


/* 2.0.21 — unified share hover */
.td-share__link:hover,
.td-share__link:focus-visible,
.td-share__button:hover,
.td-share__button:focus-visible {
	background: var(--td-accent);
	border-color: var(--td-accent);
	color: #fff;
}
.td-share__link:hover .td-share__icon,
.td-share__link:focus-visible .td-share__icon,
.td-share__button:hover .td-share__icon,
.td-share__button:focus-visible .td-share__icon {
	fill: #fff;
}


/* 2.0.22 — exact share icon states
   inactive: text/H1 color throughout
   hover/focus: TECH logo red (#E35151) circle + white symbol */
.td-share__link,
.td-share__link:visited,
.td-share__button {
	background: transparent !important;
	border-color: var(--td-ink) !important;
	color: var(--td-ink) !important;
}
.td-share__link .td-share__icon,
.td-share__button .td-share__icon {
	fill: currentColor !important;
}
.td-share__link:hover,
.td-share__link:focus-visible,
.td-share__button:hover,
.td-share__button:focus-visible {
	background: #E35151 !important;
	border-color: #E35151 !important;
	color: #fff !important;
}
.td-share__link:hover .td-share__icon,
.td-share__link:focus-visible .td-share__icon,
.td-share__button:hover .td-share__icon,
.td-share__button:focus-visible .td-share__icon {
	fill: #fff !important;
}


/* 2.0.23 — tighter spacing between top navigation links */
.site-header .main-navigation ul,
.site-header .primary-menu,
.site-header .menu {
	column-gap: 16px;
	gap: 16px;
}
.site-header .main-navigation li,
.site-header .primary-menu > li,
.site-header .menu > li {
	margin-left: 0;
	margin-right: 0;
}


/* 2.0.24 — BLOG latest rows: show the complete right-hand featured artwork */
.td-blog-latest-row__image {
	aspect-ratio: 3 / 4;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
}
.td-blog-latest-row__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}


/* 2.0.25 — slightly larger complete artwork in BLOG latest rows */
.td-blog-latest-row {
	grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr);
}
.td-blog-latest-row__image {
	width: 112%;
	max-width: none;
	justify-self: end;
}
.td-blog-latest-row__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}
@media (max-width: 900px) {
	.td-blog-latest-row__image {
		width: 100%;
		max-width: 100%;
	}
}


/* 2.0.26 — larger complete artwork in BLOG latest rows */
.td-blog-latest-row {
	grid-template-columns: minmax(0, 1fr) minmax(270px, 0.40fr);
}
.td-blog-latest-row__image {
	width: 128%;
	max-width: none;
	justify-self: end;
}
.td-blog-latest-row__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}
@media (max-width: 900px) {
	.td-blog-latest-row__image {
		width: 100%;
		max-width: 100%;
	}
}


/* 2.0.36 — mobile theme switch appears only inside the opened menu */
@media (max-width: 900px) {
	.site-header .td-theme-toggle {
		visibility: inherit !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}
	.site-navigation.is-open .td-theme-toggle {
		display: inline-flex !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		align-items: center;
		justify-content: center;
	}
}


/* 2.0.28 — mobile theme-toggle glyph is always perfectly centered */
@media (max-width: 900px) {
	.site-header .td-theme-toggle {
		position: relative;
		align-items: center !important;
		justify-content: center !important;
		padding: 0 !important;
		line-height: 1 !important;
	}
	.site-header .td-theme-toggle .td-theme-icon {
		position: absolute !important;
		top: 50% !important;
		left: 50% !important;
		margin: 0 !important;
		transform: translate(-50%, -50%) !important;
		transform-origin: center !important;
	}
}


/* 2.0.29 — mobile social-share controls must remain true circles */
@media (max-width: 640px) {
	.td-share__link,
	.td-share__button {
		box-sizing: border-box !important;
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
		min-height: 40px !important;
		max-width: 40px !important;
		max-height: 40px !important;
		aspect-ratio: 1 / 1 !important;
		flex: 0 0 40px !important;
		padding: 0 !important;
		border-radius: 50% !important;
		align-self: center !important;
	}
	.td-share__icon {
		width: 18px !important;
		height: 18px !important;
		flex: 0 0 18px !important;
	}
}


/* 2.0.30 — restore original BLOG latest-row image presentation */
.td-blog-latest-row {
	grid-template-columns: minmax(0, 1fr) minmax(180px, 0.28fr);
}
.td-blog-latest-row__image {
	width: auto;
	max-width: 100%;
	aspect-ratio: 3 / 4;
	justify-self: stretch;
	overflow: hidden;
}
.td-blog-latest-row__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
@media (max-width: 900px) {
	.td-blog-latest-row__image {
		width: auto;
		max-width: 100%;
	}
}


/* 2.0.31 — BLOG latest rows: slightly larger artwork, tighter rhythm */
.td-blog-latest-row {
	grid-template-columns: minmax(0, 1fr) minmax(205px, 0.31fr);
	padding-top: 22px;
	padding-bottom: 22px;
}
.td-blog-latest-row__image {
	width: 108%;
	max-width: none;
	justify-self: end;
}
.td-blog-latest-row + .td-blog-latest-row {
	margin-top: 0;
}
@media (max-width: 900px) {
	.td-blog-latest-row {
		padding-top: 18px;
		padding-bottom: 18px;
	}
	.td-blog-latest-row__image {
		width: 100%;
		max-width: 100%;
	}
}


/* 2.0.32 — Customizer percentage scale for primary header menu */
.site-header .primary-menu > li > a {
	font-size: calc(1em * var(--td-menu-font-scale, 1));
}


/* 2.0.34 — slightly tighter space between header and homepage H1/hero */
.home .td-hero {
	padding-top: clamp(30px, 4.2vw, 58px);
}
@media (max-width: 900px) {
	.home .td-hero {
		padding-top: 26px;
	}
}


/* 2.0.37 — larger, more readable mobile navigation */
@media (max-width: 900px) {
	.site-navigation .primary-menu > li > a {
		font-size: calc(1.18rem * var(--td-menu-font-scale, 1)) !important;
		line-height: 1.35;
	}
}


/* 2.0.38 — refined header defaults and responsive navigation sizing */

/* Desktop: preserve the original editorial menu proportions, then apply
   the Customizer percentage scale. */
@media (min-width: 1181px) {
	.site-header .primary-menu > li > a {
		font-size: clamp(
			calc(1.15rem * var(--td-menu-font-scale, 1)),
			calc(1.7vw * var(--td-menu-font-scale, 1)),
			calc(1.35rem * var(--td-menu-font-scale, 1))
		) !important;
	}
}

/* Tablet: keep the header compact enough to fit on one line. */
@media (min-width: 721px) and (max-width: 1180px) {
	.site-header .primary-menu > li > a {
		font-size: calc(1.05rem * var(--td-menu-font-scale, 1)) !important;
	}
}

/* Active state: only actual current/menu-parent items get the accent.
   A stale current_page_item (typically HOME) is explicitly neutralized. */
.primary-menu .current_page_item:not(.current-menu-item):not(.current-menu-parent) > a {
	color: var(--td-ink);
}
.primary-menu .current_page_item:not(.current-menu-item):not(.current-menu-parent) > a::after {
	transform: scaleX(0);
}
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-parent > a,
.primary-menu .current_page_parent > a {
	color: var(--td-red);
}
.primary-menu .current-menu-item > a::after,
.primary-menu .current-menu-parent > a::after,
.primary-menu .current_page_parent > a::after {
	transform: scaleX(1);
	transform-origin: left;
}

html[data-theme="dark"] .primary-menu .current_page_item:not(.current-menu-item):not(.current-menu-parent) > a {
	color: var(--td-primary-text) !important;
}
html[data-theme="dark"] .primary-menu .current-menu-item > a,
html[data-theme="dark"] .primary-menu .current-menu-parent > a,
html[data-theme="dark"] .primary-menu .current_page_parent > a {
	color: #E35151 !important;
}

/* Mobile menu: large, clear labels without letting long items escape
   the viewport. Controls and social icons remain contained as well. */
@media (max-width: 720px) {
	.site-navigation {
		grid-template-columns: minmax(0, 1fr);
		align-content: center;
		justify-items: center;
		row-gap: 0.45rem;
		padding: 5rem 1.25rem 1.25rem;
		overflow-x: hidden;
		overflow-y: auto;
	}

	.site-navigation .primary-menu {
		width: min(100%, 28rem);
		gap: 0.3rem;
	}

	.site-navigation .primary-menu > li {
		max-width: 100%;
	}

	.site-navigation .primary-menu > li > a {
		max-width: calc(100vw - 2.5rem);
		padding: 0.3rem 0;
		font-size: clamp(
			calc(1.95rem * var(--td-menu-font-scale, 1)),
			calc(8.4vw * var(--td-menu-font-scale, 1)),
			calc(2.75rem * var(--td-menu-font-scale, 1))
		) !important;
		line-height: 1.02;
		letter-spacing: 0.025em;
		white-space: nowrap;
	}

	.site-navigation .td-search-toggle,
	.site-navigation .td-theme-toggle {
		flex: 0 0 auto;
	}

	.site-navigation .td-social-links--header {
		max-width: min(100%, 18rem);
		justify-content: center;
		flex-wrap: wrap;
	}
}

/* Extra safety for short/narrow phones. */
@media (max-width: 360px), (max-height: 620px) {
	.site-navigation {
		align-content: start;
		padding-top: 4.6rem;
		row-gap: 0.25rem;
	}

	.site-navigation .primary-menu {
		gap: 0.12rem;
	}

	.site-navigation .primary-menu > li > a {
		padding: 0.2rem 0;
		font-size: clamp(
			calc(1.75rem * var(--td-menu-font-scale, 1)),
			calc(7.7vw * var(--td-menu-font-scale, 1)),
			calc(2.25rem * var(--td-menu-font-scale, 1))
		) !important;
	}

	.site-navigation .td-search-toggle,
	.site-navigation .td-social-links a {
		width: 42px;
		height: 42px;
	}
}
