/* Dedicated hero sandbox for clamped honeycomb & composite sandwich analysis */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #f3f5f7;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

/* Slim topbar matching PlyDrop brand */
.sw-topbar {
  background: var(--nav);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sw-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sw-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sw-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.sw-sep { color: #666; }
.sw-crumb {
  font-size: 13px;
  color: #b7bec6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sw-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.sw-nav a {
  color: #d6dce2;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.sw-nav a:hover { color: #fff; }
.sw-nav a.sw-nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 7px 13px;
  border-radius: 6px;
  font-weight: 600;
}
.sw-nav a.sw-nav-cta:hover { background: #c55d28; }

/* Page shell */
.sw-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 20px 44px;
}

/* Hero heading & inline plate bar */
.sw-hero-head { margin-bottom: 14px; }
.sw-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.sw-hero-head h1 {
  margin: 0 0 3px;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -0.6px;
  line-height: 1.15;
  color: #181b1f;
}
.sw-subtitle {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}
.sw-share-btn {
  flex-shrink: 0;
  border: 1px solid #cdd3d9;
  background: #fff;
  color: #25272a;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 7px;
  cursor: pointer;
}
.sw-share-btn:hover { border-color: #9ba4ae; background: #fafbfc; }
.sw-share-btn[data-copied="true"] {
  border-color: var(--green);
  color: var(--green);
  background: #eaf5ef;
}

.sw-plate-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr)) minmax(220px, 1.45fr);
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(18, 22, 27, 0.04);
}
.sw-mini-field, .sw-ribbon-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sw-mini-field span, .sw-ribbon-field > span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.sw-mini-field em {
  font-style: normal;
  font-weight: 500;
  color: #7d858e;
}
.sw-mini-field input {
  width: 100%;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 9px;
  border: 1px solid #cfd5dc;
  border-radius: 6px;
  background: #fbfcfd;
}
.sw-mini-field input:focus {
  outline: 2px solid rgba(216, 106, 50, 0.25);
  border-color: var(--brand);
  background: #fff;
}
.sw-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eef1f4;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}
.sw-seg button {
  border: 0;
  background: transparent;
  color: #4b525a;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
}
.sw-seg button[aria-pressed="true"] {
  background: #fff;
  color: #181b1f;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.sw-seg button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Main 2-column hero stage */
.sw-stage {
  display: grid;
  grid-template-columns: minmax(340px, 445px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.sw-controls-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* 3-way construction switcher */
.sw-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.sw-mode-tab {
  border: 1px solid #d4dae0;
  background: #fff;
  border-radius: 9px;
  padding: 8px 9px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.sw-mode-tab strong {
  font-size: 12px;
  font-weight: 700;
  color: #20252b;
  line-height: 1.2;
}
.sw-mode-tab span {
  font-size: 10.5px;
  font-weight: 600;
  color: #707882;
}
.sw-mode-tab .sw-tag-stock {
  color: var(--brand-text);
}
.sw-mode-tab:hover {
  border-color: #9ba4ae;
}
.sw-mode-tab[aria-selected="true"] {
  border-color: var(--brand);
  background: #fff9f5;
  box-shadow: 0 0 0 1px var(--brand);
}

.sw-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(18, 22, 27, 0.04);
}
.sw-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.sw-card-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #181b1f;
}

/* Dark high-contrast verdict card */
.sw-verdict-card {
  background: #172721;
  color: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 3px 10px rgba(18, 28, 24, 0.14);
  transition: background 0.18s ease;
}
.sw-verdict-card[data-meets="false"] {
  background: #2b2217;
}
.sw-verdict-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.sw-verdict-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #8ee0b9;
}
.sw-verdict-card[data-meets="false"] .sw-verdict-eyebrow {
  color: #f4c17a;
}
.sw-verdict-ratio {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.78);
}
.sw-verdict-main strong {
  display: block;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.05;
  margin-bottom: 9px;
}
.sw-verdict-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.sw-verdict-stats span {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.65);
}
.sw-verdict-stats strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.sw-verdict-stats small {
  display: block;
  font-size: 12px;
  color: #a9d9c3;
}
.sw-verdict-card[data-meets="false"] .sw-verdict-stats small {
  color: #f0cea0;
}
.sw-vs {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,.45);
}

/* Tactile sliders */
.sw-slider-group {
  display: block;
  margin-bottom: 12px;
}
.sw-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #2c3138;
}
.sw-slider-head output {
  font-size: 16px;
  font-weight: 800;
  color: #181b1f;
}
.sw-slider-group input[type="range"] {
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  accent-color: var(--brand);
  cursor: ew-resize;
}
.sw-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #7e8790;
  margin-top: 1px;
  padding: 0 2px;
}
.sw-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}
.sw-btn-primary {
  flex: 1 1 auto;
  border: 0;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 7px;
  cursor: pointer;
}
.sw-btn-primary:hover { background: #1d6348; }
.sw-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.sw-btn-ghost {
  border: 1px solid #d0d6dc;
  background: #f8f9fa;
  color: #2b3036;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
}
.sw-btn-ghost:hover { border-color: #9ba4ae; background: #fff; }
.sw-micro-note {
  margin: 9px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* Cross-section + Deflection + Shear split */
.sw-pill-dim {
  font-size: 11.5px;
  font-weight: 600;
  color: #44505c;
  background: #eef2f5;
  padding: 3px 8px;
  border-radius: 99px;
}
.sw-visual-pair {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 8px;
  margin-bottom: 11px;
}
.sw-cross-box, .sw-deflect-box {
  background: #f8f9fb;
  border: 1px solid #e6eaee;
  border-radius: 8px;
  padding: 6px;
}
.sw-cross-box svg, .sw-deflect-box svg {
  display: block;
  width: 100%;
  height: auto;
}
.sw-shear-block {
  border-top: 1px solid #eceff2;
  padding-top: 10px;
}
.sw-shear-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  margin-bottom: 6px;
  color: #444b53;
}
.sw-orange { color: var(--brand-text); }
.sw-bar-track {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #e9edf1;
}
.sw-bar-bend {
  background: var(--blue);
  transition: width 0.14s ease;
}
.sw-bar-shear {
  background: var(--brand);
  transition: width 0.14s ease;
}
.sw-bar-nums {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}

/* Hero Pareto Chart */
.sw-chart-card {
  padding: 16px 18px 14px;
}
.sw-chart-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.sw-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: #535a63;
}
.sw-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sw-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
}
.sw-legend .dot-ok { border-radius: 50%; background: var(--green); }
.sw-legend .dot-soft { border-radius: 50%; background: #fff; border: 1.5px solid #b78133; }
.sw-legend .dot-solid { background: #181b1f; transform: rotate(45deg); width: 8px; height: 8px; }

.sw-plot-wrap {
  margin: 4px 0 8px;
}
.sw-plot-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.sw-pt {
  cursor: pointer;
  transition: r 0.1s ease, stroke-width 0.1s ease;
}
.sw-pt:hover {
  stroke: #181b1f;
  stroke-width: 2;
}
.sw-hover-bar {
  background: #f5f7f9;
  border: 1px solid #e4e8ec;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: #363c44;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Sales Bridge */
.sw-bridge {
  margin-top: 18px;
  background: linear-gradient(135deg, #1b1e23 0%, #242930 100%);
  color: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: center;
  box-shadow: 0 6px 20px rgba(18, 22, 27, 0.14);
}
.sw-bridge-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: #f3a173;
  margin-bottom: 6px;
}
.sw-bridge h2 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.4px;
  color: #fff;
}
.sw-bridge p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #cbd3dc;
  max-width: 66ch;
}
.sw-bridge p strong { color: #fff; }
.sw-bridge-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sw-btn-orange {
  border: 0;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}
.sw-btn-orange:hover { background: #c55d28; }
.sw-btn-outline {
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}
.sw-btn-outline:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.45); }

/* Collapsible Engineering Drawers */
.sw-drawers {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sw-drawer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.sw-drawer summary {
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #1f2429;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sw-drawer summary::-webkit-details-marker { display: none; }
.sw-drawer summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
}
.sw-drawer[open] summary::after { content: '−'; }
.sw-drawer[open] summary { border-bottom: 1px solid #eceff2; }
.sw-drawer-body {
  padding: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #363c44;
}
.sw-drawer-body h3 {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: #181b1f;
}
.sw-drawer-lead { margin: 0 0 12px; color: var(--muted); }
.sw-eq-grid, .sw-ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.sw-code {
  margin: 0;
  padding: 12px 14px;
  background: #f5f7f9;
  border: 1px solid #e4e8ec;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.6;
  overflow-x: auto;
  color: #1c2228;
}
.sw-drawer-body ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sw-drawer-body a { color: var(--blue); }
.sw-mat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}
.sw-mat-footer { margin-top: 12px; }

/* Footer */
.sw-footer {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.sw-footer a { color: #363c44; }

/* Responsive */
@media (max-width: 1020px) {
  .sw-plate-bar { grid-template-columns: repeat(2, 1fr); }
  .sw-ribbon-field { grid-column: 1 / -1; }
  .sw-stage { grid-template-columns: 1fr; }
  .sw-bridge { grid-template-columns: 1fr; }
  .sw-eq-grid, .sw-ref-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sw-topbar-inner { padding: 10px 14px; }
  .sw-crumb, .sw-sep, .sw-nav a:not(.sw-nav-cta) { display: none; }
  .sw-page { padding: 14px 12px 32px; }
  .sw-title-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sw-mode-tabs { grid-template-columns: 1fr; }
  .sw-visual-pair { grid-template-columns: 1fr; }
  .sw-mat-grid { grid-template-columns: repeat(2, 1fr); }
  .sw-legend { display: none; }
}
