/* v13: concise, side-by-side actions for each Kobra X error code. */
.re-error-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;min-width:0}
.re-error-actions .re-error-watch{padding:10px 12px;gap:6px;grid-column:auto}
.re-error-actions .re-error-wiki{background:#fff;color:var(--dark);border-color:#b9cddd}
.re-error-actions .re-error-wiki:hover,.re-error-actions .re-error-wiki:focus-visible{background:#eaf4ff;color:var(--dark);border-color:#598cb6}
@media(max-width:1100px){
  .re-error-row{grid-template-columns:minmax(180px,1fr) minmax(185px,1.2fr) minmax(0,auto);gap:16px}
  .re-error-actions .re-error-watch{font-size:12px}
}
@media(max-width:900px){.re-error-actions{grid-column:2}}
@media(max-width:570px){.re-error-actions{grid-column:1}}

/* v36: Slightly more compact error-code rows; consistent on desktop and mobile. */
.re-error-row{padding:13px 16px;gap:16px}
.re-error-number h2{margin-bottom:3px}
.re-error-actions .re-error-watch{padding:8px 10px}
@media(max-width:570px){.re-error-row{padding:12px 12px;gap:8px}}


/* v37: Expandable related technical guides on the error-code page. */
.re-tech-guides{grid-column:2 / -1;margin-top:-2px}
.re-tech-guides summary{list-style:none;cursor:pointer}
.re-tech-guides summary::-webkit-details-marker{display:none}
.re-tech-guides .re-error-tech{background:#fff8df;border-color:#e2d08b;color:var(--dark)}
.re-tech-guides .re-error-tech:hover,.re-tech-guides .re-error-tech:focus-visible,.re-tech-guides[open] .re-error-tech{background:#fff1ba;border-color:#cdaa2f;color:var(--dark)}
.re-tech-caret{display:inline-block;transition:transform .18s ease}
.re-tech-guides[open] .re-tech-caret{transform:rotate(180deg)}
.re-tech-panel{margin-top:8px;padding:12px 14px;border:1px solid #d6e4ef;border-radius:10px;background:#f7fbff}
.re-tech-intro{margin:0 0 10px;font-size:13px;color:#486277}
.re-tech-list{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.re-tech-list li{margin:0;padding:0}
.re-tech-list a{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border:1px solid #bfd1df;border-radius:999px;background:#fff;color:var(--dark);text-decoration:none;font-size:13px;font-weight:700}
.re-tech-list a:hover,.re-tech-list a:focus-visible{background:#eaf4ff;border-color:#598cb6}
@media(max-width:900px){.re-tech-guides{grid-column:1 / -1}}
@media(max-width:570px){.re-tech-panel{padding:11px 12px}.re-tech-list a{font-size:12px;padding:7px 9px}}


/* v37 compact refinement — Guides sits inline with the other buttons. */
.re-error-row{padding:8px 12px;gap:10px 12px}
.re-error-actions{gap:5px 6px}
.re-error-actions .re-error-watch{padding:5px 9px;line-height:1.2;min-height:29px}
.re-error-actions .re-tech-guides{grid-column:auto;margin:0;flex:0 0 auto;min-width:0}
.re-error-actions .re-tech-guides[open]{flex-basis:100%;width:100%}
.re-error-actions .re-tech-guides .re-error-tech{font-size:12px;gap:5px}
.re-error-actions .re-tech-panel{margin-top:6px;padding:9px 11px}
.re-error-actions .re-tech-intro{margin-bottom:6px}
.re-error-actions .re-tech-list{gap:6px}
.re-error-actions .re-tech-list a{padding:5px 8px;line-height:1.25}
@media(max-width:570px){.re-error-row{padding:8px 10px;gap:6px}.re-error-actions .re-tech-panel{padding:8px 9px}}

/* v37 layout correction: buttons stay in place; guides open BELOW the row. */
.re-error-actions .re-tech-guides,
.re-error-actions .re-tech-guides[open] {
  flex: 0 0 auto;
  flex-basis: auto;
  width: auto;
  min-width: 0;
  margin: 0;
}
.re-error-row > .re-tech-expanded-panel {
  grid-column: 1 / -1;
  display: none;
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
}
.re-error-row:has(> .re-error-actions > details.re-tech-guides[open]) > .re-tech-expanded-panel {
  display: block;
}

/* v37: Video description column, up to two lines without increasing row heights. */
.re-error-video{min-width:0;overflow:hidden}
.re-error-episode{font-size:12px;font-weight:400;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere;max-height:2.7em}


/* v43 share controls — no extra height in closed error-code rows. */
.re-error-code-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:3px}
.re-error-code-heading h2{margin:0}
.re-error-share,
.re-search-share{display:inline-flex;align-items:center;justify-content:center;gap:4px;border:1px solid #a8c8e5;color:var(--dark);background:#f3f9ff;border-radius:6px;font-weight:700;cursor:pointer;line-height:1.2;white-space:nowrap}
.re-error-share{font-size:11px;padding:3px 6px;min-height:22px}
.re-search-share{font-size:12px;padding:9px 12px;min-height:38px}
.re-error-share:hover,.re-search-share:hover,.re-error-share:focus-visible,.re-search-share:focus-visible{background:#e0efff;border-color:#5c93c0}
.re-error-share:focus-visible,.re-search-share:focus-visible{outline:2px solid #24578f;outline-offset:2px}
@media(max-width:570px){.re-search-share{padding:8px 10px;font-size:12px}.re-error-code-heading{gap:6px}}


/* v44: A direct #error-xxxxx link becomes a focused error-code view.
   Ordinary page visits retain the original introduction, search and complete list. */
.re-error-focused-intro[hidden],.re-focused-bottom-back[hidden]{display:none!important}
.re-error-focused-intro{margin:12px 0 14px;border-left:4px solid #e3b530;background:#f3f8fc;padding:15px 18px;border-radius:0 10px 10px 0}
.re-focused-eyebrow{margin:0 0 5px!important;font-size:11px;font-weight:800;letter-spacing:.065em;color:#53718b;text-transform:uppercase}
.re-error-focused-intro h2{font-size:clamp(22px,3vw,31px);line-height:1.2;margin:0 0 3px;color:var(--dark)}
.re-focused-description{font-size:17px!important;font-weight:700;margin:0 0 8px!important;color:#284f70}
.re-focused-context{font-size:14px;line-height:1.5;margin:0 0 12px!important}
.re-focused-back{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:750;background:#073b77;color:#fff!important;border-radius:6px;padding:9px 13px;text-decoration:none!important}
.re-focused-back:hover,.re-focused-back:focus-visible{background:#135a9e}
.re-focused-bottom-back{margin:16px 0 4px;text-align:left}
body.re-error-focused-mode .re-error-head > .re-error-intro{display:none!important}
body.re-error-focused-mode .re-error-head > h1{display:none}
body.re-error-focused-mode .re-error-head > .eyebrow{display:none}
body.re-error-focused-mode .re-error-page .toolbar{display:none!important}
body.re-error-focused-mode .re-error-list > .re-error-row:not(.re-error-is-selected){display:none!important}
body.re-error-focused-mode .re-error-list > .re-error-row.re-error-is-selected{background:#fffbee;border:1px solid #e3c35c;border-radius:10px;padding:14px 15px}
body.re-error-focused-mode .re-error-page .no-results{display:none!important}
body.re-error-focused-mode .re-error-note{display:none}
body.re-error-focused-mode .re-error-banner{display:none}
@media(max-width:570px){.re-error-focused-intro{padding:12px 13px}.re-focused-description{font-size:15px!important}body.re-error-focused-mode .re-error-list > .re-error-row.re-error-is-selected{padding:11px}}

/* Ensure a hash-selected row is visible even when a query-string filter is present. */
body.re-error-focused-mode .re-error-list > .re-error-row.re-error-is-selected{display:grid!important}


/* v44 disclaimer layout correction: larger notice below the main list; compact notice at top in shared-code mode. */
body:not(.re-error-focused-mode) .re-wiki-reference-notice-focused{display:none!important}
body.re-error-focused-mode .re-wiki-reference-notice-index{display:none!important}
.re-error-page > .re-wiki-reference-notice-index{
  display:block; margin:18px 0 22px; padding:12px 15px;
  background:#f4f8fc; border-left:4px solid #d99d32; border-radius:5px;
  color:#233c55; font-size:13px; line-height:1.5;
}
.re-error-page > .re-wiki-reference-notice-index strong{display:block;margin:0 0 5px;color:#092c50;font-size:14px;font-weight:700}
.re-error-page > .re-wiki-reference-notice-index p{display:block;margin:0;font-size:13px;line-height:1.5}

/* v44 position adjustment: place normal-list disclaimer under the final introduction paragraph. */
.re-error-head > .re-wiki-reference-notice-index{
  display:block; margin:12px 0 4px; padding:12px 15px;
  background:#f4f8fc; border-left:4px solid #d99d32; border-radius:5px;
  color:#233c55; font-size:13px; line-height:1.5;
}
.re-error-head > .re-wiki-reference-notice-index strong{display:block;margin:0 0 5px;color:#092c50;font-size:14px;font-weight:700}
.re-error-head > .re-wiki-reference-notice-index p{margin:0;font-size:13px;line-height:1.5}
