/* Post, archive, search and comments presentation. Scoped to blog templates. */
:root {
  --tvd-post-surface: #fff;
  --tvd-post-canvas: #f5f7fb;
  --tvd-post-ink: #172b4d;
  --tvd-post-muted: #667085;
  --tvd-post-line: #e7ebf2;
  --tvd-post-accent: var(--tvdt-color-primary, #1f6feb);
}
.blog-wrap {
  overflow-wrap: anywhere;
}
.blog-wrap img,
.blog-wrap video,
.blog-wrap iframe,
.blog-wrap embed,
.blog-wrap object {
  max-width: 100%;
}
.blog-wrap iframe,
.blog-wrap embed,
.blog-wrap object {
  width: 100%;
}
.blog-wrap video {
  height: auto;
}
.blog-single {
  background: var(--tvd-post-canvas);
}
.blog-single > .tvd-grid,
.blog-arc > .tvd-grid {
  max-width: 77.5rem;
  align-items: flex-start;
}
/* Some legacy single-post templates still render `.row > .col` rather than
 * the current grid markup. Keep the content and sidebar in the same row. */
.blog-single > .row {
  display: flex;
  flex-flow: row wrap;
  width: 100%;
}
.blog-single > .row > .col {
  min-width: 0;
}
.blog-single .article-inner {
  overflow: hidden;
  background: var(--tvd-post-surface);
  border: 1px solid var(--tvd-post-line);
  border-radius: 1.125rem;
  box-shadow: 0 0.875rem 2.25rem rgb(24 47 81 / 8%);
}
.post-single .entry-header-text {
  max-width: 100%;
  padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.25rem, 5vw, 4rem) 1.25rem;
}
.post-single .entry-title {
  color: var(--tvd-post-ink);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.18;
  text-wrap: balance;
}
.entry-category a {
  display: inline-block;
  color: var(--tvd-post-accent);
  font-weight: 700;
  text-decoration: none;
}
.entry-image {
  margin: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--tvd-post-canvas) 88%, #fff);
}
.entry-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
}
.entry-content {
  min-width: 0;
}
.entry-content > :first-child {
  margin-top: 0;
}
.entry-content > :last-child {
  margin-bottom: 0;
}
.entry-content :is(h2, h3, h4, h5, h6) {
  color: var(--tvd-post-ink);
  line-height: 1.28;
  margin: 1.65em 0 0.65em;
  scroll-margin-top: 5rem;
}
.entry-content h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.entry-content h3 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
}
.entry-content p,
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.25em;
}
.entry-content :is(ul, ol) {
  padding-inline-start: 1.35em;
}
.entry-content li + li {
  margin-top: 0.45em;
}
.entry-content a {
  color: var(--tvd-post-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.entry-content blockquote {
  margin: 1.8em 0;
  padding: 1rem 1.35rem;
  border-inline-start: 0.25rem solid var(--tvd-post-accent);
  border-radius: 0 0.5rem 0.5rem 0;
  background: color-mix(
    in srgb,
    var(--tvd-post-accent) 5%,
    var(--tvd-post-surface)
  );
  color: #475467;
}
.entry-content :is(pre, .wp-block-code) {
  overflow: auto;
  padding: 1rem 1.125rem;
  border-radius: 0.625rem;
  background: #172033;
  color: #f8fafc;
  font-size: 0.875em;
  line-height: 1.6;
  tab-size: 2;
}
.entry-content :not(pre) > code {
  padding: 0.15em 0.35em;
  border-radius: 0.25rem;
  background: #edf1f7;
  color: #9d174d;
  font-size: 0.875em;
}
.entry-content figure,
.entry-content .wp-block-gallery {
  max-width: 100%;
}
.entry-content .wp-block-gallery img {
  height: auto;
  border-radius: 0.5rem;
}
.entry-content .wp-block-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
}
.entry-content :is(th, td) {
  min-width: 7rem;
  padding: 0.75rem;
  border: 1px solid var(--tvd-post-line);
  text-align: start;
  vertical-align: top;
}
.entry-content th {
  background: #f8fafc;
  color: var(--tvd-post-ink);
}
.entry-content .wp-block-embed {
  margin-inline: auto;
}
.entry-content .wp-block-embed__wrapper {
  position: relative;
}
.entry-content .wp-block-embed iframe {
  aspect-ratio: 16 / 9;
  height: auto;
}
.post-single > .article-inner > .entry-meta,
.post-single .entry-author,
.post-single #comments,
.post-single .navigation-post {
  margin-inline: clamp(1.25rem, 5vw, 4rem);
}
.post-single > .article-inner > .entry-meta {
  padding: 1.25rem 0 1.875rem;
  border-top: 1px solid var(--tvd-post-line);
  color: var(--tvd-post-muted);
}
.blog-share {
  margin-top: 2.5rem;
}
.entry-author {
  padding: 1.5rem 0;
  border-top: 1px solid var(--tvd-post-line);
}
.post-sidebar {
  min-width: 0;
}
.post-sidebar .widget-area {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--tvd-post-line);
  border-radius: 1rem;
  background: var(--tvd-post-surface);
  box-shadow: 0 0.625rem 1.75rem rgb(24 47 81 / 6%);
}
.post-sidebar .widget {
  margin-bottom: 1.875rem;
}
.post-sidebar .widget:last-child {
  margin-bottom: 0;
}
.post-sidebar li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--tvd-post-line);
}
.post-sidebar li:last-child {
  border-bottom: 0;
}
.blog-arc {
  padding-block: clamp(2rem, 4vw, 4rem);
}
.blog-arc #post-list > article + article {
  margin-top: 1.5rem;
}
.blog-arc .article-inner {
  overflow: hidden;
  border: 1px solid var(--tvd-post-line);
  border-radius: 0.875rem;
  background: var(--tvd-post-surface);
}
.blog-arc .entry-header-text,
.blog-arc .entry-content,
.blog-arc .entry-meta {
  padding-inline: clamp(1.125rem, 3vw, 2rem);
}
.blog-arc .entry-header-text {
  padding-top: 1.5rem;
}
.blog-arc .entry-content {
  padding-block: 1rem;
}
.archive-page-header {
  padding: clamp(2rem, 5vw, 4.5rem) 1rem;
  background: var(--tvd-post-canvas);
}
.archive-page-header .taxonomy-description {
  max-width: 45rem;
  margin: 1rem auto 0;
  color: var(--tvd-post-muted);
}
.tvd-comments-wrapper {
  margin: 2.5rem clamp(1.25rem, 5vw, 4rem);
  padding: clamp(1.25rem, 3vw, 1.875rem);
  border: 1px solid var(--tvd-post-line);
  border-radius: 0.875rem;
  background: var(--tvd-post-surface);
}
.tvd-comments-title,
.tvd-reply-title {
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--tvd-post-line);
  color: var(--tvd-post-ink);
  font-size: 1.375rem;
}
.tvd-comment-list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.tvd-comment-list .children {
  margin-inline-start: clamp(1rem, 4vw, 3rem);
  padding: 0;
  list-style: none;
}
.tvd-comment-form
  :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
  box-sizing: border-box;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #cfd7e3;
  border-radius: 0.5rem;
  background: var(--tvd-post-surface);
  color: inherit;
}
.tvd-comment-form textarea {
  min-height: 10rem;
  resize: vertical;
}
.tvd-comment-form .submit {
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--tvd-post-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.blog-wrap :is(a, button, input, textarea):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--tvd-post-accent) 45%, transparent);
  outline-offset: 3px;
}
@media (max-width: 849px) {
  .blog-single > .tvd-grid,
  .blog-arc > .tvd-grid {
    grid-template-columns: 1fr;
  }
  .blog-single > .tvd-grid > .tvd-grid__item,
  .blog-arc > .tvd-grid > .tvd-grid__item {
    grid-column: 1 / -1;
  }
  .post-sidebar {
    order: 2;
  }
  .post-sidebar .widget-area {
    margin-top: 1.5rem;
  }
}
@media (max-width: 549px) {
  .blog-single {
    padding-block: 1.5rem;
  }
  .blog-single .article-inner {
    border-radius: 0.75rem;
  }
  .entry-content .wp-block-columns {
    gap: 1rem;
  }
  .tvd-comment-form .submit {
    width: 100%;
  }
}
/* Posts intentionally remain light by default, including when the OS uses dark mode. */

/* Default editorial post layout: a clean reading column beside modular widgets. */
.blog-single {
  background: var(--tvd-post-surface);
}
.blog-single > .tvd-grid.page-grid-large {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding-inline: clamp(1rem, 3vw, 3.5rem);
}
.blog-single .article-inner {
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.post-single .entry-title {
  max-width: 100%;
  margin-block: 0.55rem 0.75rem;
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}
.blog-single,
.blog-single .article-inner,
.blog-single .entry-content,
.blog-single .entry-title,
.blog-single .entry-header,
.blog-single .post-sidebar,
.blog-single .post-sidebar :is(.widget, .widget-area) {
  background-color: #fff;
  color: #172b4d;
}
.blog-single .entry-content {
  color: #344054;
}
.blog-single .entry-meta,
.blog-single .post-breadcrumbs {
  color: #667085;
}
.post-single .entry-meta {
  color: var(--tvd-post-muted);
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
}
.post-breadcrumbs {
  margin-bottom: 1.25rem;
  color: var(--tvd-post-muted);
  font-size: 0.75rem;
}
.post-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-inline-start: 0.6rem;
  color: #98a2b3;
}
.post-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}
.post-single .entry-image {
  border-radius: 0.5rem;
}
.post-single .entry-image img {
  object-fit: cover;
}
#content.blog-wrap.blog-single,
.blog-wrap.blog-single {
  max-width: var(--tvd-blog-single-content-max-width, 100%);
  margin-left: auto;
  margin-right: auto;
}
.post-single .entry-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem);
  color: #344054;
  font-size: 1rem;
  line-height: 1.72;
}
.post-single > .article-inner > .entry-meta {
  padding: 1.25rem 0;
}
.entry-author {
  padding: 1.5rem;
  border: 1px solid var(--tvd-post-line);
  border-radius: 0.5rem;
}
.tvd-comments-wrapper {
  margin: 2rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.post-sidebar .widget-area {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.post-sidebar .widget {
  margin: 0 0 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.5rem);
  border: 1px solid var(--tvd-post-line);
  border-radius: 0.5rem;
  background: var(--tvd-post-surface);
}
.post-sidebar .widget-title {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--tvd-post-line);
  color: var(--tvd-post-ink);
  font-size: 0.875rem;
  font-weight: 750;
  text-transform: uppercase;
}
.post-sidebar .widget a {
  color: var(--tvd-post-ink);
  text-decoration: none;
}
.post-sidebar .widget li {
  padding: 0.7rem 0;
}
.post-sidebar .wp-block-heading {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--tvd-post-line);
  color: #172b4d;
  font-size: 0.875rem;
  font-weight: 750;
  line-height: 1.3;
  text-transform: uppercase;
}
.post-sidebar .wp-block-latest-posts,
.post-sidebar .wp-block-categories,
.post-sidebar .wp-block-archives {
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-sidebar .wp-block-search__inside-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
}
.post-sidebar .wp-block-search__input {
  box-sizing: border-box;
  min-width: 0;
  flex: 1 1 auto;
  height: 2.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--tvd-post-line);
  border-radius: 0.375rem;
  background: #fff;
  color: #172b4d;
}
.post-sidebar .wp-block-search__button {
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.375rem;
  background: var(--tvd-post-accent);
  color: transparent;
  font-size: 0;
  line-height: 1;
  white-space: nowrap;
}
.post-sidebar .wp-block-search__button::before {
  content: "\f0d1";
  font-family: "remixicon";
  color: #fff;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}
.post-sidebar .wp-block-search__label {
  display: block;
  margin-bottom: 0.625rem;
  color: #172b4d;
  font-size: 0.875rem;
  font-weight: 700;
}
.post-single .entry-header .post-date {
  display: none;
}
.post-single .entry-divider {
  margin: 0.9rem 0 1rem;
  opacity: 0.5;
}
.post-single .entry-meta a {
  color: inherit;
  text-decoration: none;
}
.post-single
  .entry-content
  > :is(.wp-block-group, .wp-block-cover, .wp-block-media-text) {
  margin-block: 1.75rem;
}
.blog-share {
  padding: 1.25rem 0;
  border-top: 1px solid var(--tvd-post-line);
  border-bottom: 1px solid var(--tvd-post-line);
}
@media (max-width: 849px) {
  .post-single .entry-header-text {
    padding-top: 0;
  }
  .post-single .entry-title {
    font-size: clamp(1.9rem, 8vw, 2.55rem);
  }
  .post-sidebar .widget-area {
    margin-top: 0.5rem;
  }
}


