:root {
  --td-bg: #f8fafc;
  --td-surface: #eff6ff;
  --td-card: #ffffff;
  --td-accent: #3b82f6;
  --td-accent-dark: #2563eb;
  --td-ink: #0f172a;
  --td-muted: #475569;
  --td-border: #e2e8f0;
  --td-soft: #dbeafe;
  --td-radius: 16px;
  --td-shadow: 0 10px 28px rgba(15, 23, 42, .06);
  --td-content-width: 780px;
  --td-wide-width: 1180px;
}

body {
  color: var(--td-ink);
  background: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.75;
}
a { color: var(--td-accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--td-ink); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(37,99,235,.55); outline-offset: 3px; }

.td-site-main { width: 100%; }
.td-article-shell { max-width: var(--td-wide-width); padding: 24px 24px 64px; margin: 0 auto; }
.td-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--td-muted); font-size: 13px; margin: 0 0 24px; line-height: 1.5; }
.td-breadcrumbs a { color: var(--td-muted); text-decoration: none; }
.td-breadcrumbs a:hover { color: var(--td-accent-dark); }
.td-breadcrumb-separator { color: #94a3b8; }

.td-article { max-width: 100%; margin: 0 auto; }
.td-article-header { max-width: 930px; margin: 0 auto 28px; }
.td-article-category { margin-bottom: 12px; }
.td-article-category a, .td-card-category {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  background: var(--td-soft); color: #2563eb; font-size: 12px; font-weight: 750; letter-spacing: .02em; text-decoration: none;
}
.td-article-title { max-width: 900px; margin: 0 0 12px; color: var(--td-ink); font-size: clamp(32px, 4vw, 50px); line-height: 1.13; letter-spacing: -.04em; font-weight: 800; }
.td-article-deck { max-width: 820px; margin: 0 0 16px; color: var(--td-muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.6; }
.td-post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 24px; color: var(--td-muted); font-size: 13px; }
.td-post-meta a { font-weight: 700; text-decoration: none; }
.td-featured-image { margin: 22px 0 0; }
.td-featured-image img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: var(--td-radius); background: var(--td-surface); }
.td-featured-image figcaption { margin-top: 8px; color: var(--td-muted); font-size: 12px; text-align: center; }

.td-article-layout { display: block; }
.td-article-content { max-width: var(--td-content-width); margin: 0 auto; color: #334155; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.td-article-content > * { margin-top: 0; margin-bottom: 1.25em; }
.td-article-content h2 { margin-top: 2.1em; margin-bottom: .7em; color: var(--td-ink); font-size: clamp(25px, 3vw, 33px); line-height: 1.25; letter-spacing: -.025em; scroll-margin-top: 90px; }
.td-article-content h3 { margin-top: 1.8em; margin-bottom: .55em; color: var(--td-ink); font-size: clamp(20px, 2.5vw, 25px); line-height: 1.35; scroll-margin-top: 90px; }
.td-article-content h4 { color: var(--td-ink); line-height: 1.4; }
.td-article-content p { margin-bottom: 1.25em; }
.td-article-content ul, .td-article-content ol { padding-left: 1.5em; }
.td-article-content li { margin-bottom: .45em; }
.td-article-content img { max-width: 100%; height: auto; border-radius: 12px; }
.td-article-content figure { margin: 1.8em 0; }
.td-article-content figcaption { color: var(--td-muted); font-size: 13px; text-align: center; }
.td-article-content blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--td-accent); background: var(--td-surface); border-radius: 0 12px 12px 0; color: var(--td-muted); }
.td-article-content hr { border: 0; border-top: 1px solid var(--td-border); margin: 2.5em 0; }
.td-article-content pre { overflow: auto; padding: 18px; border-radius: 12px; background: #191919; color: #fff; font-size: 14px; }
.td-article-content code { font-size: .9em; }
.td-article-content table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--td-border); border-radius: 12px; overflow: hidden; font-size: 14px; line-height: 1.55; }
.td-article-content table th { background: #182b5b; color: #fff; text-align: left; font-weight: 750; }
.td-article-content table th, .td-article-content table td { padding: 12px 14px; border-right: 1px solid var(--td-border); border-bottom: 1px solid var(--td-border); vertical-align: top; }
.td-article-content table tr:last-child td { border-bottom: 0; }
.td-article-content table th:last-child, .td-article-content table td:last-child { border-right: 0; }
.td-article-content table tr:nth-child(even) td { background: #f8fafc; }
.td-article-content .wp-block-buttons { gap: 10px; }
.td-article-content .wp-block-button__link { background: var(--td-accent); border-radius: 9px; color: #fff; font-weight: 750; text-decoration: none; }
.td-article-content .wp-block-button__link:hover { background: var(--td-accent-dark); }
.td-article-content .wp-block-group, .td-article-content .wp-block-columns { margin-block: 1.6em; }

.td-toc { margin: 26px 0 34px; padding: 20px 22px; border: 1px solid var(--td-border); border-radius: 14px; background: var(--td-surface); font-size: 15px; line-height: 1.55; }
.td-toc-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--td-ink); }
.td-toc-heading strong { font-size: 17px; }
.td-toc-toggle { border: 0; padding: 4px 8px; background: transparent; color: var(--td-accent-dark); cursor: pointer; font-size: 13px; font-weight: 750; }
.td-toc-list { margin: 12px 0 0; padding-left: 22px; }
.td-toc-list li { margin: 6px 0; }
.td-toc-list a { color: var(--td-muted); text-decoration: none; }
.td-toc-list a:hover { color: var(--td-accent-dark); text-decoration: underline; }
.td-toc-subitem { margin-left: 16px !important; font-size: 14px; }

.td-article-footer { max-width: 930px; margin: 52px auto 0; }
.td-author-box { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border: 1px solid var(--td-border); border-radius: var(--td-radius); background: var(--td-surface); }
.td-author-avatar { flex: 0 0 76px; }
.td-author-avatar img { display: block; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.td-eyebrow { display: block; color: var(--td-accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.td-author-info h2 { margin: 3px 0 5px; font-size: 20px; line-height: 1.3; }
.td-author-info h2 a { color: var(--td-ink); text-decoration: none; }
.td-author-info p { margin: 0; color: var(--td-muted); font-size: 14px; line-height: 1.65; }

.td-related-section { margin: 46px 0 0; }
.td-section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.td-section-heading h2 { margin: 3px 0 0; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -.03em; }
.td-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.td-related-card { overflow: hidden; border: 1px solid var(--td-border); border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgba(47,31,15,.035); transition: transform .18s ease, box-shadow .18s ease; }
.td-related-card:hover { transform: translateY(-3px); box-shadow: var(--td-shadow); }
.td-related-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--td-soft); }
.td-related-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.td-related-card:hover .td-related-image img { transform: scale(1.03); }
.td-image-placeholder { display: grid; place-items: center; height: 100%; color: var(--td-accent-dark); font-size: 28px; font-weight: 900; }
.td-related-content { padding: 16px; }
.td-related-content .td-card-category { padding: 3px 8px; font-size: 10px; }
.td-related-content h3 { margin: 10px 0 12px; font-size: 17px; line-height: 1.4; }
.td-related-content h3 a { color: var(--td-ink); text-decoration: none; }
.td-related-content h3 a:hover { color: var(--td-accent-dark); }
.td-card-read-more { font-size: 12px; font-weight: 800; text-decoration: none; }
.td-post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.td-post-navigation-item { min-width: 0; padding: 14px 16px; border: 1px solid var(--td-border); border-radius: 12px; font-size: 13px; }
.td-post-navigation-item a { display: block; color: var(--td-muted); text-decoration: none; }
.td-post-navigation-item a:hover { color: var(--td-accent-dark); }
.td-next { text-align: right; }

@media (max-width: 780px) {
  .td-article-shell { padding: 18px 18px 44px; }
  .td-article-title { font-size: clamp(30px, 8vw, 42px); }
  .td-article-content { font-size: 16px; }
  .td-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .td-related-content { padding: 13px; }
  .td-related-content h3 { font-size: 15px; }
  .td-article-content table { display: block; overflow-x: auto; white-space: normal; }
}
@media (max-width: 520px) {
  .td-article-shell { padding: 14px 14px 36px; }
  .td-breadcrumbs { margin-bottom: 18px; font-size: 12px; }
  .td-post-meta { gap: 6px 12px; font-size: 12px; }
  .td-featured-image img { border-radius: 12px; }
  .td-toc { padding: 16px; }
  .td-author-box { padding: 16px; gap: 12px; }
  .td-author-avatar, .td-author-avatar img { width: 54px; height: 54px; flex-basis: 54px; }
  .td-related-grid { grid-template-columns: 1fr; }
  .td-related-card { display: grid; grid-template-columns: 112px minmax(0,1fr); }
  .td-related-image { height: 100%; min-height: 125px; aspect-ratio: auto; }
  .td-related-content { padding: 12px; }
  .td-related-content h3 { margin: 7px 0; font-size: 14px; }
  .td-card-read-more { font-size: 11px; }
  .td-post-navigation { grid-template-columns: 1fr; }
  .td-next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Custom site header */
.td-skip-link { position: absolute; top: -100px; left: 16px; z-index: 9999; padding: 10px 14px; background: #fff; border: 2px solid var(--td-accent); border-radius: 8px; color: var(--td-ink); }
.td-skip-link:focus { top: 12px; }
.td-site-header { position: relative; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--td-border); }
.td-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: var(--td-wide-width); min-height: 78px; margin: 0 auto; padding: 12px 24px; }
.td-brand { display: flex; flex-direction: column; flex: 0 0 auto; min-width: 0; }
.td-custom-logo img { display: block; width: auto; max-width: 220px; max-height: 52px; }
.td-site-title, .td-footer-brand { color: var(--td-ink); font-size: 25px; font-weight: 900; letter-spacing: -.04em; line-height: 1.2; text-decoration: none; }
.td-site-tagline { color: var(--td-muted); font-size: 11px; }
.td-primary-navigation { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.td-primary-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.td-primary-menu li { position: relative; margin: 0; padding: 0; }
.td-primary-menu a { display: block; padding: 9px 10px; color: var(--td-ink); font-size: 13px; font-weight: 700; text-decoration: none; border-radius: 8px; }
.td-primary-menu a:hover, .td-primary-menu .current-menu-item > a { background: var(--td-soft); color: var(--td-accent-dark); }
.td-primary-menu .sub-menu { position: absolute; top: 100%; left: 0; z-index: 200; display: none; min-width: 190px; padding: 8px; border: 1px solid var(--td-border); border-radius: 10px; background: #fff; box-shadow: var(--td-shadow); list-style: none; }
.td-primary-menu li:hover > .sub-menu, .td-primary-menu li:focus-within > .sub-menu { display: block; }
.td-header-search { display: flex; align-items: center; gap: 6px; margin: 0; }
.td-header-search input { width: 145px; min-width: 0; padding: 8px 10px; border: 1px solid var(--td-border); border-radius: 8px; background: #fff; font-size: 12px; }
.td-header-search button { padding: 8px 10px; border: 0; border-radius: 8px; background: var(--td-accent); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.td-header-search button:hover { background: var(--td-accent-dark); }
.td-menu-toggle { display: none; }

/* Custom footer */
.td-site-footer { margin-top: 24px; padding: 32px 24px 0; background: #0f172a; color: #f9f5ef; }
.td-footer-cta, .td-footer-main, .td-footer-bottom { max-width: var(--td-wide-width); margin-right: auto; margin-left: auto; }
.td-footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 34px; padding: 25px 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: linear-gradient(120deg, #1e293b, #20232b); }
.td-footer-cta h2 { margin: 5px 0 6px; color: #fff; font-size: clamp(21px, 3vw, 30px); line-height: 1.25; letter-spacing: -.03em; }
.td-footer-cta p { margin: 0; color: #d0c8bf; font-size: 14px; }
.td-footer-cta .td-eyebrow { color: #93c5fd; }
.td-footer-cta-button { flex: 0 0 auto; padding: 11px 16px; border-radius: 9px; background: var(--td-accent); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.td-footer-cta-button:hover { background: #60a5fa; color: #fff; }
.td-footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; padding: 20px 0 32px; }
.td-footer-brand { display: inline-block; color: #fff; }
.td-footer-about p { max-width: 360px; color: #cbd5e1; font-size: 13px; line-height: 1.75; }
.td-footer-column h2 { margin: 0 0 12px; color: #fff; font-size: 14px; }
.td-footer-links { margin: 0; padding: 0; list-style: none; }
.td-footer-links li { margin: 0 0 7px; }
.td-footer-links a { color: #cbd5e1; font-size: 13px; text-decoration: none; }
.td-footer-links a:hover { color: #93c5fd; }
.td-footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0 20px; border-top: 1px solid rgba(255,255,255,.12); color: #94a3b8; font-size: 12px; }

@media (max-width: 980px) {
  .td-header-inner { gap: 12px; }
  .td-primary-navigation { gap: 8px; }
  .td-primary-menu a { padding: 8px 7px; font-size: 12px; }
  .td-header-search input { width: 110px; }
}
@media (max-width: 780px) {
  .td-header-inner { min-height: 68px; padding: 10px 18px; flex-wrap: wrap; }
  .td-site-title { font-size: 22px; }
  .td-custom-logo img { max-width: 185px; max-height: 46px; }
  .td-menu-toggle { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--td-border); border-radius: 9px; background: #fff; cursor: pointer; }
  .td-menu-toggle-lines, .td-menu-toggle-lines::before, .td-menu-toggle-lines::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--td-ink); content: ""; }
  .td-menu-toggle-lines { position: relative; }
  .td-menu-toggle-lines::before { position: absolute; top: -6px; }
  .td-menu-toggle-lines::after { position: absolute; top: 6px; }
  .td-primary-navigation { display: none; flex: 0 0 100%; align-items: stretch; flex-direction: column; gap: 12px; padding: 8px 0 4px; }
  .td-primary-navigation.is-open { display: flex; }
  .td-primary-menu { align-items: stretch; flex-direction: column; }
  .td-primary-menu a { padding: 10px 12px; font-size: 14px; }
  .td-primary-menu .sub-menu { position: static; display: block; padding: 0 0 0 14px; border: 0; box-shadow: none; }
  .td-header-search input { flex: 1; width: auto; }
  .td-footer-cta { align-items: flex-start; flex-direction: column; padding: 22px; }
  .td-footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .td-footer-about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .td-site-footer { padding: 22px 16px 0; }
  .td-footer-main { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .td-footer-bottom { flex-direction: column; gap: 5px; }
}


/* TechyDen TOC: unnumbered H2 entries, numbered H3 entries */
.td-toc .td-toc-list {
    list-style: none !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
}

.td-toc .td-toc-list > .td-toc-item {
    list-style: none !important;
    margin: 6px 0 !important;
}

.td-toc .td-toc-sublist {
    list-style: decimal !important;
    margin: 6px 0 8px 22px !important;
    padding-left: 22px !important;
}

.td-toc .td-toc-sublist > .td-toc-subitem {
    display: list-item !important;
    list-style: decimal !important;
    margin: 6px 0 !important;
}

.td-toc .td-toc-list > .td-toc-item::marker {
    content: "" !important;
}
