/*
 * The /tools/ section: hero, explainer sections and the hub's card grid.
 * Same palette and type as the calculator (.dsfm-sc), scoped to .dtp.
 */
.dtp {
	--t-cloud: #EAF4F8; --t-mist: #CBE3EC; --t-primary: #2C7791; --t-deep-blue: #1E5366;
	--t-mint: #E7F2EE; --t-sage: #83B4A2; --t-green: #2E6B57;
	--t-lav-tint: #EFEAF7; --t-deep-lav: #6C5AA6; --t-blush-tint: #FBECEA; --t-deep-blush: #B85E5C;
	--t-ink: #20414E; --t-slate: #4D6B77; --t-line: #DCE8ED; --t-paper: #FFFFFF;
	--t-head: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
	--t-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
	font-family: var(--t-body);
	color: var(--t-ink);
	font-size: 17px;
	line-height: 1.65;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px 64px;
}
.dtp *, .dtp *::before, .dtp *::after { box-sizing: border-box; }
.dtp h1, .dtp h2, .dtp h3 { font-family: var(--t-head); color: var(--t-ink); font-weight: 700; letter-spacing: -0.01em; text-transform: none; }
.dtp h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin: 0 0 12px; }
.dtp h3 { font-size: 20px; line-height: 1.3; margin: 0 0 6px; }
.dtp p { margin: 0 0 14px; }
.dtp a { color: var(--t-primary); text-underline-offset: 2px; }
.dtp a:hover { color: var(--t-deep-blue); }
.dtp-eyebrow { display: inline-block; font-family: var(--t-body); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--t-green); }

/* hero */
.dtp-hero {
	margin: 28px 0 40px;
	padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 56px);
	border-radius: 24px;
	background: linear-gradient(120deg, var(--t-cloud) 0%, var(--t-mint) 100%);
	border: 1px solid var(--t-line);
}
.dtp-hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; margin: 10px 0 14px; max-width: 18ch; }
.dtp-lede { font-size: clamp(18px, 2vw, 21px); color: var(--t-slate); max-width: 62ch; margin-bottom: 22px !important; }
.dtp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dtp-chips li { margin: 0; background: var(--t-paper); border: 1px solid var(--t-line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--t-ink); }
.dtp-jump { display: inline-block; margin-top: 22px; background: var(--t-primary); color: #fff !important; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 12px; }
.dtp-jump:hover { background: var(--t-deep-blue); }

/* sections */
.dtp-section { margin: 56px 0; }
.dtp-section > p.dtp-intro { color: var(--t-slate); max-width: 70ch; }

/* audience cards */
.dtp-audience { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 22px; }
.dtp-who { background: var(--t-paper); border: 1px solid var(--t-line); border-radius: 18px; padding: 24px; }
.dtp-who::before { content: ""; display: block; width: 36px; height: 6px; border-radius: 3px; margin-bottom: 16px; background: var(--t-primary); }
.dtp-who:nth-child(2)::before { background: var(--t-deep-lav); }
.dtp-who:nth-child(3)::before { background: var(--t-green); }
.dtp-who p { color: var(--t-slate); font-size: 16px; margin: 0; }
.dtp-who strong { color: var(--t-ink); }

/* steps */
.dtp-steps { counter-reset: step; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 22px 0 0; padding: 0; list-style: none; }
.dtp-steps li { counter-increment: step; margin: 0; background: var(--t-cloud); border-radius: 16px; padding: 22px 22px 20px; font-size: 16px; }
.dtp-steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--t-primary); color: #fff; font-family: var(--t-head); font-weight: 700; margin-bottom: 12px; }
.dtp-steps strong { display: block; font-family: var(--t-head); font-size: 18px; margin-bottom: 4px; }

/* three layers */
.dtp-layers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 22px; }
.dtp-layer { border-radius: 18px; padding: 24px; border: 1px solid var(--t-line); }
.dtp-layer--pipe { background: var(--t-cloud); }
.dtp-layer--dash { background: var(--t-mint); }
.dtp-layer--platform { background: var(--t-lav-tint); }
.dtp-layer h3 { margin-bottom: 4px; }
.dtp-layer .dtp-eyebrow { margin-bottom: 6px; }
.dtp-layer--dash .dtp-eyebrow { color: var(--t-green); }
.dtp-layer--pipe .dtp-eyebrow { color: var(--t-primary); }
.dtp-layer--platform .dtp-eyebrow { color: var(--t-deep-lav); }
.dtp-layer p { font-size: 16px; color: var(--t-slate); margin: 0 0 8px; }
.dtp-layer p:last-child { margin: 0; }

/* two-column honesty block */
.dtp-split { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 22px; }
.dtp-box { background: var(--t-paper); border: 1px solid var(--t-line); border-radius: 18px; padding: 24px 26px; }
.dtp-box ul { margin: 8px 0 0; padding-left: 20px; }
.dtp-box li { margin: 0 0 8px; font-size: 16px; }
.dtp-box--warn { background: var(--t-blush-tint); border-color: #F3D4D2; }

/* the tool itself */
.dtp-tool { margin: 8px 0 56px; scroll-margin-top: 90px; }

/* related reading + hub cards */
.dtp-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 22px; }
.dtp-card { display: flex; flex-direction: column; gap: 6px; background: var(--t-paper); border: 1px solid var(--t-line); border-radius: 18px; padding: 24px; text-decoration: none !important; color: var(--t-ink) !important; transition: border-color .15s, transform .15s; }
.dtp-card:hover { border-color: var(--t-sage); transform: translateY(-2px); }
.dtp-card-title { font-family: var(--t-head); font-weight: 700; font-size: 20px; line-height: 1.25; }
.dtp-card-text { color: var(--t-slate); font-size: 15px; }
.dtp-card-cta { margin-top: auto; padding-top: 8px; color: var(--t-primary); font-weight: 600; font-size: 15px; }
.dtp-related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 18px 0 0; padding: 0; list-style: none; }
.dtp-related li { margin: 0; }
.dtp p:empty { display: none; }
.dtp-related a, .dtp-related a:hover { text-decoration: none !important; }
.dtp-related a { display: block; height: 100%; background: var(--t-cloud); border-radius: 14px; padding: 16px 18px; text-decoration: none; font-weight: 600; color: var(--t-ink); }
.dtp-related a span { display: block; font-weight: 400; font-size: 14px; color: var(--t-slate); margin-top: 2px; }
.dtp-related a:hover { background: var(--t-mist); }
.dtp-fineprint { font-size: 14px; color: var(--t-slate); }

@media (max-width: 600px) {
	.dtp { font-size: 16px; padding: 0 14px 48px; }
	.dtp-hero { border-radius: 18px; margin-top: 16px; }
}

/* ---------------------------------------------------------------- ebook landing pages */
.dtp-book-hero { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); align-items: center; }
.dtp-book-hero h1 { max-width: 16ch; }
.dtp-book-sub { font-family: var(--t-head); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.35; color: var(--t-deep-blue); margin: 0 0 14px !important; max-width: 34ch; }
.dtp-book-by { font-size: 15px; color: var(--t-slate); margin: 0 0 20px !important; }
.dtp-book-cover { margin: 0; justify-self: center; width: 100%; max-width: 340px; }
.dtp-book-cover img { display: block; width: 100%; height: auto; border-radius: 6px 12px 12px 6px; box-shadow: 0 1px 2px rgba(32,65,78,.12), 0 18px 40px -12px rgba(30,83,102,.45); }
.dtp-buy-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 4px 0 0; }
.dtp-buy { display: inline-flex; align-items: center; gap: 12px; background: var(--t-primary); color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 17px; padding: 14px 24px; border-radius: 12px; }
.dtp-buy:hover { background: var(--t-deep-blue); }
.dtp-buy-price { background: rgba(255,255,255,.18); border-radius: 8px; padding: 2px 10px; font-family: var(--t-head); }
.dtp-buy-price .woocommerce-Price-amount { color: inherit; }
.dtp-buy--soon { background: var(--t-slate); cursor: default; }
.dtp-buy-note { font-size: 14px; color: var(--t-slate); }
.dtp-buy-draft { flex-basis: 100%; color: var(--t-deep-blush); }
.dtp-stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0; padding: 0; list-style: none; }
.dtp-stats li { margin: 0; background: var(--t-paper); border: 1px solid var(--t-line); border-radius: 16px; padding: 18px 18px 16px; font-size: 14px; color: var(--t-slate); line-height: 1.4; }
.dtp-stats b { display: block; font-family: var(--t-head); font-size: 30px; line-height: 1.1; color: var(--t-ink); margin-bottom: 4px; }
.dtp-parts { columns: 3 300px; column-gap: 14px; margin-top: 22px; }
.dtp-part { break-inside: avoid; margin: 0 0 14px; display: inline-block; width: 100%; background: var(--t-paper); border: 1px solid var(--t-line); border-radius: 18px; padding: 22px 24px; }
.dtp-part .dtp-eyebrow { color: var(--t-primary); }
.dtp-part h3 { margin: 4px 0 8px; }
.dtp-part p { font-size: 15px; color: var(--t-slate); margin: 0 0 10px; }
.dtp-part ol { margin: 0; padding-left: 0; list-style: none; font-size: 15px; }
.dtp-part li { margin: 0; padding: 5px 0; border-top: 1px solid var(--t-line); display: flex; gap: 10px; }
.dtp-part li span { color: var(--t-slate); min-width: 2.2em; font-variant-numeric: tabular-nums; }
.dtp-look { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }
.dtp-look figure { margin: 0; }
.dtp-look a { display: block; }
.dtp-look img { display: block; width: 100%; height: auto; border: 1px solid var(--t-line); border-radius: 8px; box-shadow: 0 10px 24px -14px rgba(30,83,102,.35); background: #fff; transition: transform .15s; }
.dtp-look a:hover img { transform: translateY(-3px); }
.dtp-look figcaption { font-size: 14px; color: var(--t-slate); margin-top: 10px; line-height: 1.45; }
.dtp-look figcaption b { color: var(--t-ink); display: block; }
.dtp-pair { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; margin-top: 22px; }
.dtp-pair figure { margin: 0; }
.dtp-pair img { display: block; width: 100%; height: auto; border: 1px solid var(--t-line); border-radius: 8px; background: #fff; }
.dtp-pair figcaption { font-size: 14px; color: var(--t-slate); margin-top: 8px; }
.dtp-pair figcaption b { color: var(--t-ink); }
.dtp-author { display: grid; gap: 28px; grid-template-columns: 180px minmax(0, 1fr); align-items: start; background: var(--t-cloud); border-radius: 24px; padding: clamp(22px, 4vw, 40px); }
.dtp-author img { display: block; width: 100%; height: auto; border-radius: 16px; }
.dtp-author h2 { margin-bottom: 4px; }
.dtp-author .dtp-role { color: var(--t-slate); font-size: 15px; margin-bottom: 14px; }
.dtp-reviews-head { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-weight: 600; }
.dtp-reviews { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dtp-review { margin: 0; background: var(--t-paper); border: 1px solid var(--t-line); border-radius: 18px; padding: 22px 24px; }
.dtp-review blockquote { margin: 10px 0 12px; padding: 0; border: 0; font-style: normal; font-size: 16px; color: var(--t-ink); }
.dtp-review blockquote p { margin: 0 0 8px; }
.dtp-review figcaption { font-weight: 600; font-size: 15px; }
.dtp-review figcaption span { font-weight: 400; color: var(--t-slate); }
.dtp-stars { position: relative; display: inline-block; width: 92px; height: 18px; background: linear-gradient(90deg, var(--t-line) 0 100%); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 18'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M9 0l2.6 5.6 6.1.7-4.5 4.2 1.2 6L9 13.5 3.6 16.5l1.2-6L.3 6.3l6.1-.7z'/%3E%3Cuse href='%23s' x='18.5'/%3E%3Cuse href='%23s' x='37'/%3E%3Cuse href='%23s' x='55.5'/%3E%3Cuse href='%23s' x='74'/%3E%3C/g%3E%3C/svg%3E") no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 18'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M9 0l2.6 5.6 6.1.7-4.5 4.2 1.2 6L9 13.5 3.6 16.5l1.2-6L.3 6.3l6.1-.7z'/%3E%3Cuse href='%23s' x='18.5'/%3E%3Cuse href='%23s' x='37'/%3E%3Cuse href='%23s' x='55.5'/%3E%3Cuse href='%23s' x='74'/%3E%3C/g%3E%3C/svg%3E") no-repeat; }
.dtp-stars span { position: absolute; inset: 0 auto 0 0; background: #E2A73B; }
.dtp-reviews-empty { background: var(--t-paper); border: 1px dashed var(--t-mist); border-radius: 18px; padding: 24px 26px; margin-top: 18px; }
.dtp-reviews-empty p { color: var(--t-slate); }
.dtp-reviews-empty .dtp-jump { margin-top: 4px; }
.dtp-final { text-align: center; background: linear-gradient(120deg, var(--t-cloud) 0%, var(--t-mint) 100%); border: 1px solid var(--t-line); border-radius: 24px; padding: clamp(28px, 5vw, 52px) 22px; }
.dtp-final h2 { max-width: 24ch; margin: 0 auto 10px; }
.dtp-final p { max-width: 56ch; margin: 0 auto 20px; color: var(--t-slate); }
.dtp-final .dtp-buy-wrap { justify-content: center; }
.dtp-checks { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dtp-checks li { margin: 0; padding-left: 30px; position: relative; font-size: 16px; }
.dtp-checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--t-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
@media (max-width: 860px) {
	.dtp-book-hero { grid-template-columns: 1fr; }
	.dtp-book-cover { order: -1; max-width: 230px; }
	.dtp-look { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.dtp-look, .dtp-pair { grid-template-columns: 1fr; }
	.dtp-author { grid-template-columns: 1fr; }
	.dtp-author img { max-width: 160px; }
	.dtp-buy { width: 100%; justify-content: center; }
}

/* featured book on /ebooks/ */
.dtp-feature { margin-top: 12px; background: var(--t-paper); border: 1px solid var(--t-line); border-radius: 24px; padding: clamp(24px, 4vw, 48px); box-shadow: 0 18px 40px -28px rgba(30,83,102,.45); }
.dtp-feature h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; margin: 0 0 10px; }
.dtp-feature h2 a { color: var(--t-ink); text-decoration: none !important; }
.dtp-feature h2 a:hover { color: var(--t-primary); }
.dtp-feature p { color: var(--t-slate); max-width: 60ch; }
.dtp-feature .dtp-book-cover { max-width: 300px; }
.dtp-feature .dtp-book-cover a { display: block; }
.dtp ul.dtp-chips { margin-left: 0 !important; padding-left: 0 !important; }
