.pcs {
  /* --- NWS palette. Values and roles from nws-theme-docs/THEME-GUIDE.md §3.
         Change these, not the rules below. --- */
  --pcs-brand:    #921022;  /* .top-info bar red — kickers, accents, selected state */
  --pcs-brand-dk: #6d0c1a;  /* darker brand, for hover on brand surfaces */
  --pcs-brand-tn: #f7ebee;  /* brand tint — highlight fills */
  --pcs-brand-ln: #e3c4ca;  /* brand tint border */
  --pcs-link:     #1b6ca5;  /* breadcrumb / active tab blue — links */
  --pcs-hover:    #ce3234;  /* a:hover across the theme */
  --pcs-teal:     #5eb5aa;  /* .btn-shopcart — the site's primary action colour */
  --pcs-teal-dk:  #529f95;  /* .btn-shopcart:hover */
  --pcs-surf-dk:  #323232;  /* .btn-spareparts / mobile nav — dark panel heads */
  --pcs-grey:     #8b8b8b;  /* .btn-soldout, inactive tab text */

  --pcs-ink:     #111111;   /* body text */
  --pcs-ink-2:   #333333;
  --pcs-ink-3:   #767676;   /* muted — still AA on white */
  --pcs-ink-on-dk:#b9b9b9;  /* muted text on a dark panel head */
  --pcs-line:    #d7d7d7;   /* the theme's one border colour */
  --pcs-line-2:  #e4e4e4;
  --pcs-paper:   #ffffff;
  --pcs-paper-2: #f7f7f7;   /* inactive tab bg */
  --pcs-paper-3: #efefef;   /* breadcrumb bg / closed accordion */
  --pcs-steel-tn:#f4f8fb;   /* table row hover */
  --pcs-warn:    #8a5a00;
  --pcs-warn-bg: #fff9e6;
  --pcs-warn-ln: #f2e3b5;

  --pcs-r: 4px;             /* Bootstrap 3 radius — the theme is flat */
  --pcs-shadow: none;       /* borders do the work here, not shadows */
  --pcs-head: "Roboto Slab", Georgia, "Times New Roman", serif;
  --pcs-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pcs-mono: "SF Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  font-family: var(--pcs-body);
  font-size: 13px;
  color: var(--pcs-ink);
  line-height: 1.6;

  /* Centred reading column. The page template's content column can run well
     past a comfortable line length on desktop, so cap it here rather than
     relying on the theme's own container width. */
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* Headings use Roboto Slab 700, as the theme does for section headings.
   Scoped to .pcs so the theme's own h2/h3 rules are left alone. */
.pcs h1, .pcs h2, .pcs h3, .pcs h4,
.pcs .pcs-sec-head h2 { font-family: var(--pcs-head); font-weight: 700; color: var(--pcs-ink); }
.pcs h1 { font-size: 30px; line-height: 1.22; margin: 0 0 18px; }

/* Section rhythm. Every major block on the page opens with an <h2> (the FAQ
   heading, the diagram heading, the cross-reference table heading, …) so
   this is the one rule that gives the whole page consistent breathing room
   between sections, instead of each section carrying its own ad-hoc margin. */
.pcs h2 { margin: 52px 0 20px; font-size: 24px; line-height: 1.25; }
.pcs > h2:first-of-type { margin-top: 36px; }

.pcs *,
.pcs *::before,
.pcs *::after { box-sizing: border-box; }

.pcs .pcs-card {
  background: var(--pcs-paper);
  border: 1px solid var(--pcs-line);
  border-radius: var(--pcs-r);
  box-shadow: var(--pcs-shadow);
}
.pcs .pcs-muted { color: var(--pcs-ink-3); }

/* ---------------------------------------------------------------- headings */
.pcs .pcs-sec-head { margin: 0 0 22px; }
.pcs .pcs-kicker {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pcs-brand); font-weight: 700; margin-bottom: 6px;
}
.pcs .pcs-sec-head h2 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.pcs .pcs-sec-head p  { margin: 8px 0 0; color: var(--pcs-ink-2); max-width: 68ch; }

/* ================================================================ SELECTOR */
.pcs .pcs-tool {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
  gap: 22px; align-items: start;
}
@media (max-width: 900px) { .pcs .pcs-tool { grid-template-columns: 1fr; } }

.pcs .pcs-panel { padding: 22px; }
.pcs .pcs-step { margin-bottom: 22px; }
.pcs .pcs-step:last-child { margin-bottom: 0; }
.pcs .pcs-step-label { display: flex; align-items: baseline; gap: 9px; margin-bottom: 9px; }
.pcs .pcs-step-num {
  width: 21px; height: 21px; flex: 0 0 21px; border-radius: 50%;
  background: var(--pcs-brand); color: #fff; font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; transform: translateY(2px);
}
.pcs .pcs-step-label b    { font-size: 14.5px; }
.pcs .pcs-step-label span { color: var(--pcs-ink-3); font-size: 13px; }

.pcs .pcs-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pcs .pcs-opt {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--pcs-line); background: var(--pcs-paper);
  border-radius: var(--pcs-r); padding: 9px 14px;
  font: inherit; font-size: 14px; line-height: 1.3; text-align: left;
  color: var(--pcs-ink-2); cursor: pointer; transition: all .13s ease;
}
.pcs .pcs-opt:hover:not(:disabled) { border-color: var(--pcs-ink-3); color: var(--pcs-ink); }
.pcs .pcs-opt[aria-pressed="true"] {
  background: var(--pcs-brand); border-color: var(--pcs-brand); color: #fff; font-weight: 700;
}
.pcs .pcs-opt:disabled { opacity: .36; cursor: not-allowed; }
.pcs .pcs-opt small { display: block; font-size: 11.5px; opacity: .72; font-weight: 400; margin-top: 1px; }

.pcs .pcs-blurb {
  margin-top: 10px; font-size: 13.5px; color: var(--pcs-ink-2);
  background: var(--pcs-paper-2); border-left: 3px solid var(--pcs-line);
  padding: 9px 12px; border-radius: 0 var(--pcs-r) var(--pcs-r) 0;
}

/* ================================================================== RESULT */
.pcs .pcs-result { padding: 0; overflow: hidden; }
.pcs .pcs-result-hd { background: var(--pcs-surf-dk); color: #fff; padding: 16px 22px; }
.pcs .pcs-result-hd .pcs-t {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pcs-ink-on-dk); font-weight: 700;
}
.pcs .pcs-result-hd .pcs-v { font-size: 17px; font-weight: 700; margin-top: 3px; line-height: 1.3; }

.pcs .pcs-stack { list-style: none; margin: 0; padding: 0; }
.pcs .pcs-stack-row {
  display: grid; grid-template-columns: 104px 56px minmax(0,1fr); gap: 14px;
  padding: 14px 22px; border-top: 1px solid var(--pcs-line-2); align-items: start;
}

/* Product thumbnail. Fixed box so rows stay aligned whatever the source image
   aspect ratio is; object-fit keeps the part undistorted inside it. */
.pcs .pcs-thumb {
  width: 56px; height: 56px; flex: 0 0 56px;
  object-fit: contain; background: var(--pcs-paper);
  border: 1px solid var(--pcs-line); border-radius: var(--pcs-r);
  padding: 3px; display: block;
}
/* Placeholder for the parts with no image on the site. A faint diagonal, so an
   absent image reads as "none supplied" rather than as a loading failure. */
.pcs .pcs-thumb-none {
  background:
    linear-gradient(135deg, transparent 46%, var(--pcs-line) 46%,
                    var(--pcs-line) 54%, transparent 54%),
    var(--pcs-paper-2);
}

/* The thumbnail links to the product too. It is aria-hidden and out of the tab
   order, because the part number beside it already links to the same place —
   one destination should not cost a screen-reader user two stops. */
.pcs .pcs-thumb-link { display: block; text-decoration: none; }
.pcs .pcs-thumb-link:hover .pcs-thumb,
.pcs .pcs-thumb-link:focus .pcs-thumb { border-color: var(--pcs-brand); }

/* Narrow screens: drop the thumbnail column rather than squeeze three columns. */
@media (max-width: 460px) {
  .pcs .pcs-stack-row { grid-template-columns: 1fr; gap: 6px; }
  .pcs .pcs-thumb, .pcs .pcs-thumb-link { display: none; }
}
.pcs .pcs-stack-row:first-child { border-top: 0; }
.pcs .pcs-role {
  font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--pcs-ink-3); font-weight: 700; padding-top: 3px;
}
.pcs .pcs-desc { font-size: 14px; color: var(--pcs-ink-2); }
.pcs .pcs-meta { font-size: 12.5px; color: var(--pcs-ink-3); margin-top: 3px; }
.pcs .pcs-why  { font-size: 12.5px; color: var(--pcs-ink-3); margin-top: 5px; font-style: italic; }

/* part numbers */
.pcs .pcs-pn {
  font-family: var(--pcs-mono); font-size: 15px; font-weight: 600;
  color: var(--pcs-ink); text-decoration: none;
  border-bottom: 1px solid var(--pcs-link); padding-bottom: 1px;
}
.pcs a.pcs-pn:hover, .pcs a.pcs-pn:focus { color: var(--pcs-hover); border-bottom-color: var(--pcs-hover); text-decoration: none; }
.pcs .pcs-pn-nolink { border-bottom-style: dotted; border-bottom-color: var(--pcs-grey); color: var(--pcs-grey); cursor: help; }

.pcs .pcs-pill {
  display: inline-block; font-size: 11px; font-weight: 700;
  background: var(--pcs-paper-3); color: var(--pcs-ink-2);
  border-radius: 3px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px;
}
.pcs .pcs-pill-alt { background: var(--pcs-brand-tn); color: var(--pcs-brand-dk); }

.pcs .pcs-note-tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 4px;
  background: var(--pcs-brand-tn); color: var(--pcs-brand-dk);
  border: 1px solid var(--pcs-brand-ln); font-size: 11px; font-weight: 700;
  margin-left: 5px; cursor: help;
}

.pcs .pcs-warn {
  margin: 0; padding: 12px 22px; background: var(--pcs-warn-bg);
  border-top: 1px solid var(--pcs-warn-ln); color: var(--pcs-warn); font-size: 13.5px;
}
.pcs .pcs-warn p { margin: 0 0 4px; }
.pcs .pcs-warn p:last-child { margin: 0; }
.pcs .pcs-warn p::before { content: "\26A0  "; }

.pcs .pcs-result-ft {
  padding: 16px 22px; background: var(--pcs-paper-2);
  border-top: 1px solid var(--pcs-line);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.pcs .pcs-kit-note { font-size: 13px; color: var(--pcs-ink-2); flex: 1 1 200px; }

/* buttons — own classes so theme .btn overrides cannot distort them */
.pcs .pcs-btn {
  display: inline-block; background: var(--pcs-teal); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border: 0; border-radius: var(--pcs-r); cursor: pointer;
  font-family: inherit; line-height: 1.3;
}
.pcs .pcs-btn:hover, .pcs .pcs-btn:focus { background: var(--pcs-teal-dk); color: #fff; text-decoration: none; }
.pcs .pcs-btn-ghost {
  background: transparent; color: var(--pcs-ink-2); border: 1px solid var(--pcs-line);
}
.pcs .pcs-btn-ghost:hover { background: var(--pcs-paper); color: var(--pcs-ink); }

/* ================================================================= DIAGRAM */
.pcs .pcs-map-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 280px;
  gap: 22px; align-items: start;
}
@media (max-width: 860px) { .pcs .pcs-map-grid { grid-template-columns: 1fr; } }

.pcs .pcs-map {
  position: relative; background: var(--pcs-paper);
  border: 1px solid var(--pcs-line); border-radius: var(--pcs-r);
  padding: 10px; box-shadow: var(--pcs-shadow);
}
.pcs .pcs-map img { display: block; width: 100%; height: auto; border-radius: 4px; }
.pcs .pcs-map-layer { position: absolute; top: 10px; right: 10px; bottom: 10px; left: 10px; }

.pcs .pcs-hot {
  position: absolute; display: block; padding: 0;
  background: transparent; border: 2px solid transparent; border-radius: 3px;
  cursor: pointer; transition: all .15s ease;
}
.pcs .pcs-hot:hover, .pcs .pcs-hot:focus {
  border-color: var(--pcs-brand); background: rgba(146,16,34,.10); outline: none;
}
.pcs .pcs-tag {
  position: absolute; top: -9px; left: -7px; white-space: nowrap;
  background: var(--pcs-brand); color: #fff; font-size: 10.5px; font-weight: 700;
  border-radius: 4px; padding: 1px 5px; opacity: 0; transition: opacity .15s;
  font-family: var(--pcs-mono);
}
.pcs .pcs-hot:hover .pcs-tag, .pcs .pcs-hot:focus .pcs-tag { opacity: 1; }

.pcs .pcs-map.pcs-filtered .pcs-hot { opacity: .18; }
.pcs .pcs-map.pcs-filtered .pcs-hot.pcs-on {
  opacity: 1; border-color: var(--pcs-brand); background: rgba(146,16,34,.16);
  box-shadow: 0 0 0 3px rgba(146,16,34,.18);
}
.pcs .pcs-map.pcs-filtered .pcs-hot.pcs-on .pcs-tag { opacity: 1; }

.pcs .pcs-aside { position: sticky; top: 16px; }
.pcs .pcs-tip { padding: 16px 18px; }
.pcs .pcs-tip h4 { margin: 4px 0 0; font-size: 16px; }
.pcs .pcs-tip-pn { font-family: var(--pcs-mono); }
.pcs .pcs-tip-note {
  font-size: 12.5px; color: var(--pcs-ink-2); background: var(--pcs-paper-2);
  border-radius: var(--pcs-r); padding: 8px 10px; margin-top: 10px;
}
.pcs .pcs-tip-cta { margin: 12px 0 0; }

/* =================================================================== TABLE */
.pcs .pcs-tbl-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.pcs .pcs-search {
  font: inherit; font-size: 14px; padding: 9px 13px;
  border: 1px solid var(--pcs-line); border-radius: var(--pcs-r);
  min-width: 260px; max-width: 100%; background: var(--pcs-paper); height: auto;
}
.pcs .pcs-count { font-size: 13.5px; color: var(--pcs-ink-3); }

.pcs .pcs-tbl-scroll {
  overflow-x: auto; border: 1px solid var(--pcs-line);
  border-radius: var(--pcs-r); box-shadow: var(--pcs-shadow); background: var(--pcs-paper);
}
.pcs .pcs-tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.pcs .pcs-tbl th {
  text-align: left; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--pcs-ink-3); padding: 11px 14px; white-space: nowrap;
  border-bottom: 1px solid var(--pcs-line); background: var(--pcs-paper-2);
}
.pcs .pcs-tbl td { padding: 11px 14px; border-bottom: 1px solid var(--pcs-line-2); vertical-align: top; }
.pcs .pcs-tbl tbody tr:hover { background: var(--pcs-steel-tn); }
.pcs .pcs-tbl .pcs-c { text-align: center; color: var(--pcs-ink-3); }
.pcs .pcs-tbl .pcs-ref { font-family: var(--pcs-mono); font-size: 13px; }

.pcs .pcs-locate {
  display: inline-block; margin-left: 8px; padding: 2px 8px;
  font-size: 11px; font-family: inherit; line-height: 1.6;
  background: var(--pcs-paper-3); color: var(--pcs-ink-2);
  border: 1px solid var(--pcs-line); border-radius: 3px; cursor: pointer;
}
.pcs .pcs-locate:hover { background: var(--pcs-brand-tn); color: var(--pcs-brand-dk); border-color: var(--pcs-brand-ln); }

/* ================================================================= ARTICLE */
.pcs .pcs-article { max-width: 74ch; }
.pcs .pcs-article h3 { font-size: 19px; margin: 30px 0 8px; }
.pcs .pcs-article h3:first-child { margin-top: 0; }
.pcs .pcs-article p  { margin: 0 0 12px; color: var(--pcs-ink-2); }
.pcs .pcs-article ul { margin: 0 0 14px; padding-left: 20px; color: var(--pcs-ink-2); }
.pcs .pcs-article li { margin-bottom: 6px; }
.pcs .pcs-article strong { color: var(--pcs-ink); }

.pcs .pcs-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin: 18px 0;
}
.pcs .pcs-mini { padding: 16px 18px; }
.pcs .pcs-mini h4 { margin: 0 0 5px; font-size: 15px; }
.pcs .pcs-mini p  { margin: 0; font-size: 13.5px; color: var(--pcs-ink-2); }

.pcs .pcs-inline-pn { font-family: var(--pcs-mono); font-size: .92em; font-weight: 600; white-space: nowrap; }

/* ================================================================== LEGEND */
.pcs .pcs-legend { display: grid; gap: 10px; }
.pcs .pcs-legend-row {
  display: grid; grid-template-columns: 30px 1fr; gap: 10px;
  font-size: 13.5px; color: var(--pcs-ink-2);
}
.pcs .pcs-legend-row b {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 3px;
  background: var(--pcs-brand-tn); color: var(--pcs-brand-dk);
  border: 1px solid var(--pcs-brand-ln); font-size: 12px;
}

/* ============================================== DIRECT-ANSWER / GEO BLOCKS */

/* The "short answer" box — keep it visually distinct and near the top. */
.pcs .pcs-answer {
  background: var(--pcs-brand-tn);
  border: 1px solid var(--pcs-brand-ln);
  border-left: 4px solid var(--pcs-brand);
  border-radius: 0 var(--pcs-r) var(--pcs-r) 0;
  padding: 16px 20px;
  margin: 0 0 20px;
}
.pcs .pcs-answer p { margin: 0; color: var(--pcs-ink); font-size: 15.5px; }
.pcs .pcs-answer p + p { margin-top: 10px; }

/* The three mix-and-match rule cards */
.pcs .pcs-rule { border-top: 3px solid var(--pcs-brand); }
.pcs .pcs-rule h4 { color: var(--pcs-brand-dk); }

/* Mix-and-match panel inside the selector result */
.pcs .pcs-mix {
  padding: 14px 22px;
  background: var(--pcs-brand-tn);
  border-top: 1px solid var(--pcs-brand-ln);
}
.pcs .pcs-mix-hd {
  font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
  font-weight: 700; color: var(--pcs-brand-dk); margin-bottom: 7px;
}
.pcs .pcs-mix-row { font-size: 13px; color: var(--pcs-ink-2); margin-bottom: 5px; }
.pcs .pcs-mix-row:last-child { margin-bottom: 0; }
.pcs .pcs-mix-row b { color: var(--pcs-ink); }
.pcs .pcs-mix-row code {
  font-family: var(--pcs-mono); font-size: 12px; background: #fff;
  border: 1px solid var(--pcs-brand-ln); border-radius: 4px; padding: 1px 5px; color: var(--pcs-ink);
}

/* Configuration matrix — narrower cells, it has nine columns */
.pcs .pcs-tbl-matrix { font-size: 13.5px; }
.pcs .pcs-tbl-matrix td,
.pcs .pcs-tbl-matrix th { padding: 9px 11px; white-space: nowrap; }
.pcs .pcs-tbl-matrix .pcs-pn { font-size: 13.5px; }
.pcs .pcs-tbl-matrix em { color: var(--pcs-ink-3); font-size: 12px; font-style: normal; }

/* FAQ — question/answer pairs. Static by default (every question ships
   expanded, in case enhanceFaq() in the JS never runs); the pcs-qa-btn /
   pcs-qa-panel rules below only come into play once it does. */
.pcs .pcs-faq { max-width: 78ch; }
.pcs .pcs-qa {
  padding: 16px 0;
  border-bottom: 1px solid var(--pcs-line-2);
}
.pcs .pcs-qa:last-child { border-bottom: 0; }
.pcs .pcs-qa h3 { margin: 0 0 6px; font-size: 16.5px; }
.pcs .pcs-qa p  { margin: 0; color: var(--pcs-ink-2); }

/* Accordion toggle, added around the question text by enhanceFaq(). Reset to
   a plain block button so it inherits the h3's own type styling. */
.pcs .pcs-qa-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; margin: 0; padding: 2px 0;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-family: inherit; font-size: inherit; font-weight: inherit;
  color: inherit; text-align: left;
}
.pcs .pcs-qa-btn:hover, .pcs .pcs-qa-btn:focus { color: var(--pcs-brand); outline: none; }

/* Plus/minus indicator — two bars that collapse into one on expand, so it
   reads as a minus without a separate expanded-state icon. */
.pcs .pcs-qa-ico { position: relative; flex: 0 0 18px; width: 18px; height: 18px; }
.pcs .pcs-qa-ico::before, .pcs .pcs-qa-ico::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--pcs-ink-3); border-radius: 1px;
  transform: translate(-50%, -50%);
}
.pcs .pcs-qa-btn:hover .pcs-qa-ico::before, .pcs .pcs-qa-btn:hover .pcs-qa-ico::after,
.pcs .pcs-qa-btn:focus .pcs-qa-ico::before, .pcs .pcs-qa-btn:focus .pcs-qa-ico::after {
  background: var(--pcs-brand);
}
.pcs .pcs-qa-ico::before { width: 12px; height: 2px; }
.pcs .pcs-qa-ico::after  { width: 2px; height: 12px; transition: transform .15s ease, opacity .15s ease; }
.pcs .pcs-qa-btn[aria-expanded="true"] .pcs-qa-ico::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.pcs .pcs-qa-panel { padding-top: 10px; }
.pcs .pcs-qa-panel[hidden] { display: none; }

/* ================================================================ FALLBACK
   Shown only until the script replaces it (and permanently if JS is off). */
.pcs .pcs-fallback { padding: 18px 20px; }
.pcs .pcs-fallback > p:first-child { margin-top: 0; }
.pcs .pcs-fallback > :last-child { margin-bottom: 0; }

/* =================================================================== PRINT */
@media print {
  .pcs .pcs-panel, .pcs .pcs-result-ft, .pcs .pcs-tbl-tools,
  .pcs .pcs-locate, .pcs .pcs-aside { display: none !important; }
  .pcs .pcs-tool { grid-template-columns: 1fr; }
  .pcs .pcs-card { box-shadow: none; }
}
