/* Tools section: the /tools/ hub and every tool page. Loaded only on /tools/ URLs (extraCss). */
[hidden] { display: none !important; }

/* ---------- Shared hero (hub and tool pages) ---------- */
.tool-hero, .tools-hero { background: radial-gradient(120% 140% at 85% 0%, #17426e 0%, var(--color-primary) 55%); color: var(--color-white); padding: 2.25rem 0 3rem; }
.tool-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 2.5rem; align-items: center; }
.tool-hero h1, .tools-hero h1 { color: var(--color-white); font-size: clamp(2rem, 4.4vw, 3.1rem); margin: .2rem 0 .8rem; }
.tool-hero .breadcrumbs ol, .tool-hero .breadcrumbs a, .tools-hero .breadcrumbs ol, .tools-hero .breadcrumbs a { color: rgba(255, 255, 255, .82); }
.tool-intro, .tools-lead { font-size: 1.15rem; color: rgba(255, 255, 255, .9); max-width: 40rem; }
.tool-hero-photo { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); aspect-ratio: 16 / 9; }
.tool-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.tool-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 1.1rem; align-items: center; }
.tool-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .6rem 1rem; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); color: var(--color-white); font: 600 .95rem/1 var(--font-body); cursor: pointer; text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.tool-btn:hover { background: rgba(255, 255, 255, .14); border-color: var(--color-accent); }
.tool-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-btn[aria-pressed="true"] svg { fill: var(--color-accent); stroke: var(--color-accent); }
.tool-btn-dark { color: var(--color-primary); border-color: var(--color-secondary); background: var(--color-white); }
.tool-btn-dark:hover { background: var(--color-bg); }
.tool-badges { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.tool-badges li { display: inline-flex; align-items: center; gap: .4rem; }
.tool-badges li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }

/* Returning visitor banner */
.tool-welcome { background: #FFF6E3; border-bottom: 1px solid #F0DDB5; padding: 0; }
.tool-welcome-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
.tool-link-btn { background: none; border: 0; padding: .4rem 0; min-height: 44px; color: var(--color-secondary); font: 600 1rem var(--font-body); text-decoration: underline; cursor: pointer; }

/* Quick facts */
.tool-facts-band { padding: 0; background: var(--color-surface); }
.tool-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; padding: 1.4rem 0; }
.tool-facts li { display: flex; flex-direction: column; gap: .15rem; padding-left: 1rem; border-left: 3px solid var(--color-accent); }
.tool-fact-num { font: 600 1.6rem/1.1 var(--font-heading); color: var(--color-primary); }
.tool-fact-label { font-size: .95rem; color: var(--color-muted); }

/* ---------- Body building blocks (used inside each tool's content) ---------- */
.tool-section { padding: 3.5rem 0; }
.tool-section.alt { background: var(--color-surface); }
.tool-section.dark { background: var(--color-primary); color: var(--color-white); }
.tool-section.dark h2, .tool-section.dark h3 { color: var(--color-white); }
.tool-section-head { max-width: 46rem; margin-bottom: 1.75rem; }
.tool-section-head p { color: var(--color-muted); font-size: 1.08rem; }
.tool-section.dark .tool-section-head p { color: rgba(255, 255, 255, .85); }
.tool-section p + p { margin-top: .8rem; }
.tool-section a:not([class]) { color: var(--color-secondary); }

.tool-panel { background: var(--color-white); border: 1px solid var(--color-surface); border-radius: 14px; box-shadow: 0 14px 40px rgba(10, 46, 82, .09); padding: clamp(1.25rem, 3vw, 2rem); }
.tool-panel + .tool-panel { margin-top: 1.5rem; }
.tool-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.tool-grid-2-wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.tool-step-label { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent-text); margin-bottom: .75rem; }
.tool-step-label b { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--color-accent); color: var(--color-primary); font-size: .85rem; }

/* Forms */
.tool-form { display: grid; gap: 1rem; }
.tool-form fieldset { border: 0; display: grid; gap: 1rem; }
.tool-form legend { font: 600 1.15rem var(--font-heading); color: var(--color-primary); margin-bottom: .5rem; }
.field { display: grid; gap: .35rem; }
.field label, .field .field-label { font-weight: 600; color: var(--color-text); }
.field-hint { font-size: .9rem; color: var(--color-muted); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.tool-form input[type="text"], .tool-form input[type="url"], .tool-form input[type="tel"], .tool-form input[type="number"], .tool-form input[type="email"], .tool-form input[type="time"], .tool-form input[type="date"], .tool-form select, .tool-form textarea,
.tool-input { width: 100%; min-height: 46px; padding: .65rem .8rem; border: 1px solid #CDBFA6; border-radius: var(--radius); background: #FFFDF8; font: 1rem/1.4 var(--font-body); color: var(--color-text); transition: border-color .2s ease, box-shadow .2s ease; }
.tool-form textarea, textarea.tool-input { min-height: 140px; resize: vertical; }
.tool-form input:focus, .tool-form select:focus, .tool-form textarea:focus, .tool-input:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(46, 96, 136, .2); }
.tool-form input[type="range"] { width: 100%; accent-color: var(--color-accent); }
.check-row { display: flex; align-items: flex-start; gap: .6rem; min-height: 44px; padding: .35rem 0; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--color-secondary); flex: none; }
.char-count { font-size: .88rem; color: var(--color-muted); text-align: right; }
.char-count.is-warn { color: #9A5B00; font-weight: 600; }
.char-count.is-bad { color: #A12B2B; font-weight: 600; }

/* Segmented choice (radio pills) */
.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 1px solid #CDBFA6; border-radius: 999px; background: #FFFDF8; font-weight: 600; cursor: pointer; transition: all .2s ease; }
.seg input:checked + span { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.seg input:focus-visible + span { outline: 3px solid var(--color-secondary); outline-offset: 2px; }

/* Buttons inside tools */
.tool-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .65rem 1.1rem; border-radius: var(--radius); border: 1.5px solid var(--color-secondary); background: var(--color-white); color: var(--color-secondary); font: 600 .97rem var(--font-body); cursor: pointer; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.btn-secondary:hover { background: var(--color-secondary); color: var(--color-white); }
button.btn-primary { border: 0; font: 600 1rem var(--font-body); cursor: pointer; min-height: 44px; }

/* Results */
.tool-result { background: #F6F9FC; border: 1px solid #D5E2EE; border-left: 5px solid var(--color-secondary); border-radius: 10px; padding: 1.2rem 1.3rem; }
.tool-result.is-ok { background: #F1F8F2; border-color: #CBE5CF; border-left-color: #2F7D3A; }
.tool-result.is-warn { background: #FFF8EA; border-color: #F1DDB0; border-left-color: #C08829; }
.tool-result.is-bad { background: #FDF2F2; border-color: #F0CACA; border-left-color: #A12B2B; }
.tool-result h3 { margin-bottom: .4rem; }
.tool-result-empty { color: var(--color-muted); font-style: italic; }
.tool-output { position: relative; background: #0F2238; color: #E8EEF5; border-radius: 10px; padding: 1rem 1.1rem; font: .92rem/1.55 Consolas, "Courier New", monospace; white-space: pre-wrap; word-break: break-word; max-height: 460px; overflow: auto; }
.tool-output-plain { background: #FFFDF8; color: var(--color-text); border: 1px solid #E3D7C2; font-family: var(--font-body); font-size: 1rem; }
.copy-btn.is-done { background: #2F7D3A; border-color: #2F7D3A; color: var(--color-white); }

/* Stat tiles and meters */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat-tile { background: var(--color-white); border: 1px solid var(--color-surface); border-radius: 12px; padding: 1rem 1.1rem; box-shadow: 0 4px 14px rgba(10, 46, 82, .05); }
.stat-tile .stat-num { display: block; font: 600 clamp(1.5rem, 3vw, 2.1rem)/1.1 var(--font-heading); color: var(--color-primary); }
.stat-tile .stat-label { display: block; font-size: .92rem; color: var(--color-muted); margin-top: .25rem; }
.stat-tile.is-feature { background: var(--color-primary); border-color: var(--color-primary); }
.stat-tile.is-feature .stat-num { color: var(--color-accent); }
.stat-tile.is-feature .stat-label { color: rgba(255, 255, 255, .85); }
.meter { height: 10px; background: #E9E0D0; border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; width: 0; background: var(--color-secondary); border-radius: 999px; transition: width .35s ease, background-color .35s ease; }
.meter.is-ok > span { background: #2F7D3A; } .meter.is-warn > span { background: #C08829; } .meter.is-bad > span { background: #A12B2B; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; font-size: .82rem; font-weight: 700; background: #E9EEF3; color: var(--color-primary); }
.chip.is-ok { background: #DFF0E1; color: #1F5E29; } .chip.is-warn { background: #FBEBC8; color: #7A4A00; } .chip.is-bad { background: #F7DADA; color: #8A1F1F; }

/* Photo split, cards, steps, callouts, tables */
.tool-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.tool-split.flip > figure { order: 2; }
.tool-split figure { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 36px rgba(10, 46, 82, .14); aspect-ratio: 4 / 3; }
.tool-split figure img { width: 100%; height: 100%; object-fit: cover; }
.tool-split ul:not([class]), .tool-section ul.bullets { list-style: none; display: grid; gap: .55rem; margin-top: 1rem; }
.tool-split ul:not([class]) li, .tool-section ul.bullets li { position: relative; padding-left: 1.6rem; }
.tool-split ul:not([class]) li::before, .tool-section ul.bullets li::before { content: ""; position: absolute; left: 0; top: .55rem; width: .7rem; height: .7rem; border-radius: 3px; background: var(--color-accent); transform: rotate(45deg); }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.info-card { background: var(--color-white); border: 1px solid var(--color-surface); border-top: 4px solid var(--color-accent); border-radius: 12px; padding: 1.3rem 1.25rem; box-shadow: 0 6px 18px rgba(10, 46, 82, .06); }
.tool-section.alt .info-card { border-color: #E6DAC5; border-top-color: var(--color-accent); }
.info-card h3 { font-size: 1.15rem; }
.info-card p { color: var(--color-muted); font-size: .98rem; }
.info-card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #EAF1F7; color: var(--color-secondary); margin-bottom: .75rem; }
.info-card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 1rem; }
.steps > li { counter-increment: step; position: relative; padding: 1rem 1.1rem 1rem 4rem; background: var(--color-white); border: 1px solid var(--color-surface); border-radius: 12px; }
.steps > li::before { content: counter(step); position: absolute; left: 1rem; top: 1rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--color-primary); color: var(--color-accent); font: 600 1.05rem var(--font-heading); }
.steps > li strong { display: block; color: var(--color-primary); margin-bottom: .15rem; }
.callout { border-radius: 12px; padding: 1.1rem 1.25rem 1.1rem 3.25rem; position: relative; background: #EEF4F9; border: 1px solid #D5E2EE; }
.callout::before { content: "i"; position: absolute; left: 1rem; top: 1.05rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--color-secondary); color: var(--color-white); font: 700 .95rem/1 Georgia, serif; }
.callout.is-tip { background: #FFF6E3; border-color: #F0DDB5; } .callout.is-tip::before { content: "★"; background: var(--color-accent); color: var(--color-primary); font-size: .85rem; }
.callout.is-warn { background: #FDF2F2; border-color: #F0CACA; } .callout.is-warn::before { content: "!"; background: #A12B2B; }
.callout + .callout, * + .callout { margin-top: 1rem; }
.tool-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--color-surface); background: var(--color-white); }
.tool-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.tool-table th, .tool-table td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid #EFE6D6; vertical-align: top; }
.tool-table thead th { background: var(--color-primary); color: var(--color-white); font-weight: 600; }
.tool-table tbody tr:nth-child(even) { background: #FCF9F3; }
.tool-table tr.is-current { background: #FFF1D2 !important; box-shadow: inset 4px 0 0 var(--color-accent); }

/* Checklists with saved progress */
.checklist { list-style: none; display: grid; gap: .5rem; }
.checklist li { background: var(--color-white); border: 1px solid var(--color-surface); border-radius: 10px; transition: background-color .2s ease, border-color .2s ease; }
.checklist li.is-done { background: #F1F8F2; border-color: #CBE5CF; }
.checklist label { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1rem; cursor: pointer; min-height: 44px; }
.checklist input { width: 20px; height: 20px; margin-top: .2rem; accent-color: #2F7D3A; flex: none; }
.checklist-progress { position: relative; display: block; font-weight: 600; color: var(--color-primary); margin-bottom: .75rem; padding-top: 14px; }
.checklist-progress span { position: absolute; top: 0; left: 0; height: 8px; border-radius: 999px; background: #2F7D3A; transition: width .3s ease; }
.checklist-progress::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; border-radius: 999px; background: #E3EBE4; }

/* Month highlight */
.is-current .now-badge, .now-badge { display: inline-flex; padding: .1rem .55rem; border-radius: 999px; background: var(--color-accent); color: var(--color-primary); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.month-card { background: var(--color-white); border: 1px solid var(--color-surface); border-radius: 12px; padding: 1.1rem 1.2rem; }
.month-card.is-current { border: 2px solid var(--color-accent); box-shadow: 0 10px 26px rgba(192, 136, 41, .2); }

/* ---------- Habit band ---------- */
.tool-habit { background: linear-gradient(135deg, #FFF6E3, #F7EBD3); padding: 2.75rem 0; border-top: 1px solid #F0DDB5; border-bottom: 1px solid #F0DDB5; }
.tool-habit-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; }
.tool-habit-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--color-primary); color: var(--color-accent); }
.tool-habit-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool-habit h2 { font-size: 1.5rem; margin-bottom: .35rem; }
.tool-habit-tip { font-size: .95rem; color: var(--color-muted); margin-top: .4rem; }
kbd { display: inline-block; padding: .05rem .4rem; border: 1px solid #CDBFA6; border-bottom-width: 2px; border-radius: 5px; background: var(--color-white); font: 600 .85rem var(--font-body); }
.tool-habit-actions { display: flex; flex-direction: column; gap: .6rem; }

/* ---------- FAQ ---------- */
.tool-faq { background: var(--color-bg); }
.tool-faq details { background: var(--color-white); border: 1px solid var(--color-surface); border-radius: 12px; margin-bottom: .75rem; }
.tool-faq summary { padding: 1rem 3rem 1rem 1.2rem; font-weight: 600; color: var(--color-primary); cursor: pointer; list-style: none; position: relative; min-height: 44px; }
.tool-faq summary::-webkit-details-marker { display: none; }
.tool-faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: .75rem; font: 400 1.5rem/1 var(--font-body); color: var(--color-accent-text); }
.tool-faq details[open] summary::after { content: "–"; }
.tool-faq-a { padding: 0 1.2rem 1.1rem; color: var(--color-text); }
.tool-faq-a p + p { margin-top: .6rem; }
.tool-faq-a a { color: var(--color-secondary); }

/* ---------- More tools, related, sources ---------- */
.tool-more { background: var(--color-surface); }
.tool-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.tool-card { position: relative; display: flex; flex-direction: column; background: var(--color-white); border: 1px solid #E6DAC5; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 6px 18px rgba(10, 46, 82, .06); transition: transform .25s ease, box-shadow .25s ease; }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(10, 46, 82, .15); }
.tool-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-surface); }
.tool-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tool-card:hover .tool-card-img img { transform: scale(1.05); }
.tool-card-body { display: flex; flex-direction: column; gap: .4rem; padding: 1.05rem 1.2rem 1.25rem; flex: 1; }
.tool-card-type { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--color-accent-text); }
.tool-card-title { font: 600 1.22rem/1.25 var(--font-heading); color: var(--color-primary); }
.tool-card-desc { font-size: .96rem; color: var(--color-muted); }
.tool-card-habit { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .6rem; font-size: .86rem; font-weight: 600; color: var(--color-secondary); }
.tool-card-habit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool-card-open { font-weight: 600; color: var(--color-secondary); padding-top: .35rem; }
.tool-card:hover .tool-card-open { color: var(--color-primary); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 3px; }
.tool-card-star { position: absolute; top: .7rem; right: .7rem; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: 0 3px 10px rgba(0, 0, 0, .18); cursor: pointer; color: var(--color-primary); }
.tool-card-star svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.tool-card-star[aria-pressed="true"] svg { fill: var(--color-accent); stroke: var(--color-accent-text); }
.tool-related-heading { margin-top: 2.5rem; }
.tool-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.tool-related a { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: .9rem 1.1rem; background: var(--color-white); border: 1px solid #E6DAC5; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--color-primary); transition: border-color .2s ease; }
.tool-related a:hover { border-color: var(--color-accent); }
.tool-related a span { font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--color-accent-text); }
.tool-all { margin-top: 1.5rem; }
.tool-sources { background: var(--color-bg); }
.tool-sources h3 { margin-top: 1.5rem; }
.tool-sources ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .35rem; }
.tool-sources a { color: var(--color-secondary); }
.tool-method p + p { margin-top: .7rem; }
.tool-privacy { margin-top: 1.5rem; padding: .9rem 1.1rem; background: #EEF4F9; border-radius: 10px; font-size: .97rem; }
.tool-disclaimer { margin-top: .9rem; font-size: .9rem; color: var(--color-muted); }

/* ---------- Hub ---------- */
.tools-hero { padding: 2.5rem 0 3.25rem; }
.tools-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.5rem; align-items: center; }
.tools-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 1.4rem 0; color: rgba(255, 255, 255, .82); }
.tools-stats strong { color: var(--color-accent); font: 600 1.4rem/1 var(--font-heading); margin-right: .25rem; }
.tools-jump { display: flex; flex-wrap: wrap; gap: .6rem; }
.tools-jump a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .95rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; color: var(--color-white); text-decoration: none; font-weight: 600; transition: background-color .2s ease, border-color .2s ease; }
.tools-jump a:hover { background: rgba(255, 255, 255, .1); border-color: var(--color-accent); }
.tools-jump span { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--color-accent); color: var(--color-primary); font-size: .85rem; }
.my-tools { background: #FFF6E3; border-bottom: 1px solid #F0DDB5; padding: 2rem 0; }
.my-tools-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-bottom: 1rem; }
.my-tools-head h2 { font-size: 1.5rem; margin: 0; }
.my-tools-list { display: flex; flex-wrap: wrap; gap: .75rem; }
.my-tools-list a { display: inline-flex; align-items: center; gap: .65rem; min-height: 52px; padding: .4rem 1rem .4rem .4rem; background: var(--color-white); border: 1px solid #E6DAC5; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--color-primary); box-shadow: 0 3px 10px rgba(10, 46, 82, .06); }
.my-tools-list a:hover { border-color: var(--color-accent); }
.my-tools-list img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.my-tools-list small { display: block; font-weight: 400; font-size: .8rem; color: var(--color-muted); }
.tools-group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem 1.5rem; margin-bottom: 1.6rem; }
.tools-group-head p { color: var(--color-muted); max-width: 44rem; }
.tools-group:nth-of-type(even) { background: var(--color-surface); }
.tools-why { background: var(--color-primary); color: var(--color-white); }
.tools-why h2, .tools-why h3 { color: var(--color-white); }
.tools-why .info-card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); border-top-color: var(--color-accent); box-shadow: none; }
.tools-why .info-card p { color: rgba(255, 255, 255, .85); }
.tools-why .info-card-icon { background: rgba(255, 255, 255, .1); color: var(--color-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tool-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tool-hero-grid, .tools-hero-grid, .tool-grid-2, .tool-grid-2-wide, .tool-split { grid-template-columns: minmax(0, 1fr); }
  .tool-split.flip > figure { order: 0; }
  .tool-hero-photo { order: -1; }
  .tool-habit-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tool-card-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-section { padding: 2.5rem 0; }
  .tool-actions .btn-primary { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-card, .tool-card-img img, .meter > span, .checklist-progress span { transition: none; }
  .tool-card:hover, .tool-card:hover .tool-card-img img { transform: none; }
}

/* ---------- Print: keep the working tool and its result ---------- */
@media print {
  .utility-bar, .site-nav, .site-footer, .no-print, .tool-hero-photo, .tool-split figure, .tool-more, .tool-faq, .cta-strip, .tool-facts-band { display: none !important; }
  .tool-hero { background: none; color: #000; padding: 0 0 1rem; }
  .tool-hero h1, .tool-intro { color: #000; }
  .tool-badges { color: #333; }
  .tool-section, .tool-section.alt, .tool-section.dark { background: none; color: #000; padding: 1rem 0; }
  .tool-panel { box-shadow: none; border: 1px solid #999; }
  .tool-output { background: #fff; color: #000; border: 1px solid #999; max-height: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* Hub cards: the title link covers the whole card; the star sits above it. */
.tool-card a.tool-card-title { text-decoration: none; }
.tool-card a.tool-card-title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tool-card a.tool-card-title:focus-visible { outline: none; }
.tool-card:focus-within { outline: 3px solid var(--color-secondary); outline-offset: 3px; }

/* ---------- Hiring checklists (vendor-checklist.njk) ---------- */
.vc-bar { margin-bottom: 1.5rem; padding: 1rem 1.25rem; }
.vc-vendors { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.vc-tab { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem .9rem; border: 1px solid #CDBFA6; border-radius: 999px; background: #FFFDF8; font: 600 .95rem var(--font-body); color: var(--color-primary); cursor: pointer; }
.vc-tab span { display: inline-grid; place-items: center; min-width: 2rem; height: 1.6rem; padding: 0 .35rem; border-radius: 999px; background: var(--color-surface); font-size: .82rem; }
.vc-tab[aria-selected="true"] { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.vc-tab[aria-selected="true"] span { background: var(--color-accent); color: var(--color-primary); }
.vc-bar-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; }
.vc-bar-row .tool-buttons { margin-top: 0; }
.vc-name-field { flex: 1 1 240px; max-width: 360px; }
.vc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.75rem; align-items: start; }
.vc-score { position: sticky; top: 100px; }
.vc-score-vendor { font-weight: 700; color: var(--color-primary); }
.vc-score-num { font: 600 3rem/1 var(--font-heading); color: var(--color-primary); margin: .35rem 0 .6rem; }
.vc-score-num small { font-size: 1.1rem; color: var(--color-muted); }
.vc-score-progress { font-size: .9rem; color: var(--color-muted); margin: .4rem 0 .8rem; }
.vc-score .tool-result { padding: .8rem .9rem; font-size: .95rem; }
.vc-tier-scores { display: grid; gap: .5rem; margin-top: 1rem; font-size: .9rem; }
.vc-tier-scores li { display: grid; grid-template-columns: 1fr 70px 3rem; gap: .5rem; align-items: center; }
.vc-tier-scores b { text-align: right; color: var(--color-primary); }
.vc-tier + .vc-tier { margin-top: 2.25rem; }
.vc-tier-head { margin-bottom: 1rem; }
.vc-tier-head h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.45rem; }
.vc-tier-head p { color: var(--color-muted); }
.vc-tier-dot { width: 14px; height: 14px; border-radius: 50%; background: #A12B2B; box-shadow: 0 0 0 4px rgba(161, 43, 43, .15); }
.vc-tier-should .vc-tier-dot { background: var(--color-accent); box-shadow: 0 0 0 4px rgba(192, 136, 41, .18); }
.vc-tier-nice .vc-tier-dot { background: var(--color-secondary); box-shadow: 0 0 0 4px rgba(46, 96, 136, .15); }
.vc-list { list-style: none; display: grid; gap: .75rem; counter-reset: vc; }
.vc-item { counter-increment: vc; display: grid; gap: .8rem; padding: 1.1rem 1.2rem 1.1rem 3.6rem; position: relative; background: var(--color-white); border: 1px solid var(--color-surface); border-left: 4px solid #E3D7C2; border-radius: 12px; transition: border-color .2s ease, background-color .2s ease; }
.vc-item::before { content: counter(vc); position: absolute; left: 1rem; top: 1.05rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--color-surface); color: var(--color-primary); font: 600 .95rem var(--font-heading); }
.vc-item[data-state="yes"] { border-left-color: #2F7D3A; background: #F7FBF7; }
.vc-item[data-state="partly"] { border-left-color: #C08829; }
.vc-item[data-state="no"] { border-left-color: #A12B2B; background: #FFF8F8; }
.vc-item[data-state="unsure"] { border-left-color: #8A96A3; }
.vc-item-title { font: 600 1.12rem/1.3 var(--font-heading); color: var(--color-primary); }
.vc-item-why { color: var(--color-text); margin-top: .25rem; }
.vc-item-ask { font-size: .95rem; color: var(--color-muted); margin-top: .4rem; }
.vc-item-ask strong { color: var(--color-accent-text); }
.vc-answer span { min-height: 40px; padding: .35rem .85rem; font-size: .92rem; }
.vc-answer input[value="yes"]:checked + span { background: #2F7D3A; border-color: #2F7D3A; }
.vc-answer input[value="partly"]:checked + span { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-primary); }
.vc-answer input[value="no"]:checked + span { background: #A12B2B; border-color: #A12B2B; }
.vc-answer input[value="unsure"]:checked + span { background: #5E6B78; border-color: #5E6B78; }
@media (max-width: 900px) {
  .vc-layout { grid-template-columns: minmax(0, 1fr); }
  .vc-score { position: static; order: -1; }
}
@media (max-width: 480px) { .vc-item { padding-left: 1.1rem; } .vc-item::before { position: static; margin-bottom: -.3rem; } }
@media print { .vc-score, [data-vc-results] .tool-buttons { display: none !important; } .vc-layout { display: block; } }
.tool-page code { word-break: break-all; overflow-wrap: anywhere; }
