/* Birthday calendar (/verjaardagen) */
.bday-head { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.bday-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.bday-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.bday-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bday-item { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface); scroll-margin-top: 110px; }
.bday-item.is-soon { border-color: var(--green); box-shadow: 0 0 0 3px var(--lime); }
.bday-item:target { border-color: var(--green); }
.bday-main { display: flex; align-items: flex-start; gap: 14px; }
.bday-main .who strong { font-size: 20px; overflow-wrap: anywhere; }
.bday-when { font-weight: 700; color: var(--green); font-size: 16px; }
.bday-card { width: 100%; }
.bday-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bday-tools form { display: contents; }

/* Calendar page: the list is the main column, the nearest birthday and the
   side boxes beside it; on a phone the nearest birthday comes first. */
.bday-layout { display: grid; gap: 24px; grid-template-areas: "today" "list" "side"; }
.bday-today { grid-area: today; }
.bday-upcoming { grid-area: list; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bday-side { grid-area: side; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 900px) {
  .bday-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); grid-template-rows: auto 1fr; grid-template-areas: "list today" "list side"; gap: 24px 40px; align-items: start; }
  .bday-today { padding: 22px; }
  .bday-today h2 { font-size: 26px; }
  .bday-today .btn { width: 100%; justify-content: center; text-align: center; }
}

/* A person's reminder as a switch that says its state. */
.bday-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; white-space: nowrap; cursor: pointer; }
.bday-switch-track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #D9D3C6; transition: background .15s; }
.bday-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.bday-switch[aria-checked="true"] .bday-switch-track { background: var(--green); }
.bday-switch[aria-checked="true"] .bday-switch-track::after { transform: translateX(18px); }
.bday-switch[aria-checked="true"] { font-weight: 700; color: var(--green); }
.bday-switch.is-muted { color: var(--muted); font-weight: 400; }
.bday-switch.is-muted .bday-switch-track { background: #B9C4BE; }
.bday-switch:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 8px; }

/* Aanpassen and Verwijderen behind one small menu. */
.bday-menu { position: relative; }
.bday-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font-size: 12px; letter-spacing: 1px; cursor: pointer; list-style: none; }
.bday-menu summary::-webkit-details-marker { display: none; }
.bday-menu summary:hover, .bday-menu[open] summary { border-color: var(--green); }
.bday-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: flex; flex-direction: column; min-width: 170px; padding: 6px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); box-shadow: 0 10px 24px rgba(18, 64, 45, .14); }
.bday-menu-list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.bday-menu-list a:hover { background: var(--ground); }
.bday-menu-list .bday-menu-danger { color: var(--red); }

/* The sample for guests is an illustration: its own colour and nothing to click. */
.bday-sample { padding: 18px; border-radius: 22px; background: var(--sand); border: 2px dashed var(--kraft-dark); }
.bday-sample-tag { margin: 0 0 12px; font-weight: 700; color: var(--muted); }
.bday-sample-tag span { font-weight: 400; }
.bday-sample .bday-item { background: #FAF6EC; border-color: transparent; pointer-events: none; user-select: none; }
/* The examples have no card or buttons, so they keep the one-column row. */
@media (min-width: 640px) { .bday-sample .bday-item { display: flex; } }
.bday-sample .date { background: var(--surface); }

.bday-steps { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.bday-steps li { display: flex; align-items: flex-start; gap: 14px; }
.bday-steps .step-number { flex: none; margin: 0; }

.bday-empty { align-items: flex-start; gap: 14px; padding: 28px; }
.bday-empty p { margin: 0; max-width: 34em; }
.bday-empty .mini-cal { transform: rotate(-3deg); }

.bday-reminders p { margin: 0; }
.bday-reminders .btn { align-self: flex-start; }
.bday-warning { padding: 10px 14px; border-radius: 12px; background: #FFF4D6; border: 2px solid #EBCB7A; font-size: 16px; }

.bday-form { display: flex; flex-direction: column; gap: 18px; }
.bday-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.bday-form legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 16px; }
.bday-date .field label { font-weight: 400; color: var(--muted); }
.bday-form select { width: 100%; min-height: 52px; padding: 0 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); font: inherit; color: var(--ink); }
.bday-form select:focus { outline: 0; border-color: var(--green); }
.bday-help { margin: 0; font-size: 15px; color: var(--muted); }
.bday-error { margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; background: #FDECEA; border: 2px solid #E8A39D; color: #7A1F18; font-weight: 700; }
.bday-delete-link { margin: 20px 0 0; text-align: center; }
.bday-delete-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--red); font-weight: 700; }
.bday-confirm { display: flex; flex-direction: column; gap: 12px; }
.bday-danger { background: var(--red); color: #fff; }
.bday-danger:hover { background: #A82E25; }

.bday-quick-rows { display: flex; flex-direction: column; gap: 14px; }
.bday-form .bday-quick-row { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--ground); border: 2px solid var(--line); }
.bday-form .bday-quick-row legend { float: left; width: 100%; margin: 0; }

/* People already saved: shown for reference only, in their own colour. */
.bday-existing { margin-top: 32px; padding: 18px; border-radius: 18px; background: var(--sand); }
.bday-existing h2 { font-size: 22px; margin-bottom: 10px; }
.bday-existing ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bday-existing li { padding: 6px 12px; border-radius: 999px; background: #FAF6EC; color: var(--muted); font-size: 16px; }
.bday-existing li strong { color: var(--ink); }

@media (min-width: 640px) {
  .bday-item { display: grid; grid-template-columns: minmax(0, 1fr) 264px; align-items: start; column-gap: 16px; }
  .bday-main { grid-row: span 2; }
  .bday-card { width: auto; }
  .bday-tools { justify-content: flex-end; gap: 12px; }
}

/* Everyone with the soonest birthday gets a place in the green block. */
.tomorrow-person { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tomorrow-person + .tomorrow-person { margin-top: 14px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .25); align-self: stretch; }
.tomorrow .tomorrow-person h2 { margin-bottom: 6px; }
.tomorrow-note { margin: -4px 0 8px; color: #E3ECE6; font-size: 16px; }
.bday-leap { font-size: 15px; }

/* Collecting birthdays through a link (app/modules/birthday-collect.php). */
.bday-collect { display: grid; gap: 10px; margin-bottom: 16px; }
.bday-collect p { margin: 0; }
.bday-collect form { text-align: center; }

.reminder-days { margin: 10px 0; }
.bday-reminder-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.reminder-days-form { margin-top: 14px; }
