/* TPI Partnering Self-Assessments */
.tpi-sa-wrap {
	--sa-navy: #223f52;
	--sa-orange: #f8ab08;
	--sa-ink: #2b2b2b;
	--sa-muted: #676767;
	--sa-line: #e3e7ea;
	--sa-soft: #f4f6f8;
	--sa-green: #2e7d4f;
	--sa-red: #b3261e;
	color: var(--sa-ink);
	font-size: 15px;
	line-height: 1.55;
	max-width: 980px;
	margin: 0 auto;
}
.tpi-sa-wrap *, .tpi-sa-wrap *::before, .tpi-sa-wrap *::after { box-sizing: border-box; }
.tpi-sa-wrap h2, .tpi-sa-wrap h3, .tpi-sa-wrap h4 { color: var(--sa-navy); margin: 0 0 .5em; line-height: 1.25; }
.tpi-sa-wrap h2 { font-size: 1.75rem; }
.tpi-sa-wrap h3 { font-size: 1.25rem; }
.tpi-sa-wrap h4 { font-size: 1.1rem; }
.tpi-sa-wrap p { margin: 0 0 1em; }
.tpi-sa-wrap a { color: var(--sa-navy); text-decoration: underline; text-underline-offset: 2px; }
.tpi-sa-wrap a:hover { color: #b77d00; }
.tpi-sa-loading { padding: 2rem; color: var(--sa-muted); }
.tpi-sa-small, .tpi-sa-card__meta { font-size: .875rem; color: var(--sa-muted); }
.tpi-sa-nowrap { white-space: nowrap; }
.tpi-sa-eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; font-weight: 700; color: var(--sa-muted); margin-bottom: .25em !important; }
.tpi-sa-lead { font-size: 1.05rem; }
.tpi-sa-h { margin-top: 2rem !important; }

/* Buttons */
.tpi-sa-wrap .tpi-sa-btn {
	display: inline-flex; align-items: center; gap: .5em; justify-content: center;
	padding: .7em 1.3em; border-radius: 4px; border: 2px solid var(--sa-navy);
	font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer;
	text-decoration: none; transition: background .15s, color .15s; min-height: 44px;
}
.tpi-sa-wrap .tpi-sa-btn--primary { background: var(--sa-orange); border-color: var(--sa-orange); color: #1d1d1d; }
.tpi-sa-wrap .tpi-sa-btn--primary:hover { background: #e59c00; border-color: #e59c00; color: #1d1d1d; }
.tpi-sa-wrap .tpi-sa-btn--ghost { background: #fff; color: var(--sa-navy); }
.tpi-sa-wrap .tpi-sa-btn--ghost:hover { background: var(--sa-navy); color: #fff; }
.tpi-sa-wrap .tpi-sa-btn--provider { background: #fff; color: #222; border: 1px solid #c9cfd4; font-weight: 600; width: 100%; }
.tpi-sa-wrap .tpi-sa-btn--provider:hover { background: var(--sa-soft); color: #222; }
.tpi-sa-wrap .tpi-sa-btn[disabled] { opacity: .6; cursor: wait; }
.tpi-sa-wrap .tpi-sa-link { background: none; border: 0; padding: 0; font: inherit; color: var(--sa-navy); text-decoration: underline; cursor: pointer; }
.tpi-sa-wrap .tpi-sa-link--danger { color: var(--sa-red); }

/* Notices */
.tpi-sa-notice { padding: .8em 1em; border-radius: 4px; margin: 0 0 1.25rem; border-left: 4px solid; background: var(--sa-soft); }
.tpi-sa-notice.is-success { border-color: var(--sa-green); }
.tpi-sa-notice.is-error { border-color: var(--sa-red); }

/* Cards */
.tpi-sa-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin: 0 0 2rem; }
.tpi-sa-card { background: #fff; border: 1px solid var(--sa-line); border-top: 4px solid var(--sa-orange); border-radius: 4px; padding: 1.25rem; display: flex; flex-direction: column; }
.tpi-sa-card.is-soon { border-top-color: var(--sa-line); background: var(--sa-soft); }
.tpi-sa-card p { flex-grow: 0; }
.tpi-sa-card__actions { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.tpi-sa-hub__head { margin-bottom: 1.5rem; }

/* Account */
.tpi-sa-account { border: 1px solid var(--sa-line); border-radius: 4px; padding: .75rem 1rem; }
.tpi-sa-account summary { cursor: pointer; font-weight: 700; color: var(--sa-navy); }
.tpi-sa-account__body { padding-top: .75rem; }
.tpi-sa-list { margin: 0 0 1em 1.2em; padding: 0; }
.tpi-sa-list li { margin-bottom: .35em; }

/* Auth */
.tpi-sa-auth { max-width: 520px; margin: 1.5rem auto 0; background: #fff; border: 1px solid var(--sa-line); border-top: 4px solid var(--sa-navy); border-radius: 4px; padding: 1.5rem; }
.tpi-sa-auth__providers { display: grid; gap: .6rem; margin-bottom: 1rem; }
.tpi-sa-auth__or { display: flex; align-items: center; gap: .75rem; color: var(--sa-muted); font-size: .85rem; margin: 1rem 0; }
.tpi-sa-auth__or::before, .tpi-sa-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--sa-line); }
.tpi-sa-auth__tabs { display: flex; border-bottom: 1px solid var(--sa-line); margin-bottom: 1rem; }
.tpi-sa-wrap .tpi-sa-tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: .6em 1em; font: inherit; font-weight: 700; color: var(--sa-muted); cursor: pointer; margin-bottom: -1px; }
.tpi-sa-wrap .tpi-sa-tab[aria-selected="true"] { color: var(--sa-navy); border-bottom-color: var(--sa-orange); }
.tpi-sa-auth[data-form="register"] [data-panel="login"],
.tpi-sa-auth[data-form="login"] [data-panel="register"] { display: none; }
.tpi-sa-field { display: block; margin-bottom: .9rem; }
.tpi-sa-field span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.tpi-sa-field em { font-weight: 400; color: var(--sa-muted); }
.tpi-sa-wrap .tpi-sa-field input:not([type=radio]):not([type=checkbox]) { width: 100%; padding: .65em .75em; border: 1px solid #b9c2c9; border-radius: 4px; font: inherit; background: #fff; color: var(--sa-ink); min-height: 44px; }
.tpi-sa-wrap .tpi-sa-field input:not([type=radio]):not([type=checkbox]):focus { outline: 2px solid var(--sa-orange); outline-offset: 1px; border-color: var(--sa-navy); }
.tpi-sa-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; margin-bottom: 1rem; }
.tpi-sa-check input { margin-top: .3em; flex: none; }
.tpi-sa-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* Tool nav */
.tpi-sa-nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; border-bottom: 1px solid var(--sa-line); margin-bottom: 1.5rem; }
.tpi-sa-wrap .tpi-sa-nav__item { padding: .6em 0; text-decoration: none; font-weight: 600; color: var(--sa-muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tpi-sa-wrap .tpi-sa-nav__item.is-active { color: var(--sa-navy); border-bottom-color: var(--sa-orange); }
.tpi-sa-wrap .tpi-sa-nav__back { margin-left: auto; font-weight: 400; }

/* Survey */
.tpi-sa-progress { height: 6px; background: var(--sa-line); border-radius: 3px; overflow: hidden; margin-bottom: .75rem; }
.tpi-sa-progress__bar { height: 100%; background: var(--sa-orange); transition: width .3s; }
.tpi-sa-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin: 0 0 1.5rem; padding: 0; font-size: .8rem; color: var(--sa-muted); }
.tpi-sa-steps li.is-current { color: var(--sa-navy); font-weight: 700; }
.tpi-sa-steps li.is-done::before { content: "✓ "; color: var(--sa-green); }
.tpi-sa-step__intro { color: var(--sa-muted); }
.tpi-sa-scale-key { background: var(--sa-soft); padding: .6em .9em; border-radius: 4px; font-size: .9rem; }
.tpi-sa-q { padding: 1rem 0; border-bottom: 1px solid var(--sa-line); scroll-margin-top: 140px; }
/* .tpi-sa-q.is-missing: drawn with the highlight layer further down (no change to the layout). */
.tpi-sa-q__text { font-weight: 600; margin-bottom: .6rem !important; }
.tpi-sa-q__text--named { font-weight: 400; }
.tpi-sa-q__text--named .tpi-sa-itname { font-weight: 700; color: var(--sa-navy); }
.tpi-sa-recs__what .tpi-sa-ittext, .tpi-sa-bars__text .tpi-sa-ittext { font-weight: 400; }
.tpi-sa-bars__text .tpi-sa-itname { font-weight: 700; }
.tpi-sa-q__n { color: var(--sa-muted); font-weight: 400; }
.tpi-sa-q__sub { margin-bottom: .6rem; }
.tpi-sa-q__sublabel { display: block; font-size: .8rem; color: var(--sa-muted); margin-bottom: .3rem; }
.tpi-sa-scale { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; max-width: 560px; }
.tpi-sa-scale__opt { position: relative; display: flex; flex-direction: column; align-items: center; cursor: pointer; text-align: center; }
.tpi-sa-scale__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tpi-sa-scale__num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #b9c2c9; background: #fff; font-weight: 700; color: var(--sa-navy); transition: all .12s; }
.tpi-sa-scale__opt:hover .tpi-sa-scale__num { border-color: var(--sa-navy); }
.tpi-sa-scale__opt input:checked + .tpi-sa-scale__num { background: var(--sa-navy); border-color: var(--sa-navy); color: #fff; }
.tpi-sa-scale__opt input:focus-visible + .tpi-sa-scale__num { outline: 3px solid var(--sa-orange); outline-offset: 2px; }
.tpi-sa-scale__lab { font-size: .7rem; color: var(--sa-muted); margin-top: .25rem; line-height: 1.15; }
.tpi-sa-seg { display: inline-flex; border: 1px solid #b9c2c9; border-radius: 4px; overflow: hidden; }
.tpi-sa-seg label { position: relative; cursor: pointer; }
.tpi-sa-seg input { position: absolute; opacity: 0; }
.tpi-sa-seg span { display: block; padding: .5em 1em; min-width: 80px; text-align: center; border-right: 1px solid #b9c2c9; font-weight: 600; font-size: .9rem; color: var(--sa-navy); background: #fff; }
.tpi-sa-seg label:last-child span { border-right: 0; }
.tpi-sa-seg input:checked + span { background: var(--sa-navy); color: #fff; }
.tpi-sa-seg input:focus-visible + span { outline: 3px solid var(--sa-orange); outline-offset: -3px; }
.tpi-sa-gate { border: 1px solid var(--sa-line); border-radius: 4px; padding: 1rem; margin: 0 0 1rem; }
.tpi-sa-gate legend { font-weight: 700; padding: 0 .3em; }
.tpi-sa-gate label { margin-right: 1.5rem; display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; }
.tpi-sa-step__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }

/* Results */
.tpi-sa-result__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.tpi-sa-score { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.tpi-sa-score__num { font-size: 2.6rem; font-weight: 800; color: var(--sa-navy); line-height: 1; }
.tpi-sa-score__num small { font-size: 1rem; color: var(--sa-muted); font-weight: 600; }
.tpi-sa-chip { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .2em .55em; border-radius: 3px; vertical-align: middle; }
.tpi-sa-chip--emerging { background: #fde8e6; color: #8a1c14; }
.tpi-sa-chip--developing { background: #fff1cc; color: #6b4a00; }
.tpi-sa-chip--strong { background: #dcefe3; color: #1e5636; }
.tpi-sa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.tpi-sa-grid--tight { gap: 1rem; align-items: center; }
.tpi-sa-panel { background: #fff; border: 1px solid var(--sa-line); border-radius: 4px; padding: 1.25rem; margin-bottom: 1.25rem; }
.tpi-sa-panel--muted { background: var(--sa-soft); }
.tpi-sa-panel--accent { border-left: 4px solid var(--sa-orange); background: #fffaf0; }
.tpi-sa-panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.tpi-sa-panel__head > span { font-weight: 700; color: var(--sa-navy); }
.tpi-sa-chart { width: 100% !important; max-width: 440px; margin: 0 auto; display: block; }
.tpi-sa-chart--small { max-width: 320px; }
.tpi-sa-chart--wide { max-width: none; }
.tpi-sa-table-wrap { overflow-x: auto; }
.tpi-sa-wrap .tpi-sa-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 0 0 .75rem; }
.tpi-sa-wrap .tpi-sa-table th, .tpi-sa-wrap .tpi-sa-table td { text-align: left; padding: .5em .5em; border-bottom: 1px solid var(--sa-line); vertical-align: middle; }
.tpi-sa-wrap .tpi-sa-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--sa-muted); }
.tpi-sa-delta { font-weight: 700; }
.tpi-sa-delta.is-up { color: var(--sa-green); }
.tpi-sa-delta.is-down { color: var(--sa-red); }
.tpi-sa-recs { margin: 0 0 1rem 1.2em; padding: 0; }
.tpi-sa-recs li { margin-bottom: 1rem; padding-left: .25rem; }
.tpi-sa-recs li p { margin-bottom: .35em; }
.tpi-sa-recs__what { font-weight: 700; color: var(--sa-navy); }
.tpi-sa-recs__score { display: inline-block; background: var(--sa-soft); border-radius: 3px; padding: 0 .4em; font-size: .85rem; margin-right: .25rem; }
.tpi-sa-recs__sec { font-weight: 400; font-size: .8rem; color: var(--sa-muted); }
.tpi-sa-wrap .tpi-sa-res { display: inline-block; margin: .15rem .5rem .15rem 0; font-size: .9rem; }
.tpi-sa-res__type { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--sa-navy); color: #fff; padding: .1em .45em; border-radius: 3px; text-decoration: none; margin-right: .2em; }
.tpi-sa-res-list { font-size: .9rem; }
.tpi-sa-bars { list-style: none; margin: 0 0 1rem; padding: 0; }
.tpi-sa-bars li { display: grid; grid-template-columns: 1fr 140px 1.5em; gap: .75rem; align-items: center; padding: .4em 0; border-bottom: 1px solid var(--sa-line); font-size: .9rem; }
.tpi-sa-bar { display: inline-block; width: 100%; min-width: 80px; height: 10px; background: var(--sa-line); border-radius: 5px; overflow: hidden; vertical-align: middle; }
.tpi-sa-bar > span { display: block; height: 100%; background: #6f8796; }
.tpi-sa-bar.is-strong > span { background: var(--sa-navy); }
.tpi-sa-bar.is-low > span { background: var(--sa-orange); }
.tpi-sa-bar__v { font-weight: 700; color: var(--sa-navy); text-align: right; }
.tpi-sa-table .tpi-sa-bar { width: 110px; margin-right: .4rem; }
.tpi-sa-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.tpi-sa-intro { margin-bottom: 1rem; }
.tpi-sa-list--sections li { margin-bottom: .6em; }

@media (max-width: 720px) {
	.tpi-sa-grid { grid-template-columns: 1fr; }
	.tpi-sa-scale { gap: .2rem; }
	.tpi-sa-scale__num { width: 38px; height: 38px; }
	.tpi-sa-scale__lab { font-size: .62rem; }
	.tpi-sa-bars li { grid-template-columns: 1fr 70px 1.5em; }
	.tpi-sa-nav__back { margin-left: 0; }
	.tpi-sa-score { align-items: flex-start; }
}

@media print {
	.tpi-sa-nav, .tpi-sa-actions, .tpi-sa-account, #header-outer, #footer-outer, .tpi-sa-notice { display: none !important; }
	.tpi-sa-panel { break-inside: avoid; }
}

/* Polish */
.tpi-sa-grid--profile { grid-template-columns: minmax(0, 1fr); gap: 0; }
.tpi-sa-grid--profile .tpi-sa-chart { max-width: 560px; }
.tpi-sa-res-list ul, ul.tpi-sa-res-list { list-style: none; margin: .4rem 0 0; padding: 0; }
.tpi-sa-res-list li { margin: 0 0 .35rem; }
.tpi-sa-wrap .tpi-sa-table td:has(.tpi-sa-bar) { white-space: nowrap; }
@media (max-width: 720px) { .tpi-sa-grid--profile { grid-template-columns: 1fr; } }
.tpi-sa-savestate { display: block !important; min-height: 1.4em; line-height: 1.4em; font-size: .8rem; color: var(--sa-muted); margin: -1rem 0 1rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpi-sa-savestate.is-saved::before { content: "✓ "; color: var(--sa-green); }
.tpi-sa-savestate.is-offline { color: #8a5a00; }

/* Profile and comparison */
.tpi-sa-wrap .tpi-sa-field select { width: 100%; padding: .6em .75em; border: 1px solid #b9c2c9; border-radius: 4px; font: inherit; background: #fff; color: var(--sa-ink); min-height: 44px; }
.tpi-sa-wrap .tpi-sa-field select:focus { outline: 2px solid var(--sa-orange); outline-offset: 1px; }
.tpi-sa-profile { max-width: 680px; }
.tpi-sa-radios { border: 0; padding: 0; margin: 0 0 1rem; }
.tpi-sa-radios legend { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; padding: 0; }
.tpi-sa-radios .tpi-sa-check { margin-bottom: .5rem; font-size: .95rem; align-items: center; min-height: 32px; }
.tpi-sa-field.is-missing, .tpi-sa-radios.is-missing { background: #fff6e0; border-left: 3px solid var(--sa-orange); padding-left: .6rem; }
.tpi-sa-compare__filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 1rem; }
.tpi-sa-compare__out { margin-top: .5rem; }

.tpi-sa-radios .tpi-sa-check input { width: 18px; height: 18px; margin: 0; flex: none; }
.tpi-sa-radios .tpi-sa-check span { font-weight: 400; font-size: .95rem; margin: 0; }
.tpi-sa-compare .tpi-sa-chart { max-width: 480px; }
.tpi-sa-compare__out .tpi-sa-grid { grid-template-columns: minmax(0, 1fr); }

/* Guard against theme list styles (e.g. Salient adds numbering and padding to ol/ul). */
.tpi-sa-wrap ol.tpi-sa-steps,
.tpi-sa-wrap ul.tpi-sa-bars,
.tpi-sa-wrap ul.tpi-sa-res-list,
.tpi-sa-wrap .tpi-sa-res-list ul { list-style: none !important; margin-left: 0 !important; padding-left: 0 !important; }
.tpi-sa-wrap ol.tpi-sa-steps { display: flex !important; flex-wrap: wrap; gap: .25rem 1.1rem; counter-reset: none; }
.tpi-sa-wrap ol.tpi-sa-steps > li,
.tpi-sa-wrap ul.tpi-sa-bars > li,
.tpi-sa-wrap .tpi-sa-res-list li { list-style: none !important; margin-left: 0 !important; padding-left: 0 !important; }
.tpi-sa-wrap ol.tpi-sa-steps > li::marker,
.tpi-sa-wrap ul.tpi-sa-bars > li::marker,
.tpi-sa-wrap .tpi-sa-res-list li::marker { content: none; }
.tpi-sa-wrap ol.tpi-sa-steps > li::before { content: none; }
.tpi-sa-wrap ol.tpi-sa-steps > li.is-done::before { content: "✓ "; color: var(--sa-green); }
.tpi-sa-wrap ul.tpi-sa-bars > li::before,
.tpi-sa-wrap .tpi-sa-res-list li::before { content: none !important; }
/* Lists that should keep bullets/numbers get consistent spacing. */
.tpi-sa-wrap ol.tpi-sa-recs { list-style: decimal outside !important; padding-left: 1.4em !important; margin-left: 0 !important; }
.tpi-sa-wrap ul.tpi-sa-recs, .tpi-sa-wrap ul.tpi-sa-list { list-style: disc outside !important; padding-left: 1.4em !important; margin-left: 0 !important; }
/* Salient adds bottom padding to paragraphs; use our own spacing instead. */
.tpi-sa-wrap p { padding-bottom: 0 !important; }
.tpi-sa-wrap .tpi-sa-recs li p { margin: 0 0 .35em !important; }

/* Invitations */
.tpi-sa-invite { margin: 1.5rem 0; }
.tpi-sa-invite__opts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: .75rem 0; }
.tpi-sa-invite__opt { border: 1px solid var(--sa-line); border-radius: 4px; padding: .75rem 1rem; }
.tpi-sa-invite__opt h4 { margin: 0 0 .35rem; color: var(--sa-navy); }
.tpi-sa-invite__link { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; }
.tpi-sa-wrap .tpi-sa-invite__link input[type="text"] { flex: 1 1 100%; min-width: 0; font-size: .85rem; padding: .4rem .5rem; margin: 0; }
.tpi-sa-invite-banner p { margin: 0 0 .35rem; }
.tpi-sa-invite-banner p:last-child { margin-bottom: 0; }

/* Groups and teams */

/* Scales with "don't know" / "not relevant", sub-headings, equity markers */
.tpi-sa-scale__extras { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.tpi-sa-pill { position: relative; cursor: pointer; }
.tpi-sa-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tpi-sa-pill span { display: inline-block; padding: .3em .8em; border: 2px solid #b9c2c9; border-radius: 999px; font-size: .8rem; color: var(--sa-navy); background: #fff; }
.tpi-sa-pill:hover span { border-color: var(--sa-navy); }
.tpi-sa-pill input:checked + span { background: var(--sa-navy); border-color: var(--sa-navy); color: #fff; }
.tpi-sa-pill input:focus-visible + span { outline: 3px solid var(--sa-orange); outline-offset: 2px; }
.tpi-sa-wrap .tpi-sa-subhead { margin: 1.5rem 0 .5rem; padding-bottom: .25rem; border-bottom: 2px solid var(--sa-orange); color: var(--sa-navy); font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; }
.tpi-sa-eq { color: #c0392b; font-weight: 700; }
.tpi-sa-bar--none { background: repeating-linear-gradient(45deg, var(--sa-line), var(--sa-line) 4px, #fff 4px, #fff 8px); }
.tpi-sa-bar__v--na { font-size: .75rem; color: var(--sa-muted); }
.tpi-sa-hist-filter { max-width: 360px; }

/* Partnerships */
.tpi-sa-chip--kind { background: #e6eef3; color: var(--sa-navy); vertical-align: middle; }
.tpi-sa-context { margin: .5rem 0; font-size: .95rem; }

/* Toggle */
.tpi-sa-toggle { display: inline-flex; border: 2px solid var(--sa-navy); border-radius: 4px; overflow: hidden; margin: .25rem 0 .75rem; }
.tpi-sa-wrap .tpi-sa-toggle button { border: 0; background: #fff; color: var(--sa-navy); padding: .4em .9em; font-weight: 600; cursor: pointer; }
.tpi-sa-wrap .tpi-sa-toggle button[aria-pressed="true"] { background: var(--sa-navy); color: #fff; }
.tpi-sa-wrap .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Comments */
.tpi-sa-comment { margin-top: 1.25rem; }
.tpi-sa-comment em { display: block; font-style: normal; margin: .1rem 0 .35rem; }
.tpi-sa-wrap .tpi-sa-comment textarea { width: 100%; box-sizing: border-box; font: inherit; padding: .5rem .6rem; border: 1px solid #b9c2c9; border-radius: 4px; }
.tpi-sa-comments dt { font-weight: 700; color: var(--sa-navy); margin-top: .75rem; }
.tpi-sa-comments dd { margin: .25rem 0 0; }
.tpi-sa-wrap ul.tpi-sa-comment-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.tpi-sa-wrap ul.tpi-sa-comment-list > li { border-left: 3px solid var(--sa-line); padding: .25rem 0 .25rem .75rem; margin-bottom: .6rem; }
.tpi-sa-wrap ul.tpi-sa-comment-list > li::before, .tpi-sa-wrap ul.tpi-sa-comment-list > li::marker { content: none; display: none; }
.tpi-sa-comment-list p { margin: 0 0 .2rem; }

/* Partnership description */
.tpi-sa-pp-regiongrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .5rem 1rem; }
.tpi-sa-pp-sub { margin-left: 1.25rem; }
.tpi-sa-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0; }
.tpi-sa-chips .tpi-sa-chip button { padding: 0 .2rem; text-decoration: none; }
.tpi-sa-pp-summary { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .5rem 0; }
.tpi-sa-pp-summary dt { font-weight: 700; color: var(--sa-navy); }
.tpi-sa-pp-summary dd { margin: 0; }

/* Anything marked hidden stays hidden, whatever the theme or other rules say. */
.tpi-sa-wrap [hidden], .tpi-sa [hidden] { display: none !important; }

/* Contact TPI */
.tpi-sa-cta { border-left: 4px solid var(--sa-orange); }
.tpi-sa-cta h3 { margin-top: 0; }
.tpi-sa-cta--inline { background: var(--sa-soft); border-radius: 4px; padding: .9rem 1rem; margin: 1rem 0; }
.tpi-sa-cta--inline p { margin: 0 0 .6rem; }
.tpi-sa-cta--inline p:last-child { margin-bottom: 0; }
.tpi-sa-print-only, .tpi-sa-print-head, .tpi-sa-print-foot { display: none; }

/* Printed / PDF results: TPI logo header and contact footer on every page */
@media print {
	@page { margin: 14mm 12mm; }
	.tpi-sa-print-only { display: block; }
	table.tpi-sa-print-table { width: 100%; border-collapse: collapse; border: 0; margin: 0; }
	table.tpi-sa-print-table > thead { display: table-header-group; }
	table.tpi-sa-print-table > tfoot { display: table-footer-group; }
	table.tpi-sa-print-table td { border: 0 !important; padding: 0 !important; background: none !important; }
	.tpi-sa-print-head { display: flex !important; align-items: center; gap: 14px; padding: 0 0 6px; margin: 0 0 12px; border-bottom: 2px solid #F8AB08; font-size: 9pt; color: #223F52; }
	.tpi-sa-print-head img { height: 42px; width: auto; }
	.tpi-sa-print-foot { display: block !important; padding: 6px 0 0; margin-top: 12px; border-top: 1px solid #ccc; font-size: 8pt; color: #555; }
	.tpi-sa-cta .tpi-sa-btn, .tpi-sa-cta--inline .tpi-sa-btn { border: 1px solid #223F52; }
	.tpi-sa-compare__filters, .tpi-sa-toggle, [data-pp-edit], [data-cmp-me], [data-cmp-all] { display: none !important; }
}
@media print {
	/* Leave out the page's banner and other page-builder rows: print only the results. */
	.wpb_row:not(:has(.tpi-sa-wrap)), .vc_row:not(:has(.tpi-sa-wrap)), .nectar-global-section, #slide-out-widget-area, #ajax-loading-screen { display: none !important; }
}

.tpi-sa-sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* New system: passwordless sign-in and account */
.tpi-sa-auth__remember { margin-top: 1rem; }
.tpi-sa-auth__msg:empty { display: none; }
.tpi-sa-auth [data-step="code"] input[name="code"] { font-size: 1.4rem; letter-spacing: .3em; max-width: 12rem; }
.tpi-sa-btn--danger { background: #b32d2e; border-color: #b32d2e; color: #fff; }
.tpi-sa-btn--danger:hover { background: #8a1f1f; }
.tpi-sa-delete { margin-top: 1rem; padding: 1rem; border: 1px solid #f0c4c4; border-radius: 6px; background: #fdf3f3; }

/* ---------- Visual theme: tool accents, section colours, icons ---------- */
.tpi-sa { --acc: #223F52; --tint: #e8eef2; }
.tpi-sa-ico { display: block; width: 100%; height: 100%; }
.tpi-sa-badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 1.75em; height: 1.75em; padding: 0 .35em; border-radius: 999px; color: #fff; font-weight: 800; font-size: .85rem; line-height: 1; vertical-align: middle; }

/* Tool cards */
.tpi-sa-card { border-top: 5px solid var(--acc, var(--sa-orange)); position: relative; }
.tpi-sa-card__icon { display: inline-flex; width: 56px; height: 56px; padding: 13px; border-radius: 50%; background: var(--tint, #e8eef2); color: var(--acc, var(--sa-navy)); margin-bottom: .75rem; }
.tpi-sa-card.is-soon .tpi-sa-card__icon { background: #e9ecef; color: #8a9096; }
.tpi-sa-card__title { color: var(--acc, var(--sa-navy)) !important; }

/* Intro */
.tpi-sa-hero { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1rem 1.25rem; border-radius: 6px; background: var(--tint); border-left: 6px solid var(--acc); }
.tpi-sa-hero h2 { margin: 0 !important; color: var(--acc) !important; }
.tpi-sa-hero .tpi-sa-eyebrow { margin: 0 !important; }
.tpi-sa-hero__icon { flex: 0 0 auto; display: inline-flex; width: 60px; height: 60px; padding: 13px; border-radius: 50%; background: var(--acc); color: #fff; }
.tpi-sa-wrap ol.tpi-sa-seclist { list-style: none !important; margin: 1rem 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.tpi-sa-wrap ol.tpi-sa-seclist > li { display: flex; gap: .75rem; align-items: flex-start; margin: 0 !important; padding: .85rem 1rem; background: #fff; border: 1px solid var(--sa-line); border-top: 4px solid var(--sc); border-radius: 4px; font-size: .9rem; line-height: 1.45; }
.tpi-sa-wrap ol.tpi-sa-seclist > li::before { content: none !important; }
.tpi-sa-seclist strong { display: block; color: var(--sa-navy); margin-bottom: .2rem; font-size: .95rem; }
.tpi-sa-seclist span:not(.tpi-sa-badge) { color: #4a555e; }

/* Survey */
.tpi-sa-progress__bar { background: var(--acc) !important; }
.tpi-sa-wrap ol.tpi-sa-steps > li { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem .2rem .25rem !important; border-radius: 999px; background: #f1f3f5; color: #5f6870; }
.tpi-sa-steps__n { display: inline-flex; align-items: center; justify-content: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: #fff; color: var(--sc, #5f6870); border: 2px solid var(--sc, #c4cacf); font-weight: 800; font-size: .72rem; }
.tpi-sa-wrap ol.tpi-sa-steps > li.is-current { background: var(--sc, var(--acc)); color: #fff; font-weight: 700; }
.tpi-sa-wrap ol.tpi-sa-steps > li.is-current .tpi-sa-steps__n { border-color: #fff; }
.tpi-sa-wrap ol.tpi-sa-steps > li.is-done::before { content: none !important; }
.tpi-sa-wrap ol.tpi-sa-steps > li.is-done .tpi-sa-steps__n { background: var(--sc, var(--sa-green)); color: #fff; }
.tpi-sa-step--sec { border-top: 6px solid var(--sc) !important; }
.tpi-sa-step__head { display: flex; align-items: center; gap: .85rem; margin-bottom: .5rem; }
.tpi-sa-step__head .tpi-sa-badge { font-size: 1.15rem; min-width: 2.3rem; height: 2.3rem; }
.tpi-sa-step__head h3 { margin: 0 !important; color: var(--sc) !important; }
.tpi-sa-step__head .tpi-sa-eyebrow { margin: 0 !important; }
.tpi-sa-q__text--named .tpi-sa-itname { color: var(--sc, var(--sa-navy)) !important; }
/* Rating colours: low (red) to high (green); the number stays visible, so colour is never the only cue. */
.tpi-sa-v0 input:checked + .tpi-sa-scale__num { background: #B3261E; border-color: #B3261E; color: #fff; }
.tpi-sa-v1 input:checked + .tpi-sa-scale__num { background: #D4532A; border-color: #D4532A; color: #fff; }
.tpi-sa-v2 input:checked + .tpi-sa-scale__num { background: #F0A31A; border-color: #F0A31A; color: #1f1f1f; }
.tpi-sa-v3 input:checked + .tpi-sa-scale__num { background: #C9C23A; border-color: #C9C23A; color: #1f1f1f; }
.tpi-sa-v4 input:checked + .tpi-sa-scale__num { background: #5E9E4B; border-color: #5E9E4B; color: #fff; }
.tpi-sa-v5 input:checked + .tpi-sa-scale__num { background: #2E7D4F; border-color: #2E7D4F; color: #fff; }
.tpi-sa-scale__opt input:checked + .tpi-sa-scale__num { transform: scale(1.08); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.tpi-sa-scale__opt input:checked ~ .tpi-sa-scale__lab { color: var(--sa-ink); text-shadow: 0 0 .4px currentColor; } /* darker, not bold: bold text is wider and could wrap and move the page */

/* Results */
.tpi-sa-result__head { align-items: center !important; }
.tpi-sa-result__head > .tpi-sa-hero__icon { width: 64px; height: 64px; }
.tpi-sa-result__title { flex: 1 1 260px; }
.tpi-sa-result__title h2 { color: var(--acc) !important; }
.tpi-sa-score { align-items: center !important; }
.tpi-sa-score__ring { position: relative; width: 112px; height: 112px; }
.tpi-sa-score__ring .tpi-sa-ring { position: absolute; inset: 0; }
.tpi-sa-score__ring .tpi-sa-score__num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; }
.tpi-sa-score__ring .tpi-sa-score__num small { font-size: .8rem; margin-top: .6rem; }
.tpi-sa-h3i { display: flex; align-items: center; gap: .55rem; }
.tpi-sa-h3i .tpi-sa-ico { flex: 0 0 auto; width: 1.6rem; height: 1.6rem; padding: .3rem; box-sizing: content-box; border-radius: 50%; background: var(--tint); color: var(--acc); }
.tpi-sa-areas td { vertical-align: middle; }
.tpi-sa-areas__name { display: flex; align-items: center; gap: .5rem; }
.tpi-sa-mbar { display: block; height: 6px; margin: .4rem 0 0 2.25rem; background: #eceff2; border-radius: 3px; overflow: hidden; }
.tpi-sa-mbar > span { display: block; height: 100%; border-radius: 3px; }
.tpi-sa-panel--sec { border-top: 5px solid var(--sc); }
.tpi-sa-panel--sec h4 { display: flex; align-items: center; gap: .55rem; color: var(--sc) !important; }
.tpi-sa-panel--sec .tpi-sa-itname { color: var(--sc); }
.tpi-sa-wrap ol.tpi-sa-recs { list-style: none !important; padding-left: 0 !important; counter-reset: rec; }
.tpi-sa-wrap ol.tpi-sa-recs > li { counter-increment: rec; position: relative; padding: .8rem .9rem .6rem 3.1rem !important; background: var(--tint); border-radius: 6px; }
.tpi-sa-wrap ol.tpi-sa-recs > li::before { content: counter(rec) !important; position: absolute; left: .8rem; top: .8rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.tpi-sa-panel--accent { border-left-color: var(--acc) !important; background: var(--tint) !important; }
@media print {
	.tpi-sa-badge, .tpi-sa-hero, .tpi-sa-hero__icon, .tpi-sa-mbar span, .tpi-sa-panel--sec, .tpi-sa-h3i .tpi-sa-ico, .tpi-sa-recs li, .tpi-sa-recs li::before, .tpi-sa-ring circle { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 600px) {
	.tpi-sa-hero { padding: .8rem; }
	.tpi-sa-hero__icon { width: 48px; height: 48px; padding: 10px; }
	.tpi-sa-wrap ol.tpi-sa-steps > li { font-size: .75rem; }
}

/* Sector relevance shading (spider chart key and table) */
.tpi-sa-rel { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; border: 1.5px solid; }
.tpi-sa-rel--high { background: #2b2c7c; border-color: #2b2c7c; }
.tpi-sa-rel--medium { background: #4f8fd8; border-color: #2f6db8; }
.tpi-sa-rel--low { background: #c9bce6; border-color: #8b79b8; }
.tpi-sa-sectorweb svg { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.tpi-sa-rel-key { display: flex; flex-wrap: wrap; gap: .3rem .9rem; justify-content: center; font-size: .8rem; color: #4a555e; margin: .5rem 0 0 !important; }
@media print { .tpi-sa-rel { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.tpi-sa-sectors { display: flex; flex-direction: column; gap: 1rem; }
.tpi-sa-sectors__chart { width: 100%; max-width: 560px; margin: 0 auto; }

/* Report: TPI logo bar (screen) */
.tpi-sa-reportbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0 0 .75rem; margin-bottom: 1rem; border-bottom: 2px solid var(--sa-orange); }
.tpi-sa-reportbar img { height: 46px; width: auto; }
.tpi-sa-reportbar span { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sa-muted); }

/* Report cover page (print only) */
.tpi-sa-cover-wrap { display: none; }
@media print {
	.tpi-sa-reportbar { display: none !important; }
	.tpi-sa-cover-wrap { display: block; break-after: page; page-break-after: always; }
	.tpi-sa-cover { display: flex; flex-direction: column; gap: 6mm; font-size: 11pt; color: #1f2a33; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.tpi-sa-cover * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.tpi-sa-cover__top { border-bottom: 3px solid #F6A800; padding-bottom: 5mm; }
	.tpi-sa-cover__logo { height: 22mm; width: auto; }
	.tpi-sa-cover__band { display: flex; align-items: center; gap: 6mm; padding: 6mm 7mm; border-radius: 4mm; background: var(--tint); border-left: 3mm solid var(--acc); }
	.tpi-sa-cover__band .tpi-sa-hero__icon { width: 22mm; height: 22mm; padding: 5mm; }
	.tpi-sa-cover__band h1 { margin: 0; font-size: 24pt; line-height: 1.15; color: var(--acc); font-family: inherit !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important; text-wrap: balance; }
	.tpi-sa-cover__eyebrow { margin: 0 0 1.5mm !important; font-size: 9pt; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4a555e; }
	.tpi-sa-cover__label { margin: 2mm 0 0 !important; font-size: 15pt; font-weight: 600; color: #1f2a33; }
	.tpi-sa-cover__meta { display: flex; gap: 14mm; }
	.tpi-sa-cover__meta p { margin: 0 !important; display: flex; flex-direction: column; }
	.tpi-sa-cover__meta span { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .08em; color: #5f6870; }
	.tpi-sa-cover__meta strong { font-size: 12pt; }
	.tpi-sa-cover__score { display: flex; align-items: center; gap: 8mm; }
	.tpi-sa-cover__score p { margin: 0 0 2mm !important; }
	.tpi-sa-cover__areas { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 2.5mm; }
	.tpi-sa-cover__areas li { display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; gap: 3mm; margin: 0 !important; padding: 0 !important; }
	.tpi-sa-cover__areas li::before { content: none !important; }
	.tpi-sa-cover__areas .tpi-sa-mbar { margin: 0; height: 2.5mm; }
	.tpi-sa-cover__about { margin-top: 2mm; padding: 5mm 6mm; border-radius: 3mm; background: #f4f6f8; }
	.tpi-sa-cover__about h2 { margin: 0 0 2mm !important; font-size: 13pt; color: #223F52; }
	.tpi-sa-cover__about p { margin: 0 0 2mm !important; font-size: 10pt; line-height: 1.5; }
	.tpi-sa-cover__contact { font-weight: 600; color: #223F52; }

	/* Keep headings with what follows them */
	.tpi-sa-result h2, .tpi-sa-result h3, .tpi-sa-result h4, .tpi-sa-panel__head, .tpi-sa-h3i { break-after: avoid; page-break-after: avoid; break-inside: avoid; }
	.tpi-sa-result .tpi-sa-h3i, .tpi-sa-result .tpi-sa-panel__head, .tpi-sa-panel--sec h4 { display: block !important; }
	.tpi-sa-result .tpi-sa-h3i .tpi-sa-ico { display: inline-block !important; vertical-align: middle; margin-right: .4rem; }
	.tpi-sa-panel--sec .tpi-sa-panel__head > span { display: block; margin-top: .2rem; }
	/* Reserve space below each heading so a heading never ends a page on its own. */
	.tpi-sa-result h2::after, .tpi-sa-result h3::after, .tpi-sa-result .tpi-sa-panel__head::after { content: ""; display: block; height: 7em; margin-bottom: -7em; }
.tpi-sa-recs > li, .tpi-sa-table tr, .tpi-sa-bars > li, .tpi-sa-list > li, .tpi-sa-comments dd, .tpi-sa-res-list li { break-inside: avoid; page-break-inside: avoid; }
	.tpi-sa-result p { orphans: 3; widows: 3; }
}

@media print {
	/* Let long panels flow across pages (headings are kept with their content above), but keep charts, rows and cards whole. */
	.tpi-sa-panel { break-inside: auto !important; page-break-inside: auto !important; }
.tpi-sa-chart, canvas, .tpi-sa-score, .tpi-sa-result__head, .tpi-sa-cta { break-inside: avoid; page-break-inside: avoid; }
	.tpi-sa-cover-wrap { break-inside: avoid; }
}
@media print { .tpi-sa-cover__score .tpi-sa-score__ring { flex: 0 0 112px; } }

.tpi-sa-account__staff { margin: .6rem 0; }

/* ---------- staff: viewing as someone ---------- */
.tpi-sa-viewas { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; background: #3b2a5c; color: #fff; padding: .7rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.tpi-sa-viewas strong { color: #fff; }
.tpi-sa-viewas .tpi-sa-btn { margin-left: auto; }

/* ---------- staff console ---------- */
.tpi-sa-wrap--console { position: relative; left: 50%; width: min(1200px, calc(100vw - 32px)); max-width: none !important; transform: translateX(-50%); }
.tpc-panel textarea { width: 100%; box-sizing: border-box; }
.tpc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem 1rem; border-bottom: 3px solid var(--sa-navy); padding-bottom: .5rem; margin-bottom: .8rem; }
.tpc-head h2 { margin: 0; }
.tpc-tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: 1rem; }
.tpc-tab { padding: .45rem .8rem; border-radius: 4px; text-decoration: none !important; color: var(--sa-navy); background: var(--sa-soft); font-weight: 600; font-size: .92rem; }
.tpc-tab.is-active { background: var(--sa-navy); color: #fff; }
.tpc-count { display: inline-block; min-width: 1.4em; padding: 0 .35em; border-radius: 1em; background: var(--sa-orange); color: #2b2b2b; font-size: .78rem; text-align: center; }
.tpc-panel { border: 1px solid var(--sa-line); border-radius: 6px; padding: 1rem 1.2rem; margin-bottom: 1rem; background: #fff; }
.tpc-panel h3, .tpc-panel h4 { margin-top: 0; }
.tpc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1rem; }
.tpc-cols > .tpc-panel { margin-bottom: 0; }
.tpc-cols + .tpc-panel, .tpc-cols + section { margin-top: 1rem; }
.tpc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.tpc-stat { display: block; padding: .9rem 1rem; border-radius: 6px; background: var(--sa-soft); text-decoration: none !important; color: var(--sa-ink); border-left: 4px solid var(--sa-navy); }
.tpc-stat__n { display: block; font-size: 1.8rem; font-weight: 700; color: var(--sa-navy); line-height: 1.1; }
.tpc-stat__l { font-size: .85rem; color: var(--sa-muted); }
.tpc-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: .6rem; }
.tpc-table th, .tpc-table td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--sa-line); vertical-align: top; }
.tpc-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--sa-muted); }
.tpc-table tr.is-off td { color: var(--sa-muted); }
.tpc-table select { max-width: 13rem; }
.tpc-kv th { width: 9rem; text-transform: none; letter-spacing: 0; font-size: .88rem; }
.tpc-num { text-align: right !important; white-space: nowrap; }
.tpc-nowrap { white-space: nowrap; }
.tpc-badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1em .5em; border-radius: 3px; background: #eceff1; color: #455a64; }
.tpc-badge--green { background: #dcefe3; color: #1e5636; }
.tpc-badge--amber { background: #fff1cc; color: #6b4a00; }
.tpc-badge--blue { background: #e6eef3; color: var(--sa-navy); }
.tpc-inline { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; margin: .5rem 0; border: 0; padding: 0; }
.tpc-inline legend { font-weight: 600; margin-right: .5rem; float: left; }
.tpc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.tpc-search { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end; margin-bottom: 1rem; }
.tpc-search .tpi-sa-field { flex: 1 1 260px; margin-bottom: 0; }
.tpc-person-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: flex-start; }
.tpc-person-head h3 { margin: 0 0 .2rem; }
.tpc-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.tpc-quote { margin: .4rem 0 .6rem; padding: .5rem .8rem; border-left: 3px solid var(--sa-line); background: var(--sa-soft); white-space: pre-wrap; }
.tpc-list { margin: 0 0 .5rem 1.1rem; }
.tpc-sm { padding: .25rem .6rem !important; font-size: .85rem !important; }
.tpc-audit td { font-size: .85rem; }
.tpc-msg .tpi-sa-notice { margin-bottom: 1rem; }
.tpi-sa-auth.is-link { box-shadow: 0 0 0 3px var(--sa-orange); }

/* ---------- TPI Console: client spaces and administration ---------- */
.tpm-logo { max-height: 56px; max-width: 220px; vertical-align: middle; background: #fff; border: 1px solid var(--sa-line); border-radius: 4px; padding: 4px 8px; }
.tpm .tpc-person-head { margin-bottom: .6rem; }
.tpm-bar { display: block; height: 6px; background: var(--sa-soft); border-radius: 3px; margin-top: .3rem; max-width: 320px; overflow: hidden; }
.tpm-bar span { display: block; height: 100%; background: var(--sa-navy); border-radius: 3px; }
.tpm-dist { display: flex; width: 200px; max-width: 40vw; height: 14px; border-radius: 3px; overflow: hidden; background: var(--sa-soft); }
.tpm-dist span { display: block; height: 100%; }
.tpm-dist__0 { background: #b3261e; } .tpm-dist__1 { background: #e0794f; } .tpm-dist__2 { background: #f2c14e; }
.tpm-dist__3 { background: #a8cf8e; } .tpm-dist__4 { background: #5aa36f; } .tpm-dist__5 { background: #2e7d4f; }
.tpm-key { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem; color: var(--sa-muted); }
.tpm-key i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; }
.tpm-items td:first-child { width: 60%; }
.tpm-more { margin: .5rem 0 1rem; }
.tpm-more summary { cursor: pointer; font-weight: 600; color: var(--sa-navy); margin-bottom: .6rem; }
.tpm .tpi-sa-field select, .tpm .tpi-sa-field textarea, .tpm-join select, .tpm-join textarea { width: 100%; padding: .55em .65em; border: 1px solid #b9c2c9; border-radius: 4px; font: inherit; background: #fff; min-height: 40px; box-sizing: border-box; }
.tpm .tpc-search .tpi-sa-field { flex: 1 1 200px; }
.tpm .tpc-table input[type=number], .tpm .tpc-table input[type=date] { padding: .3em .4em; border: 1px solid #b9c2c9; border-radius: 4px; font: inherit; }
.tpm-join { max-width: 560px; }
.tpm .tpi-sa-radios .tpi-sa-check, .tpm fieldset.tpi-sa-field .tpi-sa-check { display: flex; gap: .5rem; align-items: flex-start; margin: .35rem 0; }
.tpm fieldset { border: 0; padding: 0; margin: 0 0 .9rem; }
.tpm legend { padding: 0; margin-bottom: .3rem; }
.tpm .tpc-stats { margin-top: .5rem; }
.tpm .tpm-msg .tpi-sa-notice { margin-bottom: .8rem; }

/* What is free and what needs a licence (before sign-in) */
.tpi-sa-hubintro { margin-bottom: 1.5rem; }
.tpi-sa-hubintro h2 { margin-bottom: .3em !important; padding-bottom: 0 !important; }
.tpi-sa-hubintro .tpi-sa-lead { font-weight: 700; margin-top: 0 !important; }
.tpi-sa-offer { display: grid; gap: .6rem; margin: .4rem 0 1rem; font-size: .9rem; }
.tpi-sa-offer > div { border-radius: 4px; padding: .6rem .8rem; }
.tpi-sa-offer__free { background: var(--sa-soft); }
.tpi-sa-offer__paid { background: #fff7e6; border-left: 3px solid var(--sa-orange); }
.tpi-sa-offer__h { font-weight: 700; color: var(--sa-navy); margin: 0 0 .3rem !important; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.tpi-sa-offer ul { margin: 0; padding-left: 1.1rem; }
.tpi-sa-offer li { margin: .2rem 0; }
.tpi-sa-intro .tpi-sa-offer { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 820px; }

/* Homepage wide enough for three cards in a row (breaks out of the theme's narrow column) */
.tpi-sa-wrap--wide { position: relative; left: 50%; width: min(1200px, calc(100vw - 32px)); max-width: none !important; transform: translateX(-50%); }
.tpi-sa-wrap--wide .tpi-sa-cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tpia-client .tpi-sa-wrap--wide { left: auto; transform: none; width: auto; }

/* Licence marker */
.tpi-sa-lic { display: inline-flex; align-items: center; gap: .25em; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #7a5200; background: #fff1cc; border: 1px solid #f3d27a; border-radius: 999px; padding: .1em .55em; vertical-align: middle; white-space: nowrap; }
.tpi-sa-lic svg { flex: none; }
.is-locked { opacity: .75; }

/* My partnerships / organisations / assessments */
.tpi-sa-wrap .tpi-sa-btn--sm { min-height: 34px; padding: .35em .8em; font-size: .85rem; }
.tpi-sa-mine__acts { white-space: nowrap; }
.tpi-sa-mine__lic { margin: 1rem 0; }
.tpi-sa-mine .tpi-sa-panel__head h3 { margin: 0; }
.tpi-sa-legacy summary { cursor: pointer; }
.tpi-sa-subject details { margin: .6rem 0 1rem; }
.tpi-sa-subject summary { cursor: pointer; }
.tpi-sa-subject textarea { width: 100%; box-sizing: border-box; }
.tpi-sa-teaser { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items: center; position: relative; background: #fffaf0; }
.tpi-sa-teaser__img { display: grid; gap: 6px; filter: blur(1.2px); opacity: .8; }
.tpi-sa-teaser__img span { display: block; height: 10px; border-radius: 3px; }
.tpi-sa-teaser__x { position: absolute; top: .4rem; right: .6rem; font-size: 1.3rem !important; text-decoration: none !important; }
@media (max-width: 600px) { .tpi-sa-teaser { grid-template-columns: 1fr; } .tpi-sa-teaser__img { display: none; } }

/* Administration: partners by level, extra fields, round dates */
.tpm-inv { border: 1px solid var(--sa-line) !important; border-radius: 6px; padding: .6rem .8rem !important; margin: 0 0 .6rem !important; }
.tpm-roles { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.tpm-roles .tpi-sa-check { margin: .1rem 0 !important; }
.tpm-fv { display: inline-block; margin-right: .8rem; font-size: .88rem; }
.tpm-lv { border-left: 3px solid var(--sa-line); padding: .2rem 0 .2rem .8rem; margin: .4rem 0; }
.tpm-lv__more { margin-left: 1.6rem; }
.tpm-hometext { margin: .6rem 0 1rem; }
.tpm-psd summary, .tpm-round-dates legend { cursor: pointer; }

/* ---------- 2.2: help ("i"), advanced options, notes and history, directory, partner feedback, languages ---------- */
.tpc-badge--red { background: #f9e0de; color: #8c1d16; }
.tpi-sa-info { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 1.15em; height: 1.15em; margin-inline-start: .35em; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: #4a6b80; font: italic 700 .75em/1 Georgia, serif; cursor: help; vertical-align: middle; }
.tpi-sa-info:focus-visible { outline: 2px solid var(--sa-orange, #f8ab08); outline-offset: 2px; }
.tpi-sa-info__tip { display: none; position: absolute; z-index: 50; inset-block-end: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(-50%); width: max-content; max-width: min(300px, 80vw); padding: .55rem .7rem; border-radius: 6px; background: #1f2f3a; color: #fff; font: normal 400 .85rem/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; text-align: start; white-space: normal; box-shadow: 0 4px 14px rgba(0,0,0,.18); pointer-events: none; }
[dir="rtl"] .tpi-sa-info__tip { transform: translateX(50%); }
/* Shown only when open (bindInfo in app.js), so two can never be up at once. */
.tpi-sa-info[aria-expanded="true"] .tpi-sa-info__tip { display: block; }
.tpi-sa-adv { margin: .75rem 0 1rem; border-block-start: 1px solid var(--sa-line, #e3e7ea); padding-block-start: .6rem; }
.tpi-sa-adv > summary { cursor: pointer; font-weight: 600; color: var(--sa-navy, #223f52); }
.tpi-sa-adv__n { font-weight: 400; color: var(--sa-muted, #676767); font-size: .9em; }
.tpi-sa-adv__body { padding-block-start: .6rem; }
.tpi-sa-orgprompt { border-inline-start: 4px solid var(--sa-orange, #f8ab08); margin-bottom: 1rem; }
.tpi-sa-orgprompt .tpm-logo { max-height: 40px; display: block; margin: .3rem 0 .6rem; }
.tpi-sa-orglist { list-style: none; padding: 0; margin: .4rem 0; }
.tpi-sa-orglist li { padding: .3rem 0; border-bottom: 1px solid var(--sa-line, #e3e7ea); }
.tpm-notes { margin: 0 0 1rem; padding: .7rem 1rem; border-radius: 8px; background: #fff7e0; border: 1px solid #f3dd9a; }
.tpm-notes p { margin: 0 0 .3rem; }
.tpm-notes ul { margin: 0; padding-inline-start: 1.1rem; }
.tpm-notes li { margin: .2rem 0; }
.tpm-hist summary { cursor: pointer; }
.tpm-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(20, 30, 40, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tpm-modal__box { background: #fff; border-radius: 10px; max-width: 720px; width: 100%; max-height: 90vh; overflow: auto; padding: 22px 24px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.tpm-diff th[scope="row"] { white-space: nowrap; font-weight: 600; }
.tpm-diff .tpm-before { background: #fbecea; word-break: break-word; }
.tpm-diff .tpm-after { background: #e6f3ea; word-break: break-word; }
.tpm-dups { margin: .8rem 0; padding: .8rem 1rem; border-radius: 8px; background: #fff7e0; border: 1px solid #f3dd9a; }
.tpm-dups li { padding: .35rem 0; }
.tpm-orgpick { position: relative; }
.tpm-orgsugg__list { position: absolute; z-index: 20; inset-inline: 0; inset-block-start: 100%; background: #fff; border: 1px solid var(--sa-line, #e3e7ea); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 260px; overflow: auto; }
.tpm-orgsugg__list button { display: block; width: 100%; text-align: start; padding: .45rem .7rem; border: 0; background: none; cursor: pointer; font: inherit; }
.tpm-orgsugg__list button:hover, .tpm-orgsugg__list button:focus { background: var(--sa-soft, #f4f6f8); }
.tpm-fbprev__table { max-height: 420px; overflow: auto; }
.tpm-fbedit td { background: var(--sa-soft, #f4f6f8); }
.tpi-sa-fix { border-inline-start: 4px solid var(--sa-orange, #f8ab08); }
.tpi-sa-fix textarea { width: 100%; }
/* Right-to-left languages */
[dir="rtl"] .tpi-sa-wrap, [dir="rtl"] .tpi-sa { text-align: right; }
[dir="rtl"] .tpc-num { text-align: left; }
/* Everything you are involved in; "you are here as" */
.tpi-sa-ov { margin: 0 0 1.5rem; }
.tpi-sa-ov__sec h3 { font-size: 1.05rem; margin: 1.2rem 0 .5rem; }
.tpi-sa-ov__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--sa-line, #e3e7ea); border-radius: 8px; }
.tpi-sa-ov__item { display: flex; align-items: center; gap: 12px; padding: .7rem .9rem; border-bottom: 1px solid var(--sa-line, #e3e7ea); }
.tpi-sa-ov__item:last-child { border-bottom: 0; }
.tpi-sa-ov__item > div { flex: 1; min-width: 0; }
.tpi-sa-ov__logo { width: 44px; height: 44px; object-fit: contain; border-radius: 4px; background: #fff; flex: none; }
.tpi-sa-ov__as { color: var(--sa-navy, #223f52); font-size: .92rem; }
.tpi-sa-hub__sub { margin-top: 1.5rem; }
.tpi-sa-hereas { margin: 0 0 1rem; padding: .5rem .8rem; border-radius: 6px; background: #eef3f6; color: var(--sa-navy, #223f52); font-size: .92rem; }
.tpi-sa-glossary dt { font-weight: 600; margin-top: .5rem; }
.tpi-sa-glossary dd { margin: 0 0 0 0; color: var(--sa-muted, #676767); }
@media (max-width: 600px) { .tpi-sa-ov__item { flex-wrap: wrap; } }

/* ---------- 3.1 ---------- */
/* Help "i": a small circle whatever the site's theme does to buttons; the pop-up stays next to it and on screen. */
.tpi-sa-wrap .tpi-sa-info, .tpi-sa .tpi-sa-info, .tpi-sa-modal .tpi-sa-info, button.tpi-sa-info {
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	width: 1.15em !important; height: 1.15em !important; min-width: 0 !important; min-height: 0 !important; max-width: none !important;
	padding: 0 !important; margin: 0 0 0 .35em !important; border: 1px solid currentColor !important; border-radius: 50% !important;
	background: transparent !important; box-shadow: none !important; color: #4a6b80 !important; text-transform: none !important; letter-spacing: 0 !important;
	font: italic 700 13px/1 Georgia, serif !important; vertical-align: middle !important; position: relative !important; cursor: help !important; overflow: visible !important;
}
.tpi-sa-info__tip { transform: translateX(calc(-50% + var(--shift, 0px))) !important; font-style: normal !important; letter-spacing: 0 !important; text-transform: none !important; }
[dir="rtl"] .tpi-sa-info__tip { transform: translateX(calc(50% + var(--shift, 0px))) !important; }


/* Rating buttons: the real radio sits over its number, so clicking it never scrolls the page. */
.tpi-sa-scale__opt input { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; margin: 0 !important; opacity: 0 !important; cursor: pointer; z-index: 1; }

/* Logo: a fixed size the theme can't override. */
.tpi-sa-reportbar img, .tpi-sa-wrap img.tpi-sa-logo, .tpi-sa img.tpi-sa-logo { height: 62px !important; width: auto !important; max-width: 260px !important; max-height: 62px !important; object-fit: contain; margin: 0 !important; }
.tpi-sa-reportbar { flex-wrap: wrap; align-items: flex-start !important; }
.tpi-sa-reportbar__r { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.tpi-sa-reportbar__btns { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; text-transform: none !important; letter-spacing: 0 !important; }
.tpi-sa-reportbar__btns .tpi-sa-btn { font-size: .85rem; padding: .45em .8em; }
@media (max-width: 560px) { .tpi-sa-reportbar__r { align-items: flex-start; } .tpi-sa-reportbar__btns { justify-content: flex-start; } }

/* Printing: only the report is printed (the rest of the page, including the theme's header, is hidden). */
#tpia-print { display: none; }
@media print {
	html.tpia-printing body > *:not(#tpia-print) { display: none !important; }
	html.tpia-printing #tpia-print { display: block !important; }
	html.tpia-printing body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
	.tpi-sa-print-head img, .tpi-sa-cover__logo { height: 16mm !important; width: auto !important; max-width: 70mm !important; max-height: 16mm !important; }
	.tpi-sa-chooser, .tpi-rc-chooser, .tpi-sa-teaser, .tpi-sa-teaser__x, .tpi-sa-org-note, .tpi-sa-compare__filters, .tpi-sa-compare .tpi-sa-small button, .tpi-sa-toast, .tpi-sa-modal-wrap { display: none !important; }
	.tpi-sa-table, .tpi-sa-panel--sec, .tpi-rc-row, .tpi-rc-ridge, .tpi-sa-chartblock { break-inside: avoid; page-break-inside: avoid; }
}

/* Partnership description: levels above the scope are greyed out. */
.tpi-sa-check.is-disabled { opacity: .45; cursor: not-allowed; }
.tpi-sa-pp-scopenote { color: #8a5a00; }

/* The first unanswered question is highlighted; questions missed when moving on are marked more strongly. */
/* The next question to answer: a highlight drawn behind the question, so it never moves anything on the page.
   It fades out of one question while it fades into the next (half a second). */
.tpi-sa-q { position: relative; isolation: isolate; }
.tpi-sa-q::before { content: ""; position: absolute; top: 0; bottom: 0; left: -12px; right: -12px; z-index: -1; pointer-events: none;
	background: #fff6e0; border-left: 3px solid var(--sa-orange); border-radius: 4px; opacity: 0; transition: opacity .5s ease; }
.tpi-sa-q.is-next::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tpi-sa-q::before { transition: none; } }
@media print { .tpi-sa-q::before { display: none; } }
.tpi-sa-q.is-missing::before { opacity: 1; background: #ffe9c2; border-left: 5px solid #d98a00; }

/* Already taken */
.tpi-sa-taken { margin: .5rem 0 1rem; padding: .8rem 1rem; border-radius: 8px; background: var(--tint, #eef2f5); }
.tpi-sa-taken p { margin: .2rem 0; }

/* Confirmation box and short messages */
.tpi-sa-modal-wrap { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 30, 40, .45); }
.tpi-sa-modal { width: min(480px, 100%); max-height: 90vh; overflow: auto; background: #fff; color: var(--sa-ink, #2b2b2b); border-radius: 10px; padding: 1.4rem 1.5rem; box-shadow: 0 12px 40px rgba(0,0,0,.25); font-family: inherit; }
.tpi-sa-modal h3 { margin: 0 0 .5rem; font-size: 1.2rem; color: var(--sa-navy, #223f52); }
.tpi-sa-modal p { margin: 0 0 1rem; line-height: 1.5; }
.tpi-sa-modal .tpi-sa-field { display: block; margin: 0 0 1rem; }
.tpi-sa-modal .tpi-sa-field input, .tpi-sa-modal .tpi-sa-field textarea { width: 100%; box-sizing: border-box; }
.tpi-sa-modal__btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.tpi-sa-modal .tpi-sa-btn[disabled] { opacity: .5; cursor: not-allowed; }
.tpi-sa-toast { position: fixed; z-index: 100001; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; gap: .8rem; align-items: center; max-width: calc(100vw - 32px); padding: .7rem 1rem; border-radius: 8px; background: #1f2f3a; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.25); font-size: .95rem; }
.tpi-sa-toast .tpi-sa-link { color: #ffd36b !important; font-weight: 700; background: none; border: 0; cursor: pointer; text-decoration: underline; }

/* Charts */
.tpi-sa-charts .tpi-sa-panel__head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; justify-content: space-between; }
.tpi-sa-chartblock { margin: 1rem 0 1.5rem; }
.tpi-sa-chartblock h4 { margin: 0 0 .5rem; font-size: 1rem; color: var(--sa-navy); }
.tpi-rc-chooser { position: relative; font-size: .92rem; }
.tpi-rc-chooser > summary { cursor: pointer; font-weight: 600; color: var(--sa-navy); padding: .3rem .7rem; border: 1px solid var(--sa-line); border-radius: 6px; list-style: none; }
.tpi-rc-chooser > summary::-webkit-details-marker { display: none; }
.tpi-rc-chooser__box { position: absolute; right: 0; z-index: 30; margin-top: .3rem; min-width: 250px; padding: .7rem .9rem; background: #fff; border: 1px solid var(--sa-line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.tpi-rc-chooser__box label { display: flex; gap: .5rem; align-items: center; padding: .25rem 0; }
.tpi-rc { font-size: .95rem; }
.tpi-rc-note { font-size: .85rem; color: var(--sa-muted); margin: .2rem 0 .6rem; }
.tpi-rc-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .85rem; color: var(--sa-muted); margin: .3rem 0 .8rem; }
.tpi-rc-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.tpi-rc-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.tpi-rc-sw.is-dot { border-radius: 50%; width: 11px; height: 11px; }
.tpi-rc-dash { display: inline-block; width: 18px; border-top: 2px dashed #F8AB08; }
.tpi-rc-ring { display: inline-block; width: 11px; height: 11px; border: 2px solid #5b6873; border-radius: 50%; box-sizing: border-box; }
.tpi-rc-avgk { display: inline-block; width: 3px; height: 14px; background: #1d2b36; border-radius: 2px; }
.tpi-rc-you { display: inline-block; width: 10px; height: 10px; background: var(--sa-orange); transform: rotate(45deg); border-radius: 2px; }
.tpi-rc-web { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.tpi-rc-web text { font-family: inherit; }
.tpi-rc-lab { fill: var(--sa-navy, #223f52); font-size: 15px; font-weight: 700; }
.tpi-rc-lab.is-small { font-size: 13px; }
.tpi-rc-val { fill: #5b6873; font-size: 13px; font-weight: 600; }
.tpi-rc-num { fill: #5b6873; font-size: 12px; font-weight: 600; }
.tpi-rc-rows { display: grid; gap: 10px; }
.tpi-rc-row { display: grid; grid-template-columns: minmax(140px, 230px) 1fr 44px; gap: 6px 14px; align-items: center; }
.tpi-rc-row > .tpi-rc-lab { font-size: .95rem; line-height: 1.25; min-width: 0; font-weight: 400; fill: none; color: var(--sa-ink); }
.tpi-rc-row > .tpi-rc-lab small { display: block; font-size: .8rem; color: var(--sa-muted); }
.tpi-rc-row > .tpi-rc-val { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.tpi-rc-track { position: relative; height: 26px; border-radius: 5px; background: #eef1f4; }
.tpi-rc-track.is-tall { height: 34px; }
.tpi-rc-bands { position: absolute; inset: 0; display: flex; border-radius: 5px; overflow: hidden; opacity: .75; }
.tpi-rc-bands i { display: block; height: 100%; }
.tpi-rc-bar { position: absolute; left: 0; top: 7px; height: 12px; border-radius: 0 6px 6px 0; background: var(--sa-navy); }
.tpi-rc-dot, .tpi-rc-ringm, .tpi-rc-idot, .tpi-rc-avg, .tpi-rc-rme { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.tpi-rc-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sa-navy); border: 2px solid #fff; z-index: 2; }
.tpi-rc-ringm { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #5b6873; background: #fff; box-sizing: border-box; z-index: 1; }
.tpi-rc-idot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #fff; }
.tpi-rc-avg { width: 3px; height: 30px; background: #1d2b36; border-radius: 2px; }
.tpi-rc-arrow { position: absolute; top: 50%; height: 2px; transform: translateY(-50%); background: #13766D; }
.tpi-rc-range { position: absolute; top: 50%; height: 4px; transform: translateY(-50%); background: #5b6873; opacity: .45; border-radius: 2px; }
.tpi-rc-flag { margin-left: .4rem; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: #a33a22; white-space: nowrap; }
.tpi-rc-axis { display: grid; grid-template-columns: minmax(140px, 230px) 1fr 44px; gap: 14px; font-size: .78rem; color: var(--sa-muted); margin-top: 6px; }
.tpi-rc-ticks { position: relative; height: 14px; }
.tpi-rc-ticks span { position: absolute; transform: translateX(-50%); }
.tpi-rc-stack { display: flex; height: 22px; border-radius: 5px; overflow: hidden; }
.tpi-rc-stack i { display: block; height: 100%; }
.tpi-rc-scroll { overflow-x: auto; }
.tpi-rc-heat { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 520px; font-variant-numeric: tabular-nums; }
.tpi-rc-heat th { font-size: .74rem; letter-spacing: .03em; text-transform: uppercase; color: var(--sa-muted); text-align: center; padding: 6px 4px; }
.tpi-rc-heat th[scope=row] { text-align: left; text-transform: none; font-size: .92rem; color: var(--sa-ink); letter-spacing: 0; }
.tpi-rc-heat td { text-align: center; font-weight: 700; padding: 10px 4px; border-radius: 5px; }
.tpi-rc-heat td.is-all { outline: 2px solid #1d2b36; outline-offset: -2px; }
.tpi-rc--webs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 24px; }
.tpi-rc--webs figure { margin: 0; text-align: center; }
.tpi-rc--webs figcaption { font-weight: 700; color: var(--sa-navy); }
.tpi-rc-ridges { position: relative; display: grid; gap: 4px; }
.tpi-rc-rlab { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: .95rem; line-height: 1.3; margin-bottom: -1rem; }
.tpi-rc-rlab em { font-style: normal; font-size: .8rem; color: var(--sa-muted); font-variant-numeric: tabular-nums; }
.tpi-rc-rplot { position: relative; height: 64px; }
.tpi-rc-shape { position: absolute; left: 0; top: 6px; width: 100%; height: 44px; }
.tpi-rc-shape path { fill: var(--c); fill-opacity: .26; }
.tpi-rc-rtrack { position: absolute; left: 0; right: 0; top: 50px; height: 5px; border-radius: 3px; background: #eef1f4; }
.tpi-rc-rbar { position: absolute; left: 0; top: 50px; height: 5px; border-radius: 3px; background: var(--c); }
.tpi-rc-ravg { position: absolute; z-index: 3; top: 39px; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: var(--c); color: #fff; border: 2px solid #fff; font-size: .66rem; font-weight: 700; line-height: 24px; text-align: center; box-sizing: border-box; }
.tpi-rc-rme { top: 30px; transform: none; width: 0; z-index: 4; }
.tpi-rc-rme i { position: absolute; left: -9px; top: 0; width: 18px; height: 18px; background: var(--sa-orange); border: 2px solid #fff; transform: rotate(45deg); border-radius: 3px; box-sizing: border-box; }
.tpi-rc-rme b { position: absolute; left: 14px; top: 1px; font-size: .72rem; white-space: nowrap; background: #fff; padding: 1px 4px; border-radius: 3px; }
.tpi-rc-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--sa-muted); }
@media (max-width: 620px) {
	.tpi-rc-row, .tpi-rc-axis { grid-template-columns: 1fr 44px; }
	.tpi-rc-row > .tpi-rc-lab { grid-column: 1 / -1; }
	.tpi-rc-axis > span:first-child { display: none; }
	.tpi-rc-lab { font-size: 13px; }
	.tpi-rc-chooser__box { left: 0; right: auto; }
}
.tpi-rc-ticks--full { margin-top: 4px; font-size: .78rem; color: var(--sa-muted); }
.tpi-sa-binlist{list-style:none;margin:.5em 0;padding:0}
.tpi-sa-binlist li{display:flex;justify-content:space-between;align-items:center;gap:1em;padding:.6em 0;border-bottom:1px solid #e6e6e6;flex-wrap:wrap}
.tpi-sa-bin{margin-top:1em}
.tpm-acc-name,.tpm-acc-slug{display:flex;align-items:center;gap:.5em}
.tpm-acc-name input{flex:1}
.tpm-acc-slug input{flex:1;min-width:8em}
.tpm-acc-slug .tpi-sa-small{white-space:nowrap}
.tpm-groupby{max-width:20em}
.tpi-sa-reportbar.tpm-reportbar{justify-content:flex-end}
.tpm-reportbar .tpi-sa-reportbar__r{flex-direction:row;align-items:center;gap:1rem}
.tpm-service__opts{margin:.4em 0 0 1.8em}
.tpi-rc, .tpi-rc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media print {
	.tpi-sa-noprint, .tpi-rc-chooser, .tpi-sa-compare form, .tpi-sa-toast, .tpi-sa-modal-wrap { display: none !important; }
	.tpi-sa-compare:not(:has(.tpi-rc)) { display: none !important; }
}

.tpi-sa-req { color: #b3261e; font-weight: 700; margin-left: .15em; }
.tpi-sa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tpi-sa-why { background: var(--sa-soft); border-left: 3px solid var(--sa-orange); padding: .6em .9em; border-radius: 4px; }
.tpi-sa-lists { margin-top: 1rem; }
.tpi-sa-wrap .tpi-sa-field .tpi-sa-req, .tpi-sa-wrap .tpi-sa-field .tpi-sa-sr { display: inline !important; }
.tpi-sa-wrap .tpi-sa-field .tpi-sa-sr { position: absolute !important; }
.tpi-sa-wrap fieldset.tpi-sa-lists { border: 0; padding: 0; margin: 1rem 0 0; }
.tpi-sa-wrap fieldset.tpi-sa-lists legend { font-weight: 700; padding: 0; margin-bottom: .3rem; }

/* Area names at the top of the survey: buttons to go to that area. */
.tpi-sa-wrap ol.tpi-sa-steps > li { padding: 0 !important; }
.tpi-sa-wrap .tpi-sa-steps__go { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem .2rem .25rem; border-radius: 999px; cursor: pointer; color: inherit; font: inherit; }
.tpi-sa-wrap ol.tpi-sa-steps > li:last-child .tpi-sa-steps__go { padding-left: .65rem; }
.tpi-sa-wrap .tpi-sa-steps__go:hover { text-decoration: underline; }
.tpi-sa-wrap .tpi-sa-steps__go:focus-visible { outline: 3px solid var(--sa-orange); outline-offset: 2px; }
/* The "i" pop-up is hidden unless opened, whatever other rules say about spans inside labels. */
.tpi-sa-info .tpi-sa-info__tip, .tpi-sa-wrap .tpi-sa-field .tpi-sa-info .tpi-sa-info__tip, .tpi-sa-wrap label .tpi-sa-info .tpi-sa-info__tip { display: none !important; }
.tpi-sa-info[aria-expanded="true"] .tpi-sa-info__tip, .tpi-sa-wrap .tpi-sa-field .tpi-sa-info[aria-expanded="true"] .tpi-sa-info__tip, .tpi-sa-wrap label .tpi-sa-info[aria-expanded="true"] .tpi-sa-info__tip { display: block !important; }
/* A two-column layout holding a single panel (such as "Scores by area") uses the full width. */
.tpi-sa-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }

/* The completed checks listed under each partnership in "My partnerships". */
.tpi-sa-wrap tr.tpi-sa-mine__runs > td { padding-top: 0 !important; border-top: 0 !important; }
.tpi-sa-wrap ul.tpi-sa-runs { list-style: none; margin: 0 0 .4rem; padding: 0 0 0 .9rem; border-left: 3px solid var(--sa-line); }
.tpi-sa-wrap ul.tpi-sa-runs > li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .25rem 0; font-size: .9rem; }
.tpi-sa-wrap ul.tpi-sa-runs > li::before { content: none; }
.tpi-sa-runs__when { min-width: 8.5em; color: var(--sa-muted); }
.tpi-sa-runs__acts { margin-left: auto; }

/* In a wide theme column, keep to the column (see fitWide in app.js). */
.tpi-sa-wrap--wide.is-fit { left: auto; transform: none; width: auto; max-width: none !important; }

/* Pro accounts (3.2.0) */
.tpi-sa-pro { margin: 2.5rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--sa-line); }
.tpi-sa-pro h2 { margin-bottom: .3em !important; }
.tpi-sa-pro .tpi-sa-lead { margin-top: 0 !important; }
.tpi-sa-pro__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.tpi-sa-pro__opt { background: #fff; border: 1px solid var(--sa-line); border-top: 4px solid var(--sa-navy); border-radius: 4px; padding: 1.1rem 1.25rem; }
.tpi-sa-pro__opt:first-child { border-top-color: var(--sa-orange); }
.tpi-sa-pro__opt h3 { margin-bottom: .1em !important; }
.tpi-sa-pro__who { color: var(--sa-muted); font-size: .9rem; margin: 0 0 .6em !important; }
.tpi-sa-pro__opt ul { margin: 0 0 .75em 1.1em !important; padding: 0 !important; }
.tpi-sa-pro__opt li { margin: .2em 0; }
.tpi-sa-pro__how { background: var(--sa-soft); border-radius: 4px; padding: 1.1rem 1.25rem; margin: 0 0 1.5rem; }
.tpi-sa-pro__how ol { margin: 0 0 0 1.2em !important; padding: 0 !important; }
.tpi-sa-pro__how li { margin: .35em 0; }
.tpi-sa-proform { max-width: 720px; background: #fff; border: 1px solid var(--sa-line); border-radius: 4px; padding: 1.25rem; }
.tpi-sa-proform__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.tpi-sa-proform fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.tpi-sa-proform legend { font-weight: 600; margin-bottom: .5em; padding: 0; }
.tpi-sa-proform .tpi-sa-check { margin-bottom: .45rem; }
.tpi-sa-proform__msg.is-err { color: var(--sa-red); }
.tpi-sa-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tpi-sa-card--pro .tpi-sa-lic { margin-left: .3em; }
.tpi-sa-field span.tpi-sa-req, .tpi-sa-field span .tpi-sa-req { display: inline; }
.tpi-sa-proform textarea, .tpi-sa-proform input[type=text], .tpi-sa-proform input[type=email] { width: 100%; box-sizing: border-box; }
.tpm-q { border-top: 1px solid var(--sa-line); padding: .6rem 0; }
.tpm-q textarea { width: 100%; box-sizing: border-box; margin: .3rem 0; }
.tpm-q .tpi-sa-check { margin-bottom: 0; }
.tpm-qchange { border: 0; padding: 0; margin: .3rem 0 0; }
.tpm-qadded { border-top: 1px dashed var(--sa-line); padding: .4rem 0; }
.tpm-hcp .tpc-person-head h3 { margin-bottom: .1em; }
.tpm-topics { columns: 2 260px; } .tpm-topics .tpi-sa-check { break-inside: avoid; margin-bottom: .35rem; }
.tpm-reswhen h5{margin:0 0 .4em}.tpm-resfile input[type=file]{display:block;margin:.4em 0}
.tpi-sa-ai__focus{margin:.8em 0;padding-left:.8em;border-left:3px solid #F8AB08}.tpi-sa-ai__focus h4{margin:0 0 .3em}.tpi-sa-ai__note{margin-top:1em;font-style:italic}.tpm-ai .tpm-ai__q{margin:.4em 0 1em}.tpm-ai blockquote{margin:.3em 0 .3em 1em;font-style:italic}
.tpm-ai__en{display:block;font-style:normal;margin-top:.2em}.tpi-sa-xl{display:none}.tpi-xl-on .tpi-sa-xl{display:block}.tpi-sa-xl{margin-top:.6em;color:#5b6470}
.tpm-help{display:grid;grid-template-columns:260px 1fr;gap:32px;align-items:start}.tpm-help__side{position:sticky;top:16px}.tpm-help__toc ol{margin:.5em 0 1em 1.2em;padding:0}.tpm-help__toc li{margin:.35em 0}.tpm-help__guides{margin:.6em 0 1em;line-height:1.6}.tpm-help__body{max-width:780px;min-width:0}.tpm-help__body h3{margin-top:2em;padding-top:.6em;border-top:1px solid #e3e6ea}.tpm-help__body h3.tpm-help__title{margin-top:0;border-top:0;padding-top:0;font-size:1.5em}.tpm-help__body h4{margin-top:1.4em}.tpm-help__body p,.tpm-help__body li{line-height:1.55}.tpm-help__table{overflow-x:auto;margin:1em 0}.tpm-help__fig{margin:1.2em 0 1.6em}.tpm-help__fig img{display:block;max-width:100%;height:auto;border:1px solid #d8dde3;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.06)}.tpm-help__fig figcaption{font-size:.85em;color:#5b6470;margin-top:.4em}.tpm-help__body code{background:#f2f4f6;padding:0 .25em;border-radius:3px}
@media (max-width:820px){.tpm-help{grid-template-columns:1fr}.tpm-help__side{position:static}}
.tpm-stdq{border-top:1px solid #e3e6ea;padding:.8em 0}.tpm-stdq--optional{background:#f7f8fa}.tpm-stdq--removed{opacity:.6}.tpm-std__need{border-top:1px solid #e9c9c9;padding:.6em 0}.tpm-q--opt{background:#f7f8fa}
.tpm-emframe{width:100%;height:520px;border:1px solid #d8dde3;border-radius:6px;background:#fff}

/* 3.12: AI paragraph at the top of each section, and the overview panel. */
.tpi-sa-ai-sec{border-left:3px solid var(--sc,#F8AB08);padding:.2em 0 .2em .8em;margin:.4em 0 .8em;color:#333}.tpi-sa-overview p[data-ai-ov]{font-size:1.05em}

/* Logo by web address, under the file chooser */
.tpm-logourl { display: block; margin-top: .4em; }
.tpm-logourl input { display: block; width: 100%; max-width: 32em; margin-top: .2em; }

/* ==========================================================================
   3.14: the console's look (console pages only: body.tpia-con). The main website keeps its theme.
   ========================================================================== */
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

body.tpia-con { margin: 0; background: #f5f7f9; color: #1c2a35; font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.tpia-con .tpi-sa-wrap { --sa-ink: #1c2a35; --sa-muted: #5b6670; --sa-line: #e3e8ec; --sa-soft: #eef2f5; font-family: inherit; font-size: 15.5px; }
.tpia-con a { color: #223f52; }

/* Top bar */
.tpc-top { background: #fff; border-bottom: 1px solid #e3e8ec; position: relative; z-index: 50; font-family: Manrope, system-ui, sans-serif; }
.tpc-top__in { max-width: 1280px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.tpc-top__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #1c2a35 !important; min-height: 44px; }
.tpc-top__tpi { height: 46px; width: auto; display: block; }
.tpc-top__title { font-family: Montserrat, Manrope, system-ui, sans-serif; font-size: 20px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #223f52; border-left: 1px solid #d6dde2; padding-left: 16px; line-height: 1.1; }
.tpc-top__clogo { max-height: 46px; max-width: 200px; width: auto; display: block; }
.tpc-top__cname { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.tpc-top__nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; justify-content: center; }
.tpc-top__end { display: flex; align-items: center; gap: 4px; }
.tpc-top__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; box-sizing: border-box; padding: 10px 14px; border-radius: 999px; color: #3d4b56 !important; text-decoration: none !important; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; background: none; border: 0; font-family: inherit; }
.tpc-top__link::-webkit-details-marker { display: none; }
.tpc-top__link:hover { background: #eef2f5; color: #0f2534 !important; }
.tpc-top__link.is-on { background: #223f52; color: #fff !important; }
.tpc-top__menu { position: relative; }
.tpc-top__menu > summary { list-style: none; }
.tpc-top__drop { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; max-width: min(360px, 90vw); background: #fff; border: 1px solid #e3e8ec; border-radius: 16px; box-shadow: 0 18px 40px rgba(15,37,52,.16); padding: 8px; display: flex; flex-direction: column; gap: 2px; z-index: 60; }
.tpc-top__drop--end { left: auto; right: 0; }
.tpc-top__drop--wide { min-width: 300px; }
.tpc-top__drop a, .tpc-top__drop button { display: block; text-align: left; padding: 10px 12px; border-radius: 10px; color: #1c2a35 !important; text-decoration: none !important; font: inherit; font-size: 15px; font-weight: 600; background: none; border: 0; cursor: pointer; width: 100%; box-sizing: border-box; }
.tpc-top__drop a:hover, .tpc-top__drop button:hover { background: #f2f5f7; }
.tpc-top__drop small { display: block; font-size: 13px; font-weight: 500; color: #5b6670; margin-top: 2px; }
.tpc-top__who { margin: 4px 12px 8px; font-size: 14px; color: #5b6670; line-height: 1.45; }
.tpc-top__who strong { color: #1c2a35; }
.tpc-top__avatar { width: 32px; height: 32px; border-radius: 50%; background: #13766d; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.tpc-top__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: #f8ab08; color: #1c2a35 !important; font-weight: 800; text-decoration: none !important; }
.tpc-top__powered { display: flex; flex-direction: column; gap: 2px; text-decoration: none !important; border-left: 1px solid #d6dde2; padding-left: 18px; }
.tpc-top__powered span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5b6670; }
.tpc-top__powered img { height: 34px; width: auto; display: block; }
.tpc-tpibar { background: #223f52; }
.tpc-tpibar[hidden] { display: none; }
.tpc-tpibar__in { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 2px; }
.tpc-tpibar__link { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; box-sizing: border-box; padding: 12px 14px; color: #d9e3ea !important; text-decoration: none !important; font-weight: 700; font-size: 15px; border-bottom: 3px solid transparent; cursor: pointer; list-style: none; }
.tpc-tpibar__link::-webkit-details-marker { display: none; }
.tpc-tpibar__link:hover { color: #fff !important; }
.tpc-tpibar__link.is-on, .tpc-tpibar details.is-on > summary { color: #fff !important; border-bottom-color: #f8ab08; }
.tpc-tpibar .tpc-top__drop { top: 100%; }
.tpc-brandline { height: 4px; }
@media (max-width: 760px) {
	.tpc-top__nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
	.tpc-top__title { font-size: 18px; padding-left: 12px; }
	.tpc-top__tpi { height: 38px; }
	.tpc-top__powered { border-left: 0; padding-left: 0; }
}

/* Page and footer */
.tpc-page { min-height: 60vh; }
body.tpia-con:not(.tpia-client) .tpc-page { max-width: 1280px; margin: 0 auto; padding: 32px 24px 0; box-sizing: border-box; }
body.tpia-con:not(.tpia-client) .tpc-page .tpi-sa-wrap--wide, body.tpia-con:not(.tpia-client) .tpc-page .tpi-sa-wrap--console { left: auto; transform: none; width: auto; max-width: none !important; }
.tpia-client .tpia-client__main { max-width: 1280px; padding: 28px 24px 48px; }
.tpia-client .tpia-client__main > .tpi-sa-wrap { background: transparent; box-shadow: none; padding: 0; }
.tpc-foot { margin-top: 64px; background: #fff; border-top: 1px solid #e3e8ec; font-size: 14px; color: #5b6670; }
.tpc-foot__in { max-width: 1280px; margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.tpc-foot__in span:last-child { display: flex; gap: 24px; }

/* Surfaces, buttons, tabs, tables */
.tpia-con .tpc-panel, .tpia-con .tpi-sa-panel { border: 1px solid #e3e8ec; border-radius: 18px; padding: 24px 26px; background: #fff; margin-bottom: 20px; }
.tpia-con .tpc-panel h3, .tpia-con .tpi-sa-panel h3 { font-size: 20px; font-weight: 800; letter-spacing: -.005em; }
.tpia-con .tpi-sa-intro, .tpia-con .tpi-sa-auth { background: #fff; border: 1px solid #e3e8ec; border-radius: 18px; padding: 28px 30px; }
.tpia-con h1, .tpia-con h2 { letter-spacing: -.01em; }
.tpia-con .tpi-sa-wrap .tpi-sa-btn { border-radius: 999px; padding: .75em 1.4em; border-width: 1.5px; }
.tpia-con .tpi-sa-wrap .tpi-sa-btn--primary { color: #1c2a35; font-weight: 800; }
.tpia-con .tpi-sa-wrap .tpi-sa-btn--ghost { border-color: #c9d3da; }
.tpia-con .tpi-sa-wrap .tpi-sa-btn--ghost:hover { border-color: #223f52; }
.tpia-con .tpc-tabs { gap: 6px; margin-bottom: 20px; }
.tpia-con .tpc-tab { border-radius: 999px; padding: 10px 16px; background: #fff; border: 1px solid #e3e8ec; font-size: 15px; min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
.tpia-con .tpc-tab:hover { border-color: #223f52; }
.tpia-con .tpc-tab.is-active { background: #223f52; border-color: #223f52; color: #fff; }
.tpia-con .tpc-table th { font-size: 12px; letter-spacing: .08em; font-weight: 800; color: #5b6670; padding: 12px 12px; }
.tpia-con .tpc-table td { padding: 14px 12px; border-bottom-color: #edf0f3; vertical-align: middle; }
.tpia-con .tpc-badge { border-radius: 999px; padding: 3px 10px; font-weight: 700; }
.tpia-con input[type=text], .tpia-con input[type=email], .tpia-con input[type=url], .tpia-con input[type=number], .tpia-con input[type=date], .tpia-con select, .tpia-con textarea { border-radius: 10px; }

/* Administration: page head, breadcrumbs, side menu */
.tpm-pagehead { margin: 0 0 18px; }
.tpm-split__main > .tpc-person-head h3, .tpm .tpc-person-head h3 { font-size: 28px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.01em; }
.tpm-crumbs { font-size: 14px; color: #5b6670; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 20px; }
.tpm-crumbs a { color: #223f52; }
.tpm-crumbs b { color: #1c2a35; }
.tpm-title { font-size: 32px; font-weight: 800; margin: 6px 0 20px; letter-spacing: -.01em; }
.tpm-split { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.tpm-split__main { flex: 999 1 640px; min-width: 0; }
.tpia-con .tpc-tabs.tpm-side, .tpc-tabs.tpm-side { flex: 1 1 230px; max-width: 280px; flex-direction: column; flex-wrap: nowrap; gap: 2px; background: #fff; border: 1px solid #e3e8ec; border-radius: 18px; padding: 8px 10px 14px; margin: 0; }
.tpm-side .tpm-navgroup { margin: 16px 12px 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #5b6670; font-weight: 800; }
.tpm-side .tpm-navgroup:first-child { margin-top: 8px; }
.tpia-con .tpm-side .tpc-tab { border: 0; background: none; border-radius: 12px; justify-content: flex-start; color: #3d4b56; font-weight: 600; }
.tpia-con .tpm-side .tpc-tab:hover { background: #eef2f5; color: #0f2534; }
.tpia-con .tpm-side .tpc-tab.is-active { background: #e8eef2; color: #0f2534; font-weight: 800; }
@media (max-width: 760px) { .tpc-tabs.tpm-side { max-width: none; flex-basis: 100%; } }

/* TPI: waiting for you */
.tpm-welcome { display: flex; flex-wrap: wrap; overflow: hidden; background: #fff; border: 1px solid #e3e8ec; border-radius: 18px; margin-bottom: 28px; }
.tpm-welcome__text { flex: 1 1 420px; padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.tpm-welcome__text h2 { margin: 0; font-size: 32px; font-weight: 800; }
.tpm-welcome__text p { margin: 0; color: #4a5863; font-size: 16px; }
.tpm-welcome__eyebrow { font-size: 13px !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a5a00 !important; }
.tpm-welcome__img { flex: 1 1 280px; min-height: 180px; position: relative; }
.tpm-welcome__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.tpm-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0 0 28px; }
.tpm-quick a { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid #e3e8ec; border-radius: 16px; padding: 18px 20px; text-decoration: none !important; color: #1c2a35 !important; }
.tpm-quick a:hover { border-color: #223f52; }
.tpm-quick strong { font-size: 16px; }
.tpm-quick span { color: #5b6670; font-size: 14px; }

/* Console front door (signed out) */
.tpc-hero { display: flex; flex-wrap: wrap; overflow: hidden; border-radius: 22px; background: #223f52; margin-bottom: 28px; }
.tpc-hero__text { flex: 1 1 420px; padding: 48px 44px; color: #fff; display: flex; flex-direction: column; gap: 14px; }
.tpc-hero__text h1 { margin: 0; font-size: 40px; line-height: 1.12; font-weight: 800; color: #fff; }
.tpc-hero__eyebrow { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #f8ab08; }
.tpc-hero__lead { margin: 0; font-size: 18px; line-height: 1.55; color: #d9e3ea; max-width: 32em; }
.tpc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.tpia-con .tpi-sa-wrap .tpc-hero__ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.tpia-con .tpi-sa-wrap .tpc-hero__ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.tpc-hero__img { flex: 1 1 360px; min-height: 260px; position: relative; }
.tpc-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* My work */
.tpc-my h2 { font-size: 24px; font-weight: 800; margin: 40px 0 16px; }
.tpc-my__hero { margin-bottom: 8px; }
.tpc-my__hero .tpc-hero__text { padding: 44px 44px 40px; }
.tpc-my__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.tpc-my__card { background: #fff; border: 1px solid #e3e8ec; border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.tpc-my__card-head { display: flex; gap: 14px; align-items: center; }
.tpc-my__ico { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--tint, #e8eef2); color: var(--acc, #223f52); }
.tpc-my__ico svg { width: 26px; height: 26px; }
.tpc-my__kind { margin: 0; font-size: 13px; font-weight: 800; color: var(--acc, #223f52); }
.tpc-my__card h3 { margin: 2px 0 0; font-size: 18px; font-weight: 800; }
.tpc-my__card p { margin: 0; color: #4a5863; font-size: 15px; line-height: 1.5; }
.tpc-my__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; font-weight: 700; color: #4a5863; align-items: center; }
.tpc-my__card .tpi-sa-btn { align-self: flex-start; }
.tpc-my__cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.tpc-my__main { flex: 999 1 560px; min-width: 0; }
.tpc-my__aside { flex: 1 1 320px; min-width: 0; }
.tpc-my__list { background: #fff; border: 1px solid #e3e8ec; border-radius: 18px; overflow: hidden; list-style: none; margin: 0; padding: 0; }
.tpc-my__list li + li { border-top: 1px solid #edf0f3; }
.tpc-my__row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; text-decoration: none !important; color: #1c2a35 !important; }
a.tpc-my__row:hover { background: #f8fafb; }
.tpc-my__row strong { display: block; font-size: 16px; }
.tpc-my__row span.s { color: #5b6670; font-size: 14px; }
.tpc-my__logo { width: 48px; height: 48px; border-radius: 12px; border: 1px solid #e3e8ec; object-fit: contain; background: #fff; flex: none; }
.tpc-my__mono { width: 48px; height: 48px; border-radius: 12px; background: #e8eef2; color: #223f52; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.tpc-my__free { background: #fff; border: 1px solid #e3e8ec; border-radius: 18px; overflow: hidden; margin-top: 24px; }
.tpc-my__free img { display: block; width: 100%; height: 150px; object-fit: cover; }
.tpc-my__free div { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.tpc-my__free h3 { margin: 0; font-size: 18px; font-weight: 800; }
.tpc-my__free p { margin: 0; color: #4a5863; }
.tpc-my__empty { background: #fff; border: 1px dashed #c9d3da; border-radius: 18px; padding: 22px 24px; color: #4a5863; }

/* Taking part in a client's assessment: the tool's banner */
.tpc-take { display: flex; flex-wrap: wrap; overflow: hidden; border-radius: 22px; background: var(--acc, #13766d); margin-bottom: 24px; }
.tpc-take__text { flex: 1 1 440px; padding: 44px 44px 40px; color: #fff; display: flex; flex-direction: column; gap: 14px; }
.tpc-take__kind { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.88); }
.tpc-take__kind .tpi-sa-ico { width: 22px; height: 22px; }
.tpc-take__text h2 { margin: 0; font-size: 38px; line-height: 1.12; font-weight: 800; color: #fff !important; }
.tpc-take__text p { margin: 0; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.92); max-width: 32em; }
.tpc-take__img { flex: 1 1 320px; min-height: 240px; position: relative; }
.tpc-take__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tpi-sa-hero[hidden] { display: none; }
.tpia-con .tpi-sa-wrap h2 { font-weight: 800; }
.tpia-con .tpi-sa-wrap h3 { font-weight: 700; }
.tpia-con .tpc-head > .tpi-sa-small { display: none; }

/* 3.14.2: standard questions editor, compact */
.tpm-stds { padding: 0 !important; }
.tpm-stds > summary { list-style: none; cursor: pointer; padding: 16px 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.tpm-stds > summary::-webkit-details-marker, .tpm-stdq > summary::-webkit-details-marker { display: none; }
.tpm-stds > summary::before, .tpm-stdq > summary::before { content: ""; width: 0; height: 0; border-left: 7px solid #223f52; border-top: 5px solid transparent; border-bottom: 5px solid transparent; display: inline-block; transition: transform .15s; align-self: center; }
.tpm-stds[open] > summary::before, .tpm-stdq[open] > summary::before { transform: rotate(90deg); }
.tpm-stds__title { font-size: 18px; font-weight: 800; }
.tpm-stds[open] > summary { border-bottom: 1px solid #edf0f3; }
.tpm-stds > :not(summary) { margin-left: 22px; margin-right: 22px; }
.tpm-stds__texts { margin-top: 12px; margin-bottom: 8px; }
.tpm-stdqs { margin-top: 6px; margin-bottom: 12px; }
.tpm-stdq { border-top: 1px solid #edf0f3; padding: 0; }
.tpm-stdq > summary { list-style: none; cursor: pointer; padding: 11px 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tpm-stdq > summary > span:first-of-type { font-weight: 600; flex: 1 1 320px; }
.tpm-stdq > summary code { color: #5b6670; }
.tpm-stdq[open] { padding-bottom: 14px; }
.tpm-stdq[open] > summary { font-weight: 700; }
.tpm-stdq--removed > summary > span:first-of-type { color: #5b6670; text-decoration: line-through; }
.tpm-stdq--optional > summary > span:first-of-type { color: #4a5863; }
.tpm-move { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-end; }
.tpm-move .tpi-sa-field { flex: 1 1 260px; }
.tpm-move p { flex-basis: 100%; margin-top: 0; }
.tpm-addq { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-end; }
.tpm-addq .tpi-sa-field:first-child { flex: 3 1 320px; }
.tpm-addq .tpi-sa-field:last-child { flex: 1 1 200px; }
.tpm-stds.is-off > summary .tpm-stds__title { color: #5b6670; }
.tpm-stds__on { margin-top: 14px; }

/* 3.15.3: AI commentary being written */
.tpi-sa-ai__wait { display: flex; gap: 14px; align-items: center; margin: 14px 0 4px; padding: 14px 18px; border-radius: 14px; background: #eef3fb; border: 1px solid #c9d8f0; color: #1c2a35; font-size: 15px; line-height: 1.45; }
.tpi-sa-ai__wait strong { font-size: 16px; font-weight: 700; }
.tpi-sa-ai__spark { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #2b2c7c; color: #fff; display: inline-flex; align-items: center; justify-content: center; animation: tpiSpark 1.4s ease-in-out infinite; }
.tpi-sa-ai__dots i { font-style: normal; animation: tpiDot 1.2s infinite; opacity: .2; }
.tpi-sa-ai__dots i:nth-child(2) { animation-delay: .2s; }
.tpi-sa-ai__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes tpiSpark { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(43,44,124,.45); } 50% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(43,44,124,0); } }
@keyframes tpiDot { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tpi-sa-ai__spark, .tpi-sa-ai__dots i { animation: none; opacity: 1; } }
