/* A20.55: compact editorial nameday layout, accessible on small screens. */
.card-foot .source-flag {
  width:auto; min-width:0; height:auto; padding:3px 7px; border-radius:999px;
  display:inline-flex; align-items:center; line-height:1.25; font-size:10px;
  cursor:default; white-space:nowrap; color:#696274; border-color:#e1d9e6;
}
.namedays-section { margin:22px 0 12px; }
.namedays-section > h3 { margin:0 0 5px; font-size:18px; color:#713046; font-family:Georgia,serif; }
.namedays-intro { font-size:13px; line-height:1.5; color:#746575; margin:0 0 12px; }
.namedays-list { display:grid; gap:9px; }
.nameday-entry { border:1px solid #e8dadd; border-radius:14px; background:#fffcf7; overflow:hidden; }
.nameday-entry > summary {
  list-style:none; display:flex; align-items:center; gap:9px; padding:13px 15px;
  font-size:15px; font-weight:750; color:#583042; cursor:pointer; user-select:none;
}
.nameday-entry > summary::-webkit-details-marker { display:none; }
.nameday-entry > summary::after { content:"⌄"; margin-left:auto; color:#ae6c89; font-size:18px; }
.nameday-entry[open] > summary::after { transform:rotate(180deg); }
.nameday-content { border-top:1px solid #eee3e2; padding:13px 15px 16px; }
.nameday-content p { margin:0 0 11px; font-size:13px; line-height:1.65; color:#574a55; white-space:pre-line; }
.nameday-subhead { font-size:11px; text-transform:uppercase; letter-spacing:.06em; font-weight:800; color:#896272; margin:12px 0 6px; }
.nameday-saints { padding:0 0 0 18px; margin:0 0 8px; color:#574a55; font-size:13px; line-height:1.55; }
.nameday-saints li + li { margin-top:4px; }
.nameday-dates { display:flex; flex-wrap:wrap; gap:6px; }
.nameday-date {
  padding:6px 9px; border-radius:999px; border:1px solid #e4d1d7;
  background:#fff; color:#864462; font:inherit; font-size:12px; cursor:pointer;
}
.nameday-date:hover,.nameday-date:focus-visible { background:#f7e9ef; outline-color:#a5537a; }
.nameday-more { border:0; background:transparent; font:inherit; font-size:12px; font-weight:700; color:#95516d; padding:7px 0; cursor:pointer; }
.nameday-source { margin:10px 0 0; font-size:11px; line-height:1.45; color:#8b7c87; }
html[data-theme="dark"] .nameday-entry { background:#233933; border-color:#446054; }
html[data-theme="dark"] .nameday-entry > summary { color:#f1d69c; }
html[data-theme="dark"] .nameday-content { border-top-color:#40574b; }
html[data-theme="dark"] .namedays-section > h3 { color:#f1d69c; }
html[data-theme="dark"] .namedays-intro,html[data-theme="dark"] .nameday-content p,
html[data-theme="dark"] .nameday-saints,html[data-theme="dark"] .nameday-source { color:#cbd5c9; }
html[data-theme="dark"] .nameday-subhead { color:#d8bca5; }
html[data-theme="dark"] .nameday-date { background:#25433b; color:#ebd5ad; border-color:#547369; }
html[data-theme="dark"] .nameday-date:hover { background:#3a594f; }
html[data-theme="dark"] .nameday-more { color:#e4bdaf; }
@media (max-width:760px) {
  .namedays-section > h3 { font-size:17px; }
  .nameday-entry > summary { padding:12px; font-size:14px; }
  .nameday-content { padding:12px; }
  .nameday-date { min-height:34px; }
  .card-foot .source-flag { font-size:9px; padding:2px 5px; }
}
