body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 2rem;
  background-color: #fafafa;
  color: #222;
  line-height: 1.6;
}

h1 {
  text-align: center;
  font-size: 1.8em;
}

.desc {
  text-align: center;
  color: #555;
  margin-bottom: 2em;
}

.controls {
  text-align: center;
  margin-bottom: 1.5em;
}

.controls button {
  background-color: #0078d7;
  color: white;
  border: none;
  padding: 0.5em 1em;
  margin: 0 0.3em;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
}

.controls button:hover {
  background-color: #005fa3;
}

.controls .separator {
  margin: 0 0.5em;
  color: #999;
}

.controls a {
  margin-left: 1em;
  text-decoration: none;
  color: #0078d7;
}

details {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  margin-bottom: 0.8em;
  padding: 1em;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: #333;
}

summary::marker {
  color: #0078d7;
}

details[open] summary {
  color: #0078d7;
}

small {
  color: #888;
}

/* Year-based hierarchy styling */
.year-section {
  margin-bottom: 2em;
  padding: 1em;
  background: #f5f5f5;
  border-radius: 10px;
}

.year-header {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  padding: 0.8em;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.year-header input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.3em;
  cursor: pointer;
  accent-color: #0078d7;
  flex-shrink: 0;
}

.year-header details {
  flex: 1;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.year-header details > summary {
  font-size: 1.2em;
  font-weight: 700;
  color: #333;
  padding: 0;
}

.date-container {
  margin-top: 0.8em;
  margin-left: 1em;
}

.date-container details {
  margin-bottom: 0.8em;
}
