/* Real geographical map (IGN boundaries; latitude/longitude in WGS84). */
body.tm-network-page .map-stage-real{
  position:relative;width:100%;min-height:0;height:auto;aspect-ratio:750/395;
  background:linear-gradient(150deg,#f5f8fb,#e6ebf0);border-radius:14px;overflow:hidden;
}
body.tm-network-page .map-stage-real svg{width:100%;height:100%;display:block;overflow:visible}
body.tm-network-page .map-stage-real .geo-region{
  stroke:#8ea0ae;stroke-width:1.1;fill:#dae2e9;vector-effect:non-scaling-stroke;
  cursor:pointer;transition:fill .14s;
}
body.tm-network-page .map-stage-real .geo-region:hover,
body.tm-network-page .map-stage-real .geo-region.is-highlighted{
  fill:#f6bdca;stroke:#dd0033;stroke-width:2.2;
}
body.tm-network-page .map-stage-real .geo-region.has-centers{fill:#c0ced9}
body.tm-network-page .map-stage-real .geo-region.is-highlighted.has-centers{fill:#f5b4c5}
body.tm-network-page .map-stage-real .geo-label{
  font:600 12px Inter,Arial,sans-serif;fill:#3c505e;
  text-anchor:middle;pointer-events:none;paint-order:stroke;stroke:#fff;stroke-width:2.6px;
}
body.tm-network-page .map-stage-real .geo-pin{
  cursor:pointer;stroke:#fff;stroke-width:3.2;fill:#e3032e;
  filter:drop-shadow(1px 2px 2px #2226);
}
body.tm-network-page .map-stage-real .geo-pin:focus-visible{outline:3px solid #e3032e}
body.tm-network-page .map-stage-real .geo-pin:hover{fill:#a60020}
body.tm-network-page #mapWrap .map-stage{transform:none!important}
body.tm-network-page #mapWrap #geoMap{max-width:100%}
body.tm-network-page #mapSetup{z-index:1;position:relative}
body.tm-network-page .map-title small{display:block}

/* Collaborator detail: same split-screen layout as the supplied ZIP mockup. */
body.tm-network-page dialog.network-contact-dialog{
  width:min(1060px,calc(100vw - 26px))!important;
  max-width:min(1060px,calc(100vw - 26px))!important;
  height:min(880px,calc(100vh - 36px))!important;
  max-height:calc(100vh - 36px)!important;
  margin:auto;padding:0!important;border:0;border-radius:20px;overflow:auto;
  box-shadow:0 28px 100px #0007;background:#fff;color:#101419;
}
body.tm-network-page dialog.network-contact-dialog::backdrop{background:#000a;backdrop-filter:blur(5px)}
body.tm-network-page .network-contact-dialog .close{
  position:sticky;float:right;top:14px;right:14px;z-index:6;
  width:38px;height:38px;line-height:1;border-radius:50%;
  background:#e6e9ec;border:0;color:#0a141d;cursor:pointer;
  margin:14px 16px -52px 0;
}
body.tm-network-page .network-profile-layout{
  min-height:100%;display:grid;grid-template-columns:44% minmax(0,56%);
}
body.tm-network-page .network-profile-intro{
  background:#10151a;color:#fff;padding:62px 44px 44px;min-width:0;
}
body.tm-network-page .network-profile-intro .eyebrow{
  font:700 13px Inter,Arial,sans-serif;letter-spacing:2px;color:#95b6d4;
}
body.tm-network-page .network-profile-intro h2{
  font:800 clamp(34px,4vw,50px)/1.1 "Barlow Condensed",Arial,sans-serif;
  margin:24px 0 18px;color:#fff;
}
body.tm-network-page .network-profile-intro .description{
  font:400 16px/1.6 Inter,Arial,sans-serif;color:#dce5f0;margin:16px 0;
}
body.tm-network-page .network-profile-intro .specialties{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0 30px;}
body.tm-network-page .network-profile-intro .specialties span{
  border:1px solid #47515a;border-radius:22px;padding:8px 11px;
  font:600 11px Inter,Arial,sans-serif;color:#f6f8fb;
}
body.tm-network-page .network-profile-intro .facts p{
  font:600 13px/1.6 Inter,Arial,sans-serif;margin:11px 0;overflow-wrap:anywhere;
}
body.tm-network-page .network-profile-intro .facts a{color:#fff;text-decoration:underline}
body.tm-network-page .network-profile-request{padding:60px 46px 44px;min-width:0;}
body.tm-network-page .network-profile-request .eyebrow{
  font:800 12px Inter,Arial,sans-serif;letter-spacing:2px;color:#e3032e;
}
body.tm-network-page .network-profile-request h2{
  font:800 34px/1.2 "Barlow Condensed",Arial,sans-serif;margin:12px 0 18px;color:#0d131b;
}
body.tm-network-page .network-profile-request form{display:grid;gap:12px;}
body.tm-network-page .network-form-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;
}
body.tm-network-page .network-profile-request label:not(.network-consent,.network-honeypot){
  font:700 12px Inter,Arial,sans-serif;display:grid;gap:7px;min-width:0;
}
body.tm-network-page .network-profile-request input:not([type=checkbox]):not([type=hidden]),
body.tm-network-page .network-profile-request select,
body.tm-network-page .network-profile-request textarea{
  width:100%;min-width:0;max-width:100%;padding:12px 13px;border:1px solid #d5dae0;
  border-radius:9px;background:#fff;box-sizing:border-box;
  font:400 13px Inter,Arial,sans-serif;color:#111;
}
body.tm-network-page .network-profile-request input[type=file]{font-size:11px}
body.tm-network-page .network-profile-request textarea{min-height:100px;resize:vertical;}
body.tm-network-page .network-consent{
  display:flex;gap:10px;align-items:flex-start;
  font:500 11px/1.5 Inter,Arial,sans-serif;
}
body.tm-network-page .network-consent input{margin-top:3px;accent-color:#e3032e}
body.tm-network-page .network-consent a{color:#e3032e;text-decoration:underline}
body.tm-network-page .network-privacy-note{
  font:400 10px/1.5 Inter,Arial,sans-serif;color:#677483;margin:0;
}
body.tm-network-page .network-send{
  border:0;border-radius:9px;padding:16px 20px;background:#e3032e;
  color:#fff;font:800 13px Inter,Arial,sans-serif;cursor:pointer;
}
body.tm-network-page .network-send:disabled{opacity:.6;cursor:wait}
body.tm-network-page .network-submit-status{font:600 12px/1.5 Inter,Arial,sans-serif;color:#116843}
body.tm-network-page .network-submit-status.is-error{color:#b60026}
body.tm-network-page .network-honeypot{position:absolute!important;left:-99999px!important}
@media(max-width:760px){
 body.tm-network-page .network-profile-layout{grid-template-columns:1fr;}
 body.tm-network-page .network-profile-intro{padding:36px 23px;}
 body.tm-network-page .network-profile-request{padding:28px 22px 36px;}
 body.tm-network-page .network-form-grid{grid-template-columns:1fr;}
 body.tm-network-page dialog.network-contact-dialog{height:calc(100vh - 24px)!important;max-height:calc(100vh - 24px)!important;}
 body.tm-network-page .map-stage-real .geo-label{display:none}
}

/* Selected service: the red fill follows the current filter selection. */
body.tm-network-page .service-level.active,
body.tm-network-page .service-level[aria-pressed="true"] {
  background:#e3032e!important;
  border-color:#e3032e!important;
  box-shadow:0 8px 20px rgba(227,3,46,.18)!important;
  color:#fff!important;
}
body.tm-network-page .service-level.active small,
body.tm-network-page .service-level.active b,
body.tm-network-page .service-level.active span,
body.tm-network-page .service-level[aria-pressed="true"] small,
body.tm-network-page .service-level[aria-pressed="true"] b,
body.tm-network-page .service-level[aria-pressed="true"] span {color:#fff!important;}
body.tm-network-page .service-level:focus-visible {outline:3px solid #e3032e;outline-offset:3px;}

/* Full label is interactive for small Ceuta and Melilla. */
body.tm-network-page .geo-label-hit {pointer-events:all;cursor:pointer;}
body.tm-network-page .geo-label-hit .geo-label-hitbox {
  fill:transparent;stroke:transparent;stroke-width:1;pointer-events:all;
}
body.tm-network-page .geo-label-hit .geo-label-clickable {
  pointer-events:all;cursor:pointer;
}
body.tm-network-page .geo-label-hit:hover .geo-label-clickable,
body.tm-network-page .geo-label-hit:focus .geo-label-clickable,
body.tm-network-page .geo-label-hit:focus-visible .geo-label-clickable {
  fill:#c3002b;stroke:#fff;stroke-width:3px;font-weight:800;
}
body.tm-network-page .geo-label-hit:focus-visible {outline:none;}
body.tm-network-page .geo-label-hit:focus-visible .geo-label-hitbox {
  stroke:#e3032e;stroke-width:2;fill:rgba(227,3,46,.08);
}
@media(max-width:760px){
  /* Keep small enclave labels clickable even when other names are hidden. */
  body.tm-network-page .map-stage-real .geo-label-hit .geo-label-clickable {display:inline!important;}
}


/* More useful cartographic area; suppress the redundant setup prose. */
body.tm-network-page #mapSetup,
body.tm-network-page .demo-note { display:none!important; }
body.tm-network-page .map-stage-real {
  aspect-ratio:750/395;
  max-width:100%;
  margin:0;
}
body.tm-network-page #mapWrap { padding:0; }
body.tm-network-page .map-stage-real svg { width:100%;height:100%; }
body.tm-network-page .map-stage-real .navarra-label {font-size:9.5px;letter-spacing:-.15px;}
/* The enlarged SVG zoom no longer inflates the place name into surrounding regions. */
body.tm-network-page .map-stage-real .geo-pin {cursor:pointer;}
body.tm-network-page .map-stage-real .geo-pin-hit {
  fill:transparent;stroke:transparent;pointer-events:all;cursor:pointer;
}

body.tm-network-page #networkJoinStatus {
 margin:12px 0;padding:12px;border-radius:8px;
 border:1px solid #b3e6c7;background:#f2fcf6;color:#13633c;
 font:600 12px/1.45 Inter,Arial,sans-serif;
}
body.tm-network-page #networkJoinStatus.is-error{
 border-color:#f3b9c6;background:#fff4f7;color:#b0002e;
}



/* Directory restored to the original two-column layout: map on the left,
   collaborators on the right. Keep the larger desktop canvas. */
body.tm-network-page section.directory {
  width:min(1760px,calc(100% - 36px))!important;
  max-width:1760px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.tm-network-page #directorio .directory-grid {
  display:grid!important;
  grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)!important;
  align-items:stretch;
  gap:22px!important;
}
body.tm-network-page #directorio .map-card,
body.tm-network-page #directorio .results {
  min-width:0;
  width:100%;
  box-sizing:border-box;
  min-height:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
body.tm-network-page #directorio .map-title,
body.tm-network-page #directorio .results-head {
  flex:0 0 auto;
}
body.tm-network-page #directorio #mapWrap {
  position:relative;
  flex:1 1 auto;
  display:flex;
  align-items:stretch;
  width:100%;
  height:auto!important;
  min-height:580px!important;
  aspect-ratio:auto!important;
  overflow:hidden;
  padding:0;
  border-radius:0;
}
body.tm-network-page #directorio #mapStage,
body.tm-network-page #directorio .map-stage-real {
  position:relative;
  flex:1 1 auto;
  width:100%;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  border-radius:0;
}
body.tm-network-page #directorio #geoMap {
  display:block;
  width:100%!important;
  height:100%!important;
}
body.tm-network-page #directorio .map-card .legend {
  display:flex;
  flex:0 0 auto;
  flex-wrap:wrap;
  gap:14px 24px;
  align-items:center;
  width:100%;
  box-sizing:border-box;
  padding:16px 22px;
  border-top:1px solid #e1e6eb;
  border-bottom:0;
  background:#fff;
}
body.tm-network-page #directorio .map-card .legend button {
  margin-left:auto;
}
body.tm-network-page #directorio .results .cards {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-auto-rows:max-content;
  gap:10px;
  flex:1 1 auto;
  min-height:0;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden;
  padding:14px;
  align-content:start;
}
body.tm-network-page #directorio .results .cards > * {
  min-width:0;
}
@media(max-width:1050px) {
  body.tm-network-page #directorio .directory-grid {
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.tm-network-page #directorio #mapWrap {
    min-height:420px!important;
    aspect-ratio:750 / 395!important;
  }
  body.tm-network-page #directorio .map-stage-real {
    aspect-ratio:auto!important;
  }
  body.tm-network-page #directorio .results .cards {
    max-height:540px!important;
    overflow-y:auto!important;
  }
}
@media(max-width:700px) {
  body.tm-network-page section.directory {
    width:calc(100% - 24px)!important;
  }
  body.tm-network-page #directorio .map-card .legend {
    padding:14px;
    gap:10px 16px;
  }
  body.tm-network-page #directorio .map-card .legend button {
    margin-left:0;
  }
  body.tm-network-page #directorio #mapWrap {
    min-height:330px!important;
    aspect-ratio:750 / 455!important;
  }
}


/* Tall geographical view without a blank lower margin. Use a proportional
   map canvas so all long-screen desktop widths keep comparable geometry. */
@media (min-width:1051px) {
  body.tm-network-page #directorio #mapWrap {
    min-height:0!important;
    flex:0 0 auto!important;
    aspect-ratio:1.7 / 1!important;
    width:100%!important;
    height:auto!important;
  }
  body.tm-network-page #directorio #mapStage {
    min-height:0!important;
    flex:1 1 auto!important;
    height:auto!important;
  }
}
