/* Kindle Stock Dashboard - Text Only CSS
   Target: Kindle E-Reader (600x800 screen, 40px font size)
   Constraints: No images, no gradients, pure high-contrast monochrome
   Layout: No page title, no header row, no refresh link
   Rows: No line separator between rows, small spacing between rows
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: none;
}

html, body {
  width: 600px;
  height: 800px;
  max-width: 600px;
  max-height: 800px;
  overflow: hidden;
  background-color: #ffffff;
  color: #000000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Amazon Ember", Bookerly, Arial, sans-serif;
  font-size: 40px;
  line-height: 1.25;
}

.screen {
  width: 600px;
  height: 800px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: #ffffff;
}

/* Stock Table (No Header Row, No Line Separators, Small Spacing Between Rows) */
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 40px;
  table-layout: fixed;
}

tr {
  margin: 0;
  padding: 0;
  border: none;
}

td {
  padding: 6px 6px;
  font-size: 40px;
  line-height: 1.25;
  border: none;
  vertical-align: middle;
}

/* Columns: Ticker | ClosePrice | ChangePercentage */
.col-ticker {
  width: 25%;
  text-align: left;
  font-weight: bold;
}

.col-price {
  width: 37%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.col-change {
  width: 38%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Kindle E-ink contrast indication */
.pos {
  font-weight: normal;
}

.neg {
  font-weight: bold;
}
