/* Client report (print / Save as PDF). Fonts and colours come from the site theme in the kit. */
.report, .toolbar, .page-footer, body.threads-report-page {
	--cream: #f4f6f8;
	--paper: #F3EDE3;
	--ink: #161A1D;
	--muted: #5B6166;
	--line: #dfe4ea;
	--grid: #EFE8DC;
	--thread: #1f3a5f;
	--thread-dark: #963420;
	--ok: #2F7A4F;
	--display: Fraunces, Georgia, serif;
	--sans: Inter, system-ui, -apple-system, sans-serif;
}
.report, .report * { box-sizing: border-box; }
.report { color: var(--ink); font-family: var(--sans); font-size: 10.5pt; line-height: 1.55; -webkit-font-smoothing: antialiased; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body.threads-report-page { margin: 0; }
body.threads-report-page { background: #E9E4DB; color: var(--ink); font-family: var(--sans); font-size: 10.5pt; line-height: 1.55; -webkit-font-smoothing: antialiased; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Screen toolbar */
.toolbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: var(--ink); color: var(--cream); font-size: 13px; }
.toolbar a { color: var(--cream); text-decoration: none; opacity: .85; }
.toolbar span { flex: 1; opacity: .7; }
.toolbar button { padding: 9px 18px; border: 0; border-radius: 9999px; background: var(--thread); color: #fff; font: 500 14px var(--sans); cursor: pointer; }
.toolbar button:hover { background: var(--thread-dark); }
.page-footer { display: none; }

/* Pages on screen */
.report { max-width: 8.5in; margin: 24px auto 48px; }
.report > section { background: var(--cream); padding: 0.6in 0.65in; margin-bottom: 16px; box-shadow: 0 1px 3px rgb(0 0 0 / .08); }

/* Type */
.report h1, .report h2, .report h3 { font-family: var(--display); font-weight: 400; margin: 0; color: var(--ink); }
.report h2 { display: flex; align-items: baseline; gap: 12px; font-size: 22pt; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 14px; }
.report h2 .num { font-family: var(--sans); font-size: 9pt; font-weight: 600; letter-spacing: .08em; color: var(--thread); }
.report h3 { font-size: 13pt; line-height: 1.3; }
.report p { margin: 0 0 10px; }
.report .intro { color: var(--muted); max-width: 6in; margin-bottom: 16px; }
.report .small { font-size: 9.5pt; color: var(--muted); margin-top: 12px; }
.report .label { display: block; font-size: 8pt; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.report .tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 9999px; background: var(--thread); color: #fff; font: 600 7.5pt var(--sans); vertical-align: middle; }
.report .tag.is-light { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }

/* Cover */
.report .cover { display: flex; flex-direction: column; min-height: 10in; }
.report .brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 15pt; }
.report .brand em { color: var(--thread); }
.report .client-logo { margin-left: auto; display: flex; align-items: center; padding-left: 16px; }
.report .client-logo img { display: block; height: 0.55in; width: auto; max-width: 1.9in; object-fit: contain; }
.report .cover-main { margin-top: 2.2in; }
.report .eyebrow { font-size: 9pt; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--thread); margin-bottom: 10px; }
.report .cover h1 { font-size: 44pt; line-height: 1.02; letter-spacing: -.02em; }
.report .cover-meta { margin-top: 14px; color: var(--muted); font-size: 11pt; }
.report .cover-line { margin-top: 36px; max-width: 5.6in; font-family: var(--display); font-size: 17pt; line-height: 1.35; border-left: 3px solid var(--thread); padding-left: 18px; }
.report .notice { margin-top: auto; padding: 16px 18px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.report .notice strong { display: block; font-size: 10pt; margin-bottom: 4px; }
.report .notice p { margin: 0; color: var(--muted); font-size: 9.5pt; }

/* At a glance */
.report .glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.report .glance-card { padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.report .glance-card strong { display: block; font-family: var(--display); font-weight: 400; font-size: 14pt; line-height: 1.25; }
.report .glance-card .sub { display: block; margin-top: 6px; font-size: 9pt; color: var(--muted); }
.report .glance-card.is-accent { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.report .glance-card.is-accent .label, .report .glance-card.is-accent .sub { color: rgb(251 248 243 / .7); }

/* Offer scores */
.report .scores { width: 100%; border-collapse: separate; border-spacing: 0; margin-bottom: 18px; font-size: 9.5pt; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.report .scores th { text-align: left; font-size: 7.5pt; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 8px 10px; background: var(--paper); border-bottom: 1px solid var(--line); vertical-align: bottom; line-height: 1.3; }
.report .scores th small { display: block; margin-top: 2px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--thread); }
.report .scores td { padding: 14px 8px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
.report .scores tbody tr:last-child td { border-bottom: 0; }
.report .scores th:first-child, .report .scores td:first-child { padding-left: 16px; }
.report .scores th:last-child, .report .scores td:last-child { padding-right: 16px; }
.report .scores td:first-child strong { font-family: var(--display); font-weight: 400; font-size: 12pt; line-height: 1.25; }
.report .scores .c { text-align: center; }
.report .scores tr.is-top td { background: rgb(184 67 42 / .06); }
.report .scores tr.is-top td:first-child { box-shadow: inset 3px 0 0 var(--thread); }
.report .scores .facts { display: block; margin-top: 4px; color: var(--muted); font-size: 8.5pt; }
.report .dots { display: inline-flex; gap: 4px; vertical-align: middle; color: var(--thread); font-size: 8pt; white-space: nowrap; }
.report .dots i { display: block; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--thread); background: transparent; }
.report .dots i.on { background: var(--thread); }
.report .score-col { width: 1.5in; white-space: nowrap; }
.report td.score-col strong { display: inline-block; min-width: 2ch; margin-left: 8px; font-family: var(--display); font-weight: 400; font-size: 14pt; vertical-align: middle; }
.report .bar { display: inline-block; width: 64px; height: 6px; border-radius: 9999px; background: var(--grid); overflow: hidden; vertical-align: middle; }
.report .bar span { display: block; height: 100%; border-radius: 9999px; background: var(--thread); }
.report .points { margin: 0; padding-left: 18px; }
.report .points li { margin-bottom: 4px; }
.report .points li::marker { color: var(--thread); }
.report .points + h3 { margin-top: 22px; }
.report h3 + .intro { margin: 4px 0 10px; }

/* Audience */
.report .audience-hero { padding: 16px 18px; border-radius: 12px; background: var(--ink); color: var(--cream); margin-bottom: 14px; }
.report .audience-hero .label { color: rgb(251 248 243 / .65); }
.report .audience-hero strong { font-family: var(--display); font-weight: 400; font-size: 16pt; line-height: 1.3; }
.report .profile { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 0; }
.report .profile div { padding: 10px 0; border-bottom: 1px solid var(--grid); }
.report .profile dt { font-size: 8.5pt; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.report .profile dd { margin: 0; }

/* Funnel */
.report .funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.report .funnel li { padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.report .funnel li.is-leak { background: rgb(184 67 42 / .06); }
.report .funnel li.is-biggest { border: 2px solid var(--thread); }
.report .funnel .stage { display: block; font-weight: 600; font-size: 9pt; margin-bottom: 4px; }
.report .funnel .status { font-size: 8pt; color: var(--muted); }
.report .funnel li.is-leak .status { color: var(--thread-dark); font-weight: 600; }
.report .funnel li.is-ok .status { color: var(--ok); font-weight: 600; }
.report .stages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.report .stage-card { padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.report .stage-card.is-biggest { border-left: 3px solid var(--thread); }
.report .stage-card h3 { font-size: 11.5pt; margin-bottom: 6px; }
.report .evidence { margin: 0; padding: 0; list-style: none; }
.report .evidence li { position: relative; padding-left: 16px; margin-bottom: 4px; font-size: 9.5pt; }
.report .evidence li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.report .evidence li.is-leak::before { content: '●'; color: var(--thread); }
.report .evidence li.is-ok::before { content: '✓'; color: var(--ok); }
.report .evidence li.is-info::before { content: '-'; color: var(--muted); }
.report .fix { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--thread); background: rgb(184 67 42 / .05); }
.report .fix .label { color: var(--thread); }
.report .fix p { margin: 0; }

/* Thread */
.report .thread { position: relative; margin: 0; padding: 0; list-style: none; }
.report .thread::before { content: ''; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px; background: var(--thread); }
.report .thread > li { position: relative; display: flex; gap: 16px; padding-bottom: 14px; }
.report .thread .dot { position: relative; z-index: 1; display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); border: 2px solid var(--ink); font-family: var(--display); font-size: 11pt; }
.report .thread h3 { margin: 4px 0 4px; }
.report .thread ul { margin: 0; padding-left: 16px; }
.report .thread ul li { margin-bottom: 2px; font-size: 9.5pt; }
.report .thread ul li::marker { color: var(--thread); }
.report .deliverable { margin: 4px 0 0; font-size: 9pt; font-weight: 600; }
.report .deliverable span { font-weight: 400; color: var(--muted); }

/* Next */
.report .next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.report .next-grid div { padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.report .next-grid strong { display: block; font-family: var(--display); font-weight: 400; font-size: 12.5pt; margin-bottom: 4px; }
.report .next-grid span { font-size: 9.5pt; color: var(--muted); }
.report .contact { color: var(--muted); font-size: 9.5pt; }
.report .contact a { color: inherit; }

/* Print */
@page { size: letter; margin: 0.55in 0.6in 0.7in; }
@media print {
	body.threads-report-page { background: #fff; }
	.toolbar { display: none; }
	.report { max-width: none; margin: 0; }
	.report > section { background: transparent; padding: 0; margin: 0; box-shadow: none; }
	.report > section + section { break-before: page; }
	.report .next, .report .thread-block { break-before: page; }
	.report .cover { min-height: 9.6in; }
	.report .glance-card, .report .stage-card, .report .fix, .report .thread > li, .report .audience-hero, .report .profile div, .report .scores tr, .report .next-grid div, .report .funnel li, .report .notice { break-inside: avoid; }
	.report h2, .report h3 { break-after: avoid; }
	.page-footer { display: block; position: fixed; bottom: -0.45in; left: 0; right: 0; font-size: 7.5pt; color: var(--muted); text-align: center; }
}
@media screen and (max-width: 700px) {
	.report > section { padding: 28px 20px; }
	.report .glance, .report .stages, .report .profile, .report .next-grid { grid-template-columns: 1fr; }
	.report .funnel { grid-template-columns: 1fr 1fr; }
	.report .cover h1 { font-size: 32pt; }
	.report .scores { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Embedded in the client's account (WooCommerce My Account › Your assessment) */
.threads-embed .report { max-width: none; margin: 0; font-size: 15px; }
.threads-embed .report > section { padding: 36px 40px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 16px; box-shadow: none; }
.threads-embed .report .cover { min-height: 0; }
.threads-embed .report .cover-main { margin-top: 48px; }
.threads-embed .report .notice { margin-top: 32px; }
.threads-embed .report h2 { font-size: 28px; }
.threads-embed .report .cover h1 { font-size: 44px; }
@media (max-width: 700px) {
	.threads-embed .report > section { padding: 24px 20px; }
	.threads-embed .report .cover h1 { font-size: 32px; }
}
