/* Shared by the public calendar and its local design preview. */
body.md-namedays-page { margin: 0; background: #fff; contain: none; }
.nd-page, .nd-page *, .nd-header, .nd-preview, .nd-footer { box-sizing: border-box; }
body:has(.nd-preview) { margin: 0; background: #fff; color: #002f65; font: 15px/1.7 "Open Sans", Arial, sans-serif; }
.nd-page a, .nd-header a, .nd-footer a { color: inherit; text-underline-offset: 4px; }
.nd-page :is(button, input, select) { font: inherit; border-radius: 0; }
.nd-page button { cursor: pointer; }
.nd-page :is(a, button, input, select, summary):focus-visible { outline: 2px solid #5f75b3 !important; outline-offset: 4px !important; }
.nd-page [hidden] { display: none !important; }
.nd-preview { display: flex; justify-content: center; gap: 16px; padding: 8px 20px; font-size: 11px; background: #f1f5f8; color: #526174; }
.nd-header { max-width: 1180px; margin: auto; padding: 24px 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.nd-header img { display: block; width: 185px; height: 83px; object-fit: contain; }
.nd-header > a:last-child { font-size: 12px; text-decoration: none; }
.nd-header > a:last-child span { color: #5f75b3; margin-left: 12px; }
.nd-page { padding-top: 6px; }
.nd-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; color: #65768b; font-size: 11px; margin: 8px 0 38px; }
.nd-breadcrumb a { text-decoration: none; }
.nd-hero { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 80px; padding-bottom: 48px; }
.nd-page h1 { font-size: clamp(42px, 5.2vw, 68px) !important; margin: 18px 0 24px; }
.nd-page h1 span { display: block; color: #5f75b3; }
.nd-page .nd-lead { max-width: 490px; color: #526174; font-size: 16px; }
.nd-page .nd-hero-names { margin: -4px 0 20px; font-size: 19px; color: #002f65; }
.nd-page .nd-empty { padding: 14px; margin-top: 16px; background: #f1f5f8; color: #526174; font-size: 12px; }
.nd-intro .md-about__text-link { margin-top: 22px; }
.nd-calendar { padding: 24px 28px 18px; border: 1px solid #dce4ee; border-top: 3px solid #c9dc03; }
.nd-date { display: flex; align-items: center; gap: 16px; margin: 16px 0 22px; }
.nd-date > strong { font-size: 88px; font-weight: 400; line-height: 1; letter-spacing: -.06em; }
.nd-date > span { font-size: 18px; line-height: 1.5; }
.nd-date small { display: block; font-size: 12px; color: #65768b; }
.nd-date .nd-spark { font-size: 52px; color: #aaba00; margin-left: auto; }
.nd-date-form label, .nd-trip-mode label { display: block; font-size: 11px; color: #526174; margin-bottom: 5px; }
.nd-date-form > div { display: flex; gap: 6px; }
.nd-date-form :is(input, select) { width: 100%; min-width: 0; }
.nd-page :is(input, select) { padding: 9px 10px; min-height: 44px; border: 1px solid #dce4ee; background: white; color: #002f65; font-size: 13px; }
.nd-page button:not(.md-about__pause) { padding: 10px 14px; min-height: 44px; border: 1px solid #dce4ee; background: #f1f5f8; color: #002f65; font-size: 12px; }
.nd-page button:not(.md-about__pause):hover { background: #e5ecf5; }
.nd-date-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12px; }
.nd-date-nav a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; text-decoration: none; }
.nd-date-nav a:hover { background: #f1f5f8; }
.nd-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.nd-section-heading > p { font-size: 12px; color: #526174; }
.nd-page h2 { margin-top: 10px; font-size: clamp(26px, 3vw, 36px) !important; }
.nd-names { padding: 38px 0 42px; border-top: 1px solid #dce4ee; scroll-margin-top: 20px; }
.nd-name-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.nd-name { min-width: 0; padding: 22px 24px 20px; border: 1px solid #dce4ee; background: #fcfdff; }
.nd-number { color: #8193ad; font-size: 11px; letter-spacing: .12em; }
.nd-page .nd-name h3 { margin: 10px 0 12px; font-size: 30px !important; overflow-wrap: anywhere; }
.nd-name > p { color: #526174; font-size: 13px; max-width: 240px; }
.nd-name-actions { display: grid; justify-items: start; gap: 10px; margin-top: 20px; }
.nd-page .nd-name-actions button { background: transparent; padding: 0; border: 0; border-bottom: 2px solid #c9dc03; font-weight: 600; }
.nd-name-actions a { color: #65768b; font-size: 11px; }
.nd-name-actions span { margin-left: 12px; }
.nd-page .nd-source { font-size: 11px; color: #65768b; line-height: 1.8; margin-top: 20px; }
.nd-source a { text-decoration: underline; }
.nd-extended { margin-top: 24px; border: 1px solid #dce4ee; }
.nd-page .nd-extended summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14px; line-height: 1.7; background: #fff; color: #002f65; }
.nd-page .nd-extended summary::after { content: none; }
.nd-extended summary::-webkit-details-marker { display: none; }
.nd-extended summary > span:not(.nd-plus) { font-size: 11px; font-weight: 400; color: #65768b; }
.nd-plus { margin-left: auto; font-size: 22px; font-weight: 400; }
.nd-extended[open] .nd-plus { transform: rotate(45deg); }
.nd-extended > div { border-top: 1px solid #dce4ee; padding: 20px; }
.nd-extended p { font-size: 13px; color: #526174; }
.nd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.nd-chips span { padding: 5px 12px; background: #f1f5f8; font-size: 13px; }
.nd-birthdays { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 36px; background: #f3f6fa; }
.nd-birthdays > div:first-child > p:last-child { color: #526174; margin-top: 20px; font-size: 14px; max-width: 390px; }
.nd-birthday-card { padding: 24px; background: white; border: 1px solid #dce4ee; }
.nd-demo-label { color: #65768b; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.nd-page .nd-birthday-total { display: flex; align-items: center; gap: 16px; margin: 14px 0; font-size: 12px; max-width: 260px; color: #526174; }
.nd-birthday-total strong { color: #002f65; font-size: 50px; line-height: 1.2; font-weight: 400; }
.nd-birthday-card ul { list-style: none; margin: 0; padding: 0; }
.nd-birthday-card li { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #edf2f7; padding: 8px 0; font-size: 14px; }
.nd-birthday-card li span:last-child { color: #65768b; font-size: 12px; }
.nd-travel { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center; margin: 64px 0; }
.nd-travel-intro > p:not([class]) { font-size: 14px; color: #526174; margin-top: 20px; max-width: 400px; }
.nd-travel .md-about__visual { margin-right: 18px; }
.nd-travel .md-about__photo-link img { aspect-ratio: 1.2; }
.nd-travel .md-about__visual-caption { height: 86px; font-size: 15px; }
.nd-trip-mode { margin-top: 24px; }
.nd-trip-mode select { max-width: 100%; }
.nd-travel .md-about__button { margin-top: 24px; font-size: 12px; gap: 18px; }
.nd-greeting { display: flex; align-items: center; gap: 24px; padding: 28px 32px; border-top: 3px solid #c9dc03; background: #002f65; color: white; }
.nd-greeting > span { color: #c9dc03; font-size: 44px; }
.nd-page .nd-greeting h2 { font-size: 23px !important; color: white !important; margin: 0; }
.nd-page .nd-greeting p { font-size: 12px; color: #d3deec; margin-top: 8px; }
.nd-greeting button { margin-left: auto; flex-shrink: 0; }
.nd-feedback { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 20; width: max-content; max-width: calc(100% - 32px); padding: 12px 20px; background: #002f65; color: white; font-size: 13px; box-shadow: 0 4px 20px #002f6533; }
.nd-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px max(20px, calc((100% - 1180px) / 2)); background: #f1f5f8; color: #526174; font-size: 11px; }
.nd-year { margin: 40px 0; }
.nd-month-calendar { margin-top: 24px; padding: 24px; border: 1px solid #dce4ee; border-top: 3px solid #c9dc03; background: #fff; }
.nd-month-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.nd-month-label { font-size: 20px; font-weight: 600; text-align: center; }
.nd-page .nd-month-nav button { width: 44px; padding: 0; flex-shrink: 0; font-size: 22px; background: #e5ecf5; }
.nd-month + .nd-month { margin-top: 32px; }
.is-enhanced .nd-month + .nd-month { margin-top: 0; }
.is-enhanced .nd-month > h3 { display: none; }
.nd-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.nd-weekday { padding-bottom: 6px; color: #526174; font-size: 12px; font-weight: 600; text-align: center; }
.nd-page .nd-month-cell { display: flex; flex-direction: column; min-width: 0; min-height: 110px; gap: 6px; padding: 8px; border: 1px solid #e8edf3; text-decoration: none; }
.nd-month-date { align-self: flex-start; font-size: 14px; font-weight: 600; }
.nd-month-names { color: #526174; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.nd-month-cell.is-today { border-color: #002f65; box-shadow: inset 0 0 0 1px #002f65; }
.nd-month-cell.is-today .nd-month-date { min-width: 26px; background: #c9dc03; text-align: center; }
.nd-month-cell:hover, .nd-month-cell[aria-current] { background: #edf2f7; box-shadow: inset 0 -3px #c9dc03; }
@media (max-width: 1250px) { .nd-header { padding-left: 32px; padding-right: 32px; } }
@media (max-width: 950px) { .nd-hero, .nd-travel { gap: 30px; } .nd-birthdays { gap: 30px; padding: 28px; } .nd-greeting { flex-wrap: wrap; } .nd-greeting button { margin-left: 0; } }
@media (max-width: 700px) {
    .nd-month-calendar { padding: 16px 8px; margin-left: -12px; margin-right: -12px; }
    .nd-month-grid { gap: 2px; }
    .nd-page .nd-month-cell { min-height: 94px; padding: 4px 2px; }
    .nd-month-names { font-size: 10px; }
    .nd-month-label { font-size: 17px; }
    .nd-preview { display: block; font-size: 10px; } .nd-preview span { display: block; }
    .nd-header { padding: 16px 20px 8px; } .nd-header img { width: 135px; height: 60px; } .nd-header > a:last-child { max-width: 125px; font-size: 11px; text-align: right; }
    .nd-page { padding-bottom: 36px; } .nd-breadcrumb { margin-bottom: 28px; }
    .nd-hero, .nd-birthdays, .nd-travel { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .nd-page h1 { font-size: 42px !important; } .nd-calendar { padding: 20px; }
    .nd-section-heading { display: block; } .nd-section-heading > p { margin-top: 14px; }
    .nd-name-grid { grid-template-columns: minmax(0, 1fr); } .nd-name { padding: 20px; }
    .nd-name-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
    .nd-names { padding-top: 28px; } .nd-birthdays { padding: 24px 20px; margin: 0 -20px; }
    .nd-birthday-card { padding: 20px; } .nd-travel { margin: 40px 0; }
    .nd-travel .md-about__visual { margin: 0 -20px; }
    .nd-travel .md-about__visual::before { display: none; }
    .nd-travel .md-about__photo-link img { aspect-ratio: 1; }
    .nd-travel .md-about__visual-caption { height: 113px; font-size: 18px; }
    .nd-travel .md-about__button { width: 100%; gap: 10px; padding: 12px; text-align: center; }
    .nd-greeting { padding: 24px 20px; gap: 14px; } .nd-greeting > span { display: none; }
    .nd-page .nd-greeting h2 { font-size: 22px !important; } .nd-footer { flex-direction: column; gap: 8px; }
}
