/* Truth Trade: About + policy pages (Privacy, Terms, Refund). Uses the theme's colour tokens. */
.tt-doc {
	--d-blue: var(--tt-blue, #0068D3);
	--d-navy: var(--tt-navy, #003F7D);
	--d-yellow: var(--tt-yellow, #FEC42D);
	--d-ink: var(--tt-ink, #0B1B33);
	--d-slate: var(--tt-slate, #46546B);
	--d-muted: var(--tt-muted, #5B6B82);
	--d-tint: var(--tt-tint, #EAF3FC);
	--d-ground: var(--tt-ground, #F3F6FA);
	--d-line: var(--tt-line, #E1E6EE);
	max-width: 1120px !important;
	margin: 0 auto 64px !important;
	color: var(--d-slate);
	font-size: 1.02rem;
}
.tt-doc.tt-doc--toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.tt-doc__body { min-width: 0; max-width: 760px; }
.tt-doc__body > * + * { margin-top: 0; }

/* Contents sidebar (built by tt-doc.js) */
.tt-doc__toc { position: sticky; top: 96px; font-size: .9rem; border-left: 2px solid var(--d-line); padding: 4px 0 4px 18px; max-height: calc(100vh - 120px); overflow: auto; }
.admin-bar .tt-doc__toc { top: 128px; }
.tt-doc__toc-title { font-weight: 700; color: var(--d-ink); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; margin: 0 0 10px; }
.tt-doc__toc ol { list-style: none; margin: 0; padding: 0; }
.tt-doc__toc li { margin: 0; }
.tt-doc__toc a { display: block; padding: 4px 0; font-size: .86rem; color: var(--d-muted); text-decoration: none; line-height: 1.35; transition: color .15s; }
.tt-doc__toc a:hover { color: var(--d-blue); }
.tt-doc__toc a.is-active { color: var(--d-blue); font-weight: 700; }

/* Meta line + intro */
.tt-doc .tt-doc__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.tt-doc .tt-doc__meta li { background: var(--d-ground); border: 1px solid var(--d-line); border-radius: 999px; padding: 4px 12px; font-size: .8rem; color: var(--d-muted); margin: 0; }
.tt-doc .tt-doc__intro { font-size: 1.15rem; line-height: 1.6; color: var(--d-ink); margin: 0 0 28px; }

/* Body text */
.tt-doc p { line-height: 1.75; margin: 0 0 16px; }
.tt-doc ul, .tt-doc ol.wp-block-list { margin: 0 0 18px; padding-left: 1.25em; }
.tt-doc li { line-height: 1.65; margin: 0 0 8px; }
.tt-doc li::marker { color: var(--d-blue); }
.tt-doc strong { color: var(--d-ink); }
.tt-doc a { color: var(--d-blue); text-underline-offset: 3px; }
.tt-doc h2 { font-family: "Archivo Black", Archivo, sans-serif; color: var(--d-ink); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.2; margin: 44px 0 14px; padding-top: 28px; border-top: 1px solid var(--d-line); scroll-margin-top: 110px; }
.tt-doc h3 { color: var(--d-ink); font-size: 1.08rem; font-weight: 800; margin: 26px 0 8px; scroll-margin-top: 110px; }

/* The short version */
.tt-doc .tt-doc__summary { background: var(--d-tint); border: 1px solid #CFE2F7; border-left: 5px solid var(--d-blue); border-radius: 14px; padding: 22px 26px 8px; margin: 0 0 12px; }
.tt-doc .tt-doc__summary h2 { border: 0; padding: 0; margin: 0 0 10px; font-size: 1.05rem; letter-spacing: .02em; }
.tt-doc .tt-doc__summary ul { padding-left: 1.1em; }
.tt-doc .tt-doc__summary li { color: var(--d-ink); }

/* Callouts */
.tt-doc .tt-doc__note { background: #FFF8E1; border: 1px solid #F6DB8A; border-radius: 12px; padding: 16px 20px; margin: 0 0 18px; color: var(--d-ink); }
.tt-doc .tt-doc__note p:last-child { margin-bottom: 0; }

/* Tables */
.tt-doc .tt-doc__table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--d-line); border-radius: 12px; overflow: hidden; margin: 6px 0 20px; font-size: .95rem; }
.tt-doc .tt-doc__table th { background: var(--d-blue); color: #fff; text-align: left; font-weight: 700; padding: 11px 14px; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.tt-doc .tt-doc__table td { padding: 12px 14px; border-top: 1px solid var(--d-line); vertical-align: top; line-height: 1.5; }
.tt-doc .tt-doc__table tr:nth-child(even) td { background: var(--d-ground); }
.tt-doc .tt-doc__table td:first-child { font-weight: 700; color: var(--d-ink); }

/* Cards (About + Refund) */
.tt-doc .tt-doc__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 24px; }
.tt-doc .tt-doc__cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tt-doc .tt-doc__card { background: #fff; border: 1px solid var(--d-line); border-radius: 14px; padding: 20px; box-shadow: 0 1px 2px rgba(11, 27, 51, .04); }
.tt-doc .tt-doc__card h3 { margin: 0 0 6px; font-size: 1.02rem; }
.tt-doc .tt-doc__card p { margin: 0; font-size: .95rem; line-height: 1.6; }
.tt-doc .tt-doc__card .tt-doc__big { display: block; font-family: "Archivo Black", Archivo, sans-serif; font-size: 1.7rem; color: var(--d-blue); line-height: 1.1; margin-bottom: 6px; }
.tt-doc .tt-doc__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--d-tint); color: var(--d-blue); font-weight: 800; margin-bottom: 12px; }

/* Numbered steps (About) */
.tt-doc .tt-doc__steps { list-style: none; counter-reset: s; padding: 0; margin: 8px 0 24px; display: grid; gap: 12px; }
.tt-doc .tt-doc__steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 64px; background: var(--d-ground); border-radius: 12px; margin: 0; }
.tt-doc .tt-doc__steps li::before { content: counter(s); position: absolute; left: 18px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--d-blue); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .95rem; }
.tt-doc .tt-doc__steps strong { display: block; margin-bottom: 2px; }

/* Contact card */
.tt-doc .tt-doc__contact { margin-top: 40px; background: var(--d-navy); color: #DCE8F7; border-radius: 16px; padding: 26px 28px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.tt-doc .tt-doc__contact h2 { color: #fff; border: 0; padding: 0; margin: 0 0 4px; font-size: 1.2rem; }
.tt-doc .tt-doc__contact p { margin: 0; color: #DCE8F7; }
.tt-doc .tt-doc__contact a.tt-doc__btn { background: var(--d-yellow); color: var(--d-ink); text-decoration: none; font-weight: 800; padding: 12px 20px; border-radius: 10px; white-space: nowrap; }
.tt-doc .tt-doc__contact a.tt-doc__btn:hover { filter: brightness(.96); }

/* Back to top */
.tt-doc__top { display: inline-block; margin-top: 18px; font-size: .85rem; color: var(--d-muted) !important; text-decoration: none; }

@media (max-width: 1000px) {
	.tt-doc.tt-doc--toc { display: block; }
	.tt-doc__toc { position: static; max-height: none; border: 1px solid var(--d-line); border-radius: 12px; padding: 14px 18px; margin: 0 0 24px; background: #fff; }
	.tt-doc__toc ol { columns: 2; column-gap: 24px; }
}
@media (max-width: 720px) {
	.tt-doc { font-size: 1rem; }
	.tt-doc .tt-doc__cards, .tt-doc .tt-doc__cards--2 { grid-template-columns: 1fr; }
	.tt-doc__toc ol { columns: 1; }
	.tt-doc .tt-doc__summary { padding: 18px 18px 6px; }
	.tt-doc .tt-doc__table { font-size: .88rem; }
	.tt-doc .tt-doc__table th, .tt-doc .tt-doc__table td { padding: 9px 10px; }
	.tt-doc .tt-doc__contact { padding: 22px 20px; }
	.tt-doc .tt-doc__steps li { padding-left: 58px; }
}

/* Line the page title up with the wider layout */
main:has(.tt-doc) > .tt-page__title, main:has(.tt-doc) .wp-block-post-title { max-width: 1120px !important; margin-left: auto !important; margin-right: auto !important; }
main:has(.tt-doc.has-toc) .wp-block-post-title { padding-left: 296px; }
@media (max-width: 1000px) { main:has(.tt-doc.has-toc) .wp-block-post-title { padding-left: 0; } }
.tt-doc__toc { scrollbar-width: thin; }

/* About page (no contents sidebar): narrower reading width */
.tt-doc:not(.has-toc) { max-width: 920px !important; }
main:has(.tt-doc:not(.has-toc)) .wp-block-post-title { max-width: 920px !important; }
/* Steps and cards sit on white so they stand out from the page background */
.tt-doc .tt-doc__steps li { background: #fff; border: 1px solid var(--d-line); }
.tt-doc .tt-doc__steps li > * { margin: 0; }
.tt-doc .tt-doc__summary { background: #EEF5FD; }

/* Contents list: always open on desktop, tap to open on phones */
.tt-doc__toc details > summary { list-style: none; cursor: default; }
.tt-doc__toc details > summary::-webkit-details-marker { display: none; }
@media (max-width: 1000px) {
	.tt-doc__toc details > summary { cursor: pointer; margin: 0; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; }
	.tt-doc__toc details > summary::after { content: '+'; font-size: 1.2rem; color: var(--d-blue); }
	.tt-doc__toc details[open] > summary { margin-bottom: 10px; }
	.tt-doc__toc details[open] > summary::after { content: '–'; }
}

/* ---------- Brand accents (blue + yellow, used sparingly) ---------- */
/* A short yellow segment on each section's divider line */
.tt-doc h2 { position: relative; }
.tt-doc h2::before { content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: 3px; border-radius: 0 0 2px 2px; background: var(--d-yellow); }
.tt-doc .tt-doc__summary h2::before, .tt-doc .tt-doc__contact h2::before { content: none; }

/* Numbered headings (Privacy, Terms): the number sits in a blue badge. The full stop stays for screen readers. */
.tt-doc h2:has(> .tt-doc__num) { display: flex; align-items: flex-start; gap: .55em; }
.tt-doc .tt-doc__num {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-sizing: border-box;
	min-width: 1.75em; height: 1.75em; padding: 0 .45em; margin: -.1em .45em 0 0; border-radius: 999px;
	background: var(--d-blue); color: #fff; font-size: .68em; line-height: 1; vertical-align: .15em;
}
.tt-doc h2:has(> .tt-doc__num) .tt-doc__num { margin: .04em 0 0; }
.tt-doc .tt-doc__dot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* "The short version": tinted box, yellow label, blue check bullets */
.tt-doc .tt-doc__summary { background: linear-gradient(180deg, #EEF5FD 0%, #F7FAFE 100%); border-color: #CFE2F7; border-left-color: var(--d-blue); box-shadow: 0 8px 24px rgba(0, 50, 110, .06); padding: 22px 26px 10px; }
.tt-doc .tt-doc__summary h2 { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: var(--d-yellow); color: var(--d-ink); font-family: Archivo, sans-serif; font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }
.tt-doc .tt-doc__summary ul { list-style: none; padding-left: 0; }
.tt-doc .tt-doc__summary li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.tt-doc .tt-doc__summary li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
	background: var(--d-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Small echoes of the homepage: last step and the promise cards get the yellow */
.tt-doc .tt-doc__steps li:last-child::before { background: var(--d-yellow); color: var(--d-ink); }
.tt-doc .tt-doc__cards--2 .tt-doc__icon { background: var(--d-yellow); color: var(--d-ink); }

@media (max-width: 720px) {
	.tt-doc .tt-doc__summary { padding: 18px 18px 8px; }
}

/* ---------- Oct 9, 2026: pictures on the About page ---------- */
/* Card icons are inline SVGs in the brand colours */
.tt-doc .tt-doc__icon svg { display: block; }
.tt-doc .tt-doc__cards--2 .tt-doc__icon { background: var(--d-tint); color: var(--d-blue); }
/* Illustrated steps: two across, a scene on top of each card, the number sits on the scene */
.tt-doc .tt-doc__steps--pics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tt-doc .tt-doc__steps--pics li { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tt-doc .tt-doc__steps--pics li::before { content: none; }
.tt-doc .tt-doc__scene { position: relative; background: var(--d-tint); padding: 14px 18px 8px; }
.tt-doc .tt-doc__scene svg { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; overflow: visible; }
.tt-doc .tt-doc__scene svg * { transform-box: fill-box; transform-origin: center; }
.tt-doc .tt-doc__scene b { position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--d-blue); color: #fff; font-weight: 800; font-size: .9rem; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 50, 110, .18); }
.tt-doc .tt-doc__steps--pics li:last-child .tt-doc__scene b { background: var(--d-yellow); color: var(--d-ink); }
.tt-doc .tt-doc__steptext { padding: 16px 18px 18px; }
.tt-doc .tt-doc__steptext strong { display: block; margin-bottom: 4px; }
/* The scenes play once when the list scrolls into view (tt-doc.js adds .is-in). Without JS nothing is hidden. */
.tt-js .tt-doc__steps--pics .ab-car { transform: translateX(90px); opacity: 0; }
.tt-js .tt-doc__steps--pics .ab-tag, .tt-js .tt-doc__steps--pics .ab-hit, .tt-js .tt-doc__steps--pics .ab-bubble, .tt-js .tt-doc__steps--pics .ab-stamp, .tt-js .tt-doc__steps--pics .ab-check { opacity: 0; }
.tt-js .tt-doc__steps--pics .ab-ring { opacity: 0; }
.tt-js .tt-doc__steps--pics .ab-glass { transform: translate(-54px, 26px); }
.tt-js .tt-doc__steps--pics .ab-line { transform: scaleX(0); transform-origin: left center; }
.tt-doc__steps--pics.is-in .ab-car { animation: ab-drive .9s cubic-bezier(.3, .7, .3, 1) forwards; }
.tt-doc__steps--pics.is-in .ab-tag { animation: ab-pop .45s ease-out forwards; animation-delay: .9s; }
.tt-doc__steps--pics.is-in .ab-glass { animation: ab-search 1.6s ease-in-out forwards; animation-delay: .3s; }
.tt-doc__steps--pics.is-in .ab-hit { animation: ab-fade .4s ease-out forwards; animation-delay: 1.9s; }
.tt-doc__steps--pics.is-in .ab-ring { animation: ab-ringon 1.4s ease-in-out 2 forwards; animation-delay: .4s; }
.tt-doc__steps--pics.is-in .ab-ring2 { animation-delay: .6s; }
.tt-doc__steps--pics.is-in .ab-bubble1 { animation: ab-pop .45s ease-out forwards; animation-delay: 1.4s; }
.tt-doc__steps--pics.is-in .ab-bubble2 { animation: ab-pop .45s ease-out forwards; animation-delay: 2.2s; }
.tt-doc__steps--pics.is-in .ab-dot { animation: ab-dots 1.1s ease-in-out infinite; animation-delay: 2.6s; }
.tt-doc__steps--pics.is-in .ab-dot2 { animation-delay: 2.78s; } .tt-doc__steps--pics.is-in .ab-dot3 { animation-delay: 2.96s; }
.tt-doc__steps--pics.is-in .ab-line { animation: ab-grow .5s ease-out forwards; }
.tt-doc__steps--pics.is-in .ab-line2 { animation-delay: .25s; } .tt-doc__steps--pics.is-in .ab-line3 { animation-delay: .5s; } .tt-doc__steps--pics.is-in .ab-line4 { animation-delay: .75s; }
.tt-doc__steps--pics.is-in .ab-stamp { animation: ab-pop .5s ease-out forwards; animation-delay: 1.3s; }
.tt-doc__steps--pics.is-in .ab-check { animation: ab-pop .5s ease-out forwards; animation-delay: 1.7s; }
@keyframes ab-drive { to { transform: translateX(0); opacity: 1; } }
@keyframes ab-pop { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ab-fade { to { opacity: 1; } }
@keyframes ab-search { 0% { transform: translate(-54px, 26px); } 35% { transform: translate(-20px, -6px); } 70%, 100% { transform: translate(-54px, 26px); } }
@keyframes ab-ringon { 0%, 100% { opacity: 0; } 30%, 70% { opacity: 1; } }
@keyframes ab-dots { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ab-grow { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .tt-js .tt-doc__steps--pics svg * { animation: none !important; opacity: 1 !important; transform: none !important; } }
/* What's in your report: text beside the first page of the sample */
.tt-doc .tt-doc__report { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 8px 36px; align-items: start; margin: 0 0 8px; }
.tt-doc .tt-doc__report-text > :last-child { margin-bottom: 0; }
.tt-doc .tt-doc__thumb { display: block; text-decoration: none; margin-top: 6px; }
.tt-doc .tt-doc__thumb img { display: block; width: 100%; height: auto; border: 1px solid var(--d-line); border-radius: 8px; box-shadow: 0 10px 26px rgba(11, 27, 51, .12); background: #fff; transition: transform .2s; }
.tt-doc .tt-doc__thumb:hover img { transform: translateY(-3px); }
.tt-doc .tt-doc__thumb span { display: block; margin-top: 10px; font-size: .88rem; font-weight: 700; color: var(--d-blue); text-align: center; }
@media (max-width: 720px) {
	.tt-doc .tt-doc__steps--pics { grid-template-columns: 1fr; }
	.tt-doc .tt-doc__report { grid-template-columns: 1fr; }
	.tt-doc .tt-doc__thumb { max-width: 240px; margin: 8px auto 0; }
}

/* ---------- Oct 9, 2026: Buyer's guides index ---------- */
.tt-doc .tt-doc__card--link { display: block; color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.tt-doc .tt-doc__card--link:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 50, 110, .10); }
.tt-doc .tt-doc__card--link h3 { color: var(--d-ink); }
.tt-doc .tt-doc__card--link .tt-doc__icon { font-family: "Archivo Black", Archivo, sans-serif; }
.tt-doc .tt-doc__readmore { display: block; margin-top: 12px; font-size: .88rem; font-weight: 700; color: var(--d-blue); }
.tt-doc .tt-doc__guides { margin-bottom: 32px; }
