/* Local design study. Original application styles and data stay untouched. */
:root { --acid:#d3df9f; --chalk:#f1eee4; --quiet:#babeb0; }
html { background:#e9e8e0; }
body.map-page { background:#e9e8e0; grid-template-rows:86px minmax(0,1fr) 30px; }
.map-page .site-header { background:#e9e8e0; color:#30372e; border:0; padding-inline:32px; }
.map-page .brand-mark { color:#30372e; font-size:32px; letter-spacing:-3px; }
.map-page .brand-mark span { color:#797f61; }
.map-page .brand-name { color:#454d3d; font-size:10px; letter-spacing:.2em; line-height:1.6; }
.brand-name small { display:block; color:#6b715e; font-size:8px; letter-spacing:.12em; font-weight:500; }
.map-page .site-header nav a,.map-page .site-header nav button { color:#394032; }
.map-page .site-header .nav-cta { background:#3c4537; color:#f4f1e5; border-radius:5px; padding:13px 20px; }
.map-page #mapa { margin:0 22px; padding:12px; border:1px solid #6d7165; border-radius:12px; background:linear-gradient(120deg,#b9beb1,#72796c 30%,#b9bfb1 66%,#666e61); box-shadow:inset 0 1px 1px #fff9,inset 0 -2px 2px #343d32,0 12px 22px #343d3220; }
.map-page #mapa::before,.map-page #mapa::after { background:linear-gradient(130deg,#f3f2dd,#73796d); border:1px solid #52594d; width:7px;height:7px; box-shadow:inset 0 1px #fff9,0 1px 2px #0008; }
.map-page #mapa .map-viewport { border:1px solid #555e4f; border-radius:5px; }
.map-page #mapa[data-board-theme] .map-stage { --surface-light:#b3b6a4; --surface-dark:#8f9581; background:radial-gradient(ellipse at 18% 10%,#f6f6e72e,transparent 64%),repeating-linear-gradient(0deg,#ffffff06 0 1px,#30392906 1px 2px,transparent 2px 4px),radial-gradient(circle,#34412c24 .65px,transparent .9px) 0 0/7px 7px,linear-gradient(125deg,var(--surface-light),var(--surface-dark)); box-shadow:inset 2px 3px 9px #27302255,inset -1px -1px 1px #e9eddb88; }
.map-page #mapa[data-board-theme="carbon"] .map-stage { --surface-light:#646e68; --surface-dark:#3f4b45; }
.map-page #mapa[data-board-theme="blueprint"] .map-stage { --surface-light:#c2cac8; --surface-dark:#929f9d; }
.map-page #mapa .map-stage::after { background:linear-gradient(90deg,#ffffff06,transparent 35%,#ffffff0a 70%,transparent); box-shadow:inset 0 0 50px #2f3c251c; }
.map-page #mapa .board-label { top:32px; left:35px; color:#374030; border-color:#38442e40; font:10px ui-monospace,monospace; letter-spacing:.15em; text-shadow:0 1px #ffffff40; }
.map-page #mapa[data-board-theme="carbon"] .board-label { color:#e5e9da; }
.map-page #mapa .map-status { color:#f0f1e7; background:#374133; border:1px solid #737c62; border-radius:4px; padding:8px 12px; }
.map-page #mapa .board-plaque { background:#3c4638; color:#e6e8d8; border:1px solid #c0c7ac66; padding:8px 13px; bottom:81px; right:30px; letter-spacing:.14em; box-shadow:1px 2px 2px #25302033; }
.map-page #mapa .board-toolbar { min-height:66px; padding:8px 5px 0; gap:18px; }
.map-page #mapa .board-toolbar .filter,.map-page #mapa .board-toolbar .theme-option { color:#202b20; border-radius:4px; font-weight:650; }
.map-page #mapa .board-toolbar .filter.is-active,.map-page #mapa .board-toolbar .theme-option.is-active { color:#f1f0e5; background:#384332; border-color:#384332; box-shadow:inset 0 1px #ffffff20; }
.map-page #mapa .board-toolbar .filter:hover,.map-page #mapa .board-toolbar .theme-option:hover { background:#e5e8d6; color:#26311f; }
.map-page #mapa .board-toolbar .theme-option { border-color:#48513b60; }
.map-page #mapa .board-toolbar .theme-switcher>span { color:#343f2b; }
.map-page #mapa .project-trigger { color:#26321f; background:#d2d8be; border:1px solid #697557; }
.map-page #mapa .pin-point,.map-page #mapa .pin-shaft { display:none; }
.map-page #mapa .pin-head,.map-page #mapa .pin[data-node-id="ty"] .pin-head {
 left:5px; top:5px; width:34px; height:34px; border-radius:50%!important; border:1px solid #4c5347;
 background:conic-gradient(from 30deg,#e9ecdf,#8f988a 20%,#e3e8d9 36%,#636e5e 53%,#d7decb 70%,#f9f9ed 85%,#9fa895);
 box-shadow:inset 0 1px 1px #fff,0 2px 0 #58614f,1px 4px 0 #46503e,3px 7px 5px #26321e77;
 animation:none; transition:filter .15s,translate .15s;
}
.map-page #mapa .pin-head::after { content:''; position:absolute; inset:5px; border-radius:50%; background:radial-gradient(ellipse at 30% 20%,#ffffff55,transparent 58%),linear-gradient(145deg,color-mix(in srgb,var(--pin-color) 70%,#929a7e),color-mix(in srgb,var(--pin-color) 58%,#394432)); border:1px solid #38432c80; box-shadow:inset 0 1px 1px #ffffff66,inset 0 -2px 3px #1d2c2755,0 1px #ffffff88; }
.map-page #mapa .pin[data-category="evidence"] .pin-head,.map-page #mapa .pin[data-category="evidence"] .pin-head::after { border-radius:8px!important; }
.map-page #mapa .pin[data-category="assurance"] .pin-head { border-radius:10px!important; transform:rotate(12deg); }
.map-page #mapa .pin[data-category="assurance"] .pin-head::after { border-radius:5px; }
.map-page #mapa .pin[data-node-id="ty"] .pin-head { width:48px;height:48px;left:-2px;top:-2px; }
.map-page #mapa .pin[data-node-id="ty"] .pin-head::after { inset:6px; background:radial-gradient(ellipse at 25% 15%,#f4f7df,#c5d791 55%,#8a9b59); }
.map-page #mapa .pin[data-node-id="my"] .pin-head::after { background:linear-gradient(145deg,#e6ad85,#ab6d4b); }
.map-page #mapa .pin-label { left:42px;top:14px; padding:6px 9px; background:linear-gradient(130deg,#faf8ef,#e7e8dc); color:#2b3527; border:1px solid #ffffffa0; border-bottom-color:#989f8b; border-radius:2px; box-shadow:1px 2px 2px #34452a33,3px 5px 8px #34452a22; font-size:11px; font-weight:600; }
.map-page #mapa .pin[data-node-id="ty"] .pin-label { left:51px;top:11px;background:#f0f1da; padding:7px 14px; font-size:20px; }
.map-page #mapa .pin[data-node-id="my"] .pin-label { font-size:12px; }
.map-page #mapa .pin:is(:hover,:focus-visible,.is-preview) .pin-head { translate:0 -2px; filter:brightness(1.12); }
.map-page #mapa .pin:is(:hover,:focus-visible,.is-preview) .pin-label { border-color:#435237; box-shadow:0 0 0 2px #eff2df,3px 5px 7px #283c2455; }
.map-page #mapa #threads .thread-knot { display:none; }
.map-page #mapa #threads .thread-shadow { stroke:#303d29; opacity:.2; stroke-width:3; transform:translate(1px,2px); }
.map-page #mapa #threads .thread-bed { stroke:color-mix(in srgb,var(--thread-color) 40%,#556046); stroke-width:2.5; }
.map-page #mapa #threads .thread-core { stroke:color-mix(in srgb,var(--thread-color) 66%,#818b72); stroke-width:1.6; }
.map-page #mapa #threads .thread-highlight { opacity:.35; stroke-width:.4; }
.map-page #mapa #threads .thread-fiber,.map-page #mapa #threads .thread-ply { opacity:.2; }
.map-page #mapa .chat-teaser { background:#354130; border:1px solid #c1c9a760; border-radius:5px; }
.map-page #mapa .chat-dot { background:#d6dfb2; color:#354130; }
.map-page .map-footer { color:#535f48; padding-inline:24px; }
.map-page #mapa .inspector-sheet { background:linear-gradient(130deg,#f4f4e9,#e2e6d7); }
.map-page #mapa .inspector { background:#eef0e5; }
.map-page #mapa .map-navigation { border-color:#45533744; }
.map-page #mapa .map-navigation span,.map-page #mapa .map-navigation button { color:#26341f; }
@media(max-width:700px) { body.map-page { grid-template-rows:68px minmax(0,1fr) 24px; } .map-page .site-header { padding:0 14px; } .map-page #mapa {margin:0 6px;padding:6px;} .map-page #mapa .board-toolbar {gap:3px;min-height:0;padding:3px 0;} .map-page #mapa .board-toolbar .theme-option {padding-inline:9px;} .map-page #mapa .pin-label{font-size:11px;} .map-page .site-header .nav-cta {padding:10px;} }
@media(prefers-reduced-motion:reduce) { .map-page #mapa .pin-head {transition:none;} }
.map-page #mapa[data-board-theme="blueprint"] .board-label { color:#374438; border-color:#37443855; }

/* 02 — a continuous cork-like mineral composite, coloured by neighbourhood. */
.map-page #mapa[data-board-theme="mixed"] .map-stage {
  background:var(--territory-map,linear-gradient(130deg,#a79d87,#869ba0,#8e9e7d)) center / 100% 100% no-repeat;
  isolation:isolate;
}
.map-page #mapa[data-board-theme="mixed"] .map-stage::before {
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:url('assets/cork.png') center / 100% 100%;
  filter:grayscale(1) contrast(1.2) brightness(1.25);
  mix-blend-mode:soft-light; opacity:.8;
}
.map-page #mapa[data-board-theme="mixed"] .map-stage::after {
  background:linear-gradient(120deg,#fff6df18,transparent 45%,#26352b15);
  box-shadow:inset 2px 3px 10px #26332960;
}
.map-page #mapa[data-board-theme="mixed"] .board-label {color:#30382d;border-color:#38442e60;}
.map-page #mapa .pin-head::after {
  background:radial-gradient(ellipse at 27% 18%,#ffffff80,transparent 47%),linear-gradient(145deg,var(--pin-color) 30%,color-mix(in srgb,var(--pin-color) 83%,#152339));
  border-color:#18242099;
}
.map-page #mapa .pin[data-node-id="my"] .pin-head::after { background:radial-gradient(ellipse at 27% 18%,#ffffff80,transparent 47%),linear-gradient(145deg,#ef6747,#ba3924); }
.map-page #mapa .board-toolbar .filter[data-filter]:not([data-filter="all"])::before {
  content:'';display:inline-block;width:7px;height:7px;margin-right:6px;
  border-radius:50%;background:var(--category-color);box-shadow:0 0 0 1px #ffffff66;
}
@media(max-width:700px) {
  .map-page #mapa .board-toolbar {grid-template-columns:auto minmax(0,1fr);}
  .map-page #mapa .board-toolbar .theme-option {padding:9px 7px;}
  .map-page #mapa .project-trigger {min-width:86px;padding-inline:7px;}
}
/* 03 — three-material aggregate and category-specific sculpted magnets. */
.map-page #mapa .pin-head.sculpted {
  width:42px;height:42px;left:1px;top:1px;transform:none;
  background:none;border:0;box-shadow:none;border-radius:0!important;
  filter:drop-shadow(0 2px 0 #475041) drop-shadow(2px 4px 2px #17211b88);
}
.map-page #mapa .pin-head.sculpted::after {display:none;}
.pin-head.sculpted svg {display:block;width:100%;height:100%;overflow:visible;}
.map-page #mapa .pin:is(:hover,:focus-visible,.is-preview) .pin-head.sculpted {filter:brightness(1.12) drop-shadow(2px 4px 2px #17211b88);}
.map-page #mapa[data-board-theme="mixed"] .map-stage::before {opacity:.33;}
.material-region {position:absolute;z-index:1;pointer-events:none;color:#f1f0e7;background:#333c32e8;border:1px solid #edf1d84a;border-left:4px solid var(--region-color);border-radius:2px;padding:6px 10px;font:9px ui-monospace,monospace;letter-spacing:.13em;box-shadow:0 2px 4px #18251830;}
.map-page #mapa .board-label {display:none;}
.map-page #mapa .pin-label {background:#f5f4e9;box-shadow:1px 2px 3px #15221966;}
.map-page #mapa #threads .thread-core {stroke-width:2;stroke:color-mix(in srgb,var(--thread-color) 85%,#eee7d5);}

/* 04 — cold brushed alloy / server-room instrument panel. */
html,body.map-page {background:#0b131e;color:#dce9f5;}
body.map-page {background:radial-gradient(ellipse at 50% 0,#21354a,transparent 65%),#0b131e;}
.map-page .site-header {background:transparent;color:#dce9f5;border-bottom:1px solid #8cdcff12;}
.map-page .brand-mark {color:#e5f4ff;font-weight:800;}
.map-page .brand-mark span {color:#7edcff;}
.map-page .brand-name {color:#c0d7e7;}
.brand-name small {color:#6c9bb5;letter-spacing:.19em;}
.map-page .site-header nav a,.map-page .site-header nav button {color:#afc8da;}
.map-page .site-header .nav-cta {color:#bdefff;background:linear-gradient(#234358,#152b3e);border:1px solid #5b9db47d;box-shadow:inset 0 1px #b2eeff30,0 0 20px #43c6ff0c;}
.map-page #mapa {padding:13px;border-radius:9px;border:1px solid #6d8da5;background:linear-gradient(125deg,#597083,#233441 8%,#101e2c 45%,#3e5669 80%,#253746);box-shadow:inset 0 1px 1px #d6eeff99,inset 0 -2px 2px #020811,0 18px 40px #0007,0 0 32px #58bfff0c;}
.map-page #mapa::before,.map-page #mapa::after {background:linear-gradient(135deg,#c5e1ee,#334d63);border-color:#112033;box-shadow:inset 0 1px #eefaff80,0 1px 2px #0009;}
.map-page #mapa .map-viewport {border:1px solid #a9d5f54d;border-radius:3px;box-shadow:0 0 0 2px #0b1828,0 0 12px #43c8ff20;}
.map-page #mapa[data-board-theme="mixed"] .map-stage {background:var(--territory-map) center / 100% 100% no-repeat;box-shadow:inset 0 0 70px #07182c55;}
.map-page #mapa[data-board-theme="mixed"] .map-stage::before {
  background:repeating-linear-gradient(0deg,#d9f1ff0b 0 1px,#03172b09 1px 2px,transparent 2px 4px),linear-gradient(112deg,transparent 15%,#d0efff17 33%,transparent 49%,#c8efff12 78%,transparent 91%);
  opacity:1;filter:none;mix-blend-mode:normal;
}
.map-page #mapa[data-board-theme="mixed"] .map-stage::after {
  background:linear-gradient(#c0e7ff09 1px,transparent 1px) 0 0/96px 96px,linear-gradient(90deg,#c0e7ff09 1px,transparent 1px) 0 0/96px 96px;
  box-shadow:inset 0 1px #d7f4ff66,inset 0 -1px #93d7ff55,inset 0 0 60px #00112645;
}
.map-page #mapa .pin-label {background:linear-gradient(115deg,#d7e5ee,#a8bdcd);color:#122a3c;border:1px solid #d0e9f599;border-bottom-color:#526d84;border-radius:2px;box-shadow:1px 2px 0 #1e334a,3px 5px 8px #0a172c77;font-weight:650;}
.map-page #mapa .pin-label > span {color:#3b576a;}
.map-page #mapa .pin[data-node-id="ty"] .pin-label {background:linear-gradient(120deg,#e2f7ff,#aacbdc);color:#122c40;border:1px solid #dbf8ff;}
.map-page #mapa .pin[data-node-id="ty"] .pin-head {background:conic-gradient(#e7f7ff,#597e97,#d7f5ff,#38546b,#edfaff);border-color:#233f57;box-shadow:0 2px 1px #122a3c,0 0 0 5px #79d9ff13,0 0 26px #73d8ff40,3px 5px 6px #0008;}
.map-page #mapa .pin[data-node-id="ty"] .pin-head::after {background:radial-gradient(ellipse at 25% 15%,#fff,#9ce0f9 45%,#367e9c);border-color:#4e93ae;}
.map-page #mapa .pin[data-node-id="my"] .pin-head {background:conic-gradient(#e7f7ff,#597e97,#d7f5ff,#38546b,#edfaff);}
.map-page #mapa .pin:is(:hover,:focus-visible,.is-preview) .pin-label {border-color:#b2ebff;box-shadow:0 0 0 2px #3b90ae,0 0 18px #82dcff50;}
.map-page #mapa .pin-head.sculpted {filter:drop-shadow(0 2px 0 #23374d) drop-shadow(2px 4px 3px #00102299);}
.map-page #mapa #threads .thread-shadow {stroke:#091d30;stroke-width:4;opacity:.5;}
.map-page #mapa #threads .thread-bed {stroke:color-mix(in srgb,var(--thread-color) 50%,#19304d);stroke-width:2.7;}
.map-page #mapa #threads .thread-core {stroke:color-mix(in srgb,var(--thread-color) 76%,#daf4ff);stroke-width:1.65;}
.map-page #mapa #threads .thread-highlight {stroke:#e5f6ff;stroke-width:.5;opacity:.65;}
.map-page #mapa #threads g.is-preview {filter:drop-shadow(0 0 3px #b3e9ff55);}
.material-region {background:#11283bbd;color:#c1deee;border:1px solid #b1d8f044;border-left:3px solid var(--region-color);box-shadow:inset 0 1px #c4e8ff0f,0 2px 4px #00152d33;letter-spacing:.18em;}
.map-page #mapa .map-status {background:#10283ae8;border:1px solid #649ab361;color:#b7daeb;border-radius:3px;}
.map-page #mapa .status-dot {background:#7edfff;box-shadow:0 0 9px #52cfff90;}
.map-page #mapa .board-plaque {background:#152c3e;color:#9cbfd4;border:1px solid #8dbed43d;}
.map-page #mapa .board-toolbar .filter,.map-page #mapa .board-toolbar .theme-option {color:#a8c1d4;}
.map-page #mapa .board-toolbar .filter.is-active,.map-page #mapa .board-toolbar .theme-option.is-active {background:#aacbdf;color:#10293c;border-color:#baddf0;box-shadow:inset 0 1px #ebfaff;}
.map-page #mapa .board-toolbar .filter:hover,.map-page #mapa .board-toolbar .theme-option:hover {background:#44647d;color:#e5f4ff;}
.map-page #mapa .board-toolbar .theme-option {border-color:#6e98b350;}
.map-page #mapa .board-toolbar .theme-switcher>span {color:#86a9c0;}
.map-page #mapa .project-trigger {background:#173144;color:#b8dced;border-color:#608ba64d;}
.map-page #mapa .chat-teaser {background:linear-gradient(120deg,#142b3d,#10202e);border-color:#86bdd44d;box-shadow:0 4px 12px #05142655;}
.map-page #mapa .chat-dot {background:#a7ddef;color:#173448;box-shadow:0 0 12px #77d7ff25;}
.map-page #mapa .chat-teaser small {color:#94d5f3;}
.map-page #mapa .chat-teaser em {color:#9cb5c8;}
.map-page .map-footer {color:#7291aa;}
.map-page #mapa .map-navigation span,.map-page #mapa .map-navigation button {color:#b4d3e6;}
.map-page #mapa .inspector-sheet {background:linear-gradient(130deg,#e3edf3,#c3d4df);}
/* 05 — material-specific finishes, fine cellular seams, linked selection. */
.map-page #mapa[data-board-theme="mixed"] .map-stage::before {
  background:linear-gradient(112deg,transparent 15%,#d0efff09 33%,transparent 49%,#c8efff06 78%,transparent 91%);
}
.material-region small {display:block;font:7px ui-monospace,monospace;letter-spacing:.16em;color:#9eb8ca;margin-top:5px;}
.material-region {transition:opacity 180ms ease,box-shadow 180ms ease;}
.material-region.region-muted {opacity:.22;}
.material-region.region-selected {border-color:#b4e2fa;border-left-color:var(--region-color);box-shadow:0 0 0 1px #9bd8ff35,0 0 18px #86cfff25;}
@media(prefers-reduced-motion:reduce){.material-region{transition:none;}}
/* Detailed explanations: readable paragraphs within the existing scrollable dialog. */
.map-page #mapa .inspector-copy {max-width:76ch;color:#263e4e;}
.map-page #mapa .inspector-copy section {margin:0 0 22px;}
.map-page #mapa .inspector-copy h3 {font:700 11px/1.5 ui-sans-serif,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#375970;margin:0 0 7px;}
.map-page #mapa .inspector-copy p {font:400 15px/1.75 ui-sans-serif,system-ui,sans-serif;margin:0;}
@media(max-width:700px){.map-page #mapa .inspector-copy p{font-size:14px;line-height:1.7;}}
/* Ty remains the main invitation, including while a category is selected. */
.map-page #mapa .pin[data-node-id="ty"] {z-index:9;opacity:1!important;}
.map-page #mapa .pin[data-node-id="ty"] .pin-head {width:62px;height:62px;left:-9px;top:-9px;box-shadow:0 2px 1px #122a3c,0 0 0 7px #9bdeff19,0 0 0 15px #9bdeff0c,0 0 34px #8be3ff70,4px 7px 10px #06172a88;}
.map-page #mapa .pin[data-node-id="ty"] .pin-label {left:54px;top:-4px;max-width:none;display:flex;gap:12px;padding:10px 14px;transform:none;background:linear-gradient(115deg,#edfbff,#b7dced);box-shadow:0 0 0 1px #a8e3ff70,3px 6px 12px #071a2d80;}
.map-page #mapa .pin[data-node-id="ty"] .pin-label strong {font-size:25px;letter-spacing:-.04em;}
.map-page #mapa .pin[data-node-id="ty"] .pin-label .ty-invitation {display:block;color:#18394c;font-size:12px;font-weight:650;line-height:1.5;}
.map-page #mapa .ty-invitation small {display:block;font-size:10px;color:#315c73;}
.map-page #mapa .pin[data-node-id="ty"]:focus-visible {outline:3px solid #d7f5ff;outline-offset:13px;}
.map-page #mapa .inspector-detail {grid-template-columns:110px minmax(0,1fr) minmax(0,1fr);}
.map-page #mapa .inspector-heading {grid-column:2 / -1;min-width:0;}
.map-page #mapa .inspector-symbol {grid-row:1;width:94px;}
.map-page #mapa .inspector-copy {margin-top:24px;}
.map-page #mapa .inspector[data-active-node="ty"] h2 {max-width:20ch;font-size:clamp(32px,4vw,60px);line-height:1.05;}
.map-page #mapa .inspector[data-active-node="ty"] .inspector-symbol {background:radial-gradient(ellipse at 25% 15%,#fff,#9ce0f9 45%,#367e9c);}
@media(max-width:700px){
  .map-page #mapa .inspector-detail {grid-template-columns:minmax(0,1fr);}
  .map-page #mapa .inspector-heading {grid-column:1;}
  .map-page #mapa .inspector-symbol {width:64px;}
  .map-page #mapa .pin[data-node-id="ty"] .pin-label {gap:8px;padding:9px 10px;left:49px;}
  .map-page #mapa .pin[data-node-id="ty"] .pin-label strong {font-size:22px;}
  .map-page #mapa .pin[data-node-id="ty"] .pin-label .ty-invitation {font-size:11px;}
}
@media(min-width:701px){
  .map-page #mapa .inspector-detail {grid-template-columns:repeat(12,minmax(0,1fr));}
  .map-page #mapa .inspector-symbol {grid-column:1 / 3;grid-row:1;}
  .map-page #mapa .inspector-heading {grid-column:3 / -1;}
  .map-page #mapa .inspector-block {grid-column:span 4;min-width:0;}
  .map-page #mapa .inspector-tasks,.map-page #mapa .inspector-action {grid-column:span 6;min-width:0;}
}
.map-page #mapa .collaboration-note {margin:20px 0 28px;padding:18px 20px;border-left:3px solid #54839b;background:#b6d0df45;color:#243f50;max-width:76ch;}
.map-page #mapa .collaboration-note strong {font-size:15px;}
.map-page #mapa .collaboration-note p {margin:8px 0 0;font-size:14px;line-height:1.7;}

/* Strategic narrative: a compact entry to the existing metal board. */
.map-page .board-intro{display:grid;grid-template-columns:1fr 1fr;gap:32px;padding:28px 32px;background:#102230;color:#e7f4fb;border-bottom:1px solid #58798b;}
.board-intro h1{font-size:clamp(24px,2.6vw,40px);line-height:1.12;margin:8px 0 12px;letter-spacing:-.025em;}
.board-intro p{max-width:64ch;font-size:14px;line-height:1.6;color:#bcd2df;margin:8px 0;}
.board-intro .kicker{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#9be2fa;}
.journey{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-content:center;}
.journey button{background:#1a3344;border:1px solid #456276;border-radius:5px;text-align:left;padding:12px;color:#eef8ff;font:inherit;cursor:pointer;}
.journey button small{display:block;font-size:9px;letter-spacing:.1em;color:#8bcbdf;margin-bottom:6px;}
.journey button span{float:right;color:#9be2fa;}.journey p{grid-column:1/-1;font-size:12px;}
.journey button:hover,.journey button:focus-visible{background:#294e63;outline:2px solid #a2e5fa;outline-offset:2px;}
.map-page #mapa button.relation-chip{font:inherit;font-size:12px;text-align:left;cursor:pointer;white-space:normal;}
.map-page #mapa button.relation-chip:hover,.map-page #mapa button.relation-chip:focus-visible{outline:2px solid #367e9c;background:#dceef7;}
@media(max-width:700px){.map-page .board-intro{grid-template-columns:1fr;padding:20px;gap:12px;}.board-intro h1{font-size:28px;}.journey button{font-size:12px;}}
.map-page{display:block;height:auto;min-height:100svh;overflow:auto;}
.map-page .map-main{display:grid;grid-template-rows:auto minmax(580px,calc(100svh - 320px));}
.map-page .board-intro h1{max-width:none;width:auto;font-family:inherit;font-weight:650;font-size:clamp(24px,2.3vw,34px);line-height:1.15;}
.map-page .board-intro{padding:20px 32px;}
@media(max-width:700px){.map-page .map-main{grid-template-rows:auto 650px;}.map-page .board-intro{padding:18px 20px;}.map-page .board-intro h1{font-size:25px;}}

/* Alloy detail pass: category stacks, multicolour hub, softly frayed yarn. */
.map-page #mapa .board-toolbar .filter[data-filter]:not([data-filter="all"])::before{display:none;}
.map-page #mapa .board-toolbar .filter{display:inline-flex;align-items:center;gap:8px;min-height:40px;}
.magnet-stack{position:relative;display:inline-block;width:30px;height:29px;flex:none;margin-right:2px;}
.magnet-stack svg{position:absolute;width:23px;height:23px;left:6px;top:0;filter:drop-shadow(0 1px 1px #051521a0);}
.magnet-stack svg:nth-child(1){transform:translate(-5px,6px) rotate(-18deg);filter:brightness(.65) drop-shadow(0 1px 1px #051521a0);}
.magnet-stack svg:nth-child(2){transform:translate(-2px,3px) rotate(12deg);filter:brightness(.85);}
.magnet-stack svg:nth-child(3){transform:rotate(-5deg);}
.map-page #mapa .ty-orbits{position:absolute;pointer-events:none;left:-18px;top:-18px;width:80px;height:80px;border-radius:50%;background:conic-gradient(from 25deg,#d99b55,#e5c968,#8bc992,#77c7ed,#b89ce6,#d99b55);-webkit-mask:radial-gradient(transparent 64%,#000 65%,#000 68%,transparent 69%);mask:radial-gradient(transparent 64%,#000 65%,#000 68%,transparent 69%);filter:drop-shadow(0 0 3px #b2d9f8);opacity:.9;}
.map-page #mapa .pin[data-node-id="ty"] .pin-head{box-shadow:0 2px 1px #122a3c,0 0 0 5px #9bdeff22,0 0 0 13px #a89cdc14,0 0 35px #8be3ff60,4px 7px 10px #06172a88;animation:ty-soft-nudge 3.8s ease-in-out infinite;}
.map-page #mapa .ty-orbits{animation:ty-orbit-breathe 5.5s ease-in-out infinite;}
@keyframes ty-soft-nudge{0%,60%,100%{translate:0 0;rotate:0deg;}68%{translate:-2px -1.2px;rotate:-3deg;}76%{translate:2px .6px;rotate:3deg;}84%{translate:-1px -.5px;rotate:-1.5deg;}92%{translate:.5px 0;rotate:.75deg;}}
@keyframes ty-orbit-breathe{0%,100%{scale:1;opacity:.7;}50%{scale:1.055;opacity:1;}}
.map-page #mapa .pin[data-node-id="ty"]:hover .pin-head,.map-page #mapa .pin[data-node-id="ty"]:focus-visible .pin-head{animation-play-state:paused;}
.map-page #mapa #threads .thread-fiber{stroke-width:.55;opacity:.43;stroke-linecap:round;}
@media(prefers-reduced-motion:reduce){.map-page #mapa .pin[data-node-id="ty"] .pin-head,.map-page #mapa .ty-orbits{animation:none;}}

/* Clear category stacks at the bottom; no duplicate labels on the board. */
.map-page #mapa .material-region,.map-page #mapa .board-plaque,.map-page #mapa .board-label{display:none;}
.map-page #mapa .magnet-stack{width:37px;height:35px;overflow:visible;}
.map-page #mapa .magnet-stack svg{display:block;width:29px;height:29px;left:6px;top:0;}

/* TY: coloured concentric inlays inside its metal rim. */
.map-page #mapa .ty-orbits{display:none;}
.map-page #mapa .pin[data-node-id="ty"] .pin-head::after{
 background:radial-gradient(ellipse at 32% 24%,#ffffff90,transparent 48%),radial-gradient(circle,#bceafa 0 32%,#73bcd7 33% 38%,#b49bdd 39% 44%,#a6d5ec 45% 50%,#86b99c 51% 56%,#a6d5ec 57% 62%,#d9bb73 63% 68%,#c18b72 69% 74%,#7bb5ce 75% 100%);
 box-shadow:inset 0 1px 4px #fff7,inset 0 -2px 5px #173a5066;
}

/* Opaque modal surfaces, independent from the animated board scene. */
.map-page #mapa{isolation:isolate;}
.map-page #mapa .map-viewport{position:relative;z-index:0;isolation:isolate;}
.map-page #mapa .inspector,.map-page #mapa .project-drawer{z-index:100;opacity:1;animation:none;transform:none;mix-blend-mode:normal;backdrop-filter:none;isolation:isolate;background:#d5e2eb;}
.map-page #mapa .inspector-sheet{background:linear-gradient(130deg,#e3edf3,#c3d4df);opacity:1;min-height:100%;}
.map-page #mapa.has-open-dialog #pins,.map-page #mapa.has-open-dialog #threads,.map-page #mapa.has-open-dialog .chat-teaser{visibility:hidden;}
.map-page #mapa .project-drawer{color:#203b4d;display:block;overflow:auto;padding-top:64px;}
.map-page #mapa .project-drawer[hidden]{display:none;}
.map-page #mapa .project-copy{max-width:76ch;}.map-page #mapa .project-copy>p:not(.kicker){color:#365369;line-height:1.7;}
.map-page #mapa .project-capabilities{display:none;}
/* Clickable plates stay in the steel palette; colour belongs to their magnets. */
.map-page #mapa .inspector-cta,.map-page #mapa .form-submit button{position:relative;background:linear-gradient(130deg,#24485e,#173246);color:#edf8ff;border:1px solid #557d94;border-radius:5px;box-shadow:inset 0 1px #badcea33,0 3px 8px #122c4030;padding-left:42px;}
.map-page #mapa .inspector-cta::before,.map-page #mapa .form-submit button::before{content:"";position:absolute;left:13px;top:50%;width:17px;height:17px;border-radius:50%;transform:translateY(-50%);background:radial-gradient(circle at 30% 25%,#eaffff,#63bdd8 45%,#30687c 80%);border:2px solid #bddbe8;box-shadow:1px 2px 3px #091923aa;}
.map-page #mapa .inspector-cta:hover,.map-page #mapa .form-submit button:hover{background:#315e77;}
.map-page #mapa .inspector-cta:focus-visible,.map-page #mapa .form-submit button:focus-visible{outline:3px solid #3b82a6;outline-offset:3px;}
.map-page #mapa .inspector-close,.map-page #mapa .contact-back,.map-page #mapa .project-close{background:#d8e6ef;color:#203c50;border:1px solid #91adbf;border-radius:4px;backdrop-filter:none;}
.map-page #mapa .contact-form :is(input,textarea,select){background:#edf4f8;color:#203a4b;border:1px solid #a2bacb;accent-color:#356d8b;}

.honeypot{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden;}
.map-page .map-footer{height:auto;min-height:28px;flex-wrap:wrap;gap:12px;}

/* Entry paths describe the visitor's situation; the board retains the detail. */
.map-page .board-intro{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:center;gap:30px;}
.board-intro .intro-lead{font-size:12px;color:#a9c3d3;max-width:66ch;}
.intro-lead strong{color:#e4f4fb;}
.journey .journey-heading{margin:0 0 2px;font-size:13px;color:#d9edf7;font-weight:650;}
.journey button{position:relative;padding:12px 14px;}
.journey button strong{display:block;font-size:14px;line-height:1.4;font-weight:600;}
.journey button .journey-detail{display:block;float:none;font-size:12px;line-height:1.5;color:#b9d1df;margin-top:5px;}
.journey .journey-note{font-size:11px;line-height:1.5;margin:3px 0 0;}
.intro-start{display:inline-flex;align-items:center;gap:10px;margin-top:5px;padding:10px 14px;background:linear-gradient(120deg,#274b61,#19394d);border:1px solid #6a96ac;border-radius:5px;color:#effaff;font:inherit;font-size:13px;cursor:pointer;}
.intro-start i{width:18px;height:18px;flex:none;border:2px solid #b5d6e5;border-radius:50%;background:radial-gradient(circle,#a7e1ee 0 30%,#b09bce 31% 44%,#8eb5a2 45% 60%,#cdb27e 61% 73%,#6597af 74%);box-shadow:1px 2px 4px #07121c;}
.intro-start:hover,.intro-start:focus-visible{background:#315a70;outline:2px solid #a2e5fa;outline-offset:3px;}
@media(max-width:900px){.map-page .board-intro{grid-template-columns:1fr;gap:16px;}.board-intro p{max-width:80ch;}}
@media(max-width:440px){.journey{grid-template-columns:1fr;}.journey button{padding:10px 12px;}.journey button strong{font-size:13px;}}

/* Three client situations, shared readiness for iterative work. */
.map-page .journey{grid-template-columns:1fr;gap:7px;}
.journey button{padding:10px 14px;}
.journey button small{margin-bottom:3px;}
.journey .journey-note a{display:inline-block;color:#c4ecff;text-underline-offset:3px;margin-top:3px;}

/* Compact entry; the board uses the remaining viewport, not a fixed page height. */
.map-page .board-intro{padding:12px 24px;gap:24px;grid-template-columns:1fr 1.4fr;}
.map-page .board-intro h1{font-size:clamp(22px,2vw,30px);margin:4px 0;}
.board-intro .kicker{margin:0;}
.board-intro .journey{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.board-intro .journey-heading{margin:0;}
.journey a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;background:#1a3344;border:1px solid #456276;border-radius:5px;color:#eef8ff;text-decoration:none;font-size:13px;line-height:1.4;}
.journey a:hover,.journey a:focus-visible{background:#294e63;outline:2px solid #a2e5fa;outline-offset:2px;}
@media(min-width:1000px){
  body.map-page{display:grid;height:100dvh;min-height:0;overflow:hidden;grid-template-rows:64px minmax(0,1fr) auto;}
  .map-page .map-main{grid-template-rows:auto minmax(0,1fr);}
  .map-page #mapa{height:auto;min-height:0;margin:0 12px 4px;}
  .map-page #mapa .map-viewport{overflow:hidden;}
  .map-page #mapa .map-stage{min-width:0;min-height:0;}
  .map-page #mapa .map-navigation{display:none;}
  .map-page .map-footer{padding:4px 16px;min-height:24px;font-size:10px;}
}
@media(max-width:999px){
  .map-page .board-intro{grid-template-columns:1fr;gap:12px;padding:14px 18px;}
  .board-intro .journey{grid-template-columns:1fr;gap:6px;}
  .journey a{padding:9px 12px;}
}
