:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --accent: #0b57d0;
  --panel: #f4f6f8;
  --border: #bbb;
  --gold: #d9a441;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #ffffff;
  color: #1a1a1a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  padding: 24px 28px 56px;
}

.site-header {
  grid-column: 1 / -1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1a1a1a;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}

.wordmark-line1 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
}

.wordmark-line2 {
  font-size: 0.8rem;
  font-weight: 400;
  color: #555;
}

aside.sidebar {
  background: #f4f6f8;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  padding: 16px 20px;
  align-self: start;
  position: sticky;
  top: 24px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 6px 0;
  color: #1a1a1a;
  text-decoration: none;
}

.site-nav a:hover {
  color: #0b57d0;
  text-decoration: underline;
}

.site-footer {
  grid-column: 1 / -1;
  border-top: 1px solid #ccc;
  color: #777;
  font-size: 0.85em;
  padding-top: 12px;
}

a {
  color: #0b57d0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 1.55em;
  margin: 8px 0 4px;
}

h2 {
  font-size: 1.25em;
  border-bottom: 2px solid #444;
  padding-bottom: 4px;
  margin-top: 36px;
}

/* Tables: default professional style */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 0.95em;
}

th, td {
  border: 1px solid #bbb;
  padding: 6px 10px;
  text-align: left;
}

th {
  background: #e8e8e8;
  font-weight: 700;
}

tbody tr:nth-child(even) {
  background: #f6f6f6;
}

td.num, th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Borderless variant (model/size overview table) */
table.table-borderless,
table.table-borderless th,
table.table-borderless td {
  border: none;
}

table.table-borderless tbody tr {
  background: none;
}

table.table-borderless th,
table.table-borderless td {
  padding: 6px 10px;
}

table.table-borderless td.num,
table.table-borderless th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Cookie-noise banner: CSS-only auto dismiss after ~5s */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: #d9a441;
  color: #1a1a1a;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.9rem;
  animation: banner-hide 0.6s ease-in 4.4s forwards;
}

@keyframes banner-hide {
  to {
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  #cookie-banner {
    animation: banner-visibility 0.01s linear 5s forwards;
  }

  @keyframes banner-visibility {
    to {
      visibility: hidden;
    }
  }
}

/* Mobile: menu moves to the top of the page */
@media (max-width: 860px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }
}
