/* 508 Impact visual layer (tools/visual.py): 21:9 image heroes, captioned figures, image rows, full-screen viewer. Scoped to main.im */
.im-hv{position:relative;padding:0;overflow:hidden;background:#0B1F3A}
.im-hv-fig{margin:0;width:100%;aspect-ratio:21/9;position:relative;background:#13305A}
.im-hv-fig img{display:block;width:100%;height:100%;object-fit:cover}
.im-hv-txt{padding:26px 0 34px;background:linear-gradient(160deg,#0B1F3A 0%,#13305A 100%)}
.im-hv-txt h1{font-size:clamp(32px,7.5vw,44px)}
@media (min-width:900px){
 .im-hv-fig{min-height:520px;max-height:82vh}
 .im-hv-fig::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,31,58,.95) 0%,rgba(11,31,58,.84) 34%,rgba(11,31,58,.35) 62%,rgba(11,31,58,0) 82%),linear-gradient(0deg,rgba(11,31,58,.55),transparent 30%)}
 .im-hv-txt{position:absolute;inset:0;display:flex;align-items:center;padding:0;background:none}
 .im-hv-txt .im-wrap{width:100%}
 .im-hv-txt h1{font-size:clamp(40px,4.4vw,62px);max-width:640px;text-shadow:0 2px 18px rgba(0,0,0,.35)}
 .im-hv-txt .im-lead{max-width:560px;text-shadow:0 1px 10px rgba(0,0,0,.4)}
}
.im-zoom{all:unset;display:block;cursor:zoom-in;border-radius:inherit;overflow:hidden;width:100%}
.im-zoom:focus-visible{outline:3px solid #2563EB;outline-offset:3px}
.im-zoom img{display:block;width:100%;height:auto;transition:transform .5s ease}
.st-fig .im-zoom img{height:auto}
.im-zoom:hover img{transform:scale(1.03)}
.im-fig{margin:0;border-radius:18px;overflow:hidden;background:#fff;border:1px solid #EAE3D3;box-shadow:0 14px 36px rgba(11,31,58,.10)}
.im-fig img{aspect-ratio:4/3;object-fit:cover}
.im-fig figcaption{padding:10px 14px 12px;font-size:13.5px;line-height:1.45;color:#4B5563;border-top:3px solid #D4A84B}
.im-fig-wide img{aspect-ratio:16/9}
.im-row{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:36px;align-items:center;margin:0 0 46px}
.im-row-flip .im-row-f{order:-1}
.im-row-flip{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}
.im-row-t>:first-child{margin-top:0}
@media (max-width:860px){.im-row,.im-row-flip{grid-template-columns:1fr;gap:18px}.im-row-f,.im-row-flip .im-row-f{order:-1}}
.im-thumbs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.im-thumbs .im-fig figcaption{font-size:12.5px;padding:8px 10px}
.im-band{margin:0;position:relative;background:#0B1F3A}
.im-band .im-zoom{border-radius:0}
.im-band img{aspect-ratio:21/9;object-fit:cover;max-height:560px}
.im-band:hover img{transform:none}
.im-band figcaption{position:absolute;left:0;right:0;bottom:0;padding:40px 0 14px;font-size:13px;color:#F3F4F6;background:linear-gradient(0deg,rgba(11,31,58,.85),transparent);pointer-events:none}
.im-ico{color:#8A6A22;flex:none}
.im-flow-i li{display:flex;gap:14px;align-items:flex-start}
.im-flow-i .im-ico{background:#FFF7E2;border:1px solid #EFD9A0;border-radius:12px;padding:8px;width:46px;height:46px}
.im-flow-i li>div{display:flex;flex-direction:column}
@media (prefers-reduced-motion:reduce){.im-zoom img{transition:none}.im-zoom:hover img{transform:none}}
.im-toc-v{position:static;display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:0 0 34px}
.im-toc-v h2{margin:0;font-size:20px}
.im-toc-v ol{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;counter-reset:t}
.im-toc-v li{counter-increment:t}
.im-toc-v a{display:inline-block;padding:7px 14px;border-radius:999px;background:#FFF7E2;border:1px solid #EFD9A0;color:#0B1F3A;text-decoration:none;font-size:14px;font-weight:600}
.im-toc-v a:before{content:counter(t) ". ";color:#8A6A22}
.im-guide-v{background:none;border:0;padding:0;margin:0 0 10px}
.im-guide-v .im-row{margin-bottom:56px;align-items:start}
.im-guide-v .im-row-f{position:sticky;top:100px}
@media (max-width:860px){.im-guide-v .im-row-f{position:static}}
.im-flow-i{grid-template-columns:1fr;gap:16px;margin:18px 0 0}
.im-flow-i li{padding:16px 16px 16px 20px}
.im-flow-i b{margin-top:0}
/* v3 2026-11-13: shared viewer with previous/next */
.im-lb{font-family:Inter,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;border:0;padding:0;margin:0;max-width:100vw;max-height:100vh;width:100vw;height:100vh;background:rgba(5,12,24,.95);color:#fff}
.im-lb::backdrop{background:rgba(5,12,24,.95)}
.im-lb-pic{position:absolute;inset:56px 70px 64px;display:flex;align-items:center;justify-content:center}
.im-lb-pic img,.im-lb-pic svg{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:6px}
.im-lb-pic svg{width:100%;height:100%;background:#F6F1E4}
.im-lb button{position:absolute;width:48px;height:48px;border-radius:999px;border:2px solid #D4A84B;background:#0B1F3A;color:#fff;font-size:28px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.im-lb button:hover{background:#13305A}.im-lb button:focus-visible{outline:3px solid #fff;outline-offset:2px}
.im-lb-x{top:12px;right:14px}.im-lb-prev{left:12px;top:50%;transform:translateY(-50%)}.im-lb-next{right:12px;top:50%;transform:translateY(-50%)}
.im-lb button[hidden]{display:none}
.im-lb-cap{position:absolute;left:0;right:0;bottom:12px;margin:0;text-align:center;color:#E5E7EB;font-size:14px;padding:0 80px;line-height:1.45}
.im-lb-n{position:absolute;top:22px;left:18px;font-size:13px;color:#D4A84B;font-weight:700}
@media (max-width:700px){.im-lb-pic{inset:64px 8px 86px}.im-lb-prev,.im-lb-next{top:auto;bottom:40px;transform:none}.im-lb-cap{padding:0 64px;bottom:14px;font-size:12.5px}}
/* place photos on focus cards */
.im-card-photo{padding-top:0;overflow:hidden}
.im-card-ph{margin:-1px -1px 14px;position:relative}
.im-card .im-card-ph{margin:0 -20px 14px}
.im-card-ph .im-zoom img{aspect-ratio:16/9;object-fit:cover;width:100%}
.im-card-ph figcaption{font-size:11.5px;line-height:1.4;color:#6B7280;padding:6px 20px 0}
.im-card-ph figcaption a{color:#6B5A2E}
/* stories: picture + video */
.st-fig{margin:0}
.st-fig .im-zoom img{aspect-ratio:16/10;object-fit:cover;width:100%}
.im-story .st-fig figcaption{font-size:11.5px;line-height:1.4;color:#4B5563;background:#F8F5EE;padding:6px 12px 7px;border-bottom:1px solid #EFE6D2}
.im-story .st-fig figcaption a{color:#6B5A2E}
.st-vid{margin:12px 0 4px}
.st-yt{display:grid;grid-template-columns:40px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;width:100%;min-height:60px;padding:10px 12px;border-radius:12px;border:1px solid #E5DCC6;background:#F8F5EE;text-align:left;cursor:pointer;font:inherit;color:#0B1F3A}
.st-yt:hover{border-color:#D4A84B;background:#fff}.st-yt:focus-visible{outline:3px solid #D4A84B;outline-offset:2px}
.st-yt .al-play{grid-row:1/3}
.st-yt-t{font-weight:700;font-size:14px;line-height:1.3}.st-yt-m{font-size:12px;color:#6B5A2E}
.st-yt[hidden]{display:none}
.st-player{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#000}
.st-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
/* hobby farm slider */
.hf-slider{position:relative;border-radius:20px;background:#FBF8F1;border:1px solid #E6D9BC;box-shadow:0 18px 44px rgba(11,31,58,.10);overflow:hidden}
.hf-slider:focus-visible{outline:3px solid #6B4423;outline-offset:3px}
.hf-stage{position:relative;aspect-ratio:16/9;overflow:hidden}
.hf-slide{position:absolute;inset:0;overflow:auto;padding:26px 30px}
.hf-slide[hidden]{display:none}
.hf-s h3{margin:0 0 12px;color:#0B1F3A;font-size:22px}
.hf-prin{display:grid;grid-template-columns:1fr 1fr;gap:10px 26px;margin:0;padding-left:22px}
.hf-prin li{font-size:15px;line-height:1.5}.hf-prin b{color:#6B4423}
.hf-src{font-size:12.5px;color:#6B7280;margin-top:12px}
.hf-s-plan{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px;height:100%;align-items:start}
.hf-plan-wrap{height:100%;display:flex;align-items:center;justify-content:center;min-height:0}
.hf-planzoom{cursor:zoom-in;height:100%;width:auto !important;max-width:100%;display:flex !important;align-items:center}.hf-planzoom svg{display:block;height:100%;width:auto;max-width:100%}
.hf-plan{background:#F6F1E4;border-radius:10px}
.hf-dim{font-size:13px;color:#6B5A2E;margin:0 0 8px}
.hf-notes{margin:0 0 10px;padding-left:18px;font-size:14px;line-height:1.5}
.hf-legend{list-style:none;padding:0;margin:0 0 12px;columns:2;column-gap:14px;font-size:12.5px;line-height:1.35}
.hf-legend li{margin:0 0 5px;break-inside:avoid;display:flex;gap:6px;align-items:flex-start}
.hf-sw{display:inline-block;flex:none;width:13px;height:13px;border:1.5px solid;border-radius:3px;vertical-align:-2px;margin-right:4px}
.im-btn-sm{padding:9px 16px;font-size:14px;min-height:40px}
.hf-tot{display:flex;gap:18px;flex-wrap:wrap;margin:0 0 10px;font-size:15px}.hf-tot b{color:#6B4423;font-size:18px}
.hf-tablewrap{overflow-x:auto}
.hf-table{width:100%;border-collapse:collapse;font-size:13px;background:#fff;border-radius:10px;overflow:hidden}
.hf-table caption{text-align:left;font-weight:700;color:#0B1F3A;padding:0 0 6px}
.hf-table th,.hf-table td{padding:6px 8px;border-bottom:1px solid #EFE6D2;text-align:left;vertical-align:top}
.hf-table thead th{background:#6B4423;color:#fff;font-weight:600;font-size:12.5px}
.hf-table td.n{text-align:right;white-space:nowrap}.hf-table tfoot th,.hf-table tfoot td{font-weight:700;background:#FFF7E2}
.hf-table small{color:#6B7280}.hf-table a{color:#6B4423}
.hf-table-sm{max-width:640px;margin-top:10px}
.hf-s-chart .hf-chart{display:block;width:100%;max-width:640px;height:auto}
.hf-chart-leg{font-size:13px;display:flex;gap:6px 16px;flex-wrap:wrap;align-items:center;margin:4px 0}
.hf-bar{display:flex;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid #E6D9BC;background:#F3EBDB}
.hf-arrow{width:48px;height:48px;border-radius:999px;border:0;background:#6B4423;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(107,68,35,.35);flex:none}
.hf-arrow:hover{background:#8A5A30}.hf-arrow:focus-visible{outline:3px solid #0B1F3A;outline-offset:2px}
.hf-arrow svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.hf-dots{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;flex:1}
.hf-dot{width:12px;height:12px;border-radius:999px;border:2px solid #6B4423;background:transparent;padding:0;cursor:pointer}
.hf-dot[aria-current="true"]{background:#6B4423}
.hf-count{font-size:13px;color:#6B4423;font-weight:700;min-width:44px;text-align:center}
.hf-fs{display:inline-flex;align-items:center;gap:6px;border:1px solid #6B4423;background:#fff;color:#6B4423;border-radius:999px;padding:8px 14px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.hf-fs svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2}
.hf-slider:fullscreen{border-radius:0;display:flex;flex-direction:column;background:#FBF8F1}
.hf-slider:fullscreen .hf-stage{flex:1;aspect-ratio:auto}
@media (max-width:860px){
 .hf-stage{aspect-ratio:auto;min-height:0}
 .hf-planzoom{height:auto;width:100% !important}.hf-planzoom svg{width:100%;height:auto}
 .hf-slide{position:relative;inset:auto;padding:18px 16px;overflow:visible}
 .hf-prin{grid-template-columns:1fr}
 .hf-s-plan{grid-template-columns:1fr}
 .hf-legend{columns:1}
 .hf-fs span{display:none}
 .hf-bar{gap:8px;padding:10px}
}
/* alerts: live feeds */
.al-maptools{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;margin:12px 0 18px;font-size:14px}
.al-livegrp h3{font-size:17px;margin:18px 0 10px;color:#0B1F3A}
.al-live-dot{display:inline-block;width:8px;height:8px;border-radius:999px;background:#DC2626;margin-right:6px;vertical-align:1px;box-shadow:0 0 0 3px rgba(220,38,38,.18)}
@media (prefers-reduced-motion:no-preference){.al-live-dot{animation:al-pulse 1.8s ease-in-out infinite}}
@keyframes al-pulse{50%{box-shadow:0 0 0 6px rgba(220,38,38,0)}}

/* hobby farm v2 (2026-11-13): aerial picture under the download button, site guide, location plan, ownership, roadmap, genetics */
.hf-plan-side{min-height:0}
.hf-aerial{margin:12px 0 0;max-width:250px}
.hf-aerial .hf-aerialzoom{display:inline-block;width:auto;max-width:100%;line-height:0;border-radius:12px;box-shadow:0 8px 22px rgba(11,31,58,.16)}
.hf-aerial img{border-radius:12px;display:block;width:100%;height:auto}
.hf-aerial figcaption{font-size:12.5px;color:#6B5A2E;margin-top:6px}
.hf-aerial-ph svg{display:block;width:100%;height:auto;border-radius:12px;border:1px dashed #A9C77F}
.hf-slider:fullscreen .hf-aerial{max-width:min(40vw,560px)}
.hf-slider:fullscreen .hf-aerial img{max-height:32vh;width:auto;max-width:100%;object-fit:cover}
.hf-slider:fullscreen .hf-s h3{font-size:26px}
.hf-sgl{display:grid;grid-template-columns:1fr 1fr;gap:10px 26px;margin:0;padding-left:22px}
.hf-sgl li{font-size:14px;line-height:1.5}.hf-sgl b{color:#6B4423}.hf-sgl a,.hf-src a{color:#6B4423}
.hf-check td,.hf-check th{padding:9px 8px}
.hf-box{display:inline-block;flex:none;width:14px;height:14px;border:2px solid #6B4423;border-radius:3px;margin-right:8px;vertical-align:-2px;background:#fff}
.hf-s-loc .hf-loc-wrap{max-width:640px}.hf-loc{display:block;width:100%;height:auto;border-radius:12px}
.hf-s-loc{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:22px;align-items:start}.hf-s-loc h3{grid-column:1/-1;margin-bottom:0}
.hf-locl{list-style:none;margin:0;padding:0;font-size:13.5px;line-height:1.45}.hf-locl li{display:flex;gap:9px;margin:0 0 8px}
.hf-num{flex:none;width:22px;height:22px;border-radius:999px;background:#0B1F3A;color:#fff;text-align:center;font-size:12px;line-height:22px;font-weight:700}
.hf-lead{font-size:16px;line-height:1.55;margin:0 0 12px;color:#1F2A37}
.hf-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 12px}
.hf-card{background:#fff;border:1px solid #E6D9BC;border-radius:14px;padding:14px 16px;box-shadow:0 6px 16px rgba(11,31,58,.06)}
.hf-card h4{margin:0 0 6px;color:#6B4423;font-size:16px}.hf-card p{margin:0;font-size:14px;line-height:1.55}
.hf-small{font-size:13px;color:#4B5563}
.hf-warn{border-left:4px solid #D4A84B;background:#FFF7E2;padding:10px 14px;border-radius:0 10px 10px 0;font-size:14px;margin:0 0 14px}
.hf-cta{display:flex;gap:12px;flex-wrap:wrap;margin:0}
.hf-time{display:block;width:100%;max-width:720px;height:auto;margin:0 0 10px}
.hf-stgs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.hf-stg{background:#fff;border:1px solid #E6D9BC;border-radius:12px;padding:12px 14px}
.hf-stg h4{margin:0 0 2px;color:#0B1F3A;font-size:15px}.hf-when{margin:0 0 6px;font-size:12px;color:#6B7280}.hf-stg p{font-size:13.5px;margin:0 0 6px}
.hf-ck{list-style:none;margin:0;padding:0;font-size:13px;line-height:1.4}.hf-ck li{display:flex;margin:0 0 6px}
.hf-chain{display:block;width:100%;max-width:640px;height:auto;margin:0 0 10px}
.hf-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px 26px}.hf-cols h4{margin:0 0 6px;color:#6B4423;font-size:17px}
.hf-gl{margin:0;padding-left:18px;font-size:13.5px;line-height:1.5}.hf-gl li{margin:0 0 7px}.hf-gl b{color:#0B1F3A}
@media (max-width:860px){
 .hf-sgl,.hf-cards,.hf-cols{grid-template-columns:1fr}
 .hf-s-loc{grid-template-columns:1fr}
 .hf-stgs{grid-template-columns:1fr}
 .hf-aerial{max-width:none}
}

/* mobile-gate 20261114c impact visuals: 14px+ source/credit text; slider dots keep their 12px look inside a 44px hit box */
@media (max-width:1024px){
.hf-src,.st-yt-m{font-size:14px}
.hf-dot{position:relative;width:44px;height:44px;margin:-16px;border:0;background:none}
.hf-dot::after{content:"";position:absolute;left:16px;top:16px;width:12px;height:12px;box-sizing:border-box;border-radius:999px;border:2px solid #6B4423;background:transparent}
.hf-dot[aria-current="true"]::after{background:#6B4423}
}
@media (min-width:900px){[dir=rtl] .im-hv-fig::after{background:linear-gradient(270deg,rgba(11,31,58,.95) 0%,rgba(11,31,58,.84) 34%,rgba(11,31,58,.35) 62%,rgba(11,31,58,0) 82%),linear-gradient(0deg,rgba(11,31,58,.55),transparent 30%)}}
