/* --- Shared Components --- */

details {
  margin-bottom: 1.2rem;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 6px;
  background: #fafafa;
}

summary {
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1rem;
}

blockquote {
  margin: 1rem 0 0 0;
  padding-left: 1rem;
  border-left: 3px solid #999;
  color: #333;
}

.details-toggle-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.details-toggle {
  padding: 0.5rem 1rem;
  border: 1px solid #2b6cb0;
  border-radius: 5px;
  background: #eaf3ff;
  color: #123d6c;
  font-weight: bold;
  cursor: pointer;
}

.details-toggle:hover {
  background: #dbeeff;
}

.hover-wrap img {
  display: none;
  position: absolute;
  left: 40px;
  top: 0;
}

.hover-wrap:hover img {
  display: block;
}

a.previewable {
  position: relative;
  display: inline-block;
}

a.previewable .preview-popup {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  width: 220px;
  max-width: 50vw;
  border: 1px solid #7a7a7a;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  padding: 4px;
  display: none;
  z-index: 1000;
}

a.previewable:hover .preview-popup,
a.previewable:focus .preview-popup,
a.previewable:focus-within .preview-popup {
  display: block;
}


/* --- Unified Page Layout (Light Theme) --- */

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #222;
  margin: 0;
  padding: 0;
}

header {
  background-color: #e0e0e0;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ccc;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: #222;
}

main {
  padding: 1.5rem 2rem 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

section {
  margin-bottom: 2rem;
}

section h2 {
  border-bottom: 1px solid #bbb;
  padding-bottom: 0.3rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  color: #2b6cb0;
}


/* --- Table Styles (Light Theme) --- */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.4rem 0.6rem;
  vertical-align: top;
}

th {
  background-color: #eaeaea;
  font-weight: bold;
  text-align: left;
}

.term {
  white-space: nowrap;
  font-weight: bold;
  color: #2b6cb0;
}

.footer-note {
  font-size: 0.85rem;
  color: #555;
  margin-top: 1.5rem;
  border-top: 1px solid #ccc;
  padding-top: 0.8rem;
}
