/*! RoofingWala - Hiring Guide page ("Spec Sheet" components). Uses the tokens from main.css. */

.rwh { color: var(--rw-body); font-family: var(--rw-font-body); font-size: var(--rw-size-body); line-height: var(--rw-leading-body); }
.rwh *, .rwh *::before, .rwh *::after { box-sizing: border-box; }
.rwh a { color: var(--rw-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rwh a:hover { color: var(--rw-accent-hover); }
.rwh h1, .rwh h2, .rwh h3, .rwh h4 { font-family: var(--rw-font-heading); color: var(--rw-ink); letter-spacing: var(--rw-tracking-tight); margin: 0; }
.rwh p { margin: 0 0 var(--rw-space-sm); }
.rwh ul, .rwh ol { margin: 0; padding: 0; }
.rwh__wrap { max-width: var(--rw-wide); margin-inline: auto; padding-inline: 20px; }
.rwh__kicker { font-family: var(--rw-font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rw-accent); margin: 0 0 var(--rw-space-sm); }

/* Buttons */
.rwh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: var(--rw-radius); border: 1.5px solid var(--rw-ink); font-family: var(--rw-font-heading); font-weight: 700; font-size: var(--rw-size-small); line-height: 1; text-decoration: none; cursor: pointer; background: transparent; color: var(--rw-ink); }
.rwh a.rwh-btn { color: var(--rw-ink); }
.rwh-btn--solid, .rwh a.rwh-btn--solid { background: var(--rw-accent); border-color: var(--rw-accent); color: #fff; }
.rwh-btn--solid:hover, .rwh a.rwh-btn--solid:hover { background: var(--rw-accent-hover); border-color: var(--rw-accent-hover); color: #fff; }
.rwh-btn--ghost:hover, .rwh a.rwh-btn--ghost:hover { background: var(--rw-surface); color: var(--rw-ink); }
.rwh-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.rwh-btn:focus-visible, .rwh a:focus-visible, .rwh input:focus-visible + .rwh-opt__t, .rwh summary:focus-visible { outline: 2px solid var(--rw-ink); outline-offset: 2px; }
.rwh--dark .rwh-btn, .rwh__band .rwh-btn--ghost { color: #fff; border-color: #fff; }

/* Hero */
.rwh-hero { position: relative; background-color: var(--rw-paper); background-image: linear-gradient(var(--rw-line) 1px, transparent 1px), linear-gradient(90deg, var(--rw-line) 1px, transparent 1px); background-size: 100% 32px, 32px 100%; border-bottom: 1px solid var(--rw-line); padding-block: var(--rw-space-lg) var(--rw-space-2xl); }
.rwh-hero .rw-breadcrumbs { margin-bottom: var(--rw-space-lg); }
.rwh-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--rw-space-xl); align-items: center; }
.rwh .rwh-hero__title { font-size: var(--rw-size-display); font-weight: 800; line-height: var(--rw-leading-tight); margin-bottom: var(--rw-space-md); }
.rwh .rwh-hero__lead { max-width: 38rem; font-size: 1.125rem; margin-bottom: var(--rw-space-md); }
.rwh-hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 var(--rw-space-md); font-size: var(--rw-size-small); color: var(--rw-ink); font-weight: 600; }
.rwh-hero__trust li { display: inline-flex; gap: 8px; align-items: center; }
.rwh-hero__trust li::before { content: ''; width: 8px; height: 8px; background: var(--rw-accent); border-radius: 50%; flex: none; }
.rwh-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Quiz card */
.rwh-q { background: var(--rw-bg); border: 1px solid var(--rw-line-strong); border-radius: var(--rw-radius); padding: var(--rw-space-md); box-shadow: 0 18px 40px -22px rgba(15, 27, 45, 0.35); min-height: 24rem; }
.rwh-q__top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--rw-font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rw-muted); margin-bottom: 8px; }
.rwh-q__bar { height: 4px; background: var(--rw-surface); border-radius: 2px; margin-bottom: var(--rw-space-md); overflow: hidden; }
.rwh-q__bar i { display: block; height: 100%; background: var(--rw-accent); transition: width 0.25s; }
.rwh-q__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.rwh-q__legend { padding: 0; font-family: var(--rw-font-heading); font-weight: 800; font-size: 1.4rem; line-height: 1.2; color: var(--rw-ink); margin-bottom: 6px; }
.rwh .rwh-q__hint { font-size: var(--rw-size-small); color: var(--rw-muted); margin-bottom: var(--rw-space-sm); }
.rwh-q__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rwh-opt { position: relative; display: block; cursor: pointer; }
.rwh-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rwh-opt__t { display: flex; align-items: center; min-height: 56px; padding: 10px 14px; border: 1.5px solid var(--rw-line-strong); border-radius: var(--rw-radius); font-size: var(--rw-size-small); font-weight: 600; color: var(--rw-ink); line-height: 1.25; background: var(--rw-bg); transition: border-color 0.15s, background 0.15s; }
.rwh-opt:hover .rwh-opt__t { border-color: var(--rw-accent); }
.rwh-opt input:checked + .rwh-opt__t { border-color: var(--rw-accent); background: var(--rw-accent-soft); box-shadow: inset 3px 0 0 var(--rw-accent); }
.rwh-q__nav { display: flex; justify-content: space-between; margin-top: var(--rw-space-md); gap: 12px; }
.rwh-res { display: block; }
.rwh-res__tag { display: inline-block; font-family: var(--rw-font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--rw-radius); background: var(--rw-ink); color: #fff; margin-bottom: 12px; }
.rwh-res.is-diy .rwh-res__tag { background: var(--rw-teal); }
.rwh-res.is-repair .rwh-res__tag { background: var(--rw-accent); }
.rwh-res.is-inspect .rwh-res__tag { background: var(--rw-navy-2); }
.rwh-res.is-replace .rwh-res__tag { background: var(--rw-danger); }
.rwh .rwh-res__t { font-size: 1.55rem; line-height: 1.15; font-weight: 800; margin-bottom: 8px; }
.rwh .rwh-res__lead { font-weight: 600; color: var(--rw-ink); font-size: var(--rw-size-small); }
.rwh-res__why { list-style: none; display: grid; gap: 8px; margin-bottom: var(--rw-space-sm); font-size: var(--rw-size-small); }
.rwh-res__why li { padding-left: 18px; position: relative; }
.rwh-res__why li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; background: var(--rw-accent); }
.rwh-res__steps { font-size: var(--rw-size-small); }
.rwh .rwh-res__fine { font-size: 0.8125rem; color: var(--rw-muted); border-top: 1px solid var(--rw-line); padding-top: 10px; }

/* Jump nav */
.rwh-jump { background: var(--rw-bg); border-bottom: 1px solid var(--rw-line); position: sticky; top: 0; z-index: 20; }
.rwh-jump ul { list-style: none; display: flex; gap: 6px; overflow-x: auto; padding: 10px 20px; max-width: var(--rw-wide); margin-inline: auto; scrollbar-width: thin; }
.rwh-jump a { display: inline-block; white-space: nowrap; padding: 6px 12px; border-radius: var(--rw-radius); font-family: var(--rw-font-heading); font-weight: 600; font-size: 0.875rem; color: var(--rw-ink); text-decoration: none; border: 1px solid transparent; }
.rwh a.rwh-jump__a:hover, .rwh-jump a:hover { background: var(--rw-surface); color: var(--rw-ink); }

/* Sections */
.rwh-sec { padding-block: var(--rw-space-3xl); scroll-margin-top: 56px; }
.rwh-sec--alt { background: var(--rw-paper); border-block: 1px solid var(--rw-line); }
.rwh-head { max-width: 46rem; margin-bottom: var(--rw-space-xl); }
.rwh-head h2 { font-size: var(--rw-size-h2); font-weight: 800; line-height: 1.12; }
.rwh-head h2::after { content: ''; display: block; width: 40px; height: 3px; background: var(--rw-accent); margin-top: 14px; }
.rwh-head p { margin: 14px 0 0; }

/* Situation cards */
.rwh-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rwh-card { background: var(--rw-bg); border: 1px solid var(--rw-line); border-radius: var(--rw-radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.rwh-card h3 { font-size: 1.2rem; font-weight: 800; }
.rwh-card p { font-size: var(--rw-size-small); margin: 0; }
.rwh .rwh-card__cost { font-family: var(--rw-font-mono); font-size: 0.8125rem; color: var(--rw-muted); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rw-line); }
.rwh-tag { align-self: flex-start; font-family: var(--rw-font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; padding: 4px 9px; border-radius: var(--rw-radius); color: #fff; }
.rwh-tag--pro { background: var(--rw-danger); }
.rwh-tag--dep { background: var(--rw-navy-2); }
.rwh-tag--diy { background: var(--rw-teal); }
.rwh-tag--ins { background: var(--rw-accent); }

/* Repair or replace */
.rwh-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rwh-3__c { background: var(--rw-bg); border: 1px solid var(--rw-line); border-top: 4px solid var(--rw-ink); border-radius: var(--rw-radius); padding: 22px; }
.rwh-3__c:nth-child(1) { border-top-color: var(--rw-teal); }
.rwh-3__c:nth-child(2) { border-top-color: var(--rw-accent); }
.rwh-3__c h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; }
.rwh-3__c ul { list-style: none; display: grid; gap: 10px; font-size: var(--rw-size-small); }
.rwh-3__c li { padding-left: 20px; position: relative; }
.rwh-3__c li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 2px; background: var(--rw-ink); }
.rwh-rule { margin-top: var(--rw-space-lg); display: flex; gap: 18px; align-items: flex-start; background: var(--rw-ink); color: var(--rw-on-dark); border-radius: var(--rw-radius); padding: 22px 24px; }
.rwh-rule__n { font-family: var(--rw-font-heading); font-size: 2.6rem; font-weight: 800; color: var(--rw-orange); line-height: 1; flex: none; }
.rwh-rule p { margin: 0; }
.rwh-rule strong { color: #fff; }

/* Red flags */
.rwh-flags { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; counter-reset: flag; }
.rwh-flag { counter-increment: flag; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; background: var(--rw-bg); border: 1px solid var(--rw-line); border-left: 4px solid var(--rw-danger); border-radius: var(--rw-radius); padding: 18px 18px 18px 16px; }
.rwh-flag::before { content: counter(flag, decimal-leading-zero); font-family: var(--rw-font-mono); font-weight: 700; font-size: 1.15rem; color: var(--rw-danger); }
.rwh-flag h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.rwh-flag p { margin: 0; font-size: var(--rw-size-small); }
.rwh-flag b { color: var(--rw-ink); }
.rwh-flag--last { grid-column: 1 / -1; }

/* Quotes */
.rwh-quote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.rwh-box { background: var(--rw-bg); border: 1px solid var(--rw-line); border-radius: var(--rw-radius); padding: 24px; }
.rwh-box h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; }
.rwh-box ul { list-style: none; display: grid; gap: 10px; font-size: var(--rw-size-small); }
.rwh-box li { padding-left: 20px; position: relative; }
.rwh-box li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 2px; background: var(--rw-accent); }
.rwh-sheet { font-family: var(--rw-font-mono); font-size: 0.8125rem; }
.rwh-sheet ul { gap: 6px; }
.rwh-sheet li { border-bottom: 1px dashed var(--rw-line-strong); padding-bottom: 6px; }
.rwh-sheet li b { color: var(--rw-ink); }
.rwh-fine { grid-column: 1 / -1; }
.rwh-fine__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rwh-fine__grid h4 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.rwh-fine__grid p { font-size: var(--rw-size-small); margin: 0; }
.rwh-warn { display: flex; gap: 16px; background: var(--rw-danger-soft); border: 1px solid #E8C4BE; border-left: 5px solid var(--rw-danger); border-radius: var(--rw-radius); padding: 20px 22px; }
.rwh-warn h3 { font-size: 1.15rem; font-weight: 800; color: var(--rw-danger); margin-bottom: 6px; }
.rwh-warn p { margin: 0; font-size: var(--rw-size-small); }
.rwh-calc { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rwh-calc__c { background: var(--rw-bg); border: 1px solid var(--rw-line); border-radius: var(--rw-radius); padding: 20px; font-size: var(--rw-size-small); }
.rwh-calc__c b { display: block; font-family: var(--rw-font-heading); font-size: 1.5rem; color: var(--rw-ink); }
.rwh-calc__c--bad { border-color: #E8C4BE; background: var(--rw-danger-soft); }
.rwh .rwh-calc__note { grid-column: 1 / -1; margin: 0; color: var(--rw-muted); font-size: 0.875rem; }

/* Check the company */
.rwh-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* Checklist */
.rwh-ck { background: var(--rw-bg); border: 1px solid var(--rw-line-strong); border-radius: var(--rw-radius); overflow: hidden; }
.rwh-ck__bar { position: sticky; top: 56px; z-index: 5; background: var(--rw-ink); color: #fff; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.rwh-ck__count { font-family: var(--rw-font-heading); font-weight: 800; font-size: 1.1rem; }
.rwh .rwh-ck__msg { font-size: 0.875rem; color: var(--rw-on-dark); margin: 0; flex: 1 1 14rem; }
.rwh-ck__track { flex: 1 0 100%; height: 5px; background: var(--rw-navy-line); border-radius: 3px; overflow: hidden; }
.rwh-ck__track i { display: block; height: 100%; width: 0; background: var(--rw-orange); transition: width 0.2s; }
.rwh-ck ol { list-style: none; counter-reset: ck; }
.rwh-ck li { counter-increment: ck; border-top: 1px solid var(--rw-line); }
.rwh-ck li:first-child { border-top: 0; }
.rwh-ck label { display: grid; grid-template-columns: 28px 36px minmax(0, 1fr); gap: 14px; padding: 18px 20px; cursor: pointer; align-items: start; }
.rwh-ck input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--rw-accent); }
.rwh-ck label::before { content: counter(ck, decimal-leading-zero); font-family: var(--rw-font-mono); font-weight: 700; color: var(--rw-muted); order: 2; }
.rwh-ck input { order: 1; }
.rwh-ck__body { order: 3; }
.rwh-ck__q { display: block; font-family: var(--rw-font-heading); font-weight: 800; font-size: 1.05rem; color: var(--rw-ink); }
.rwh-ck__good { display: block; font-size: var(--rw-size-small); color: var(--rw-body); margin-top: 4px; }
.rwh-ck li.is-done { background: var(--rw-paper); }
.rwh-ck li.is-done .rwh-ck__q { text-decoration: line-through; text-decoration-color: var(--rw-accent); }
.rwh-ck__foot { padding: 16px 20px; border-top: 1px solid var(--rw-line); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--rw-paper); }
.rwh-ck__foot p { margin: 0; font-size: var(--rw-size-small); color: var(--rw-muted); }

/* After the job */
.rwh-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rwh-4 .rwh-box { padding: 20px; }
.rwh-4 h3 { font-size: 1.1rem; }
.rwh-4 p { font-size: var(--rw-size-small); margin: 0; }
.rwh-4__n { display: block; font-family: var(--rw-font-mono); font-weight: 700; font-size: 0.8125rem; color: var(--rw-accent); margin-bottom: 8px; }

/* FAQ */
.rwh-faq { max-width: 52rem; display: grid; gap: 10px; }
.rwh-faq details { background: var(--rw-bg); border: 1px solid var(--rw-line); border-radius: var(--rw-radius); }
.rwh-faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font-family: var(--rw-font-heading); font-weight: 800; font-size: 1.05rem; color: var(--rw-ink); position: relative; }
.rwh-faq summary::-webkit-details-marker { display: none; }
.rwh-faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--rw-accent); line-height: 1; }
.rwh-faq details[open] summary::after { content: '\2212'; }
.rwh-faq details p { padding: 0 18px 16px; margin: 0; font-size: var(--rw-size-small); }

/* CTA band */
.rwh__band { background: var(--rw-ink); color: var(--rw-on-dark); padding-block: var(--rw-space-2xl); }
.rwh__band h2 { color: #fff; font-size: var(--rw-size-h2); font-weight: 800; margin-bottom: 8px; }
.rwh__band p { max-width: 40rem; }
.rwh-tools { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: var(--rw-space-md); }
.rwh-tools a { display: block; height: 100%; padding: 20px; background: var(--rw-navy-2); border: 1px solid var(--rw-navy-line); border-radius: var(--rw-radius); color: #fff; text-decoration: none; }
.rwh-tools a:hover { border-color: var(--rw-orange); color: #fff; }
.rwh-tools b { display: block; font-family: var(--rw-font-heading); font-size: 1.1rem; margin-bottom: 4px; }
.rwh-tools span { font-size: var(--rw-size-small); color: var(--rw-on-dark); }

/* Related guides */
.rwh-guides { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rwh-guides a { display: block; height: 100%; background: var(--rw-bg); border: 1px solid var(--rw-line); border-radius: var(--rw-radius); padding: 16px 18px; color: var(--rw-ink); font-family: var(--rw-font-heading); font-weight: 700; text-decoration: none; line-height: 1.3; }
.rwh-guides a:hover { border-color: var(--rw-accent); color: var(--rw-accent); }
.rwh-guides small { display: block; font-family: var(--rw-font-mono); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rw-muted); margin-bottom: 6px; }

/* Notes */
.rwh-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rwh-notes .rwh-box { font-size: var(--rw-size-small); }
.rwh-notes h3 { font-size: 1.1rem; }
.rwh-notes p:last-child { margin-bottom: 0; }

/* Responsive */
@media (min-width: 62.5em) {
	.rwh-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3.5rem; }
}
@media (max-width: 62.49em) {
	.rwh-cards, .rwh-guides, .rwh-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rwh-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rwh-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 47.99em) {
	.rwh__wrap { padding-inline: 16px; }
	.rwh-q { padding: 18px 16px; min-height: 0; }
	.rwh-q__opts { grid-template-columns: minmax(0, 1fr); }
	.rwh-cards, .rwh-guides, .rwh-tools, .rwh-4, .rwh-flags, .rwh-quote, .rwh-fine__grid, .rwh-calc, .rwh-2, .rwh-notes { grid-template-columns: minmax(0, 1fr); }
	.rwh-rule { flex-direction: column; gap: 8px; }
	.rwh-ck label { grid-template-columns: 24px minmax(0, 1fr); }
	.rwh-ck label::before { display: none; }
	.rwh-ck__body { order: 2; }
	.rwh-ck__bar { top: 0; }
	.rwh-hero__cta .rwh-btn { flex: 1 1 100%; }
	.rwh-ck__foot .rwh-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.rwh *, .rwh *::before, .rwh *::after { transition: none !important; }
}

/* Header highlight for the Hiring Guide menu item. */
.rw-nav-hire { display: flex; align-items: center; }\n.rw-nav-hire > a, .rw-nav-hire > a.ct-menu-link { position: relative; display: inline-flex !important; height: auto !important; min-height: 0 !important; margin: 0 4px; align-items: center; gap: 8px; background: var(--rw-accent); color: #fff !important; border-radius: 999px; padding: 6px 14px !important; line-height: 1.2; }
.rw-nav-hire > a:hover { background: var(--rw-accent-hover); color: #fff !important; }
.rw-nav-hire .rw-nbadge { display: inline-block; background: #D9F99D; color: var(--rw-ink); font-family: var(--rw-font-mono); font-size: 0.625rem; font-weight: 800; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 999px; line-height: 1.2; }
.rw-hire-strip { background: var(--rw-accent); color: #fff; text-align: center; font-family: var(--rw-font-heading); font-size: 0.875rem; font-weight: 600; padding: 9px 16px; line-height: 1.35; }
.rw-hire-strip a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }
.rw-hire-strip b { background: #D9F99D; color: var(--rw-ink); font-family: var(--rw-font-mono); font-size: 0.6875rem; padding: 2px 6px; border-radius: 999px; margin-right: 8px; letter-spacing: 0.06em; }

#offcanvas .rw-nav-hire { display: block; margin: 6px 0; }
#offcanvas .rw-nav-hire > a { display: flex !important; width: 100%; border-radius: 6px; padding: 12px 14px !important; margin: 0; justify-content: space-between; }
