/* Catalogue: job spec pages, category lists and the search index. Extends /style.css and uses its tokens; no fonts or images. */
.catalogue .section { padding-block: clamp(2.6rem, 4.5vw, 4.5rem); }
.catalogue .hero { padding-block: clamp(1.4rem, 2.6vw, 2.6rem) clamp(2.6rem, 4.5vw, 4.5rem); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Breadcrumbs and the job reference: the catalogue's "part number". */
.crumb-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1.5rem; padding-top: 1.15rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .55rem; padding: 0; margin: 0; font-size: .86rem; }
.crumbs li { margin: 0; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .55rem; color: #a9b4ab; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.ref { margin: 0; color: var(--muted); font: .76rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .01em; }

/* Job hero */
.product-hero { align-items: start; }
.product-hero h1 { font-size: clamp(2.35rem, 4.1vw, 4.05rem); line-height: 1.07; }
.product-hero .lede { margin-bottom: 0; }
.symptoms-label { margin: 1.9rem 0 .55rem; font-weight: 720; font-size: .95rem; }
.symptoms { list-style: none; margin: 0; padding: .15rem 0 .15rem 1.2rem; border-left: 3px solid var(--accent); }
.symptoms li { margin: 0 0 .4rem; padding: 0; line-height: 1.45; }
.symptoms li:last-child { margin-bottom: 0; }
.terms .price-number { margin-top: 0; }
.terms h2 { font-size: clamp(1.55rem, 2.1vw, 2.05rem); line-height: 1.18; margin-bottom: 1rem; }
.facts { margin: .4rem 0 0; display: grid; gap: .85rem; }
.facts div { border-top: 1px solid rgba(241, 165, 143, .3); padding-top: .8rem; }
.facts dt { color: #fffdf3; font-weight: 750; font-size: .84rem; }
.facts dd { margin: .15rem 0 0; color: #e0e9de; font-size: .95rem; line-height: 1.5; }
.terms .dates-head { margin: 1.6rem 0 .9rem; font-size: 1rem; }
.terms .timeline { margin-bottom: .9rem; }
.panel .small a { color: #f6d6cb; }
.draft-note, .new-service { margin: 1.4rem 0 0; padding: .65rem .85rem; border: 1px dashed rgba(241, 165, 143, .65); color: #f6d6cb !important; font-size: .84rem; line-height: 1.5; }

/* Problem */
.problem { font-size: 1.14rem; line-height: 1.62; }

/* Diagnostic: one question per card; the result card changes with the answers. */
.diagnostic { display: grid; gap: 1rem; }
.q { margin: 0; padding: 1.1rem 1.25rem 1.2rem; border: 1px solid var(--rule); background: var(--white); min-width: 0; }
.q legend { float: left; width: 100%; padding: 0; margin: 0 0 .25rem; font-weight: 720; font-size: 1.04rem; line-height: 1.42; }
.q legend + * { clear: both; }
.q-help { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.options { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.options label { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .45rem .9rem; border: 1px solid var(--rule); background: var(--paper); font-size: .94rem; font-weight: 620; line-height: 1.3; cursor: pointer; }
.options label:hover { border-color: var(--ink); }
.options input { flex: none; width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--accent); cursor: pointer; }
.options label:has(input:checked) { border-color: var(--accent); background: #fbeee9; box-shadow: inset 0 0 0 1px var(--accent); }
.options label:has(input:focus-visible) { outline: 3px solid #d66b3d; outline-offset: 2px; }
.options input:focus-visible { outline: none; }
.result { padding: 1.3rem 1.45rem; background: var(--wash); border-left: 4px solid #8a9a92; }
.result[data-state="fit"] { background: #e3efe3; border-left-color: #2f6b4f; }
.result[data-state="check"] { background: #f6eedb; border-left-color: #a8721c; }
.result[data-state="stop"] { background: #f7e4dd; border-left-color: var(--accent); }
.result p { margin: 0 0 .5rem; }
.result p:last-child, .result ul:last-child { margin-bottom: 0; }
.result-title { font: 400 1.45rem/1.25 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.result ul { margin: .75rem 0 0; padding-left: 1.15rem; }
.result li { margin-bottom: .45rem; }
.result .tag-stop, .result .tag-check { font-weight: 750; }
.result .tag-stop { color: var(--accent-hover); }
.result .tag-check { color: #7d5512; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin: .2rem 0 0; }
.reset { padding: .3rem 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: .94rem; font-weight: 650; text-decoration: underline; text-underline-offset: .19em; cursor: pointer; }
.reset:hover { color: var(--accent-hover); }
.reset:focus-visible { outline: 3px solid #d66b3d; outline-offset: 4px; }
.self-checks { margin-top: 2.6rem; }
.self-checks h3 { margin-bottom: 1rem; }
.self-checks h4 { margin: 0 0 .35rem; font-size: 1rem; }
.self-checks p { margin-bottom: .5rem; }
.self-checks pre { margin: .55rem 0 .7rem; white-space: pre; overflow-x: auto; overflow-wrap: normal; }
.look-for { color: var(--muted); font-size: .94rem; }
.look-for strong { color: var(--ink); }

/* Spec lists */
.deliverables { margin-bottom: 2.2rem; }
.deliverables > li { padding: 1rem 0; font-weight: 620; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.75rem; }
.cols h3 { font-size: 1.02rem; margin-bottom: .8rem; }
.mark-list { list-style: none; padding: 0; margin: 0; }
.mark-list li { position: relative; padding-left: 1.65rem; margin-bottom: .7rem; line-height: 1.5; }
.mark-list li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.mark-list.yes li::before { content: "✓"; content: "✓" / ""; color: #2f6b4f; }
.mark-list.no li::before { content: "✕"; content: "✕" / ""; color: var(--accent); }
.tests > li > div { min-width: 0; }
.tests .test-check { margin-bottom: .35rem; font-weight: 650; line-height: 1.45; }
.tests .test-evidence { margin: 0; color: var(--muted); font-size: .92rem; }
.tests .test-evidence strong { color: var(--ink); }
.tests pre { margin: .6rem 0 0; white-space: pre; overflow-x: auto; overflow-wrap: normal; font-size: .82rem; }
.signoff { margin-top: 1.8rem; }
.signoff p { margin-bottom: .6rem; }
.risk-table td:first-child { width: 44%; font-weight: 620; }
.proof-item { margin-bottom: 1.6rem; padding: 1.2rem 1.35rem; background: var(--white); border: 1px solid var(--rule); }
.proof-item p:last-child { margin-bottom: 0; }
.alternatives li { margin-bottom: .8rem; }
.faq h3 { margin-top: 1.6rem; }
.faq h3:first-child { margin-top: 0; }

/* Lists of jobs (index and categories) */
.catalogue-hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.6rem); }
.category-hero h1 { margin-bottom: 1rem; }
.category-hero .lede { max-width: 48rem; }
.panel-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.panel-steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: .6rem; margin: 0; padding: .7rem 0; border-top: 1px solid rgba(241, 165, 143, .3); color: #e0e9de; }
.panel-steps li::before { content: counter(step, decimal-leading-zero); color: #f1a58f; font: 700 .8rem/1.9 ui-monospace, SFMono-Regular, Consolas, monospace; }
.catalogue-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.4rem; }
.catalogue-head h2 { margin: 0; }
.count { margin: 0; color: var(--muted); font-weight: 650; }
.filters { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem 2rem; align-items: end; margin: 0 0 2.4rem; padding: 1.25rem 1.4rem; background: var(--wash); }
.filters[hidden] { display: none; }
.filters label[for] { display: block; margin-bottom: .4rem; font-weight: 720; font-size: .92rem; }
.filters input[type="search"] { width: 100%; min-height: 3rem; padding: .6rem .9rem; border: 1px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); font: inherit; }
.filters input[type="search"]:focus-visible { outline: 3px solid #d66b3d; outline-offset: 2px; }
.filters fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.filters legend { padding: 0; margin-bottom: .4rem; font-weight: 720; font-size: .92rem; }
.filters .options { margin-top: 0; }
.filters .options label { background: var(--white); }
.job-group + .job-group { margin-top: 3rem; }
.job-group h3 { margin: 0 0 .4rem; font: 400 clamp(1.6rem, 2.2vw, 2rem)/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.job-group h3 a { color: var(--ink); }
.job-group h3 a:hover { color: var(--accent); }
.group-intro { max-width: 46rem; color: var(--muted); margin-bottom: 1.2rem; }
.jobs { list-style: none; padding: 0; margin: 0; }
.jobs > li { margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.jobs > li:last-child { border-bottom: 1px solid var(--rule); }
.job { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: .45rem 2.5rem; padding: 1.35rem 0; color: var(--ink); text-decoration: none; }
.job strong { grid-column: 1; font: 400 clamp(1.3rem, 1.8vw, 1.6rem)/1.22 Georgia, "Times New Roman", serif; letter-spacing: -.03em; }
.job:hover strong { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.job .summary { grid-column: 1; max-width: 46rem; color: var(--muted); line-height: 1.55; }
.job .tags { grid-column: 1; display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; }
.tag { padding: .12rem .5rem; background: var(--wash); color: var(--ink); font-size: .76rem; font-weight: 680; }
.job .terms-line { grid-column: 2; grid-row: 1 / span 3; align-self: center; text-align: right; font-size: .92rem; font-weight: 720; color: var(--ink); }
.no-results { margin-top: 1.5rem; font-weight: 650; }
.back { margin: 1.6rem 0 0; font-weight: 700; }

@media (max-width: 760px) {
  .cols, .filters { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: .4rem; }
  .job .terms-line { grid-column: 1; grid-row: auto; text-align: left; color: var(--muted); }
  .crumb-row { padding-top: .9rem; }
  .q { padding: 1rem 1rem 1.05rem; }
  .result { padding: 1.1rem 1.15rem; }
}
@media print {
  .filters, .result-actions, .skip { display: none !important; }
}

/* Release usability: stable part numbers and explicit catalogue-only limits. */
.catalogue .ref { overflow-wrap: anywhere; max-width: 100%; }
.catalogue .panel > .note { color: #e0e9de; }
.catalogue .job:focus-visible { outline: 3px solid #d66b3d; outline-offset: 4px; }
.catalogue [hidden] { display: none !important; }
