/* ==========================================================================
   Tool page (theme 0.17.0): the page around the kit block (single-tool.php). Loaded only on tool pages, after
   main.css and assets/kit/kit.css (the kit block itself, copied unchanged from the mock-ups).
   From the mock-ups: mega.css (tool head, ready-made strip, disabled pills) and shell.css (All tools strip).
   ========================================================================== */

/* ---------- head: breadcrumb, H1 and lede ---------- */
.tool-head { padding-block: 1.1rem 1.5rem; }
.tool-head h1 { margin-top: .35rem; font-size: clamp(1.6rem, 3.2vw, 2.1rem); line-height: 1.15; text-wrap: balance; }
.tool-head .printable-intro { max-width: 46rem; margin: .6rem 0 0; font-size: 1rem; line-height: 1.6; color: var(--muted); }

/* ---------- the stage takes the tool's tint (the tint-* class on .kit-pad sets --tint) ---------- */
.kit-pad { background-color: var(--tint, var(--tint-teal)); }

/* ---------- pills the tool switches off ---------- */
.version-option__input:disabled { cursor: not-allowed; }
.version-option__input:disabled + .version-option__pill { color: var(--muted); background: transparent; border-style: dashed; border-color: var(--muted); }
.version-option:has(.version-option__input:disabled):hover .version-option__pill { background: transparent; }

/* ---------- page copy (How it works, tips) and the ready-made strip ---------- */
.tool-section { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: clamp(2rem, 4vw, 2.75rem); border-top: 1.5px dashed var(--rule); }
.tool-section h2 { margin: 0; }
.tool-section .prose { max-width: 46rem; margin-top: 1rem; }
.tool-section__line { max-width: 44rem; margin: .5rem 0 1.4rem; font-size: 1.02rem; line-height: 1.55; color: var(--muted); }
.tool-section .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- More free tools ---------- */
.tools-all { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: clamp(2rem, 4vw, 2.75rem); border-top: 1.5px dashed var(--rule); }
.tools-all h2 { margin: 0 0 1.2rem; }
.tools-all__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.tools-all__link {
	display: flex; align-items: center; gap: .6rem; min-height: 48px; height: 100%; padding: .5rem .8rem;
	font-weight: 700; color: var(--ink); text-decoration: none; background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: 2px 2px 0 var(--ink);
}
.tools-all__link::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--tint, var(--paper-2)); border: 1.5px solid var(--ink); border-radius: 3px; }
.tools-all__link:hover, .tools-all__link:focus { color: var(--ink); background: var(--highlight); }
.tools-all__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tools-all__link[aria-current="page"] { color: var(--card); background: var(--ink); box-shadow: 2px 2px 0 var(--accent); }

.tool-page > .license-line { margin-top: 2rem; }

@media (max-width: 899.98px) {
	.single-tool .breadcrumbs { padding-top: 1rem; }
	.tool-head { padding-block: .6rem 1rem; }
	.tool-head .printable-intro { margin-top: .45rem; font-size: .93rem; line-height: 1.5; }
	.tool-section .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- the copy under the tool (theme 0.17.0, owner 5 Oct): one band across the full width.
   "Made for" line on top; How it works (a real sequence: numbered steps on a dashed margin rule, each with a line
   icon) on the left; the persona tips on the right; phones stack them in that order. Both are notebook cards.
   The content markup stays as written (two sections, each an h2 and a .prose list); only the layout is here. */
.tool-copy {
	background-color: transparent; /* the tint-* class only lends --tint to the step numbers */
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 3vw, 2.5rem); align-items: start;
	margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: clamp(2rem, 4vw, 2.75rem); border-top: 1.5px dashed var(--rule);
}
.tool-copy__for { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .6rem; margin: 0; font-size: 1.02rem; color: var(--muted); }
.tool-copy__for b { font-family: var(--font-hand); font-size: 1.45rem; font-weight: 700; line-height: 1; color: var(--ink); }
.tool-copy > section,
.tool-copy > section.mm-ready {
	margin: 0; padding: clamp(1.1rem, 2.5vw, 1.6rem); background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--stamp);
}
.tool-copy > section h2 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; }
.tool-copy .prose { max-width: 70ch; margin-top: 1rem; font-size: 1rem; line-height: 1.6; }
.tool-copy .prose > :first-child { margin-top: 0; }

/* How it works: steps 1-2-3 on a dashed rule, each number a stamped square, the step's name with a line icon. */
.tool-copy .prose ol { position: relative; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.tool-copy .prose ol::before { content: ""; position: absolute; top: 1rem; bottom: 1rem; left: calc(1rem - .75px); border-left: 1.5px dashed var(--rule); }
.tool-copy .prose ol > li { position: relative; margin: 0; padding: 0 0 0 3.1rem; counter-increment: step; }
.tool-copy .prose ol > li + li { margin-top: 1.1rem; }
.tool-copy .prose ol > li::before {
	content: counter(step); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 2rem; height: 2rem;
	font-family: var(--font-mono); font-size: .85rem; font-weight: 600; color: var(--ink); background: var(--tint, var(--highlight-soft));
	border: var(--border); border-radius: var(--radius-sm); box-shadow: 2px 2px 0 var(--ink);
}
.tool-copy .prose ol > li > strong:first-child { display: flex; align-items: center; gap: .45rem; margin-bottom: .2rem; font-size: 1.02rem; color: var(--ink); }
.tool-copy .prose ol > li > strong:first-child::before {
	content: ""; flex: none; width: 20px; height: 20px; background: center / 20px 20px no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1b16' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h4M12 17h8'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='10' cy='17' r='2'/%3E%3C/svg%3E");
}
.tool-copy .prose ol > li:nth-child(2) > strong:first-child::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1b16' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='1.5'/%3E%3Cpath d='M8.5 8h7M8.5 12h7M8.5 16h4'/%3E%3C/svg%3E");
}
.tool-copy .prose ol > li:nth-child(3) > strong:first-child::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1b16' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 19h16'/%3E%3C/svg%3E");
}

/* Tips: one per persona, the persona lead on its own line, rows split by a dashed rule. */
.tool-copy .prose ul { margin: 0; padding: 0; list-style: none; }
.tool-copy .prose ul > li { margin: 0; padding: .75rem 0; border-top: 1px dashed var(--rule); }
.tool-copy .prose ul > li:first-child { padding-top: 0; border-top: 0; }
.tool-copy .prose ul > li:last-child { padding-bottom: 0; }
.tool-copy .prose ul > li > strong:first-child { display: block; margin-bottom: .15rem; color: var(--ink); }

/* Ready-made printables under the band: a compact row. */
.tool-ready .card-grid,
.mm-ready.tool-ready .card-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); max-width: 62rem; }

@media (max-width: 899.98px) {
	.tool-copy { grid-template-columns: minmax(0, 1fr); }
}
