/*
 * Texting compliance kit (/tools/texting-compliance-kit/, inc/tools/texting-compliance-kit.php). Loaded after
 * tools.css on that page only; reuses its form, tabs (.lb-tabs), text boxes (.lb-text) and chips (.lb-chips).
 * Type: 13 / 15 / 17px as on the other tool pages. Light surfaces only.
 */

/* ---------- Sending window (top of the results) ---------- */
.tc-win { margin: .5rem 0 0; padding: 1rem 1.1rem; border: 1px solid var(--blue-100); border-radius: var(--r); background: var(--blue-50); }
.tc-win__main { display: grid; gap: .1rem; }
.tc-win__k { font-size: .8125rem; font-weight: 650; color: var(--text); }
.tc-win__v { font-family: var(--font-head); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.tc-win__s { font-size: .875rem; color: var(--muted); }
.tc-win__facts { display: grid; gap: .5rem; margin: .85rem 0 0; padding-top: .75rem; border-top: 1px dashed #c9d6f0; }
.tc-win__facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .75rem; }
.tc-win__facts dt { font-size: .8125rem; font-weight: 700; color: var(--muted); }
.tc-win__facts dd { margin: 0; font-size: .9375rem; font-weight: 650; color: var(--ink); }
.tc-win__note { margin: .7rem 0 0; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 29.99rem) { .tc-win__facts div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Tabs: six of them, so they wrap into a grid on smaller screens ---------- */
.tc-tabs { flex-wrap: wrap; overflow: visible; }
.tc-tabs button { flex: 1 1 30%; padding-inline: .5rem; }
.tc-tabs button[aria-selected="true"] { font-weight: 750; box-shadow: inset 0 -2px 0 var(--blue-600), 0 1px 3px rgba(11, 26, 51, .12); }
.tc-mine-link { margin: 1rem 0 0; font-size: .875rem; color: var(--muted); }
.tc-mine-link a { font-weight: 700; color: var(--blue-700); }
.tc-copy-main { min-height: 2.75rem; padding: .55rem 1.05rem; font-size: .9375rem; }
.tc-copy-main .icon { width: 1rem; height: 1rem; }
.tc-fine { margin: 1.1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .8125rem; line-height: 1.55; color: var(--muted); }
.tc-fine a { color: var(--blue-700); }
.tc-jump { margin: -.4rem 0 0; }
.tc-jump a { display: inline-flex; align-items: center; gap: .4rem; font-size: .9375rem; font-weight: 700; color: var(--blue-700); }
.tc-jump .icon { width: 1rem; height: 1rem; transform: rotate(90deg); }
@media (min-width: 64rem) { .tc-jump { display: none; } }
#tc-result { scroll-margin-top: 5.5rem; }
/* Choice chips: "You are" as a 2 × 2 grid, the kinds of text one per row. */
.tc-app .lb-chips:has(input[name="role"]) .lb-chips__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tc-app .lb-chips:has(input[name="purposes"]) .lb-chips__list { display: grid; grid-template-columns: minmax(0, 1fr); }
.tc-app .lb-chips:has(input[name="role"]) span, .tc-app .lb-chips:has(input[name="purposes"]) span { width: 100%; box-sizing: border-box; }
.tc-out.is-empty .lb-text, .tc-out.is-empty .tc-preview, .tc-out.is-empty .tc-bubble { opacity: .35; }
.tc-gap { margin-top: .5rem; }

/* Form preview: how the checkbox looks on a real form. */
.tc-preview { display: grid; gap: .6rem; margin: 0 0 1rem; padding: 1rem; border: 1px dashed #cfd8e6; border-radius: var(--r-sm); background: var(--white); }
.tc-box { display: grid; grid-template-columns: 1.15rem minmax(0, 1fr); gap: .6rem; align-items: start; font-size: .8125rem; line-height: 1.5; color: var(--text); cursor: pointer; }
.tc-box input { width: 1.1rem; height: 1.1rem; margin: .1rem 0 0; accent-color: var(--blue-600); }
.tc-box a { color: var(--blue-700); font-weight: 650; }
.tc-details { margin-top: .75rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.tc-details summary { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.5rem; font-size: .9375rem; font-weight: 650; color: var(--blue-700); cursor: pointer; }
.tc-details summary:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; border-radius: 6px; }
.tc-details[open] summary { margin-bottom: .5rem; }
.tc-details .tl-hint { margin: .5rem 0 0; }
.tc-code { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; line-height: 1.55; }
.lb-bar code { font-size: .78rem; }

/* What to save with each sign-up. */
.tc-rec { margin-top: 1.1rem; padding: .9rem 1rem; border-radius: var(--r-sm); background: var(--surface); }
.tc-rec__t { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-size: .8125rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tc-rec__t .icon { width: 1rem; height: 1rem; color: var(--blue-600); }
.tc-rec ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 1rem; margin: 0; padding: 0; list-style: none; }
.tc-rec li { display: flex; gap: .4rem; align-items: flex-start; font-size: .875rem; color: var(--text); }
.tc-rec li .icon { flex: none; width: .95rem; height: .95rem; margin-top: .15rem; color: var(--ok); }
@media (max-width: 29.99rem) { .tc-rec ul { grid-template-columns: 1fr; } }

/* Replies as text bubbles. */
.tc-msg + .tc-msg { margin-top: 1rem; }
.tc-bubble { max-width: 34rem; margin: 0; padding: .7rem .95rem; border-radius: 18px 18px 18px 6px; background: var(--surface); border: 1px solid var(--line); font-size: .9375rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }

/* Check your wording. */
.tc-res__score { margin: 1rem 0 .5rem; font-size: .9375rem; color: var(--text); }
.tc-res__score strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--ink); }
.tc-res { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.tc-res__item { display: grid; grid-template-columns: .75rem minmax(0, 1fr); gap: .65rem; align-items: start; padding: .55rem .75rem; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); font-size: .9375rem; }
.tc-res__item strong { font-weight: 650; color: var(--ink); }
.tc-res__item small { display: block; margin-top: .1rem; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.tc-res__dot { width: .65rem; height: .65rem; margin-top: .4rem; border-radius: 50%; background: #b5c1d3; }
.tc-res__item.is-ok .tc-res__dot { background: var(--ok); }
.tc-res__item.is-miss .tc-res__dot { background: #d99a00; }
.tc-res__item.is-bad { border-color: #f3c4c6; background: var(--bad-bg); }
.tc-res__item.is-bad .tc-res__dot { background: var(--bad); }

/* ---------- Sections under the tool ---------- */
.tc-head { max-width: 46rem; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.tc-head p:not(.eyebrow) { margin: .5rem 0 0; font-size: 1.0625rem; color: var(--text); }

/* Checklist with a meter. */
.tc-check { display: grid; gap: 1.25rem; }
.tc-meter { display: none; }
.tc-check.is-live .tc-meter { display: grid; gap: .5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.tc-meter__n { margin: 0; font-size: .9375rem; color: var(--muted); }
.tc-meter__n strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); }
.tc-meter__bar { height: .5rem; border-radius: 99px; background: #e3eaf5; overflow: hidden; }
.tc-meter__bar span { display: block; width: var(--p, 0%); height: 100%; border-radius: inherit; background: var(--blue-600); transition: width .35s var(--ease); }
.tc-check.is-done .tc-meter__bar span { background: var(--ok); }
.tc-meter__left { margin: 0; font-size: .9375rem; color: var(--text); }
.tc-meter__left strong { font-weight: 700; color: var(--ink); }
.tc-meter__left span { color: var(--muted); }
.tc-item__write { display: inline-block; margin: -.5rem 0 .3rem 3rem; font-size: .8125rem; font-weight: 700; color: var(--blue-700); }
.tc-check__group { display: grid; gap: .35rem; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); min-width: 0; }
.tc-check__group legend { float: left; width: 100%; margin: 0 0 .35rem; padding: 0 .3rem; font-size: .8125rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tc-tick { position: relative; display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .75rem; align-items: start; padding: .65rem .7rem; border: 1px solid transparent; border-radius: var(--r); cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.tc-tick:hover { background: var(--surface); }
.tc-tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tc-tick__box { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-top: .05rem; border: 2px solid #b5c1d3; border-radius: 6px; background: var(--white); color: transparent; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.tc-tick__box .icon { width: 1rem; height: 1rem; }
.tc-tick input:checked + .tc-tick__box { border-color: var(--ok); background: var(--ok); color: var(--white); }
.tc-tick:has(input:checked) { border-color: #cdeedb; background: var(--ok-bg); }
.tc-tick input:focus-visible + .tc-tick__box { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.tc-tick strong { display: block; font-size: .9375rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.tc-tick small { display: block; margin-top: .1rem; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
@media (min-width: 64rem) {
	.tc-check { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.tc-check__group:first-of-type { grid-row: span 2; }
	.tc-check.is-live .tc-meter { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 1.25rem; }
	.tc-meter__left { grid-column: 1 / -1; }
}

/* State rules. */
.tc-states__none { margin: 0 0 1rem; padding: 1rem 1.1rem; border: 1px dashed #cfd8e6; border-radius: var(--r); background: var(--white); color: var(--text); }
.tc-states__grid { display: grid; gap: 1rem; }
.tc-state[hidden] { display: none; }
.tc-state { display: flex; flex-direction: column; gap: .6rem; padding: 1.2rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.tc-state__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .75rem; }
.tc-state h3 { margin: 0; font-size: 1.2rem; }
.tc-tag { padding: .2rem .6rem; border-radius: 99px; font-size: .75rem; font-weight: 700; }
.tc-tag--statute { background: var(--ok-bg); color: #166534; }
.tc-tag--summary { background: var(--blue-50); color: var(--blue-700); }
.tc-tag--pending { background: var(--sun-50); color: #8a5a00; }
.tc-state__law { margin: 0; font-size: .875rem; color: var(--muted); }
.tc-state__hours { display: flex; gap: .5rem; align-items: flex-start; margin: 0; padding: .55rem .75rem; border-radius: var(--r-sm); background: var(--blue-50); font-size: .9375rem; font-weight: 650; color: var(--ink); }
.tc-state__hours .icon { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .15rem; color: var(--blue-600); }
.tc-state__notes { display: grid; gap: .45rem; margin: 0; padding-left: 1.1rem; font-size: .9375rem; line-height: 1.55; color: var(--text); }
.tc-state__agent { margin: 0; padding: .55rem .75rem; border-left: 3px solid var(--blue-100); font-size: .875rem; line-height: 1.5; color: var(--text); }
.tc-state__src { margin: auto 0 0; padding-top: .3rem; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.tc-state__src a { color: var(--blue-700); }
@media (min-width: 48rem) { .tc-states__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Cold texting, for investors. */
.tc-cold__grid { display: grid; gap: 1.5rem; }
.tc-cold__main > p:not(.eyebrow) { max-width: 44rem; margin: .5rem 0 1.25rem; font-size: 1.0625rem; color: var(--text); }
.tc-points { list-style: none; display: grid; gap: .75rem; margin: 0; padding: 0; }
.tc-points li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .9rem; align-items: start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); font-size: .9375rem; line-height: 1.6; color: var(--text); }
.tc-points__n { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--blue-50); font-family: var(--font-head); font-size: 1rem; font-weight: 800; color: var(--blue-700); }
.tc-points strong { display: block; margin-bottom: .15rem; font-family: var(--font-head); font-size: 1.0625rem; font-weight: 750; color: var(--ink); }
.tc-cold__side { display: grid; gap: 1rem; align-content: start; }
.tc-side { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.tc-side:first-child { border-color: #cdeedb; background: var(--ok-bg); }
.tc-side__t { display: flex; align-items: center; gap: .5rem; margin: 0 0 .4rem; font-family: var(--font-head); font-size: 1.0625rem; font-weight: 750; color: var(--ink); }
.tc-side__t .icon { width: 1.15rem; height: 1.15rem; color: var(--ok); }
.tc-side:not(:first-child) .tc-side__t .icon { color: var(--blue-600); }
.tc-side p:not(.tc-side__t) { margin: 0 0 .9rem; font-size: .9375rem; line-height: 1.6; color: var(--text); }
.tc-side p:last-child { margin-bottom: 0; }
@media (min-width: 64rem) { .tc-cold__grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2.5rem; } .tc-cold__side { position: sticky; top: 6rem; margin-top: 5.5rem; } }

/* Sources. */
.tc-src { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.tc-src__title { margin: .25rem 0 .5rem; }
.tc-src > p:not(.eyebrow) { max-width: 46rem; margin: 0 0 1.1rem; font-size: .9375rem; line-height: 1.6; color: var(--text); }
.tc-src__list { display: grid; gap: .55rem 2rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 64rem) { .tc-src__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tc-src__list a { display: inline-flex; align-items: baseline; gap: .35rem; font-size: .9375rem; color: var(--blue-700); }
.tc-src__list .icon { flex: none; width: .85rem; height: .85rem; transform: translateY(.1rem); }
.tc-sources { padding-top: 0 !important; }
.tc-app .lb-chips .tl-hint { display: block; margin-top: .5rem; line-height: 1.5; }
@media (max-width: 29.99rem) { .tc-app .tl-pair { grid-template-columns: minmax(0, 1fr); } }
.tc-rolehint { margin: -.4rem 0 0; }

@media (prefers-reduced-motion: reduce) {
	.tc-meter__bar span, .tc-tick, .tc-tick__box { transition: none; }
}
@media print {
	.tc-app, .tc-cold__side .btn { display: none !important; }
	.tc-state[hidden] { display: none !important; }
}
