/* SOG Generator Wattage Calculator v0.5.0 - matches Rishi palette (teal #32a690, deep teal #09424f, navy #0e132b) */
.sog-gencalc, .sog-gc-chart {
  --gc-teal: #32a690; --gc-deep: #09424f; --gc-navy: #0e132b; --gc-text: #343746;
  --gc-soft: #eff8f6; --gc-soft2: #f4faf9; --gc-line: #d9e6e3; --gc-warn: #8a4b08; --gc-warn-bg: #fff6e9;
  font-family: Roboto, -apple-system, "Segoe UI", Arial, sans-serif; color: var(--gc-text); font-size: 16px; line-height: 1.5;
}
.sog-gencalc { container-type: inline-size; margin: 1.5em 0 2em; }
.sog-gencalc *, .sog-gc-chart * { box-sizing: border-box; }
.sog-gc-loading, .sog-gc-noscript { padding: 1em; background: var(--gc-soft); border-radius: 8px; }
.sog-gc-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@container (min-width: 900px) {
  .sog-gc-grid { grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); align-items: start; }
  .sog-gc-results { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; }
}
.sog-gencalc h3.sog-gc-step, .sog-gencalc h3.sog-gc-res-title {
  font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 20px; line-height: 1.3; margin: 0 0 10px; color: var(--gc-navy);
}
.sog-gencalc h3.sog-gc-step:not(:first-child) { margin-top: 22px; }
.sog-gc-hint { font-size: 14px; margin: 0 0 12px; color: #555b6b; }

/* presets */
.sog-gc-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.sog-gc-chip {
  font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--gc-teal);
  background: #fff; color: var(--gc-deep); cursor: pointer; line-height: 1.3;
}
.sog-gc-chip:hover, .sog-gc-chip:focus-visible { background: var(--gc-soft); }
.sog-gc-chip.is-active { background: var(--gc-teal); color: #fff; }
.sog-gc-chip-clear { border-color: #b8c4c2; color: #555b6b; }

/* category accordions */
.sog-gc-cat { border: 1px solid var(--gc-line); border-radius: 10px; margin: 0 0 10px; background: #fff; }
.sog-gc-cat > summary {
  list-style: none; cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--gc-navy);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.sog-gc-cat > summary::-webkit-details-marker { display: none; }
.sog-gc-cat > summary::after { content: "+"; font-size: 20px; color: var(--gc-teal); line-height: 1; }
.sog-gc-cat[open] > summary::after { content: "−"; }
.sog-gc-cat[open] > summary { border-bottom: 1px solid var(--gc-line); }
.sog-gc-count { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--gc-teal); }

/* appliance rows */
.sog-gc-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px 10px; padding: 10px 16px; border-bottom: 1px solid #edf2f1; align-items: center; }
.sog-gc-row:last-child { border-bottom: 0; }
.sog-gc-row.is-on { background: var(--gc-soft2); }
.sog-gc-row-head { display: none; }
.sog-gc-name { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
.sog-gc-nm { flex: 1; min-width: 0; }
.sog-gc-nm .sog-gc-tag { margin-left: 4px; vertical-align: 1px; }
.sog-gc-name input { width: 18px; height: 18px; accent-color: var(--gc-teal); margin: 3px 0 0; flex: none; }
.sog-gc-row:not(.is-on) .sog-gc-field { display: none; }
.sog-gc-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; padding: 2px 6px; border-radius: 4px; background: #e6eef8; color: #2b4a7a; }
.sog-gc-field { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #555b6b; }
.sog-gc-field input[type=number] { width: 100%; }
.sog-gc-occ { flex-direction: row; align-items: center; gap: 6px; grid-column: 1 / -1; }
.sog-gc-occ input { width: 18px; height: 18px; accent-color: var(--gc-teal); }
.sog-gencalc input[type=number], .sog-gencalc input[type=text] {
  font: inherit; font-size: 15px; padding: 7px 9px; border: 1px solid #c9d6d3; border-radius: 6px; background: #fff; color: var(--gc-text); min-height: 38px;
}
.sog-gencalc input:focus-visible, .sog-gencalc button:focus-visible, .sog-gencalc summary:focus-visible { outline: 2px solid var(--gc-teal); outline-offset: 2px; }
@container (min-width: 560px) {
  .sog-gc-row { grid-template-columns: minmax(0, 2.4fr) 70px 100px 100px 84px; }
  .sog-gc-row-head { display: grid; font-size: 12px; font-weight: 600; color: #555b6b; text-transform: uppercase; letter-spacing: .03em; padding-top: 8px; padding-bottom: 6px; }
  .sog-gc-name { grid-column: auto; }
  .sog-gc-row:not(.is-on) .sog-gc-field { display: flex; }
  .sog-gc-occ { grid-column: auto; justify-content: center; }
  .sog-gc-ml { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* custom + settings */
.sog-gc-custom-form { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px 16px; }
@container (min-width: 560px) { .sog-gc-custom-form { grid-template-columns: 2fr 1fr 1.3fr auto; } }
.sog-gc-custom-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 8px 16px; border-top: 1px solid #edf2f1; font-size: 14px; }
.sog-gc-custom-row .sog-gc-name { grid-column: auto; cursor: default; }
.sog-gc-check-sm { display: inline-flex; gap: 4px; align-items: center; }
.sog-gc-x { margin-left: auto; border: 0; background: none; font-size: 22px; line-height: 1; color: #8a8f9c; cursor: pointer; padding: 0 4px; }
.sog-gc-settings-grid { display: grid; gap: 16px; padding: 14px 16px; }
.sog-gc-settings-grid label { display: flex; flex-direction: column; gap: 4px; }
.sog-gc-settings-grid small { color: #555b6b; font-size: 13px; }
.sog-gc-settings-grid input[type=number] { max-width: 160px; }
.sog-gc-check { flex-direction: row !important; gap: 10px !important; align-items: flex-start; }
.sog-gc-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gc-teal); flex: none; }
.sog-gc-check > span { display: flex; flex-direction: column; gap: 2px; }

/* buttons */
.sog-gc-btn {
  font: inherit; font-size: 15px; padding: 10px 18px; border-radius: 6px; border: 1px solid var(--gc-teal);
  background: var(--gc-teal); color: #fff; cursor: pointer; margin-top: 6px;
}
.sog-gc-btn:hover { background: var(--gc-deep); border-color: var(--gc-deep); }
.sog-gc-btn-outline { background: #fff; color: var(--gc-deep); }
.sog-gc-btn-outline:hover { background: var(--gc-soft); color: var(--gc-deep); }

/* results */
.sog-gc-results { background: var(--gc-soft); border: 1px solid var(--gc-line); border-radius: 12px; padding: 18px; }
.sog-gc-empty { margin: 0 0 12px; }
.sog-gc-headline { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sog-gc-stat { background: #fff; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--gc-line); }
.sog-gc-stat.is-main { background: var(--gc-deep); border-color: var(--gc-deep); color: #fff; }
.sog-gc-stat-l { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; opacity: .85; }
.sog-gc-stat-v { font-size: 20px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sog-gc-stat.is-main .sog-gc-stat-v { font-size: 26px; }
.sog-gc-stat-s { font-size: 12px; opacity: .8; }
.sog-gc-class { margin: 12px 0; font-size: 15px; }
.sog-gc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.sog-gc-block { margin: 12px 0; font-size: 14px; }
.sog-gc-block h4 { font-family: Roboto, Arial, sans-serif; font-size: 14px; font-weight: 700; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; color: var(--gc-navy); }
.sog-gc-block ul { margin: 0; padding-left: 18px; }
.sog-gc-block li { margin: 0 0 6px; }
.sog-gc-block > summary { cursor: pointer; font-weight: 600; color: var(--gc-deep); }
.sog-gc-warn { background: var(--gc-warn-bg); border-left: 4px solid #e0a040; padding: 10px 12px; border-radius: 6px; }
.sog-gc-warn h4 { color: var(--gc-warn); }
.sog-gc-tips { background: #fff; border-left: 4px solid var(--gc-teal); padding: 10px 12px; border-radius: 6px; }
.sog-gc-safety { background: #fff; border: 1px solid #f0c9c9; border-left: 4px solid #c0392b; padding: 10px 12px; border-radius: 6px; }
.sog-gc-safety h4 { color: #9b2c20; }

/* tables (breakdown + chart) */
.sog-gc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 18px; }
.sog-gc-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.sog-gc-table th, .sog-gc-table td { padding: 8px 10px; border-bottom: 1px solid #e3ecea; text-align: left; vertical-align: top; }
.sog-gc-table th { background: var(--gc-deep); color: #fff; font-weight: 600; white-space: nowrap; }
.sog-gc-table td:nth-child(2), .sog-gc-table td:nth-child(3) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sog-gc-table tbody tr:nth-child(even) { background: var(--gc-soft2); }
.sog-gc-chart h3.sog-gc-chart-cat { font-family: Fraunces, Georgia, serif; font-size: 22px; margin: 22px 0 6px; color: var(--gc-navy); }
.sog-gc-chart-note { font-size: 14px; color: #555b6b; }

.sog-gc-mini {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9990; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font: inherit; font-size: 14px; text-align: left; padding: 10px 14px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--gc-deep); color: #fff; box-shadow: 0 6px 24px rgba(14,19,43,.25);
}
.sog-gc-mini[hidden] { display: none; }
.sog-gc-mini-l { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.sog-gc-mini-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.sog-gc-mini-go { margin-left: auto; font-weight: 600; color: #bfeee4; }

@media print {
  .sog-gc-mini { display: none !important; }
  .sog-gc-inputs, .sog-gc-btn { display: none !important; }
  .sog-gc-results { position: static !important; max-height: none !important; border: 0; background: #fff; }
  .sog-gc-block > summary { display: none; }
  .sog-gc-block[open], .sog-gc-block { display: block; }
}

/* chart: same column widths in every category table */
.sog-gc-chart .sog-gc-table { table-layout: fixed; width: 100%; }
.sog-gc-chart .sog-gc-table th:nth-child(1) { width: 36%; }
.sog-gc-chart .sog-gc-table th:nth-child(2), .sog-gc-chart .sog-gc-table th:nth-child(3) { width: 15%; }
.sog-gc-chart .sog-gc-table th:nth-child(4) { width: 20%; }
.sog-gc-chart .sog-gc-table th:nth-child(5) { width: 14%; }
@media (max-width: 700px) { .sog-gc-chart .sog-gc-table { table-layout: fixed; min-width: 680px; } }
.sog-gc-chart a.sog-gc-shop { color: var(--gc-deep); text-decoration: underline; text-underline-offset: 2px; }
.sog-gc-chart .sog-gc-table th:nth-child(1) { width: 30%; }
.sog-gc-chart .sog-gc-table th:nth-child(2), .sog-gc-chart .sog-gc-table th:nth-child(3) { width: 13%; }
.sog-gc-chart .sog-gc-table th:nth-child(4) { width: 17%; }
.sog-gc-chart .sog-gc-table th:nth-child(5) { width: 27%; }
.sog-gc-chart .sog-gc-table th, .sog-gc-chart .sog-gc-table td { white-space: normal; overflow-wrap: anywhere; }

/* generator suggestions (v0.7.0) */
.sog-gc-picks { background: #fff; border: 1px solid var(--gc-line); border-radius: 10px; padding: 14px; }
.sog-gc-picks-intro { font-size: 14px; color: #555b6b; margin: 0 0 10px; }
.sog-gc-pick { border: 1px solid var(--gc-line); border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; background: var(--gc-soft2); }
.sog-gc-pick.is-premium { border-color: #c9a227; background: #fffaf0; }
.sog-gc-pick-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.sog-gc-pick-badge { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--gc-teal); color: #fff; }
.sog-gc-pick.is-premium .sog-gc-pick-badge { background: #8a6d0b; }
.sog-gc-pick-tier { font-size: 12px; color: #555b6b; }
.sog-gc-pick-name { font-size: 16px; color: var(--gc-navy); line-height: 1.35; }
.sog-gc-pick-specs { font-size: 13px; color: var(--gc-deep); margin: 2px 0 4px; }
.sog-gc-pick-note { font-size: 14px; margin: 0 0 10px; }
.sog-gencalc a.sog-gc-pick-btn { display: inline-block; padding: 8px 14px; border-radius: 8px; background: #f59e0b; color: #1b1b1b; font-weight: 600; font-size: 14px; text-decoration: none; }
.sog-gencalc a.sog-gc-pick-btn:hover, .sog-gencalc a.sog-gc-pick-btn:focus-visible { background: #d97706; color: #fff; }
.sog-gc-picks-fine, .sog-gc-picks-none { font-size: 13px; color: #555b6b; margin: 4px 0 0; }
@media print { .sog-gc-pick-btn { display: none !important; } }
.sog-gc-pick:not(.is-best):not(.is-premium) .sog-gc-pick-badge { background: #5b6b78; }
.sog-gc-pick.is-best { border-color: var(--gc-teal); border-width: 2px; }
