/* Modern presentation for the public My3 homepage content column. */
.content {
    min-height: 100vh;
    background: #f4f7f5;
    color: #26332c;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.content > div {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

.content .posts {
    margin: 0 0 1.5rem;
}

.content .post {
    position: relative;
    padding: clamp(1.35rem, 3vw, 2.25rem);
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe7e2;
    border-radius: 0;
    box-shadow: 0 8px 28px rgba(31, 55, 41, 0.06);
}

.content .post::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, #3d7655, #78a36d);
}

.content .post-header {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    margin-bottom: 0.3rem;
}

/* The former glossy yellow image-buttons duplicate the section title. */
.content .post-avatar {
    display: none;
}

.content .post-title {
    margin: 0;
    color: #203d2d;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 680;
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.content .post-meta {
    margin: 0.4rem 0 1.35rem;
    color: #748178;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.5;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.content .post-description {
    color: #425047;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.72;
}

.content .post-description > :first-child {
    margin-top: 0;
}

.content .post-description h1,
.content .post-description h2,
.content .post-description h3 {
    color: #294936;
    font-family: inherit;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.content .post-description h1 {
    font-size: 1.65rem;
}

.content .post-description h2 {
    margin-top: 1.75rem;
    font-size: 1.3rem;
}

.content .post-description h3 {
    font-size: 1.08rem;
}

.content .pure-button,
.content button,
.content input[type="submit"] {
    padding: 0.65rem 1rem;
    color: #294437;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.2;
    background: #edf3ef;
    border: 1px solid #cfddd4;
    border-radius: 8px;
    box-shadow: none;
    transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.content .pure-button:hover,
.content .pure-button:focus,
.content button:hover,
.content button:focus,
.content input[type="submit"]:hover,
.content input[type="submit"]:focus {
    color: #173a27;
    text-decoration: none;
    background: #e2eee6;
    border-color: #a9c2b1;
    outline: none;
}

.content .pure-button:active,
.content button:active,
.content input[type="submit"]:active {
    transform: translateY(1px);
}

.content .pure-button-primary,
.content button[type="submit"],
.content input[type="submit"] {
    color: #fff;
    background: #356f4e;
    border-color: #356f4e;
}

.content .pure-button-primary:hover,
.content .pure-button-primary:focus,
.content button[type="submit"]:hover,
.content button[type="submit"]:focus,
.content input[type="submit"]:hover,
.content input[type="submit"]:focus {
    color: #fff;
    background: #285d3f;
    border-color: #285d3f;
}

.content .pure-form label {
    margin: 0.85rem 0 0.3rem;
    color: #34483c;
    font-size: 0.88rem;
    font-weight: 650;
}

.content .pure-form input[type="email"],
.content .pure-form input[type="password"],
.content .pure-form input[type="search"],
.content .pure-form input[type="text"],
.content .pure-form textarea {
    width: min(100%, 34rem);
    min-height: 2.7rem;
    padding: 0.66rem 0.75rem;
    color: #26332c;
    font-family: inherit;
    background: #fbfcfb;
    border: 1px solid #cbd7cf;
    border-radius: 7px;
    box-shadow: inset 0 1px 2px rgba(27, 48, 35, 0.04);
}

.content .pure-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.content .pure-form input:focus,
.content .pure-form textarea:focus {
    background: #fff;
    border-color: #4f8765;
    box-shadow: 0 0 0 3px rgba(79, 135, 101, 0.14);
    outline: none;
}

.content .pure-form-aligned .pure-control-group {
    margin-bottom: 0.9rem;
}

.content .pure-form-aligned .pure-controls {
    margin-top: 1.25rem;
}

.content ul {
    padding-left: 1.25rem;
}

.content li {
    margin-bottom: 0.45rem;
}

.content hr {
    border: 0;
    border-top: 1px solid #e2e8e4;
}

.home-auth-form {
    max-width: 34rem;
}
.password-change-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 300ms ease, opacity 300ms ease, visibility 300ms ease;
}
.password-change-panel.is-open {
    max-height: 800px;
    opacity: 1;
    visibility: visible;
}
.password-change-panel-inner {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #d9e2ec;
    border-radius: 6px;
    background: #f7f9fb;
}
.password-change-panel h2 { margin-top: 0; }
.password-change-panel form label { display: block; margin: .65rem 0 .25rem; }
.password-change-panel form button[type="submit"] { margin-top: 1rem; }
.password-change-success, .password-change-error { padding: .7rem; margin-bottom: .7rem; border: 1px solid; }
.password-change-success { color: #245137; background: #f3faef; border-color: #b7d7a8; }
.password-change-error { color: #8a3030; background: #fff5f5; border-color: #e5b8b8; }
@media (prefers-reduced-motion: reduce) {
    .password-change-panel { transition: none; }
}

.home-password-field {
    display: flex;
    width: min(100%, 34rem);
}

.content .pure-form .home-password-field input {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
    border-radius: 7px 0 0 7px;
}

.content .home-password-toggle {
    min-width: 3rem;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid #cbd7cf;
    border-left: 0;
    border-radius: 0 7px 7px 0;
}

.home-auth-actions {
    margin: 1rem 0 0;
}

.home-auth-message {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid;
}

.home-auth-message-success {
    color: #245137;
    background: #f3faef;
    border-color: #b7d7a8;
}

.home-auth-message-error {
    color: #8a3030;
    background: #fff5f5;
    border-color: #e5b8b8;
}

.family-tree-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.family-tree-actions {
	margin-top: 1rem;
}

.home-contact-form {
	max-width: 42rem;
	padding: 1.25rem;
	background: #f8faf8;
	border: 1px solid #d6e1da;
}

.home-contact-form > fieldset > div,
.home-contact-form > fieldset > label,
.home-contact-reply {
	margin-bottom: 1rem;
}

.home-contact-access {
	padding: 0.75rem;
	color: #31523d;
	background: #eef6f0;
	border-left: 3px solid #5a8a6a;
}

.home-contact-form textarea {
	resize: vertical;
}

.home-contact-reply {
	padding: 0.75rem;
	background: #eef5f0;
	border-left: 3px solid #5a8a6a;
}

.home-contact-captcha {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.home-contact-captcha input {
	width: 9rem;
}

.home-contact-captcha img {
	max-height: 3.5rem;
}

.home-contact-actions {
	margin-top: 1rem;
}

.family-tree-tile {
    display: flex;
    min-width: 0;
    min-height: 7rem;
    padding: 0.9rem;
    align-items: center;
    gap: 0.9rem;
    color: #294437;
    background: #f8faf8;
    border: 1px solid #d6e1da;
    transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.family-tree-tile:hover,
.family-tree-tile:focus {
    color: #173a27;
    text-decoration: none;
    background: #eef5f0;
    border-color: #9fbcaa;
    transform: translateY(-1px);
}

.family-tree-tile img {
    width: 4rem;
    height: 4rem;
    flex: 0 0 4rem;
    object-fit: contain;
}

.family-tree-copy {
    min-width: 0;
	flex: 1 1 auto;
}

.family-tree-tile strong,
.family-tree-tile small {
    display: block;
}

.family-tree-access {
	flex: 0 0 auto;
	align-self: flex-start;
	padding: 0.22rem 0.48rem;
	color: #fff;
	background: #60756a;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.025em;
	text-transform: uppercase;
}

.family-tree-access-owner { background: #805b24; }
.family-tree-access-admin { background: #526f9b; }
.family-tree-access-edit { background: #387352; }
.family-tree-access-view { background: #6d7b72; }

.family-tree-tile strong {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    line-height: 1.25;
}

.family-tree-tile small {
    overflow: hidden;
    color: #6d7b72;
    font-size: 0.8rem;
    line-height: 1.35;
    text-overflow: ellipsis;
}

@media (min-width: 48em) {
    .content {
        padding: 1rem 0;
    }

    .family-tree-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 47.999em) {
    .content {
        padding: 1.25rem 0.85rem;
    }

    .content .posts {
        margin-bottom: 1rem;
    }

    .content .pure-form-aligned .pure-control-group label {
        text-align: left;
    }

    .content .pure-form-aligned .pure-controls {
        margin-left: 0;
    }
}

body.my3-popup-open { overflow: hidden; }
.my3-popup { position: fixed; inset: 0; z-index: 20000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.my3-popup[hidden] { display: none; }
.my3-popup-backdrop { position: absolute; inset: 0; background: rgba(20, 32, 38, .58); }
.my3-popup-dialog { position: relative; width: min(44rem, 100%); max-height: calc(100vh - 2rem); overflow: hidden; background: #fff; box-shadow: 0 18px 60px rgba(0, 0, 0, .32); }
.my3-popup-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; color: #fff; background: #31523d; }
.my3-popup-header h2 { margin: 0; color: inherit; font-size: 1.1rem; }
.my3-popup-close { padding: 0 .25rem; border: 0; color: #fff; background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.my3-popup-frame { display: block; width: 100%; height: min(72vh, 38rem); border: 0; background: #fff; }
