/* Rev L: a restrained nineteenth-century drafting-paper treatment. */
:root {
  color-scheme: light;
  --navy: #263541;
  --blue: #315f79;
  --ink: #29343a;
  --muted: #65716f;
  --line: #d5cbb8;
  --bg: #f3efe6;
  --quote: #80592b;
  --paper: #fffdf8;
  --brass: #9a773f;
}

body {
  color: var(--ink);
  background: radial-gradient(circle at 15% 0, #faf7ef 0, transparent 42%), var(--bg);
}

h1, h2, h3, .family-heading, .group legend {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -.015em;
}

h1, .section-head h1, .product-detail h1, .browse-title h1 { color: #263541; }
a, .text-button, .code { color: var(--blue); }
a:hover { color: #244c63; }
button, input, select, textarea { font-family: Arial, Helvetica, sans-serif; }
button { border-color: var(--line); border-radius: 7px; }
button:hover { border-color: var(--blue); background: #f8f7f2; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #4b8fb2;
  outline-offset: 3px;
}
.primary { background: var(--blue); border-color: var(--blue); color: white; }
.primary:hover { background: #244f69; border-color: #244f69; color: white; }
.eyebrow, .series-title { color: #76603e; letter-spacing: .15em; }
.pill, .standard-label, .auto-tag { letter-spacing: .04em; }

.site-header {
  width: 100%;
  max-width: none;
  background: var(--paper);
  border: 0;
  border-top: 4px solid var(--navy);
  border-bottom: 1px solid var(--line);
  padding: 17px max(22px, calc((100% - 1420px)/2));
}
.site-header .pill {
  color: #68512e;
  background: #f5ebd6;
  border: 1px solid #ddca9d;
  border-radius: 3px;
}
.product-nav {
  width: calc(100% - 44px);
  max-width: 1420px;
  margin: 16px auto 0;
  background: var(--navy);
  border: 1px solid #23313a;
  border-radius: 5px;
}
.product-nav a {
  color: #f3eee2;
  border-right-color: #ffffff25;
}
.product-nav a:hover, .product-nav a[aria-current=page] {
  background: #394b57;
  color: #fff;
  box-shadow: inset 0 -3px var(--brass);
}
.breadcrumb { color: #696b64; }
.breadcrumb a { color: var(--blue); }

.steps, .config-card, .review-card, .product-tile, .build-photo,
.skid-model, .basket-row, .basket-total, .component-start,
.option-group, .catalog-card, .empty {
  background: var(--paper);
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: 0 3px 12px #372b1708;
}
.steps button[aria-current=step] { background: #f7f0df; color: #35536a; }
.steps button[aria-current=step] b { background: var(--navy); }
.steps b { background: #ebe5d9; }
.option-group>summary strong { color: #34546a; }
.option-group[open]>summary { border-bottom-color: var(--line); }
.choice {
  background: #fffefa;
  border-color: #d9d1c3;
  border-radius: 7px;
  min-width: 0;
}
.choice:has(input:checked) { background: #edf3f3; border-color: var(--blue); }
.choice input, .option-group input, .check-option input { accent-color: var(--blue); }
.choice .cost { color: #385b67; }
.standard-label { color: #355c48!important; background: #e8f0e6; }
.advanced-choice { background: #f9f6ef; border-color: #bba987; color: #36586a; }
.info, .shaft-note { background: #eef1ed; border-left-color: var(--blue); color: #405b62; }
.quote-note { background: #fbf3e4; border-left-color: var(--brass); color: #72552f; }

.summary-panel {
  background: var(--navy);
  color: #f9f6ec;
  border: 1px solid #1d303a;
  border-top: 4px solid var(--brass);
  border-radius: 8px;
  box-shadow: 0 8px 25px #26354118;
}
.summary-panel h2 { color: #fffaf0; }
.summary-panel .eyebrow { color: #e1c990; }
.summary-panel .summary-label,
.summary-panel p, .assembly-summary { color: #d5ddd9; }
.summary-panel .primary { background: #f8f3e8; color: #263541; border-color: #f8f3e8; }
.summary-panel .primary:hover { background: #e8dbc1; border-color: #e8dbc1; }
.summary-panel summary { color: #f5dfa7; }
.summary-panel .quote { color: #f4d59a!important; }

/* Keep the controls and assembly at the same starting line, even when a
   selected meter adds drawing details and expands the sheet vertically. */
.skid-building main { max-width: 1470px!important; }
.skid-building .layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(18px, 2.3vw, 32px);
  align-items: start;
}
.skid-building #workspace, .skid-building #summary { min-width: 0; }
.skid-building #summary { position: static; align-self: start; }
.skid-building .section-head { align-items: flex-start; }
.skid-building .section-head h1 { line-height: 1.15; }
.skid-building .section-head p { line-height: 1.55; }
.skid-building .config-card { padding: clamp(18px, 2.2vw, 28px); }
.skid-controls > .group { margin: 24px 0 0; padding: 0 0 24px; border-bottom-color: var(--line); }
.skid-controls > .group:first-of-type { margin-top: 0; }
.skid-controls legend { color: #303c42; font-size: 18px; line-height: 1.25; }
.skid-controls select {
  color: var(--ink);
  background: #fffefa;
  border-color: #c9c1b3;
  border-radius: 6px;
  font-size: 14px;
  min-height: 44px;
}
.skid-controls .choice { min-height: 60px; align-content: center; }
.motor-options { gap: 10px; }
.motor-options .choice { min-height: 52px; }
.skid-size-result {
  background: #f4f1e8;
  border: 1px solid #e2d7c3;
  border-radius: 6px;
  gap: 12px;
}
.auto-tag { color: #5a584b; border: 1px solid #e0d5c4; }
.meter-configuration { border-top-color: var(--line); }
.meter-selection strong { color: var(--blue); }
.meter-subtotal { border-top-color: var(--line); }
.skid-advanced > summary { color: var(--blue); }

.skid-model {
  margin: 0 0 16px;
  padding: 16px;
  overflow: hidden;
  background: #fffefa;
  box-shadow: 0 5px 18px #372b1710, inset 0 0 0 5px #f6f1e8;
}
.model-caption {
  align-items: baseline;
  padding: 5px 7px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #d6c8ad;
}
.model-caption .eyebrow { color: #715a33; }
.model-caption strong { color: #34444c; }
.skid-model svg,
.skid-model svg.bc-skid-view {
  display: block;
  width: 100%;
  max-width: 760px;
  max-height: none!important;
  height: auto;
  margin-inline: auto;
}
.skid-model figcaption {
  border-top: 1px solid #e6dcc8;
  margin-top: 12px;
  padding: 12px 7px 1px;
  color: #62685f;
  line-height: 1.5;
}
.skid-building .summary-panel { padding: 22px 24px; }
.skid-invitation { background: #f6f1e6; border-color: #d9c9aa; }
.skid-invitation h2 { color: #263541; }
.assembly-items { border-top-color: var(--line); }
.assembly-items .review-row small { color: var(--blue); }
.review-row { border-bottom-color: #e9e1d4; }
.footnote { border-top-color: var(--line); }

@media (max-width: 820px) {
  .skid-building .layout { display: flex; flex-direction: column; gap: 20px; }
  .skid-building #summary { order: -1; width: 100%; }
  .skid-building .summary-panel { display: block; }
  .skid-building #workspace { width: 100%; }
  .skid-building .skid-model svg { max-height: none!important; }
  .skid-model { width: 100%; }
  .skid-building .config-card { padding: 20px; }
}

@media (max-width: 600px) {
  .site-header { padding: 13px 18px; }
  .product-nav { width: calc(100% - 36px); margin-top: 12px; }
  .skid-building .section-head { flex-wrap: wrap; gap: 10px; }
  .skid-building .section-head h1 { font-size: 27px; }
  .skid-model { padding: 10px; }
  .model-caption { margin: 2px 3px 7px; padding: 4px 2px 9px; }
  .skid-model figcaption { margin-top: 8px; padding: 10px 3px 2px; }
  .skid-building .summary-panel { padding: 18px; }
  .skid-controls > .group { margin-top: 21px; padding-bottom: 21px; }
  .motor-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skid-size-result { align-items: flex-start; }
  .skid-building .config-card { padding: 17px; }
  .skid-building .controls-row { gap: 9px; }
}

@media (max-width: 380px) {
  .site-header img { width: 114px; }
  .motor-options { gap: 7px; }
  .motor-options .choice { padding: 10px 8px; }
  .motor-options .choice:has(input:checked) { padding: 9px 7px; }
  .skid-size-result { flex-wrap: wrap; }
}

@media print {
  body { background: #fff; }
  .skid-building .layout { display: block; }
  .config-card, .review-card, .skid-model, .basket-row { box-shadow: none; border-color: #999; }
  .skid-model svg { max-height: none!important; }
}
