/*
 * Water heater error codes (Nov 13 2026): the hub (/water-heater-error-codes), one page per
 * brand and one page per much-searched code. Templates: water-heater-error-codes/index.php,
 * inc/wh-codes-brand-page.php, inc/wh-codes-code-page.php. Blocks: inc/wh-codes.php.
 * Loaded after page-dp.css and page-wh.css (the hero, steps and "who" line come from there).
 */

/* ───────── hero extras ───────── */
.wc-hero .whs-hero__copy .display-l { font-size: clamp(2rem, 1.25rem + 2vw, 3.1rem); }
.wc-hero .lede b { color: var(--ink); }
.wc-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wc-kicker li { font: 600 13px/1 var(--font-sans); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 12px; }

/* ───────── gas warning ───────── */
.wc-gas { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; background: #fff7e0; border: 1px solid #f0cf7a; border-radius: var(--radius-lg); padding: 14px 16px; color: var(--ink); font-size: 15.5px; line-height: 1.5; }
.wc-gas svg { width: 28px; height: 28px; color: #a86a00; }
.wc-gas p { margin: 0; }
.wc-gas b { font-weight: 800; }
.wc-gas a { color: inherit; font-weight: 700; }

/* ───────── the answer card on a code page ───────── */
.wc-answer { gap: 16px; }
.wc-answer__top { display: flex; align-items: center; gap: 14px; }
.wc-answer__k { margin: 0; font: 600 12px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wc-answer dl { margin: 0; display: grid; gap: 14px; }
.wc-answer dl > div { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--rule-thin); }
.wc-answer dl > div:first-child { padding-top: 0; border-top: 0; }
.wc-answer dt { font: 700 12px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.wc-answer dd { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.wc-answer .wc-gas { font-size: 14.5px; }

/* the code itself, as a badge */
.wc-badge { display: inline-grid; place-items: center; min-width: 64px; height: 64px; padding: 0 14px; border-radius: 16px; background: var(--ink); color: #9ff0b0; font: 700 28px/1 var(--font-mono); letter-spacing: .04em; box-shadow: inset 0 0 0 3px #2b2b29; flex: none; }
.wc-badge--sm { min-width: 52px; height: 40px; padding: 0 10px; border-radius: 10px; font-size: 18px; box-shadow: inset 0 0 0 2px #2b2b29; }
.wc-badge--blink { color: #ffd166; font-size: 15px; letter-spacing: 0; white-space: nowrap; }

/* ───────── drawings ───────── */
.wc-art { margin: 0; display: grid; gap: 10px; }
.wc-art svg { width: 100%; height: auto; display: block; max-width: 460px; }
.wc-art figcaption { font-size: 14px; line-height: 1.45; color: var(--muted); max-width: 52ch; }
@media (prefers-reduced-motion: no-preference) {
  .wc-blink { animation: wc-blink 1.2s steps(1, end) infinite; }
}
@keyframes wc-blink { 50% { opacity: .15; } }

/* ───────── finder (hub) and filter (brand page) ───────── */
.wc-find { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 24px 48px -28px rgba(21, 32, 43, .35); padding: clamp(18px, 3vw, 30px); display: grid; gap: 16px; min-width: 0; }
.wc-find h2 { margin: 0; font: 800 22px/1.2 var(--font-sans); }
.wc-find__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 560px) { .wc-find__row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: end; } }
.wc-find label { display: grid; gap: 6px; font: 700 14px/1.2 var(--font-sans); color: var(--ink); }
.wc-find select, .wc-input { width: 100%; box-sizing: border-box; font: 500 18px/1.2 var(--font-sans); color: var(--ink); padding: 13px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--page); }
.wc-input { font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.wc-input::placeholder { text-transform: none; letter-spacing: 0; color: #a5adb9; font-family: var(--font-sans); font-size: 16px; }
.wc-find select:focus, .wc-input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.wc-find .dp-btn { min-height: 52px; }
.wc-find__msg { margin: 0; font-size: 15px; color: var(--muted); min-height: 1.4em; }
.wc-find__msg:empty { display: none; }
.wc-find__top { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ───────── brand cards (hub) ───────── */
.wc-brands { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.wc-brand { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 22px 20px; display: grid; gap: 12px; align-content: start; }
.wc-brand__name { margin: 0; font: 800 23px/1.15 var(--font-sans); }
.wc-brand__name a { color: var(--ink); text-decoration: none; }
.wc-brand__name a:hover { color: var(--blue); }
.wc-brand__what { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.wc-brand__tag { display: inline-block; margin-left: 6px; vertical-align: 3px; font: 700 11px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--blue-deep); background: var(--blue-soft); padding: 5px 8px; border-radius: 6px; }

/* code chips */
.wc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wc-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 14px/1.1 var(--font-mono); text-decoration: none; }
.wc-chips a:hover { border-color: var(--blue); color: var(--blue); }
.wc-chips a.is-page { border-color: var(--blue-soft); background: var(--blue-wash); }
.wc-chips small { font: 500 12px/1 var(--font-sans); color: var(--muted); }

/* ───────── the full code list (brand page) ───────── */
.wc-filter { display: grid; gap: 8px; margin: 0 0 18px; max-width: 420px; }
.wc-filter label { font: 700 15px/1.2 var(--font-sans); }
.wc-family { margin: clamp(26px, 4vw, 40px) 0 12px; display: grid; gap: 4px; }
.wc-family:first-child { margin-top: 0; }
.wc-family h3 { margin: 0; font: 800 21px/1.2 var(--font-sans); }
.wc-family p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 80ch; }
.wc-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wc-row { min-width: 0; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 96px; }
.wc-row:target { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.wc-row > details > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) 24px; gap: 14px; align-items: center; padding: 12px 14px; }
.wc-row > details > summary::-webkit-details-marker { display: none; }
.wc-row__t { display: grid; gap: 2px; min-width: 0; }
.wc-row__t b { font-size: 16.5px; line-height: 1.3; color: var(--ink); }
.wc-row__t span { font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.wc-row__i { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; }
.wc-row__i::before, .wc-row__i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink-2); transform: translate(-50%, -50%); }
.wc-row__i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .15s; }
.wc-row details[open] .wc-row__i::after { transform: translate(-50%, -50%) rotate(0deg); }
.wc-row__body { padding: 4px 16px 18px; display: grid; gap: 14px; border-top: 1px solid var(--rule-thin); margin-top: 2px; padding-top: 16px; }
.wc-row__body p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 75ch; }
.wc-row__body h4 { margin: 0 0 4px; font: 700 13px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.wc-row__more { font-weight: 700; color: var(--blue); }
.wc-none { display: none; margin: 10px 0 0; color: var(--muted); }

/* ───────── lists with sources (code page and the row bodies) ───────── */
.wc-ul { min-width: 0; overflow-wrap: anywhere; margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 75ch; }
.wc-row .wc-ul { font-size: 15px; gap: 6px; }
.wc-ul li::marker { color: var(--blue); }
.wc-cite { font-size: .82em; color: var(--muted); }
.wc-cite a { white-space: nowrap; }
.wc-cite a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-mid); text-underline-offset: 2px; }
.wc-cite a:hover { color: var(--blue); }

/* two columns on wide screens: what you can do / what needs a pro */
.wc-two { display: grid; gap: clamp(16px, 2.5vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.wc-two .dp-card h3 { margin: 0; font: 800 20px/1.25 var(--font-sans); }
.wc-pro { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.wc-pro li { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--rule-thin); }
.wc-pro li:first-child { padding-top: 0; border-top: 0; }
.wc-pro b { font-size: 16px; line-height: 1.35; color: var(--ink); }
.wc-pro span { overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.wc-dont { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.wc-dont li::marker { content: "✕  "; color: #b4231b; font-weight: 800; }

/* the manual's own words */
.wc-quote { margin: 0; padding: 14px 18px; border-left: 4px solid var(--blue); background: var(--blue-wash); border-radius: 0 12px 12px 0; font-size: 16px; line-height: 1.5; color: var(--ink); max-width: 70ch; }
.wc-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 13.5px; color: var(--muted); }

/* model table */
.wc-models { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wc-models li { min-width: 0; overflow-wrap: anywhere; display: grid; gap: 3px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.wc-models b { font-size: 15.5px; }
.wc-models span { font-size: 14.5px; color: var(--muted); line-height: 1.45; }

.wc-more-models { margin-top: 10px; }
.wc-more-models summary { cursor: pointer; font: 700 15px/1.3 var(--font-sans); color: var(--blue); padding: 8px 0; }
.wc-more-models .wc-models { margin-top: 6px; }

/* cross-brand table (hub) */
.wc-xref-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.wc-xref { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14.5px; line-height: 1.4; }
.wc-xref th, .wc-xref td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-thin); }
.wc-xref thead th { background: var(--page); font: 700 12px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wc-xref tbody th { font: 700 18px/1.2 var(--font-mono); color: var(--ink); white-space: nowrap; }
.wc-xref tr:last-child th, .wc-xref tr:last-child td { border-bottom: 0; }
.wc-xref td a { color: var(--ink); }
.wc-xref td a:hover { color: var(--blue); }
.wc-xref .is-none { color: var(--faint); }

/* a job of ours that matches */
.wc-job { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(16px, 2.5vw, 24px); }
@media (min-width: 720px) { .wc-job { grid-template-columns: 180px minmax(0, 1fr); } }
.wc-job img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.wc-job__w { display: grid; gap: 8px; }
.wc-job__w p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.wc-job__w .eyebrow { margin: 0; }
.wc-job__w h3 { margin: 0; font: 800 20px/1.25 var(--font-sans); }

/* sources */
.wc-sources { min-width: 0; overflow-wrap: anywhere; margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 90ch; }
.wc-sources a { color: var(--blue); word-break: break-word; }
.wc-sources span { color: var(--muted); }
.wc-method { font-size: 15px; color: var(--muted); max-width: 75ch; margin: 0 0 14px; line-height: 1.55; }

/* small print under a section */
.wc-note { margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); max-width: 75ch; }
