/* Free tools and printables: /resources/, /smp-clinic-checklist/, /smp-cost-planner/, /smp-aftercare-plan/. */

/* Hub */
.res-h { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 0 0 18px; color: var(--ink); }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 56px; }
/* The first card (the assessment, when it is on) leads: dark, two rows tall. */
.res-grid > .res-card:first-child:nth-last-child(5) { grid-row: span 2; background: var(--night, #14100c); border-color: transparent; color: #e9e2d8; justify-content: flex-end; padding: 30px 28px 26px; }
.res-grid > .res-card:first-child:nth-last-child(5) b { color: #fff; font-size: 2rem; }
.res-grid > .res-card:first-child:nth-last-child(5) i { color: #d7b08b; }
@media (max-width: 900px) { .res-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .res-grid { grid-template-columns: 1fr; } .res-grid > .res-card:first-child:nth-last-child(5) { grid-row: auto; } }
.res-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); color: var(--text-2); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.res-card b { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
.res-card span { line-height: 1.5; }
.res-card i { font-style: normal; font-weight: 600; color: var(--bronze-2); margin-top: auto; padding-top: 8px; }
.res-card:hover, .res-card:focus-visible { border-color: var(--bronze-2); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20, 16, 12, .08); }
.res-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 0 0 48px; }
.res-list { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--line); }
.res-list li { border-bottom: 1px solid var(--line); }
.res-list a { display: flex; flex-direction: column; gap: 3px; padding: 14px 4px; min-height: 44px; text-decoration: none; color: var(--text-2); }
.res-list a b { color: var(--ink); font-weight: 600; }
.res-list a:hover b, .res-list a:focus-visible b { color: var(--bronze-2); text-decoration: underline; }
.res-trade { padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.res-trade .res-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 0; }
@media (max-width: 800px) {
	.res-cols, .res-trade .res-list { grid-template-columns: 1fr; }
	.res-trade { padding: 22px 18px; }
}

/* Checklists */
.prose .tick-list { list-style: none; padding: 0; margin: 1.2em 0 2em; counter-reset: q; }
.prose .tick-list > li { margin: 0; border-bottom: 1px solid var(--line); }
.prose .tick-list label { display: flex; gap: 14px; align-items: flex-start; padding: 14px 2px; cursor: pointer; }
.prose .tick-list input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--bronze-2); }
.prose .tick-list small { display: block; color: var(--muted); font-size: .92em; margin-top: 3px; }
.prose .tick-list input:checked + span { color: var(--muted); }
.prose .tick-list.compact { margin: .4em 0 0; }
.prose .tick-list.compact label { padding: 8px 2px; }
.prose .flag-list { list-style: none; padding: 0; }
.prose .flag-list li { position: relative; padding-left: 28px; margin: .5em 0; }
.prose .flag-list li::before { content: "✕"; position: absolute; left: 4px; top: 0; color: #a2442f; font-weight: 700; }
.prose .key-box { padding: 20px 22px 8px; border: 1px solid var(--line); border-left: 4px solid var(--bronze-2); border-radius: var(--r); background: var(--paper); margin: 0 0 2em; }
.prose .plan { list-style: none; padding: 0; margin: 0 0 2em; }
.prose .plan > li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--line); margin-left: 8px; }
.prose .plan > li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bronze-2); }
.prose .plan-when { margin: 0; }
.prose .plan-when span { color: var(--muted); font-size: .92em; margin-left: 6px; }

/* Compare sheet and price bands */
.compare-wrap { overflow-x: auto; margin: 1em 0 2em; }
/* One real table (the theme draws thead and tbody as separate tables for long guide tables). */
.prose table.compare { display: table; width: 100%; border-collapse: collapse; min-width: 520px; table-layout: fixed; }
.prose table.compare thead { display: table-header-group; min-width: 0; }
.prose table.compare tbody { display: table-row-group; min-width: 0; }
.prose table.compare:not(.bands) th:first-child { width: 28%; }
.prose table.compare th, .prose table.compare td { border: 1px solid var(--line); padding: 12px 10px; text-align: left; vertical-align: top; }
.prose table.compare tbody td { height: 44px; }
.prose table.compare thead th { background: var(--paper); }
.prose table.compare th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: inherit; font-weight: 500; color: var(--ink); white-space: normal; }
.prose table.compare.bands { min-width: 0; table-layout: auto; }
.prose table.compare.bands td { height: auto; white-space: nowrap; }
@media (max-width: 600px) { .prose table.compare.bands th, .prose table.compare.bands td { padding: 10px 8px; font-size: .92rem; } }

/* Cost planner */
.planner { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 24px; }
.planner-q { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.planner-q label, .planner-q legend { font-weight: 600; color: var(--ink); padding: 0; }
.planner select { min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); }
.planner fieldset { grid-column: 1 / -1; }
.planner .seg { display: flex; gap: 8px; flex-wrap: wrap; }
.planner .seg label { position: relative; font-weight: 500; }
.planner .seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.planner .seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.planner .seg input:checked + span { background: var(--night, #14100c); color: #fff; border-color: transparent; }
.planner .seg input:focus-visible + span { outline: 2px solid var(--bronze-2); outline-offset: 2px; }
.planner-out .stat-grid { margin-top: 0; }
.planner-out .stat-c.total { background: var(--night, #14100c); border-color: transparent; }
.planner-out .stat-c.total b, .planner-out .stat-c.total span { color: #fff; }
@media (max-width: 700px) {
	.planner { grid-template-columns: 1fr; padding: 20px 16px; }
}

.tool-cta { margin: 2em 0; padding: 22px 24px; border-radius: var(--r); background: var(--night, #14100c); color: #e9e2d8; }
.tool-cta .note-h, .prose .tool-cta .note-h { color: #fff !important; font-family: var(--serif); font-weight: 400 !important; font-size: 1.45rem; margin: 0 0 6px; }
.tool-cta p { color: #e9e2d8; }
.print-only { display: none; }

/* Print: the content only, in black on white. */
@media print {
	.nav, .footer, .no-print, .dot-fab, #dot-panel, .skip-link, [data-dot] { display: none !important; }
	.print-only { display: block; }
	body { background: #fff !important; color: #000; }
	.page-head { background: none !important; color: #000 !important; padding: 0 0 12px !important; min-height: 0 !important; }
	.page-head h1, .page-head p, .page-head em { color: #000 !important; }
	.page-head::before, .page-head::after { display: none !important; }
	.prose .tick-list input { -webkit-appearance: none; appearance: none; border: 1.5px solid #000; border-radius: 3px; }
	.prose .tick-list input:checked { background: #000; }
	.prose table.compare tbody td { height: 34px; }
	a { color: #000; text-decoration: none; }
	.note, .key-box { break-inside: avoid; }
	.plan > li { break-inside: avoid; }
}
