/* ---------- General ---------- */

  body {
            font-family:
                -apple-system,
                BlinkMacSystemFont,
                "Segoe UI",
                sans-serif;

            margin: 0;
            background: #f4f5f7;
            color: #222;
            padding-top: 64px;
        }
/* ---------- Header / Navigation ---------- */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    background: #ffffff;
    border-bottom: 1px solid #d9dce1;

    padding: 0 28px;

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

nav {
    max-width: 1100px;
    height: 64px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 22px;
}

nav .brand {
    font-weight: 700;
    font-size: 17px;
    margin-right: 12px;
    white-space: nowrap;
}

a:link,
a:visited {
    color: #0066cc;
}
nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

nav .right {
    margin-left: auto;
    white-space: nowrap;
}
        main {
            max-width: 1100px;
            margin: 35px auto;
            background: white;
            padding: 30px;
            border-radius: 12px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th,
        td {
            text-align: left;
            padding: 10px;
            border-bottom: 1px solid #ddd;
        }

        th {
            background: #f7f7f7;
        }

        .button {
            display: inline-block;
            padding: 9px 14px;
            border-radius: 7px;
            text-decoration: none;
            border: 1px solid #bbb;
            background: #fff;
            color: #222;
        }

        .button-primary {
            font-weight: 600;
        }

        .flash {
            margin-bottom: 20px;
            padding: 12px;
            border-radius: 8px;
            background: #fff3cd;
        }

        label {
            display: block;
            margin-top: 16px;
            margin-bottom: 5px;
            font-weight: 600;
        }

        input,
        textarea {
            width: 100%;
            box-sizing: border-box;
            padding: 10px;
            border: 1px solid #bbb;
            border-radius: 7px;
            font-size: 16px;
        }

        textarea {
            min-height: 130px;
        }

        .form-actions {
            margin-top: 24px;
        }



/* ---------- Calendar ---------- */

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 15px;
    flex-wrap: wrap;
}

.calendar-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.calendar-table {
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 6px;
}

.calendar-table th {
    text-align: center;
    background: transparent;
    border: none;
    padding: 8px 4px;
    font-size: 14px;
    color: #666;
}

.calendar-table td {
    vertical-align: top;
    height: 115px;
    padding: 9px;
    border: 1px solid #e1e4e8;
    border-radius: 9px;
    background: #fff;
}

.calendar-table td.weekend {
    background: #f8f9fb;
}

.calendar-table td.other-month {
    background: #fafafa;
    color: #bbb;
}

.calendar-table td.today {
    border: 2px solid #4c7bd9;
    background: #f4f8ff;
}

.calendar-day-number {
    display: inline-block;
    font-weight: 700;
    margin-bottom: 7px;
}

.calendar-today-label {
    font-size: 11px;
    margin-left: 5px;
    color: #4c7bd9;
    font-weight: 600;
}

.calendar-events {
    list-style: none;
    padding: 0;
    margin: 3px 0 0;
}

.calendar-event {
    display: block;
    margin-bottom: 5px;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.25;
}

.calendar-event-birthday {
    background: #fff1d6;
    border-left: 4px solid #e0a229;
}

.calendar-event-death {
    background: #eef0f3;
    border-left: 4px solid #7b8490;
    color: #555;
}
.people-columns {
    columns: 3;
    column-gap: 40px;
    padding-left: 20px;
}

.people-columns li {
    break-inside: avoid;
    margin-bottom: 6px;
}

/* ---------- Registration status ---------- */

.family-members-heading {
    display: flex;
    align-items: center;
    gap: 18px;
}

.family-members-heading h2 {
    margin-right: 4px;
}

.registration-legend {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.registration-legend .registration-dot {
    margin-left: 10px;
    margin-right: 4px;
}

.registration-legend .registration-dot:first-child {
    margin-left: 0;
}
.registration-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: middle;
}
.registration-dot.administrator {
    background: #222;
}
.registration-dot.registered {
    background: #2e9d4d;
}

.registration-dot.pending {
    background: #e0a229;
}

.registration-dot.not-registered {
    background: #c94a4a;
}
@media (max-width: 900px) {
    .people-columns {
        columns: 2;
    }
}

@media (max-width: 600px) {
    .people-columns {
        columns: 1;
    }
}
/* ---------- Relationships ---------- */

.relationship-entry {
    margin-bottom: 8px;
}

.relationship-detail {
    margin-top: 5px;
    font-size: 14px;
}

.relationship-notes {
    margin-top: 5px;
    font-size: 14px;
    white-space: pre-line;
}

.relationship-actions {
    margin-top: 8px;
}
.calendar-event-anniversary {
    background: #fff2b8;
    border-left: 4px solid #d4a017;
}

/* ---------- Photo History ---------- */

.photo-history {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.photo-history-item {
    width: 140px;
    border: 1px solid #ddd;
    border-radius: 9px;
    background: #fafafa;
    overflow: hidden;
}

.photo-history-item img {
    display: block;
    width: 140px;
    height: 160px;
    object-fit: cover;
    background: #eee;
}
