/* Production adaptation of the supplied Ushasto Atlas prototype. */
@media screen {
.passport-family-tree{min-width:0;margin-top:16px;scroll-margin-top:1rem}
.passport-family-tree [hidden]{display:none!important}
.passport-family-tree :is(a,button,[tabindex]):focus-visible{outline:3px solid var(--passport-accent);outline-offset:3px}
.atlas-app{
  --a-bg:var(--passport-sage);--a-paper:var(--passport-paper);--a-ink:var(--passport-ink);
  --a-muted:var(--passport-muted);--a-green:var(--passport-accent);--a-green-on:#fffdf8;
  --a-soft:#e6f2ec;--a-line:var(--passport-line);--a-connector:#7c9e92;--a-dot:#a6bcb0;
  --a-shadow:#254c3d12;--a-dim:#142e286b;
  min-width:0;height:clamp(430px,70svh,620px);position:relative;container:atlas / inline-size;
  overflow:hidden;border:1px solid var(--a-line);border-radius:24px;
  background:var(--a-bg);color:var(--a-ink);box-shadow:0 10px 24px var(--a-shadow);
}
.atlas-app button,.atlas-app a{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
.atlas-app button{border:0}
.atlas-app button:disabled{opacity:.42;cursor:default}
.atlas-app h2,.atlas-app h3,.atlas-app p,.atlas-app dl,.atlas-app dd{margin:0}
.atlas-base{height:100%;display:flex;flex-direction:column}
.atlas-header{padding:19px 20px 18px;background:var(--a-paper);border-bottom:1px solid var(--a-line);z-index:1;flex-shrink:0}
.atlas-heading-row{display:flex;justify-content:space-between;gap:8px;align-items:center}
.atlas-heading-row h3{font:800 clamp(22px,4vw,34px)/1.12 var(--brand-font-heading,sans-serif);letter-spacing:-.03em;overflow-wrap:anywhere}
.atlas-toolbar{display:flex;align-items:center;gap:6px;flex:none}
.atlas-app .atlas-expand{
  display:inline-flex;align-items:center;gap:5px;min-height:44px;flex-shrink:0;
  padding:6px 9px;border:1px solid var(--a-line);border-radius:10px;
  background:var(--a-paper);color:var(--a-green);font-size:.8125rem;font-weight:650;
}
.atlas-app .atlas-expand:hover{background:var(--a-soft)}
.atlas-expand [data-expand-icon]{font-size:1.05rem;line-height:1}
.atlas-navigation{display:flex;align-items:stretch;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:10px}
.atlas-navigation:has(> .atlas-branches[hidden] + .atlas-generations[hidden]){display:none}
.atlas-branch-short{display:none}
.atlas-branches {
  display: flex;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  padding: 3px;
  border-radius: 12px;
  background: var(--a-bg);
}
.atlas-branches button {
  min-height: 44px;
  padding-inline: clamp(7px, 2vw, 15px);
  border-radius: 9px;
  background: transparent;
  color: var(--a-muted);
  font-size: .8125rem;
  font-weight: 650;
}
.atlas-branches button[aria-pressed="true"] {
  background: var(--a-paper);
  color: var(--a-green);
  box-shadow: inset 0 0 0 1px var(--a-line);
}
.atlas-branches button:hover { color: var(--a-green); }
.atlas-generations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;flex:0 1 21rem;max-width:100%}
.atlas-generations [data-next-generation]{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;white-space:pre-line;
}
.atlas-app .atlas-generations button{
  display:flex;align-items:center;gap:6px;min-width:0;min-height:48px;padding:7px 10px;
  border:1px solid var(--a-line);border-radius:10px;background:var(--a-paper);
  color:var(--a-green);font-size:.8125rem;font-weight:650;line-height:1.15;text-align:left;
}
.atlas-generations button [aria-hidden="true"]{font-size:1rem;flex:none}
.atlas-generations button:last-child{justify-content:flex-end;text-align:right}
.atlas-generations button[aria-disabled="true"]{color:var(--a-muted);opacity:.55;cursor:default}
.atlas-generations button[aria-disabled="false"]:hover{background:var(--a-soft)}
.atlas-map{position:relative;overflow:hidden;flex:1;min-height:0;cursor:grab;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;background:var(--a-bg);background-image:radial-gradient(var(--a-dot) .8px,transparent .8px);background-size:20px 20px}
.atlas-map.is-dragging{cursor:grabbing}
.atlas-world{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform}
.atlas-connectors{position:absolute;inset:0;overflow:visible;pointer-events:none}
.atlas-connectors path{fill:none;stroke:var(--a-connector);stroke-width:1.5}
.atlas-connectors path.is-primary{stroke:var(--a-green);stroke-width:1.6}
.atlas-node{position:absolute;display:flex;flex-direction:column;text-align:left;background:var(--a-paper);color:var(--a-ink);border:1px solid var(--a-line)!important;border-radius:15px;padding:11px 12px 10px;box-shadow:0 4px 12px var(--a-shadow);overflow:hidden;user-select:none}
.atlas-node.is-root{border-color:var(--a-green)!important;box-shadow:0 0 0 3px var(--a-soft),0 5px 16px var(--a-shadow)}
.atlas-node.is-selected{background:var(--a-soft)}
.atlas-node-role{display:flex;align-items:center;justify-content:space-between;color:var(--a-muted);font-size:var(--a-small,11px);line-height:1.25;margin-bottom:7px;white-space:nowrap}
.atlas-node.is-root .atlas-node-role{color:var(--a-green)}
.atlas-node-identity{display:flex;align-items:center;gap:8px;min-width:0}
.atlas-avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;border-radius:12px;background:var(--a-soft);color:var(--a-green);font:800 23px/1 var(--brand-font-heading,sans-serif);overflow:hidden}
.atlas-avatar img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.atlas-node-name{font-size:var(--a-name,15px);line-height:1.22;font-weight:700;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.atlas-node-color{font-size:var(--a-small,11px);line-height:1.3;color:var(--a-muted);margin-top:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.atlas-world.is-overview .atlas-node{padding:8px;justify-content:center;align-items:center;border-radius:13px}
.atlas-world.is-overview .atlas-node-role{
  display:block;width:100%;margin-bottom:4px;overflow:hidden;text-align:center;text-overflow:ellipsis;
}
.atlas-world.is-overview .atlas-node-color{display:none}
.atlas-world.is-overview .atlas-node-identity{flex-direction:column;gap:5px;text-align:center;width:100%}
.atlas-world.is-overview .atlas-avatar{width:33px;height:33px;border-radius:50%;font-size:22px}
.atlas-world.is-overview .atlas-node-name{font-size:var(--a-overview-name,20px);line-height:1.12;font-weight:650}
.atlas-map-controls{position:absolute;left:18px;right:18px;bottom:max(18px,env(safe-area-inset-bottom));display:flex;justify-content:space-between;align-items:center;gap:10px;pointer-events:none}
.atlas-zoom,.atlas-home{pointer-events:auto;background:var(--a-paper);border:1px solid var(--a-line)!important;box-shadow:0 5px 18px var(--a-shadow);border-radius:14px;min-height:48px}
.atlas-zoom{display:flex;align-items:center;padding:1px}
.atlas-zoom button{width:44px;height:44px;display:grid;place-items:center;background:transparent;border-radius:11px}
.atlas-zoom span{min-width:38px;text-align:center;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--a-muted)}
.atlas-home{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 14px;font-size:12px;font-weight:650;color:var(--a-green)!important}

.atlas-map:focus-visible{outline-offset:-4px}
.atlas-node:focus-visible{z-index:1;outline:3px solid var(--a-green);outline-offset:-3px}
.atlas-node-color:empty{display:none}
.atlas-zoom button{font-size:21px;font-weight:650}
.atlas-home .passport-detail-icon{width:17px;height:17px}
.atlas-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.atlas-app dialog{padding:0;border:0;color:var(--a-ink);background:var(--a-paper);max-width:none;max-height:none}
.atlas-app dialog:not([open]){display:none}
.atlas-app dialog::backdrop{background:var(--a-dim)}
.atlas-app .atlas-tree-dialog[open]{
  position:fixed;inset:0;margin:0;width:100%;height:100dvh;overflow:hidden;
  background:var(--a-bg);
}
.atlas-tree-dialog .atlas-header{padding-top:max(13px,env(safe-area-inset-top))}
.atlas-tree-dialog .atlas-map{touch-action:none;overscroll-behavior:contain}
.atlas-app .atlas-finder[open]{
  position:fixed;inset:0;margin:auto;display:flex;flex-direction:column;
  width:min(430px,calc(100% - 24px));max-height:min(620px,calc(100dvh - 24px));
  border:1px solid var(--a-line);border-radius:20px;box-shadow:0 18px 48px var(--a-shadow);
}
.atlas-finder-header,.atlas-finder-field{padding:8px 16px;flex:none}
.atlas-finder-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--a-line)}
.atlas-finder-header h3{font-size:1.125rem}
.atlas-finder-field{display:grid;gap:6px;padding-block:12px}
.atlas-finder-field label{font-size:.875rem;font-weight:650}
.atlas-finder-field input{
  display:block;width:100%;min-width:0;min-height:44px;padding:8px 12px;
  border:1px solid var(--a-connector);border-radius:10px;background:var(--a-paper);
  color:var(--a-ink);font:inherit;font-size:1rem;
}
.atlas-finder-field input:focus-visible{outline:2px solid var(--a-green);outline-offset:2px}
.atlas-finder-status{font-size:.8125rem;color:var(--a-muted)}
.atlas-finder-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 16px}
.atlas-finder-scroll:has(li){padding-block:3px 14px}
.atlas-finder-results{list-style:none;display:grid;gap:5px;margin:0;padding:0}
.atlas-app .atlas-finder-result{
  display:grid;gap:3px;width:100%;min-height:54px;padding:8px 10px;overflow-wrap:anywhere;
  border:1px solid var(--a-line);border-radius:10px;background:var(--a-paper);text-align:left;
}
.atlas-finder-result:hover{background:var(--a-soft)}
.atlas-app .atlas-finder-result:focus-visible{outline-offset:-3px}
.atlas-finder-result span{font-size:.8125rem;color:var(--a-muted)}
.atlas-finder-more{margin-top:8px}
.atlas-passport[open]{
  position:fixed;inset:0 0 0 auto;margin:0;display:flex;flex-direction:column;overflow:hidden;
  width:min(430px,100%);height:100dvh;border-left:1px solid var(--a-line);
  box-shadow:-16px 0 48px #142e2828;
}
.atlas-passport-nav{
  display:flex;align-items:center;gap:8px;padding:8px 14px;border-bottom:1px solid var(--a-line);
  background:var(--a-paper);flex:none;
}
.atlas-passport-nav>span{font-size:12px;color:var(--a-muted);text-align:right;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.atlas-app .atlas-back,.atlas-app .atlas-close{
  min-height:44px;background:transparent;border-radius:12px;padding:6px 8px;color:var(--a-green);font-size:13px;font-weight:700;
}
.atlas-app .atlas-close{width:44px;min-width:44px;font-size:24px;line-height:1}
.atlas-app :is(.atlas-back,.atlas-close,.atlas-home,.atlas-zoom button):hover{background:var(--a-soft)}
.atlas-passport-scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding-bottom:max(22px,env(safe-area-inset-bottom))}
.atlas-document{overflow-wrap:anywhere}
.atlas-document-header{padding:16px}
.atlas-hero-photo{position:relative;display:block;width:100%;height:216px;padding:0;border-radius:16px;overflow:hidden;background:var(--a-soft)}
.atlas-hero-photo:has(>.photo-frame-square){
  --atlas-portrait-height:clamp(216px,32dvh,280px);
  display:grid;place-items:center;height:var(--atlas-portrait-height);
}
.atlas-hero-photo>.photo-frame-square{width:min(100%,var(--atlas-portrait-height))}
.atlas-hero-photo img{height:100%;width:100%;display:block;object-fit:cover}
.atlas-photo-expand{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--a-paper);color:var(--a-green);box-shadow:0 2px 8px var(--a-shadow)}
.atlas-document-cover{display:grid;gap:12px;align-items:center}
.atlas-document-cover-with-photo{grid-template-columns:minmax(0,1fr) clamp(72px,24cqi,104px)}
.atlas-document-identity{min-width:0}
.atlas-document .atlas-document-identity h3{font-size:clamp(25px,7cqi,31px)}
.atlas-document-cover .atlas-cover-photo{--atlas-portrait-height:100%;width:100%;height:auto;aspect-ratio:1;border:1px solid var(--a-line)}
.atlas-cover-photo .atlas-photo-expand{right:4px;bottom:4px;width:28px;height:28px;border-radius:8px}
.atlas-document-header .atlas-document-id{display:flex;flex-wrap:wrap;gap:2px 10px;margin:6px 0 0;color:var(--a-muted);font-size:12px}
.atlas-document h3{font:800 clamp(25px,5vw,37px)/1.14 var(--brand-font-heading,sans-serif)}
.atlas-document-content{display:grid;gap:12px;padding:0 16px}
.atlas-document-content :is(.passport-data-card,.passport-handoff,.atlas-document-section){
  margin:0;padding:14px;border:1px solid var(--a-line);border-radius:15px;background:var(--a-paper);
}
.atlas-document-content .passport-handoff .notebook-section-number{display:none}
.atlas-document-content :is(h2,h4){font:800 17px/1.3 var(--brand-font-heading,sans-serif);margin:0 0 9px}
.atlas-document-content .passport-handoff h5{font:800 15px/1.14 var(--brand-font-heading,sans-serif);margin:12px 0 4px}
.atlas-document-content .passport-handoff p{font-size:14px;margin:0 0 9px}
.atlas-document-content .passport-handoff .eyebrow{margin-bottom:4px}
.atlas-document-content .passport-handoff .passport-guides{grid-template-columns:1fr}
.atlas-document-content .passport-handoff .passport-guides a{min-width:0;white-space:normal}
.atlas-passport-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.atlas-app .atlas-passport-actions :is(a,button){
  min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:7px 11px;border:1px solid var(--a-line);
  border-radius:11px;background:var(--a-paper);font-size:13px;font-weight:650;color:var(--a-green);
}
.atlas-app .atlas-passport-actions .atlas-action-main{background:var(--a-green);color:var(--a-green-on);border-color:var(--a-green)}
.atlas-app .atlas-passport-actions :is(a,button):hover{box-shadow:inset 0 0 0 1px var(--a-green)}
.atlas-more-actions{flex:1 0 100%;min-width:0}
.atlas-more-actions summary{
  width:fit-content;min-height:44px;padding:10px 3px;border-radius:8px;color:var(--a-green);
  font-size:13px;font-weight:650;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;
}
.atlas-more-actions summary:is(:hover,:active){background:var(--a-soft)}
.atlas-more-actions summary:focus-visible{outline:2px solid var(--a-green);outline-offset:2px}
.atlas-more-action-links{display:flex;flex-wrap:wrap;gap:7px}
.atlas-document .atlas-share-feedback{margin-top:8px;font-size:13px}
.atlas-inheritance h4{
  display:flex;align-items:center;gap:8px;
}
.atlas-inheritance h4 .passport-detail-icon{width:18px;height:18px;color:var(--a-green)}
.atlas-inheritance-group{
  padding:11px 12px;border:1px solid var(--a-line);border-radius:12px;
}
.atlas-inheritance-group+.atlas-inheritance-group{margin-top:8px}
.atlas-inheritance-model{background:var(--a-soft)}
.atlas-inheritance-group h5{margin:0 0 6px;font-size:.875rem;line-height:1.4}
.atlas-traits>div{padding-block:8px}
.atlas-traits>div+div{border-top:1px solid var(--a-line)}
.atlas-traits>div:last-child{padding-bottom:0}
.atlas-traits dt{font-size:.9375rem;font-weight:750;line-height:1.35}
.atlas-traits dt small{display:block;font-size:.75rem;font-weight:500;color:var(--a-muted)}
.atlas-traits dd{display:grid;gap:4px;margin-top:3px;font-size:.8125rem;line-height:1.45;color:var(--a-muted)}
.atlas-traits strong{font-size:1.125rem;font-variant-numeric:tabular-nums;color:var(--a-green)}
.atlas-traits dd>b{color:var(--a-ink)}
.atlas-trait-outcome{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
.atlas-inheritance .atlas-inheritance-note{margin:6px 0;font-size:.8125rem;color:var(--a-muted)}
.atlas-inheritance-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-top:10px}
.atlas-app .atlas-inheritance-actions a{
  display:inline-flex;align-items:center;gap:5px;min-height:44px;max-width:100%;padding:6px 2px;
  color:var(--a-green);font-size:.8125rem;font-weight:650;line-height:1.35;
}
.atlas-app .atlas-inheritance-actions a:not(.atlas-calculate):hover{text-decoration:underline}
.atlas-app .atlas-inheritance-actions .atlas-calculate{
  padding-inline:11px;border:1px solid var(--a-green);border-radius:10px;
}
.atlas-app .atlas-inheritance-actions .atlas-calculate:hover{background:var(--a-soft)}
.atlas-trait-sources{min-width:0;overflow-wrap:anywhere}
.atlas-trait-sources summary::before{content:'+';margin-right:6px;font-weight:750}
.atlas-trait-sources[open] summary::before{content:'−'}
.atlas-trait-sources ul{margin-bottom:5px}
.atlas-trait-sources a{color:var(--a-green)}
.atlas-family-list,.atlas-history{list-style:none;margin:0;padding:0;font-size:14px}
.atlas-family-list{display:grid;gap:6px}
.atlas-family-list .atlas-family-link{
  display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:48px;width:100%;
  padding:8px 11px;border:1px solid var(--a-line);border-radius:10px;
  background:var(--a-paper);color:var(--a-green);text-decoration:none;text-align:left;
}
.atlas-family-list .atlas-family-link:hover{background:var(--a-soft)}
.atlas-family-identity{display:grid;gap:1px;min-width:0;overflow-wrap:anywhere}
.atlas-family-identity strong{color:var(--a-ink);font-weight:750;font-size:.9375rem}
.atlas-family-identity small,.atlas-family-identity>span{color:var(--a-muted);font-size:.75rem}
.atlas-history time{color:var(--a-muted)}
.atlas-history li{display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px;border-bottom:1px solid var(--a-line);padding:6px 0}
.atlas-document-content :is(.atlas-contact-link,.atlas-report-link),.atlas-document-section>a{display:inline-flex;align-items:center;min-height:44px;color:var(--a-green);font-size:13px}
.atlas-panel-message{display:grid;gap:12px;padding:20px}
.atlas-panel-message :is(a,button){justify-self:start}
.atlas-panel-message a{color:var(--a-green);text-decoration:underline}
.atlas-app .atlas-panel-message button{
  min-height:44px;padding:8px 14px;border-radius:10px;background:var(--a-green);
  color:var(--a-green-on);font-weight:650;
}
.atlas-photo-viewer[open]{position:fixed;inset:0;margin:auto;width:min(760px,95vw);height:min(740px,92dvh);border-radius:18px;display:grid;place-items:center}
.atlas-photo-viewer .atlas-close{position:absolute;top:10px;right:10px;background:var(--a-paper)}
.atlas-photo-full{display:block;width:100%;height:100%;object-fit:contain}
@container atlas (min-width:760px){
  .atlas-header{padding:18px 26px}
  .atlas-heading-row{gap:16px}
  .atlas-map-controls{left:25px;right:25px;bottom:20px}
}
@media(max-width:700px){
  .passport-page.passport-redesign .passport-origin-section{padding-inline:12px}
  .atlas-app{height:clamp(395px,72svh,620px);border-radius:20px}
  .atlas-app:has(.atlas-generations:not([hidden])){height:clamp(442px,87svh,620px)}
  .atlas-header{padding:12px}
  .atlas-heading-row h3{font-size:clamp(20px,5vw,26px)}
  .atlas-map-controls{left:10px;right:10px;gap:5px}
  .atlas-home{padding-inline:9px}
  .atlas-passport[open]{inset:auto 0 0;margin:0;width:100%;height:94dvh;border:0;border-radius:21px 21px 0 0}
}
@container atlas (max-width: 365px) {
  .atlas-toolbar:has([data-find-trigger]:not([hidden])) [data-expand-label]{display:none}
  .atlas-toolbar .atlas-expand{min-width:44px;justify-content:center}
  .atlas-branches { width:100%;flex-wrap:nowrap;gap:2px; }
  .atlas-branches button{min-width:0;flex:1 1 auto;padding-inline:3px;font-size:.75rem;line-height:1.1}
  .atlas-branch-full{display:none}
  .atlas-branch-short{display:inline}
  .atlas-generations{flex-basis:100%}
  .atlas-app .atlas-generations button{font-size:.75rem;padding-inline:7px}
  .atlas-home { white-space: nowrap; padding-inline: 8px; }
  .atlas-zoom button { width: 40px; }
  .atlas-zoom span { min-width: 30px; }
}
@media(prefers-reduced-motion:reduce){.atlas-app *{transition:none!important;scroll-behavior:auto!important}}
 .pedigree-fallback{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px}
 .pedigree-fallback-card{min-width:0;padding:12px;border:1px solid #d9e4d5;border-radius:14px;overflow-wrap:anywhere}
 .pedigree-fallback-card h3{font-size:16px;margin:0 0 8px}
 .pedigree-fallback-card>.pedigree-record-thumb{float:right;width:50px;margin:0 0 8px 8px;border-radius:6px}
 .pedigree-fallback-parents{padding:0;margin:8px 0 0;list-style:none;font-size:13px}
 .passport-offspring{margin:16px 0;padding:14px;border:1px solid #d5dfd2;border-radius:16px;background:#f2f6ed;min-width:0}
 .passport-offspring>h3{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:17px}
 .passport-offspring>h3 svg{width:18px;height:18px}
 .passport-offspring>ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:8px;list-style:none;margin:0;padding:0}
 .passport-offspring>ul a{display:grid;align-content:center;gap:3px;min-height:44px;padding:8px 10px;border:1px solid #d5dfd2;border-radius:10px;background:#fffdf8;color:#254c3d;text-decoration:none;overflow-wrap:anywhere}
 .passport-offspring>ul a:hover strong{text-decoration:underline}
 .passport-offspring>ul a span{font-size:13px;color:#52685c}
}
@media print{.atlas-app{display:none!important}}
