/* powerstationprices.com — Fresh Cyan Minimal Block */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* System font stack for zero-load time with a modern tech feel */
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1e293b; /* Slate 800 */
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ─── Sidebar ─── */
.sidebar {
  width: 240px;
  min-width: 240px;
  padding: 20px 16px;
  background-color: #ecfeff; /* Cyan 50 */
  border-right: 1px solid #cffafe; /* Cyan 100 */
  overflow-y: auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar fieldset {
  border: 1px solid #cffafe;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(6, 182, 212, 0.05); /* Soft Cyan Shadow */
}

.sidebar legend {
  font-weight: 600;
  font-size: 12px;
  color: #0891b2; /* Cyan 600 */
  padding: 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar label {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #334155; /* Slate 700 */
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar label:hover {
  background: #cffafe;
  color: #0891b2;
}

.sidebar input[type="checkbox"],
.sidebar input[type="radio"] {
  margin-right: 8px;
  accent-color: #0891b2;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.sidebar input[type="number"] {
  width: 100%;
  max-width: 80px;
  font-family: inherit;
  font-size: 13px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1; /* Slate 300 */
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sidebar input[type="number"]:focus {
  border-color: #0891b2;
  box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.2);
}

.range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.range-row span {
  color: #94a3b8;
}

/* ─── Main content ─── */
.main {
  flex: 1;
  height: 100vh;
  overflow: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a; /* Slate 900 */
  padding: 24px 32px 8px 32px;
  letter-spacing: -0.02em;
}

.meta {
  font-size: 13px;
  color: #64748b; /* Slate 500 */
  padding: 0 32px 24px 32px;
}

/* ─── Table ─── */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

thead {
  /* position: sticky removed; applied to th */
}

th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85); /* Glass effect */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #475569; /* Slate 600 */
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all 0.2s;
}

th:hover {
  color: #0891b2;
  background: rgba(236, 254, 255, 0.9); /* Subtle Cyan Tint on Hover */
}

th .sort-arrow {
  font-size: 10px;
  margin-left: 4px;
  color: #94a3b8;
}

th.sorted-asc .sort-arrow { color: #0891b2; }
th.sorted-desc .sort-arrow { color: #0891b2; }

th.sorted-asc .sort-arrow::after { content: "▲"; }
th.sorted-desc .sort-arrow::after { content: "▼"; }

td {
  border-bottom: 1px solid #f1f5f9; /* Slate 100 */
  padding: 14px 16px;
  vertical-align: middle;
  white-space: nowrap;
  color: #334155;
  transition: background-color 0.2s;
}

tr:hover td {
  background: #f8fafc; /* Slate 50 */
}

tr:hover {
  box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.1);
}

td.price-per-wh {
  font-weight: 700;
  color: #0891b2; /* Primary Cyan 600 */
  text-align: right;
  font-variant-numeric: tabular-nums;
  background: #ecfeff; /* Cyan 50 subtle highlight */
}

td.price,
td.capacity,
td.output {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

td.price {
  color: #1e293b;
}

td a {
  color: #0891b2;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

td a:hover {
  text-decoration: underline;
  color: #164e63; /* Cyan 900 */
}

td a:visited {
  color: #6366f1; /* Indigo 500 */
}

.hidden {
  display: none !important;
}

/* ─── FAQ ─── */
.faq {
  padding: 40px 32px;
  max-width: 800px;
}

.faq h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

.faq h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-top: 24px;
  margin-bottom: 8px;
}

.faq p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ─── Disclosure ─── */
.disclosure {
  padding: 24px 32px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  margin-top: auto;
}

.disclosure p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  
  .sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid #cffafe;
    padding: 16px;
    background: #ecfeff;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  
  .main {
    height: auto;
    overflow: visible;
  }
  
  .sidebar fieldset {
    padding: 10px;
    box-shadow: none;
  }
  
  h1 {
    font-size: 20px;
    padding: 20px 16px 8px 16px;
  }
  
  .meta {
    padding: 0 16px 16px 16px;
  }
  
  th, td {
    padding: 12px 10px;
  }
  
  .faq, .disclosure {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Touch targets for mobile */
@media (max-width: 480px) {
  .sidebar label {
    min-height: 36px; /* slightly larger hit zone */
  }
  .sidebar input[type="number"] {
    min-height: 38px;
  }
  .range-row input[type="number"] {
    min-height: 38px;
  }
}
