/* Editorial, blog and informational pages only. */

.cdrt-editorial .cdrt-content {
  padding-block: clamp(46px, 6vw, 88px);
}

.cdrt-editorial .cdrt-entry {
  width: 100%;
  max-width: 820px;
}

.cdrt-editorial .cdrt-entry-header {
  max-width: 820px;
  margin: 0 auto 32px;
}

.cdrt-editorial .cdrt-entry-header h1 {
  max-width: 780px;
  margin-bottom: 18px;
  text-wrap: balance;
}

.cdrt-editorial-eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--cdrt-brass);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
}

.cdrt-editorial-eyebrow:hover {
  color: var(--cdrt-navy-800);
}

.cdrt-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--cdrt-muted);
  font-size: 13px;
}

.cdrt-article-meta a {
  color: inherit;
  text-decoration-color: var(--cdrt-line-strong);
}

.single-post .cdrt-entry > figure {
  width: min(100%, 1060px);
  max-width: none;
  margin: 0 auto clamp(34px, 5vw, 58px);
}

.single-post .cdrt-entry > figure img {
  width: 100%;
  max-height: 610px;
  object-fit: cover;
  border-radius: var(--cdrt-radius-lg);
  box-shadow: var(--cdrt-shadow-sm);
}

.cdrt-editorial .cdrt-entry-content {
  color: var(--cdrt-text);
  font-size: clamp(1rem, .97rem + .12vw, 1.08rem);
  line-height: 1.82;
}

.cdrt-editorial .cdrt-entry-content > :first-child {
  margin-top: 0;
}

.cdrt-editorial .cdrt-entry-content > :last-child {
  margin-bottom: 0;
}

.cdrt-editorial .cdrt-entry-content p,
.cdrt-editorial .cdrt-entry-content ul,
.cdrt-editorial .cdrt-entry-content ol,
.cdrt-editorial .cdrt-entry-content blockquote,
.cdrt-editorial .cdrt-entry-content table,
.cdrt-editorial .cdrt-entry-content .wp-block-table,
.cdrt-editorial .cdrt-entry-content pre {
  margin-bottom: 1.45em;
}

.cdrt-editorial .cdrt-entry-content h2 {
  margin-top: 2.25em;
  margin-bottom: .7em;
  font-size: clamp(1.55rem, 2vw, 2rem);
  text-wrap: balance;
}

.cdrt-editorial .cdrt-entry-content h3 {
  margin-top: 1.9em;
  margin-bottom: .65em;
  font-size: clamp(1.2rem, 1.5vw, 1.42rem);
}

.cdrt-editorial .cdrt-entry-content h4 {
  margin-top: 1.6em;
  margin-bottom: .6em;
  font-size: 1.08rem;
}

.cdrt-editorial .cdrt-entry-content ul,
.cdrt-editorial .cdrt-entry-content ol {
  padding-left: 1.35em;
}

.cdrt-editorial .cdrt-entry-content li + li {
  margin-top: .45em;
}

.cdrt-editorial .cdrt-entry-content a {
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(35, 73, 102, .38);
}

.cdrt-editorial .cdrt-entry-content strong {
  color: var(--cdrt-ink);
}

.cdrt-editorial .cdrt-entry-content blockquote {
  margin-inline: 0;
  padding: 20px 24px;
  color: var(--cdrt-ink);
  background: var(--cdrt-soft);
  border-left: 3px solid var(--cdrt-brass);
  border-radius: 0 var(--cdrt-radius-md) var(--cdrt-radius-md) 0;
}

.cdrt-editorial .cdrt-entry-content blockquote > :last-child {
  margin-bottom: 0;
}

.cdrt-editorial .cdrt-entry-content hr {
  margin-block: 44px;
  border: 0;
  border-top: 1px solid var(--cdrt-line);
}

.cdrt-editorial .cdrt-entry-content img {
  height: auto;
  border-radius: var(--cdrt-radius-md);
}

.cdrt-editorial .cdrt-entry-content figure {
  margin: 2em 0;
}

.cdrt-editorial .cdrt-entry-content figcaption {
  margin-top: 8px;
  color: var(--cdrt-muted);
  font-size: 12px;
  line-height: 1.5;
}

.cdrt-editorial .cdrt-entry-content .alignwide {
  width: min(100vw - 40px, 1040px);
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

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

.cdrt-editorial .cdrt-entry-content table,
.cdrt-editorial .cdrt-entry-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94em;
}

.cdrt-editorial .cdrt-entry-content .wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cdrt-editorial .cdrt-entry-content th,
.cdrt-editorial .cdrt-entry-content td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--cdrt-line);
}

.cdrt-editorial .cdrt-entry-content th {
  color: var(--cdrt-navy-950);
  background: var(--cdrt-soft);
  font-weight: 750;
}

.cdrt-editorial .cdrt-entry-content code {
  padding: .1em .35em;
  border-radius: 4px;
  background: var(--cdrt-soft-2);
  font-size: .9em;
}

.cdrt-editorial .cdrt-entry-content pre {
  overflow-x: auto;
  padding: 18px 20px;
  color: #eef4f7;
  background: var(--cdrt-navy-950);
  border-radius: var(--cdrt-radius-md);
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}

.cdrt-editorial .cdrt-entry-content pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.cdrt-editorial .cdrt-entry-content input:not([type="checkbox"]):not([type="radio"]),
.cdrt-editorial .cdrt-entry-content select,
.cdrt-editorial .cdrt-entry-content textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--cdrt-ink);
  background: #fff;
  border: 1px solid var(--cdrt-line-strong);
  border-radius: var(--cdrt-radius-sm);
}

.cdrt-editorial .cdrt-entry-content textarea {
  min-height: 140px;
  resize: vertical;
}

.cdrt-editorial .cdrt-entry-content button,
.cdrt-editorial .cdrt-entry-content input[type="submit"],
.cdrt-editorial .cdrt-entry-content .wp-element-button,
.cdrt-editorial .cdrt-entry-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  color: #fff;
  background: var(--cdrt-navy-950);
  border: 1px solid var(--cdrt-navy-950);
  border-radius: var(--cdrt-radius-sm);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.cdrt-editorial .cdrt-entry-content button:hover,
.cdrt-editorial .cdrt-entry-content input[type="submit"]:hover,
.cdrt-editorial .cdrt-entry-content .wp-element-button:hover,
.cdrt-editorial .cdrt-entry-content .wp-block-button__link:hover {
  color: #fff;
  background: var(--cdrt-navy-800);
}

/* Blog/archive landing. */
.cdrt-blog-header {
  max-width: 760px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.cdrt-blog-header h1 {
  margin-bottom: 14px;
  text-wrap: balance;
}

.cdrt-blog-header .archive-description,
.cdrt-blog-header .taxonomy-description {
  color: var(--cdrt-muted);
  font-size: 1.05rem;
}

.cdrt-blog-header .archive-description > :last-child,
.cdrt-blog-header .taxonomy-description > :last-child {
  margin-bottom: 0;
}

.cdrt-editorial .cdrt-post-list {
  gap: clamp(18px, 2.2vw, 28px);
}

.cdrt-editorial .cdrt-post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cdrt-editorial .cdrt-post-card:hover {
  transform: translateY(-2px);
  border-color: var(--cdrt-line-strong);
  box-shadow: var(--cdrt-shadow-md);
}

.cdrt-post-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--cdrt-soft);
}

.cdrt-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cdrt-editorial .cdrt-post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.cdrt-post-card__category {
  margin-bottom: 9px;
  color: var(--cdrt-brass);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.cdrt-editorial .cdrt-post-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.18rem, 1.5vw, 1.38rem);
  line-height: 1.27;
}

.cdrt-editorial .cdrt-post-card .cdrt-entry-meta {
  margin-bottom: 12px;
}

.cdrt-editorial .cdrt-post-card p {
  margin-bottom: 18px;
  color: var(--cdrt-muted);
  font-size: 14px;
  line-height: 1.65;
}

.cdrt-post-card__more {
  margin-top: auto;
  color: var(--cdrt-navy-950);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.cdrt-post-card__more::after {
  content: " →";
}

.cdrt-editorial .navigation.pagination {
  margin-top: 42px;
}

.cdrt-editorial .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cdrt-editorial .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 7px 11px;
  color: var(--cdrt-navy-950);
  background: #fff;
  border: 1px solid var(--cdrt-line);
  border-radius: var(--cdrt-radius-sm);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.cdrt-editorial .page-numbers.current {
  color: #fff;
  background: var(--cdrt-navy-950);
  border-color: var(--cdrt-navy-950);
}

/* Article footer and related internal links. */
.cdrt-article-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--cdrt-line);
}

.cdrt-article-taxonomy a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  color: var(--cdrt-navy-800);
  background: var(--cdrt-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.cdrt-related {
  width: min(100%, 1060px);
  max-width: none;
  margin: clamp(54px, 7vw, 82px) auto 0;
  padding-top: clamp(32px, 4vw, 46px);
  border-top: 1px solid var(--cdrt-line);
}

.cdrt-related__heading {
  max-width: 680px;
  margin-bottom: 24px;
}

.cdrt-related__heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
}

.cdrt-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cdrt-related-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--cdrt-line);
  border-radius: var(--cdrt-radius-md);
}

.cdrt-related-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cdrt-soft);
}

.cdrt-related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cdrt-related-card__body {
  padding: 17px;
}

.cdrt-related-card time {
  display: block;
  margin-bottom: 7px;
  color: var(--cdrt-muted);
  font-size: 11px;
}

.cdrt-related-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.cdrt-related-card h3 a {
  color: var(--cdrt-navy-950);
  text-decoration: none;
}

/* Informational and legal pages: serious, document-like and easy to scan. */
.cdrt-trust-page .cdrt-entry {
  max-width: 900px;
}

.cdrt-trust-page .cdrt-entry-header {
  max-width: 900px;
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: 0;
  background: var(--cdrt-soft);
  border: 1px solid var(--cdrt-line);
  border-bottom: 0;
  border-radius: var(--cdrt-radius-lg) var(--cdrt-radius-lg) 0 0;
}

.cdrt-trust-page .cdrt-entry-header h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.cdrt-trust-page .cdrt-entry-content {
  padding: clamp(28px, 4vw, 46px);
  background: #fff;
  border: 1px solid var(--cdrt-line);
  border-radius: 0 0 var(--cdrt-radius-lg) var(--cdrt-radius-lg);
  box-shadow: var(--cdrt-shadow-sm);
}

/* Comments remain native WordPress and accessible when enabled. */
.cdrt-comments {
  max-width: 820px;
  margin: 50px auto 0;
  padding-top: 34px;
  border-top: 1px solid var(--cdrt-line);
}

.cdrt-comments .comment-list {
  padding: 0;
  list-style: none;
}

.cdrt-comments .children {
  padding-left: 24px;
  list-style: none;
}

.cdrt-comments .comment-body {
  margin-bottom: 18px;
  padding: 18px;
  background: var(--cdrt-soft);
  border-radius: var(--cdrt-radius-md);
}

/* Final responsive safeguards. */
@media (max-width: 980px) {
  .cdrt-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .cdrt-editorial .cdrt-content {
    padding-block: 38px 56px;
  }

  .cdrt-editorial .cdrt-entry-header {
    margin-bottom: 24px;
  }

  .single-post .cdrt-entry > figure {
    width: 100%;
    margin-bottom: 30px;
  }

  .single-post .cdrt-entry > figure img {
    border-radius: var(--cdrt-radius-md);
  }

  .cdrt-editorial .cdrt-entry-content {
    font-size: 16px;
    line-height: 1.75;
  }

  .cdrt-editorial .cdrt-entry-content input:not([type="checkbox"]):not([type="radio"]),
  .cdrt-editorial .cdrt-entry-content select,
  .cdrt-editorial .cdrt-entry-content textarea {
    font-size: 16px;
  }

  .cdrt-editorial .cdrt-entry-content .alignwide,
  .cdrt-editorial .cdrt-entry-content .alignfull {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .cdrt-related__grid {
    grid-template-columns: 1fr;
  }

  .cdrt-trust-page .cdrt-entry-header,
  .cdrt-trust-page .cdrt-entry-content {
    padding: 24px 20px;
  }

  .cdrt-comments .children {
    padding-left: 12px;
  }
}

@media (max-width: 430px) {
  .cdrt-editorial .cdrt-entry-content th,
  .cdrt-editorial .cdrt-entry-content td {
    padding: 9px 10px;
  }

  .cdrt-editorial .page-numbers {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cdrt-editorial .cdrt-post-card {
    transition: none;
  }

  .cdrt-editorial .cdrt-post-card:hover {
    transform: none;
  }
}
