/* The selected Branching Wild design, integrated with the hike's field guide. */
.species-tree-section { max-width: 1440px; margin: auto; padding: 80px 7% 75px; scroll-margin-top: 25px; color: #30432d; }
.species-tree-panel { background: #f7f8f1; border: 1px solid #e2e7d9; border-radius: 7px; overflow: clip; }
.species-tree-topline { display: flex; justify-content: space-between; gap: 16px; padding: 17px 34px; border-bottom: 1px solid #e2e7d9; color: #768468; font-size: 10px; letter-spacing: .12em; }
.species-tree-heading { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 39px 42px 8px; }
.species-tree-heading .eyebrow { font-size: 10px; letter-spacing: .13em; color: #748467; }
.species-tree-heading h2 { font-size: clamp(36px,4.1vw,56px); line-height: 1.1; letter-spacing: -.035em; margin: 15px 0; }
.species-tree-heading h2 em { color: #987c3c; }
.species-tree-heading p { font-size: 14px; line-height: 1.8; color: #748168; }
.species-tree-count { flex-shrink: 0; width: 123px; }
.species-tree-count strong { font-size: 38px; font-weight: 500; letter-spacing: -.04em; }
.species-tree-count small { font-size: 19px; color: #78856b; font-weight: 400; }
.species-tree-count > span { display: block; font-size: 11px; margin-top: 2px; color: #748168; }
.species-tree-count > div { background: #dce2d2; height: 3px; margin-top: 15px; }
.species-tree-count i { display: block; height: 100%; width: 0; background: #d9b44f; }
.species-tree-stage { height: 550px; margin: 20px 43px 9px; position: relative; isolation: isolate; }
.tree-connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.tree-connections path { fill: none; stroke: #c7d1bc; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.tree-connections path.tree-branch-unlocked { stroke: #d3ad43; stroke-width: 1.9; }
.tree-habitat { position: absolute; left: var(--x); top: var(--y); width: 250px; height: 190px; max-width: none; transform: translate(-50%,-58%); pointer-events: none; opacity: .26; mix-blend-mode: multiply; z-index: 0; }
.tree-habitat.tree-habitat-kept { opacity: .64; }
.tree-habitat[data-tree-habitat="duck"] { width: 275px; height: 205px; transform: translate(-50%,-54%); }
.tree-habitat[data-tree-habitat="butterfly"] { transform: translate(-50%,-61%); }
.tree-node, .tree-hub { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-50%); }
.tree-node { display: grid; place-items: center; width: 48px; height: 48px; padding: 4px; background: transparent; z-index: 3; color: #738367; }
.tree-node-disc { display: grid; place-items: center; width: 36px; height: 36px; background: #f7f8f1; border: 1px solid #b2c0a4; border-radius: 50%; position: relative; transition: transform .18s; }
.tree-node-disc > svg { width: 12px; height: 14px; }
.tree-node:hover .tree-node-disc { transform: scale(1.09); }
.tree-node.tree-encounter { width: 70px; height: 70px; }
.tree-encounter .tree-node-disc { width: 62px; height: 62px; border: 1px dashed #aeba99; background: #f7f8f1e8; }
.tree-node.tree-unlocked .tree-node-disc { border: 2px solid #d8b34c; padding: 3px; background: #fffdf5; box-shadow: 0 0 0 5px #e6c6691c; }
.tree-node[aria-pressed="true"] .tree-node-disc { outline: 1px solid #c8ab57; outline-offset: 5px; }
.tree-node-photo { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.tree-node-photo img { height: 100%; width: 100%; object-fit: cover; transform: scale(2.5); }
[data-tree-species="deer"] .tree-node-photo img { transform: scale(1.45); }
.tree-node-check { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; color: #3c4b2f; background: #e8c75c; border: 2px solid #f7f8f1; }
.tree-node-label { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 10px; white-space: nowrap; line-height: 1.3; color: #728068; background: #f7f8f1e6; padding: 2px 4px; border-radius: 3px; }
.tree-encounter .tree-node-label { color: #405439; font-size: 12px; }
.tree-node:not(.tree-encounter) .tree-node-label { visibility: hidden; }
.tree-node[data-tree-species="fox"] .tree-node-label, .tree-node[data-tree-species="heron"] .tree-node-label, .tree-node[data-tree-species="dragonfly"] .tree-node-label { visibility: visible; }
.tree-hub { display: grid; place-items: center; color: #748367; z-index: 2; }
.tree-hub > i { display: block; height: 7px; width: 7px; background: #f7f8f1; border: 1px solid #b7c4a8; transform: rotate(45deg); }
.tree-hub > span { position: absolute; top: 15px; font-size: 9px; letter-spacing: .1em; white-space: nowrap; background: #f7f8f1; padding: 2px 5px; }
.tree-hub.tree-root { width: 46px; height: 46px; border: 1px solid #d3b158; border-radius: 50%; background: #f7f8f1; }
.tree-root > img { width: 20px; height: 27px; object-fit: contain; }
.tree-root > span { top: 49px; color: #5c704b; }
.species-tree-legend { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 34px 22px; font-size: 11px; color: #75846a; }
.species-tree-legend > div { display: flex; gap: 21px; }
.species-tree-legend > div span { display: inline-flex; align-items: center; gap: 8px; }
.species-tree-legend i { width: 9px; height: 9px; border-radius: 50%; }
.tree-legend-unlocked { background: #d5b14a; }
.tree-legend-locked { border: 1px solid #aeba99; }
.tree-review { display: flex; gap: 23px; align-items: center; padding: 26px 34px; border-top: 1px solid #dde4d0; background: #edf0e3; min-height: 153px; }
.tree-review-photo { width: 82px; height: 93px; flex-shrink: 0; border: 1px solid #d1dbc2; border-radius: 4px; overflow: hidden; display: grid; place-items: center; color: #8d9b7d; background: #f7f8f1; }
.tree-review-photo > img { width: 100%; height: 100%; object-fit: cover; }
.tree-review-photo > svg { width: 24px; height: 28px; }
.tree-review-copy { min-width: 0; flex: 1; }
.tree-review-copy > span { font-size: 10px; letter-spacing: .04em; color: #788869; }
.tree-review-copy h3 { font-family: 'DM Serif Display',Georgia,serif; font-weight: 400; font-size: 28px; line-height: 1.2; color: #566940; margin: 7px 0 5px; overflow-wrap: anywhere; }
.tree-review-copy p { font-size: 12px; line-height: 1.7; color: #738565; overflow-wrap: anywhere; }
.tree-review-copy #tree-review-note { margin-top: 5px; color: #7f8d73; max-width: 540px; }
.tree-review-action { background: transparent; border: 1px solid #becbae; border-radius: 4px; color: #526942; font-size: 12px; padding: 13px 16px; flex-shrink: 0; }
.tree-review-action:hover { background: #e3e9d6; }
.tree-review-action[hidden] { display: none; }
.species-tree-footer { display: flex; justify-content: space-between; gap: 24px; font-size: 11px; line-height: 1.7; color: #89967c; padding-top: 20px; }
.species-tree-footer > span:last-child { text-align: right; color: #9aa38f; }
@media (max-width: 1000px) {
  .species-tree-heading { padding: 30px 28px 4px; }
  .species-tree-heading h2 { font-size: 42px; }
  .tree-review { flex-wrap: wrap; gap: 15px; }
  .tree-review-action { margin-left: 97px; }
  .tree-habitat { width: 220px; height: 170px; }
  .tree-habitat[data-tree-habitat="duck"] { width: 235px; height: 175px; }
}
@media (max-width: 600px) {
  .species-tree-section { padding: 55px 5% 50px; scroll-margin-top: 14px; }
  .species-tree-topline { padding: 14px 17px; font-size: 8px; letter-spacing: .08em; }
  .species-tree-topline > span:last-child { max-width: 135px; text-align: right; }
  .species-tree-heading { padding: 27px 19px 0; gap: 14px; align-items: flex-start; }
  .species-tree-heading .eyebrow { font-size: 8px; letter-spacing: .08em; }
  .species-tree-heading h2 { font-size: 33px; margin: 12px 0; max-width: 220px; }
  .species-tree-heading p { font-size: 12px; line-height: 1.7; max-width: 220px; }
  .species-tree-heading p br { display: none; }
  .species-tree-count { width: 81px; padding-top: 21px; }
  .species-tree-count strong { font-size: 28px; }
  .species-tree-count small { font-size: 15px; }
  .species-tree-count > span { font-size: 9px; }
  .species-tree-count > div { margin-top: 12px; }
  .species-tree-stage { height: 760px; margin: 18px 24px 0; }
  .tree-node { width: 44px; height: 44px; padding: 4px; }
  .tree-node.tree-encounter { width: 56px; height: 56px; }
  .tree-encounter .tree-node-disc { width: 48px; height: 48px; }
  .tree-encounter .tree-node-label { font-size: 11px; }
  .tree-node:not(.tree-encounter) .tree-node-label { visibility: hidden; }
  .tree-habitat { width: 150px; height: 117px; transform: translate(-50%,-58%); }
  .tree-habitat[data-tree-habitat="duck"] { width: 155px; height: 120px; }
  .tree-hub > span { font-size: 8px; letter-spacing: .05em; }
  .tree-hub[data-tree-hub="Amphibians"] > span { top: -20px; }
  .species-tree-legend { flex-wrap: wrap; padding: 18px 17px; font-size: 10px; gap: 11px; }
  .species-tree-legend > span { font-size: 10px; }
  .tree-review { display: grid; grid-template-columns: 63px minmax(0,1fr); padding: 21px 17px; gap: 12px; align-items: start; }
  .tree-review-photo { width: 63px; height: 79px; }
  .tree-review-copy > span { font-size: 9px; }
  .tree-review-copy h3 { font-size: 25px; }
  .tree-review-copy p { font-size: 11px; }
  .tree-review-action { grid-column: 1 / -1; margin: 3px 0 0; min-height: 44px; width: 100%; }
  .species-tree-footer { display: block; font-size: 10px; }
  .species-tree-footer > span { display: block; }
  .species-tree-footer > span:last-child { text-align: left; margin-top: 7px; }
}
.reduce-motion .tree-node-disc { transition: none; }
@media (prefers-reduced-motion: reduce) { .tree-node-disc { transition: none; } }
