/* Notices: family tab, notice form, Notices page, birthdays, wishes and the home strip. Form fields reuse .kpm-ff-* from KPM Families. */
.kpm-notices-editor { max-width: 980px; }
.kpm-nt-hint { color: #646970; font-size: .92em; }
.kpm-nt-check { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.kpm-notices-form textarea { width: 100%; box-sizing: border-box; }
.kpm-notices-form .kpm-ff-card > .kpm-ff-field { margin-top: 10px; }
.kpm-nt-person { margin: 0 0 8px; }
.kpm-nt-thumb { width: 96px; height: 120px; object-fit: cover; border-radius: 8px; }
.kpm-nt-consent { padding: 10px 12px; border: 1px solid #dcdcde; border-radius: 8px; background: #fffbea; }
.kpm-nt-inline { display: inline-flex; gap: 6px; align-items: center; margin: 0 4px 4px 0; }
.kpm-nt-quiet { color: #50575e !important; }
.kpm-nt-danger { color: #b32d2e !important; border-color: #b32d2e !important; }
.kpm-nt-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

/* One field height and a visible border, whatever the theme does to inputs and selects. */
.kpm-notices-form .kpm-ff-field input:not([type=file]):not([type=checkbox]),
.kpm-notices-form .kpm-ff-field select,
.kpm-nt-filter select, .kpm-nt-inline input[type=text] {
	box-sizing: border-box; height: 38px; min-height: 0; margin: 0; padding: 4px 10px;
	border: 1px solid #c3c4c7; border-radius: 6px; background-color: #fff; font-size: 14px; line-height: 1.3;
}
.kpm-notices-form textarea { padding: 8px 10px; border: 1px solid #c3c4c7; border-radius: 6px; background-color: #fff; font-size: 14px; }

/* Family tab lists */
.kpm-nt-list { list-style: none; margin: 0 0 16px; padding: 0; }
.kpm-nt-list li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.kpm-nt-who { flex: 1 1 280px; line-height: 1.5; }
.kpm-nt-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.kpm-nt-actions .kpm-nt-inline { margin: 0; }
.kpm-nt-state { display: inline-block; margin-top: 2px; padding: 0 8px; border-radius: 10px; font-size: .85em; background: #f0f0f1; }
.kpm-nt-state-live { background: #edfaef; color: #1a6b2a; }
.kpm-nt-state-pending { background: #f0f6fc; color: #135e96; }
.kpm-nt-state-rejected, .kpm-nt-state-removed { background: #fcf9e8; color: #7a5a00; }
.kpm-nt-recent { margin-bottom: 16px; padding: 4px 14px; border: 1px solid #dcdcde; border-radius: 10px; background: #f6f7f7; }
.kpm-nt-checks { list-style: none; margin: 0 0 10px; padding: 0; columns: 2 260px; }
.kpm-nt-checks li { margin: 0 0 6px; break-inside: avoid; }

/* Notices page */
.kpm-nt-tabs { display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: baseline; margin-bottom: 12px; border-bottom: 1px solid #dcdcde; }
.kpm-nt-tabs a { padding: 8px 2px; text-decoration: none; border-bottom: 3px solid transparent; }
.kpm-nt-tabs a.current { border-bottom-color: currentColor; font-weight: 600; }
.kpm-nt-tabs a span { color: #646970; font-weight: 400; }
.kpm-nt-tabs .kpm-nt-post { margin-left: auto; font-size: .92em; }
.kpm-nt-filter { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }
.kpm-nt-filter label { display: flex; flex-direction: column; gap: 3px; font-size: .9em; }
.kpm-nt-message { padding: 10px 0; }
.kpm-nt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.kpm-nt-card { display: flex; gap: 12px; padding: 12px; border: 1px solid #dcdcde; border-radius: 10px; background: #fff; color: inherit; text-decoration: none; font-size: .92em; line-height: 1.45; }
.kpm-nt-card:hover, .kpm-nt-card:focus { box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.kpm-nt-card img, .kpm-nt-card .kpm-nt-nophoto { flex: none; width: 72px; height: 90px; object-fit: cover; border-radius: 6px; background: #e9e9e9; }
.kpm-nt-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpm-nt-card-body strong { font-size: 1.05em; }
.kpm-nt-card-condolence { border-left: 4px solid #50575e; }
.kpm-nt-card-congrats { border-left: 4px solid #2271b1; }
.kpm-nt-card-birth, .kpm-nt-card-wedding { border-left: 4px solid #b26200; }
.kpm-nt-badge { align-self: flex-start; padding: 0 8px; border-radius: 10px; background: #f0f0f1; color: #3c434a; font-size: .82em; }
.kpm-nt-nophoto { display: block; background: #e9e9e9; }
.kpm-nt-pages { margin: 16px 0; }
.kpm-nt-pages .page-numbers { display: inline-block; padding: 4px 10px; }

/* One notice */
.kpm-nt-notice { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.kpm-nt-photo { flex: none; width: 240px; max-width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.kpm-nt-notice-condolence .kpm-nt-photo { filter: grayscale(20%); border: 6px solid #f0f0f1; }
.kpm-nt-body { flex: 1 1 320px; }
.kpm-nt-body h2 { margin: 6px 0; }
.kpm-nt-line { margin: 0 0 4px; color: #3c434a; }
.kpm-nt-message-text { margin: 12px 0; font-size: 1.05em; }
.kpm-nt-besnu { margin: 14px 0; padding: 12px 16px; border: 1px solid #dcdcde; border-radius: 10px; background: #f6f7f7; }
.kpm-nt-besnu h3 { margin: 0 0 6px; font-size: 1.05em; }
.kpm-nt-besnu p { margin: 0 0 4px; }

/* Birthdays */
.kpm-nt-bd-title { margin-top: 0; }
.kpm-nt-bd-village h3 { margin: 16px 0 8px; font-size: 1.05em; }
.kpm-nt-bd { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px 14px; align-items: start; }
.kpm-nt-bd > li { margin: 0; padding: 10px 12px; border: 1px solid #dcdcde; border-radius: 10px; background: #fff; scroll-margin-top: 110px; }
.kpm-nt-bd-person { display: flex; gap: 10px; align-items: center; }
.kpm-nt-bd-person > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.kpm-nt-bd-person small { color: #646970; font-size: .85em; }
.kpm-nt-bd img, .kpm-nt-bd .kpm-nt-nophoto { flex: none; width: 40px; height: 48px; object-fit: cover; border-radius: 6px; background: #e9e9e9; }
.kpm-nt-bd-count { margin: 8px 0 0; color: #8a4b00; font-size: .88em; }
.kpm-nt-bd-mine { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; margin-top: 6px; color: #1a6b2a; font-size: .88em; }
.kpm-nt-bd .kpm-ff-notice { margin: 8px 0 0; }

/* Wishes: the box under a notice and next to each birthday */
.kpm-nt-wishes { max-width: 760px; margin-top: 28px; padding-top: 18px; border-top: 1px solid #dcdcde; scroll-margin-top: 110px; }
.kpm-nt-wishes h3 { margin: 0 0 6px; }
.kpm-nt-wishes h3 span { color: #646970; font-weight: 400; }
.kpm-nt-for { margin: 0 0 4px; }
.kpm-nt-wish-box { margin-top: 8px; }
.kpm-nt-wish-box > summary { display: inline-block; padding: 4px 12px; border: 1px solid #b26200; border-radius: 16px; color: #8a4b00; font-size: .9em; cursor: pointer; list-style: none; }
.kpm-nt-wish-box > summary::-webkit-details-marker { display: none; }
.kpm-nt-wish-box[open] > summary { background: #fcf3e6; }
.kpm-nt-wish-form { margin: 10px 0 16px; padding: 12px 14px; border: 1px solid #dcdcde; border-radius: 10px; background: #f6f7f7; }
.kpm-nt-wish-from { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; font-size: .92em; }
.kpm-nt-wish-from select { box-sizing: border-box; height: 38px; max-width: 100%; margin: 0; padding: 4px 10px; border: 1px solid #c3c4c7; border-radius: 6px; background-color: #fff; font-size: 14px; }
.kpm-nt-wish-hint { margin: 0 0 6px; color: #646970; font-size: .88em; }
.kpm-nt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.kpm-nt-wish-form .kpm-nt-chip { width: auto; height: auto; min-height: 0; margin: 0; padding: 6px 12px; border: 1px solid #2271b1; border-radius: 16px; background: #fff; color: #135e96; font: inherit; font-size: .9em; line-height: 1.4; text-align: left; text-transform: none; letter-spacing: 0; white-space: normal; box-shadow: none; cursor: pointer; }
.kpm-nt-wish-form .kpm-nt-chip:hover, .kpm-nt-wish-form .kpm-nt-chip:focus { background: #f0f6fc; color: #0a4b78; }
.kpm-nt-wish-own { display: block; margin: 0 0 4px; font-size: .88em; color: #3c434a; }
.kpm-nt-wish-write { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.kpm-nt-wish-write textarea { flex: 1 1 240px; box-sizing: border-box; min-height: 60px; margin: 0; padding: 8px 10px; border: 1px solid #c3c4c7; border-radius: 6px; background-color: #fff; font-size: 14px; }
.kpm-nt-wish-list { list-style: none; margin: 0; padding: 0; }
.kpm-nt-wish-list li { margin: 0; padding: 10px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.kpm-nt-wish-list p { margin: 0 0 2px; }
.kpm-nt-wish-by span { color: #646970; font-size: .85em; }
.kpm-nt-wish-text { white-space: normal; }
.kpm-nt-inline .button-link { padding: 0; border: 0; background: none; font-size: .88em; text-decoration: underline; cursor: pointer; }

/* A wish on the timeline (BuddyPress activity) */
.kpm-wish-for { display: block; margin-top: 2px; }

/* Home page strip */
.kpm-nt-home { padding: 24px 0 8px; }
.kpm-nt-home-head { display: flex; gap: 8px 18px; align-items: baseline; flex-wrap: wrap; margin-bottom: 12px; }
.kpm-nt-home-head h2 { margin: 0; }
.kpm-nt-home-bd { padding: 2px 10px; border-radius: 12px; background: #fcf3e6; color: #8a4b00; text-decoration: none; }

@media (max-width: 720px) {
	.kpm-nt-tabs .kpm-nt-post { margin-left: 0; }
	.kpm-nt-cards { grid-template-columns: 1fr; }
	.kpm-nt-photo { width: 160px; }
}

/* A notice's photos and printed pages */
.kpm-nt-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 18px 0; }
.kpm-nt-images--one { grid-template-columns: minmax(0, 1fr); }
.kpm-nt-images a { display: block; overflow: hidden; border: 1px solid #dcdcde; border-radius: 10px; background: #fff; }
.kpm-nt-images img { display: block; width: 100%; height: auto; }
.kpm-nt-more { margin-top: 16px; padding-top: 14px; border-top: 1px solid #dcdcde; }
.kpm-nt-more-title { margin: 0 0 8px; font-weight: 600; }
.kpm-nt-image-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; padding: 0; list-style: none; }
.kpm-nt-image-list li { width: 110px; margin: 0; }
.kpm-nt-image-list img { display: block; width: 110px; height: 142px; object-fit: cover; border: 1px solid #dcdcde; border-radius: 8px; }
.kpm-nt-image-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kpm-nt-image-preview[hidden] { display: none; }
.kpm-nt-image-preview img { width: 72px; height: 92px; object-fit: cover; border: 1px solid #dcdcde; border-radius: 6px; }

/* KPM Families → Family albums. */
.kpm-nt-album-admin {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 12px 0;
}

.kpm-nt-album-admin li {
	width: 130px;
	margin: 0;
}

.kpm-nt-album-admin img {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 4px;
	border: 1px solid #dcdcde;
}
