:root {
  --tt-bg: #e8eaed;
  --tt-ink: #192a3d;
  --tt-blue: #2872fa;
  --tt-blue-hover: #1559ed;
  --tt-card: #ffffff;
  --tt-muted: #3a4f66;
}

body,
.site-main,
#main,
.ct-container,
button,
input,
textarea {
  font-family: Montserrat, sans-serif;
}

body {
  background: var(--tt-bg) !important;
  color: var(--tt-ink);
  font-size: 17px;
  line-height: 23px;
}

a {
  color: var(--tt-blue);
}

a:hover {
  color: var(--tt-blue-hover);
}

h1,
.page-title {
  color: var(--tt-ink);
  font-weight: 700;
  font-size: 30px;
  line-height: 33px;
}

h2,
h3 {
  color: var(--tt-ink);
  font-weight: 700;
}

.single .entry-header .page-title,
.single .hero-section .page-title,
.page .entry-header .page-title,
[data-prefix="single_blog_post"] .entry-header .page-title {
  text-align: center;
  font-size: 30px;
  line-height: 33px;
}

.single .hero-section .entry-header,
[data-prefix="single_blog_post"] .entry-header {
  text-align: center;
}

.single .hero-section .entry-header,
[data-prefix="single_blog_post"] .entry-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.single .entry-header .page-title,
[data-prefix="single_blog_post"] .entry-header .page-title {
  order: 1;
}

.single .entry-header .entry-meta,
[data-prefix="single_blog_post"] .entry-header .entry-meta {
  order: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 0 10px;
  text-transform: none !important;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 400;
  --theme-text-transform: none;
  --theme-font-size: 13px;
  --theme-font-weight: 400;
}

.single .entry-header .entry-meta a,
.single .entry-header .entry-meta time,
[data-prefix="single_blog_post"] .entry-header .entry-meta a,
[data-prefix="single_blog_post"] .entry-header .entry-meta time {
  text-transform: none !important;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--tt-muted);
}

.single .hero-section .page-description,
.single .entry-header .page-description,
[data-prefix="single_blog_post"] .page-description {
  display: none !important;
}

.single .meta-author {
  display: none !important;
}

.single .entry-header .meta-date::before {
  content: none !important;
}

#header {
  background: #fff;
}

#header [data-row="middle"] .ct-container,
#header .site-branding,
#header [data-id="logo"],
#header .site-title-container,
#header .site-title {
  display: flex;
  align-items: center;
}

#header .site-title a {
  display: flex;
  align-items: center;
  line-height: 0;
}

#header .site-title-container {
  display: none !important;
}

#header [data-row="middle"] .ct-container {
  position: relative;
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  min-height: 60px;
}

#header [data-row="middle"] [data-column="start"] {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

#header [data-row="middle"] [data-column="end"] {
  position: relative;
  z-index: 2;
  margin-left: auto;
}

#header .site-logo-container {
  overflow: visible;
  line-height: 0;
}

#header .default-logo,
#header .sticky-logo,
#header .custom-logo,
.trtalk-logo {
  display: block;
  height: 46px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain !important;
  object-position: center;
}

#header [data-id="search"],
#header .ct-header-search {
  display: none !important;
}

.entries article,
article.entry-card,
.card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--tt-card);
  border-radius: 15px;
  padding: 15px;
  overflow: hidden;
}

body [data-cards="boxed"] .entry-card,
body [data-cards="cover"] .entry-card {
  border-radius: 15px;
  padding: 15px;
}

.entry-card .ct-media-container {
  order: -1;
  margin: 0 !important;
  width: 100%;
  max-width: 100%;
  background: #fff;
}

.entry-card .entry-meta[data-id="meta_1"] {
  order: 1;
  margin: 0;
  padding: 0;
}

.entry-card .entry-title {
  order: 2;
  margin: 0;
  padding: 0;
  font-size: 22px;
  line-height: 26px;
  font-weight: 700;
}

.entry-card .entry-title a {
  color: var(--tt-ink);
  text-decoration: none;
}

.entry-card .entry-excerpt {
  order: 3;
  margin: 0;
  padding: 0;
  color: var(--tt-muted);
  font-size: 15px;
  line-height: 1.45;
}

.entry-card .entry-excerpt p {
  margin: 0;
}

.entry-card .entry-meta[data-id="meta_2"] {
  order: 4;
  margin: 0;
  padding: 0;
}

.entry-card .ct-media-container img,
.entry-card .wp-post-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 15px;
}

.entry-card .meta-author {
  display: none !important;
}

.entry-card .meta-date::before {
  content: none !important;
}

.entry-card .meta-categories a,
.entry-card .ct-term {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: var(--tt-muted) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.entry-meta img,
img.avatar {
  display: none !important;
}

.entry-card .meta-author,
.entry-card .meta-date,
.entry-card .meta-date time {
  color: var(--tt-muted);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.single article.post,
.page article.page,
.single article.type-post {
  background: var(--tt-card);
  border-radius: 14px;
  padding: 28px 32px 36px;
}

body.page-id-81 article.page {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.ct-comments-container {
  display: none !important;
}

.entry-content,
.page-content {
  font-size: 17px;
  line-height: 1.45;
  text-align: left;
}

.single .entry-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 760px;
}

.entry-content .tt-lead {
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
}

.entry-content h2 {
  margin: 1.8em 0 0.55em;
  font-size: 22px;
  line-height: 1.35;
}

.entry-content h3 {
  margin: 1.4em 0 0.45em;
}

.tt-toc {
  background: var(--tt-bg);
  border-radius: 12px;
  padding: 14px 18px 16px;
  margin: 0.4em 0 1.6em;
}

.tt-toc-title {
  margin: 0 0 8px;
  font-weight: 700;
  text-align: left;
}

.tt-toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.tt-toc li + li {
  margin-top: 4px;
}

.tt-toc a {
  color: var(--tt-ink);
  text-decoration: none;
}

.tt-toc a:hover {
  color: var(--tt-blue);
}

.entry-content .wp-element-caption,
.entry-content figcaption {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: var(--tt-muted);
}

.entry-content a.dlm-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tt-blue);
  color: #fff;
  border-radius: 4px;
  min-height: 38px;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
}

.entry-content a.dlm-download-link:hover {
  background: var(--tt-blue-hover);
  color: #fff;
}

.hero-section,
[data-hero-type],
.entry-header[data-type="type-1"] {
  background: transparent !important;
  min-height: 0 !important;
}

.trtalk-hero-frame {
  margin: 0 0 18px;
  padding: 0;
  background: transparent;
}

.trtalk-hero {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

body.page-id-73 .hero-section,
body.page-id-75 .hero-section,
body.page-id-76 .hero-section,
body.page-id-77 .hero-section {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

body.page-id-73 .entry-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.page-id-75 .entry-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.page-id-76 .entry-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.page-id-77 .entry-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

body.page-id-73 .trtalk-hero,
body.page-id-75 .trtalk-hero,
body.page-id-76 .trtalk-hero,
body.page-id-77 .trtalk-hero,
body.postid-58 .trtalk-hero {
  max-width: 340px;
}

.entry-content img,
.wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.entry-content .wp-block-embed-youtube {
  width: 100%;
  margin: 1.4em 0;
}

.entry-content .wp-block-embed-youtube .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

.entry-content .wp-block-embed-youtube iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.entry-content .wp-block-embed-youtube iframe[height="968"] {
  aspect-ratio: 4 / 3;
}

.entry-content blockquote,
.wp-block-quote {
  background: var(--tt-bg);
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 15px;
  padding: 16px 18px;
  color: var(--tt-ink);
  margin: 1.4em 0;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
  margin: 1.4em 0;
}

.entry-content th,
.entry-content td {
  border-bottom: 1px solid #d5d8de;
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
}

.wp-block-button__link,
.wp-element-button,
.steel-download-btn,
.tt-steel-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tt-blue) !important;
  color: #fff !important;
  border-radius: 4px !important;
  min-height: 38px;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
}

.wp-block-button__link:hover,
.steel-download-btn:hover,
.tt-steel-nav a:hover {
  background: var(--tt-blue-hover) !important;
  color: #fff !important;
}

.tt-steel-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  max-width: 100%;
}

.tt-steel-nav a {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
}

.tt-steel-nav a.is-current,
.tt-steel-nav span.is-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tt-ink) !important;
  color: #fff !important;
  border-radius: 4px !important;
  min-height: 38px;
  padding: 8px 16px;
  font-weight: 600;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
}

.tt-steel-nav span.is-current {
  cursor: default;
}

.tt-audio {
  margin: 8px 0 16px;
}

.tt-audio iframe {
  display: block;
  width: 100%;
  height: 235px;
  border: 0;
}

.tt-steel-rule {
  border: 0;
  border-top: 1px solid #d5d8de;
  margin: 4px 0 8px;
  height: 0;
}

.steel-download {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  text-decoration: none;
  color: var(--tt-ink);
  margin: 1.2em 0;
}

.steel-download img {
  width: 92px;
  height: auto;
  border-radius: 8px;
}

.steel-download-kicker,
.steel-download-title,
.steel-download-btn {
  display: block;
}

.steel-download-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tt-blue);
}

.steel-download-title {
  font-weight: 700;
  margin: 4px 0 8px;
  color: var(--tt-ink);
}

.trtalk-side {
  background: #fff;
  border-radius: 15px;
  padding: 15px;
}

.trtalk-search {
  display: flex;
  margin-bottom: 16px;
}

.trtalk-search input[type="search"] {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d5d8de;
  border-radius: 15px;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--tt-ink);
  background: #fff;
}

.trtalk-books {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trtalk-books a {
  display: block;
  color: var(--tt-ink);
  text-decoration: none;
}

.trtalk-books img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.trtalk-books span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}

.trtalk-books a:not(:has(img)) {
  min-height: 72px;
  padding: 12px;
  background: #f9efe8;
  border-radius: 8px;
}

.trtalk-books a:not(:has(img)) span {
  margin-top: 0;
}

@media (min-width: 1000px) {
  #header {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  #header [data-device="desktop"] [data-row="middle"],
  #header [data-device="desktop"] [data-row="middle"] .ct-container {
    min-height: 60px;
  }

  [data-id="footer"] .menu,
  .ct-footer-row .menu,
  #footer [data-column] .menu {
    display: none;
  }

  .ct-container > section:has(.entries) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px 28px;
    align-items: start;
  }

  .ct-container > section:has(.entries) > .hero-section,
  body.page-id-81 .hero-section {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .ct-container > section:has(.entries) > .entries {
    grid-column: 1;
    grid-row: 2;
  }

  .ct-container > section:has(.entries) > .trtalk-side {
    grid-column: 2;
    grid-row: 2;
  }

  .ct-container > section:has(.entries) > .ct-pagination {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  body.page-id-81 .entry-content:has(.entries) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px 28px;
    align-items: start;
    max-width: 1140px;
    margin: 0 auto;
    width: min(1140px, calc(100% - 40px));
  }

  body.page-id-81 .entry-content.is-layout-constrained > .entries,
  body.page-id-81 .entry-content.is-layout-constrained > .trtalk-side,
  body.page-id-81 .entry-content.is-layout-constrained > .ct-pagination {
    max-width: none;
  }

  body.page-id-81 .entry-content:has(.entries) > .entries {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  body.page-id-81 .entry-content:has(.entries) > .trtalk-side {
    grid-column: 2;
    grid-row: 2;
  }

  body.page-id-81 .entry-content:has(.entries) > .ct-pagination {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    gap: 14px;
  }

  .entries[data-layout="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .entries[data-layout="grid"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  body.trtalk-home-lead .entries article:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.9fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 15px;
    row-gap: 8px;
    align-items: center;
    padding: 15px;
    border-radius: 15px;
  }

  body.trtalk-home-lead .entries article:first-child > * {
    order: 0;
  }

  body.trtalk-home-lead .entries article:first-child .ct-media-container {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: stretch;
    height: 100%;
  }

  body.trtalk-home-lead .entries article:first-child .ct-media-container img {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
  }

  body.trtalk-home-lead .entries article:first-child .entry-title,
  body.trtalk-home-lead .entries article:first-child .entry-excerpt,
  body.trtalk-home-lead .entries article:first-child .entry-meta {
    padding-left: 0;
    padding-right: 0;
  }

  body.trtalk-home-lead .entries article:first-child .entry-meta[data-id="meta_1"] {
    grid-column: 2;
    grid-row: 1;
  }

  body.trtalk-home-lead .entries article:first-child .entry-title {
    grid-column: 2;
    grid-row: 2;
    font-size: 28px;
    line-height: 1.25;
  }

  body.trtalk-home-lead .entries article:first-child .entry-excerpt {
    grid-column: 2;
    grid-row: 3;
    font-size: 16px;
  }

  body.trtalk-home-lead .entries article:first-child .entry-meta[data-id="meta_2"] {
    grid-column: 2;
    grid-row: 4;
  }
}

@media (max-width: 999px) {
  .trtalk-side {
    margin-top: 18px;
  }
}
