html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.4;
  margin: 0;
  background: #f6f7fb;
  color: #111;
}

header,
footer {
  padding: 18px 22px;
  background: #111;
  color: #fff;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .bar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

header h1 {
  margin: 0;
  font-size: 1.35rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 14px;
  opacity: 0.85;
}

nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

nav a.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

main {
  max-width: 1100px;
  margin: 18px auto;
  padding: 0 18px 30px;
}

figure {
  margin: 0 0 16px 0;
  padding: 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

figcaption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #444;
}

/* --- Data Grid Table --- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

thead th {
  position: sticky;
  top: 0;
  background: #1c1c1c;
  color: #fff;
  text-align: left;
  padding: 12px 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid #000;
  cursor: default;
}

tbody td {
  padding: 10px;
  border-bottom: 1px solid #e8e8e8;
  font-size: 0.95rem;
}

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

td.core,
th.core {
  background: #fff3b0;
  color: black;
}

.core-title {
  cursor: pointer;
  text-decoration: underline;
  font-weight: 700;
}

/* Message/output box */
#messageBox {
  margin: 14px 0 18px;
  padding: 12px 12px;
  background: #ffffff;
  border: 2px solid #2a7fff;
  border-radius: 10px;
  min-height: 54px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

#messageBox strong {
  display: inline-block;
  margin-bottom: 4px;
}

/* Walkthrough cards */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  margin: 16px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.walk-action {
  cursor: pointer;
  background: #f0f7ff;
  padding: 8px 10px;
  border-radius: 8px;
  margin: 8px 0;
  border: 1px dashed #2a7fff;
  text-decoration: none;
}
.table-link {
  text-decoration: none;
  color: #000;
}

/* Glossary */
dl {
  margin: 0;
}
dt {
  font-weight: 700;
  margin-top: 10px;
  cursor: help;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff3b0;
}

dd {
  display: none;
}

#glossaryBox {
  margin: 6px 0 0 0;
  padding: 10px 12px;
  background: #fff;
  border-left: 4px solid #2a7fff;
  border-radius: 10px;
}

.highlight {
  background-color: #eaf3ff !important;
}

.highlight2 {
  background-color: #eaf3ff !important;
}

th {
  position: relative;
}
.definition {
  position: absolute;
  top: 44px;
  left: 10px;
  right: 10px;
  background: #111;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  z-index: 200;
  width: 150px;
}

/* Reset link styling */
#reset {
  cursor: pointer;
  text-decoration: underline;
  font-weight: 700;
  display: inline-block;
  margin-top: 8px;
}

footer {
  font-size: 0.95rem;
  opacity: 0.9;
}
