body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f6f8;
  color: #333;
}

header {
  background-color: #1a365d;
  color: white;
  padding: 1.5rem;
  text-align: center;
}

main {
  max-width: 600px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-img {
  width: 100px;
  height: 100px;
  display: block;
  margin: 0 auto 1rem auto;
}

.header-icon {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 0.5rem auto;
  border-radius: 12px;
}

.section-img {
  display: block;
  margin: 0 auto 0.75rem auto;
  max-width: 140px;
  height: auto;
}

.section-img-inline {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 8px;
}

.card h3, .card h2 {
  margin-top: 0;
}

.hint {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

.litany {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem 0;
}

.litany li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.mysteries {
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.versicle {
  font-size: 0.9rem;
  background: #f4f6f8;
  border-left: 3px solid #d69e2e;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin: 0.75rem 0;
}

details.card summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
}

details.card summary::-webkit-details-marker {
  display: none;
}

details.card summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.3rem;
  color: #1a365d;
}

details.card[open] summary::after {
  content: '−';
}

.details-body {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.details-body h4 {
  margin: 1rem 0 0.4rem 0;
  color: #1a365d;
  font-size: 0.95rem;
}

.day-nav {
  text-align: center;
}

.day-nav-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.day-nav-controls button {
  background: #1a365d;
  color: white;
  border: none;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
}

.day-nav-controls button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.day-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.day-counter select {
  font-size: 1rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.day-invocation {
  margin-top: 1rem;
  font-style: italic;
  color: #1a365d;
  font-weight: 500;
}

.meditation-card textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
  margin-bottom: 0.75rem;
}

.ghost-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
}

.ghost-btn:hover {
  background: #f4f6f8;
}

footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.8rem;
  color: #888;
}
