/* Follow the Money: Connected Threads map, scoreboard, backer profiles, corrections form */

.ftm-hero .lead { max-width: 52rem; }
.ftm-keystats-band { padding-top: 0; }
.ftm-keystats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9rem; }
@media (max-width: 1000px) { .ftm-keystats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .ftm-keystats { grid-template-columns: repeat(2, 1fr); } }

.ftm-tile {
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: 3px; box-shadow: 4px 4px 0 var(--ink);
  padding: 1rem 1.05rem 0.95rem; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0;
}
.ftm-tile-label { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-2); }
.ftm-tile-value { font-family: var(--font-head, var(--font-display)); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.05; color: var(--ink); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ftm-tile-value .u { font-size: 0.8rem; color: var(--red); font-weight: 700; letter-spacing: 0; margin-left: 0.15rem; }
.ftm-tile-note { font-size: 0.8rem; color: var(--slate); line-height: 1.35; }

/* toolbar and filters */
.ftm-toolbar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.75rem; }
.ftm-search { flex: 1 1 320px; }
.ftm-zoom { display: inline-flex; border: 2px solid var(--ink); border-radius: 2px; overflow: hidden; }
.ftm-zoom button { font: inherit; font-weight: 700; background: var(--paper-2); color: var(--ink); border: 0; padding: 0.5rem 0.85rem; cursor: pointer; min-width: 2.5rem; }
.ftm-zoom button + button { border-left: 2px solid var(--ink); }
.ftm-zoom button:hover { background: var(--red-soft); color: var(--red-deep); }
.ftm-filters { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 0.9rem; }
.ftm-filters .fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.ftm-filters .fgroup-label { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-2); }
.ftm-filters .filter-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ftm-filters .chip {
  font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.65rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper-2); color: var(--ink);
}
.ftm-filters .chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.ftm-filters .chip-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* the map */
.ftm-wide { max-width: 1440px; }
.ftm-howto { font-size: 0.92rem; color: var(--slate); max-width: 62rem; margin: 0.9rem 0 0.4rem; line-height: 1.5; }
.ftm-stage { position: relative; border: 2px solid var(--ink); border-radius: 3px; background: #fafbfc; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.ftm-svg { display: block; width: 100%; min-height: 360px; background:
  radial-gradient(circle at 1px 1px, rgba(20,23,27,0.07) 1px, transparent 0) 0 0 / 22px 22px, #fafbfc; cursor: grab; touch-action: pan-y; }
.ftm-svg.is-dragging { cursor: grabbing; }
.ftm-edge { fill: none; stroke: #9aa3ae; stroke-width: 1.3; opacity: 0.55; transition: opacity .15s, stroke .15s; }
.ftm-node { cursor: pointer; transition: opacity .15s; }
.ftm-node:focus { outline: none; }
.ftm-org circle { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.ftm-org .ftm-count { fill: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.ftm-proj circle, .ftm-proj rect { stroke: #fff; stroke-width: 1.6; }
.ftm-proj.sf-active circle, .ftm-proj.sf-active rect { fill: #c8281e; }
.ftm-proj.sf-contested circle, .ftm-proj.sf-contested rect { fill: #b88318; }
.ftm-proj.sf-emerging circle, .ftm-proj.sf-emerging rect { fill: #626a74; }
.ftm-proj.sf-ordinance circle, .ftm-proj.sf-ordinance rect { fill: #2a4d8a; }
.ftm-proj.sf-stopped circle, .ftm-proj.sf-stopped rect { fill: #4f7a4d; }
.ftm-pulse { fill: none; stroke: #c8281e; stroke-width: 2; opacity: 0.6; animation: ftmPulse 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ftmPulse { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ftm-pulse { animation: none; } }
.ftm-label { font-family: var(--font-body); font-size: 11.5px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: #fafbfc; stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
.ftm-label-ours { fill: #8a1d15; font-size: 11px; }
.ftm-node:hover circle, .ftm-node:hover rect, .ftm-node:focus-visible circle, .ftm-node:focus-visible rect { stroke: var(--red); stroke-width: 3; }

.ftm-svg.has-focus .ftm-edge { opacity: 0.08; }
.ftm-svg.has-focus .ftm-node, .ftm-svg.has-focus .ftm-label { opacity: 0.18; }
.ftm-svg.has-focus .ftm-edge.is-on { opacity: 1; stroke: var(--red); stroke-width: 2.2; }
.ftm-svg.has-focus .ftm-node.is-on, .ftm-svg.has-focus .ftm-label.is-on { opacity: 1; }
.ftm-node.is-selected circle, .ftm-node.is-selected rect { stroke: var(--red); stroke-width: 3.5; }
.ftm-node.is-filtered, .ftm-label.is-filtered { opacity: 0.1; }
.ftm-edge.is-filtered { opacity: 0.04; }

.ftm-stage { display: grid; grid-template-columns: minmax(0, 1fr); }
.ftm-stage.has-panel { grid-template-columns: minmax(0, 1fr) 340px; }
.ftm-panel { display: none; position: relative; overflow: auto; max-height: min(86vh, 920px); padding: 1.1rem 1.15rem; background: var(--paper-2); border-left: 2px solid var(--ink); font-size: 0.92rem; }
.ftm-panel.is-open { display: block; }
.ftm-panel h3 { font-size: 1.15rem; margin: 0.15rem 1.5rem 0.45rem 0; line-height: 1.25; }
.ftm-panel-hint { color: var(--slate); line-height: 1.5; margin: 0; }
.ftm-panel-kicker { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-deep); margin: 0; }
.ftm-panel-count { margin: 0 0 0.75rem; color: var(--slate); }
.ftm-panel-sub { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-2); margin: 0 0 0.35rem; }
.ftm-panel-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.45rem; }
.ftm-panel-list li { display: grid; gap: 0.1rem; }
.ftm-panel-list button { font: inherit; font-weight: 700; text-align: left; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; display: inline-flex; gap: 0.45rem; align-items: baseline; }
.ftm-panel-list button:hover { color: var(--red-deep); text-decoration: underline; }
.ftm-panel-list span:not(.ftm-dot):not(.ftm-key-org):not(.ftm-key-sol):not(.ftm-key-person) { font-size: 0.8rem; color: var(--slate-2); padding-left: 1.05rem; }
.ftm-panel-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ftm-panel-close { position: absolute; top: 0.6rem; right: 0.7rem; font-size: 1.4rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--slate-2); }
.ftm-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.ftm-dot.sf-active { background: #c8281e; } .ftm-dot.sf-contested { background: #b88318; } .ftm-dot.sf-emerging { background: #626a74; }
.ftm-dot.sf-ordinance { background: #2a4d8a; } .ftm-dot.sf-stopped { background: #4f7a4d; }
.ftm-key-org { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); display: inline-block; flex: 0 0 auto; }
.ftm-key-sq { width: 11px; height: 11px; border-radius: 2px; background: #626a74; display: inline-block; }
.ftm-key-ours { width: 12px; height: 12px; border-radius: 3px; background: #b88318; box-shadow: 0 0 0 2px var(--ink); display: inline-block; }
.ftm-legend { display: grid; gap: 0.4rem; margin: 1rem 0 0.3rem; font-size: 0.82rem; color: var(--slate); }
.ftm-legend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.1rem; }
.ftm-legend-row > span { display: inline-flex; align-items: center; gap: 0.45rem; }
.ftm-legend-row em { font-style: normal; color: var(--slate-2); font-size: 0.76rem; }
.ftm-legend-head { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-2); min-width: 6.5rem; }
.ftm-key-proj { width: 11px; height: 11px; border-radius: 3px; background: #8f99a5; display: inline-block; flex: 0 0 auto; }
.ftm-key-infra { background: transparent; border: 1.5px dashed #626a74; }
.ftm-map-note { margin-top: 0.4rem; }

/* scoreboard tables */
.ftm-table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: 3px; background: var(--paper-2); }
.ftm-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ftm-table th, .ftm-table td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.ftm-table thead th { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-2); background: var(--paper-3); position: sticky; top: 0; white-space: nowrap; }
.ftm-table thead th[data-sort] { cursor: pointer; }
.ftm-table thead th[aria-sort="descending"]::after { content: " \2193"; color: var(--red); }
.ftm-table thead th[aria-sort="ascending"]::after { content: " \2191"; color: var(--red); }
.ftm-table th:first-child, .ftm-table td:first-child { text-align: left; }
.ftm-table tbody th { font-weight: 700; min-width: 15rem; }
.ftm-table tbody th a { color: var(--ink); }
.ftm-table tbody th a:hover { color: var(--red-deep); }
.ftm-table td { font-variant-numeric: tabular-nums; }
.ftm-cat { display: block; font-weight: 400; font-size: 0.78rem; color: var(--slate-2); margin-top: 0.15rem; }
.ftm-more { margin-top: 1rem; }
.ftm-review-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6b4a07; background: var(--gold-soft); border: 1px solid #e3cf9a; padding: 0.1rem 0.4rem; border-radius: 2px; vertical-align: middle; margin: 0.15rem 0; }

.ftm-plain-list { padding-left: 1.1rem; margin: 0.5rem 0 0; }
.ftm-plain-list li { margin-bottom: 0.35rem; }

/* backer profile */
.ftm-profile { padding-top: 2rem; padding-bottom: 3rem; }
.ftm-profile-hero { max-width: 52rem; margin: 1rem 0 1.75rem; }
.ftm-profile-hero h1 { margin: 0.4rem 0 0.75rem; }
.ftm-review-note { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 0.7rem 0.9rem; border-radius: 2px; font-size: 0.92rem; }
.ftm-scorecard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; background: var(--ink); color: #fff; border-radius: 3px; padding: 1.6rem 1.75rem; box-shadow: 6px 6px 0 var(--red); margin-bottom: 1.5rem; }
.ftm-score-kicker { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #f7c9c1; margin: 0; }
.ftm-score-big { font-family: var(--font-head, var(--font-display)); font-weight: 700; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; margin: 0.3rem 0 0.1rem; }
.ftm-score-cap { color: #dbe0e8; margin: 0 0 1rem; }
.ftm-bar { display: flex; height: 14px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,0.12); }
.ftm-bar-seg { display: block; height: 100%; }
.ftm-bar-legend { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.85rem; color: #dbe0e8; }
.ftm-bar-legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.ftm-bar-legend strong { color: #fff; }
.ftm-roles { margin: 0.9rem 0 0; font-size: 0.85rem; color: #c7ced8; }
.ftm-scorecard-map { background: #fff; border-radius: 3px; padding: 0.6rem; }
.ftm-minimap { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .ftm-scorecard { grid-template-columns: 1fr; } }
.ftm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.9rem; margin-bottom: 2rem; }
.ftm-profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.75rem; align-items: start; }
@media (max-width: 960px) { .ftm-profile-grid { grid-template-columns: 1fr; } }
.ftm-block { margin-bottom: 1.75rem; }
.ftm-block h2 { font-size: 1.35rem; margin: 0 0 0.75rem; }
.ftm-side .ftm-block { background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 3px; padding: 1rem 1.1rem; }
.ftm-side .ftm-block h2 { font-size: 1.05rem; }
.ftm-facts { margin: 0; display: grid; gap: 0.6rem; }
.ftm-fact dt { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-2); }
.ftm-fact dd { margin: 0.1rem 0 0; font-size: 0.92rem; overflow-wrap: anywhere; }
.ftm-ptable td { text-align: left; }
.ftm-ptable td:nth-child(4) { white-space: normal; }
.ftm-status { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--c); background: var(--cs); border-radius: 2px; padding: 0.15rem 0.45rem; white-space: nowrap; }
.ftm-fix { font-size: 0.78rem; white-space: nowrap; }
.ftm-src { padding-left: 1.1rem; }
.ftm-src li { margin-bottom: 0.4rem; }

/* corrections form */
.ftm-correct { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2rem; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 3px; padding: 1.75rem; margin: 1rem 0 2rem; scroll-margin-top: 90px; }
@media (max-width: 860px) { .ftm-correct { grid-template-columns: 1fr; padding: 1.25rem; } }
.ftm-correct-copy h2 { margin: 0.3rem 0 0.75rem; }
.ftm-form { display: grid; gap: 0.9rem; }
.ftm-form .field { display: grid; gap: 0.3rem; margin: 0; }
.ftm-form label, .ftm-form legend { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.ftm-form input[type="text"], .ftm-form input[type="email"], .ftm-form input[type="url"], .ftm-form select, .ftm-form textarea {
  font: inherit; font-size: 0.95rem; padding: 0.65rem 0.75rem; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; color: var(--ink); width: 100%;
}
.ftm-form input:focus, .ftm-form select:focus, .ftm-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.ftm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 560px) { .ftm-form-row { grid-template-columns: 1fr; } }
.ftm-kind { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.ftm-kind legend { margin-bottom: 0.35rem; width: 100%; }
.ftm-kind .field-check, .ftm-form > .field-check { font-weight: 500; display: inline-flex; gap: 0.45rem; align-items: flex-start; }
.ftm-form-fixed { margin: 0; display: grid; gap: 0.15rem; }
.ftm-form-fixed span { font-weight: 700; font-size: 0.88rem; }
.ftm-form-fixed strong { font-size: 1.05rem; }
.ftm-form .btn { justify-self: start; }
.ftm-correct .form-success { grid-column: 1 / -1; }

.ftm-disclaimer { border-top: 2px solid var(--ink); padding-top: 1.1rem; margin-top: 1.5rem; font-size: 0.86rem; color: var(--slate); max-width: 60rem; }
.ftm-disclaimer h2 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin: 0 0 0.5rem; }

/* search box (the map page's styles aren't loaded here) */
.ftm-search { position: relative; display: flex; align-items: center; background: var(--paper-2); border: 2px solid var(--line-2); border-radius: 2px; padding: 0 0.75rem; }
.ftm-search:focus-within { border-color: var(--ink); }
.ftm-search .map-search-icon { display: inline-flex; width: 18px; height: 18px; color: var(--slate-2); flex: 0 0 auto; }
.ftm-search .map-search-icon svg { width: 18px; height: 18px; }
.ftm-search input { font: inherit; font-size: 0.95rem; border: 0; background: transparent; padding: 0.65rem 0.6rem; width: 100%; color: var(--ink); outline: none; }

/* back link (profile.css isn't loaded on these pages) */
.pf-back { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.pf-back svg { width: 14px; height: 14px; flex: 0 0 auto; }
.pf-back:hover { color: var(--red-deep); }
@media (max-width: 960px) { .ftm-profile-grid { grid-template-columns: minmax(0, 1fr); } }
.ftm-tiles { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
@media (max-width: 520px) { .ftm-tiles { grid-template-columns: 1fr 1fr; gap: 0.7rem; } .ftm-tile { padding: 0.8rem; } .ftm-ptable tbody th { min-width: 11rem; } }
.ftm-table-wrap { max-width: 100%; }

/* ---------- network map ---------- */
.ftm-halo { fill: rgba(20,23,27,0.035); stroke: rgba(20,23,27,0.08); stroke-width: 1; stroke-dasharray: 3 5; }
.ftm-halo-title { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; fill: var(--slate-2); opacity: 0; transition: opacity .2s; }
.ftm-svg.is-zoomed .ftm-halo-title { opacity: 1; }
.ftm-svg.has-focus .ftm-halo-title { opacity: 0.4; }
.ftm-edge { fill: none; transition: opacity .15s, stroke .15s; }
.ftm-edge-backs { stroke: #8f99a5; stroke-width: 1.1; opacity: 0.55; }
.ftm-edge-works { stroke: #b88318; stroke-width: 1; opacity: 0.22; }
.ftm-edge-works[data-n="2"] { stroke-width: 1.8; opacity: 0.3; }
.ftm-edge-works[data-n="3"], .ftm-edge-works[data-n="4"], .ftm-edge-works[data-n="5"] { stroke-width: 2.6; opacity: 0.35; }
.ftm-edge-venture { stroke: #2a4d8a; stroke-width: 1.4; stroke-dasharray: 3 3; opacity: 0.6; }
.ftm-edge-person { stroke: #b88318; stroke-width: 1.2; stroke-dasharray: 1.5 2.5; opacity: 0.7; }
.ftm-svg.hide-works .ftm-edge-works { display: none; }
.ftm-svg.hide-people .ftm-edge-person, .ftm-svg.hide-people .ftm-person, .ftm-svg.hide-people .ftm-label-person { display: none; }
.ftm-node { cursor: pointer; transition: opacity .15s; }
.ftm-node:focus { outline: none; }
.ftm-org circle { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.ftm-org:not(.is-multi) circle { fill: #4a525c; }
.ftm-org .ftm-count { fill: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.ftm-proj circle, .ftm-proj rect { stroke: #fff; stroke-width: 1.6; }
.ftm-proj.sf-active circle, .ftm-proj.sf-active rect { fill: #c8281e; }
.ftm-proj.sf-contested circle, .ftm-proj.sf-contested rect { fill: #b88318; }
.ftm-proj.sf-emerging circle, .ftm-proj.sf-emerging rect { fill: #626a74; }
.ftm-proj.sf-ordinance circle, .ftm-proj.sf-ordinance rect { fill: #2a4d8a; }
.ftm-proj.sf-stopped circle, .ftm-proj.sf-stopped rect { fill: #4f7a4d; }
.ftm-proj.is-ours rect { stroke: var(--ink); stroke-width: 3; }
.ftm-proj.is-infra rect { stroke-dasharray: 3 2; stroke: #2b3036; fill-opacity: 0.55; }
.ftm-person rect { fill: #f3d27a; stroke: #8a6a0f; stroke-width: 1.6; }
.ftm-pulse { fill: none; stroke: #c8281e; stroke-width: 2; opacity: 0.6; animation: ftmPulse 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ftmPulse { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ftm-pulse { animation: none; } }
.ftm-labels text { font-family: var(--font-body); paint-order: stroke; stroke: #fafbfc; stroke-width: 3px; stroke-linejoin: round; cursor: pointer; transition: opacity .15s; }
.ftm-label { font-size: 12.5px; font-weight: 500; fill: var(--slate); }
.ftm-label.is-multi { font-size: 15px; font-weight: 700; fill: var(--ink); }
.ftm-label-ring { font-size: 12px; }
.ftm-label-ring.is-multi { font-size: 13.5px; }
.ftm-label-person { font-size: 12px; font-weight: 700; fill: #6b4a07; }
.ftm-label.is-crowded, .ftm-plabel { opacity: 0; pointer-events: none !important; }
.ftm-plabel { font-size: 11.5px; fill: var(--slate); }
.ftm-svg.is-zoomed2 .ftm-label.is-crowded, .ftm-svg.is-zoomed2 .ftm-plabel { opacity: 1; pointer-events: auto !important; }
.ftm-label-ours { font-size: 14px; font-weight: 700; fill: #8a1d15; }
.ftm-node:hover circle, .ftm-node:hover rect, .ftm-node:focus-visible circle, .ftm-node:focus-visible rect { stroke: var(--red); stroke-width: 3; }
.ftm-svg.has-focus .ftm-edge { opacity: 0.05; }
.ftm-svg.has-focus .ftm-halo { opacity: 0.5; }
.ftm-svg.has-focus .ftm-node, .ftm-svg.has-focus .ftm-labels text { opacity: 0.14; }
.ftm-svg.has-focus .ftm-edge.is-on { opacity: 1; }
.ftm-svg.has-focus .ftm-edge-backs.is-on { stroke: var(--red); stroke-width: 2.2; }
.ftm-svg.has-focus .ftm-edge-works.is-on { stroke: #b88318; stroke-width: 2.4; }
.ftm-svg.has-focus .ftm-edge-venture.is-on { stroke: #2a4d8a; stroke-width: 2.2; }
.ftm-svg.has-focus .ftm-edge-person.is-on { stroke: #8a6a0f; stroke-width: 2; }
.ftm-svg.has-focus .ftm-node.is-on, .ftm-svg.has-focus .ftm-labels text.is-on { opacity: 1; }
.ftm-svg.has-focus .ftm-plabel.is-on, .ftm-svg.has-focus .ftm-label.is-crowded.is-on { opacity: 1; pointer-events: auto !important; }
.ftm-node.is-selected circle, .ftm-node.is-selected rect { stroke: var(--red); stroke-width: 3.5; }
.ftm-node.is-filtered, .ftm-labels text.is-filtered { opacity: 0.08 !important; }
.ftm-edge.is-filtered { opacity: 0.03 !important; }

.ftm-key-person { width: 10px; height: 10px; background: #f3d27a; border: 1.5px solid #8a6a0f; transform: rotate(45deg); display: inline-block; margin: 0 2px; }
.ftm-key-line { width: 22px; height: 0; border-top: 2px solid #8f99a5; display: inline-block; }
.ftm-key-works { border-top-color: #b88318; opacity: 0.6; }
.ftm-key-venture { border-top-style: dotted; border-top-color: #2a4d8a; }
.ftm-toggles { gap: 0.9rem; }
.ftm-toggle { font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; }
.ftm-webs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0.9rem 0 0; }
.ftm-web-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ftm-web-chip { font: inherit; cursor: pointer; text-align: left; display: inline-grid; gap: 0.05rem; padding: 0.4rem 0.7rem; border: 2px solid var(--ink); border-radius: 2px; background: var(--paper-2); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.ftm-web-chip strong { font-size: 0.82rem; }
.ftm-web-chip span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-2); }
.ftm-web-chip:hover, .ftm-web-chip.is-active { background: var(--red-soft); border-color: var(--red-deep); }
.ftm-web-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1rem; }
.ftm-web-card { background: var(--paper-2); border: 2px solid var(--ink); border-radius: 3px; box-shadow: 4px 4px 0 var(--ink); padding: 1.1rem 1.2rem; font-size: 0.9rem; }
.ftm-web-card h3 { margin: 0 0 0.2rem; font-size: 1.1rem; }
.ftm-web-go { font: inherit; font-weight: 700; font-size: 1.1rem; color: var(--ink); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.ftm-web-go:hover, .ftm-web-go.is-active { color: var(--red-deep); text-decoration: underline; }
.ftm-web-meta { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-2); margin: 0 0 0.7rem; }
.ftm-web-card p { margin: 0 0 0.5rem; line-height: 1.5; }
.ftm-panel-web { font-size: 0.85rem; color: var(--slate); margin: 0 0 0.75rem; }
.ftm-link-btn { font: inherit; font-weight: 700; color: var(--red-deep); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.ftm-panel h3 a { color: var(--ink); }
.ftm-panel h3 a:hover { color: var(--red-deep); }
.ftm-panel-list li { display: grid; grid-template-columns: 1fr auto; column-gap: 0.4rem; }
.ftm-panel-list li span:not(.ftm-dot):not(.ftm-key-org):not(.ftm-key-person):not(.ftm-key-sol) { grid-column: 1 / -1; }
.ftm-open { font-weight: 700; color: var(--red-deep); text-decoration: none; padding: 0 0.3rem; }
.ftm-open:hover { background: var(--red-soft); border-radius: 2px; }
.ftm-panel-hint { font-size: 0.78rem; color: var(--slate-2); margin: 0.75rem 0 0; }
.ftm-svg.is-zoomed { touch-action: none; }

/* ---------- drill-down map ---------- */
.ftm-crumbs[hidden] { display: none; }
.ftm-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.4rem; margin: 0 0 0.6rem; font-size: 0.9rem; }
.ftm-crumb { font: inherit; font-weight: 700; color: var(--red-deep); background: none; border: 0; padding: 0.2rem 0.3rem; cursor: pointer; border-radius: 2px; }
.ftm-crumb:hover { background: var(--red-soft); }
.ftm-crumb.is-current { color: var(--ink); cursor: default; }
.ftm-crumb.is-current:hover { background: none; }
.ftm-crumb-sep { color: var(--slate-2); }
.ftm-svg { width: 100%; height: auto; min-height: 0; aspect-ratio: var(--ftm-ar, 1.27); max-height: min(86vh, 920px); cursor: default; display: block; }
.ftm-svg.is-zoomed { cursor: grab; }
.ftm-svg.is-entering .ftm-viewport { animation: ftmIn .28s ease-out; }
@keyframes ftmIn { from { opacity: 0; transform: scale(0.97); transform-origin: center; } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ftm-svg.is-entering .ftm-viewport { animation: none; } }
.ftm-noscript { padding: 1rem; }

/* overview bubbles */
.ftm-bubble { cursor: pointer; transition: opacity .15s; }
.ftm-bubble:focus { outline: none; }
.ftm-bub { fill: #fff; stroke: var(--ink); stroke-width: 2; transition: fill .15s, stroke-width .15s; }
.ftm-bubble:hover .ftm-bub, .ftm-bubble:focus-visible .ftm-bub { fill: var(--red-soft); stroke: var(--red-deep); stroke-width: 3; }
.ftm-bubble-group .ftm-bub { fill: var(--paper); stroke-dasharray: 4 3; }
.ftm-bubble.is-filtered { opacity: 0.18; }
.ftm-thumb line { stroke: #c7ced8; stroke-width: 0.8; }
.ftm-thumb .t-org { fill: var(--ink); }
.ftm-thumb .t-person { fill: #f3d27a; stroke: #8a6a0f; stroke-width: 0.6; }
.ftm-thumb .t-proj.sf-active { fill: #c8281e; } .ftm-thumb .t-proj.sf-contested { fill: #b88318; } .ftm-thumb .t-proj.sf-emerging { fill: #626a74; }
.ftm-thumb .t-proj.sf-ordinance { fill: #2a4d8a; } .ftm-thumb .t-proj.sf-stopped { fill: #4f7a4d; }
.ftm-bub-title { font-family: var(--font-body); font-weight: 600; fill: var(--ink); text-anchor: middle; pointer-events: none; }
.ftm-bubble:hover .ftm-bub-title, .ftm-bubble:focus-visible .ftm-bub-title { fill: var(--red-deep); }
.ftm-thumb .t-proj { stroke: none; }
.ftm-bub-sub { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; fill: var(--slate-2); text-anchor: middle; pointer-events: none; }

/* web, group and focus views */
.ftm-view-head { display: grid; gap: 0.1rem; margin: 0 0 0.7rem; }
.ftm-view-kicker { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-deep); margin: 0; }
.ftm-view-title { font-size: 1.35rem; margin: 0; line-height: 1.2; }
.ftm-view-sub { color: var(--slate); margin: 0; font-size: 0.92rem; }
.ftm-section-head { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; fill: var(--slate-2); }
.ftm-group-head { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; fill: var(--red-deep); }
.ftm-sublabel { font-family: var(--font-body); font-size: 11px; fill: var(--slate-2); paint-order: stroke; stroke: #fafbfc; stroke-width: 3px; pointer-events: none; }
.ftm-svg .ftm-plabel.is-fixed, .ftm-svg .ftm-label.is-fixed { opacity: 1; pointer-events: auto !important; }
.ftm-open-link text { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--red-deep); paint-order: stroke; stroke: #fafbfc; stroke-width: 4px; }
.ftm-open-link:hover text { text-decoration: underline; }
.ftm-svg.has-focus .ftm-group-head { opacity: 0.4; }
.ftm-svg.has-focus .ftm-sublabel { opacity: 0.14; }
.ftm-svg.has-focus .ftm-sublabel.is-on { opacity: 1; }
.ftm-svg.has-focus .ftm-open-link { opacity: 1; }
.ftm-edge-backs { stroke-width: 1.4; opacity: 0.6; }
.ftm-edge-works { opacity: 0.35; }
.ftm-plabel { font-size: 13px; }
.ftm-svg .ftm-plabel.is-fixed.is-crowded { opacity: 0; pointer-events: none !important; }
.ftm-svg.has-focus .ftm-plabel.is-fixed.is-crowded.is-on, .ftm-svg.is-zoomed .ftm-plabel.is-fixed.is-crowded { opacity: 1; pointer-events: auto !important; }
.ftm-group-head { paint-order: stroke; stroke: #fafbfc; stroke-width: 4px; }

/* phones and small tablets: the map keeps the shape of what it shows, filters fold away, the card sits under the map */
.ftm-filters-toggle { display: none; }
@media (max-width: 899px) {
  .ftm-explorer { display: flex; flex-direction: column; }
  .ftm-explorer > * { order: 0; }
  .ftm-filters-toggle { display: inline-flex; align-items: center; font: inherit; font-weight: 700; font-size: 0.85rem; background: var(--paper-2); color: var(--ink); border: 2px solid var(--ink); border-radius: 2px; padding: 0.5rem 0.85rem; cursor: pointer; }
  .ftm-filters-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; }
  .ftm-filters { display: none; }
  .ftm-filters.is-open { display: flex; }
  .ftm-svg { height: auto; aspect-ratio: var(--ftm-ar, 1.45); max-height: none; min-height: 0; }
  .ftm-stage.has-panel { grid-template-columns: minmax(0, 1fr); }
  .ftm-panel { max-height: none; border-left: 0; border-top: 2px solid var(--ink); }
  .ftm-zoom button { padding: 0.5rem 0.7rem; }
}
.ftm-leader { stroke: #b4bcc6; stroke-width: 1; stroke-dasharray: 2 2; pointer-events: none; }
.ftm-svg.has-focus .ftm-leader { opacity: 0.15; }

/* ---------- compact header and view tabs ---------- */
.ftm-hero-compact { padding: 1.05rem 0 0.6rem; }
.ftm-hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.6rem 1.5rem; }
.ftm-hero-compact h1 { font-size: clamp(1.45rem, 2.4vw, 2rem); margin: 0; line-height: 1.15; }
.ftm-hero-lead { margin: 0.15rem 0 0; color: var(--slate); font-size: 0.95rem; }
.ftm-tabs { display: inline-flex; border: 2px solid var(--ink); border-radius: 3px; overflow: hidden; flex: 0 0 auto; }
.ftm-tab { font: inherit; font-weight: 700; font-size: 0.85rem; padding: 0.45rem 0.85rem; background: var(--paper-2); color: var(--ink); border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; }
.ftm-tab + .ftm-tab { border-left: 2px solid var(--ink); }
.ftm-tab.is-active { background: var(--ink); color: #fff; }
.ftm-tab:not(.is-active):hover { background: var(--red-soft); color: var(--red-deep); }
.ftm-3d-section { padding: 0 0 1.5rem; }
.ftm-3d-section.is-hidden { display: none; }
.ftm-intro { max-width: 62rem; color: var(--slate); margin: 1.2rem 0 0; line-height: 1.55; }
.ftm-map-section .ftm-explorer[hidden] { display: none; }

/* ---------- the 3D stage ---------- */
.ftm3d { position: relative; height: clamp(520px, calc(100svh - 150px), 1000px); border: 2px solid var(--ink); border-radius: 3px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden;
  background: radial-gradient(ellipse at 50% 18%, #ffffff 0%, #f1f3f6 55%, #e3e7ec 100%); }
.ftm3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; outline: none; }
.ftm3d canvas.is-dragging { cursor: grabbing; }
.ftm3d canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--red); }
.ftm3d-hud { position: absolute; z-index: 3; display: flex; gap: 0.4rem; align-items: center; }
.ftm3d-hud-tl { top: 12px; left: 12px; }
.ftm3d-hud-tr { top: 12px; right: 12px; border: 2px solid var(--ink); border-radius: 3px; overflow: hidden; gap: 0; background: var(--paper-2); }
.ftm3d-hud-tr button { font: inherit; font-weight: 700; font-size: 0.85rem; background: transparent; color: var(--ink); border: 0; padding: 0.42rem 0.75rem; cursor: pointer; min-width: 2.4rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.ftm3d-hud-tr button + button { border-left: 2px solid var(--ink); }
.ftm3d-hud-tr button:hover, .ftm3d-hud-tr button[aria-expanded="true"], .ftm3d-hud-tr button[aria-pressed="true"] { background: var(--red-soft); color: var(--red-deep); }
.ftm3d-badge { min-width: 17px; height: 17px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.66rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.28rem; }
.ftm3d-badge[hidden] { display: none; }
.ftm3d-search { display: flex; align-items: center; gap: 0.45rem; background: rgba(255,255,255,0.94); border: 2px solid var(--ink); border-radius: 3px; padding: 0 0.6rem; width: min(340px, 42vw); }
.ftm3d-search svg { width: 16px; height: 16px; color: var(--slate-2); flex: 0 0 auto; }
.ftm3d-search input { font: inherit; font-size: 0.9rem; border: 0; background: transparent; padding: 0.45rem 0; width: 100%; outline: none; color: var(--ink); }
.ftm3d-filters { position: absolute; z-index: 6; top: 56px; right: 12px; width: min(560px, calc(100% - 24px)); max-height: calc(100% - 70px); overflow: auto; display: none;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 3px; box-shadow: 5px 5px 0 rgba(20,23,27,0.85); padding: 0.7rem 0.9rem 0.85rem; }
.ftm3d-filters.is-open { display: block; }
.ftm3d-filters .fgroup { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.55rem; }
.ftm3d-filters .fgroup-label { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-2); }
.ftm3d-filters .filter-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; border: 0; }
.ftm3d-filters .chip { font: inherit; font-size: 0.78rem; padding: 0.25rem 0.55rem; border: 1.5px solid var(--line-2); background: var(--paper-2); cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; border-radius: 2px; }
.ftm3d-filters .chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.ftm3d-filters .chip-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.ftm3d-filters-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-2); }
.ftm3d-filters .ftm-link-btn { margin-top: 0.7rem; }
.ftm3d-x { font-size: 1.4rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--slate-2); }
.ftm3d-key { position: absolute; z-index: 3; left: 12px; bottom: 12px; max-width: calc(100% - 24px); background: rgba(255,255,255,0.93); border: 1.5px solid var(--line-2); border-radius: 3px; padding: 0.45rem 0.6rem; display: grid; gap: 0.25rem; font-size: 0.78rem; }
.ftm3d-key-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.35rem; }
.ftm3d-key-head { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-2); width: 3.6rem; }
.ftm3d-key-status > span:not(.ftm3d-key-head) { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--slate); margin-right: 0.45rem; }
.ftm3d-tog { font: inherit; font-size: 0.78rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; background: none; border: 1.5px solid transparent; border-radius: 2px; padding: 0.12rem 0.4rem; cursor: pointer; color: var(--ink); }
.ftm3d-tog:hover { border-color: var(--line-2); }
.ftm3d-tog:not(.is-on) { color: var(--slate-2); text-decoration: line-through; opacity: 0.6; }
.ftm3d-line { width: 24px; height: 0; display: inline-block; border-top: 2px solid; }
.ftm3d-line.l-backs { border-color: #c8281e; opacity: 0.7; }
.ftm3d-line.l-works { border-color: #b88318; border-radius: 50% 50% 0 0; height: 6px; border-left: 0; border-right: 0; }
.ftm3d-line.l-venture { border-top: 2.5px dotted #2a4d8a; }
.ftm3d-line.l-person { border-top: 2px dashed #8a6a0f; }
.ftm3d-line.l-advises { border-color: #3f5a70; opacity: 0.8; }
.ftm3d-line.l-firm_tie { border-top: 2px dotted #2f4a5e; }
.ftm-key-sol { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 11px solid #5b7f9b; display: inline-block; flex: 0 0 auto; }
.ftm-panel-ties li { display: grid; gap: 0.15rem; }
.ftm-panel-ties li span { padding-left: 0 !important; }
.ftm3d-hint { position: absolute; z-index: 2; right: 12px; bottom: 12px; margin: 0; font-size: 0.75rem; color: var(--slate-2); background: rgba(255,255,255,0.85); padding: 0.25rem 0.5rem; border-radius: 2px; transition: background .2s, color .2s; pointer-events: none; }
.ftm3d-hint.is-loud { background: var(--ink); color: #fff; }
.ftm3d-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--ink); color: #fff; border-radius: 2px; padding: 0.35rem 0.55rem; max-width: 300px; display: grid; gap: 0.05rem; font-size: 0.85rem; line-height: 1.3; box-shadow: 3px 3px 0 rgba(200,40,30,0.85); }
.ftm3d-tip span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: #f7c9c1; }
.ftm3d-tip[hidden] { display: none; }
.ftm3d-card { position: absolute; z-index: 4; top: 56px; right: 12px; bottom: 12px; width: 340px; overflow: auto; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 3px; box-shadow: 5px 5px 0 rgba(20,23,27,0.85); padding: 1rem 1.1rem; font-size: 0.92rem; }
.ftm3d-card[hidden] { display: none; }
.ftm3d-card h3 { font-size: 1.15rem; margin: 0.15rem 1.5rem 0.45rem 0; line-height: 1.25; }
.ftm3d-card h3 a { color: var(--ink); }
.ftm3d.has-card .ftm3d-hint { display: none; }
@media (max-width: 760px) {
  .ftm-hero-row { align-items: flex-start; }
  .ftm-tab { font-size: 0.78rem; padding: 0.4rem 0.6rem; }
  .ftm3d { height: clamp(460px, 74svh, 680px); box-shadow: 4px 4px 0 var(--ink); }
  .ftm3d-hud-tl { right: 12px; }
  .ftm3d-search { width: 100%; }
  .ftm3d-hud-tr { top: 58px; }
  .ftm3d-hud-tr button { padding: 0.38rem 0.55rem; min-width: 2.1rem; font-size: 0.8rem; }
  .ftm3d-filters { top: 100px; max-height: calc(100% - 112px); }
  .ftm3d-key { font-size: 0.72rem; padding: 0.35rem 0.45rem; }
  .ftm3d-key-status, .ftm3d-hint { display: none; }
  .ftm3d-card { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 56%; }
}

.ftm3d-keybtn { position: absolute; top: 4px; right: 4px; font: inherit; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: none; border: 0; color: var(--slate-2); cursor: pointer; padding: 0.15rem 0.3rem; }
.ftm3d-keybtn::after { content: " \2212"; }
.ftm3d-key { padding-right: 3.2rem; }
.ftm3d-key.is-min { padding: 0; }
.ftm3d-key.is-min .ftm3d-key-row { display: none; }
.ftm3d-key.is-min .ftm3d-keybtn { position: static; padding: 0.35rem 0.6rem; color: var(--ink); }
.ftm3d-key.is-min .ftm3d-keybtn::after { content: " +"; }
@media (max-width: 760px) { .ftm3d-key-row { gap: 0.1rem 0.2rem; } .ftm3d-key-head { width: 100%; } }

@media (min-width: 900px) {
  .ftm3d-key { top: 62px; bottom: auto; width: 214px; padding: 0.55rem 0.6rem 0.6rem; gap: 0.5rem; }
  .ftm3d-key.is-min { width: auto; padding: 0; }
  .ftm3d-key-row { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
  .ftm3d-key-head { width: auto; margin-bottom: 0.1rem; }
  .ftm3d-key-status > span:not(.ftm3d-key-head) { margin: 0.05rem 0 0 0.4rem; }
}

/* one-web view: filters fold behind a button at every width, so the map comes first */
.ftm-explorer .ftm-filters-toggle { display: inline-flex; align-items: center; font: inherit; font-weight: 700; font-size: 0.85rem; background: var(--paper-2); color: var(--ink); border: 2px solid var(--ink); border-radius: 2px; padding: 0.5rem 0.85rem; cursor: pointer; }
.ftm-explorer .ftm-filters-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; }
.ftm-explorer .ftm-filters { display: none; }
.ftm-explorer .ftm-filters.is-open { display: flex; }
.ftm-explorer .ftm-toolbar { margin-bottom: 0.5rem; }
.ftm-explorer .ftm-search input { padding-top: 0.45rem; padding-bottom: 0.45rem; }
.ftm-explorer .ftm-view-head { margin-bottom: 0.5rem; }

/* profile project table: fits its frame at every width */
.ftm-ptable tbody th { min-width: 0; width: 46%; }
.ftm-ptable th, .ftm-ptable td { overflow-wrap: anywhere; }
.ftm-ptable .ftm-fix, .ftm-table tbody th a.ftm-fix { display: inline-block; margin-top: 0.35rem; font-weight: 600; color: var(--red-deep); }
.ftm-ptable .ftm-status { white-space: normal; }
@media (max-width: 640px) {
  .ftm-ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ftm-ptable, .ftm-ptable tbody, .ftm-ptable tr, .ftm-ptable th, .ftm-ptable td { display: block; width: auto; }
  .ftm-ptable tr { padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--line); }
  .ftm-ptable tbody th, .ftm-ptable td { border: 0; padding: 0.15rem 0; text-align: left; }
  .ftm-ptable tbody th { width: auto; margin-bottom: 0.3rem; }
  .ftm-ptable td { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.5rem; font-size: 0.88rem; }
  .ftm-ptable td::before { content: attr(data-label); font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-2); padding-top: 0.2rem; }
}

/* ---------- full screen ---------- */
.fs-btn[hidden] { display: none !important; }
.fs-btn svg { width: 16px; height: 16px; display: block; flex: 0 0 auto; }
html.has-fullscreen, html.has-fullscreen body { overflow: hidden; }
.ftm3d-hud-tr .fs-btn { gap: 0.4rem; }
.ftm3d.is-fullscreen { position: fixed; inset: 0; z-index: 10000; width: 100%; height: 100vh; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
.ftm3d.is-fullscreen canvas { touch-action: none; }
.ftm3d.is-fullscreen .ftm3d-hud-tl { top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); }
.ftm3d.is-fullscreen .ftm3d-hud-tr { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
.ftm3d.is-fullscreen .ftm3d-hud-tr .fs-btn { background: var(--ink); color: #fff; }
@media (max-width: 760px) {
  .ftm3d-hud-tr .fs-btn .fs-label { display: none; }
  .ftm3d.is-fullscreen .ftm3d-hud-tr .fs-btn .fs-label { display: inline; }
  .ftm3d.is-fullscreen .ftm3d-hud-tr .fs-btn .fs-label-long { display: none; }
  .ftm3d.is-fullscreen .ftm3d-hud-tr { top: calc(max(12px, env(safe-area-inset-top)) + 46px); }
}
.ftm-hero-lead a { font-weight: 700; color: var(--red-deep); }

/* ---------- call to action above the corrections form ---------- */
.ftm-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.1rem; background: var(--ink); color: #fff; border-radius: 3px; box-shadow: 6px 6px 0 var(--red); padding: 1rem 1.25rem; margin: 0 0 2rem; }
.ftm-cta-lead { margin: 0; flex: 1 1 15rem; font-size: 1.02rem; line-height: 1.35; }
.ftm-cta-lead strong { color: #fff; }
.ftm-cta-actions { display: flex; gap: 0.6rem; flex: 0 0 auto; }
.ftm-cta .btn-outline { color: #fff; border-color: #fff; background: transparent; }
.ftm-cta .btn-outline:hover { background: #fff; color: var(--ink); }
.ftm-cta-signup { flex: 1 1 21rem; max-width: 28rem; }
.ftm-cta-form { display: flex; gap: 0.5rem; margin: 0; }
.ftm-cta-form input[type=email] { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 0.95rem; padding: 0.55rem 0.7rem; border: 2px solid #fff; border-radius: 2px; background: #fff; color: var(--ink); }
.ftm-cta-form .btn { flex: 0 0 auto; }
.ftm-cta .honeypot { position: absolute; left: -9999px; }
.ftm-cta .form-success { display: none; color: #fff; }
.ftm-cta .form-success.is-shown { display: block; }
.ftm-cta .form-success.is-shown + .ftm-cta-form { display: none; }
@media (max-width: 640px) { .ftm-cta-actions { width: 100%; } .ftm-cta-actions .btn { flex: 1 1 0; text-align: center; } .ftm-cta-signup { max-width: none; } }
.ftm-cta .form-success, .ftm-cta .form-success.is-shown { background: transparent; border: 0; box-shadow: none; padding: 0.3rem 0; color: #fff; font-size: 0.98rem; }
.ftm-cta .form-success strong { color: #fff; }
.ftm-cta-signup { min-width: 0; }
.ftm-cta-form input[type=email] { width: 100%; }
@media (max-width: 640px) { .ftm-cta-signup { flex-basis: 100%; } .ftm-cta-form .btn { padding-left: 0.8rem; padding-right: 0.8rem; } }

/* ---------- Cards fold down to a title bar (October 27) ---------- */
.ftm-panel-min { position: absolute; top: 0.55rem; right: 2.35rem; width: 28px; height: 28px; padding: 0; background: none; border: 0; border-radius: 4px; cursor: pointer; color: var(--slate-2); display: inline-flex; align-items: center; justify-content: center; }
.ftm-panel-min::before { content: ""; width: 8px; height: 8px; border-right: 2.2px solid currentColor; border-bottom: 2.2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.is-min > .ftm-panel-min::before { transform: translateY(2px) rotate(-135deg); }
.ftm-panel-min:hover, .ftm-panel-min:focus-visible { color: var(--ink); background: var(--paper-3); }
.ftm3d-card .ftm-panel-kicker, .ftm-panel .ftm-panel-kicker { padding-right: 3.4rem; }
.ftm3d-card h3, .ftm-panel h3 { margin-right: 3.6rem; }
.ftm3d-card.is-min, .ftm-panel.is-min { cursor: pointer; }
.ftm3d-card.is-min > :not(h3):not(.ftm-panel-min):not(.ftm-panel-close),
.ftm-panel.is-min > :not(h3):not(.ftm-panel-min):not(.ftm-panel-close) { display: none; }
.ftm3d-card.is-min h3, .ftm-panel.is-min h3 { margin: 0 4.2rem 0 0; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftm3d-card.is-min .ftm-panel-min, .ftm3d-card.is-min .ftm-panel-close,
.ftm-panel.is-min .ftm-panel-min, .ftm-panel.is-min .ftm-panel-close { top: 50%; transform: translateY(-50%); }
.ftm3d-card.is-min { bottom: auto; overflow: hidden; padding: 0.7rem 0.9rem; }
/* one web at a time: the folded panel becomes a bar under the map, which takes the full width */
.ftm-stage.has-panel.panel-min { grid-template-columns: minmax(0, 1fr); }
.ftm-stage.has-panel.panel-min .ftm-panel { border-left: 0; border-top: 2px solid var(--ink); max-height: none; overflow: hidden; padding: 0.7rem 0.9rem; }
@media (max-width: 760px) {
  .ftm3d-card { max-height: 50%; }
  .ftm3d-card.is-min { top: auto; bottom: 8px; max-height: none; }
}
