/* Optional reading on the Almanac index; breed profiles keep their own layouts. */
.almanac-reference { margin-bottom: 48px; }
.almanac-reference > details { border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; }
.almanac-reference > details > summary { display: flex; align-items: center; gap: 16px; min-height: 88px; padding: 18px 22px; cursor: pointer; list-style: none; color: var(--ink); }
.almanac-reference > details > summary::-webkit-details-marker { display: none; }
.almanac-reference > details > summary::marker { content: ''; }
.almanac-reference > details > summary:hover { background: #f5f8f7; }
.almanac-reference > details > summary:focus-visible { outline: 3px solid var(--blue); outline-offset: -4px; }
.reference-book { width: 42px; height: 42px; flex: none; }
.reference-label { display: grid; gap: 3px; min-width: 0; }
.reference-label strong { font-size: 17px; line-height: 1.4; font-weight: 650; }
.reference-label > span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.reference-action { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; color: var(--blue); font-size: 13px; font-weight: 650; }
.reference-chevron { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #edf3fa; transition: transform 160ms ease; }
.reference-close { display: none; }
.almanac-reference > details[open] > summary { border-bottom: 1px solid var(--line); }
.almanac-reference > details[open] .reference-chevron { transform: rotate(180deg); }
.almanac-reference > details[open] .reference-open { display: none; }
.almanac-reference > details[open] .reference-close { display: inline; }
.reference-content { padding: 26px; }
.almanac-reference .almanac-notes, .almanac-reference .almanac-method { display: block; padding: 0; }
.almanac-reference .almanac-notes > div:first-child, .almanac-reference .almanac-method > div:first-child { max-width: 80ch; margin-bottom: 22px; }
.almanac-reference .eyebrow { margin-bottom: 8px; font-size: 11px; }
.almanac-reference h2 { font-size: 26px; line-height: 1.2; }
.almanac-reference .almanac-notes > div > p:not(.eyebrow), .almanac-reference .almanac-method > div > p:not(.eyebrow) { max-width: none; font-size: 14px; line-height: 1.75; margin: 12px 0; }
.almanac-reference .text-button { font-size: 13px; }
.almanac-reference .note-cards, .almanac-reference .method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.almanac-reference .note-cards article, .almanac-reference .method-grid article { padding-left: 16px; }
.almanac-reference .note-cards h3, .almanac-reference .method-grid h3 { font-size: 21px; line-height: 1.3; }
.almanac-reference .note-cards p, .almanac-reference .method-grid p { font-size: 13px; line-height: 1.75; }
.almanac-reference .almanac-method { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
@media (max-width: 800px) {
  .almanac-reference .note-cards, .almanac-reference .method-grid { grid-template-columns: 1fr; gap: 20px; }
  .reference-content { padding: 22px; }
}
@media (max-width: 580px) {
  .almanac-reference { margin-bottom: 32px; }
  .almanac-reference > details > summary { gap: 12px; min-height: 90px; padding: 16px; }
  .reference-book { width: 32px; height: 32px; }
  .reference-label strong { font-size: 15px; }
  .reference-label > span { font-size: 12px; }
  .reference-action { margin-left: 0; }
  .reference-action > span { display: none !important; }
  .reference-chevron { width: 26px; height: 26px; }
  .reference-content { padding: 20px 18px; }
  .almanac-reference h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .reference-chevron { transition: none; } }
