/* site.css — additions for the fire/smoke session (shared.css stays identical to fan-curves) */

:root {
  /* assembly palette: warm = fire side, blue = smoke side */
  --a-fw: #e5484d;   /* fire wall       */
  --a-fb: #d95926;   /* fire barrier    */
  --a-fp: #c98500;   /* fire partition  */
  --a-sb: #3987e5;   /* smoke barrier   */
  --a-sp: #7fb0ee;   /* smoke partition */
  --slab: #3a3a37;
  --duct: #55595e;
  --duct-edge: #8a8e93;
}

/* ---- segmented buttons (layer / focus pickers) ---- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--border); border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 550;
  padding: 7px 15px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.seg button:hover { color: var(--ink); border-color: rgba(255,255,255,0.25); }
.seg button[aria-pressed="true"] { color: var(--ink); background: #33332f; border-color: rgba(255,255,255,0.35); }
.seg .dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.toolbar { display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }

/* ---- scenes ---- */
svg.scene-svg { display: block; width: 100%; height: auto; background: var(--surface); border-radius: 12px; }
.slab    { fill: var(--slab); }
.earth   { fill: #151514; }
.ceiling { stroke: #5d5d58; stroke-width: 2; stroke-dasharray: 7 6; fill: none; }
.room-label { fill: var(--muted); font-size: 15px; text-anchor: middle; }
.wall-label { font-size: 13.5px; font-weight: 700; text-anchor: middle; letter-spacing: 0.04em; }
.wall-sub   { font-size: 12.5px; text-anchor: middle; fill: var(--ink-2); }
.anno { fill: var(--ink-2); font-size: 13px; }
.anno-line { stroke: var(--ink-2); stroke-width: 1.2; fill: none; }

.wall { transition: opacity .3s ease; }
svg[data-focus]:not([data-focus="all"]) .wall { opacity: 0.16; }
svg[data-focus="fw"] .wall.fw,
svg[data-focus="fb"] .wall.fb,
svg[data-focus="fp"] .wall.fp,
svg[data-focus="sb"] .wall.sb,
svg[data-focus="sp"] .wall.sp { opacity: 1; }

.duct { fill: var(--duct); stroke: var(--duct-edge); stroke-width: 1.2; }
.layer { transition: opacity .35s ease; }
.layer.off { opacity: 0; pointer-events: none; }

.damper rect { stroke: #0d0d0d; stroke-width: 1.5; }
.damper line { stroke: #0d0d0d; stroke-width: 2.2; }
.damper text { font-size: 13px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }

/* ---- info cards ---- */
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
@media (max-width: 1100px) { .info-grid { grid-template-columns: 1fr; } }
.info-grid .card { border-top: 3px solid var(--accent, var(--border)); }
.info-grid h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.info-grid h3 .cite { font-size: 13px; font-weight: 500; color: var(--muted); }
.big-rating { font-size: 30px; font-weight: 650; line-height: 1.15; }
.big-rating small { font-size: 15px; color: var(--ink-2); font-weight: 500; }

/* ---- comparison table ---- */
table.compare { border-collapse: collapse; width: 100%; font-size: 15.5px; }
table.compare th, table.compare td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--grid); }
table.compare thead th { font-size: 15px; border-bottom: 2px solid var(--baseline); }
table.compare tbody th { color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
table.compare td { color: var(--ink-2); }
table.compare td strong { color: var(--ink); }
.swatch-h { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }

/* ---- damper type cards ---- */
.dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.dcard { border-top: 3px solid var(--accent, var(--border)); }
.dcard .tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; padding: 2px 9px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); margin-bottom: 6px; }
.dcard dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 15px; }
.dcard dt { color: var(--muted); }
.dcard dd { margin: 0; color: var(--ink-2); }
.dcard dd strong { color: var(--ink); }

table.simple { border-collapse: collapse; font-size: 15.5px; width: 100%; }
table.simple th, table.simple td { padding: 8px 12px; border-bottom: 1px solid var(--grid); text-align: left; }
table.simple th { color: var(--muted); font-weight: 600; font-size: 14px; }
table.simple td.num, table.simple th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.simple tr.hl td { color: var(--ink); font-weight: 650; }

/* ---- finder ---- */
.finder { display: grid; grid-template-columns: 420px 1fr; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .finder { grid-template-columns: 1fr; } }
.q { margin: 0 0 16px; }
.q > .qlabel { font-size: 14px; color: var(--muted); margin-bottom: 7px; display: block; }
.checks { display: grid; gap: 4px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); padding: 5px 8px; border-radius: 8px; cursor: pointer; }
.checks label:hover { background: var(--surface-2); color: var(--ink); }
.checks input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--s-fan); flex: none; }
.checks label.disabled { opacity: 0.35; pointer-events: none; }
.verdict { border-radius: 14px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--accent, var(--border)); }
.verdict .v-head { font-size: 14px; color: var(--muted); }
.verdict .v-main { font-size: 34px; font-weight: 650; line-height: 1.15; margin: 4px 0 6px; }
.verdict .v-rating { font-size: 19px; color: var(--ink); margin-bottom: 12px; }
.verdict .v-cite { font-size: 14px; color: var(--muted); margin-top: 12px; }
.verdict ul { margin: 6px 0 0; padding-left: 22px; }
.verdict li { margin: 6px 0; color: var(--ink-2); }
.verdict li strong { color: var(--ink); }

/* smoke-floor scene bits */
.room-wall { stroke: #4a4a46; stroke-width: 2; }
.smoke-fill { fill: #8d8d86; opacity: 0; transition: opacity 1.2s ease; }
.fire-on .smoke-fill.burning { opacity: 0.55; }
.evac { opacity: 0; transition: opacity .6s ease .6s; }
.fire-on .evac { opacity: 1; }
.door-leaf { stroke: var(--a-sb); stroke-width: 3; transition: transform .6s ease; }
.sd-state { transition: fill .4s ease; }
.lbl { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
