/* tell-territory-20260926.css — New Equipment territory page (ADDITIVE ONLY)
   Uses the existing design tokens from tellequipment-8k.css — no redesign. 2026-09-26 */
.terr-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }

.terr-selector { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.terr-btn {
  appearance: none; cursor: pointer; border: 1px solid var(--line-dark, #2a3d52);
  background: transparent; color: var(--paper, #f6f7f5);
  font-family: var(--t-body, system-ui, sans-serif); font-size: 13.5px; letter-spacing: .02em;
  padding: 8px 14px; border-radius: 999px; transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.terr-btn:hover { border-color: var(--red, #af1314); }
.terr-btn.on { background: var(--red, #af1314); border-color: var(--red, #af1314); color: #fff; }
.terr-btn[aria-pressed] { min-height: 36px; }

.terr-map { position: relative; border: 1px solid var(--line-dark, #2a3d52); border-radius: 14px; background: linear-gradient(180deg, #071638 0%, #09225c 100%); overflow: hidden; }
.terr-map svg { display: block; width: 100%; height: auto; touch-action: manipulation; }
.terr-county { fill: #10275e; stroke: #23375f; stroke-width: .7; transition: fill .15s var(--ease); outline: none; }
.terr-county[data-on="1"] { fill: var(--red, #af1314); }
.terr-county[data-on="1"][data-count="1"] { fill: #7c2d10; }
.terr-county[data-on="0"] { fill: #0c1f4d; }
.terr-county:hover, .terr-county:focus-visible { fill: var(--red-dark, #8a0f10) !important; stroke: #fff; }
.terr-county.hit { stroke: #fff; stroke-width: 1.6; }
.terr-tx-state { fill: #0c1f4d; stroke: #23375f; stroke-width: 1; }
.terr-tx-state[data-on="1"] { fill: var(--red, #af1314); }
.terr-tx-state:hover { stroke: #fff; }
.terr-altoz-circle { fill: rgba(255, 214, 122, .22); stroke: #ffd67a; stroke-width: 1; stroke-dasharray: 4 3; transition: opacity .2s; }
.terr-pin { fill: #ffd67a; }
.terr-pin-ring { fill: none; stroke: rgba(255, 214, 122, .55); stroke-width: 1.4; }

.terr-tip {
  position: absolute; pointer-events: none; opacity: 0; transition: opacity .12s;
  background: rgba(7, 22, 56, .96); border: 1px solid var(--line-dark, #2a3d52);
  color: var(--paper, #f6f7f5); font-size: 12.5px; line-height: 1.5;
  padding: 8px 11px; border-radius: 9px; max-width: 220px; z-index: 5;
}
.terr-tip strong { font-family: var(--t-display, sans-serif); letter-spacing: .02em; }

.terr-inset { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.terr-inset-box { width: min(320px, 100%); margin-left: auto; }
.terr-inset-cap { font-family: var(--t-mono, monospace); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-2, #8a97a4); margin-bottom: 6px; }
.terr-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--steel-2, #8a97a4); margin-top: 10px; }
.terr-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.terr-lookup { border: 1px solid var(--line-dark, #2a3d52); border-radius: 14px; padding: 22px; background: rgba(255, 255, 255, .025); }
.terr-lookup form { display: flex; gap: 10px; flex-wrap: wrap; }
.terr-lookup input {
  flex: 1 1 260px; min-width: 0; background: #071638; color: var(--paper, #f6f7f5);
  border: 1px solid var(--line-dark, #2a3d52); border-radius: 10px; padding: 13px 15px; font-size: 15px;
}
.terr-lookup input:focus { outline: 2px solid var(--red, #af1314); outline-offset: 1px; }
.terr-lookup button[type="submit"] {
  cursor: pointer; border: 0; border-radius: 10px; padding: 13px 22px;
  background: var(--red, #af1314); color: #fff; font-size: 14.5px; font-weight: 600; letter-spacing: .02em;
}
.terr-lookup button[type="submit"]:hover { background: var(--red-dark, #8a0f10); }

.terr-res { margin-top: 18px; border-radius: 12px; padding: 18px; border: 1px solid var(--line-dark, #2a3d52); }
.terr-res.in { border-color: rgba(175, 19, 20, .55); background: rgba(175, 19, 20, .07); }
.terr-res.out { border-color: var(--line-dark, #2a3d52); background: rgba(255, 255, 255, .02); }
.terr-res h4 { margin: 0 0 10px; font-family: var(--t-display, sans-serif); font-size: 20px; letter-spacing: .02em; }
.terr-res.multi { border-style: dashed; }
.terr-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.terr-note { font-size: 13px; color: var(--steel-2, #8a97a4); margin: 10px 0 0; }
.terr-mini { font-size: 11.5px; color: var(--gold, #b98a2f); font-weight: 400; margin-left: 6px; }
.terr-line { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 11px 0; border-top: 1px solid var(--line-dark, #2a3d52); }
.terr-line:first-of-type { border-top: 0; }
.terr-res.in .terr-line:first-of-type { border-top: 1px solid var(--line-dark, #2a3d52); }

/* text tables (reuse existing .terr-table where present, add guards) */
.terr-tables { display: grid; gap: 26px; }
.terr-tables table { width: 100%; border-collapse: collapse; font-size: 14px; }
.terr-tables th, .terr-tables td { border: 1px solid var(--line, #d8dde2); padding: 9px 12px; text-align: left; vertical-align: top; }
.terr-tables th { background: var(--navy, #09225c); color: var(--paper, #f6f7f5); font-family: var(--t-display, sans-serif); letter-spacing: .04em; font-weight: 500; }
.terr-tables tr:nth-child(even) td { background: var(--paper-2, #eef0ec); }
.terr-tables .yes { color: var(--red, #af1314); font-weight: 700; }
.terr-tables .no { color: var(--steel, #5c6b7a); }

@media (max-width: 640px) {
  .terr-line { align-items: flex-start; flex-direction: column; gap: 8px; }
  .terr-lookup { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .terr-county, .terr-altoz-circle, .terr-btn, .terr-tip { transition: none; }
}
