/* Name day pages (built by tools/namedays/build.mjs on the site's Impreza template). Only what the
   theme has no component for; colors and fonts come from the theme's variables. */
.nd-intro { max-width: 720px; margin: 0 auto; text-align: center; font-size: 1.15rem; }
.nd-card { border: 1px solid var(--color-content-border); }
/* Cards side by side (today / tomorrow, the hub) match their row's height. */
.cols_2 .nd-card, .cols_3 .nd-card { height: 100%; }
.nd-when { font-size: 1.1rem; margin: 0 0 0.9rem; color: var(--color-content-faded); }
#nd-today .nd-when { color: var(--color-content-primary); }
.nd-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.nd-chips li { margin: 0; padding: 0.35em 0.95em; border-radius: 2em; background: var(--color-content-primary-faded);
  color: var(--color-content-heading); font-family: var(--h1-font-family); font-weight: 600; }
#nd-today .nd-chips li { font-size: 1.15rem; }
.nd-chips .nd-more { background: transparent; color: var(--color-content-faded); }
.nd-empty { margin: 0; color: var(--color-content-faded); }
[aria-busy="true"] .nd-names { height: 2.2rem; width: 60%; border-radius: 2em; background: var(--color-content-bg-alt); }

.nd-search { display: flex; gap: 0.75rem; max-width: 560px; margin: 0 auto; }
.nd-search input { flex: 1; min-width: 0; border-radius: 2em; }
#nd-result { max-width: 560px; margin: 1rem auto 0; min-height: 1.6em; text-align: center; font-size: 1.15rem; }
#nd-result p { margin: 0 0 0.25rem; }

.nd-cta .nd-cta-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.nd-cta p { max-width: 640px; margin-left: auto; margin-right: auto; }
.nd-fine { margin: 0; text-align: center; font-size: 0.9rem; color: var(--color-content-faded); }

.nd-note { text-align: center; color: var(--color-content-faded); }
#nd-calendar { columns: 2 360px; column-gap: 1.5rem; }
.nd-month { break-inside: avoid-column; margin: 0 0 1.5rem; padding: 1.25rem 1.5rem; border-radius: 24px;
  background: var(--color-content-bg-alt); }
.nd-month h3 { font-size: 1.3rem; margin: 0 0 0.5rem; color: var(--color-content-primary); }
.nd-month ol { list-style: none; margin: 0; padding: 0; }
.nd-month li { display: grid; grid-template-columns: 8.5em 1fr; gap: 0.75rem; margin: 0; padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--color-content-border); border-radius: 8px; scroll-margin-top: 100px; }
.nd-month li:last-child { border-bottom: 0; }
.nd-month li:target, .nd-month li.nd-is-today { background: var(--color-content-primary-faded); }
.nd-month li.nd-is-today time { color: var(--color-content-secondary); font-weight: 600; }
.nd-month time { color: var(--color-content-faded); font-variant-numeric: tabular-nums; }
.nd-month details summary { cursor: pointer; color: var(--color-content-link); }

.nd-others { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.nd-others li { margin: 0; }
.nd-others a { display: block; padding: 0.55em 1.1em; border-radius: 2em; background: var(--color-content-bg-alt);
  color: var(--color-content-heading); font-weight: 600; }
.nd-others a:hover { color: var(--color-content-primary); }
.nd-sources { max-width: 860px; margin: 0 auto; font-size: 0.85rem; color: var(--color-content-faded); }
.nd-sources h6 { text-align: center; }
.nd-sources a { color: var(--color-content-faded); }

@media (max-width: 600px) {
  .nd-search { flex-direction: column; }
  .nd-month li { grid-template-columns: 1fr; gap: 0; }
}
.cols_3 .nd-fine { text-align: left; }
.nd-pro { display: inline-block; vertical-align: middle; margin-left: 0.3em; padding: 0.15em 0.55em; border-radius: 2em;
  background: var(--color-content-primary-grad); color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
