:root {
  --brand: #1abc9c;
  --brand-soft: rgba(26, 188, 156, 0.15);
  --brand-border: rgba(26, 188, 156, 0.3);
  --bg: #fafbfc;
  --text: #1a1a1a;
  --muted: #6b7280;
  --card: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}


.blog-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.blog-link:hover { color: var(--text); }

.blog-post {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px 80px 31px;
}

.blog-post time {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.blog-post h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 32px;
}

.blog-post h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 16px;
}

.blog-post p {
  margin-bottom: 20px;
  font-size: 17px;
}

.blog-post table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.blog-post th, .blog-post td {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.blog-post th {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.blog-post img {
  width: 100%;
  border-radius: 8px;
  margin: 24px 0;
}

/* Translated word styling (same as homepage) */
.translated {
  background: var(--brand-soft);
  color: var(--brand);
  padding: 2px 8px;
  border-radius: 6px;
  border-bottom: 2px solid var(--brand-border);
  position: relative;
  transition: all 0.2s ease;
  font-weight: 500;
  cursor: default;
}

.translated:hover {
  background: var(--brand);
  color: white;
}

.translated::after {
  content: attr(data-original);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1a1a1a;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.translated:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.author-card {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  font-size: 15px;
  color: var(--muted);
}

.author-name {
  color: var(--text);
  font-weight: 500;
}

.author-details a {
  color: var(--brand);
  text-decoration: none;
}

.author-details a:hover {
  text-decoration: underline;
}

.blog-footer {
  max-width: 740px;
  margin: 0 auto;
  padding: 32px 0 64px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid #e5e7eb;
}

.blog-footer a {
  color: var(--muted);
  text-decoration: none;
}

.blog-footer a:hover { color: var(--text); }

.blog-footer .sep { margin: 0 8px; }

/* Etymology map */
#lemon-map {
  position: relative;
  margin: 32px -24px 32px -7px;
}

#lemon-map svg {
  display: block;
}

.map-tooltip {
  position: absolute;
  background: #1a1a1a;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
  z-index: 10;
  max-width: 240px;
}

.map-word {
  color: #F7CE64;
  font-weight: 600;
  font-size: 15px;
}

.map-detail {
  opacity: 0.8;
  font-size: 12px;
}

.map-controls {
  text-align: center;
  padding: 12px 24px 0;
}

.map-era-label {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.map-timeline-row {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin: 4px 0;
}

.map-play-btn {
  background: none;
  border: none;
  color: var(--brand);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: color 0.2s;
}

.map-play-btn svg {
  display: block;
}

.map-play-btn:hover {
  color: #15a085;
}

.map-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: white;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.map-dot:hover {
  border-color: var(--brand);
}

.map-dot.active {
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.3);
}

.map-description {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  min-height: 40px;
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.map-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .blog-post h1 { font-size: 26px; }
  .blog-post p { font-size: 16px; }
  .blog-post { padding: 32px 24px 60px 31px; }
}
