@font-face {
    font-family: Atkinson;
    src: local("Atkinson Hyperlegible Next")
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #faf9f5;
    color: #27322c;
    font: 16px/1.55 Atkinson, system-ui, sans-serif
}

a {
    color: #285d49
}

.shell {
    max-width: 1100px;
    margin: auto;
    padding: 0 28px 55px
}

.top {
    height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #deddd5
}

.brand {
    font: 500 22px Georgia, serif;
    text-decoration: none;
    color: #285d49
}

.top nav {
    display: flex;
    gap: 22px;
    align-items: center
}

.top nav a,
.top nav span,
.link {
    font-size: 14px
}

.top nav a {
    text-decoration: none
}

.inline {
    display: inline
}

.link {
    border: 0;
    background: none;
    padding: 0;
    color: #285d49;
    text-decoration: underline;
    cursor: pointer
}

.hero {
    padding: 68px 0 44px
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .16em;
    color: #617466;
    text-transform: uppercase
}

.hero h1,
h1 {
    font: 500 clamp(36px, 6vw, 60px)/1.1 Georgia, serif;
    color: #285d49;
    margin: 10px 0 16px
}

.hero>p:last-child {
    font-size: 20px;
    color: #686960
}

.panel,
.auth-card {
    background: #fff;
    border: 1px solid #e3e0d7;
    border-radius: 12px;
    padding: 28px;
    margin: 18px 0
}

.panel h2,
.auth-card h2,
section h2 {
    font: 500 28px Georgia, serif
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    background: #285d49;
    border: 1px solid #285d49;
    border-radius: 7px;
    color: #fff;
    font: inherit;
    text-decoration: none;
    cursor: pointer
}

.button:hover,
button:hover {
    background: #1f4939
}

.secondary {
    background: #fff;
    color: #285d49
}

.secondary:hover {
    background: #edf2ee;
    color: #1f4939
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 24px 0
}

.stats article,
.person-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border: 1px solid #e3e0d7;
    border-radius: 10px;
    padding: 18px
}

.stats strong {
    font: 32px Georgia, serif;
    color: #285d49
}

.stats span,
.muted {
    color: #686960
}

.small {
    font-size: 13px
}

.auth-card {
    max-width: 470px;
    margin: 8vh auto;
    padding: 34px
}

.auth-card form {
    display: grid;
    gap: 16px;
    margin: 20px 0
}

.auth-card h1 {
    font-size: 42px
}

.auth-card details {
    border-top: 1px solid #e3e0d7;
    padding-top: 18px
}

.auth-card summary {
    cursor: pointer;
    color: #285d49
}

.auth-card label,
.form-grid label,
.inline-form label {
    display: grid;
    gap: 6px;
    font-size: 14px
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #c9c8c0;
    border-radius: 6px;
    background: #fff;
    color: #27322c;
    font: inherit
}

textarea {
    resize: vertical
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
    outline: 2px solid #285d49;
    outline-offset: 2px
}

.small {
    font-size: 13px
}

.flash {
    padding: 12px 16px;
    border-radius: 7px;
    margin: 18px 0
}

.flash.success {
    background: #eaf3ec;
    color: #234c39
}

.flash.error {
    background: #fff0ec;
    color: #8d342a
}

.heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 36px 0 22px
}

.heading h1 {
    margin: 0
}

.search {
    display: flex;
    gap: 10px;
    align-items: end;
    max-width: 700px;
    margin: 20px 0 28px
}

.search input {
    flex: 1
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px
}

.person-card {
    text-decoration: none;
    color: inherit;
    transition: border-color .15s
}

.person-card:hover {
    border-color: #285d49
}

.person-card strong,
.person-card small {
    display: block
}

.person-card small {
    color: #686960;
    margin-top: 3px
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e7eee8;
    color: #285d49;
    font: 20px Georgia, serif
}

.empty {
    text-align: center;
    padding: 65px 20px;
    border: 1px dashed #cfcec5;
    border-radius: 12px;
    margin: 24px 0
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 850px
}

.form-grid .wide {
    grid-column: 1/-1
}

.form-grid .check {
    display: flex;
    align-items: center;
    gap: 8px
}

.form-grid .check input {
    width: 18px;
    min-height: 18px
}

.actions {
    display: flex;
    align-items: center;
    gap: 18px
}

.back {
    display: inline-block;
    margin: 25px 0
}

.prose {
    max-width: 800px;
    white-space: normal
}

.relations {
    list-style: none;
    padding: 0
}

.relations li {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #e3e0d7
}

.relations li span {
    color: #686960;
    flex: 1
}

.danger {
    color: #9b3b2f
}

.inline-form {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
    padding: 20px 0
}

.inline-form label {
    min-width: 190px
}

.table-wrap {
    overflow: auto
}

table {
    border-collapse: collapse;
    width: 100%;
    background: #fff
}

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

th {
    font-size: 13px;
    color: #686960
}

.tree {
    text-align: center;
    padding: 40px 0
}

.tree-node {
    display: inline-flex;
    min-width: 200px;
    flex-direction: column;
    gap: 3px;
    padding: 18px;
    border: 1px solid #deddd5;
    border-radius: 10px;
    background: white;
    text-decoration: none;
    color: #27322c
}

.tree-node.focus {
    border-color: #285d49;
    background: #edf2ee
}

.tree-node span {
    font-size: 13px;
    color: #686960
}

.tree-connector {
    height: 38px;
    width: 1px;
    background: #a5b6a8;
    margin: auto
}

.tree-children {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px
}

.media-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e3e0d7;
    border-radius: 9px;
    text-decoration: none;
    color: #27322c
}

.media-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #f0efe9;
    border-radius: 5px
}

.media-card span {
    font-size: 14px;
    overflow-wrap: anywhere
}

details>summary {
    cursor: pointer;
    color: #285d49;
    font-size: 18px
}

@media(max-width:650px) {
    .shell {
        padding: 0 17px 38px
    }

    .top {
        height: auto;
        min-height: 65px;
        align-items: flex-start;
        padding: 14px 0;
        gap: 10px
    }

    .top nav {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end
    }

    .top nav span {
        display: none
    }

    .hero {
        padding: 44px 0 28px
    }

    .stats {
        grid-template-columns: 1fr
    }

    .heading {
        align-items: flex-start;
        flex-direction: column
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .form-grid .wide {
        grid-column: auto
    }

    .auth-card {
        margin: 7vh 0;
        padding: 25px
    }

    .search {
        align-items: stretch;
        flex-wrap: wrap
    }

    .search input {
        min-width: 100%
    }

    .inline-form {
        display: grid
    }

    .inline-form label {
        width: 100%
    }

    .relations li {
        flex-wrap: wrap
    }

    .tree-children {
        flex-direction: column;
        align-items: center
    }
}

.searchable-select {
    position: relative;
    width: 100%
}

.searchable-native.searchable-enhanced {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.searchable-select input {
    width: 100%
}

.searchable-options {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow: auto;
    margin: 0;
    padding: 5px;
    list-style: none;
    background: #fff;
    border: 1px solid #c9c8c0;
    border-radius: 7px;
    box-shadow: 0 8px 20px #27322c1c
}

.searchable-options[hidden] {
    display: none
}

.searchable-options [role=option] {
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer
}

.searchable-options [role=option]:hover,
.searchable-options [role=option][aria-selected=true] {
    background: #edf2ee
}

.searchable-options .no-results {
    padding: 8px 10px;
    color: #686960
}

.tree-page {
    margin: 18px 0 35px
}

.tree-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) minmax(330px, 2fr) auto;
    align-items: end;
    gap: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e3e0d7;
    border-radius: 12px
}

.tree-focus-label {
    display: grid;
    gap: 7px;
    font-size: 14px
}

.tree-view-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0
}

.tree-view-options legend {
    width: 100%;
    margin-bottom: 5px;
    font-size: 14px
}

.tree-view-options label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    white-space: nowrap
}

.tree-view-options input[type=radio] {
    width: 17px;
    min-height: 17px;
    margin: 0;
    accent-color: #285d49
}

.tree-summary {
    margin: 24px 0 4px;
    color: #686960;
    font-size: 14px
}

.family-tree {
    display: flex;
    flex-direction: column;
    align-items: stretch
}

.tree-generation {
    position: relative;
    padding: 22px 0 14px
}

.tree-generation+.tree-generation {
    border-top: 1px solid #e3e0d7
}

.tree-generation-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 12px
}

.tree-generation-heading h2 {
    margin: 0;
    font: 500 22px Georgia, serif;
    color: #285d49
}

.tree-generation-heading>span {
    color: #686960;
    font-size: 13px
}

.tree-generation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
    gap: 10px
}

.family-person {
    min-height: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #deddd5;
    border-radius: 10px;
    color: #27322c;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: border-color .15s, box-shadow .15s, transform .15s
}

.family-person:hover {
    border-color: #285d49;
    box-shadow: 0 4px 14px #27322c12;
    transform: translateY(-1px)
}

.family-person strong {
    font-size: 15px;
    line-height: 1.35
}

.family-person.is-focus {
    background: #edf2ee;
    border-color: #285d49;
    box-shadow: inset 0 0 0 1px #285d49
}

.family-person-tag {
    color: #686960;
    font-size: 12px
}

.tree-hint {
    margin: 10px 0 0;
    color: #686960;
    font-size: 13px
}

@media(max-width:850px) {
    .tree-controls {
        grid-template-columns: 1fr 1fr
    }

    .tree-controls>button {
        justify-self: start
    }
}

@media(max-width:600px) {
    .tree-controls {
        grid-template-columns: 1fr
    }

    .tree-view-options {
        align-items: flex-start;
        flex-direction: column
    }

    .tree-view-options legend {
        margin-bottom: 0
    }

    .tree-generation-heading h2 {
        font-size: 19px
    }

    .tree-generation-cards {
        grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr))
    }
}

.tree-generation-focus .tree-generation-cards {
    grid-template-columns: minmax(220px, min(360px, 100%));
    justify-content: center
}

.family-person-tag {
    max-width: 100%;
    line-height: 1.35
}

.family-tree {
    position: relative;
    isolation: isolate
}

.family-tree-connections {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: visible;
    pointer-events: none
}

.tree-generation {
    z-index: 1
}

.tree-generation-heading,
.tree-generation-cards {
    position: relative;
    z-index: 1
}

.family-person {
    position: relative;
    z-index: 2
}

.tree-generation-focus .tree-generation-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 280px));
    justify-content: center
}

.tree-generation-focus .family-person {
    min-height: 78px
}

.family-tree-scroll {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 8px 2px 20px;
    border-radius: 12px;
    scrollbar-color: #9dad9f #eeeae1
}

.family-tree {
    width: max(100%, var(--tree-width, 100%));
    min-width: 100%;
    position: relative;
    isolation: isolate;
    padding: 8px 10px 28px
}

.family-tree-connections {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: visible;
    pointer-events: none
}

.tree-generation {
    position: relative;
    z-index: 1;
    padding: 24px 0 28px;
    border: 0 !important
}

.tree-generation+.tree-generation:before {
    content: "";
    position: absolute;
    top: 0;
    left: 2%;
    right: 2%;
    height: 1px;
    background: #e7e3d8
}

.tree-generation-heading {
    margin: 0 0 18px
}

.tree-generation-heading h2 {
    font-size: 19px
}

.tree-generation-heading>span {
    font-size: 12px;
    color: #85877d
}

.tree-generation-cards {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    width: 100%
}

.family-person {
    flex: 0 0 140px;
    width: 140px;
    min-height: 66px;
    padding: 11px;
    background: #fffdf8;
    border: 1px solid #c9c6a0;
    border-radius: 4px;
    box-shadow: 0 2px 7px #36463710;
    overflow-wrap: normal
}

.family-person strong {
    font: 600 15px/1.25 Atkinson, system-ui, sans-serif;
    max-width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis
}

.family-person.is-focus {
    background: #e8f0e9;
    border: 2px solid #37634e
}

.tree-union-line {
    fill: none;
    stroke: #788b76;
    stroke-width: 1.6;
    stroke-linecap: round
}

.family-person-tag {
    display: none
}

@media(max-width:600px) {
    .tree-generation {
        padding: 20px 0 24px
    }

    .tree-generation-heading h2 {
        font-size: 17px
    }

    .family-person {
        flex-basis: 122px;
        width: 122px;
        min-height: 58px
    }

    .family-person strong {
        font-size: 13px
    }
}

.tree-generation-heading {
    position: sticky;
    left: 0;
    width: max-content;
    max-width: calc(100vw - 44px);
    padding: 3px 12px 3px 2px;
    background: #faf9f5;
    border-radius: 5px;
    z-index: 3
}

.tree-generation-heading>span {
    display: none
}

.login-layout {
    min-width: 320px;
    min-height: 100vh;
    background: #f4f1e9
}

.shell-login {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative
}

.shell-login>.flash {
    position: absolute;
    z-index: 5;
    top: 12px;
    right: 20px;
    width: min(440px, calc(100% - 40px));
    margin: 0
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 32.8% 67.2%;
    background: #f4f1e9
}

.login-brand-panel {
    position: relative;
    min-height: 100vh;
    padding: 46px clamp(36px, 6.4vw, 88px) 65px;
    background: #285D49;
    color: #fff;
    overflow: hidden
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    width: max-content;
    max-width: 100%
}

.login-mark {
    width: 43px;
    height: 43px;
    flex: none;
    object-fit: contain
}

.login-brand span {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.login-brand strong {
    font: 500 26px/1.15 Georgia, serif;
    white-space: nowrap
}

.login-brand small {
    font: 500 10px/1.4 Atkinson, system-ui, sans-serif;
    letter-spacing: .16em;
    white-space: nowrap
}

.login-tree-art {
    position: absolute;
    top: 34.5%;
    left: 50%;
    width: min(300px, 72%);
    height: auto;
    transform: translateX(-50%)
}

.login-quote {
    position: absolute;
    left: clamp(36px, 6.4vw, 88px);
    right: 36px;
    bottom: 60px
}

.login-quote blockquote {
    max-width: 330px;
    margin: 0 0 15px;
    font: italic 25px/1.35 Georgia, serif;
    color: #fff
}

.login-quote p {
    margin: 0;
    font-size: 13px;
    color: #e1e8e1
}

.login-main-panel {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 48px
}

.login-content {
    width: min(444px, 100%);
    margin-top: -4px
}

.login-content h1 {
    margin: 0 0 10px;
    color: #1f2c26;
    font: 500 40px/1.18 Georgia, serif
}

.login-intro {
    margin: 0 0 24px;
    color: #41433e;
    font-size: 16px;
    line-height: 1.65
}

.login-code-form {
    display: grid;
    gap: 8px;
    margin: 0
}

.login-code-form label,
.login-password-form label {
    font-size: 14px;
    font-weight: 700;
    color: #28332d
}

.login-code-form input,
.login-password-form input {
    height: 54px;
    min-height: 54px;
    padding: 12px 15px;
    border: 1px solid #c5c0b4;
    border-radius: 5px;
    background: #fff;
    color: #27322c;
    font-size: 16px
}

.login-code-form input::placeholder {
    color: #828078
}

.login-code-form small {
    margin-top: 0;
    color: #56574f;
    font-size: 12px
}

.login-code-form button,
.login-password-form button {
    width: 100%;
    min-height: 52px;
    margin-top: 13px;
    border: 0;
    border-radius: 7px;
    background: #285D49;
    color: #fff;
    font-size: 15px;
    font-weight: 700
}

.login-code-form button:hover,
.login-password-form button:hover {
    background: #1f4939
}

.login-alternatives {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e1ddd2
}

.login-alternatives details {
    margin: 0
}

.login-alternatives summary {
    width: max-content;
    max-width: 100%;
    color: #285d49;
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer
}

.login-password-form {
    display: grid;
    gap: 8px;
    margin: 18px 0 22px
}

.login-password-form label:not(:first-child) {
    margin-top: 8px
}

.login-alternatives>p {
    margin: 10px 0 0;
    color: #55564f;
    font-size: 14px;
    line-height: 1.6
}

.login-private {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 27px 0 0;
    color: #62645c;
    font-size: 12px
}

.login-private svg {
    width: 14px;
    height: 14px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round
}

.login-install {
    margin-top: 18px;
    font-size: 12px
}

@media(max-width:760px) {
    .login-page {
        grid-template-columns: 1fr
    }

    .login-brand-panel {
        min-height: 184px;
        height: 184px;
        padding: 25px 28px
    }

    .login-brand strong {
        font-size: 22px
    }

    .login-mark {
        width: 38px;
        height: 38px
    }

    .login-tree-art,
    .login-quote {
        display: none
    }

    .login-main-panel {
        min-height: calc(100vh - 184px);
        padding: 52px 26px
    }

    .login-content h1 {
        font-size: 34px
    }
}

@media(max-width:420px) {
    .login-brand-panel {
        padding-left: 20px
    }

    .login-brand strong {
        font-size: 20px
    }

    .login-brand small {
        font-size: 8px
    }

    .login-main-panel {
        padding: 40px 20px
    }

    .login-content h1 {
        font-size: 31px
    }
}

.shell-home {
    max-width: 1120px;
    padding: 0 28px 56px
}

.home-top {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid #deddd5
}

.home-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
    color: #285d49;
    text-decoration: none;
    font: 500 18px Georgia, serif
}

.home-brand .brand-mark {
    width: 29px;
    height: 29px
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1
}

.home-nav a {
    padding: 8px 10px;
    border-radius: 6px;
    color: #27322c;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap
}

.home-nav a:hover,
.home-nav a.active {
    background: #e7eee8;
    color: #285d49
}

.home-tools {
    display: flex;
    align-items: center;
    gap: 10px
}

.home-icon-link {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid #deddd5;
    border-radius: 7px;
    color: #425f4d
}

.home-icon-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round
}

.home-bell {
    position: relative
}

.home-bell:after {
    content: "";
    position: absolute;
    right: 4px;
    top: 4px;
    width: 5px;
    height: 5px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #bd755a
}

.home-account {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #285d49;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap
}

.home-avatar {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #456c59;
    color: #fff;
    font-size: 11px
}

.home-dashboard h1,
.home-dashboard h2 {
    color: #172a22
}

.home-dashboard h2 {
    margin: 0;
    font: 500 20px/1.25 Georgia, serif
}

.home-hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 42px;
    padding: 38px 0 24px
}

.home-hero-copy {
    max-width: 480px
}

.home-kicker {
    margin: 0 0 8px;
    color: #8a704b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em
}

.home-hero h1 {
    margin: 0 0 12px;
    font: 500 clamp(34px, 4vw, 46px)/1.1 Georgia, serif;
    color: #172a22
}

.home-hero-copy>p:not(.home-kicker) {
    max-width: 425px;
    margin: 0;
    color: #65675e;
    font: 15px/1.6 Georgia, serif
}

.home-hero-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 17px
}

.home-hero-actions .button {
    min-height: 35px;
    padding: 7px 13px;
    font-size: 12px
}

.home-landscape {
    margin: 0
}

.home-landscape img {
    display: block;
    width: 100%;
    aspect-ratio: 1.58;
    object-fit: cover;
    border-radius: 10px
}

.home-landscape figcaption {
    margin-top: 5px;
    color: #77776e;
    font: italic 10px Georgia, serif
}

.home-lineage {
    margin: 12px 0 22px;
    padding: 16px 18px 14px;
    border: 1px solid #e3e0d7;
    border-radius: 10px;
    background: #fffdf9
}

.home-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.home-section-heading>a {
    color: #285d49;
    font-size: 10px;
    white-space: nowrap
}

.lineage-track {
    display: flex;
    align-items: stretch;
    gap: 7px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 2px 0 4px
}

.lineage-step {
    min-width: 145px;
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #e7e2d6;
    border-radius: 7px;
    background: #f6f3eb
}

.lineage-step.current {
    border-color: #78917e;
    background: #edf2ee
}

.lineage-step small {
    display: block;
    margin-bottom: 4px;
    color: #81755f;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .06em
}

.lineage-step strong {
    display: block;
    color: #34473c;
    font: 12px/1.3 Georgia, serif
}

.lineage-arrow {
    align-self: center;
    color: #9b9a8e
}

.home-empty-lineage {
    margin: 12px 0 0;
    color: #65675e;
    font-size: 12px
}

.home-event {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 218px;
    margin: 0 0 26px;
    overflow: hidden;
    border-radius: 10px;
    background: #29493a;
    color: #fff
}

.home-event-copy {
    padding: 24px 28px
}

.home-event .home-kicker {
    color: #d4bd85;
    font-size: 9px
}

.home-event h2 {
    max-width: 430px;
    color: #fff;
    font: 500 27px/1.15 Georgia, serif
}

.home-event-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px
}

.home-event-meta small,
.home-event-meta strong {
    display: block
}

.home-event-meta small {
    margin-bottom: 4px;
    color: #c6d1c8;
    font-size: 9px
}

.home-event-meta strong {
    font-size: 12px;
    line-height: 1.35
}

.home-event-note {
    max-width: 370px;
    margin: 12px 0;
    color: #e0e7e0;
    font-size: 12px
}

.home-event-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px
}

.home-event-actions form {
    margin: 0
}

.home-event-actions .button,
.home-event-actions button {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 11px
}

.home-event .light-button {
    background: #f8f6f0;
    color: #29493a
}

.home-event .outline-light {
    border-color: #d6e0d7;
    background: transparent;
    color: white
}

.home-event-art {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    background: repeating-linear-gradient(135deg, #3a5d4b 0, #3a5d4b 9px, #426550 9px, #426550 18px)
}

.home-event-art span {
    position: relative;
    z-index: 1;
    padding: 4px 6px;
    border-radius: 3px;
    background: #203b30;
    color: #fff;
    font-size: 8px
}

.home-event.no-event .home-event-art {
    background: repeating-linear-gradient(135deg, #3a5d4b 0, #3a5d4b 9px, #426550 9px, #426550 18px)
}

.home-shortcuts {
    margin: 0 0 26px
}

.home-shortcuts>h2,
.home-column>h2 {
    margin-bottom: 12px
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11px
}

.shortcut-card {
    min-height: 94px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 12px;
    background: #fffdf9;
    border: 1px solid #e3e0d7;
    border-radius: 8px;
    color: #27322c;
    text-decoration: none;
    transition: border-color .15s, transform .15s
}

.shortcut-card:hover,
.birthday-row:hover,
.update-row:hover {
    border-color: #9caf9f;
    transform: translateY(-1px)
}

.shortcut-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #e8eee8;
    color: #456c59;
    font-size: 16px
}

.shortcut-card strong {
    font: 500 13px Georgia, serif
}

.shortcut-card small {
    color: #76766d;
    font: 10px/1.35 Georgia, serif
}

.home-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 28px
}

.home-column h2 {
    margin: 0;
    font: 500 20px Georgia, serif
}

.home-birthday-list,
.home-updates-list {
    display: grid;
    gap: 7px
}

.birthday-row {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border: 1px solid #e7e3da;
    border-radius: 7px;
    background: #fffdf9;
    color: #27322c;
    text-decoration: none;
    transition: border-color .15s, transform .15s
}

.birthday-date {
    width: 29px;
    height: 38px;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e5dfd2
}

.birthday-date small {
    color: #956d4d;
    font-size: 7px;
    font-weight: 700
}

.birthday-date strong {
    font: 14px Georgia, serif
}

.birthday-row>span:last-child,
.update-row>span:last-child {
    min-width: 0
}

.birthday-row>span:last-child strong,
.birthday-row>span:last-child small,
.update-row strong,
.update-row small {
    display: block
}

.birthday-row>span:last-child strong,
.update-row strong {
    overflow: hidden;
    color: #344139;
    font: 11px/1.3 Georgia, serif;
    text-overflow: ellipsis;
    white-space: nowrap
}

.birthday-row>span:last-child small,
.update-row small {
    margin-top: 3px;
    color: #77776e;
    font-size: 9px
}

.update-row {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 4px;
    border-bottom: 1px solid #e7e3da;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, transform .15s
}

.update-icon {
    width: 24px;
    height: 24px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eeeae0;
    color: #817b67;
    font-size: 12px
}

.home-empty-card {
    min-height: 80px;
    padding: 13px;
    border: 1px solid #e7e3da;
    border-radius: 7px;
    background: #fffdf9
}

.home-empty-card p {
    display: inline;
    margin: 0 0 0 8px;
    color: #65675e;
    font-size: 11px
}

.home-empty-card>a {
    display: block;
    margin: 8px 0 0 32px;
    font-size: 10px
}

.home-memories {
    margin: 0 0 20px;
    padding-top: 18px;
    border-top: 1px solid #e3e0d7
}

.memory-feature-grid {
    display: grid;
    grid-template-columns: 1.45fr .8fr;
    gap: 14px;
    margin-top: 12px
}

.memory-photo {
    position: relative;
    min-height: 180px;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: repeating-linear-gradient(135deg, #c9c5b5 0, #c9c5b5 9px, #d4d0c2 9px, #d4d0c2 18px);
    color: #fff;
    text-decoration: none
}

.memory-photo img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    position: absolute;
    inset: 0;
    object-fit: cover
}

.memory-photo>span {
    position: absolute;
    left: 10px;
    bottom: 9px;
    padding: 5px 7px;
    border-radius: 3px;
    background: #273d30c9;
    color: #fff;
    font-size: 9px
}

.memory-photo-empty {
    display: grid;
    place-items: center;
    text-align: center;
    color: #6e7469;
    font: italic 14px/1.5 Georgia, serif
}

.memory-story-list {
    display: grid;
    align-content: start;
    gap: 8px
}

.memory-story {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    background: #fffdf9;
    border: 1px solid #e5e1d8;
    border-radius: 8px;
    color: #2e3c33;
    text-decoration: none
}

.memory-story small {
    color: #8b7353;
    font-size: 8px;
    letter-spacing: .1em
}

.memory-story strong {
    font: 500 14px/1.25 Georgia, serif
}

.memory-story span,
.memory-story>a {
    color: #74746c;
    font: 10px/1.4 Georgia, serif
}

.memory-story>a {
    color: #285d49;
    font-family: Atkinson, system-ui, sans-serif
}

.home-install {
    font-size: 11px
}

.home-top+.flash {
    margin-top: 12px
}

@media(max-width:980px) {
    .shell-home {
        padding-right: 20px;
        padding-left: 20px
    }

    .home-top {
        gap: 10px
    }

    .home-brand {
        font-size: 16px
    }

    .home-nav a {
        padding: 7px 6px;
        font-size: 11px
    }

    .home-account>span:last-child {
        display: none
    }

    .home-hero {
        gap: 24px
    }
}

@media(max-width:760px) {
    .home-top {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        padding: 10px 0
    }

    .home-brand {
        flex: 1
    }

    .home-tools {
        margin-left: auto
    }

    .home-nav {
        order: 3;
        flex-basis: 100%;
        overflow-x: auto
    }

    .home-nav a {
        font-size: 12px
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 27px
    }

    .home-hero-copy {
        max-width: none
    }

    .home-landscape {
        max-width: 560px
    }

    .home-lineage {
        margin-top: 8px
    }

    .home-event {
        grid-template-columns: 1fr
    }

    .home-event-art {
        min-height: 110px
    }

    .shortcut-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .home-two-columns {
        grid-template-columns: 1fr;
        gap: 22px
    }

    .memory-feature-grid {
        grid-template-columns: 1fr
    }

    .memory-photo {
        min-height: 220px
    }
}

@media(max-width:430px) {
    .shell-home {
        padding: 0 15px 40px
    }

    .home-brand {
        font-size: 14px
    }

    .home-brand .brand-mark {
        width: 25px;
        height: 25px
    }

    .home-nav {
        gap: 2px
    }

    .home-nav a {
        font-size: 10px;
        padding: 6px
    }

    .home-hero h1 {
        font-size: 34px
    }

    .home-event-copy {
        padding: 20px
    }

    .home-event h2 {
        font-size: 24px
    }

    .home-event-meta {
        gap: 10px
    }

    .shortcut-grid {
        gap: 8px
    }

    .shortcut-card {
        padding: 10px;
        min-height: 92px
    }
}

.home-account-menu {
    position: relative
}

.home-account-menu>summary {
    list-style: none
}

.home-account-menu>summary::-webkit-details-marker {
    display: none
}

.home-account-dropdown {
    position: absolute;
    z-index: 30;
    top: calc(100% + 9px);
    right: 0;
    min-width: 150px;
    padding: 6px;
    border: 1px solid #deddd5;
    border-radius: 8px;
    background: #fffdf9;
    box-shadow: 0 8px 20px #27322c18
}

.home-account-dropdown>a,
.home-account-dropdown button {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #34473c;
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-size: 12px
}

.home-account-dropdown>a:hover,
.home-account-dropdown button:hover {
    background: #edf2ee;
    color: #285d49
}

.home-account-dropdown form {
    margin: 0
}

.home-bell:after {
    content: none
}

.home-bell>span {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 15px;
    height: 15px;
    display: grid;
    place-items: center;
    padding: 0 3px;
    border: 1px solid #faf9f5;
    border-radius: 8px;
    background: #b55f49;
    color: #fff;
    font-size: 9px;
    line-height: 1
}

/* Genealogy tree: three-pane family atlas inspired by design screen 05 */
.shell:has(.genealogy-app) {
    width: 100%;
    max-width: none;
    padding: 0 0 28px
}

.shell:has(.genealogy-app)>.top {
    height: 72px;
    margin: 0 3.1%;
    padding: 0 8px
}

.genealogy-app {
    color: #26332d
}

.genealogy-breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 20px 3.1% 14px;
    color: #7b796f;
    font-size: 13px
}

.genealogy-breadcrumb a {
    color: #315f4d
}

.genealogy-layout {
    min-height: calc(100vh - 125px);
    display: grid;
    grid-template-columns: 260px minmax(460px, 1fr) 340px;
    border-top: 1px solid #e6e1d6
}

.genealogy-sidebar {
    background: #fbfaf7;
    padding: 24px 20px;
    min-width: 0
}

.genealogy-search-sidebar {
    border-right: 1px solid #e7e2d8
}

.genealogy-profile-sidebar {
    border-left: 1px solid #e7e2d8;
    padding: 24px 22px
}

.genealogy-search-label {
    display: block;
    margin: 18px 0 8px;
    font-weight: 700;
    font-size: 14px
}

.genealogy-search-box {
    position: relative
}

.genealogy-search-box>span {
    position: absolute;
    left: 13px;
    top: 8px;
    font-size: 24px;
    color: #617068
}

.genealogy-search-box input {
    padding-left: 42px;
    min-height: 48px
}

.genealogy-sidebar h2 {
    margin: 26px 0 12px;
    color: #75634e;
    font: 700 13px/1.3 Atkinson, system-ui, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase
}

.genealogy-branches {
    display: grid;
    gap: 8px
}

.genealogy-branch {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 10px;
    background: #f4f1e9;
    border: 1px solid #e7e1d3;
    border-radius: 11px;
    color: #29342d;
    text-decoration: none
}

.genealogy-branch:hover {
    border-color: #9aaa9a;
    background: #f0f2eb
}

.branch-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #3c6351;
    color: white;
    font: 18px Georgia, serif
}

.genealogy-branch strong,
.genealogy-branch small {
    display: block
}

.genealogy-branch strong {
    font-size: 13px
}

.genealogy-branch small {
    margin-top: 2px;
    color: #73766d;
    font: 12px Georgia, serif
}

.genealogy-legend {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px
}

.genealogy-legend li {
    display: flex;
    gap: 10px;
    align-items: center
}

.legend-line {
    width: 34px;
    height: 0;
    border-top: 2px solid #829080
}

.legend-focus {
    border-color: #365c4b;
    border-width: 4px
}

.legend-unknown {
    border-top-style: dashed;
    border-color: #b59a5d
}

.legend-ring {
    color: #365c4b;
    font-size: 17px
}

.genealogy-help {
    color: #62685f;
    font-size: 12px;
    line-height: 1.65
}

.genealogy-center {
    min-width: 0;
    padding: 17px 0 25px
}

.genealogy-title-row {
    padding: 0 24px
}

.genealogy-title-row .eyebrow {
    margin: 0;
    color: #7a684d
}

.genealogy-title-row h1 {
    margin: 3px 0 0;
    color: #27342d;
    font: 500 31px/1.2 Georgia, serif
}

.genealogy-subtitle {
    margin: 3px 0 12px;
    color: #637068;
    font-size: 13px
}

.genealogy-subtitle strong {
    color: #26332d
}

.genealogy-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 24px 14px
}

.genealogy-modes,
.genealogy-zoom {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 3px;
    background: #eeece4;
    border-radius: 9px
}

.genealogy-modes .mode-button,
.genealogy-zoom button {
    min-height: 38px;
    padding: 6px 14px;
    border: 0;
    background: transparent;
    color: #24332b;
    font-size: 13px
}

.genealogy-modes .mode-button.is-active {
    background: #fff;
    border: 1px solid #e5e0d4;
    border-radius: 7px;
    box-shadow: 0 1px 3px #27322c12
}

.genealogy-zoom {
    background: #fff;
    border: 1px solid #e3ded2
}

.genealogy-zoom button {
    min-width: 38px;
    font-size: 18px
}

.genealogy-zoom output {
    min-width: 48px;
    text-align: center;
    font-size: 12px
}

.genealogy-me {
    min-height: 40px;
    font-size: 13px
}

.genealogy-view-form {
    margin-left: auto
}

.genealogy-view-form select {
    min-height: 40px;
    padding: 6px 28px 6px 10px;
    font-size: 12px
}

.genealogy-canvas-shell {
    height: min(70vh, 760px);
    min-height: 450px;
    overflow: auto;
    position: relative;
    background-color: #f6f3eb;
    background-image: radial-gradient(#e1dccc .85px, transparent .85px);
    background-size: 20px 20px;
    scrollbar-color: #9eaa9f #eeeae1;
    overscroll-behavior: contain
}

.genealogy-canvas {
    position: relative;
    isolation: isolate;
    width: max(100%, var(--genealogy-width, 100%));
    min-height: 100%;
    padding: 15px 24px 35px;
    transform: scale(var(--genealogy-zoom, 1));
    transform-origin: top center
}

.genealogy-connections {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: visible
}

.genealogy-generation {
    position: relative;
    z-index: 1;
    padding: 13px 0 60px
}

.generation-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    margin: 0 0 9px;
    padding: 3px 8px;
    background: #f6f3ebeb;
    border-radius: 4px;
    color: #816c50;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em
}

.generation-label small {
    color: #77796f;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0
}

.generation-people {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    min-height: 94px
}

.genealogy-person-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 140px;
    min-height: 92px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 10px;
    background: #fffdfa;
    border: 1px solid #e1ddd1;
    border-radius: 14px;
    color: #30372f;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 8px #27322c0b;
    transition: border-color .15s, box-shadow .15s
}

.genealogy-person-card:hover {
    border-color: #728a77;
    box-shadow: 0 5px 15px #27322c17
}

.person-initials,
.profile-initials {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ded7c5;
    color: #7d654d;
    font: 19px Georgia, serif
}

.person-initials {
    width: 37px;
    height: 37px
}

.genealogy-person-card.person-female .person-initials {
    background: #d1d8cd;
    color: #566e5b
}

.genealogy-person-card strong {
    max-width: 100%;
    font: 500 13px/1.22 Georgia, serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.genealogy-person-card small {
    color: #72756e;
    font: 11px Georgia, serif
}

.genealogy-person-card.is-focus {
    border: 2px solid #365c4b;
    box-shadow: 0 0 0 3px #365c4b18
}

.person-focus-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 10px;
    border-radius: 12px;
    background: #365c4b;
    color: white;
    font-size: 10px
}

.genealogy-canvas[data-layout=organic] .genealogy-person-card {
    border-radius: 45% 45% 13px 13px
}

.genealogy-canvas-caption {
    display: flex;
    justify-content: space-between;
    padding: 7px 24px;
    color: #75786f;
    font-size: 11px
}

.genealogy-unlinked {
    margin: 18px 24px 28px;
    padding: 18px;
    background: #f6f3eb;
    border: 1px solid #e1ddd1;
    border-radius: 14px
}

.genealogy-unlinked h2 {
    margin: 0 0 5px;
    color: #30372f;
    font: 500 18px Georgia, serif
}

.genealogy-unlinked p {
    margin: 0 0 12px;
    color: #72756e;
    font-size: 12px
}

.genealogy-unlinked>div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px
}

.genealogy-unlinked a {
    padding: 5px 9px;
    background: #fffdfa;
    border: 1px solid #e1ddd1;
    border-radius: 18px;
    color: #365c4b;
    font-size: 12px;
    text-decoration: none
}

.genealogy-empty {
    min-height: 350px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    color: #686960
}

.profile-scroll {
    height: calc(100vh - 150px);
    overflow-y: auto;
    scrollbar-color: #9eaa9f transparent
}

.profile-initials {
    width: 86px;
    height: 86px;
    margin-bottom: 12px;
    font-size: 32px
}

.profile-scroll>h2 {
    margin: 4px 0;
    color: #26332d;
    font: 500 28px/1.18 Georgia, serif
}

.profile-nickname {
    margin: 4px 0 12px;
    color: #705c47;
    font: italic 17px Georgia, serif
}

.profile-status {
    display: inline-block;
    margin: 7px 0;
    padding: 5px 11px;
    border-radius: 18px;
    background: #eeece5;
    color: #555a52;
    font-size: 12px
}

.profile-dates {
    margin: 16px 0
}

.profile-dates dt {
    margin-top: 10px;
    color: #69736b;
    font-size: 12px
}

.profile-dates dd {
    margin: 2px 0;
    color: #28342d;
    font-size: 14px
}

.profile-biography {
    margin: 17px 0;
    color: #38453d;
    font: 17px/1.55 Georgia, serif
}

.profile-full-button {
    width: 100%;
    margin: 5px 0 19px;
    font-size: 13px;
    font-weight: 700
}

.profile-scroll>h3 {
    margin: 0;
    padding: 16px 0 5px;
    border-top: 1px solid #e8e2d8;
    color: #75634e;
    font-size: 13px;
    letter-spacing: .11em;
    text-transform: uppercase
}

.profile-relative-group {
    margin: 12px 0
}

.profile-relative-group h4 {
    margin: 0 0 7px;
    font-size: 12px
}

.profile-relative-group>div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.profile-relative-group a {
    padding: 7px 11px;
    border: 1px solid #e4dfd2;
    border-radius: 22px;
    background: #f5f2ea;
    color: #345c4a;
    text-decoration: none;
    font-size: 12px
}

.genealogy-search-results {
    position: absolute;
    z-index: 10;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    max-height: 300px;
    overflow: auto;
    padding: 5px;
    background: white;
    border: 1px solid #d8d5ca;
    border-radius: 8px;
    box-shadow: 0 8px 18px #27322c20
}

.genealogy-search-results[hidden] {
    display: none
}

.genealogy-search-results a {
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    color: #29342d;
    text-decoration: none;
    font-size: 13px
}

.genealogy-search-results a:hover {
    background: #edf2ee
}

.genealogy-search-results p {
    margin: 8px;
    color: #70766e;
    font-size: 12px
}

@media(max-width:1100px) {
    .genealogy-layout {
        grid-template-columns: 220px minmax(400px, 1fr)
    }

    .genealogy-profile-sidebar {
        grid-column: 1/-1;
        border-left: 0;
        border-top: 1px solid #e7e2d8
    }

    .genealogy-profile-sidebar .profile-scroll {
        height: auto;
        display: grid;
        grid-template-columns: 90px minmax(200px, 1fr);
        column-gap: 16px;
        align-items: start
    }

    .profile-initials {
        grid-row: span 3
    }

    .profile-full-button,
    .profile-scroll>h3,
    .profile-relative-group {
        grid-column: 1/-1
    }
}

@media(max-width:700px) {
    .shell:has(.genealogy-app)>.top {
        height: auto;
        min-height: 64px;
        margin: 0 15px;
        align-items: flex-start;
        padding: 12px 0
    }

    .shell:has(.genealogy-app)>.top nav {
        justify-content: flex-end;
        gap: 8px;
        flex-wrap: wrap
    }

    .shell:has(.genealogy-app)>.top nav a {
        font-size: 11px
    }

    .shell:has(.genealogy-app)>.top nav span {
        display: none
    }

    .genealogy-breadcrumb {
        padding: 14px 16px
    }

    .genealogy-layout {
        display: flex;
        flex-direction: column
    }

    .genealogy-search-sidebar {
        order: 1;
        border: 0;
        padding: 14px 16px
    }

    .genealogy-search-sidebar h2,
    .genealogy-legend,
    .genealogy-help {
        display: none
    }

    .genealogy-search-label {
        margin: 0 0 6px
    }

    .genealogy-branches {
        display: flex;
        overflow-x: auto
    }

    .genealogy-branch {
        flex: 0 0 200px
    }

    .genealogy-center {
        order: 2;
        padding: 8px 0
    }

    .genealogy-profile-sidebar {
        order: 3;
        padding: 17px;
        border-top: 1px solid #e7e2d8
    }

    .genealogy-title-row {
        padding: 0 16px
    }

    .genealogy-title-row h1 {
        font-size: 27px
    }

    .genealogy-toolbar {
        padding: 0 16px 11px;
        gap: 7px
    }

    .genealogy-modes .mode-button {
        padding: 6px 9px;
        font-size: 11px
    }

    .genealogy-zoom button {
        min-width: 32px;
        padding: 5px
    }

    .genealogy-me {
        font-size: 11px;
        padding: 7px
    }

    .genealogy-view-form {
        margin-left: 0;
        flex: 1
    }

    .genealogy-view-form select {
        width: 100%
    }

    .genealogy-canvas-shell {
        height: 62vh;
        min-height: 410px
    }

    .genealogy-canvas {
        padding-left: 14px;
        padding-right: 14px
    }

    .genealogy-person-card {
        flex-basis: 120px;
        min-height: 82px
    }

    .generation-people {
        gap: 8px
    }

    .generation-label {
        font-size: 10px
    }

    .genealogy-canvas-caption {
        padding: 7px 15px
    }

    .genealogy-canvas-caption span {
        display: none
    }

    .genealogy-profile-sidebar .profile-scroll {
        display: block
    }

    .profile-initials {
        width: 64px;
        height: 64px;
        font-size: 25px
    }
}

.genealogy-canvas {
    position: relative
}

.genealogy-connections {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    overflow: visible;
    pointer-events: none
}

.tree-site-header {
    height: 72px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    border-bottom: 1px solid #e0ded5
}

.tree-site-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #285d49;
    text-decoration: none;
    font: 500 21px Georgia, serif
}

.tree-site-brand .brand-mark {
    width: 34px;
    height: 34px
}

.tree-site-header nav {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0
}

.tree-site-header nav a {
    padding: 9px 13px;
    border-radius: 8px;
    color: #18352a;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap
}

.tree-site-header nav a:hover {
    background: #f1f2eb
}

.tree-site-header nav a.active {
    background: #e5ebe5;
    font-weight: 700
}

.tree-site-account {
    position: relative
}

.tree-site-account summary {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px;
    border: 1px solid #e6e1d6;
    border-radius: 24px;
    color: #26342d;
    font-size: 13px;
    list-style: none;
    cursor: pointer;
    white-space: nowrap
}

.tree-site-account summary::-webkit-details-marker {
    display: none
}

.tree-site-account summary span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3b614f;
    color: white;
    font-weight: 700
}

.tree-site-account>div {
    position: absolute;
    z-index: 20;
    right: 0;
    top: calc(100% + 6px);
    min-width: 170px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e4dfd4;
    border-radius: 9px;
    box-shadow: 0 6px 18px #27322c1a
}

.tree-site-account>div a,
.tree-site-account>div button {
    display: block;
    width: 100%;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #315b49;
    text-align: left;
    text-decoration: none;
    font-size: 13px
}

.tree-site-account>div form {
    margin: 0
}

@media(max-width:850px) {
    .shell:has(.genealogy-app)>.tree-site-header {
        gap: 10px
    }

    .tree-site-brand {
        font-size: 17px
    }

    .tree-site-header nav {
        overflow-x: auto
    }

    .tree-site-header nav a {
        font-size: 11px;
        padding: 8px
    }

    .tree-site-account summary {
        font-size: 0;
        padding: 4px
    }

    .tree-site-account summary span {
        font-size: 13px
    }
}

.shell:has(.genealogy-app)>.tree-site-header {
    margin: 0 3.1%;
    padding: 0 8px
}

.person-focus-badge {
    top: -19px
}

/* Nested family branches: each parent group opens only toward its children. */
.genealogy-nested-tree {
    position: relative;
    z-index: 1;
    width: max-content;
    min-width: 100%;
    padding: 12px 24px 35px;
    box-sizing: border-box
}

.genealogy-family-root,
.genealogy-family-children {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 28px 0 0;
    position: relative
}

.genealogy-family-root {
    padding-top: 0
}

.genealogy-family-branch {
    position: relative;
    list-style: none;
    text-align: center;
    padding: 20px 8px 0;
    min-width: max-content
}

.genealogy-family-root>.genealogy-family-branch {
    padding-top: 0
}

.genealogy-family-branch:before,
.genealogy-family-branch:after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    width: 50%;
    height: 18px;
    border-top: 1.5px solid #8d9a82
}

.genealogy-family-branch:after {
    right: auto;
    left: 50%;
    border-top: 1.5px solid #8d9a82;
    border-left: 1.5px solid #8d9a82
}

.genealogy-family-root>.genealogy-family-branch:before,
.genealogy-family-root>.genealogy-family-branch:after,
.genealogy-family-branch:only-child:before,
.genealogy-family-branch:only-child:after {
    display: none
}

.genealogy-family-branch:only-child {
    padding-top: 0
}

.genealogy-family-branch:first-child:before,
.genealogy-family-branch:last-child:after {
    border-top: 0
}

.genealogy-family-branch:last-child:before {
    border-right: 1.5px solid #8d9a82;
    border-radius: 0 5px 0 0
}

.genealogy-family-branch:first-child:after {
    border-radius: 5px 0 0 0
}

.genealogy-family {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center
}

.genealogy-family-parents {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    position: relative
}

.genealogy-union-label {
    align-self: center;
    color: var(--color-muted, #687167);
    font-size: .72rem;
    white-space: nowrap;
    padding: 3px 7px;
    border: 1px solid rgba(104, 113, 103, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72)
}

.genealogy-family-children:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 20px;
    border-left: 1.5px solid #8d9a82
}

.genealogy-family-children>.genealogy-family-branch:only-child:after {
    display: block;
    top: 0;
    height: 20px;
    border: 0;
    border-left: 1.5px solid #8d9a82
}

.genealogy-family-children>.genealogy-family-branch:only-child:before {
    display: none
}

.genealogy-family-children>.genealogy-family-branch:first-child:last-child:after {
    left: 50%;
    right: auto;
    border-radius: 0
}

/* Individual profile inspired by the original family archive design. */
.person-profile {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 34px 64px;
    color: #24332b
}

.person-profile-crumb {
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 18px 0 27px;
    color: #7a776e;
    font: 12px Atkinson, system-ui, sans-serif
}

.person-profile-crumb a {
    color: #315f4d
}

.person-profile-hero {
    display: grid;
    grid-template-columns: minmax(190px, 224px) minmax(340px, 1fr) minmax(220px, 270px);
    gap: 30px;
    align-items: start
}

.person-profile-photo {
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    padding: 7px;
    border: 1px solid #e2ded3;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 12px #26332d12
}

.person-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px
}

.person-profile-photo-empty {
    background: repeating-linear-gradient(135deg, #e8e3d6 0 12px, #ddd7c8 12px 24px);
    color: #806b51
}

.person-profile-photo-empty span {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #f8f5edbb;
    font: 28px Georgia, serif
}

.person-profile-photo-empty small {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 3px 7px;
    background: #43564a;
    color: #fff;
    border-radius: 3px;
    font-size: 10px
}

.person-profile-photo-caption {
    margin: 8px 0;
    color: #656c63;
    font-size: 11px
}

.person-profile-main {
    min-width: 0
}

.person-profile-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 11px;
    color: #806b51;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em
}

.person-profile-status {
    padding: 4px 10px;
    border-radius: 20px;
    background: #eeece5;
    color: #575b53;
    letter-spacing: 0;
    font-size: 11px
}

.person-profile-main h1 {
    margin: 0;
    color: #183a30;
    font: 500 clamp(38px, 4vw, 54px)/1.03 Georgia, serif;
    letter-spacing: -.035em
}

.person-profile-nickname {
    margin: 9px 0 18px;
    color: #75614d;
    font: italic 16px Georgia, serif
}

.person-profile-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 22px;
    margin-top: 20px;
    padding: 17px 0;
    border-top: 1px solid #e5e0d5;
    border-bottom: 1px solid #e5e0d5
}

.person-profile-facts>div {
    display: grid;
    align-content: start;
    gap: 3px
}

.person-profile-facts small {
    color: #73766e;
    font-size: 11px
}

.person-profile-facts strong {
    font-size: 14px;
    font-weight: 500
}

.person-profile-facts span {
    color: #686e65;
    font-size: 12px
}

.person-profile-facts .person-profile-origin {
    padding: 9px 11px;
    border: 1px dashed #b59a69;
    border-radius: 7px
}

.person-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 16px 0 9px
}

.person-profile-actions .button {
    min-height: 39px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 700
}

.person-profile-edit {
    align-self: center;
    font-size: 12px
}

.person-profile-correction {
    display: inline-block;
    margin: 4px 0 0 8px;
    font-size: 12px
}

.person-profile-family {
    padding: 15px;
    border: 1px solid #e7e1d6;
    border-radius: 13px;
    background: #fbfaf6
}

.person-profile-family h2,
.person-profile-timeline h2 {
    margin: 0 0 12px;
    color: #806b51;
    font: 700 11px Atkinson, system-ui, sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase
}

.mini-family-row {
    display: flex;
    justify-content: center;
    gap: 5px
}

.mini-family-row>a {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    min-height: 50px;
    flex-direction: column;
    justify-content: center;
    padding: 6px;
    border: 1px solid #e8e2d6;
    border-radius: 8px;
    background: #fffdfa;
    color: #26332d;
    text-decoration: none
}

.mini-family-row strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font: 12px/1.2 Georgia, serif
}

.mini-family-row small {
    margin-top: 2px;
    color: #74766e;
    font-size: 9px
}

.mini-family-focus .is-current {
    border-color: #365c4b;
    box-shadow: inset 0 0 0 1px #365c4b
}

.mini-family-stem {
    height: 13px;
    width: 1px;
    margin: auto;
    background: #79917f
}

.mini-family-children>a {
    min-height: 43px;
    text-align: center
}

.person-profile-family>p {
    margin: 9px 0 0;
    color: #687067;
    font-size: 11px
}

.person-profile-no-family {
    padding: 12px 0
}

.person-profile-tabs {
    display: flex;
    gap: 28px;
    margin-top: 34px;
    border-bottom: 1px solid #e5e0d5
}

.person-profile-tabs>a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 3px;
    color: #344239;
    text-decoration: none;
    font-size: 12px
}

.person-profile-tabs>a.is-active {
    border-bottom: 2px solid #365c4b;
    font-weight: 700
}

.person-profile-tabs span {
    padding: 1px 7px;
    border-radius: 12px;
    background: #ece9df;
    color: #6a6c64;
    font-size: 10px
}

.person-profile-lower {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, .9fr);
    gap: 42px;
    padding-top: 20px
}

.person-profile-prose {
    max-width: 700px;
    white-space: pre-line;
    color: #28382f;
    font: 16px/1.8 Georgia, serif
}

.person-profile-biography>.muted,
.person-profile-section>.muted {
    color: #686960
}

.person-profile-timeline {
    padding: 3px 10px
}

.person-profile-timeline h2 {
    margin-bottom: 10px
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 48px 12px 1fr;
    gap: 8px;
    min-height: 46px;
    color: #354238;
    font-size: 12px
}

.timeline-item:before {
    content: '';
    position: absolute;
    top: 9px;
    bottom: -4px;
    left: 65px;
    border-left: 1px solid #d8d1c1
}

.timeline-item:last-of-type:before {
    bottom: 15px
}

.timeline-item strong {
    color: #705d48;
    font: 16px Georgia, serif
}

.timeline-item i {
    z-index: 1;
    width: 9px;
    height: 9px;
    margin-top: 6px;
    border-radius: 50%;
    background: #426b55
}

.timeline-item span {
    padding-top: 1px
}

.person-profile-section {
    margin-top: 30px;
    padding-top: 5px
}

.person-profile-section>h2 {
    margin: 0 0 10px;
    color: #273a30;
    font: 500 25px Georgia, serif
}

.person-profile-section .relations {
    margin: 0
}

.person-profile-section .inline-form {
    border-top: 1px solid #e4dfd5
}

.person-profile-archive {
    margin-top: 35px
}

.person-profile-archive button {
    background: transparent;
    border: 0;
    color: #9b3b2f
}

.person-profile .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr))
}

@media(max-width:1000px) {
    .person-profile-hero {
        grid-template-columns: 190px minmax(300px, 1fr)
    }

    .person-profile-family {
        grid-column: 2
    }

    .person-profile-lower {
        gap: 22px
    }
}

@media(max-width:650px) {
    .person-profile {
        padding: 0 17px 40px
    }

    .person-profile-crumb {
        padding-bottom: 18px;
        flex-wrap: wrap
    }

    .person-profile-hero {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .person-profile-photo-column {
        display: grid;
        grid-template-columns: 100px 1fr;
        align-items: end;
        gap: 10px
    }

    .person-profile-photo {
        width: 100px;
        aspect-ratio: 1
    }

    .person-profile-photo-caption {
        margin-bottom: 2px
    }

    .person-profile-main h1 {
        font-size: 39px
    }

    .person-profile-family {
        grid-column: auto
    }

    .person-profile-lower {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .person-profile-tabs {
        gap: 16px;
        overflow: auto
    }

    .person-profile-tabs>a {
        white-space: nowrap
    }

    .person-profile-facts {
        gap: 13px
    }

    .person-profile-actions .button {
        font-size: 11px
    }
}

/* Shared interior pages use the same quiet archive language as the home page. */
.shell:not(.shell-home):not(:has(.genealogy-app)) {
    max-width: 1120px;
    padding: 0;
}

.shell:has(.home-top):not(.shell-home):not(:has(.genealogy-app))>main:not(.person-profile) {
    padding-top: 10px
}

.shell:has(.home-top):not(.shell-home)>.home-top {
    margin-bottom: 18px
}

.shell:has(.home-top):not(.shell-home) main>.heading {
    margin: 27px 0 20px
}

.shell:has(.home-top):not(.shell-home) main>.heading h1 {
    margin: 0;
    color: #172a22;
    font: 500 clamp(32px, 4vw, 42px)/1.1 Georgia, serif;
    letter-spacing: -.025em
}

.shell:has(.home-top):not(.shell-home) main>.heading .eyebrow {
    margin: 0 0 6px;
    color: #8a704b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em
}

.archive-page {
    padding: 18px 0 30px
}

.archive-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 10px 0 24px;
    padding: 0 0 18px;
    border-bottom: 1px solid #e3e0d7
}

.archive-heading .eyebrow {
    margin: 0 0 6px;
    color: #8a704b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em
}

.archive-heading h1 {
    margin: 0;
    color: #172a22;
    font: 500 clamp(32px, 4vw, 42px)/1.1 Georgia, serif;
    letter-spacing: -.025em
}

.archive-heading p:not(.eyebrow) {
    margin: 8px 0 0;
    color: #65675e;
    font: 14px/1.55 Georgia, serif
}

.archive-heading>.button {
    flex: none;
    min-height: 36px;
    padding: 7px 13px;
    font-size: 12px
}

.archive-story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 13px
}

.archive-story-card {
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    background: #fffdf9;
    border: 1px solid #e3e0d7;
    border-radius: 10px;
    color: #28372e;
    text-decoration: none;
    transition: transform .15s, border-color .15s, box-shadow .15s
}

.archive-story-card:hover {
    transform: translateY(-2px);
    border-color: #a6b5a8;
    box-shadow: 0 7px 18px #27322c0d
}

.archive-story-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    margin-bottom: 13px;
    border-radius: 8px;
    background: #e8eee8;
    color: #456c59
}

.archive-story-card .eyebrow {
    margin: 0 0 5px;
    color: #8a704b;
    font-size: 9px;
    letter-spacing: .11em
}

.archive-story-card h2 {
    margin: 0;
    color: #172a22;
    font: 500 21px/1.25 Georgia, serif
}

.archive-story-card>p:not(.eyebrow) {
    margin: 9px 0;
    color: #65675e;
    font: 12px/1.5 Georgia, serif
}

.archive-story-link {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding-top: 12px;
    color: #285d49;
    font-size: 11px
}

.archive-story-link b {
    font-size: 16px;
    font-weight: 400
}

.archive-empty {
    min-height: 235px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 7px;
    padding: 26px;
    text-align: center;
    border: 1px solid #e3e0d7;
    border-radius: 10px;
    background: #fffdf9
}

.archive-empty>span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e8eee8;
    color: #456c59;
    font-size: 20px
}

.archive-empty h2 {
    margin: 5px 0 0;
    color: #172a22;
    font: 500 23px Georgia, serif
}

.archive-empty p {
    margin: 0 0 8px;
    color: #65675e;
    font-size: 12px
}

.archive-empty .button {
    min-height: 34px;
    font-size: 11px
}

.archive-upload {
    margin: 0 0 18px;
    padding: 14px 17px;
    border: 1px solid #e3e0d7;
    border-radius: 9px;
    background: #fffdf9
}

.archive-upload>summary {
    color: #285d49;
    font-size: 13px;
    font-weight: 700
}

.archive-upload .form-grid {
    margin: 17px 0 2px
}

.media-page .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 13px
}

.media-page .media-card {
    padding: 9px;
    background: #fffdf9;
    border-color: #e3e0d7
}

.media-page .media-card img {
    height: 190px;
    background: #eeeae0
}

.shell:has(.home-top):not(.shell-home) main>.people-grid .panel {
    color: #28372e;
    text-decoration: none
}

.shell:has(.home-top):not(.shell-home) main>.people-grid .panel h2 {
    color: #172a22;
    font: 500 21px/1.25 Georgia, serif
}

.shell:has(.home-top):not(.shell-home) main>.people-grid .panel:hover {
    border-color: #a6b5a8;
    box-shadow: 0 7px 18px #27322c0d
}

.shell:has(.home-top):not(.shell-home) main>.back {
    margin: 8px 0 18px
}

.shell:has(.home-top):not(.shell-home) main>.eyebrow {
    margin: 0 0 7px;
    color: #8a704b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em
}

.shell:has(.home-top):not(.shell-home) main>h1 {
    margin: 0 0 15px;
    color: #172a22;
    font: 500 clamp(32px, 4vw, 42px)/1.1 Georgia, serif
}

.shell:has(.home-top):not(.shell-home) main>.lead {
    color: #65675e;
    font: 17px/1.6 Georgia, serif
}

.shell:has(.home-top):not(.shell-home) main>.panel {
    background: #fffdf9;
    border-color: #e3e0d7;
    border-radius: 10px
}

.shell:has(.home-top):not(.shell-home) main>section {
    margin: 25px 0
}

.shell:has(.home-top):not(.shell-home) main>section>h2 {
    color: #172a22;
    font: 500 22px Georgia, serif
}

@media(max-width:760px) {
    .shell:not(.shell-home):not(:has(.genealogy-app)) {
        padding: 0 20px 42px
    }

    .archive-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px
    }

    .archive-story-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr))
    }
}

@media(max-width:430px) {
    .shell:not(.shell-home):not(:has(.genealogy-app)) {
        padding: 0 15px 38px
    }

    .archive-story-grid {
        grid-template-columns: 1fr
    }

    .archive-heading h1 {
        font-size: 32px
    }
}
.album-create-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

@media (max-width: 700px) {
    .album-create-fields {
        grid-template-columns: 1fr
    }
}
.album-create-fields[hidden] {
    display: none
}

.shell-tree-frame {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0
}

.tree-frame-layout,
.tree-window-expanded {
    overflow: hidden
}

.genealogy-frame-mode {
    height: 100vh
}

.genealogy-frame-mode .genealogy-breadcrumb,
.genealogy-frame-mode .genealogy-sidebar,
.genealogy-frame-mode .genealogy-title-row,
.genealogy-frame-mode .genealogy-canvas-caption,
.genealogy-frame-mode .genealogy-unlinked {
    display: none
}

.genealogy-frame-mode .genealogy-layout {
    display: block;
    height: 100vh;
    min-height: 0;
    border: 0
}

.genealogy-frame-mode .genealogy-center {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 0
}

.genealogy-frame-mode .genealogy-toolbar {
    flex: 0 0 auto;
    padding: 12px 16px;
    background: #faf9f5;
    border-bottom: 1px solid #e6e1d6
}

.genealogy-frame-mode .genealogy-canvas-shell {
    flex: 1 1 auto;
    height: auto;
    min-height: 0
}

.tree-window-expanded .genealogy-app {
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow: hidden;
    background: #faf9f5
}

.tree-window-expanded .genealogy-breadcrumb,
.tree-window-expanded .genealogy-sidebar,
.tree-window-expanded .genealogy-title-row,
.tree-window-expanded .genealogy-canvas-caption,
.tree-window-expanded .genealogy-unlinked {
    display: none
}

.tree-window-expanded .genealogy-layout {
    display: block;
    height: 100vh;
    min-height: 0;
    border: 0
}

.tree-window-expanded .genealogy-center {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 0
}

.tree-window-expanded .genealogy-toolbar {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    padding: 12px 16px;
    background: #faf9f5;
    border-bottom: 1px solid #e6e1d6
}

.tree-window-expanded .genealogy-canvas-shell {
    flex: 1 1 auto;
    height: auto;
    min-height: 0
}

/* Pesquisadores de associação de pessoas e álbuns */
.multi-select { position: relative; width: 100%; }
.multi-select-control {
    display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
    min-height: 48px; padding: 6px 10px; border: 1px solid #d8d5cc;
    border-radius: 8px; background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.multi-select-control:focus-within { border-color: #456b59; box-shadow: 0 0 0 3px rgb(69 107 89 / 13%); }
.multi-select-chips { display: contents; }
.multi-select-chip {
    display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
    padding: 4px 7px 4px 10px; border: 1px solid #d9e2d9; border-radius: 999px;
    background: #edf2ed; color: #294d3d; font-size: .9em; line-height: 1.35;
}
.multi-select-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-select-chip button {
    display: grid; flex: 0 0 20px; place-items: center; width: 20px; height: 20px;
    padding: 0; border: 0; border-radius: 50%; background: transparent;
    color: #456b59; cursor: pointer; font-size: 17px; line-height: 1;
}
.multi-select-chip button:hover { background: #dce7dd; }
.multi-select-control input.multi-select-search {
    flex: 1 1 150px; width: auto; min-width: 110px; min-height: 32px;
    margin: 0; padding: 4px 2px; border: 0; border-radius: 0;
    outline: 0; background: transparent; box-shadow: none;
}
.multi-select-control input.multi-select-search:focus { border: 0; box-shadow: none; }
.multi-select-options {
    position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; left: 0;
    max-height: 280px; overflow-y: auto; padding: 5px; border: 1px solid #dedbd2;
    border-radius: 9px; background: #fffdf9; box-shadow: 0 12px 30px rgb(35 43 37 / 14%);
}
.multi-select-options[hidden] { display: none; }
.multi-select-option {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px;
    border: 0; border-radius: 6px; background: transparent; color: #27332c;
    cursor: pointer; text-align: left; font: inherit;
}
.multi-select-option:hover, .multi-select-option:focus-visible { outline: 0; background: #f1f3ed; }
.multi-select-option[aria-selected="true"] { background: #e8eee7; color: #285d49; }
.multi-select-mark {
    display: grid; flex: 0 0 18px; place-items: center; width: 18px; height: 18px;
    border: 1px solid #c9cfc6; border-radius: 4px; color: #fff; font-size: 12px;
}
.multi-select-option[aria-selected="true"] .multi-select-mark { border-color: #456b59; background: #456b59; }
.multi-select-empty { margin: 0; padding: 12px 10px; color: #77776e; font-size: .92em; }
select[data-multi-select][hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .multi-select-control { transition: none; } }

.field-hint {
    color: #77776e;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45
}

select[multiple] {
    min-height: 132px;
    padding: 7px
}

.media-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    align-items: start;
    gap: 30px;
    margin: 22px 0 50px
}

.media-detail-preview,
.media-detail-panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid #e3e0d7;
    border-radius: 12px;
    background: #fffdf9
}

.media-detail-preview img {
    display: block;
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 8px;
    background: #f1eee6
}

.media-detail-panel h1 {
    margin: 6px 0 20px;
    font: 500 clamp(28px, 3vw, 40px)/1.12 Georgia, serif
}

.media-detail-panel h2 {
    margin: 24px 0 8px;
    font: 500 21px Georgia, serif
}

.media-detail-caption {
    color: #65675e;
    line-height: 1.65
}

.media-detail-meta {
    margin: 12px 0 0;
    color: #77776e;
    font-size: 12px
}

.media-document-preview {
    min-height: 300px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    padding: 24px;
    background: #f1eee6;
    border-radius: 8px;
    text-align: center
}

.media-document-preview span {
    color: #456b59;
    font-size: 50px
}

.media-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none
}

.media-link-list a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #e3e0d7;
    border-radius: 999px;
    color: #285d49;
    text-decoration: none
}

.media-edit-form {
    max-width: none
}

.media-edit-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px
}

@media (max-width: 760px) {
    .media-detail-grid {
        grid-template-columns: 1fr;
        gap: 16px
    }
}
.album-create-fields[hidden] {
    display: none
}
