:root {
  color-scheme: light;
  --bg: #f3f6f8;
  --panel: #ffffff;
  --ink: #0c1720;
  --muted: #64717d;
  --line: #d8e0e7;
  --accent: #0c6b58;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: #0d1b24;
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
}

.topbar nav a {
  color: #dce7ed;
}

.page {
  margin: 0 auto;
  max-width: 1240px;
  padding: 32px 24px 64px;
}

.page-head,
.model-card-head,
.notes {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 22px;
  padding: 28px;
}

.page-head h1,
.model-card-head h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 6px 0 10px;
}

.page-head p,
.model-card-head p {
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  color: var(--accent) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: normal;
  margin: 0;
}

.back-link {
  color: var(--accent);
  display: inline-block;
  font-weight: 700;
  margin-bottom: 10px;
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eaf0f3;
  color: #283640;
  font-size: 13px;
}

td a {
  color: var(--accent);
  font-weight: 700;
}

.empty {
  color: var(--muted);
  text-align: center;
}

.model-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.model-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 110px 1fr;
  padding: 14px;
}

.model-tile h2 {
  margin: 0 0 4px;
}

.model-tile p {
  color: var(--muted);
  margin: 0 0 12px;
}

.model-tile dl,
.facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin: 0;
}

.model-tile dt,
.facts span {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.model-tile dd,
.facts strong {
  font-weight: 700;
  margin: 0;
}

.thumb,
.hero-image {
  align-items: center;
  background: #dfe8ed;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.thumb {
  height: 120px;
}

.thumb img,
.hero-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.model-card-head {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 280px;
}

.hero-image {
  min-height: 220px;
}

.financial {
  color: var(--accent) !important;
  font-size: 22px;
  font-weight: 700;
}

.facts {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 22px;
  padding: 18px;
}

.split {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr 1fr;
}

.split h2,
.notes h2 {
  margin: 0 0 12px;
}

.compact table {
  min-width: 520px;
}

.mono {
  direction: ltr;
  font-family: Consolas, "Courier New", monospace;
  text-align: left;
}

@media (max-width: 820px) {
  .page {
    padding: 20px 14px 48px;
  }

  .model-card-head,
  .split {
    grid-template-columns: 1fr;
  }

  .model-tile {
    grid-template-columns: 92px 1fr;
  }
}
