/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --ink: #21302a;
  --muted: #65736c;
  --paper: #f7f4ed;
  --card: #fffdf7;
  --line: #d8d2c5;
  --green: #235c43;
  --gold: #c68b3c;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  font-family: Inter, Segoe UI, sans-serif;
}

a {
  color: var(--green);
  text-decoration: none;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fffdf7dd;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  padding: 0 max(24px, 50vw - 580px);
  display: flex;
}

.brand {
  color: var(--ink);
  font: 700 22px Georgia, serif;
}

nav {
  gap: 24px;
  display: flex;
}

.nav-user {
  color: var(--muted);
  font-size: 13px;
}

.nav-button {
  color: var(--green);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px 90px;
}

h1 {
  max-width: 760px;
  margin: 8px 0 28px;
  font: 700 clamp(36px, 5vw, 64px) / 1.04 Georgia, serif;
}

h2 {
  margin: 0 0 6px;
  font: 600 20px Georgia, serif;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.hero {
  grid-template-columns: minmax(0, .88fr) minmax(430px, 1.12fr);
  align-items: center;
  gap: clamp(34px, 5vw, 70px);
  min-height: calc(100vh - 214px);
  padding-top: clamp(24px, 5vh, 58px);
  display: grid;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.hero-copy .actions {
  margin-top: 18px;
}

.hero-visual {
  isolation: isolate;
  aspect-ratio: 4 / 3;
  width: 100%;
  margin: 0;
  position: relative;
}

.hero-visual:before {
  z-index: -1;
  content: "";
  opacity: .5;
  background: #d9c298;
  border-radius: 26px;
  position: absolute;
  inset: 24px -18px -18px 28px;
  transform: rotate(2deg);
}

.hero-image {
  object-fit: cover;
  object-position: 43% center;
  border: 1px solid #cfc5b2;
  border-radius: 22px;
  box-shadow: 0 24px 60px #493b2730;
}

.actions, .page-heading {
  align-items: center;
  gap: 14px;
  display: flex;
}

.page-heading {
  justify-content: space-between;
}

.button {
  border: 1px solid var(--green);
  min-height: 42px;
  color: var(--green);
  cursor: pointer;
  background: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 0 18px;
  font: 600 14px inherit;
  display: inline-flex;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button:disabled {
  opacity: .6;
}

.folder-list {
  gap: 18px;
  display: grid;
}

.folder-board {
  gap: 10px;
  display: grid;
}

.folder-drag-hint {
  color: var(--muted);
  margin: 0 0 4px;
  font-size: 13px;
}

.folder-create-form, .folder-edit-form {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.folder-create-form input, .folder-edit-form input {
  width: 240px;
}

.folder-edit-form {
  border-top: 1px solid var(--line);
  background: #faf8f2;
  padding: 12px 20px;
}

.folder-edit-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.inline-error {
  color: #8d2424;
  flex-basis: 100%;
  font-size: 13px;
}

.people-folder {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  transition: border-color .16s, box-shadow .16s, background-color .16s;
  overflow: hidden;
}

.people-folder.is-drop-target {
  background: #f3faf5;
  border-color: #26865a;
  box-shadow: 0 0 0 4px #26865a24;
}

.people-folder summary {
  cursor: pointer;
  background: #f1ede3;
  align-items: center;
  gap: 10px;
  padding: 17px 20px;
  list-style: none;
  display: flex;
}

.people-folder summary::-webkit-details-marker {
  display: none;
}

.people-folder summary strong {
  font: 600 19px Georgia, serif;
}

.people-folder summary .folder-count {
  color: var(--muted);
  margin-left: auto;
}

.folder-empty {
  color: var(--muted);
  padding: 20px;
  font-size: 14px;
}

.folder-icon {
  color: var(--gold);
  transform: rotate(90deg);
}

.people-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding: 16px;
  display: grid;
}

.person-card {
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: grab;
  background: #fff;
  border-radius: 10px;
  gap: 16px;
  padding: 18px;
  transition: transform .15s, border-color .15s, box-shadow .15s, opacity .15s;
  display: flex;
}

.person-card:active {
  cursor: grabbing;
}

.person-card.is-dragging {
  opacity: .35;
}

.person-card.is-moving {
  opacity: .55;
  pointer-events: none;
}

.person-card:hover {
  border-color: #9aaf9f;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px #21302a14;
}

.person-card p {
  color: var(--muted);
  margin: 0 0 10px;
}

.card-link {
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

.avatar {
  background: #d8ded9;
  border-radius: 50%;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  font: 700 20px Georgia, serif;
  display: grid;
}

.avatar.male, .tree-person.male {
  background: #dbe9ef;
}

.avatar.female, .tree-person.female {
  background: #f0e0e3;
}

.empty {
  border: 1px dashed var(--line);
  color: var(--muted);
  border-radius: 12px;
  padding: 36px;
}

.person-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  display: grid;
}

fieldset {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  gap: 14px;
  padding: 22px;
  display: grid;
}

legend {
  padding: 0 8px;
  font: 600 18px Georgia, serif;
}

label {
  color: var(--muted);
  gap: 6px;
  font-size: 13px;
  display: grid;
}

input, select, textarea {
  border: 1px solid var(--line);
  width: 100%;
  color: var(--ink);
  font: inherit;
  background: #fff;
  border-radius: 7px;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

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

.checkbox {
  justify-content: start;
  align-items: center;
  display: flex;
}

.checkbox input {
  width: auto;
}

.error {
  color: #8d2424;
  background: #f9dede;
  border-radius: 8px;
  grid-column: 1 / -1;
  padding: 14px;
}

.form-actions {
  gap: 10px;
  display: flex;
}

.login-page {
  max-width: 440px;
  margin: 7vh auto 0;
}

.login-form {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  gap: 18px;
  padding: 26px;
  display: grid;
}

.login-form .error {
  grid-column: auto;
}

.section-lead {
  max-width: 720px;
  color: var(--muted);
  margin: -14px 0 26px;
}

.access-manager {
  gap: 14px;
  display: grid;
}

.access-user {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
}

.access-user > summary {
  cursor: pointer;
  background: #f1ede3;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  display: flex;
}

.access-user > summary span {
  color: var(--muted);
  font-size: 13px;
}

.access-form {
  gap: 18px;
  padding: 20px;
  display: grid;
}

.access-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.folder-permissions {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.success {
  color: #235c43;
  background: #dcebdd;
  border-radius: 8px;
  padding: 12px;
}

.relationship-manager {
  gap: 32px;
  display: grid;
}

.relationship-warning {
  margin-bottom: 22px;
}

.relationship-form {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  gap: 20px;
  padding: 24px;
  display: grid;
}

.relationship-form h2, .relationship-list h2 {
  margin: 0;
}

.relationship-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  display: grid;
}

.relationship-list {
  gap: 12px;
  display: grid;
}

.relationship-list h2 {
  align-items: center;
  gap: 10px;
  display: flex;
}

.relationship-list h2 span {
  min-width: 28px;
  height: 28px;
  color: var(--green);
  background: #e8ede8;
  border-radius: 999px;
  place-items: center;
  padding: 0 7px;
  font: 600 13px Inter, sans-serif;
  display: inline-grid;
}

.relationship-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 11px;
  grid-template-columns: minmax(280px, 1.4fr) minmax(190px, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  display: grid;
}

.relationship-people {
  align-items: center;
  gap: 10px;
  font-weight: 600;
  display: flex;
}

.relationship-people span {
  color: var(--gold);
}

.relationship-card > div:nth-child(2) {
  gap: 5px;
  display: grid;
}

.relationship-card small {
  color: var(--muted);
}

.relationship-status {
  color: #235c43;
  background: #dcebdd;
  border-radius: 999px;
  width: max-content;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.relationship-status.divorced {
  color: #744f2c;
  background: #f3dfc8;
}

.relationship-status.other {
  color: #5d4b78;
  background: #e8e0f1;
}

.relationship-actions {
  gap: 8px;
  display: flex;
}

.button.danger {
  color: #8d2424;
  border-color: #a34747;
}

.tree-controls {
  align-items: end;
  gap: 10px;
  margin-bottom: 32px;
  display: flex;
}

.tree-controls label {
  min-width: min(420px, 100%);
}

.tree-controls select {
  min-width: 280px;
}

.tree {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 24px;
  padding: 24px;
  overflow: auto;
}

.tree-node {
  flex-direction: column;
  align-items: center;
  min-width: max-content;
  display: flex;
}

.tree-person {
  min-width: 160px;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  background: #e5e7e2;
  border-radius: 9px;
  gap: 3px;
  padding: 12px 16px;
  display: grid;
}

.tree-person small {
  color: var(--muted);
}

.tree-children {
  gap: 18px;
  padding-top: 28px;
  display: flex;
}

.person-card-heading {
  justify-items: start;
  gap: 15px;
  display: grid;
}

.person-card-heading h1 {
  margin-bottom: 0;
  font-size: clamp(44px, 4.2vw, 62px);
  line-height: 1.02;
}

.person-card-title {
  min-width: 0;
}

.person-card-heading > .actions {
  margin-bottom: 22px;
}

.person-maiden-name {
  color: var(--muted);
  letter-spacing: .01em;
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 500;
}

.person-profile {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  display: grid;
}

.profile-aside, .profile-section {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 22px;
}

.profile-placeholder {
  aspect-ratio: 4 / 5;
  background: #e5e7e2;
  border-radius: 9px;
  place-items: center;
  width: 100%;
  font: 700 76px Georgia, serif;
  display: grid;
}

.profile-photo {
  object-fit: cover;
  border-radius: 9px;
  width: 100%;
  height: auto;
  max-height: 420px;
}

.profile-placeholder.male {
  background: #dbe9ef;
}

.profile-placeholder.female {
  background: #f0e0e3;
}

.protected-file {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 12px;
}

.profile-facts, .details-grid {
  margin: 20px 0 0;
}

.profile-facts div, .details-grid div {
  border-bottom: 1px solid var(--line);
  gap: 3px;
  padding: 11px 0;
  display: grid;
}

dt, .family-links span {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 0;
}

.profile-content {
  gap: 18px;
  display: grid;
}

.profile-section h2 {
  margin-bottom: 16px;
}

.details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  display: grid;
}

.family-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.family-links div {
  background: #f4f1e9;
  border-radius: 8px;
  gap: 4px;
  padding: 12px;
  display: grid;
}

.family-links em {
  color: var(--muted);
}

.detail-list {
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.detail-list li {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  display: flex;
}

.detail-list span {
  color: var(--muted);
}

.profile-text {
  white-space: pre-wrap;
  line-height: 1.65;
}

.profile-note {
  border-left: 3px solid var(--gold);
  color: var(--muted);
  white-space: pre-wrap;
  background: #f4f1e9;
  padding: 14px;
}

.tree-summary {
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 10px;
  display: flex;
}

.tree-summary span {
  color: var(--green);
  background: #e8ede8;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 600;
}

.tree-page-wide {
  width: calc(100vw - 32px);
  margin-left: 50%;
  transform: translateX(-50%);
}

.tree-hint {
  color: var(--muted);
  margin: 0 0 18px;
}

.tree-view-shell {
  position: relative;
}

.tree-view-toolbar, .tree-view-actions, .tree-zoom-controls {
  align-items: center;
  display: flex;
}

.tree-view-toolbar {
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 8px;
}

.tree-view-actions {
  gap: 10px;
}

.tree-legend {
  color: var(--muted);
  align-items: center;
  gap: 9px;
  font-size: 13px;
  display: flex;
}

.tree-legend i {
  border-top: 4px solid #08783f;
  border-radius: 999px;
  width: 34px;
  height: 0;
}

.tree-zoom-controls {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  height: 42px;
  overflow: hidden;
}

.tree-zoom-controls button {
  border: 0;
  border-right: 1px solid var(--line);
  min-width: 40px;
  height: 100%;
  color: var(--green);
  cursor: pointer;
  background: none;
  padding: 0 11px;
  font: 700 20px / 1 inherit;
}

.tree-zoom-controls button:hover {
  background: #e8ede8;
}

.tree-zoom-controls output {
  min-width: 58px;
  color: var(--ink);
  text-align: center;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.tree-zoom-controls .tree-fit-button {
  border-right: 0;
  border-left: 1px solid var(--line);
  min-width: 72px;
  font-size: 13px;
}

.tree-zoom-controls .tree-fit-button[aria-pressed="true"] {
  background: #e0ece4;
}

.tree-fullscreen-button {
  min-width: 150px;
}

.full-tree-scroll {
  cursor: grab;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  width: 100%;
  min-height: 65vh;
  max-height: calc(100vh - 250px);
  overflow: auto;
}

.full-tree-scroll.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  -webkit-user-select: none;
  user-select: none;
}

.full-tree-scroll.is-dragging * {
  cursor: grabbing !important;
}

.tree-view-shell:fullscreen {
  background: var(--paper);
  grid-template-rows: auto minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  padding: 12px;
  display: grid;
}

.tree-view-shell:fullscreen .tree-view-toolbar {
  margin-bottom: 8px;
}

.tree-view-shell:fullscreen .full-tree-scroll {
  border-radius: 8px;
  height: 100%;
  min-height: 0;
  max-height: none;
}

.tree-export-error {
  color: #8d2424;
  max-width: 220px;
  font-size: 12px;
  line-height: 1.25;
}

.full-tree-stage {
  min-width: 100%;
  min-height: 100%;
  position: relative;
}

.full-tree-canvas {
  transform-origin: center;
  background-image: radial-gradient(#d8d2c5 1px, #0000 1px);
  background-size: 22px 22px;
  position: absolute;
  top: 50%;
  left: 50%;
}

.tree-lines {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.parent-line {
  fill: none;
  opacity: .42;
  stroke: #68746e;
  stroke-width: 1.8px;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.parent-trunk {
  stroke-width: 2.2px;
}

.parent-bus {
  stroke: #8b948f;
  stroke-width: 1.5px;
}

.direct-ancestor-halo, .direct-ancestor-line {
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.direct-ancestor-halo {
  stroke: #fffdf7;
  stroke-width: 9px;
}

.direct-ancestor-line {
  stroke: #08783f;
  stroke-width: 4.5px;
}

.direct-ancestor-junction {
  fill: #fffdf7;
  stroke: #08783f;
  stroke-width: 3px;
}

.relation-line {
  stroke: #d11f2f;
  stroke-width: 3px;
}

.relation-line.divorced {
  stroke: #7241a1;
  stroke-dasharray: 6 4;
}

.parent-family, .relation-line {
  transition: opacity .16s;
}

.tree-lines .is-muted {
  opacity: .16;
}

.parent-family.is-highlighted {
  opacity: 1;
}

.parent-family.is-highlighted .parent-line {
  opacity: 1;
  stroke: #12633c;
  stroke-width: 3px;
}

.parent-family.is-highlighted .parent-bus {
  stroke-width: 2.4px;
}

.relation-line.is-highlighted {
  opacity: 1;
  stroke-width: 4px;
}

.full-tree-node {
  z-index: 1;
  position: absolute;
}

.full-tree-node:hover, .full-tree-node:focus-within {
  z-index: 5;
}

.date-or-year {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, .72fr);
  align-items: end;
  gap: 10px;
  display: grid;
}

.date-or-year > span {
  color: var(--muted);
  padding-bottom: 12px;
  font-size: 12px;
}

.death-date-control {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  display: grid;
}

.death-date-control > .checkbox {
  white-space: nowrap;
  min-height: 42px;
}

.full-tree-person {
  width: 100%;
  height: 100%;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  background: #e5e7e2;
  border: 2px solid #fff;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 11px 13px;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 12px #21302a24;
}

.tree-node-deceased {
  color: #37443e;
  font: 800 18px / 1 Georgia, serif;
  position: absolute;
  top: 5px;
  right: 8px;
}

.full-tree-person:hover, .full-tree-person:focus-visible {
  outline: 3px solid #c68b3c66;
}

.full-tree-person.male {
  background: #dbe9ef;
}

.full-tree-person.female {
  background: #f0e0e3;
}

.full-tree-person small {
  color: var(--muted);
}

.tree-node-relationship {
  color: #08783f;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  display: -webkit-box;
  overflow: hidden;
}

.full-tree-person.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 5px #c68b3c2e, 0 5px 18px #21302a2e;
}

.full-tree-person {
  transition: transform .16s, background-color .16s, box-shadow .16s;
  transform: scale(1);
}

.kinship-middle {
  z-index: 2;
}

.kinship-near {
  z-index: 3;
}

.lineage-person, .root-partner {
  z-index: 4;
}

.kinship-middle .full-tree-person {
  transform: scale(1.07);
  box-shadow: 0 4px 14px #21302a2a;
}

.kinship-near .full-tree-person {
  transform: scale(1.14);
  box-shadow: 0 5px 17px #21302a30;
}

.lineage-person .full-tree-person, .root-partner .full-tree-person {
  transform: scale(1.24);
  box-shadow: 0 7px 22px #0c684133;
}

.lineage-person .full-tree-person {
  border-color: #4a9a70;
}

.root-partner .full-tree-person {
  border-color: #cf5965;
}

.lineage-person .full-tree-person.male {
  background: #c4e4ef;
}

.lineage-person .full-tree-person.female, .root-partner .full-tree-person.female {
  background: #f3d1da;
}

.lineage-person .full-tree-person.unknown, .root-partner .full-tree-person.unknown {
  background: #d8eadc;
}

.lineage-person .full-tree-person strong, .root-partner .full-tree-person strong {
  font-size: 16px;
  font-weight: 800;
}

.lineage-person .full-tree-person small, .root-partner .full-tree-person small {
  font-weight: 600;
}

.lineage-person .tree-node-relationship, .root-partner .tree-node-relationship {
  font-size: 11px;
  font-weight: 900;
}

.lineage-person .full-tree-person.selected {
  border-color: var(--gold);
}

.tree-person-tooltip {
  visibility: hidden;
  opacity: 0;
  width: 390px;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  pointer-events: none;
  transform: translate(-50%,8px) scale(var(--tree-tooltip-scale, 1));
  transform-origin: bottom;
  background: #fffdf8;
  border-radius: 12px;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  transition: opacity .14s, visibility .14s;
  display: grid;
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  box-shadow: 0 12px 36px #18231d38;
}

.full-tree-node:hover .tree-person-tooltip, .full-tree-node:focus-within .tree-person-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%,0) scale(var(--tree-tooltip-scale, 1));
}

.tooltip-below .tree-person-tooltip {
  transform-origin: top;
  top: calc(100% + 14px);
  bottom: auto;
}

.tree-tooltip-photo, .tree-tooltip-placeholder {
  object-fit: cover;
  background: #e9e5dc;
  border-radius: 9px;
  width: 96px;
  height: 120px;
}

.tree-tooltip-placeholder {
  color: var(--green);
  place-items: center;
  font: 700 38px Georgia, serif;
  display: grid;
}

.tree-tooltip-placeholder.male {
  background: #dbe9ef;
}

.tree-tooltip-placeholder.female {
  background: #f0e0e3;
}

.tree-tooltip-content {
  min-width: 0;
}

.tree-tooltip-content > strong {
  margin-bottom: 8px;
  font-size: 16px;
  display: block;
}

.tree-tooltip-content dl {
  gap: 6px;
  margin: 0;
  display: grid;
}

.tree-tooltip-content dl div {
  grid-template-columns: 110px 1fr;
  gap: 8px;
  display: grid;
}

.tree-tooltip-content dt {
  color: var(--muted);
  font-size: 12px;
}

.tree-tooltip-content dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.tree-tooltip-content p {
  color: var(--muted);
  white-space: pre-line;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
}

.tooltip-align-left .tree-person-tooltip {
  transform-origin: 0 100%;
  left: 0;
  right: auto;
}

.tooltip-align-right .tree-person-tooltip {
  transform-origin: 100% 100%;
  left: auto;
  right: 0;
}

.tooltip-below.tooltip-align-left .tree-person-tooltip {
  transform-origin: 0 0;
}

.tooltip-below.tooltip-align-right .tree-person-tooltip {
  transform-origin: 100% 0;
}

.tooltip-align-left:hover .tree-person-tooltip, .tooltip-align-left:focus-within .tree-person-tooltip, .tooltip-align-right:hover .tree-person-tooltip, .tooltip-align-right:focus-within .tree-person-tooltip {
  transform: translateY(0) scale(var(--tree-tooltip-scale, 1));
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 36px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    aspect-ratio: 16 / 10;
    margin-top: 8px;
  }

  .hero-visual:before {
    inset: 18px -8px -12px 18px;
  }

  .hero-image {
    object-position: 42% center;
  }
}

@media (max-width: 700px) {
  nav a:not(:first-child), .nav-user {
    display: none;
  }

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

  .wide {
    grid-column: auto;
  }

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

  .tree-controls select {
    width: 100%;
  }

  .tree-page-wide {
    width: calc(100vw - 16px);
  }

  .tree-view-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tree-view-actions {
    justify-content: space-between;
  }

  .tree-legend {
    min-height: 30px;
  }

  .tree-zoom-controls {
    flex: 1;
  }

  .tree-fullscreen-button {
    min-width: 125px;
  }

  .full-tree-scroll {
    min-height: 70vh;
    max-height: 75vh;
  }

  .tree-person-tooltip {
    width: 310px;
    transform: translateY(8px) scale(var(--tree-tooltip-scale, 1));
    transform-origin: 0 100%;
    grid-template-columns: 76px minmax(0, 1fr);
    left: 0;
  }

  .full-tree-node:hover .tree-person-tooltip, .full-tree-node:focus-within .tree-person-tooltip {
    transform: translateY(0) scale(var(--tree-tooltip-scale, 1));
  }

  .tooltip-below .tree-person-tooltip {
    transform-origin: 0 0;
  }

  .tree-tooltip-photo, .tree-tooltip-placeholder {
    width: 76px;
    height: 96px;
  }

  .tree-tooltip-content dl div {
    grid-template-columns: 1fr;
  }

  .person-card-heading {
    display: block;
  }

  .person-profile {
    grid-template-columns: 1fr;
  }

  .profile-aside {
    grid-template-columns: 120px 1fr;
    gap: 16px;
    display: grid;
  }

  .profile-facts {
    margin: 0;
  }

  .details-grid, .family-links, .access-fields {
    grid-template-columns: 1fr;
  }

  .detail-list li {
    display: grid;
  }

  .people-grid, .relationship-form-grid, .relationship-card {
    grid-template-columns: 1fr;
  }

  .relationship-actions {
    flex-wrap: wrap;
  }
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/