/* Home page factory map.  Navy band inside the hero, so text is cream or white.  Motion only when the visitor has not asked for less. */
.hm { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(244, 237, 224, 0.16); color: var(--cream); }
.hm-in { width: min(58rem, calc(100% - 2rem)); margin: 0 auto; }
.hm h2 { color: #fff; margin-top: 0; }
.hm-sub { color: var(--cream); margin-bottom: 0.8rem; font-size: 0.95rem; }
.hm a { color: var(--cream); }
.hm a:hover { color: var(--orange); }
.hm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0 0 1rem; }
.hm-stat { background: rgba(244, 237, 224, 0.07); border-radius: 0.4rem; padding: 0.7rem 0.6rem 0.6rem; border-top: 3px solid var(--cream); min-width: 0; }
.hm-stat.hm-uc { border-top-color: var(--orange); }
.hm-stat.hm-ann { border-top-color: #7f9cc0; }
.hm-num { display: block; font-size: clamp(1.8rem, 8.5vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #fff; }
.hm-uc .hm-num { color: var(--orange); }
.hm-lab { display: block; margin-top: 0.3rem; font-size: 0.7rem; line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase; color: var(--cream); }
.hm-ctl { margin: 0 0 0.8rem; }
.hm-ctl label { color: var(--cream); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.hm-ctl select { margin: 0; min-height: 2.75rem; }
.hm-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hm-tile { cursor: pointer; outline: none; }
.hm-tile rect { fill: #17314f; stroke: transparent; stroke-width: 0.5; transition: fill 0.15s; }
.hm-tile:hover rect { fill: #1f4066; }
.hm-tile:focus-visible rect { stroke: #fff; stroke-width: 0.7; }
.hm-tile[aria-pressed="true"] rect { stroke: var(--orange); stroke-width: 0.7; fill: #1f4066; }
.hm-tile text { fill: var(--cream); font-size: 3.1px; font-weight: 700; paint-order: stroke; stroke: #0B1A2B; stroke-width: 0.55px; stroke-linejoin: round; pointer-events: none; font-family: inherit; }
.hm-empty rect { fill: #10243b; cursor: default; }
.hm-empty text { fill: #7f8fa3; stroke: none; font-weight: 600; }
.hm-d { pointer-events: none; transition: opacity 0.2s; }
.hm-d.uc { fill: var(--orange); }
.hm-d.op { fill: var(--cream); }
.hm-d.ann { fill: #7f9cc0; }
.hm-d.off { opacity: 0.07; animation: none !important; }
.hm-panel { min-height: 5.6rem; margin: 0.8rem 0 0.4rem; padding: 0.8rem 0.9rem; background: rgba(244, 237, 224, 0.07); border-left: 4px solid var(--orange); border-radius: 0.3rem; }
.hm-panel p { margin: 0 0 0.35rem; }
.hm-panel p:last-child { margin-bottom: 0; }
.hm-panel strong { color: #fff; }
.hm-key { font-size: 0.85rem; margin: 0 0 0.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; }
.hm-k { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; margin-left: 0.4rem; }
.hm-k:first-child { margin-left: 0; }
.hm-kuc { background: var(--orange); }
.hm-kann { background: #7f9cc0; }
.hm-kop { background: var(--cream); }
.hm-tbl { margin: 0 0 0.9rem; }
.hm-tbl summary { cursor: pointer; font-weight: 650; min-height: 2.75rem; display: flex; align-items: center; }
.hm-tbl table { color: var(--cream); font-size: 0.88rem; }
.hm-tbl th, .hm-tbl td { border-bottom-color: #2a3d55; }
.hm-tbl td { font-variant-numeric: tabular-nums; }
.hm-tbl .tablewrap { max-height: 22rem; overflow: auto; }
.hm-src { font-size: 0.85rem; margin: 0; color: var(--cream); }
@media (min-width: 40rem) {
  .hm-tile text { font-size: 2.8px; }
}
@media (min-width: 56rem) {
  .hm-in { width: min(66rem, calc(100% - 3rem)); display: grid; grid-template-columns: 16rem minmax(0, 1fr); column-gap: 1.6rem; align-items: start; }
  .hm h2, .hm-sub, .hm-tbl, .hm-src { grid-column: 1 / -1; }
  .hm-stats { grid-column: 1; grid-row: 3; grid-template-columns: 1fr; margin: 0; }
  .hm-ctl { grid-column: 1; grid-row: 4; margin: 0.8rem 0 0; }
  .hm-panel { grid-column: 1; grid-row: 5; margin: 0.8rem 0 0; }
  .hm-key { grid-column: 1; grid-row: 6; margin: 0.7rem 0 0; }
  .hm-svg { grid-column: 2; grid-row: 3 / 8; align-self: center; }
  .hm-tbl { margin-top: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hm-dots { animation: hm-in 0.7s ease-out both; animation-delay: var(--d, 0s); }
  .hm-d.uc { animation: hm-pulse 2.6s ease-in-out infinite; animation-delay: var(--p, 0s); }
}
@keyframes hm-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
