.bond-strip{padding:18px 24px;border-top:1px solid #ddd8cb;background:#f6f4ec;display:grid;grid-template-columns:minmax(180px,1fr) minmax(240px,1.4fr) auto;gap:18px;align-items:center}.bond-identity{display:flex;align-items:center;gap:14px}.bond-seal{font-family:Georgia,serif;font-size:38px;color:#758968}.bond-identity h3{margin:4px 0;font-family:'Source Serif 4',Georgia,serif;font-size:23px;color:#344b36;overflow-wrap:anywhere}.bond-identity .eyebrow{font-size:11px}.bond-hope{margin:0;color:#4c5d49;font-size:14px;line-height:1.6}.bond-moment{display:block;margin-top:5px;color:#7a6b54;font-size:12px;line-height:1.5}.bond-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch}.bond-actions button{white-space:normal;font-size:14px}.bond-slow{display:flex;gap:7px;align-items:center;font-size:12px;color:#626b5c;line-height:1.4}.bond-slow input{accent-color:#637e58;min-width:16px;min-height:16px}.bond-parent-link{display:block;padding:0;background:none;border:0;text-align:left;text-decoration:underline;color:#637551;font-size:12px;margin-top:5px;line-height:1.5}.bond-dialog{width:min(740px,calc(100vw - 28px));max-height:90dvh;overflow:auto}.bond-dialog h2{overflow-wrap:anywhere}.bond-choice-body{display:grid;grid-template-columns:140px 1fr;gap:20px;align-items:center}.bond-choice-portrait svg{width:100%}.bond-options{display:grid;gap:12px}.bond-option{padding:17px 18px;background:#f7f7ef;border:1px solid #cbd2bd;border-radius:10px;text-align:left;color:#30432f;cursor:pointer;transition:background .15s,border-color .15s}.bond-option:hover{background:#edf0e1;border-color:#849774}.bond-option strong{display:block;font-size:17px;margin-bottom:7px}.bond-option span{display:block;font-size:14px;line-height:1.6;color:#59634f}.bond-option:focus-visible,.bond-strip button:focus-visible{outline:3px solid #6d885d;outline-offset:3px}.bond-choice-foot{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.bond-note{font-size:13px;color:#6e7568;line-height:1.6}.bond-name-form{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:18px 0}.bond-name-form label{flex:1;min-width:160px;font-size:13px;color:#62705a}.bond-name-form input{display:block;width:100%;margin-top:7px;padding:10px 12px;border:1px solid #c5ceba;border-radius:6px;font:inherit;font-size:16px;background:#fafbf6;color:#344735;box-sizing:border-box}.bond-name-form small{width:100%;color:#62705a}.bond-portraits{display:grid;grid-template-columns:1fr 50px 1fr;gap:12px;align-items:center;border-top:1px solid #dadfd0;border-bottom:1px solid #dadfd0;padding:12px 0}.bond-portraits figure{margin:0;min-width:0;text-align:center}.bond-portraits svg{width:100%;max-height:240px}.bond-portraits figcaption{font-size:14px;color:#596b52}.bond-between{font-family:'Source Serif 4',Georgia,serif;font-style:italic;color:#849076;text-align:center;font-size:14px}.bond-scale-note{font-size:12px;color:#7c826f;text-align:center}.bond-memory-list{display:grid;gap:0;margin:16px 0}.bond-memory{display:grid;grid-template-columns:88px minmax(0,1fr);gap:17px;border-bottom:1px solid #e0e3d6;padding:15px 0;align-items:center}.bond-memory svg{width:88px;height:88px}.bond-memory small{font-size:12px;color:#7c826d}.bond-memory h4{margin:5px 0;font-family:'Source Serif 4',Georgia,serif;font-size:20px;font-weight:500;color:#3d533c}.bond-memory p{font-size:14px;line-height:1.65;color:#626c59;margin:0}.bond-history{margin:18px 0}.bond-history summary{cursor:pointer;font-family:'Source Serif 4',Georgia,serif;font-size:21px;color:#43593d}.bond-diary{margin:20px 0;padding:20px;border:1px solid #d1d8c3;background:#f3f5eb}.bond-diary h3{font-family:'Source Serif 4',Georgia,serif;font-size:24px;margin:0 0 8px}.bond-diary p{font-size:14px}.bond-empty{font-size:14px;color:#7b806f}
@media(max-width:900px){.bond-strip{grid-template-columns:1fr 1fr;padding:16px;gap:14px}.bond-actions{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;align-items:center}.bond-actions .bond-slow{margin-left:auto}.bond-actions button{flex:0 1 auto}}
@media(max-width:520px){.bond-strip{grid-template-columns:1fr;gap:10px}.bond-identity h3{font-size:21px}.bond-actions{gap:10px}.bond-actions .bond-slow{margin-left:0;width:100%}.bond-choice-body{grid-template-columns:1fr;gap:5px}.bond-choice-portrait{display:none}.bond-dialog{padding:20px!important}.bond-portraits{gap:4px;grid-template-columns:1fr 30px 1fr}.bond-between{font-size:12px}.bond-memory{grid-template-columns:62px minmax(0,1fr);gap:10px}.bond-memory svg{width:62px;height:76px}.bond-memory h4{font-size:19px}.bond-memory p{font-size:14px}.bond-name-form button{font-size:14px}}
[hidden]{display:none!important}

/* Keep the tree's story in a compact strip; the forest receives the saved height. */
@media(min-width:751px){
 .bond-strip{flex:none;grid-template-columns:minmax(160px,.7fr) minmax(220px,1.4fr) auto;padding:8px 20px;gap:14px}
 .bond-identity{gap:10px;min-width:0}
 .bond-seal{font-size:28px;line-height:1}
 .bond-identity .eyebrow{display:block;font-size:9px;line-height:1.2}
 .bond-identity h3{font-size:19px;line-height:1.15;margin:2px 0}
 .bond-hope{font-size:13px;line-height:1.35}
 .bond-moment{font-size:11px;line-height:1.3;margin-top:3px}
 .bond-actions{grid-column:auto;gap:4px;flex-direction:column;align-items:stretch}
 .bond-actions button{font-size:12px;line-height:1.3;padding:6px 10px;min-height:30px}
 .bond-actions .bond-slow{font-size:11px;line-height:1.3;margin:0;gap:5px}
 .bond-slow input{margin:0;min-width:16px;min-height:16px}
 .bond-parent-link{margin-top:2px;font-size:11px;line-height:1.3}
}
@media(min-width:1200px){
 .bond-actions{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:12px}
 .bond-actions:has(#bond-choice-btn:not([hidden])) .bond-slow{grid-column:1/-1;justify-self:end}
}
@media(min-width:751px) and (max-width:900px){
 .bond-strip{grid-template-columns:minmax(140px,.7fr) minmax(180px,1fr);gap:6px 12px;padding:8px 16px}
 .bond-actions{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 12px}
 .bond-actions .bond-slow{margin-left:auto}
}
