/* Staged only: Kyle's five homepage corrections, 2026-11-08.
   Desktop fine-pointer layouts >=1280px are excluded. */
@media (max-width:1279px), (hover:none) and (pointer:coarse) and (max-width:1366px) {
 /* No viewport-driven flex expansion: category links stay in ordinary flow. */
 .fold {min-height:0}
 .fold>.hero {flex:0 0 auto}
 /* Provisional: preserved pre-seven desktop legal/body ratio 11/12.5.
    Current live desktop ratio is 1.0; see staging report before approval. */
 footer.site-foot .foot-legal,
 footer.site-foot .foot-legal .tm-note {font-size:13.2px!important}
}
@media (min-width:768px) and (min-height:501px) and (max-width:1279px),
       (min-width:768px) and (min-height:501px) and (hover:none) and (pointer:coarse) and (max-width:1366px) {
 /* Full visible-height band; proportional map uses maximum contained size.
    52px retains the existing 8px gap + 44px directory disclosure. */
 .wm-band {min-height:100dvh;padding:0;display:flex;flex-direction:column;justify-content:center}
 .wm-band>.wm {width:100%;max-width:min(100%,calc((100dvh - 52px)*1.4893617021));margin-inline:auto;flex:none}
 .wm-band>.wm-list {width:100%;flex:none}
}
@media (max-width:767px), (min-width:768px) and (max-width:999px) and (max-height:500px) and (orientation:landscape) {
 .fold .hero-icon.hi {width:170px;max-width:170px;translate:0 0}
 .fold .hero-grid {gap:16px}
}
@media (min-width:768px) and (max-width:999px) and (max-height:500px) and (orientation:landscape) {
 .fold .hero-grid {grid-template-columns:minmax(0,1fr) 170px}
}
/* Mobile's separate template omitted desktop's neutral art-n paint state.
   Match the default and selected-tool/region-panel states without touching JS.
   #CFCBE0 tool rings are retained: they already match desktop and iPad. */
@media (max-width:767px) {
 .wm-band .wm-m .region>path:nth-of-type(2) {fill:var(--map-fill,#E4E0EC);stroke:var(--map-stroke,#8A8597)}
 .wm-band .wm-m .region>path:nth-of-type(3) {fill:var(--map-pattern)}
 .wm-m .region[data-cat=chat] {--map-pattern:url(#pt-chat-n)}
 .wm-m .region[data-cat=image] {--map-pattern:url(#pt-image-n)}
 .wm-m .region[data-cat=video] {--map-pattern:url(#pt-video-n)}
 .wm-m .region[data-cat=voice] {--map-pattern:url(#pt-voice-n)}
 .wm-m .region[data-cat=code] {--map-pattern:url(#pt-code-n)}
 .wm-m .region[data-cat=agents] {--map-pattern:url(#pt-agents-n)}
 .wm-band:not(:has(.wm-panel:not([hidden]))):not(:has(.pin.sel)) .wm-m .region[data-cat=chat] {--map-fill:#EFE8FC;--map-stroke:#7B4FD6;--map-pattern:url(#pt-chat)}
 .wm-band:not(:has(.wm-panel:not([hidden]))) .wm-m .region[data-cat=chat]:has(.pin.sel),
 .wm-band:has(.wm-panel:not([hidden])[data-cat=chat]) .wm-m .region[data-cat=chat] {--map-fill:#EFE8FC;--map-stroke:#7B4FD6;--map-pattern:url(#pt-chat)}
 .wm-band:not(:has(.wm-panel:not([hidden]))) .wm-m .region[data-cat=image]:has(.pin.sel),
 .wm-band:has(.wm-panel:not([hidden])[data-cat=image]) .wm-m .region[data-cat=image] {--map-fill:#FCE7F2;--map-stroke:#D1338F;--map-pattern:url(#pt-image)}
 .wm-band:not(:has(.wm-panel:not([hidden]))) .wm-m .region[data-cat=video]:has(.pin.sel),
 .wm-band:has(.wm-panel:not([hidden])[data-cat=video]) .wm-m .region[data-cat=video] {--map-fill:#FDEAE5;--map-stroke:#E8512F;--map-pattern:url(#pt-video)}
 .wm-band:not(:has(.wm-panel:not([hidden]))) .wm-m .region[data-cat=voice]:has(.pin.sel),
 .wm-band:has(.wm-panel:not([hidden])[data-cat=voice]) .wm-m .region[data-cat=voice] {--map-fill:#FDF3DC;--map-stroke:#F2B33D;--map-pattern:url(#pt-voice)}
 .wm-band:not(:has(.wm-panel:not([hidden]))) .wm-m .region[data-cat=code]:has(.pin.sel),
 .wm-band:has(.wm-panel:not([hidden])[data-cat=code]) .wm-m .region[data-cat=code] {--map-fill:#DDF5F2;--map-stroke:#12A195;--map-pattern:url(#pt-code)}
 .wm-band:not(:has(.wm-panel:not([hidden]))) .wm-m .region[data-cat=agents]:has(.pin.sel),
 .wm-band:has(.wm-panel:not([hidden])[data-cat=agents]) .wm-m .region[data-cat=agents] {--map-fill:#E3ECFD;--map-stroke:#2F6FEB;--map-pattern:url(#pt-agents)}
}
