/* Language switcher (header, right of the top menu) */
.lang-switcher { position: relative; display: inline-block; font-family: 'Ubuntu-Light', sans-serif; letter-spacing: .12em; }
.lang-switcher .lang-current {
  background: transparent; border: 1px solid #b99e61; color: #1e1d1d; border-radius: 4px;
  padding: 4px 10px; cursor: pointer; font: inherit; text-transform: uppercase;
}
.lang-switcher .lang-current::after { content: " \25BE"; font-size: .8em; }
.lang-switcher .lang-list {
  display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 150px;
  margin: 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid #e1d7d7;
  box-shadow: 0 8px 24px rgba(30,29,29,.12); border-radius: 6px;
}
.lang-switcher:hover .lang-list, .lang-switcher:focus-within .lang-list { display: block; }
.lang-switcher .lang-list li a {
  display: block; padding: 7px 14px; color: #1e1d1d; text-decoration: none; letter-spacing: .04em; white-space: nowrap;
}
.lang-switcher .lang-list li a:hover, .lang-switcher .lang-list li.active a { background: #f8f5f4; color: #b99e61; }
.header .lang-switcher { position: absolute; right: 24px; top: 18px; }
@media (max-width: 850px) { .header .lang-switcher { right: 12px; top: 10px; } }

/* Birth card page blocks in the legacy design */
.cardpage-crumbs { max-width: 900px; margin: 20px auto 0; font-size: 13px; }
.cardpage .card_description_title h1 { margin: 0; font: inherit; }
.cardpage-block { max-width: 900px; margin: 30px auto; padding: 20px; background: #fff; border-radius: 15px; box-shadow: 0 0 15px #e1d7d7; letter-spacing: normal; }
.cardpage-block h2 { font-size: 22px; margin: 0 0 10px; }
.cardpage-dates { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.cardpage-dates li { padding: 4px 10px; border: 1px solid #b99e61; border-radius: 12px; }
.cardpage-links { display: flex; flex-wrap: wrap; gap: 10px; }
.cardpage-links a, .cardpage-pager a { padding: 8px 14px; border: 1px solid #b99e61; border-radius: 12px; color: #000; text-decoration: none; }
.cardpage-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; max-width: 900px; margin: 0 auto 40px; }

/* Error pages (legacy design; the new design refines these in design/base.css) */
.errpage { max-width: 560px; margin: 48px auto 72px; padding: 0 20px; text-align: center; }
.errpage-code { margin: 0; font-size: 96px; line-height: 1; opacity: .2; }
.errpage-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
html:not([data-design]) .errpage-actions a { padding: 12px 22px; border: 1px solid currentColor; border-radius: 24px; text-decoration: none; }
