/* Comptoir du Robinet — premium single article template. */

body.cdrt-theme.single-post.cdrt-editorial .cdrt-article-page {
  --cdrt-article-navy: #10283d;
  --cdrt-article-navy-deep: #081b2a;
  --cdrt-article-ink: #142739;
  --cdrt-article-gold: #c6a15b;
  --cdrt-article-gold-soft: #ead8ad;
  --cdrt-article-stone: #f3f0e9;
  --cdrt-article-stone-light: #f8f6f1;
  --cdrt-article-border: #dcd6cb;
  overflow: hidden;
  background: var(--cdrt-article-stone);
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-article {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Hero ---------------------------------------------------------------- */
body.cdrt-theme.single-post .cdrt-article-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 16%, rgba(198, 161, 91, .12), transparent 25%),
    linear-gradient(135deg, var(--cdrt-article-navy-deep), var(--cdrt-article-navy));
}

body.cdrt-theme.single-post .cdrt-article-hero::before {
  position: absolute;
  inset: 0;
  opacity: .09;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent 12%, #000 72%);
}

body.cdrt-theme.single-post .cdrt-article-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(24px, 3vw, 38px);
  padding-bottom: clamp(72px, 8vw, 96px);
}

body.cdrt-theme.single-post .cdrt-article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 40px);
  color: rgba(255, 255, 255, .46);
  font-size: 10px;
  font-weight: 640;
  letter-spacing: .02em;
}

body.cdrt-theme.single-post .cdrt-article-breadcrumb a {
  color: rgba(255, 255, 255, .66);
  text-decoration: none;
  transition: color .16s ease;
}

body.cdrt-theme.single-post .cdrt-article-breadcrumb a:hover {
  color: var(--cdrt-article-gold-soft);
}

body.cdrt-theme.single-post .cdrt-article-hero__header,
body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-header.cdrt-article-hero__header {
  width: min(100%, 850px);
  margin: 0;
  padding: 0;
  border: 0;
}

body.cdrt-theme.single-post .cdrt-article-hero__label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .53);
  font-size: 8.5px;
  font-weight: 770;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.cdrt-theme.single-post .cdrt-article-hero__label::before {
  width: 25px;
  height: 1px;
  background: var(--cdrt-article-gold);
  content: "";
}

/* Real categories stay intentionally discreet. WordPress' default category is
 * removed in PHP and therefore never reaches this component. */
body.cdrt-theme.single-post .cdrt-article-hero .cdrt-editorial-eyebrow {
  display: inline-flex;
  margin: 0 0 15px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--cdrt-article-gold-soft);
  background: transparent;
  font-size: 9.5px;
  font-weight: 720;
  letter-spacing: .06em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
}

body.cdrt-theme.single-post .cdrt-article-hero .cdrt-editorial-eyebrow:hover {
  color: #fff;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-article-hero h1 {
  max-width: 840px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  line-height: 1.015;
  letter-spacing: -.047em;
  text-wrap: balance;
}

body.cdrt-theme.single-post .cdrt-article-hero__excerpt {
  max-width: 700px;
  margin-top: 19px;
  color: rgba(255, 255, 255, .69);
  font-size: clamp(.98rem, 1.1vw, 1.07rem);
  line-height: 1.62;
}

body.cdrt-theme.single-post .cdrt-article-hero__excerpt p {
  margin: 0;
}

body.cdrt-theme.single-post .cdrt-article-hero .cdrt-article-meta {
  margin-top: 20px;
  color: rgba(255, 255, 255, .5);
  font-size: 10.5px;
  font-weight: 620;
}

/* Featured image ------------------------------------------------------ */
body.cdrt-theme.single-post .cdrt-article-featured {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 190px minmax(0, 820px);
  column-gap: clamp(50px, 5vw, 64px);
  width: min(calc(100% - 48px), 1074px);
  margin-top: clamp(-50px, -4vw, -38px);
  margin-inline: auto;
}

body.cdrt-theme.single-post .cdrt-article-featured__frame {
  position: relative;
  grid-column: 2;
  overflow: hidden;
  width: 100%;
  max-height: 440px;
  aspect-ratio: 16 / 8.35;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 7px;
  background: #e9e5dc;
  box-shadow: 0 14px 34px rgba(8, 27, 42, .12);
}

body.cdrt-theme.single-post .cdrt-article-featured__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reading layout ------------------------------------------------------ */
body.cdrt-theme.single-post .cdrt-article-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 820px);
  column-gap: clamp(50px, 5vw, 64px);
  justify-content: center;
  align-items: start;
  width: min(calc(100% - 48px), 1074px);
  padding-top: clamp(40px, 5vw, 54px);
  padding-bottom: clamp(60px, 7vw, 88px);
}

body.cdrt-theme.single-post .cdrt-article-layout--no-image {
  padding-top: clamp(54px, 7vw, 78px);
}

body.cdrt-theme.single-post .cdrt-article-main {
  min-width: 0;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content {
  width: 100%;
  margin: 0;
  color: #374752;
  font-size: clamp(1rem, .97rem + .1vw, 1.055rem);
  line-height: 1.82;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content > p:first-child {
  color: #293c4a;
  font-size: 1.045em;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content h2 {
  position: relative;
  margin-top: 2.45em;
  margin-bottom: .7em;
  padding-top: 16px;
  color: var(--cdrt-article-ink);
  font-size: clamp(1.6rem, 2.3vw, 2.08rem);
  line-height: 1.12;
  letter-spacing: -.032em;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content h2::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--cdrt-article-gold);
  content: "";
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content h3 {
  margin-top: 2em;
  margin-bottom: .65em;
  color: var(--cdrt-article-ink);
  font-size: clamp(1.2rem, 1.45vw, 1.4rem);
  line-height: 1.28;
  letter-spacing: -.018em;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content h4 {
  color: var(--cdrt-article-ink);
  font-size: 1.06rem;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content a {
  color: #173e5d;
  font-weight: 670;
  text-decoration-color: rgba(198, 161, 91, .58);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content a:hover {
  color: #8a682f;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content :where(ul, ol) {
  padding-left: 1.3em;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content li::marker {
  color: #a27b39;
  font-weight: 700;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content blockquote {
  margin: 2em 0;
  padding: 22px 25px 22px 28px;
  border: 0;
  border-left: 3px solid var(--cdrt-article-gold);
  border-radius: 0 6px 6px 0;
  color: #1d3445;
  background: #ece5d7;
  font-size: 1.02em;
  line-height: 1.7;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content blockquote p:last-child {
  margin-bottom: 0;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content figure {
  margin-block: 2.1em;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content img {
  border-radius: 6px;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content figcaption {
  padding-left: 10px;
  border-left: 1px solid var(--cdrt-article-gold);
  color: #7c827f;
  font-size: 10px;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content hr {
  margin-block: 48px;
  border-color: #d6d0c6;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content .wp-block-table,
body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-table {
  overflow-x: auto;
  margin-block: 1.9em;
  border: 1px solid var(--cdrt-article-border);
  border-radius: 6px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content table,
body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content .wp-block-table table {
  margin: 0;
  font-size: .9em;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content th {
  color: #fff;
  background: var(--cdrt-article-navy);
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content th,
body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content td {
  padding: 12px 14px;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content pre {
  border-radius: 6px;
  background: var(--cdrt-article-navy-deep);
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content details {
  margin-bottom: 9px;
  border: 1px solid var(--cdrt-article-border);
  border-radius: 6px;
  background: var(--cdrt-article-stone-light);
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content details summary {
  padding: 14px 16px;
  color: var(--cdrt-article-ink);
  font-weight: 710;
  cursor: pointer;
}

body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content details > :not(summary) {
  margin-inline: 16px;
}

/* Legacy article content normalized to theme-owned components ---------- */
body.cdrt-theme.single-post .cdrt-entry-content :where(.cdrt-article-content-shell, .cdrt-article-content-block) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.cdrt-theme.single-post .cdrt-entry-content section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-intro,
body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-callout {
  margin: 1.8em 0;
  padding: 18px 20px;
  border: 0;
  border-left: 3px solid var(--cdrt-article-gold);
  border-radius: 0 6px 6px 0;
  color: #243a49;
  background: #ece6da;
  line-height: 1.66;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-intro {
  margin-top: 0;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-intro h2:first-child {
  margin-top: 0;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-callout--tip {
  background: #f8f5ee;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-callout--warning {
  border-left-color: #9b6b32;
  background: #efe5d5;
}

body.cdrt-theme.single-post .cdrt-entry-content :where(.cdrt-article-card-grid, .cdrt-article-methods, .cdrt-article-tips-grid) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 1.9em 0;
}

body.cdrt-theme.single-post .cdrt-entry-content :where(.cdrt-article-card, .cdrt-article-method, .cdrt-article-tip) {
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--cdrt-article-border);
  border-radius: 6px;
  background: #f8f5ee;
}

body.cdrt-theme.single-post .cdrt-entry-content :where(.cdrt-article-card, .cdrt-article-tip) > :first-child {
  margin-top: 0;
}

body.cdrt-theme.single-post .cdrt-entry-content :where(.cdrt-article-card, .cdrt-article-tip) > :last-child {
  margin-bottom: 0;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-method {
  padding: 0;
  background: #fff;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-method__header {
  padding: 16px 18px;
  color: #fff;
  background: var(--cdrt-article-navy);
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-method__header :where(h2, h3, h4, p) {
  margin: 0;
  padding: 0;
  color: inherit;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-method__header :where(h2, h3, h4)::before {
  content: none;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-method__body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid #e5ded2;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-step:last-child {
  border-bottom: 0;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-step__number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--cdrt-article-navy);
  font-size: 10px;
  font-weight: 780;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-tip {
  text-align: center;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-tip__icon {
  margin-bottom: 7px;
  color: #8a682f;
  font-size: 1.5rem;
  line-height: 1;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-video {
  margin: 1.9em 0;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-video__frame {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #0b1c29;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-video__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

body.cdrt-theme.single-post .cdrt-entry-content .cdrt-article-table table {
  min-width: 560px;
}

/* Sticky editorial rail ---------------------------------------------- */
body.cdrt-theme.single-post .cdrt-article-rail {
  position: relative;
}

body.cdrt-theme.single-post .cdrt-article-rail__card {
  position: sticky;
  top: 116px;
  padding: 20px 18px 16px;
  border: 1px solid #d9d1c3;
  border-top: 2px solid var(--cdrt-article-gold);
  border-radius: 6px;
  background: #f8f5ee;
}

body.cdrt-theme.single-post .cdrt-article-rail__eyebrow {
  margin: 0 0 9px;
  color: #8a682f;
  font-size: 8.5px;
  font-weight: 790;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.cdrt-theme.single-post .cdrt-article-rail__card > strong {
  display: block;
  color: var(--cdrt-article-ink);
  font-size: 15px;
  line-height: 1.36;
  letter-spacing: -.018em;
}

body.cdrt-theme.single-post .cdrt-article-rail__card > p:not(.cdrt-article-rail__eyebrow) {
  margin: 8px 0 16px;
  color: #68747c;
  font-size: 11px;
  line-height: 1.55;
}

body.cdrt-theme.single-post .cdrt-article-rail__card nav {
  border-top: 1px solid #ddd5c8;
}

body.cdrt-theme.single-post .cdrt-article-rail__card nav a {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 39px;
  border-bottom: 1px solid #e1dbd0;
  color: #29404f;
  font-size: 11px;
  font-weight: 680;
  text-decoration: none;
  transition: color .16s ease, padding-left .16s ease;
}

body.cdrt-theme.single-post .cdrt-article-rail__card nav a:last-child {
  border-bottom: 0;
}

body.cdrt-theme.single-post .cdrt-article-rail__card nav a span {
  color: #997336;
  font-size: 14px;
}

@media (hover: hover) {
  body.cdrt-theme.single-post .cdrt-article-rail__card nav a:hover {
    padding-left: 3px;
    color: #8a682f;
  }
}

/* Conversion block ---------------------------------------------------- */
body.cdrt-theme.single-post .cdrt-article-shop-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  margin-top: clamp(44px, 5vw, 58px);
  padding: 25px 27px;
  border-radius: 6px;
  color: #fff;
  background: var(--cdrt-article-navy);
}

body.cdrt-theme.single-post .cdrt-article-shop-cta > div,
body.cdrt-theme.single-post .cdrt-article-shop-cta > a {
  position: relative;
  z-index: 1;
}

body.cdrt-theme.single-post .cdrt-article-shop-cta > div > span,
body.cdrt-theme.single-post .cdrt-article-shop-cta > div > strong {
  display: block;
}

body.cdrt-theme.single-post .cdrt-article-shop-cta > div > span {
  margin-bottom: 5px;
  color: var(--cdrt-article-gold-soft);
  font-size: 8.5px;
  font-weight: 790;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.cdrt-theme.single-post .cdrt-article-shop-cta > div > strong {
  max-width: 430px;
  font-size: clamp(1.1rem, 1.55vw, 1.34rem);
  line-height: 1.32;
  letter-spacing: -.022em;
}

body.cdrt-theme.single-post .cdrt-article-shop-cta > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 15px;
  padding: 0 15px;
  border: 1px solid rgba(234, 216, 173, .48);
  border-radius: 5px;
  color: #fff;
  background: rgba(255, 255, 255, .025);
  font-size: 11px;
  font-weight: 730;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .16s ease, background-color .16s ease;
}

body.cdrt-theme.single-post .cdrt-article-shop-cta > a span {
  color: var(--cdrt-article-gold-soft);
  font-size: 14px;
}

@media (hover: hover) {
  body.cdrt-theme.single-post .cdrt-article-shop-cta > a:hover {
    border-color: var(--cdrt-article-gold-soft);
    background: rgba(255, 255, 255, .06);
  }
}

/* Taxonomy ------------------------------------------------------------ */
body.cdrt-theme.single-post .cdrt-article-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 1px solid #d5cec2;
}

body.cdrt-theme.single-post .cdrt-article-taxonomy a {
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #d7d0c4;
  border-radius: 4px;
  color: #596872;
  background: transparent;
  font-size: 10px;
  text-decoration: none;
}

body.cdrt-theme.single-post .cdrt-article-taxonomy a:hover {
  border-color: #bfae8c;
  color: #765a2d;
  background: #f7f2e8;
}

/* Related articles ---------------------------------------------------- */
body.cdrt-theme.single-post .cdrt-article-after {
  width: min(calc(100% - 48px), 1074px);
  padding-bottom: clamp(64px, 7vw, 92px);
}

body.cdrt-theme.single-post .cdrt-related {
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding-top: clamp(34px, 4vw, 46px);
  border-top: 1px solid #cfc7b9;
}

body.cdrt-theme.single-post .cdrt-related__heading {
  margin-bottom: 24px;
}

body.cdrt-theme.single-post .cdrt-related__heading .cdrt-editorial-eyebrow {
  color: #8a682f;
}

body.cdrt-theme.single-post .cdrt-related__heading h2 {
  max-width: 680px;
  color: var(--cdrt-article-ink);
  font-size: clamp(1.65rem, 2.6vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

body.cdrt-theme.single-post .cdrt-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.cdrt-theme.single-post .cdrt-related-card {
  overflow: hidden;
  border: 1px solid #d8d1c5;
  border-radius: 6px;
  background: #f8f6f1;
}

body.cdrt-theme.single-post .cdrt-related-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9.5;
  margin: 0;
  border-radius: 0;
}

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

body.cdrt-theme.single-post .cdrt-related-card__body {
  padding: 15px 16px 18px;
}

body.cdrt-theme.single-post .cdrt-related-card__body time {
  color: #8c7650;
  font-size: 9px;
  font-weight: 690;
  letter-spacing: .04em;
}

body.cdrt-theme.single-post .cdrt-related-card__body h3 {
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.36;
}

body.cdrt-theme.single-post .cdrt-related-card__body h3 a {
  color: var(--cdrt-article-ink);
}

/* Focus --------------------------------------------------------------- */
body.cdrt-theme.single-post :where(
  .cdrt-article-breadcrumb a,
  .cdrt-article-rail a,
  .cdrt-article-shop-cta a,
  .cdrt-article-taxonomy a,
  .cdrt-related a
):focus-visible {
  outline: 3px solid rgba(198, 161, 91, .46);
  outline-offset: 3px;
}

/* Responsive ---------------------------------------------------------- */
@media (max-width: 1120px) {
  body.cdrt-theme.single-post .cdrt-article-featured,
  body.cdrt-theme.single-post .cdrt-article-layout {
    grid-template-columns: 175px minmax(0, 760px);
    column-gap: 36px;
    width: min(calc(100% - 40px), 971px);
  }

  body.cdrt-theme.single-post .cdrt-article-after {
    width: min(calc(100% - 40px), 971px);
  }
}

@media (max-width: 860px) {
  body.cdrt-theme.single-post .cdrt-article-hero__inner {
    padding-bottom: 78px;
  }

  body.cdrt-theme.single-post .cdrt-article-featured {
    display: block;
    width: min(calc(100% - 40px), 780px);
    margin-top: -38px;
  }

  body.cdrt-theme.single-post .cdrt-article-featured__frame {
    width: 100%;
  }

  body.cdrt-theme.single-post .cdrt-article-layout {
    grid-template-columns: 1fr;
    width: min(calc(100% - 40px), 780px);
    gap: 30px;
  }

  body.cdrt-theme.single-post .cdrt-article-rail {
    order: 2;
  }

  body.cdrt-theme.single-post .cdrt-article-main {
    order: 1;
  }

  body.cdrt-theme.single-post .cdrt-article-rail__card {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, .72fr);
    gap: 8px 24px;
  }

  body.cdrt-theme.single-post .cdrt-article-rail__card > p,
  body.cdrt-theme.single-post .cdrt-article-rail__card > strong {
    grid-column: 1;
  }

  body.cdrt-theme.single-post .cdrt-article-rail__card nav {
    grid-column: 2;
    grid-row: 1 / span 3;
    padding-left: 18px;
    border-top: 0;
    border-left: 1px solid #ddd5c8;
  }

  body.cdrt-theme.single-post .cdrt-article-after {
    width: min(calc(100% - 40px), 780px);
  }

  body.cdrt-theme.single-post .cdrt-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.cdrt-theme.single-post .cdrt-related-card:last-child {
    display: none;
  }
}

@media (max-width: 700px) {
  body.cdrt-theme.single-post .cdrt-article-hero__inner {
    padding-top: 22px;
    padding-bottom: 60px;
  }

  body.cdrt-theme.single-post .cdrt-article-breadcrumb {
    margin-bottom: 28px;
  }

  body.cdrt-theme.single-post.cdrt-editorial .cdrt-article-hero h1 {
    font-size: clamp(2.08rem, 9.8vw, 3.05rem);
    line-height: 1.02;
  }

  body.cdrt-theme.single-post .cdrt-article-hero__excerpt {
    margin-top: 16px;
    font-size: .96rem;
  }

  body.cdrt-theme.single-post .cdrt-article-hero .cdrt-article-meta {
    margin-top: 18px;
  }

  body.cdrt-theme.single-post .cdrt-article-featured {
    width: calc(100% - 28px);
    margin-top: -30px;
  }

  body.cdrt-theme.single-post .cdrt-article-featured__frame {
    max-height: none;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
  }

  body.cdrt-theme.single-post .cdrt-article-layout {
    width: calc(100% - 36px);
    padding-top: 40px;
    padding-bottom: 58px;
  }

  body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content {
    font-size: 1rem;
    line-height: 1.76;
  }

  body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content h2 {
    font-size: clamp(1.5rem, 6.8vw, 1.85rem);
  }

  body.cdrt-theme.single-post .cdrt-entry-content :where(.cdrt-article-card-grid, .cdrt-article-methods, .cdrt-article-tips-grid) {
    grid-template-columns: 1fr;
  }

  body.cdrt-theme.single-post .cdrt-article-shop-cta {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
  }

  body.cdrt-theme.single-post .cdrt-article-shop-cta > a {
    width: 100%;
    justify-content: space-between;
    white-space: normal;
  }

  body.cdrt-theme.single-post .cdrt-article-rail__card {
    display: block;
  }

  body.cdrt-theme.single-post .cdrt-article-rail__card nav {
    margin-top: 14px;
    padding-left: 0;
    border-top: 1px solid #ddd5c8;
    border-left: 0;
  }

  body.cdrt-theme.single-post .cdrt-article-after {
    width: calc(100% - 36px);
    padding-bottom: 58px;
  }

  body.cdrt-theme.single-post .cdrt-related__grid {
    grid-template-columns: 1fr;
  }

  body.cdrt-theme.single-post .cdrt-related-card:last-child {
    display: block;
  }
}

@media (max-width: 420px) {
  body.cdrt-theme.single-post .cdrt-article-breadcrumb a:first-child,
  body.cdrt-theme.single-post .cdrt-article-breadcrumb span:first-of-type {
    display: none;
  }

  body.cdrt-theme.single-post .cdrt-article-featured {
    width: calc(100% - 20px);
  }

  body.cdrt-theme.single-post .cdrt-article-layout,
  body.cdrt-theme.single-post .cdrt-article-after {
    width: calc(100% - 28px);
  }

  body.cdrt-theme.single-post.cdrt-editorial .cdrt-entry-content blockquote {
    padding: 18px 18px 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cdrt-theme.single-post .cdrt-article-breadcrumb a,
  body.cdrt-theme.single-post .cdrt-article-rail__card nav a,
  body.cdrt-theme.single-post .cdrt-article-shop-cta > a {
    transition: none;
  }
}
