/* JtA Style Guide, edition 1794979056. Scoped to tracker components. */
/* Applied only by an active phone uploader; removing the class restores the site. */
html.jta-rt-session-active { margin-top: 0 !important; }
html.jta-rt-session-active .jta-rt-session-hidden,
html.jta-rt-session-active #wpadminbar.jta-rt-session-hidden { display: none !important; }
html.jta-rt-session-active .jta-rt-uploader { margin-top: 0; }
.jta-rt-card {
    --jta-black: #000000;
    --jta-white: #ffffff;
    --jta-ink: #313131;
    --jta-muted: #636363;
    --jta-line: #dfdfdf;
    --jta-surface: #f9f9f9;
    --jta-blue: #7ab8fa;
    --jta-red: #ff5151;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--jta-ink);
    background: var(--jta-white);
    border: 1px solid var(--jta-line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 32px #0000000d;
    margin: 24px auto;
    isolation: isolate;
}
.jta-rt-card * { box-sizing: border-box; }
.jta-rt-card .jta-rt-card-header {
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 24px 32px; background: var(--jta-white);
    border-top: 4px solid var(--jta-black); border-bottom: 1px solid var(--jta-line);
}
.jta-rt-card .jta-rt-card-header > div:first-child { min-width: 0; }
.jta-rt-card .jta-rt-card-header h2 { overflow-wrap: anywhere; }
.jta-rt-card .jta-rt-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; line-height: 1.5; margin: 0 0 8px; color: var(--jta-muted); }
.jta-rt-card h2 { font-family: Arial, Helvetica, sans-serif; color: var(--jta-black); font-size: 24px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; letter-spacing: normal; }
.jta-rt-card .jta-rt-subtitle { font-size: 14px; color: var(--jta-muted); line-height: 1.5; margin: 0; }
.jta-rt-status-block { display: flex; align-items: flex-end; flex-direction: column; gap: 4px; flex-shrink: 0; max-width: 100%; }
.jta-rt-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 4px 12px; border: 1px solid var(--jta-line); border-radius: 999px; background: #f1f1f1; color: var(--jta-ink); line-height: 1.5; }
.jta-rt-badge::before { content: ""; display: block; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
/* The user requested a prominent red on-air treatment for fresh GPS updates. */
.jta-rt-badge[data-state=live] {
    justify-content: center;
    min-width: 112px;
    min-height: 44px;
    padding: 8px 20px;
    gap: 12px;
    background: var(--jta-red);
    border-color: var(--jta-red);
    color: var(--jta-white);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 0 0 4px #ff515114, 0 4px 12px #ff515129;
}
.jta-rt-badge[data-state=live]::before {
    width: 10px;
    height: 10px;
    animation: jta-rt-live-pulse 2.4s ease-out infinite;
}
@keyframes jta-rt-live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 #ffffff00; }
    15% { box-shadow: 0 0 0 0 #ffffff73; }
    70% { box-shadow: 0 0 0 7px #ffffff00; }
}
.jta-rt-badge[data-state=stale] { background: var(--jta-surface); border-color: var(--jta-muted); }
.jta-rt-badge[data-state=stale]::before { background: transparent; border: 2px solid currentColor; }
.jta-rt-badge[data-state=offline] { background: var(--jta-ink); border-color: var(--jta-ink); color: var(--jta-white); }
.jta-rt-updated { font-size: 14px; font-weight: 600; line-height: 1.5; }
.jta-rt-local-time { font-size: 14px; font-weight: 400; color: var(--jta-muted); line-height: 1.5; }
.jta-rt-map { width: 100%; height: 500px; min-height: 300px; background: var(--jta-line); z-index: 0; }
.jta-rt-card .leaflet-container { font-family: Arial, Helvetica, sans-serif; }
.jta-rt-card .leaflet-control-zoom { border: 1px solid var(--jta-line) !important; box-shadow: 0 4px 12px #00000014; border-radius: 12px; margin: 16px; }
.jta-rt-card .leaflet-control-zoom a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: 12px; color: var(--jta-ink); background: var(--jta-white); text-decoration: none; }
.jta-rt-card .leaflet-control-zoom a:first-child { border-radius: 12px 12px 0 0; }
.jta-rt-card .leaflet-control-zoom a:last-child { border-radius: 0 0 12px 12px; }
.jta-rt-card .leaflet-control-zoom a + a { border-top: 1px solid var(--jta-line); }
.jta-rt-card .leaflet-control-zoom a:hover { background: #f1f1f1; }
.jta-rt-card .leaflet-control-zoom svg { display: block; width: 22px; height: 22px; pointer-events: none; }
.jta-rt-card .leaflet-bottom.leaflet-right { max-width: 100%; }
.jta-rt-card .leaflet-control-attribution { font-size: 14px; line-height: 1.5; max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: right; color: var(--jta-muted); }
.jta-rt-card .leaflet-control-attribution a { color: #2f70b7; text-decoration: underline; }
.jta-rt-map-footer { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; padding: 12px 24px; background: var(--jta-surface); border-top: 1px solid var(--jta-line); font-size: 14px; color: var(--jta-muted); line-height: 1.5; }
.jta-rt-route-summary { display: flex; gap: 8px; align-items: center; min-width: 0; }
.jta-rt-route-swatch { display: block; width: 24px; height: 4px; background: var(--jta-blue); border: 1px solid var(--jta-ink); border-radius: 4px; flex-shrink: 0; }
.jta-rt-map-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.jta-rt-map-actions label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; cursor: pointer; color: var(--jta-ink); }
.jta-rt-card input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--jta-ink); margin: 0; }
.jta-rt-card button {
    font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.5; font-weight: 600;
    color: var(--jta-ink); background: var(--jta-white); border: 2px solid var(--jta-line);
    border-radius: 12px; padding: 9px 12px; cursor: pointer; min-height: 44px; max-width: 100%;
    white-space: normal; box-shadow: none; text-transform: none; letter-spacing: normal;
}
.jta-rt-map-actions button:hover, .jta-rt-map-actions button:active { background: #f1f1f1; color: var(--jta-ink); }
.jta-rt-card button:focus-visible, .jta-rt-card input:focus-visible, .jta-rt-card summary:focus-visible, .jta-rt-card .leaflet-control-zoom a:focus-visible { outline: 2px solid var(--jta-blue); outline-offset: 2px; box-shadow: 0 0 0 6px #7ab8fa33; }
.jta-rt-card button:disabled { opacity: 1; cursor: wait; }
.jta-rt-card [hidden] { display: none !important; }
.jta-rt-uploader { max-width: 540px; padding: 32px; border-top: 4px solid var(--jta-black); }
.jta-rt-uploader h2 { font-size: 32px; line-height: 1.2; }
.jta-rt-uploader p { font-size: 16px; line-height: 1.6; margin: 16px 0; }
.jta-rt-uploader .jta-rt-detail { color: var(--jta-muted); font-size: 14px; line-height: 1.5; }
.jta-rt-uploader .jta-rt-telemetry { font-size: 12px; line-height: 1.4; margin: 0 0 8px; overflow-wrap: anywhere; }
.jta-rt-telemetry:empty { display: none; }
/* Phone feedback uses colour, a distinct symbol and a plain-language state. */
.jta-rt-upload-status, .jta-rt-status-key li { --status-bg: #f1f3f5; --status-ink: #313131; --status-accent: #68737d; }
.jta-rt-upload-status[data-state=healthy], .jta-rt-status-key li[data-state=healthy] { --status-bg: #e8f7ed; --status-ink: #14532d; --status-accent: #26834a; }
.jta-rt-upload-status[data-state=waiting], .jta-rt-status-key li[data-state=waiting] { --status-bg: #fff5db; --status-ink: #744210; --status-accent: #aa6b08; }
.jta-rt-upload-status[data-state=attention], .jta-rt-status-key li[data-state=attention] { --status-bg: #fff0f0; --status-ink: #8c2020; --status-accent: #c23b3b; }
.jta-rt-upload-status { display: flex; align-items: flex-start; gap: 12px; background: var(--status-bg); color: var(--status-ink); border: 1px solid var(--status-accent); border-left-width: 5px; padding: 18px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; min-height: 108px; }
.jta-rt-upload-status > div { min-width: 0; }
.jta-rt-upload-status strong { display: block; color: inherit; font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.jta-rt-upload-status #jta-rt-status-message { display: block; overflow-wrap: anywhere; }
.jta-rt-upload-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--status-ink); color: #fff; font-size: 22px; line-height: 1; font-weight: 700; }
.jta-rt-uploader .jta-rt-status-key { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--jta-muted); }
.jta-rt-status-key li { display: flex; align-items: flex-start; gap: 7px; margin: 0; padding: 0; }
.jta-rt-status-key li > span { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 22px; height: 22px; background: var(--status-bg); color: var(--status-ink); border: 1px solid var(--status-accent); border-radius: 50%; font-weight: 700; }
.jta-rt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.jta-rt-actions button { font-size: 16px; line-height: 1.5; font-weight: 700; min-height: 52px; padding: 12px 16px; border: 2px solid transparent; background: var(--jta-black); color: var(--jta-white); box-shadow: 0 4px 12px #0000001f; }
.jta-rt-actions .jta-rt-primary { background: var(--jta-blue); color: var(--jta-white); }
.jta-rt-actions button:active, .jta-rt-actions .jta-rt-primary:active { background: var(--jta-red); color: var(--jta-white); transform: none; box-shadow: 0 2px 4px #00000014; }
.jta-rt-actions button:focus-visible { box-shadow: 0 0 0 6px #7ab8fa33; }
.jta-rt-uploader details { border-top: 1px solid var(--jta-line); padding-top: 16px; font-size: 14px; line-height: 1.5; color: var(--jta-muted); }
.jta-rt-uploader summary { cursor: pointer; font-weight: 600; min-height: 44px; padding: 8px 0; }
.jta-rt-broadcast { height: 80vh; min-height: 500px; display: flex; flex-direction: column; }
.jta-rt-broadcast .jta-rt-map { flex: 1; height: auto; min-height: 240px; }
.jta-rt-broadcast .jta-rt-map-actions { display: none; }
@media (hover:hover) and (pointer:fine) {
    .jta-rt-actions button:not(:disabled):hover { background: var(--jta-red); color: var(--jta-white); transform: translateY(-2px); box-shadow: 0 8px 16px #0000001f; }
    .jta-rt-actions button:not(:disabled):active { transform: none; box-shadow: 0 2px 4px #00000014; }
    .jta-rt-card .jta-rt-actions button:focus-visible { box-shadow: 0 0 0 6px #7ab8fa33; }
}
@media (max-width:600px) {
    .jta-rt-card { border-radius: 16px; margin: 16px auto; }
    .jta-rt-card .jta-rt-card-header { padding: 24px 16px; align-items: flex-start; gap: 16px; flex-direction: column; }
    .jta-rt-status-block { align-items: flex-start; width: 100%; flex-shrink: 1; }
    .jta-rt-map { height: 420px; }
    .jta-rt-map-footer { padding: 12px 16px; gap: 12px; }
    .jta-rt-map-actions { width: 100%; gap: 12px; }
    .jta-rt-uploader { padding: 24px 16px; }
    .jta-rt-uploader h2 { font-size: 28px; }
    .jta-rt-broadcast { min-height: 640px; }
}
@media (prefers-reduced-motion:reduce) {
    .jta-rt-card * { scroll-behavior: auto; }
    .jta-rt-actions button:not(:disabled):hover { transform: none; }
    .jta-rt-badge[data-state=live]::before { animation: none; box-shadow: none; }
}
