.tm-nav{display:flex;gap:1rem;flex-wrap:wrap;margin:1rem 0}.tm-nav a,.tm-section a{color:#abedc7;text-underline-offset:.2em}.tm-section{margin:24px 0;scroll-margin-top:1rem}.tm-section h2{font:300 clamp(1.6rem,4vw,2.65rem)/1.12 Inter,sans-serif;letter-spacing:-.04em;margin:.35em 0}.tm-section p{max-width:76ch;line-height:1.55}.tm-section label,.tm-section small{display:block;margin:.8rem 0 .4rem}.tm-section input,.tm-section select,.tm-section textarea{display:block;width:100%;max-width:29rem;min-height:44px;margin:.4rem 0 .8rem;padding:.65rem;color:#f4fff9;background:#102e32;border:1px solid #629487;border-radius:.6rem;font:inherit}.tm-section textarea{height:10rem}.tm-section [hidden]{display:none!important}.tm-section summary{cursor:pointer;color:#b4eecb}.tm-section summary:focus-visible,.tm-section :focus-visible,.tm-nav :focus-visible{outline:3px solid #ffcf83;outline-offset:3px}.tm-inputs,#tm-stories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem 1rem}.tm-section .tm-stat{font-size:clamp(1.18rem,2.3vw,1.75rem);color:#c1f5d8}.tm-section button{margin:.4rem .4rem .4rem 0;white-space:normal}.tm-section details{padding:.6rem 0}.tm-weather,#tm-stories article{display:block;border-top:1px solid #39645a;padding:1rem 0}.tm-weather span,#tm-stories small{display:block;margin:.3rem 0}.tm-section #tm-answer{white-space:pre-wrap;line-height:1.55}.tm-section a{overflow-wrap:anywhere}@media(max-width:650px){.tm-inputs,#tm-stories{grid-template-columns:1fr}}

#tm-picker{position:relative;max-width:29rem;margin:.4rem 0 1.2rem;z-index:2}
.tm-field{position:relative;color:#b0ded1}
.tm-field i{position:absolute;left:1rem;top:50%;width:14px;height:14px;border:1.8px solid currentColor;border-radius:50%;transform:translateY(-62%);pointer-events:none}
.tm-field i:after{content:"";position:absolute;width:7px;height:1.8px;background:currentColor;transform:rotate(45deg);left:9px;top:11px}
.tm-field span{position:absolute;right:1rem;top:50%;transform:translateY(-58%);pointer-events:none}
.tm-section #tm-query{box-sizing:border-box;font-size:16px;width:100%;margin:0;padding:.8rem 2.6rem;height:3.2rem;background:#102f35;border-color:#649d91}
#tm-query::placeholder{color:#b6cdc8;opacity:1}
#tm-popup{position:absolute;inset:calc(100% + .5rem) 0 auto;background:#0a2a30;border:1px solid #649d91;border-radius:.8rem;box-shadow:0 15px 32px #00141780;overflow:hidden}
#tm-matches{margin:0;padding:.25rem;max-height:min(15rem,36dvh);overflow:auto;overscroll-behavior:contain;list-style:none}
#tm-matches li{cursor:pointer;display:flex;min-height:44px;align-items:center;justify-content:space-between;gap:.8rem;padding:.45rem .75rem;border-radius:.5rem;line-height:1.35;color:#effcf7}
#tm-matches li:hover,#tm-matches li.is-active{background:#20534e}
#tm-matches [aria-selected=true]{font-weight:700}
#tm-matches small{display:inline;margin:0;color:#add2c8;font:600 .68rem/1.3 ui-monospace,monospace;letter-spacing:.09em}
#tm-empty{padding:.75rem 1rem;margin:0}
.tm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.tm-atmos,.tm-weather{isolation:isolate;overflow:hidden;position:relative;border-radius:18px;border:1px solid #567a81;background:#091a2a;color:#fff}
.tm-atmos{margin:1.4rem 0 .5rem;min-height:200px;display:flex;align-items:center}
.tm-sky,.tm-weather img{position:absolute;inset:0;width:100%;height:100%;z-index:-2;pointer-events:none}
.tm-sky{background:url('/static/tm-sunrise.jpg') 70% 42% / cover no-repeat;animation:tm-sky-drift 26s ease-in-out infinite alternate;transform:scale(1.06)}
@keyframes tm-sky-drift{from{transform:scale(1.06) translate(-1.8%,1%)}to{transform:scale(1.16) translate(1.8%,-1%)}}
.tm-still .tm-sky{animation-play-state:paused}
.tm-atmos:before,.tm-weather:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#091b2af5 0%,#102432db 30%,#101b2240 68%,transparent)}
.tm-atmos-copy,.tm-weather-copy{padding:clamp(1.5rem,4vw,3.2rem)}
.tm-atmos-copy h3,.tm-weather-copy h2{font:300 clamp(2.2rem,4.2vw,4.2rem)/1.03 Inter,system-ui,sans-serif;letter-spacing:-.055em;color:white;margin:0}
.tm-atmos-copy p{max-width:32ch;margin:.65rem 0 1rem;color:#e7f0f2}
.tm-atmos #tm-ask,.tm-weather .tm-weather-link{display:inline-flex;align-items:center;gap:.8rem;min-height:44px;margin:0;padding:.55rem 1.08rem;border:1px solid #ffffff88;border-radius:100px;background:#ecf8f2;color:#10282b;font:650 .9rem/1.4 system-ui,sans-serif;text-decoration:none}
.tm-atmos #tm-motion{position:absolute;bottom:.75rem;right:.75rem;margin:0;padding:0;width:44px;height:44px;border:1px solid #d1e7e0aa;border-radius:50%;background:#091b2acc;color:white;font-size:1rem}
a.tm-weather{display:flex;align-items:center;min-height:clamp(18rem,29vw,24rem);margin:1.5rem 0;text-decoration:none;color:white;padding:0}
.tm-weather img{display:block;object-fit:cover;object-position:50% 42%;transition:transform .8s ease-out}
.tm-weather-copy p{margin:.65rem 0 1.4rem;color:#f6faf7;font-size:clamp(1.1rem,2vw,1.65rem);line-height:1.25}
.tm-weather small{position:absolute;right:.8rem;bottom:.65rem;padding:.25rem .55rem;border-radius:.3rem;background:#071723c9;color:#eef6f7;font:.68rem/1.4 system-ui,sans-serif}
a.tm-weather:focus-visible{outline:3px solid #ffcf83;outline-offset:3px}
@media(hover:hover){a.tm-weather:hover img{transform:scale(1.035)}}
@media(prefers-reduced-motion:reduce){.tm-weather img{transition:none}a.tm-weather:hover img{transform:none}}
@media(max-width:650px){
 .tm-atmos,.tm-weather{border-radius:15px}
 .tm-atmos{min-height:240px;align-items:end}
 .tm-sky{background-position:65% 42%}
 .tm-atmos-copy{padding:3.2rem 1.1rem 1.2rem}
 .tm-atmos-copy p{max-width:25ch}
 .tm-atmos:before,.tm-weather:before{background:linear-gradient(0deg,#071d2bf5 5%,#0c202fca 42%,#0c192d12 92%)}
 a.tm-weather{min-height:21rem;align-items:end}
 .tm-weather img{object-position:48% 27%}
 .tm-weather-copy{padding:1.4rem 1.2rem 2.7rem}
 .tm-weather small{font-size:.63rem}
}
/* Draw the control icons consistently across platform fonts. */
.tm-weather-link b,.tm-atmos #tm-ask span{position:relative;display:inline-block;width:.8rem;height:.8rem;font-size:0}
.tm-weather-link b:before,.tm-atmos #tm-ask span:before{content:"";position:absolute;right:0;top:0;border-top:2px solid;border-right:2px solid;width:.52rem;height:.52rem}
.tm-weather-link b:after,.tm-atmos #tm-ask span:after{content:"";position:absolute;right:1px;top:1px;height:2px;width:.8rem;background:currentColor;transform-origin:right center;transform:rotate(-45deg)}
.tm-atmos #tm-motion{font-size:0;display:grid;place-items:center}
#tm-motion:before{content:"";width:5px;height:12px;border-left:2px solid;border-right:2px solid;box-sizing:content-box}
.tm-still #tm-motion:before{width:0;height:0;border:0;border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:11px solid white}

#tm-share-panel{margin:.75rem 0 0;padding:clamp(1rem,3vw,1.6rem);border:1px solid #649487;border-radius:1rem;background:#0b3337;color:#effaf6}
#tm-share-heading{margin:0 0 .7rem;font:400 1.5rem/1.2 Inter,system-ui,sans-serif}
#tm-share-panel textarea{box-sizing:border-box;max-width:100%;width:100%;height:9rem;resize:vertical;font:inherit;line-height:1.5}
#tm-share-status:not(:empty){color:#c1f5d8;margin:.7rem 0}
#tm-animal-card{display:block;width:100%;max-width:960px;height:auto;border-radius:.65rem;margin:1rem 0}
#tm-share-panel .tm-share-bar,#tm-share-panel .tm-networks{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin:.75rem 0}
#tm-share-panel .tm-networks a{display:inline-flex;align-items:center;min-height:44px;padding:0 .9rem;border:1px solid #83aa9d;border-radius:1.5rem;color:#e0f8e5;text-decoration:none;font-weight:600}
#tm-share-panel .tm-networks a:hover{text-decoration:underline}
#tm-share-panel [hidden]{display:none}
#tm-share-panel details{margin-top:1rem}

#tm-result{scroll-margin-top:clamp(4.5rem,9vh,7rem)}

/* Tao footprint validation, 2026-12-01 */
.tm-section .tm-input-hint{margin:.25rem 0 .4rem;color:#c5ded5;font-size:.85rem;line-height:1.45}
.tm-section .tm-input-error{margin:.25rem 0 .6rem;color:#ffd9ad;font-size:.9rem;line-height:1.45}
.tm-section input[aria-invalid="true"]{border:2px solid #ffc482}
