/* TweakDoor 2026 v1.0.2 — light, full-width home, images + features */

:root {
  --td-bg: #eef3f8;
  --td-bg-elev: #ffffff;
  --td-text: #122033;
  --td-muted: #5b6b7c;
  --td-accent: #0c8f6a;
  --td-accent-soft: #e3f7ef;
  --td-line: rgba(18, 32, 51, 0.12);
  --td-font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --td-font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --td-wrap: min(1100px, calc(100% - 2rem));
  --td-radius: 14px;
  --td-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --td-header-h: 72px;
}

html { scroll-behavior: smooth; }

body.td-site,
body {
  background: var(--td-bg);
  color: var(--td-text);
  font-family: var(--td-font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(12, 143, 106, 0.1), transparent 58%),
    radial-gradient(760px 420px at 100% 0%, rgba(47, 110, 180, 0.08), transparent 55%),
    linear-gradient(180deg, #f5f8fc 0%, #e8eef5 100%);
}

a { color: var(--td-accent); text-underline-offset: 0.18em; }
a:hover { color: #086b50; }
img { max-width: 100%; height: auto; display: block; }

.td-skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 10000;
  background: var(--td-accent); color: #fff; padding: 0.65rem 1rem;
  font-weight: 700; border-radius: 8px;
}
.td-skip-link:focus { top: 1rem; }

.td-wrap { width: var(--td-wrap); margin-inline: auto; }

/* Header */
.site-header, #masthead, .inside-header {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--td-line);
}
.site-header.td-header-scrolled,
#masthead.td-header-scrolled {
  box-shadow: 0 8px 24px rgba(18, 32, 51, 0.08);
}
.main-title a, .site-logo a, .site-branding .main-title a {
  font-family: var(--td-font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--td-text) !important;
  text-decoration: none;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}
.main-navigation a, .main-nav ul li a {
  color: var(--td-muted) !important;
  font-weight: 600;
}
.main-navigation a:hover,
.main-nav ul li a:hover,
.main-navigation .current-menu-item > a {
  color: var(--td-text) !important;
}

.entry-title, .page-header h1, h1, h2, h3, h4 {
  font-family: var(--td-font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--td-text);
}

.entry-content, .page-content {
  max-width: 42rem;
  font-size: 1.125rem;
}
.entry-meta, .posted-on, .cat-links { color: var(--td-muted); font-size: 0.95rem; }

.site-footer, .footer-widgets, .site-info {
  background: #fff !important;
  color: var(--td-muted);
  border-top: 1px solid var(--td-line);
  clear: both;
}

/* ========== HOME: kill GP sidebar floats ========== */
body.td-front.right-sidebar .content-area,
body.td-front.left-sidebar .content-area,
body.td-front.both-sidebars .content-area,
body.td-front .content-area,
body.td-front #primary,
body.td-front .td-primary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

body.td-front #right-sidebar,
body.td-front #left-sidebar,
body.td-front .is-right-sidebar,
body.td-front .is-left-sidebar {
  display: none !important;
  width: 0 !important;
  float: none !important;
}

body.td-front .site-content,
body.td-front #content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.td-front .site.grid-container,
body.td-front .container.grid-container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.td-front .inside-article,
body.td-front .site-main {
  display: block !important;
  width: 100% !important;
  float: none !important;
}

body.td-front .td-main > .td-hero,
body.td-front .td-main > .td-section {
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

/* Hero */
.td-hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--td-header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--td-line);
  background: #fff;
  text-align: center;
}

.td-hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.7) 45%, rgba(238,243,248,0.45) 100%),
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(12,143,106,0.16), transparent 60%),
    radial-gradient(ellipse 50% 45% at 50% 80%, rgba(47,110,180,0.1), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0, transparent 55px, rgba(18,32,51,0.03) 56px),
    linear-gradient(160deg, #f8fbfd 0%, #e7eef6 100%);
}

.td-hero__inner {
  width: var(--td-wrap);
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3.5rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: td-rise 0.85s var(--td-ease) both;
}

@keyframes td-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.td-hero__headline {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  max-width: min(40rem, 100%);
  line-height: 1.05;
  text-align: center;
}

.td-hero__brand {
  margin: 0;
  font-family: var(--td-font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  letter-spacing: -0.03em;
  color: var(--td-text);
}

.td-hero__title {
  margin: 0;
  font-family: var(--td-font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: var(--td-muted);
  max-width: 22ch;
}

.td-hero__lede {
  margin: 0 0 1.6rem;
  max-width: 36ch;
  color: var(--td-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  text-align: center;
}

.td-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.td-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-family: var(--td-font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none !important;
  transition: transform 0.25s var(--td-ease), background 0.25s var(--td-ease), color 0.25s var(--td-ease), box-shadow 0.25s var(--td-ease);
}

.td-btn--primary {
  background: var(--td-accent);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(12, 143, 106, 0.28);
}
.td-btn--primary:hover {
  transform: translateY(-2px);
  background: #086b50;
  color: #fff !important;
}
.td-btn--ghost {
  background: #fff;
  color: var(--td-text) !important;
  border: 1px solid var(--td-line);
}
.td-btn--ghost:hover {
  border-color: rgba(12, 143, 106, 0.45);
  color: var(--td-accent) !important;
}

/* Sections */
.td-section {
  padding: clamp(2.5rem, 6vw, 4.25rem) 0;
  background: var(--td-bg);
}
.td-section__head { margin-bottom: 1.75rem; max-width: 40rem; }
.td-section__head h2 { margin: 0 0 0.5rem; font-size: clamp(1.55rem, 3vw, 2rem); }
.td-section__head p { margin: 0; color: var(--td-muted); }

/* Features */
.td-features { background: #fff; border-bottom: 1px solid var(--td-line); }
.td-features__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.td-feature {
  padding: 1.25rem 0 0;
  border-top: 2px solid var(--td-accent);
}
.td-feature__icon {
  display: inline-flex;
  color: var(--td-accent);
  margin-bottom: 0.75rem;
}
.td-feature__title {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}
.td-feature__text {
  margin: 0 0 0.75rem;
  color: var(--td-muted);
  font-size: 0.98rem;
}
.td-feature__link {
  font-weight: 700;
  font-family: var(--td-font-display);
  text-decoration: none !important;
}

/* Blog list with images — always stacked rows, never beside section titles */
.td-section--posts { clear: both; }
.td-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--td-bg-elev);
  border-radius: var(--td-radius);
  overflow: hidden;
  border: 1px solid var(--td-line);
}
.td-post-list__item { border-bottom: 1px solid var(--td-line); }
.td-post-list__item:last-child { border-bottom: 0; }

.td-post-list__link {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  color: inherit !important;
  text-decoration: none !important;
  transition: background 0.25s var(--td-ease);
}
.td-post-list__link:hover { background: var(--td-accent-soft); }

.td-post-list__media {
  display: block;
  width: 140px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #d9e2ec;
}
.td-post-list__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.td-post-list__ph {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, #d7e3ef, #eef3f8 45%, #cfe8dc);
}

.td-post-list__body { display: grid; gap: 0.25rem; min-width: 0; }
.td-post-list__meta { color: var(--td-muted); font-size: 0.88rem; }
.td-post-list__title {
  font-family: var(--td-font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: -0.02em;
  color: var(--td-text);
}
.td-post-list__excerpt { color: var(--td-muted); }

.td-more { margin: 1.5rem 0 0; }

/* Single / archive */
body.single .inside-article,
body.archive .inside-article,
body.blog .inside-article,
body.search .inside-article {
  background: var(--td-bg-elev);
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}
body.single .entry-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 18ch;
}
body.archive .entry-summary,
body.blog .entry-summary { color: var(--td-muted); }

/* Archive/blog featured images */
body.blog .post-image,
body.archive .post-image,
body.blog .featured-image,
body.archive .featured-image {
  margin-bottom: 1rem;
}
body.blog .post-image img,
body.archive .post-image img {
  border-radius: var(--td-radius);
  width: 100%;
  height: auto;
}

.td-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--td-ease), transform 0.55s var(--td-ease);
}
.td-reveal.td-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .td-features__list { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
  :root { --td-header-h: 64px; }

  .td-hero {
    min-height: calc(100svh - var(--td-header-h));
    align-items: center;
  }
  .td-hero__inner { padding-top: 2.25rem; padding-bottom: 2.5rem; }
  .td-hero__actions { width: 100%; justify-content: center; }
  .td-btn { flex: 1 1 auto; min-width: min(100%, 9.5rem); }

  .td-post-list__link {
    grid-template-columns: 96px 1fr;
    gap: 0.75rem;
    padding: 0.85rem;
  }
  .td-post-list__media { width: 96px; }

  .main-navigation .menu-toggle,
  button.menu-toggle {
    color: var(--td-text) !important;
    border-color: var(--td-line) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Wallpaper / Image Gallery template (page-gallery.php)
   ========================================================================== */
.page.td-gallery-template .td-single-featured,
.page.td-gallery-template .site-main > .featured-image,
.page.td-gallery-template .site-main > .post-thumbnail,
.page.td-gallery-template .site-main .featured-image,
.page.td-gallery-template .site-main .post-thumbnail {
  display: none !important;
}

.td-gallery-outer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  clear: both;
  width: 100%;
  box-sizing: border-box;
}

.td-gallery-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.td-gallery-page { width: 100%; }

.td-gallery-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.td-gallery-header .entry-title {
  margin-bottom: 0.4rem;
  max-width: none;
}

.td-gallery-count {
  margin: 0;
  color: var(--td-muted);
  font-size: 0.95rem;
}

.td-gallery-intro {
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  text-align: center;
  color: var(--td-muted);
}

.td-gallery-section { width: 100%; margin-top: 1rem; }

.td-gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.td-gallery-item { margin: 0; display: flex; }
.td-gallery-item--hidden { display: none !important; }

.td-gallery-figure {
  margin: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--td-line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(18, 32, 51, 0.06);
}

.td-gallery-link {
  display: block;
  line-height: 0;
  overflow: hidden;
  aspect-ratio: 277 / 400;
  background: #e8eef5;
}

.td-gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.25s var(--td-ease);
}

.td-gallery-link:hover img { transform: scale(1.03); }

.td-gallery-footer {
  padding: 0.75rem 0.85rem 0.9rem;
  border-top: 1px solid var(--td-line);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 4.25rem;
}

.td-gallery-caption {
  margin: 0;
  font-size: 0.85rem;
  color: var(--td-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.td-gallery-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--td-accent-soft);
  color: var(--td-accent) !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none !important;
}

.td-gallery-download:hover {
  background: var(--td-accent);
  color: #fff !important;
}

.td-gallery-load-more-wrap {
  margin-top: 1.75rem;
  text-align: center;
}

.td-gallery-load-more {
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--td-accent);
  color: #fff;
  font-family: var(--td-font-display);
  font-weight: 700;
  cursor: pointer;
}

.td-gallery-load-more:hover { background: #086b50; }

.td-gallery-empty { color: var(--td-muted); text-align: center; }

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

@media (max-width: 640px) {
  .td-gallery { grid-template-columns: 1fr; }
  .td-gallery-link { aspect-ratio: 4 / 5; }
}

/* Cropped centered featured image on wallpaper gallery pages */
body.td-gallery-template .featured-image.page-header-image,
body.page-template-page-gallery .featured-image.page-header-image,
body.page-template-vscode-gallary .featured-image.page-header-image {
  display: none !important;
}

.td-gallery-featured {
  margin: 0 auto 1.5rem;
  width: min(720px, 100%);
  max-height: 280px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #e8eef5;
  border: 1px solid var(--td-line);
  box-shadow: 0 8px 24px rgba(18, 32, 51, 0.08);
}

.td-gallery-featured__img,
.td-gallery-featured img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 auto !important;
}

.td-gallery-section {
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .td-gallery-featured {
    max-height: 200px;
    aspect-ratio: 16 / 10;
    width: 100%;
  }
}

/* ==========================================================================
   Gallery pagination (SEO crawlable links, polished UI)
   ========================================================================== */
.td-pagi {
  margin: 2.25rem auto 0.5rem;
  width: 100%;
  max-width: 720px;
}

.td-pagi__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  border: 1px solid var(--td-line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(18, 32, 51, 0.06);
}

.td-pagi__status {
  margin: 0;
  font-family: var(--td-font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  color: var(--td-muted);
}

.td-pagi__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.td-pagi__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  min-height: 2.6rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--td-line);
  background: #fff;
  color: var(--td-text) !important;
  font-family: var(--td-font-display);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  box-shadow: 0 2px 0 rgba(18, 32, 51, 0.04);
  transition: transform 0.2s var(--td-ease), background 0.2s var(--td-ease), color 0.2s var(--td-ease), border-color 0.2s var(--td-ease), box-shadow 0.2s var(--td-ease);
}

.td-pagi__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(12, 143, 106, 0.35);
  color: var(--td-accent) !important;
  box-shadow: 0 8px 18px rgba(12, 143, 106, 0.12);
}

.td-pagi__btn.is-current {
  background: var(--td-accent);
  border-color: var(--td-accent);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(12, 143, 106, 0.28);
}

.td-pagi__btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.td-pagi__btn--nav {
  padding-inline: 1rem;
  background: var(--td-accent-soft);
  border-color: transparent;
  color: var(--td-accent) !important;
}

.td-pagi__btn--nav:hover {
  background: var(--td-accent);
  color: #fff !important;
}

.td-pagi__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  color: var(--td-muted);
  font-weight: 700;
}

.td-vscode-gallery {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  text-align: center;
}

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

.td-vscode-gallery .td-gallery-link {
  aspect-ratio: 1 / 1;
}

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

@media (max-width: 640px) {
  .td-pagi__inner { padding: 1rem 0.75rem; }
  .td-pagi__btn { min-width: 2.4rem; min-height: 2.4rem; }
  .td-pagi__btn--nav { padding-inline: 0.75rem; font-size: 0.85rem; }
  .td-vscode-gallery .gallery.td-gallery { grid-template-columns: 1fr; }
}
body.td-nosidebar #right-sidebar,
body.td-nosidebar #left-sidebar,
body.td-nosidebar .is-right-sidebar,
body.td-nosidebar .is-left-sidebar,
body.td-gallery-template #right-sidebar,
body.td-gallery-template #left-sidebar,
body.td-wallpapers-archive #right-sidebar,
body.td-wallpapers-archive #left-sidebar,
body.td-gallery-template .widget_categories,
body.td-wallpapers-archive .widget_categories,
body.page-template-page-gallery .widget_categories,
body.page-template-vscode-gallary .widget_categories {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.td-nosidebar .content-area,
body.td-nosidebar #primary,
body.td-gallery-template .site-content,
body.td-wallpapers-archive .site-content {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

/* Center galleries (Image Gallery + Video Star Codes) */
.td-gallery-outer,
.td-gallery-main,
.gallery-container {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

.td-gallery-header,
.td-gallery-intro,
.td-gallery-count,
.td-gallery-load-more-wrap,
.gallery-container > h1,
.gallery-container .page-content {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.td-gallery {
  margin-left: auto !important;
  margin-right: auto !important;
  justify-items: center;
}

.td-gallery-item,
.td-gallery-figure {
  width: 100%;
  max-width: 100%;
}

.gallery-container .gallery {
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

.gallery-container .gallery li {
  align-items: center;
  justify-content: center;
}

.td-gallery-footer,
.td-gallery-actions {
  align-items: center;
  text-align: center;
}

.td-gallery-download {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Category / archive cards (ios-wallpapers, blog, etc.)
   ========================================================================== */
.td-archive-header {
  margin: 0 auto 1.5rem;
  max-width: 1100px;
  padding: 1.25rem 1rem 0;
  text-align: center;
}

.td-archive-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.td-archive-desc {
  color: var(--td-muted);
  margin: 0 auto;
  max-width: 40rem;
}

.td-archive-layout,
.td-posts-list {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
  box-sizing: border-box;
}

.td-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.td-post-card {
  background: #fff;
  border: 1px solid var(--td-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(18, 32, 51, 0.05);
}

.td-post-card .td-card-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 180px;
}

.td-post-card .td-card-media {
  flex: 0 0 220px;
  width: 220px;
  background: #eef3f8;
  overflow: hidden;
}

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

.td-post-card .td-card-body {
  flex: 1;
  min-width: 0;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.td-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: var(--td-muted);
  font-size: 0.85rem;
}

.td-card-title {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.td-card-title a {
  color: var(--td-text) !important;
  text-decoration: none !important;
}

.td-card-title a:hover { color: var(--td-accent) !important; }

.td-card-excerpt {
  margin: 0;
  color: var(--td-muted);
}

.td-card-btn {
  align-self: flex-start;
  margin-top: 0.35rem;
  font-weight: 700;
  text-decoration: none !important;
}

@media (max-width: 700px) {
  .td-post-card .td-card-inner { flex-direction: column; }
  .td-post-card .td-card-media {
    width: 100%;
    flex-basis: auto;
    aspect-ratio: 16 / 10;
  }
}

