/* =====================================================================
   Divine Touch Plumbing — blog listing + article pages
   Loaded after style.css on /blog/ and every blog post. Every class is
   prefixed dtp- (same convention as calculator.css) so nothing here
   collides with the template's own .blog-* rules or Bootstrap.
   ===================================================================== */

:root {
  --dtp-navy: #020087;
  --dtp-navy-deep: #050030;
  --dtp-red: #D6020C;
  --dtp-ink: #1F2245;      /* article text: darker than the site's #757F95 grey so long reads stay comfortable */
  --dtp-muted: #5E6478;    /* meta text, still AA contrast on white */
  --dtp-surface: #F6F6F6;
  --dtp-line: #E4E6EF;
  --dtp-alert-bg: #FFF5F5;
  --dtp-alert-line: #F6CDD0;
  --dtp-tint-bg: #F3F3FB;
  --dtp-tint-line: #DCDCF2;
  --dtp-shadow: 0 0 40px 5px rgb(0 0 0 / 5%);
  --dtp-sticky-top: 112px; /* clears the navbar once main.js pins it */
}

/* style.css sets overflow-x: hidden on both <html> and <body>, which makes
   <body> a scroll container and stops position: sticky working (the article
   sidebar). `clip` hides sideways overflow the same way without creating a
   scroll container; browsers that don't know `clip` keep `hidden`. */
html,
body {
  overflow-x: clip;
}

/* the template pulls <main> up under the header (style.css `.main`);
   these pages start with a normal section, so cancel that out */
.main.dtp-main {
  margin-top: 0;
}

/* style.css turns every <section> into a centred grid (for the partner
   strip) and pads every <h1>; undo both for the blog's own markup */
.dtp-main section:not(.dtp-partners) {
  display: block;
}

.dtp-main h1 {
  padding: 0;
  margin: 0;
}

/* Bootstrap indents every list; :where keeps this reset weak enough for
   the component rules below to set their own spacing */
:where(.dtp-main) ol,
:where(.dtp-main) ul {
  margin: 0;
  padding: 0;
}

.dtp-main :focus-visible {
  outline: 3px solid var(--dtp-red);
  outline-offset: 3px;
  border-radius: 6px;
}

.dtp-main h1,
.dtp-main h2,
.dtp-main h3 {
  text-wrap: balance;
}

/* ---------- shared pieces ---------- */

.dtp-label {
  display: block;
  font: 700 13px/1.2 var(--heading-font);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dtp-red);
}

.dtp-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dtp-muted);
}

.dtp-crumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dtp-crumbs li + li::before {
  content: "\f105";
  font-family: "Font Awesome 6 Pro";
  font-weight: 400;
  font-size: 12px;
}

.dtp-crumbs a {
  color: var(--dtp-muted);
}

.dtp-crumbs a:hover {
  color: var(--dtp-red);
}

.dtp-crumbs [aria-current] {
  color: var(--dtp-navy);
  font-weight: 500;
}

.dtp-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: var(--dtp-red);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  border-radius: 10px;
  padding: 2px 15px 2px 3px;
}

.dtp-tagline i {
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 8px;
  background: #fff;
  color: var(--dtp-red);
  text-align: center;
  font-size: 15px;
}

.dtp-divider {
  display: block;
  position: relative;
  width: 90px;
  height: 4px;
  margin-top: 14px;
  border-radius: 50px;
  background: var(--dtp-red);
  overflow: hidden;
}

.dtp-divider::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 15px;
  height: 6px;
  background: #fff;
  animation: heading-move 5s infinite linear;
}

.dtp-more .dtp-divider::after {
  background: var(--dtp-surface);
}

/* buttons: same shape and expanding-circle hover as .theme-btn, but the
   hover colour contrasts with the fill so the effect is actually visible */
.dtp-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 500 16px/1.2 var(--body-font);
  padding: 13px 22px;
  border-radius: 10px;
  border: 0;
  white-space: nowrap;
  box-shadow: var(--dtp-shadow);
  transition: color .4s ease, border-color .4s ease;
}

.dtp-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--dtp-btn-hover);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .5s ease;
}

.dtp-btn:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.dtp-btn .fa-arrow-right {
  transform: rotate(-40deg);
  transition: transform .4s ease;
}

.dtp-btn:hover .fa-arrow-right {
  transform: rotate(0);
}

.dtp-btn-navy {
  background: var(--dtp-navy);
  color: #fff;
  --dtp-btn-hover: var(--dtp-red);
}

.dtp-btn-red {
  background: var(--dtp-red);
  color: #fff;
  --dtp-btn-hover: var(--dtp-navy);
}

.dtp-btn-navy:hover,
.dtp-btn-red:hover,
.dtp-btn-navy:focus,
.dtp-btn-red:focus {
  color: #fff;
}

.dtp-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .45);
  box-shadow: none;
  --dtp-btn-hover: #fff;
}

.dtp-btn-ghost:hover,
.dtp-btn-ghost:focus {
  color: var(--dtp-navy);
  border-color: #fff;
}

.dtp-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dtp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dtp-navy);
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 16px/1 var(--heading-font);
  flex: none;
}

.dtp-byline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dtp-byline-name {
  font-weight: 500;
  color: var(--dtp-ink);
  line-height: 1.35;
}

.dtp-byline-meta {
  font-size: 14px;
  color: var(--dtp-muted);
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

/* ---------- article card (listing grid + "keep reading") ---------- */

.dtp-card {
  display: flex;
  flex-direction: column;
}

.dtp-card-media {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--dtp-surface);
}

.dtp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.dtp-card:hover .dtp-card-media img {
  transform: scale(1.05);
}

.dtp-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
}

.dtp-card-title {
  font-size: 21px;
  line-height: 1.3;
}

.dtp-card-title a {
  display: inline;
  color: var(--dtp-navy);
}

.dtp-card:hover .dtp-card-title a,
.dtp-card-title a:focus {
  color: var(--dtp-red);
}

.dtp-excerpt {
  color: var(--dtp-muted);
  font-size: 16px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dtp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--dtp-muted);
  font-variant-numeric: tabular-nums;
}

.dtp-meta span[aria-hidden] {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.dtp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
}

.dtp-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.dtp-section-head h2 {
  font-size: clamp(26px, 2.6vw, 32px);
}

.dtp-section-head p {
  font-size: 15px;
  color: var(--dtp-muted);
  font-variant-numeric: tabular-nums;
}

/* =====================================================================
   BLOG LISTING (/blog/)
   ===================================================================== */

.dtp-masthead {
  padding-block: 64px 0;
  border-top: 1px solid var(--dtp-line);
}

.dtp-masthead-copy {
  display: grid;
  justify-items: start;
  gap: 18px;
  max-width: 820px;
  margin-top: 26px;
}

.dtp-masthead h1 {
  font-size: clamp(36px, 5.2vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
}

.dtp-masthead h1 span {
  color: var(--dtp-red);
}

.dtp-lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--dtp-muted);
  max-width: 62ch;
}

.dtp-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding-block: 18px;
  border-top: 1px solid var(--dtp-line);
  border-bottom: 1px solid var(--dtp-line);
}

.dtp-topics-label {
  font-size: 14px;
  color: var(--dtp-muted);
  margin-right: 6px;
}

.dtp-chip {
  font: 500 15px/1.3 var(--body-font);
  color: var(--dtp-navy);
  background: #fff;
  border: 1px solid var(--dtp-line);
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all .3s ease;
}

.dtp-chip:hover {
  border-color: var(--dtp-navy);
}

.dtp-chip[aria-pressed="true"] {
  background: var(--dtp-navy);
  border-color: var(--dtp-navy);
  color: #fff;
}

.dtp-featured {
  padding-block: 56px;
}

.dtp-featured-card {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 56px;
  align-items: center;
}

.dtp-featured-card .dtp-card-media {
  border-radius: 20px;
  aspect-ratio: 16 / 11;
}

.dtp-featured-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.dtp-featured-flag {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dtp-featured-flag small {
  font-size: 14px;
  color: var(--dtp-muted);
}

.dtp-featured-card .dtp-card-title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
}

.dtp-featured-card .dtp-excerpt {
  font-size: 18px;
  -webkit-line-clamp: 4;
}

.dtp-latest {
  padding-block: 8px 88px;
}

.dtp-empty {
  padding: 40px;
  text-align: center;
  background: var(--dtp-surface);
  border-radius: 20px;
  color: var(--dtp-muted);
}

.dtp-tool {
  padding-bottom: 88px;
}

.dtp-tool-panel {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--dtp-surface);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 56px);
}

.dtp-tool-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.dtp-tool-copy h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.dtp-tool-copy p {
  color: var(--dtp-muted);
  font-size: 17px;
  max-width: 54ch;
}

.dtp-rule {
  display: grid;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--dtp-shadow);
}

.dtp-rule-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 15px/1.3 var(--heading-font);
  color: var(--dtp-navy);
}

.dtp-rule-title i {
  color: var(--dtp-red);
  font-size: 18px;
}

.dtp-rule-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-family: var(--heading-font);
  color: var(--dtp-navy);
  font-variant-numeric: tabular-nums;
}

.dtp-rule-sum b {
  font-size: clamp(30px, 8vw, 40px);
  font-weight: 800;
  line-height: 1;
}

.dtp-rule-sum b.dtp-total {
  color: var(--dtp-red);
}

.dtp-rule-sum span {
  font-size: 22px;
  font-weight: 600;
  color: var(--dtp-muted);
}

.dtp-rule p:last-child {
  font-size: 14px;
  line-height: 1.55;
  color: var(--dtp-muted);
}

.dtp-quote-band {
  padding-bottom: 96px;
}

.dtp-quote-panel,
.dtp-post-cta,
.dtp-help-card {
  background: linear-gradient(135deg, var(--dtp-navy) 0%, var(--dtp-navy-deep) 100%);
  color: #fff;
  border-radius: 20px;
}

.dtp-quote-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4.5vw, 56px);
}

.dtp-quote-panel h2 {
  color: #fff;
  font-size: clamp(28px, 3.2vw, 40px);
}

.dtp-quote-panel p {
  color: rgba(255, 255, 255, .8);
  font-size: 17px;
  margin-top: 10px;
  max-width: 52ch;
}

/* partner strip keeps the site's existing markup (.slider) */
.dtp-partners {
  padding-block: 88px;
}

.dtp-partners .dtp-partners-title {
  text-align: center;
  font-size: clamp(26px, 3.4vw, 40px);
  margin-bottom: 20px;
}

.dtp-partners .dtp-partners-title span {
  color: var(--dtp-red);
}

/* =====================================================================
   ARTICLE PAGES
   ===================================================================== */

.dtp-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1001;
  pointer-events: none;
}

.dtp-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--dtp-red);
  transform: scaleX(0);
  transform-origin: left;
}

.dtp-post-header {
  background: var(--dtp-surface);
  padding-block: 48px 64px;
}

.dtp-post-header-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 56px;
  align-items: center;
}

.dtp-post-header-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.dtp-post-header h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.dtp-dek {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.6;
  color: var(--dtp-muted);
  max-width: 58ch;
}

.dtp-post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  width: 100%;
  margin-top: 4px;
  padding-top: 22px;
  border-top: 1px solid var(--dtp-line);
}

.dtp-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dtp-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--dtp-line);
  background: #fff;
  color: var(--dtp-navy);
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
  transition: all .3s ease;
}

.dtp-share-btn:hover,
.dtp-share-btn:focus {
  background: var(--dtp-navy);
  border-color: var(--dtp-navy);
  color: #fff;
}

.dtp-share-status {
  font-size: 13px;
  color: var(--dtp-muted);
}

.dtp-post-hero {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #e9e9ee;
}

.dtp-post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dtp-post-body {
  padding-block: 64px 96px;
}

.dtp-post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 72px;
  align-items: start;
}

.dtp-article {
  max-width: 720px;
  min-width: 0;
}

/* ---------- article typography ---------- */

.dtp-prose {
  font-size: 18px;
  line-height: 1.75;
  color: var(--dtp-ink);
}

.dtp-prose > p,
.dtp-prose > ul,
.dtp-prose > ol {
  margin: 0 0 1.3em;
}

.dtp-prose > p.dtp-intro {
  font-size: 20px;
  line-height: 1.7;
}

.dtp-prose h2 {
  font-size: clamp(25px, 2.6vw, 31px);
  line-height: 1.22;
  margin: 2.2em 0 .7em;
  scroll-margin-top: var(--dtp-sticky-top);
}

.dtp-prose h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 1.6em 0 .45em;
  scroll-margin-top: var(--dtp-sticky-top);
}

.dtp-prose a:not(.dtp-btn) {
  display: inline;
  color: var(--dtp-navy);
  text-decoration: underline;
  text-decoration-color: rgba(214, 2, 12, .5);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.dtp-prose a:not(.dtp-btn):hover {
  color: var(--dtp-red);
  text-decoration-color: var(--dtp-red);
}

.dtp-prose strong {
  color: var(--dtp-navy);
  font-weight: 700;
}

.dtp-prose figure {
  margin: 2em 0;
}

.dtp-prose figure img {
  width: 100%;
  border-radius: 16px;
}

.dtp-prose figcaption {
  font-size: 14px;
  color: var(--dtp-muted);
  margin-top: 10px;
}

/* bullet list with bold lead-ins */
.dtp-points {
  display: grid;
  gap: 16px;
  padding: 0;
}

.dtp-points li {
  position: relative;
  padding-left: 30px;
}

.dtp-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--dtp-red);
  transform: rotate(45deg);
}

/* numbered steps (a real sequence) */
.dtp-steps {
  counter-reset: dtp-step;
  padding: 0;
  margin: 1.6em 0 1.2em;
}

.dtp-steps li {
  counter-increment: dtp-step;
  position: relative;
  padding: 0 0 30px 64px;
}

.dtp-steps li::before {
  content: counter(dtp-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dtp-navy);
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 17px/1 var(--heading-font);
}

.dtp-steps li::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 50px;
  bottom: 8px;
  width: 2px;
  background: var(--dtp-line);
}

.dtp-steps li:last-child {
  padding-bottom: 0;
}

.dtp-steps li:last-child::after {
  display: none;
}

.dtp-prose .dtp-steps h3 {
  font-size: 20px;
  margin: 7px 0 6px;
}

/* summary boxes at the top of each article */
.dtp-summary {
  border-radius: 16px;
  padding: 26px 28px;
  margin: 8px 0 12px;
  background: var(--dtp-tint-bg);
  border: 1px solid var(--dtp-tint-line);
}

.dtp-summary.dtp-urgent {
  background: var(--dtp-alert-bg);
  border-color: var(--dtp-alert-line);
}

.dtp-summary-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.dtp-summary-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dtp-navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  flex: none;
}

.dtp-urgent .dtp-summary-icon {
  background: var(--dtp-red);
}

.dtp-prose .dtp-summary-head h2 {
  font-size: 20px;
  margin: 0;
}

.dtp-summary p {
  font-size: 17px;
  line-height: 1.65;
}

.dtp-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  padding: 0;
  counter-reset: dtp-q;
}

.dtp-summary-list li {
  position: relative;
  padding-left: 38px;
  font-size: 16px;
  line-height: 1.55;
}

.dtp-summary-list li::before {
  counter-increment: dtp-q;
  content: counter(dtp-q);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--dtp-navy);
  color: var(--dtp-navy);
  display: grid;
  place-items: center;
  font: 700 13px/1 var(--heading-font);
}

.dtp-urgent .dtp-summary-list li::before {
  border-color: var(--dtp-red);
  color: var(--dtp-red);
}

.dtp-summary-list li b {
  display: block;
  font-family: var(--heading-font);
  font-size: 16px;
  color: var(--dtp-navy);
}

/* key facts: not a sequence, so ticks instead of numbers */
.dtp-summary-list.dtp-facts li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Pro";
  font-weight: 400;
  font-size: 13px;
  border: 0;
  background: var(--dtp-navy);
  color: #fff;
}

.dtp-summary > p + .dtp-summary-list {
  margin-top: 16px;
}

.dtp-summary-list a {
  display: inline;
}

.dtp-summary-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--dtp-alert-line);
  font-size: 15px;
}

.dtp-summary:not(.dtp-urgent) .dtp-summary-foot {
  border-top-color: var(--dtp-tint-line);
}

.dtp-prose .dtp-summary-foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: none;
}

.dtp-prose .dtp-summary-foot a.dtp-call {
  color: var(--dtp-red);
  font-size: 17px;
  font-weight: 700;
}

/* FAQ accordion */
.dtp-faq {
  display: grid;
  gap: 12px;
  margin: 1.2em 0 1.4em;
}

.dtp-faq details {
  border: 1px solid var(--dtp-line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .3s ease;
}

.dtp-faq details[open] {
  border-color: var(--dtp-navy);
}

.dtp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}

.dtp-faq summary::-webkit-details-marker {
  display: none;
}

.dtp-faq summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Pro";
  font-weight: 400;
  font-size: 14px;
  color: var(--dtp-red);
  flex: none;
  transition: transform .3s ease;
}

.dtp-faq details[open] summary::after {
  transform: rotate(180deg);
}

.dtp-prose .dtp-faq summary h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}

.dtp-faq-answer {
  padding: 0 22px 20px;
}

.dtp-faq-answer p {
  font-size: 17px;
}

/* closing call-to-action */
.dtp-post-cta {
  display: grid;
  gap: 18px;
  margin-top: 2.4em;
  padding: 36px;
}

.dtp-prose .dtp-post-cta h2 {
  color: #fff;
  font-size: clamp(23px, 2.4vw, 28px);
  margin: 0;
}

.dtp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
}

.dtp-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dtp-trust i {
  color: var(--dtp-red);
}

/* after the article */
.dtp-post-foot {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}

.dtp-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid var(--dtp-line);
  border-bottom: 1px solid var(--dtp-line);
}

.dtp-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dtp-tags > span {
  font-size: 14px;
  color: var(--dtp-muted);
  margin-right: 4px;
}

.dtp-tags a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 8px;
  padding: 5px 12px;
  background: var(--dtp-surface);
}

.dtp-main section.dtp-author {
  display: grid;
  place-items: start stretch;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  background: var(--dtp-surface);
  border-radius: 20px;
  padding: 28px;
}

.dtp-author .dtp-avatar {
  width: 64px;
  height: 64px;
  font-size: 22px;
}

.dtp-author small {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dtp-muted);
}

.dtp-author h2 {
  font-size: 20px;
  margin: 2px 0 8px;
}

.dtp-author p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--dtp-muted);
}

.dtp-author p.dtp-author-role {
  margin: -4px 0 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--dtp-navy);
}

.dtp-related h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.dtp-related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dtp-related-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--dtp-line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.dtp-related-links a:hover {
  border-color: var(--dtp-red);
  color: var(--dtp-navy);
}

.dtp-related-links i {
  color: var(--dtp-red);
}

/* table of contents */
.dtp-toc-mobile {
  display: none;
  margin-bottom: 32px;
  border: 1px solid var(--dtp-line);
  border-radius: 16px;
  background: #fff;
}

.dtp-toc-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font: 700 16px/1.3 var(--heading-font);
  color: var(--dtp-navy);
}

.dtp-toc-mobile summary::-webkit-details-marker {
  display: none;
}

.dtp-toc-mobile summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Pro";
  font-weight: 400;
  font-size: 14px;
  transition: transform .3s ease;
}

.dtp-toc-mobile[open] summary::after {
  transform: rotate(180deg);
}

.dtp-toc-mobile ol {
  display: grid;
  gap: 10px;
  padding: 0 20px 18px;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.dtp-toc-mobile a {
  display: inline;
}

.dtp-rail {
  position: sticky;
  top: var(--dtp-sticky-top);
  display: grid;
  gap: 24px;
  /* on short laptop screens the long contents lists plus the call card are
     taller than the window; let the sidebar scroll on its own */
  max-height: calc(100vh - var(--dtp-sticky-top) - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.dtp-toc-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dtp-muted);
  margin-bottom: 14px;
}

.dtp-toc ol {
  display: grid;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--dtp-line);
}

.dtp-toc a {
  display: block;
  margin-left: -2px;
  padding: 7px 0 7px 18px;
  border-left: 2px solid transparent;
  font-size: 15px;
  line-height: 1.4;
  color: var(--dtp-muted);
  transition: color .2s ease, border-color .2s ease;
}

.dtp-toc a:hover {
  color: var(--dtp-navy);
}

.dtp-toc a[aria-current="true"] {
  color: var(--dtp-navy);
  font-weight: 500;
  border-left-color: var(--dtp-red);
}

.dtp-help-card {
  display: grid;
  gap: 12px;
  padding: 26px;
}

.dtp-help-card h2 {
  color: #fff;
  font-size: 21px;
}

.dtp-help-card p {
  color: rgba(255, 255, 255, .8);
  font-size: 15px;
  line-height: 1.6;
}

.dtp-help-card .dtp-btn {
  width: 100%;
}

.dtp-help-mobile {
  display: none;
  margin-top: 40px;
}

.dtp-more {
  background: var(--dtp-surface);
  padding-block: 80px 96px;
}

/* ---------- responsive ---------- */

@media (max-width: 1199px) {
  .dtp-post-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 48px;
  }
}

@media (max-width: 991px) {
  :root {
    --dtp-sticky-top: 96px;
  }

  .dtp-post-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dtp-article {
    margin-inline: auto;
  }

  .dtp-rail {
    display: none;
  }

  .dtp-toc-mobile {
    display: block;
  }

  .dtp-help-mobile {
    display: grid;
  }

  .dtp-featured-card,
  .dtp-post-header-grid,
  .dtp-tool-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .dtp-post-hero {
    max-width: 640px;
    width: 100%;
  }

  .dtp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .dtp-masthead {
    padding-top: 40px;
  }

  .dtp-topics-label {
    width: 100%;
  }

  .dtp-featured {
    padding-block: 40px;
  }

  .dtp-grid,
  .dtp-related-links,
  .dtp-summary-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .dtp-latest,
  .dtp-tool,
  .dtp-quote-band {
    padding-bottom: 64px;
  }

  .dtp-partners {
    padding-block: 64px;
  }

  .dtp-post-header {
    padding-block: 32px 44px;
  }

  .dtp-post-body {
    padding-block: 44px 72px;
  }

  .dtp-more {
    padding-block: 56px 72px;
  }

  .dtp-prose {
    font-size: 17px;
  }

  .dtp-prose > p.dtp-intro {
    font-size: 19px;
  }

  .dtp-steps li {
    padding-left: 54px;
  }

  .dtp-steps li::before {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .dtp-steps li::after {
    left: 17px;
    top: 44px;
  }

  .dtp-summary,
  .dtp-post-cta,
  .dtp-author {
    padding: 22px;
  }

  .dtp-faq summary {
    padding: 16px 18px;
  }

  .dtp-faq-answer {
    padding: 0 18px 18px;
  }

  .dtp-author {
    grid-template-columns: minmax(0, 1fr);
  }

  .dtp-post-cta .dtp-btn,
  .dtp-quote-panel .dtp-btn {
    flex: 1 1 220px;
  }
}

@media (max-width: 400px) {
  .dtp-btn {
    white-space: normal;
    text-align: center;
  }
}

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