/* Main motif container */
.motif-entry {
  background: linen;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 36px 32px 32px 32px;
  margin: 0 auto 32px auto;
  max-width: 800px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #222;
}

/* Title and code */
.motif-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 0.1em;
  letter-spacing: 1px;
  color: #2d1c0b;
}

.motif-code {
  font-size: 1.2em;
  color: #7c6a4e;
  font-family: 'Consolas', 'Courier New', monospace;
  margin-bottom: 1.5em;
  display: block;
  opacity: 0.7;
  letter-spacing: 0.5px;
}

/* Description/summary */
.motif-summary {
  font-size: 1.15em;
  margin-bottom: 2em;
  color: #3a2c1a;
  background: Linen;
  border-left: 4px solid #d6c7a1;
  padding: 12px 18px;
  border-radius: 3px;
  min-height: 2em;
}

/* Metadata section */
.motif-meta {
  font-size: 0.98em;
  color: #6d5b3b;
  margin-bottom: 1.5em;
  background: Linen;
  border-radius: 3px;
  padding: 8px 14px;
  border-left: 3px solid #e0d3b8;
}
.motif-meta .motif-kind {
  font-style: italic;
  margin-right: 1em;
}
.motif-meta .motif-starred {
  color: #b8860b;
  font-weight: bold;
  margin-left: 1em;
}

/* Sub-motifs (children) */
.motif-children-section {
  margin: 2.5em 0 2em 0;
}
.motif-children-section h2 {
  font-size: 1.3em;
  color: #3a2c1a;
  margin-bottom: 0.5em;
  letter-spacing: 0.5px;
}
.motif-children-list {
  list-style: disc inside;
  margin-left: 1em;
  padding-left: 0.5em;
}
.motif-children-list li {
  margin-bottom: 0.3em;
  font-size: 1.07em;
}
.motif-children-list a {
  color: #4a2e0e;
  text-decoration: underline dotted;
  transition: color 0.2s;
}
.motif-children-list a:hover {
  color: #b8860b;
  background: Linen;
}

/* References */
.motif-references-section {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid Linen;
}
.motif-references-section h2 {
  font-size: 1.15em;
  color: #7c6a4e;
  margin-bottom: 0.5em;
  letter-spacing: 0.5px;
}
.motif-references-list {
  font-size: 0.98em;
  color: #4a2e0e;
  margin-left: 1em;
  padding-left: 0.5em;
}
.motif-references-list li {
  margin-bottom: 0.2em;
}

/* Responsive */
@media (max-width: 600px) {
  .motif-entry {
    padding: 18px 6vw 18px 6vw;
  }
  .motif-title {
    font-size: 1.5em;
  }
}
